configure revision c3e29c03
1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.71 for libXcomposite 0.4.6. 4# 5# Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libxcomposite/-/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/libxcomposite/-/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='libXcomposite' 684PACKAGE_TARNAME='libXcomposite' 685PACKAGE_VERSION='0.4.6' 686PACKAGE_STRING='libXcomposite 0.4.6' 687PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/lib/libxcomposite/-/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 727XFIXES_LIBS 728XFIXES_CFLAGS 729XCOMPOSITE_LIBS 730XCOMPOSITE_CFLAGS 731COMPOSITEEXT_VERSION 732INSTALL_MANPAGES_FALSE 733INSTALL_MANPAGES_TRUE 734HAVE_XMLTO_FALSE 735HAVE_XMLTO_TRUE 736HAVE_XMLTO_TEXT_FALSE 737HAVE_XMLTO_TEXT_TRUE 738XMLTO 739MAN_SUBSTS 740XORG_MAN_PAGE 741ADMIN_MAN_DIR 742DRIVER_MAN_DIR 743MISC_MAN_DIR 744FILE_MAN_DIR 745LIB_MAN_DIR 746APP_MAN_DIR 747ADMIN_MAN_SUFFIX 748DRIVER_MAN_SUFFIX 749MISC_MAN_SUFFIX 750FILE_MAN_SUFFIX 751LIB_MAN_SUFFIX 752APP_MAN_SUFFIX 753INSTALL_CMD 754PKG_CONFIG_LIBDIR 755PKG_CONFIG_PATH 756PKG_CONFIG 757CHANGELOG_CMD 758STRICT_CFLAGS 759CWARNFLAGS 760BASE_CFLAGS 761LT_SYS_LIBRARY_PATH 762OTOOL64 763OTOOL 764LIPO 765NMEDIT 766DSYMUTIL 767MANIFEST_TOOL 768RANLIB 769ac_ct_AR 770AR 771DLLTOOL 772OBJDUMP 773FILECMD 774LN_S 775NM 776ac_ct_DUMPBIN 777DUMPBIN 778LD 779FGREP 780EGREP 781GREP 782SED 783am__fastdepCC_FALSE 784am__fastdepCC_TRUE 785CCDEPMODE 786am__nodep 787AMDEPBACKSLASH 788AMDEP_FALSE 789AMDEP_TRUE 790am__include 791DEPDIR 792OBJEXT 793EXEEXT 794ac_ct_CC 795CPPFLAGS 796LDFLAGS 797CFLAGS 798CC 799host_os 800host_vendor 801host_cpu 802host 803build_os 804build_vendor 805build_cpu 806build 807LIBTOOL 808AM_BACKSLASH 809AM_DEFAULT_VERBOSITY 810AM_DEFAULT_V 811AM_V 812CSCOPE 813ETAGS 814CTAGS 815am__untar 816am__tar 817AMTAR 818am__leading_dot 819SET_MAKE 820AWK 821mkdir_p 822MKDIR_P 823INSTALL_STRIP_PROGRAM 824STRIP 825install_sh 826MAKEINFO 827AUTOHEADER 828AUTOMAKE 829AUTOCONF 830ACLOCAL 831VERSION 832PACKAGE 833CYGPATH_W 834am__isrc 835INSTALL_DATA 836INSTALL_SCRIPT 837INSTALL_PROGRAM 838target_alias 839host_alias 840build_alias 841LIBS 842ECHO_T 843ECHO_N 844ECHO_C 845DEFS 846mandir 847localedir 848libdir 849psdir 850pdfdir 851dvidir 852htmldir 853infodir 854docdir 855oldincludedir 856includedir 857runstatedir 858localstatedir 859sharedstatedir 860sysconfdir 861datadir 862datarootdir 863libexecdir 864sbindir 865bindir 866program_transform_name 867prefix 868exec_prefix 869PACKAGE_URL 870PACKAGE_BUGREPORT 871PACKAGE_STRING 872PACKAGE_VERSION 873PACKAGE_TARNAME 874PACKAGE_NAME 875PATH_SEPARATOR 876SHELL 877am__quote' 878ac_subst_files='' 879ac_user_opts=' 880enable_option_checking 881enable_silent_rules 882enable_shared 883enable_static 884with_pic 885enable_fast_install 886with_aix_soname 887enable_dependency_tracking 888with_gnu_ld 889with_sysroot 890enable_libtool_lock 891enable_selective_werror 892enable_strict_compilation 893with_xmlto 894' 895 ac_precious_vars='build_alias 896host_alias 897target_alias 898CC 899CFLAGS 900LDFLAGS 901LIBS 902CPPFLAGS 903LT_SYS_LIBRARY_PATH 904PKG_CONFIG 905PKG_CONFIG_PATH 906PKG_CONFIG_LIBDIR 907XMLTO 908XCOMPOSITE_CFLAGS 909XCOMPOSITE_LIBS 910XFIXES_CFLAGS 911XFIXES_LIBS' 912 913 914# Initialize some variables set by options. 915ac_init_help= 916ac_init_version=false 917ac_unrecognized_opts= 918ac_unrecognized_sep= 919# The variables have the same names as the options, with 920# dashes changed to underlines. 921cache_file=/dev/null 922exec_prefix=NONE 923no_create= 924no_recursion= 925prefix=NONE 926program_prefix=NONE 927program_suffix=NONE 928program_transform_name=s,x,x, 929silent= 930site= 931srcdir= 932verbose= 933x_includes=NONE 934x_libraries=NONE 935 936# Installation directory options. 937# These are left unexpanded so users can "make install exec_prefix=/foo" 938# and all the variables that are supposed to be based on exec_prefix 939# by default will actually change. 940# Use braces instead of parens because sh, perl, etc. also accept them. 941# (The list follows the same order as the GNU Coding Standards.) 942bindir='${exec_prefix}/bin' 943sbindir='${exec_prefix}/sbin' 944libexecdir='${exec_prefix}/libexec' 945datarootdir='${prefix}/share' 946datadir='${datarootdir}' 947sysconfdir='${prefix}/etc' 948sharedstatedir='${prefix}/com' 949localstatedir='${prefix}/var' 950runstatedir='${localstatedir}/run' 951includedir='${prefix}/include' 952oldincludedir='/usr/include' 953docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 954infodir='${datarootdir}/info' 955htmldir='${docdir}' 956dvidir='${docdir}' 957pdfdir='${docdir}' 958psdir='${docdir}' 959libdir='${exec_prefix}/lib' 960localedir='${datarootdir}/locale' 961mandir='${datarootdir}/man' 962 963ac_prev= 964ac_dashdash= 965for ac_option 966do 967 # If the previous option needs an argument, assign it. 968 if test -n "$ac_prev"; then 969 eval $ac_prev=\$ac_option 970 ac_prev= 971 continue 972 fi 973 974 case $ac_option in 975 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 976 *=) ac_optarg= ;; 977 *) ac_optarg=yes ;; 978 esac 979 980 case $ac_dashdash$ac_option in 981 --) 982 ac_dashdash=yes ;; 983 984 -bindir | --bindir | --bindi | --bind | --bin | --bi) 985 ac_prev=bindir ;; 986 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 987 bindir=$ac_optarg ;; 988 989 -build | --build | --buil | --bui | --bu) 990 ac_prev=build_alias ;; 991 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 992 build_alias=$ac_optarg ;; 993 994 -cache-file | --cache-file | --cache-fil | --cache-fi \ 995 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 996 ac_prev=cache_file ;; 997 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 998 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 999 cache_file=$ac_optarg ;; 1000 1001 --config-cache | -C) 1002 cache_file=config.cache ;; 1003 1004 -datadir | --datadir | --datadi | --datad) 1005 ac_prev=datadir ;; 1006 -datadir=* | --datadir=* | --datadi=* | --datad=*) 1007 datadir=$ac_optarg ;; 1008 1009 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 1010 | --dataroo | --dataro | --datar) 1011 ac_prev=datarootdir ;; 1012 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 1013 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 1014 datarootdir=$ac_optarg ;; 1015 1016 -disable-* | --disable-*) 1017 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 1018 # Reject names that are not valid shell variable names. 1019 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1020 as_fn_error $? "invalid feature name: \`$ac_useropt'" 1021 ac_useropt_orig=$ac_useropt 1022 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1023 case $ac_user_opts in 1024 *" 1025"enable_$ac_useropt" 1026"*) ;; 1027 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 1028 ac_unrecognized_sep=', ';; 1029 esac 1030 eval enable_$ac_useropt=no ;; 1031 1032 -docdir | --docdir | --docdi | --doc | --do) 1033 ac_prev=docdir ;; 1034 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1035 docdir=$ac_optarg ;; 1036 1037 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1038 ac_prev=dvidir ;; 1039 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1040 dvidir=$ac_optarg ;; 1041 1042 -enable-* | --enable-*) 1043 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1044 # Reject names that are not valid shell variable names. 1045 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1046 as_fn_error $? "invalid feature name: \`$ac_useropt'" 1047 ac_useropt_orig=$ac_useropt 1048 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1049 case $ac_user_opts in 1050 *" 1051"enable_$ac_useropt" 1052"*) ;; 1053 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1054 ac_unrecognized_sep=', ';; 1055 esac 1056 eval enable_$ac_useropt=\$ac_optarg ;; 1057 1058 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1059 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1060 | --exec | --exe | --ex) 1061 ac_prev=exec_prefix ;; 1062 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1063 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1064 | --exec=* | --exe=* | --ex=*) 1065 exec_prefix=$ac_optarg ;; 1066 1067 -gas | --gas | --ga | --g) 1068 # Obsolete; use --with-gas. 1069 with_gas=yes ;; 1070 1071 -help | --help | --hel | --he | -h) 1072 ac_init_help=long ;; 1073 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1074 ac_init_help=recursive ;; 1075 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1076 ac_init_help=short ;; 1077 1078 -host | --host | --hos | --ho) 1079 ac_prev=host_alias ;; 1080 -host=* | --host=* | --hos=* | --ho=*) 1081 host_alias=$ac_optarg ;; 1082 1083 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1084 ac_prev=htmldir ;; 1085 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1086 | --ht=*) 1087 htmldir=$ac_optarg ;; 1088 1089 -includedir | --includedir | --includedi | --included | --include \ 1090 | --includ | --inclu | --incl | --inc) 1091 ac_prev=includedir ;; 1092 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1093 | --includ=* | --inclu=* | --incl=* | --inc=*) 1094 includedir=$ac_optarg ;; 1095 1096 -infodir | --infodir | --infodi | --infod | --info | --inf) 1097 ac_prev=infodir ;; 1098 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1099 infodir=$ac_optarg ;; 1100 1101 -libdir | --libdir | --libdi | --libd) 1102 ac_prev=libdir ;; 1103 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1104 libdir=$ac_optarg ;; 1105 1106 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1107 | --libexe | --libex | --libe) 1108 ac_prev=libexecdir ;; 1109 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1110 | --libexe=* | --libex=* | --libe=*) 1111 libexecdir=$ac_optarg ;; 1112 1113 -localedir | --localedir | --localedi | --localed | --locale) 1114 ac_prev=localedir ;; 1115 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1116 localedir=$ac_optarg ;; 1117 1118 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1119 | --localstate | --localstat | --localsta | --localst | --locals) 1120 ac_prev=localstatedir ;; 1121 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1122 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1123 localstatedir=$ac_optarg ;; 1124 1125 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1126 ac_prev=mandir ;; 1127 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1128 mandir=$ac_optarg ;; 1129 1130 -nfp | --nfp | --nf) 1131 # Obsolete; use --without-fp. 1132 with_fp=no ;; 1133 1134 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1135 | --no-cr | --no-c | -n) 1136 no_create=yes ;; 1137 1138 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1139 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1140 no_recursion=yes ;; 1141 1142 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1143 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1144 | --oldin | --oldi | --old | --ol | --o) 1145 ac_prev=oldincludedir ;; 1146 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1147 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1148 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1149 oldincludedir=$ac_optarg ;; 1150 1151 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1152 ac_prev=prefix ;; 1153 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1154 prefix=$ac_optarg ;; 1155 1156 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1157 | --program-pre | --program-pr | --program-p) 1158 ac_prev=program_prefix ;; 1159 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1160 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1161 program_prefix=$ac_optarg ;; 1162 1163 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1164 | --program-suf | --program-su | --program-s) 1165 ac_prev=program_suffix ;; 1166 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1167 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1168 program_suffix=$ac_optarg ;; 1169 1170 -program-transform-name | --program-transform-name \ 1171 | --program-transform-nam | --program-transform-na \ 1172 | --program-transform-n | --program-transform- \ 1173 | --program-transform | --program-transfor \ 1174 | --program-transfo | --program-transf \ 1175 | --program-trans | --program-tran \ 1176 | --progr-tra | --program-tr | --program-t) 1177 ac_prev=program_transform_name ;; 1178 -program-transform-name=* | --program-transform-name=* \ 1179 | --program-transform-nam=* | --program-transform-na=* \ 1180 | --program-transform-n=* | --program-transform-=* \ 1181 | --program-transform=* | --program-transfor=* \ 1182 | --program-transfo=* | --program-transf=* \ 1183 | --program-trans=* | --program-tran=* \ 1184 | --progr-tra=* | --program-tr=* | --program-t=*) 1185 program_transform_name=$ac_optarg ;; 1186 1187 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1188 ac_prev=pdfdir ;; 1189 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1190 pdfdir=$ac_optarg ;; 1191 1192 -psdir | --psdir | --psdi | --psd | --ps) 1193 ac_prev=psdir ;; 1194 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1195 psdir=$ac_optarg ;; 1196 1197 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1198 | -silent | --silent | --silen | --sile | --sil) 1199 silent=yes ;; 1200 1201 -runstatedir | --runstatedir | --runstatedi | --runstated \ 1202 | --runstate | --runstat | --runsta | --runst | --runs \ 1203 | --run | --ru | --r) 1204 ac_prev=runstatedir ;; 1205 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ 1206 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ 1207 | --run=* | --ru=* | --r=*) 1208 runstatedir=$ac_optarg ;; 1209 1210 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1211 ac_prev=sbindir ;; 1212 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1213 | --sbi=* | --sb=*) 1214 sbindir=$ac_optarg ;; 1215 1216 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1217 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1218 | --sharedst | --shareds | --shared | --share | --shar \ 1219 | --sha | --sh) 1220 ac_prev=sharedstatedir ;; 1221 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1222 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1223 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1224 | --sha=* | --sh=*) 1225 sharedstatedir=$ac_optarg ;; 1226 1227 -site | --site | --sit) 1228 ac_prev=site ;; 1229 -site=* | --site=* | --sit=*) 1230 site=$ac_optarg ;; 1231 1232 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1233 ac_prev=srcdir ;; 1234 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1235 srcdir=$ac_optarg ;; 1236 1237 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1238 | --syscon | --sysco | --sysc | --sys | --sy) 1239 ac_prev=sysconfdir ;; 1240 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1241 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1242 sysconfdir=$ac_optarg ;; 1243 1244 -target | --target | --targe | --targ | --tar | --ta | --t) 1245 ac_prev=target_alias ;; 1246 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1247 target_alias=$ac_optarg ;; 1248 1249 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1250 verbose=yes ;; 1251 1252 -version | --version | --versio | --versi | --vers | -V) 1253 ac_init_version=: ;; 1254 1255 -with-* | --with-*) 1256 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1257 # Reject names that are not valid shell variable names. 1258 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1259 as_fn_error $? "invalid package name: \`$ac_useropt'" 1260 ac_useropt_orig=$ac_useropt 1261 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1262 case $ac_user_opts in 1263 *" 1264"with_$ac_useropt" 1265"*) ;; 1266 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1267 ac_unrecognized_sep=', ';; 1268 esac 1269 eval with_$ac_useropt=\$ac_optarg ;; 1270 1271 -without-* | --without-*) 1272 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1273 # Reject names that are not valid shell variable names. 1274 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1275 as_fn_error $? "invalid package name: \`$ac_useropt'" 1276 ac_useropt_orig=$ac_useropt 1277 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1278 case $ac_user_opts in 1279 *" 1280"with_$ac_useropt" 1281"*) ;; 1282 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1283 ac_unrecognized_sep=', ';; 1284 esac 1285 eval with_$ac_useropt=no ;; 1286 1287 --x) 1288 # Obsolete; use --with-x. 1289 with_x=yes ;; 1290 1291 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1292 | --x-incl | --x-inc | --x-in | --x-i) 1293 ac_prev=x_includes ;; 1294 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1295 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1296 x_includes=$ac_optarg ;; 1297 1298 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1299 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1300 ac_prev=x_libraries ;; 1301 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1302 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1303 x_libraries=$ac_optarg ;; 1304 1305 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1306Try \`$0 --help' for more information" 1307 ;; 1308 1309 *=*) 1310 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1311 # Reject names that are not valid shell variable names. 1312 case $ac_envvar in #( 1313 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1314 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1315 esac 1316 eval $ac_envvar=\$ac_optarg 1317 export $ac_envvar ;; 1318 1319 *) 1320 # FIXME: should be removed in autoconf 3.0. 1321 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2 1322 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1323 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2 1324 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1325 ;; 1326 1327 esac 1328done 1329 1330if test -n "$ac_prev"; then 1331 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1332 as_fn_error $? "missing argument to $ac_option" 1333fi 1334 1335if test -n "$ac_unrecognized_opts"; then 1336 case $enable_option_checking in 1337 no) ;; 1338 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1339 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1340 esac 1341fi 1342 1343# Check all directory arguments for consistency. 1344for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1345 datadir sysconfdir sharedstatedir localstatedir includedir \ 1346 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1347 libdir localedir mandir runstatedir 1348do 1349 eval ac_val=\$$ac_var 1350 # Remove trailing slashes. 1351 case $ac_val in 1352 */ ) 1353 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1354 eval $ac_var=\$ac_val;; 1355 esac 1356 # Be sure to have absolute directory names. 1357 case $ac_val in 1358 [\\/$]* | ?:[\\/]* ) continue;; 1359 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1360 esac 1361 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1362done 1363 1364# There might be people who depend on the old broken behavior: `$host' 1365# used to hold the argument of --host etc. 1366# FIXME: To remove some day. 1367build=$build_alias 1368host=$host_alias 1369target=$target_alias 1370 1371# FIXME: To remove some day. 1372if test "x$host_alias" != x; then 1373 if test "x$build_alias" = x; then 1374 cross_compiling=maybe 1375 elif test "x$build_alias" != "x$host_alias"; then 1376 cross_compiling=yes 1377 fi 1378fi 1379 1380ac_tool_prefix= 1381test -n "$host_alias" && ac_tool_prefix=$host_alias- 1382 1383test "$silent" = yes && exec 6>/dev/null 1384 1385 1386ac_pwd=`pwd` && test -n "$ac_pwd" && 1387ac_ls_di=`ls -di .` && 1388ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1389 as_fn_error $? "working directory cannot be determined" 1390test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1391 as_fn_error $? "pwd does not report name of working directory" 1392 1393 1394# Find the source files, if location was not specified. 1395if test -z "$srcdir"; then 1396 ac_srcdir_defaulted=yes 1397 # Try the directory containing this script, then the parent directory. 1398 ac_confdir=`$as_dirname -- "$as_myself" || 1399$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1400 X"$as_myself" : 'X\(//\)[^/]' \| \ 1401 X"$as_myself" : 'X\(//\)$' \| \ 1402 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1403printf "%s\n" X"$as_myself" | 1404 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1405 s//\1/ 1406 q 1407 } 1408 /^X\(\/\/\)[^/].*/{ 1409 s//\1/ 1410 q 1411 } 1412 /^X\(\/\/\)$/{ 1413 s//\1/ 1414 q 1415 } 1416 /^X\(\/\).*/{ 1417 s//\1/ 1418 q 1419 } 1420 s/.*/./; q'` 1421 srcdir=$ac_confdir 1422 if test ! -r "$srcdir/$ac_unique_file"; then 1423 srcdir=.. 1424 fi 1425else 1426 ac_srcdir_defaulted=no 1427fi 1428if test ! -r "$srcdir/$ac_unique_file"; then 1429 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1430 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1431fi 1432ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1433ac_abs_confdir=`( 1434 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1435 pwd)` 1436# When building in place, set srcdir=. 1437if test "$ac_abs_confdir" = "$ac_pwd"; then 1438 srcdir=. 1439fi 1440# Remove unnecessary trailing slashes from srcdir. 1441# Double slashes in file names in object file debugging info 1442# mess up M-x gdb in Emacs. 1443case $srcdir in 1444*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1445esac 1446for ac_var in $ac_precious_vars; do 1447 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1448 eval ac_env_${ac_var}_value=\$${ac_var} 1449 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1450 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1451done 1452 1453# 1454# Report the --help message. 1455# 1456if test "$ac_init_help" = "long"; then 1457 # Omit some internal or obsolete options to make the list less imposing. 1458 # This message is too long to be a string in the A/UX 3.1 sh. 1459 cat <<_ACEOF 1460\`configure' configures libXcomposite 0.4.6 to adapt to many kinds of systems. 1461 1462Usage: $0 [OPTION]... [VAR=VALUE]... 1463 1464To assign environment variables (e.g., CC, CFLAGS...), specify them as 1465VAR=VALUE. See below for descriptions of some of the useful variables. 1466 1467Defaults for the options are specified in brackets. 1468 1469Configuration: 1470 -h, --help display this help and exit 1471 --help=short display options specific to this package 1472 --help=recursive display the short help of all the included packages 1473 -V, --version display version information and exit 1474 -q, --quiet, --silent do not print \`checking ...' messages 1475 --cache-file=FILE cache test results in FILE [disabled] 1476 -C, --config-cache alias for \`--cache-file=config.cache' 1477 -n, --no-create do not create output files 1478 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1479 1480Installation directories: 1481 --prefix=PREFIX install architecture-independent files in PREFIX 1482 [$ac_default_prefix] 1483 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1484 [PREFIX] 1485 1486By default, \`make install' will install all the files in 1487\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1488an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1489for instance \`--prefix=\$HOME'. 1490 1491For better control, use the options below. 1492 1493Fine tuning of the installation directories: 1494 --bindir=DIR user executables [EPREFIX/bin] 1495 --sbindir=DIR system admin executables [EPREFIX/sbin] 1496 --libexecdir=DIR program executables [EPREFIX/libexec] 1497 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1498 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1499 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1500 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] 1501 --libdir=DIR object code libraries [EPREFIX/lib] 1502 --includedir=DIR C header files [PREFIX/include] 1503 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1504 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1505 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1506 --infodir=DIR info documentation [DATAROOTDIR/info] 1507 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1508 --mandir=DIR man documentation [DATAROOTDIR/man] 1509 --docdir=DIR documentation root [DATAROOTDIR/doc/libXcomposite] 1510 --htmldir=DIR html documentation [DOCDIR] 1511 --dvidir=DIR dvi documentation [DOCDIR] 1512 --pdfdir=DIR pdf documentation [DOCDIR] 1513 --psdir=DIR ps documentation [DOCDIR] 1514_ACEOF 1515 1516 cat <<\_ACEOF 1517 1518Program names: 1519 --program-prefix=PREFIX prepend PREFIX to installed program names 1520 --program-suffix=SUFFIX append SUFFIX to installed program names 1521 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1522 1523System types: 1524 --build=BUILD configure for building on BUILD [guessed] 1525 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1526_ACEOF 1527fi 1528 1529if test -n "$ac_init_help"; then 1530 case $ac_init_help in 1531 short | recursive ) echo "Configuration of libXcomposite 0.4.6:";; 1532 esac 1533 cat <<\_ACEOF 1534 1535Optional Features: 1536 --disable-option-checking ignore unrecognized --enable/--with options 1537 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1538 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1539 --enable-silent-rules less verbose build output (undo: "make V=1") 1540 --disable-silent-rules verbose build output (undo: "make V=0") 1541 --enable-shared[=PKGS] build shared libraries [default=yes] 1542 --enable-static[=PKGS] build static libraries [default=yes] 1543 --enable-fast-install[=PKGS] 1544 optimize for fast installation [default=yes] 1545 --enable-dependency-tracking 1546 do not reject slow dependency extractors 1547 --disable-dependency-tracking 1548 speeds up one-time build 1549 --disable-libtool-lock avoid locking (might break parallel builds) 1550 --disable-selective-werror 1551 Turn off selective compiler errors. (default: 1552 enabled) 1553 --enable-strict-compilation 1554 Enable all warnings from compiler and make them 1555 errors (default: disabled) 1556 1557Optional Packages: 1558 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1559 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1560 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1561 both] 1562 --with-aix-soname=aix|svr4|both 1563 shared library versioning (aka "SONAME") variant to 1564 provide on AIX, [default=aix]. 1565 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1566 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the 1567 compiler's sysroot if not specified). 1568 --with-xmlto Use xmlto to regenerate documentation (default: 1569 auto) 1570 1571Some influential environment variables: 1572 CC C compiler command 1573 CFLAGS C compiler flags 1574 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1575 nonstandard directory <lib dir> 1576 LIBS libraries to pass to the linker, e.g. -l<library> 1577 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1578 you have headers in a nonstandard directory <include dir> 1579 LT_SYS_LIBRARY_PATH 1580 User-defined run-time library search path. 1581 PKG_CONFIG path to pkg-config utility 1582 PKG_CONFIG_PATH 1583 directories to add to pkg-config's search path 1584 PKG_CONFIG_LIBDIR 1585 path overriding pkg-config's built-in search path 1586 XMLTO Path to xmlto command 1587 XCOMPOSITE_CFLAGS 1588 C compiler flags for XCOMPOSITE, overriding pkg-config 1589 XCOMPOSITE_LIBS 1590 linker flags for XCOMPOSITE, overriding pkg-config 1591 XFIXES_CFLAGS 1592 C compiler flags for XFIXES, overriding pkg-config 1593 XFIXES_LIBS linker flags for XFIXES, overriding pkg-config 1594 1595Use these variables to override the choices made by `configure' or to help 1596it to find libraries and programs with nonstandard names/locations. 1597 1598Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libxcomposite/-/issues>. 1599_ACEOF 1600ac_status=$? 1601fi 1602 1603if test "$ac_init_help" = "recursive"; then 1604 # If there are subdirs, report their specific --help. 1605 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1606 test -d "$ac_dir" || 1607 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1608 continue 1609 ac_builddir=. 1610 1611case "$ac_dir" in 1612.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1613*) 1614 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 1615 # A ".." for each directory in $ac_dir_suffix. 1616 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1617 case $ac_top_builddir_sub in 1618 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1619 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1620 esac ;; 1621esac 1622ac_abs_top_builddir=$ac_pwd 1623ac_abs_builddir=$ac_pwd$ac_dir_suffix 1624# for backward compatibility: 1625ac_top_builddir=$ac_top_build_prefix 1626 1627case $srcdir in 1628 .) # We are building in place. 1629 ac_srcdir=. 1630 ac_top_srcdir=$ac_top_builddir_sub 1631 ac_abs_top_srcdir=$ac_pwd ;; 1632 [\\/]* | ?:[\\/]* ) # Absolute name. 1633 ac_srcdir=$srcdir$ac_dir_suffix; 1634 ac_top_srcdir=$srcdir 1635 ac_abs_top_srcdir=$srcdir ;; 1636 *) # Relative name. 1637 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1638 ac_top_srcdir=$ac_top_build_prefix$srcdir 1639 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1640esac 1641ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1642 1643 cd "$ac_dir" || { ac_status=$?; continue; } 1644 # Check for configure.gnu first; this name is used for a wrapper for 1645 # Metaconfig's "Configure" on case-insensitive file systems. 1646 if test -f "$ac_srcdir/configure.gnu"; then 1647 echo && 1648 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1649 elif test -f "$ac_srcdir/configure"; then 1650 echo && 1651 $SHELL "$ac_srcdir/configure" --help=recursive 1652 else 1653 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1654 fi || ac_status=$? 1655 cd "$ac_pwd" || { ac_status=$?; break; } 1656 done 1657fi 1658 1659test -n "$ac_init_help" && exit $ac_status 1660if $ac_init_version; then 1661 cat <<\_ACEOF 1662libXcomposite configure 0.4.6 1663generated by GNU Autoconf 2.71 1664 1665Copyright (C) 2021 Free Software Foundation, Inc. 1666This configure script is free software; the Free Software Foundation 1667gives unlimited permission to copy, distribute and modify it. 1668_ACEOF 1669 exit 1670fi 1671 1672## ------------------------ ## 1673## Autoconf initialization. ## 1674## ------------------------ ## 1675 1676# ac_fn_c_try_compile LINENO 1677# -------------------------- 1678# Try to compile conftest.$ac_ext, and return whether this succeeded. 1679ac_fn_c_try_compile () 1680{ 1681 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1682 rm -f conftest.$ac_objext conftest.beam 1683 if { { ac_try="$ac_compile" 1684case "(($ac_try" in 1685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1686 *) ac_try_echo=$ac_try;; 1687esac 1688eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1689printf "%s\n" "$ac_try_echo"; } >&5 1690 (eval "$ac_compile") 2>conftest.err 1691 ac_status=$? 1692 if test -s conftest.err; then 1693 grep -v '^ *+' conftest.err >conftest.er1 1694 cat conftest.er1 >&5 1695 mv -f conftest.er1 conftest.err 1696 fi 1697 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1698 test $ac_status = 0; } && { 1699 test -z "$ac_c_werror_flag" || 1700 test ! -s conftest.err 1701 } && test -s conftest.$ac_objext 1702then : 1703 ac_retval=0 1704else $as_nop 1705 printf "%s\n" "$as_me: failed program was:" >&5 1706sed 's/^/| /' conftest.$ac_ext >&5 1707 1708 ac_retval=1 1709fi 1710 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1711 as_fn_set_status $ac_retval 1712 1713} # ac_fn_c_try_compile 1714 1715# ac_fn_c_try_link LINENO 1716# ----------------------- 1717# Try to link conftest.$ac_ext, and return whether this succeeded. 1718ac_fn_c_try_link () 1719{ 1720 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1721 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext 1722 if { { ac_try="$ac_link" 1723case "(($ac_try" in 1724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1725 *) ac_try_echo=$ac_try;; 1726esac 1727eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1728printf "%s\n" "$ac_try_echo"; } >&5 1729 (eval "$ac_link") 2>conftest.err 1730 ac_status=$? 1731 if test -s conftest.err; then 1732 grep -v '^ *+' conftest.err >conftest.er1 1733 cat conftest.er1 >&5 1734 mv -f conftest.er1 conftest.err 1735 fi 1736 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1737 test $ac_status = 0; } && { 1738 test -z "$ac_c_werror_flag" || 1739 test ! -s conftest.err 1740 } && test -s conftest$ac_exeext && { 1741 test "$cross_compiling" = yes || 1742 test -x conftest$ac_exeext 1743 } 1744then : 1745 ac_retval=0 1746else $as_nop 1747 printf "%s\n" "$as_me: failed program was:" >&5 1748sed 's/^/| /' conftest.$ac_ext >&5 1749 1750 ac_retval=1 1751fi 1752 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1753 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1754 # interfere with the next link command; also delete a directory that is 1755 # left behind by Apple's compiler. We do this before executing the actions. 1756 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1757 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1758 as_fn_set_status $ac_retval 1759 1760} # ac_fn_c_try_link 1761 1762# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1763# ------------------------------------------------------- 1764# Tests whether HEADER exists and can be compiled using the include files in 1765# INCLUDES, setting the cache variable VAR accordingly. 1766ac_fn_c_check_header_compile () 1767{ 1768 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1769 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1770printf %s "checking for $2... " >&6; } 1771if eval test \${$3+y} 1772then : 1773 printf %s "(cached) " >&6 1774else $as_nop 1775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1776/* end confdefs.h. */ 1777$4 1778#include <$2> 1779_ACEOF 1780if ac_fn_c_try_compile "$LINENO" 1781then : 1782 eval "$3=yes" 1783else $as_nop 1784 eval "$3=no" 1785fi 1786rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1787fi 1788eval ac_res=\$$3 1789 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1790printf "%s\n" "$ac_res" >&6; } 1791 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1792 1793} # ac_fn_c_check_header_compile 1794 1795# ac_fn_c_check_func LINENO FUNC VAR 1796# ---------------------------------- 1797# Tests whether FUNC exists, setting the cache variable VAR accordingly 1798ac_fn_c_check_func () 1799{ 1800 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1801 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1802printf %s "checking for $2... " >&6; } 1803if eval test \${$3+y} 1804then : 1805 printf %s "(cached) " >&6 1806else $as_nop 1807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1808/* end confdefs.h. */ 1809/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1810 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1811#define $2 innocuous_$2 1812 1813/* System header to define __stub macros and hopefully few prototypes, 1814 which can conflict with char $2 (); below. */ 1815 1816#include <limits.h> 1817#undef $2 1818 1819/* Override any GCC internal prototype to avoid an error. 1820 Use char because int might match the return type of a GCC 1821 builtin and then its argument prototype would still apply. */ 1822#ifdef __cplusplus 1823extern "C" 1824#endif 1825char $2 (); 1826/* The GNU C library defines this for functions which it implements 1827 to always fail with ENOSYS. Some functions are actually named 1828 something starting with __ and the normal name is an alias. */ 1829#if defined __stub_$2 || defined __stub___$2 1830choke me 1831#endif 1832 1833int 1834main (void) 1835{ 1836return $2 (); 1837 ; 1838 return 0; 1839} 1840_ACEOF 1841if ac_fn_c_try_link "$LINENO" 1842then : 1843 eval "$3=yes" 1844else $as_nop 1845 eval "$3=no" 1846fi 1847rm -f core conftest.err conftest.$ac_objext conftest.beam \ 1848 conftest$ac_exeext conftest.$ac_ext 1849fi 1850eval ac_res=\$$3 1851 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1852printf "%s\n" "$ac_res" >&6; } 1853 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1854 1855} # ac_fn_c_check_func 1856 1857# ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR 1858# ------------------------------------------------------------------ 1859# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 1860# accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR. 1861ac_fn_check_decl () 1862{ 1863 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1864 as_decl_name=`echo $2|sed 's/ *(.*//'` 1865 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 1866printf %s "checking whether $as_decl_name is declared... " >&6; } 1867if eval test \${$3+y} 1868then : 1869 printf %s "(cached) " >&6 1870else $as_nop 1871 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 1872 eval ac_save_FLAGS=\$$6 1873 as_fn_append $6 " $5" 1874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1875/* end confdefs.h. */ 1876$4 1877int 1878main (void) 1879{ 1880#ifndef $as_decl_name 1881#ifdef __cplusplus 1882 (void) $as_decl_use; 1883#else 1884 (void) $as_decl_name; 1885#endif 1886#endif 1887 1888 ; 1889 return 0; 1890} 1891_ACEOF 1892if ac_fn_c_try_compile "$LINENO" 1893then : 1894 eval "$3=yes" 1895else $as_nop 1896 eval "$3=no" 1897fi 1898rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1899 eval $6=\$ac_save_FLAGS 1900 1901fi 1902eval ac_res=\$$3 1903 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1904printf "%s\n" "$ac_res" >&6; } 1905 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1906 1907} # ac_fn_check_decl 1908ac_configure_args_raw= 1909for ac_arg 1910do 1911 case $ac_arg in 1912 *\'*) 1913 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1914 esac 1915 as_fn_append ac_configure_args_raw " '$ac_arg'" 1916done 1917 1918case $ac_configure_args_raw in 1919 *$as_nl*) 1920 ac_safe_unquote= ;; 1921 *) 1922 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab. 1923 ac_unsafe_a="$ac_unsafe_z#~" 1924 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g" 1925 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;; 1926esac 1927 1928cat >config.log <<_ACEOF 1929This file contains any messages produced by compilers while 1930running configure, to aid debugging if configure makes a mistake. 1931 1932It was created by libXcomposite $as_me 0.4.6, which was 1933generated by GNU Autoconf 2.71. Invocation command line was 1934 1935 $ $0$ac_configure_args_raw 1936 1937_ACEOF 1938exec 5>>config.log 1939{ 1940cat <<_ASUNAME 1941## --------- ## 1942## Platform. ## 1943## --------- ## 1944 1945hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1946uname -m = `(uname -m) 2>/dev/null || echo unknown` 1947uname -r = `(uname -r) 2>/dev/null || echo unknown` 1948uname -s = `(uname -s) 2>/dev/null || echo unknown` 1949uname -v = `(uname -v) 2>/dev/null || echo unknown` 1950 1951/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1952/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1953 1954/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1955/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1956/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1957/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1958/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1959/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1960/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1961 1962_ASUNAME 1963 1964as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1965for as_dir in $PATH 1966do 1967 IFS=$as_save_IFS 1968 case $as_dir in #((( 1969 '') as_dir=./ ;; 1970 */) ;; 1971 *) as_dir=$as_dir/ ;; 1972 esac 1973 printf "%s\n" "PATH: $as_dir" 1974 done 1975IFS=$as_save_IFS 1976 1977} >&5 1978 1979cat >&5 <<_ACEOF 1980 1981 1982## ----------- ## 1983## Core tests. ## 1984## ----------- ## 1985 1986_ACEOF 1987 1988 1989# Keep a trace of the command line. 1990# Strip out --no-create and --no-recursion so they do not pile up. 1991# Strip out --silent because we don't want to record it for future runs. 1992# Also quote any args containing shell meta-characters. 1993# Make two passes to allow for proper duplicate-argument suppression. 1994ac_configure_args= 1995ac_configure_args0= 1996ac_configure_args1= 1997ac_must_keep_next=false 1998for ac_pass in 1 2 1999do 2000 for ac_arg 2001 do 2002 case $ac_arg in 2003 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2004 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2005 | -silent | --silent | --silen | --sile | --sil) 2006 continue ;; 2007 *\'*) 2008 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2009 esac 2010 case $ac_pass in 2011 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2012 2) 2013 as_fn_append ac_configure_args1 " '$ac_arg'" 2014 if test $ac_must_keep_next = true; then 2015 ac_must_keep_next=false # Got value, back to normal. 2016 else 2017 case $ac_arg in 2018 *=* | --config-cache | -C | -disable-* | --disable-* \ 2019 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2020 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2021 | -with-* | --with-* | -without-* | --without-* | --x) 2022 case "$ac_configure_args0 " in 2023 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2024 esac 2025 ;; 2026 -* ) ac_must_keep_next=true ;; 2027 esac 2028 fi 2029 as_fn_append ac_configure_args " '$ac_arg'" 2030 ;; 2031 esac 2032 done 2033done 2034{ ac_configure_args0=; unset ac_configure_args0;} 2035{ ac_configure_args1=; unset ac_configure_args1;} 2036 2037# When interrupted or exit'd, cleanup temporary files, and complete 2038# config.log. We remove comments because anyway the quotes in there 2039# would cause problems or look ugly. 2040# WARNING: Use '\'' to represent an apostrophe within the trap. 2041# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2042trap 'exit_status=$? 2043 # Sanitize IFS. 2044 IFS=" "" $as_nl" 2045 # Save into config.log some information that might help in debugging. 2046 { 2047 echo 2048 2049 printf "%s\n" "## ---------------- ## 2050## Cache variables. ## 2051## ---------------- ##" 2052 echo 2053 # The following way of writing the cache mishandles newlines in values, 2054( 2055 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2056 eval ac_val=\$$ac_var 2057 case $ac_val in #( 2058 *${as_nl}*) 2059 case $ac_var in #( 2060 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2061printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2062 esac 2063 case $ac_var in #( 2064 _ | IFS | as_nl) ;; #( 2065 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2066 *) { eval $ac_var=; unset $ac_var;} ;; 2067 esac ;; 2068 esac 2069 done 2070 (set) 2>&1 | 2071 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2072 *${as_nl}ac_space=\ *) 2073 sed -n \ 2074 "s/'\''/'\''\\\\'\'''\''/g; 2075 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2076 ;; #( 2077 *) 2078 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2079 ;; 2080 esac | 2081 sort 2082) 2083 echo 2084 2085 printf "%s\n" "## ----------------- ## 2086## Output variables. ## 2087## ----------------- ##" 2088 echo 2089 for ac_var in $ac_subst_vars 2090 do 2091 eval ac_val=\$$ac_var 2092 case $ac_val in 2093 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2094 esac 2095 printf "%s\n" "$ac_var='\''$ac_val'\''" 2096 done | sort 2097 echo 2098 2099 if test -n "$ac_subst_files"; then 2100 printf "%s\n" "## ------------------- ## 2101## File substitutions. ## 2102## ------------------- ##" 2103 echo 2104 for ac_var in $ac_subst_files 2105 do 2106 eval ac_val=\$$ac_var 2107 case $ac_val in 2108 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2109 esac 2110 printf "%s\n" "$ac_var='\''$ac_val'\''" 2111 done | sort 2112 echo 2113 fi 2114 2115 if test -s confdefs.h; then 2116 printf "%s\n" "## ----------- ## 2117## confdefs.h. ## 2118## ----------- ##" 2119 echo 2120 cat confdefs.h 2121 echo 2122 fi 2123 test "$ac_signal" != 0 && 2124 printf "%s\n" "$as_me: caught signal $ac_signal" 2125 printf "%s\n" "$as_me: exit $exit_status" 2126 } >&5 2127 rm -f core *.core core.conftest.* && 2128 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2129 exit $exit_status 2130' 0 2131for ac_signal in 1 2 13 15; do 2132 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2133done 2134ac_signal=0 2135 2136# confdefs.h avoids OS command line length limits that DEFS can exceed. 2137rm -f -r conftest* confdefs.h 2138 2139printf "%s\n" "/* confdefs.h */" > confdefs.h 2140 2141# Predefined preprocessor variables. 2142 2143printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h 2144 2145printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h 2146 2147printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h 2148 2149printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h 2150 2151printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h 2152 2153printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h 2154 2155 2156# Let the site file select an alternate cache file if it wants to. 2157# Prefer an explicitly selected file to automatically selected ones. 2158if test -n "$CONFIG_SITE"; then 2159 ac_site_files="$CONFIG_SITE" 2160elif test "x$prefix" != xNONE; then 2161 ac_site_files="$prefix/share/config.site $prefix/etc/config.site" 2162else 2163 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 2164fi 2165 2166for ac_site_file in $ac_site_files 2167do 2168 case $ac_site_file in #( 2169 */*) : 2170 ;; #( 2171 *) : 2172 ac_site_file=./$ac_site_file ;; 2173esac 2174 if test -f "$ac_site_file" && test -r "$ac_site_file"; then 2175 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2176printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;} 2177 sed 's/^/| /' "$ac_site_file" >&5 2178 . "$ac_site_file" \ 2179 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2180printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 2181as_fn_error $? "failed to load site script $ac_site_file 2182See \`config.log' for more details" "$LINENO" 5; } 2183 fi 2184done 2185 2186if test -r "$cache_file"; then 2187 # Some versions of bash will fail to source /dev/null (special files 2188 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2189 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2190 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2191printf "%s\n" "$as_me: loading cache $cache_file" >&6;} 2192 case $cache_file in 2193 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2194 *) . "./$cache_file";; 2195 esac 2196 fi 2197else 2198 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2199printf "%s\n" "$as_me: creating cache $cache_file" >&6;} 2200 >$cache_file 2201fi 2202 2203# Test code for whether the C compiler supports C89 (global declarations) 2204ac_c_conftest_c89_globals=' 2205/* Does the compiler advertise C89 conformance? 2206 Do not test the value of __STDC__, because some compilers set it to 0 2207 while being otherwise adequately conformant. */ 2208#if !defined __STDC__ 2209# error "Compiler does not advertise C89 conformance" 2210#endif 2211 2212#include <stddef.h> 2213#include <stdarg.h> 2214struct stat; 2215/* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */ 2216struct buf { int x; }; 2217struct buf * (*rcsopen) (struct buf *, struct stat *, int); 2218static char *e (p, i) 2219 char **p; 2220 int i; 2221{ 2222 return p[i]; 2223} 2224static char *f (char * (*g) (char **, int), char **p, ...) 2225{ 2226 char *s; 2227 va_list v; 2228 va_start (v,p); 2229 s = g (p, va_arg (v,int)); 2230 va_end (v); 2231 return s; 2232} 2233 2234/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 2235 function prototypes and stuff, but not \xHH hex character constants. 2236 These do not provoke an error unfortunately, instead are silently treated 2237 as an "x". The following induces an error, until -std is added to get 2238 proper ANSI mode. Curiously \x00 != x always comes out true, for an 2239 array size at least. It is necessary to write \x00 == 0 to get something 2240 that is true only with -std. */ 2241int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1]; 2242 2243/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 2244 inside strings and character constants. */ 2245#define FOO(x) '\''x'\'' 2246int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1]; 2247 2248int test (int i, double x); 2249struct s1 {int (*f) (int a);}; 2250struct s2 {int (*f) (double a);}; 2251int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int), 2252 int, int);' 2253 2254# Test code for whether the C compiler supports C89 (body of main). 2255ac_c_conftest_c89_main=' 2256ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]); 2257' 2258 2259# Test code for whether the C compiler supports C99 (global declarations) 2260ac_c_conftest_c99_globals=' 2261// Does the compiler advertise C99 conformance? 2262#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L 2263# error "Compiler does not advertise C99 conformance" 2264#endif 2265 2266#include <stdbool.h> 2267extern int puts (const char *); 2268extern int printf (const char *, ...); 2269extern int dprintf (int, const char *, ...); 2270extern void *malloc (size_t); 2271 2272// Check varargs macros. These examples are taken from C99 6.10.3.5. 2273// dprintf is used instead of fprintf to avoid needing to declare 2274// FILE and stderr. 2275#define debug(...) dprintf (2, __VA_ARGS__) 2276#define showlist(...) puts (#__VA_ARGS__) 2277#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 2278static void 2279test_varargs_macros (void) 2280{ 2281 int x = 1234; 2282 int y = 5678; 2283 debug ("Flag"); 2284 debug ("X = %d\n", x); 2285 showlist (The first, second, and third items.); 2286 report (x>y, "x is %d but y is %d", x, y); 2287} 2288 2289// Check long long types. 2290#define BIG64 18446744073709551615ull 2291#define BIG32 4294967295ul 2292#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 2293#if !BIG_OK 2294 #error "your preprocessor is broken" 2295#endif 2296#if BIG_OK 2297#else 2298 #error "your preprocessor is broken" 2299#endif 2300static long long int bignum = -9223372036854775807LL; 2301static unsigned long long int ubignum = BIG64; 2302 2303struct incomplete_array 2304{ 2305 int datasize; 2306 double data[]; 2307}; 2308 2309struct named_init { 2310 int number; 2311 const wchar_t *name; 2312 double average; 2313}; 2314 2315typedef const char *ccp; 2316 2317static inline int 2318test_restrict (ccp restrict text) 2319{ 2320 // See if C++-style comments work. 2321 // Iterate through items via the restricted pointer. 2322 // Also check for declarations in for loops. 2323 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i) 2324 continue; 2325 return 0; 2326} 2327 2328// Check varargs and va_copy. 2329static bool 2330test_varargs (const char *format, ...) 2331{ 2332 va_list args; 2333 va_start (args, format); 2334 va_list args_copy; 2335 va_copy (args_copy, args); 2336 2337 const char *str = ""; 2338 int number = 0; 2339 float fnumber = 0; 2340 2341 while (*format) 2342 { 2343 switch (*format++) 2344 { 2345 case '\''s'\'': // string 2346 str = va_arg (args_copy, const char *); 2347 break; 2348 case '\''d'\'': // int 2349 number = va_arg (args_copy, int); 2350 break; 2351 case '\''f'\'': // float 2352 fnumber = va_arg (args_copy, double); 2353 break; 2354 default: 2355 break; 2356 } 2357 } 2358 va_end (args_copy); 2359 va_end (args); 2360 2361 return *str && number && fnumber; 2362} 2363' 2364 2365# Test code for whether the C compiler supports C99 (body of main). 2366ac_c_conftest_c99_main=' 2367 // Check bool. 2368 _Bool success = false; 2369 success |= (argc != 0); 2370 2371 // Check restrict. 2372 if (test_restrict ("String literal") == 0) 2373 success = true; 2374 char *restrict newvar = "Another string"; 2375 2376 // Check varargs. 2377 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234); 2378 test_varargs_macros (); 2379 2380 // Check flexible array members. 2381 struct incomplete_array *ia = 2382 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 2383 ia->datasize = 10; 2384 for (int i = 0; i < ia->datasize; ++i) 2385 ia->data[i] = i * 1.234; 2386 2387 // Check named initializers. 2388 struct named_init ni = { 2389 .number = 34, 2390 .name = L"Test wide string", 2391 .average = 543.34343, 2392 }; 2393 2394 ni.number = 58; 2395 2396 int dynamic_array[ni.number]; 2397 dynamic_array[0] = argv[0][0]; 2398 dynamic_array[ni.number - 1] = 543; 2399 2400 // work around unused variable warnings 2401 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\'' 2402 || dynamic_array[ni.number - 1] != 543); 2403' 2404 2405# Test code for whether the C compiler supports C11 (global declarations) 2406ac_c_conftest_c11_globals=' 2407// Does the compiler advertise C11 conformance? 2408#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L 2409# error "Compiler does not advertise C11 conformance" 2410#endif 2411 2412// Check _Alignas. 2413char _Alignas (double) aligned_as_double; 2414char _Alignas (0) no_special_alignment; 2415extern char aligned_as_int; 2416char _Alignas (0) _Alignas (int) aligned_as_int; 2417 2418// Check _Alignof. 2419enum 2420{ 2421 int_alignment = _Alignof (int), 2422 int_array_alignment = _Alignof (int[100]), 2423 char_alignment = _Alignof (char) 2424}; 2425_Static_assert (0 < -_Alignof (int), "_Alignof is signed"); 2426 2427// Check _Noreturn. 2428int _Noreturn does_not_return (void) { for (;;) continue; } 2429 2430// Check _Static_assert. 2431struct test_static_assert 2432{ 2433 int x; 2434 _Static_assert (sizeof (int) <= sizeof (long int), 2435 "_Static_assert does not work in struct"); 2436 long int y; 2437}; 2438 2439// Check UTF-8 literals. 2440#define u8 syntax error! 2441char const utf8_literal[] = u8"happens to be ASCII" "another string"; 2442 2443// Check duplicate typedefs. 2444typedef long *long_ptr; 2445typedef long int *long_ptr; 2446typedef long_ptr long_ptr; 2447 2448// Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1. 2449struct anonymous 2450{ 2451 union { 2452 struct { int i; int j; }; 2453 struct { int k; long int l; } w; 2454 }; 2455 int m; 2456} v1; 2457' 2458 2459# Test code for whether the C compiler supports C11 (body of main). 2460ac_c_conftest_c11_main=' 2461 _Static_assert ((offsetof (struct anonymous, i) 2462 == offsetof (struct anonymous, w.k)), 2463 "Anonymous union alignment botch"); 2464 v1.i = 2; 2465 v1.w.k = 5; 2466 ok |= v1.i != 5; 2467' 2468 2469# Test code for whether the C compiler supports C11 (complete). 2470ac_c_conftest_c11_program="${ac_c_conftest_c89_globals} 2471${ac_c_conftest_c99_globals} 2472${ac_c_conftest_c11_globals} 2473 2474int 2475main (int argc, char **argv) 2476{ 2477 int ok = 0; 2478 ${ac_c_conftest_c89_main} 2479 ${ac_c_conftest_c99_main} 2480 ${ac_c_conftest_c11_main} 2481 return ok; 2482} 2483" 2484 2485# Test code for whether the C compiler supports C99 (complete). 2486ac_c_conftest_c99_program="${ac_c_conftest_c89_globals} 2487${ac_c_conftest_c99_globals} 2488 2489int 2490main (int argc, char **argv) 2491{ 2492 int ok = 0; 2493 ${ac_c_conftest_c89_main} 2494 ${ac_c_conftest_c99_main} 2495 return ok; 2496} 2497" 2498 2499# Test code for whether the C compiler supports C89 (complete). 2500ac_c_conftest_c89_program="${ac_c_conftest_c89_globals} 2501 2502int 2503main (int argc, char **argv) 2504{ 2505 int ok = 0; 2506 ${ac_c_conftest_c89_main} 2507 return ok; 2508} 2509" 2510 2511as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H" 2512as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H" 2513as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H" 2514as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H" 2515as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H" 2516as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H" 2517as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H" 2518as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H" 2519as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H" 2520 2521# Auxiliary files required by this configure script. 2522ac_aux_files="compile config.guess config.sub ltmain.sh missing install-sh" 2523 2524# Locations in which to look for auxiliary files. 2525ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.." 2526 2527# Search for a directory containing all of the required auxiliary files, 2528# $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates. 2529# If we don't find one directory that contains all the files we need, 2530# we report the set of missing files from the *first* directory in 2531# $ac_aux_dir_candidates and give up. 2532ac_missing_aux_files="" 2533ac_first_candidate=: 2534printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5 2535as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2536as_found=false 2537for as_dir in $ac_aux_dir_candidates 2538do 2539 IFS=$as_save_IFS 2540 case $as_dir in #((( 2541 '') as_dir=./ ;; 2542 */) ;; 2543 *) as_dir=$as_dir/ ;; 2544 esac 2545 as_found=: 2546 2547 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5 2548 ac_aux_dir_found=yes 2549 ac_install_sh= 2550 for ac_aux in $ac_aux_files 2551 do 2552 # As a special case, if "install-sh" is required, that requirement 2553 # can be satisfied by any of "install-sh", "install.sh", or "shtool", 2554 # and $ac_install_sh is set appropriately for whichever one is found. 2555 if test x"$ac_aux" = x"install-sh" 2556 then 2557 if test -f "${as_dir}install-sh"; then 2558 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5 2559 ac_install_sh="${as_dir}install-sh -c" 2560 elif test -f "${as_dir}install.sh"; then 2561 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5 2562 ac_install_sh="${as_dir}install.sh -c" 2563 elif test -f "${as_dir}shtool"; then 2564 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5 2565 ac_install_sh="${as_dir}shtool install -c" 2566 else 2567 ac_aux_dir_found=no 2568 if $ac_first_candidate; then 2569 ac_missing_aux_files="${ac_missing_aux_files} install-sh" 2570 else 2571 break 2572 fi 2573 fi 2574 else 2575 if test -f "${as_dir}${ac_aux}"; then 2576 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5 2577 else 2578 ac_aux_dir_found=no 2579 if $ac_first_candidate; then 2580 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}" 2581 else 2582 break 2583 fi 2584 fi 2585 fi 2586 done 2587 if test "$ac_aux_dir_found" = yes; then 2588 ac_aux_dir="$as_dir" 2589 break 2590 fi 2591 ac_first_candidate=false 2592 2593 as_found=false 2594done 2595IFS=$as_save_IFS 2596if $as_found 2597then : 2598 2599else $as_nop 2600 as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 2601fi 2602 2603 2604# These three variables are undocumented and unsupported, 2605# and are intended to be withdrawn in a future Autoconf release. 2606# They can cause serious problems if a builder's source tree is in a directory 2607# whose full name contains unusual characters. 2608if test -f "${ac_aux_dir}config.guess"; then 2609 ac_config_guess="$SHELL ${ac_aux_dir}config.guess" 2610fi 2611if test -f "${ac_aux_dir}config.sub"; then 2612 ac_config_sub="$SHELL ${ac_aux_dir}config.sub" 2613fi 2614if test -f "$ac_aux_dir/configure"; then 2615 ac_configure="$SHELL ${ac_aux_dir}configure" 2616fi 2617 2618# Check that the precious variables saved in the cache have kept the same 2619# value. 2620ac_cache_corrupted=false 2621for ac_var in $ac_precious_vars; do 2622 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2623 eval ac_new_set=\$ac_env_${ac_var}_set 2624 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2625 eval ac_new_val=\$ac_env_${ac_var}_value 2626 case $ac_old_set,$ac_new_set in 2627 set,) 2628 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2629printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2630 ac_cache_corrupted=: ;; 2631 ,set) 2632 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2633printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2634 ac_cache_corrupted=: ;; 2635 ,);; 2636 *) 2637 if test "x$ac_old_val" != "x$ac_new_val"; then 2638 # differences in whitespace do not lead to failure. 2639 ac_old_val_w=`echo x $ac_old_val` 2640 ac_new_val_w=`echo x $ac_new_val` 2641 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2642 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2643printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2644 ac_cache_corrupted=: 2645 else 2646 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2647printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2648 eval $ac_var=\$ac_old_val 2649 fi 2650 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2651printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;} 2652 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2653printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;} 2654 fi;; 2655 esac 2656 # Pass precious variables to config.status. 2657 if test "$ac_new_set" = set; then 2658 case $ac_new_val in 2659 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2660 *) ac_arg=$ac_var=$ac_new_val ;; 2661 esac 2662 case " $ac_configure_args " in 2663 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2664 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2665 esac 2666 fi 2667done 2668if $ac_cache_corrupted; then 2669 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2670printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 2671 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2672printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;} 2673 as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file' 2674 and start over" "$LINENO" 5 2675fi 2676## -------------------- ## 2677## Main body of script. ## 2678## -------------------- ## 2679 2680ac_ext=c 2681ac_cpp='$CPP $CPPFLAGS' 2682ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2683ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2684ac_compiler_gnu=$ac_cv_c_compiler_gnu 2685 2686 2687 2688ac_config_headers="$ac_config_headers config.h" 2689 2690 2691# Initialize Automake 2692am__api_version='1.16' 2693 2694 2695 2696 # Find a good install program. We prefer a C program (faster), 2697# so one script is as good as another. But avoid the broken or 2698# incompatible versions: 2699# SysV /etc/install, /usr/sbin/install 2700# SunOS /usr/etc/install 2701# IRIX /sbin/install 2702# AIX /bin/install 2703# AmigaOS /C/install, which installs bootblocks on floppy discs 2704# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2705# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2706# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2707# OS/2's system install, which has a completely different semantic 2708# ./install, which can be erroneously created by make from ./install.sh. 2709# Reject install programs that cannot install multiple files. 2710{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2711printf %s "checking for a BSD-compatible install... " >&6; } 2712if test -z "$INSTALL"; then 2713if test ${ac_cv_path_install+y} 2714then : 2715 printf %s "(cached) " >&6 2716else $as_nop 2717 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2718for as_dir in $PATH 2719do 2720 IFS=$as_save_IFS 2721 case $as_dir in #((( 2722 '') as_dir=./ ;; 2723 */) ;; 2724 *) as_dir=$as_dir/ ;; 2725 esac 2726 # Account for fact that we put trailing slashes in our PATH walk. 2727case $as_dir in #(( 2728 ./ | /[cC]/* | \ 2729 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2730 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2731 /usr/ucb/* ) ;; 2732 *) 2733 # OSF1 and SCO ODT 3.0 have their own names for install. 2734 # Don't use installbsd from OSF since it installs stuff as root 2735 # by default. 2736 for ac_prog in ginstall scoinst install; do 2737 for ac_exec_ext in '' $ac_executable_extensions; do 2738 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then 2739 if test $ac_prog = install && 2740 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2741 # AIX install. It has an incompatible calling convention. 2742 : 2743 elif test $ac_prog = install && 2744 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2745 # program-specific install script used by HP pwplus--don't use. 2746 : 2747 else 2748 rm -rf conftest.one conftest.two conftest.dir 2749 echo one > conftest.one 2750 echo two > conftest.two 2751 mkdir conftest.dir 2752 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" && 2753 test -s conftest.one && test -s conftest.two && 2754 test -s conftest.dir/conftest.one && 2755 test -s conftest.dir/conftest.two 2756 then 2757 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c" 2758 break 3 2759 fi 2760 fi 2761 fi 2762 done 2763 done 2764 ;; 2765esac 2766 2767 done 2768IFS=$as_save_IFS 2769 2770rm -rf conftest.one conftest.two conftest.dir 2771 2772fi 2773 if test ${ac_cv_path_install+y}; then 2774 INSTALL=$ac_cv_path_install 2775 else 2776 # As a last resort, use the slow shell script. Don't cache a 2777 # value for INSTALL within a source directory, because that will 2778 # break other packages using the cache if that directory is 2779 # removed, or if the value is a relative name. 2780 INSTALL=$ac_install_sh 2781 fi 2782fi 2783{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2784printf "%s\n" "$INSTALL" >&6; } 2785 2786# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2787# It thinks the first close brace ends the variable substitution. 2788test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2789 2790test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2791 2792test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2793 2794{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2795printf %s "checking whether build environment is sane... " >&6; } 2796# Reject unsafe characters in $srcdir or the absolute working directory 2797# name. Accept space and tab only in the latter. 2798am_lf=' 2799' 2800case `pwd` in 2801 *[\\\"\#\$\&\'\`$am_lf]*) 2802 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2803esac 2804case $srcdir in 2805 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2806 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 2807esac 2808 2809# Do 'set' in a subshell so we don't clobber the current shell's 2810# arguments. Must try -L first in case configure is actually a 2811# symlink; some systems play weird games with the mod time of symlinks 2812# (eg FreeBSD returns the mod time of the symlink's containing 2813# directory). 2814if ( 2815 am_has_slept=no 2816 for am_try in 1 2; do 2817 echo "timestamp, slept: $am_has_slept" > conftest.file 2818 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2819 if test "$*" = "X"; then 2820 # -L didn't work. 2821 set X `ls -t "$srcdir/configure" conftest.file` 2822 fi 2823 if test "$*" != "X $srcdir/configure conftest.file" \ 2824 && test "$*" != "X conftest.file $srcdir/configure"; then 2825 2826 # If neither matched, then we have a broken ls. This can happen 2827 # if, for instance, CONFIG_SHELL is bash and it inherits a 2828 # broken ls alias from the environment. This has actually 2829 # happened. Such a system could not be considered "sane". 2830 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2831 alias in your environment" "$LINENO" 5 2832 fi 2833 if test "$2" = conftest.file || test $am_try -eq 2; then 2834 break 2835 fi 2836 # Just in case. 2837 sleep 1 2838 am_has_slept=yes 2839 done 2840 test "$2" = conftest.file 2841 ) 2842then 2843 # Ok. 2844 : 2845else 2846 as_fn_error $? "newly created file is older than distributed files! 2847Check your system clock" "$LINENO" 5 2848fi 2849{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2850printf "%s\n" "yes" >&6; } 2851# If we didn't sleep, we still need to ensure time stamps of config.status and 2852# generated files are strictly newer. 2853am_sleep_pid= 2854if grep 'slept: no' conftest.file >/dev/null 2>&1; then 2855 ( sleep 1 ) & 2856 am_sleep_pid=$! 2857fi 2858 2859rm -f conftest.file 2860 2861test "$program_prefix" != NONE && 2862 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2863# Use a double $ so make ignores it. 2864test "$program_suffix" != NONE && 2865 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2866# Double any \ or $. 2867# By default was `s,x,x', remove it if useless. 2868ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2869program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"` 2870 2871 2872# Expand $ac_aux_dir to an absolute path. 2873am_aux_dir=`cd "$ac_aux_dir" && pwd` 2874 2875 2876 if test x"${MISSING+set}" != xset; then 2877 MISSING="\${SHELL} '$am_aux_dir/missing'" 2878fi 2879# Use eval to expand $SHELL 2880if eval "$MISSING --is-lightweight"; then 2881 am_missing_run="$MISSING " 2882else 2883 am_missing_run= 2884 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 2885printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 2886fi 2887 2888if test x"${install_sh+set}" != xset; then 2889 case $am_aux_dir in 2890 *\ * | *\ *) 2891 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2892 *) 2893 install_sh="\${SHELL} $am_aux_dir/install-sh" 2894 esac 2895fi 2896 2897# Installed binaries are usually stripped using 'strip' when the user 2898# run "make install-strip". However 'strip' might not be the right 2899# tool to use in cross-compilation environments, therefore Automake 2900# will honor the 'STRIP' environment variable to overrule this program. 2901if test "$cross_compiling" != no; then 2902 if test -n "$ac_tool_prefix"; then 2903 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2904set dummy ${ac_tool_prefix}strip; ac_word=$2 2905{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2906printf %s "checking for $ac_word... " >&6; } 2907if test ${ac_cv_prog_STRIP+y} 2908then : 2909 printf %s "(cached) " >&6 2910else $as_nop 2911 if test -n "$STRIP"; then 2912 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2913else 2914as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2915for as_dir in $PATH 2916do 2917 IFS=$as_save_IFS 2918 case $as_dir in #((( 2919 '') as_dir=./ ;; 2920 */) ;; 2921 *) as_dir=$as_dir/ ;; 2922 esac 2923 for ac_exec_ext in '' $ac_executable_extensions; do 2924 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2925 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2926 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2927 break 2 2928 fi 2929done 2930 done 2931IFS=$as_save_IFS 2932 2933fi 2934fi 2935STRIP=$ac_cv_prog_STRIP 2936if test -n "$STRIP"; then 2937 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2938printf "%s\n" "$STRIP" >&6; } 2939else 2940 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2941printf "%s\n" "no" >&6; } 2942fi 2943 2944 2945fi 2946if test -z "$ac_cv_prog_STRIP"; then 2947 ac_ct_STRIP=$STRIP 2948 # Extract the first word of "strip", so it can be a program name with args. 2949set dummy strip; ac_word=$2 2950{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2951printf %s "checking for $ac_word... " >&6; } 2952if test ${ac_cv_prog_ac_ct_STRIP+y} 2953then : 2954 printf %s "(cached) " >&6 2955else $as_nop 2956 if test -n "$ac_ct_STRIP"; then 2957 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2958else 2959as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2960for as_dir in $PATH 2961do 2962 IFS=$as_save_IFS 2963 case $as_dir in #((( 2964 '') as_dir=./ ;; 2965 */) ;; 2966 *) as_dir=$as_dir/ ;; 2967 esac 2968 for ac_exec_ext in '' $ac_executable_extensions; do 2969 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2970 ac_cv_prog_ac_ct_STRIP="strip" 2971 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2972 break 2 2973 fi 2974done 2975 done 2976IFS=$as_save_IFS 2977 2978fi 2979fi 2980ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2981if test -n "$ac_ct_STRIP"; then 2982 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2983printf "%s\n" "$ac_ct_STRIP" >&6; } 2984else 2985 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2986printf "%s\n" "no" >&6; } 2987fi 2988 2989 if test "x$ac_ct_STRIP" = x; then 2990 STRIP=":" 2991 else 2992 case $cross_compiling:$ac_tool_warned in 2993yes:) 2994{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2995printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2996ac_tool_warned=yes ;; 2997esac 2998 STRIP=$ac_ct_STRIP 2999 fi 3000else 3001 STRIP="$ac_cv_prog_STRIP" 3002fi 3003 3004fi 3005INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 3006 3007 3008 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5 3009printf %s "checking for a race-free mkdir -p... " >&6; } 3010if test -z "$MKDIR_P"; then 3011 if test ${ac_cv_path_mkdir+y} 3012then : 3013 printf %s "(cached) " >&6 3014else $as_nop 3015 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3016for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 3017do 3018 IFS=$as_save_IFS 3019 case $as_dir in #((( 3020 '') as_dir=./ ;; 3021 */) ;; 3022 *) as_dir=$as_dir/ ;; 3023 esac 3024 for ac_prog in mkdir gmkdir; do 3025 for ac_exec_ext in '' $ac_executable_extensions; do 3026 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue 3027 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #( 3028 'mkdir ('*'coreutils) '* | \ 3029 'BusyBox '* | \ 3030 'mkdir (fileutils) '4.1*) 3031 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext 3032 break 3;; 3033 esac 3034 done 3035 done 3036 done 3037IFS=$as_save_IFS 3038 3039fi 3040 3041 test -d ./--version && rmdir ./--version 3042 if test ${ac_cv_path_mkdir+y}; then 3043 MKDIR_P="$ac_cv_path_mkdir -p" 3044 else 3045 # As a last resort, use the slow shell script. Don't cache a 3046 # value for MKDIR_P within a source directory, because that will 3047 # break other packages using the cache if that directory is 3048 # removed, or if the value is a relative name. 3049 MKDIR_P="$ac_install_sh -d" 3050 fi 3051fi 3052{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 3053printf "%s\n" "$MKDIR_P" >&6; } 3054 3055for ac_prog in gawk mawk nawk awk 3056do 3057 # Extract the first word of "$ac_prog", so it can be a program name with args. 3058set dummy $ac_prog; ac_word=$2 3059{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3060printf %s "checking for $ac_word... " >&6; } 3061if test ${ac_cv_prog_AWK+y} 3062then : 3063 printf %s "(cached) " >&6 3064else $as_nop 3065 if test -n "$AWK"; then 3066 ac_cv_prog_AWK="$AWK" # Let the user override the test. 3067else 3068as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3069for as_dir in $PATH 3070do 3071 IFS=$as_save_IFS 3072 case $as_dir in #((( 3073 '') as_dir=./ ;; 3074 */) ;; 3075 *) as_dir=$as_dir/ ;; 3076 esac 3077 for ac_exec_ext in '' $ac_executable_extensions; do 3078 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3079 ac_cv_prog_AWK="$ac_prog" 3080 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3081 break 2 3082 fi 3083done 3084 done 3085IFS=$as_save_IFS 3086 3087fi 3088fi 3089AWK=$ac_cv_prog_AWK 3090if test -n "$AWK"; then 3091 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 3092printf "%s\n" "$AWK" >&6; } 3093else 3094 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3095printf "%s\n" "no" >&6; } 3096fi 3097 3098 3099 test -n "$AWK" && break 3100done 3101 3102{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 3103printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 3104set x ${MAKE-make} 3105ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 3106if eval test \${ac_cv_prog_make_${ac_make}_set+y} 3107then : 3108 printf %s "(cached) " >&6 3109else $as_nop 3110 cat >conftest.make <<\_ACEOF 3111SHELL = /bin/sh 3112all: 3113 @echo '@@@%%%=$(MAKE)=@@@%%%' 3114_ACEOF 3115# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 3116case `${MAKE-make} -f conftest.make 2>/dev/null` in 3117 *@@@%%%=?*=@@@%%%*) 3118 eval ac_cv_prog_make_${ac_make}_set=yes;; 3119 *) 3120 eval ac_cv_prog_make_${ac_make}_set=no;; 3121esac 3122rm -f conftest.make 3123fi 3124if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 3125 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3126printf "%s\n" "yes" >&6; } 3127 SET_MAKE= 3128else 3129 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3130printf "%s\n" "no" >&6; } 3131 SET_MAKE="MAKE=${MAKE-make}" 3132fi 3133 3134rm -rf .tst 2>/dev/null 3135mkdir .tst 2>/dev/null 3136if test -d .tst; then 3137 am__leading_dot=. 3138else 3139 am__leading_dot=_ 3140fi 3141rmdir .tst 2>/dev/null 3142 3143# Check whether --enable-silent-rules was given. 3144if test ${enable_silent_rules+y} 3145then : 3146 enableval=$enable_silent_rules; 3147fi 3148 3149case $enable_silent_rules in # ((( 3150 yes) AM_DEFAULT_VERBOSITY=0;; 3151 no) AM_DEFAULT_VERBOSITY=1;; 3152 *) AM_DEFAULT_VERBOSITY=1;; 3153esac 3154am_make=${MAKE-make} 3155{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 3156printf %s "checking whether $am_make supports nested variables... " >&6; } 3157if test ${am_cv_make_support_nested_variables+y} 3158then : 3159 printf %s "(cached) " >&6 3160else $as_nop 3161 if printf "%s\n" 'TRUE=$(BAR$(V)) 3162BAR0=false 3163BAR1=true 3164V=1 3165am__doit: 3166 @$(TRUE) 3167.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 3168 am_cv_make_support_nested_variables=yes 3169else 3170 am_cv_make_support_nested_variables=no 3171fi 3172fi 3173{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 3174printf "%s\n" "$am_cv_make_support_nested_variables" >&6; } 3175if test $am_cv_make_support_nested_variables = yes; then 3176 AM_V='$(V)' 3177 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 3178else 3179 AM_V=$AM_DEFAULT_VERBOSITY 3180 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 3181fi 3182AM_BACKSLASH='\' 3183 3184if test "`cd $srcdir && pwd`" != "`pwd`"; then 3185 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 3186 # is not polluted with repeated "-I." 3187 am__isrc=' -I$(srcdir)' 3188 # test to see if srcdir already configured 3189 if test -f $srcdir/config.status; then 3190 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 3191 fi 3192fi 3193 3194# test whether we have cygpath 3195if test -z "$CYGPATH_W"; then 3196 if (cygpath --version) >/dev/null 2>/dev/null; then 3197 CYGPATH_W='cygpath -w' 3198 else 3199 CYGPATH_W=echo 3200 fi 3201fi 3202 3203 3204# Define the identity of the package. 3205 PACKAGE='libXcomposite' 3206 VERSION='0.4.6' 3207 3208 3209printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h 3210 3211 3212printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h 3213 3214# Some tools Automake needs. 3215 3216ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 3217 3218 3219AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 3220 3221 3222AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 3223 3224 3225AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 3226 3227 3228MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 3229 3230# For better backward compatibility. To be removed once Automake 1.9.x 3231# dies out for good. For more background, see: 3232# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 3233# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 3234mkdir_p='$(MKDIR_P)' 3235 3236# We need awk for the "check" target (and possibly the TAP driver). The 3237# system "awk" is bad on some platforms. 3238# Always define AMTAR for backward compatibility. Yes, it's still used 3239# in the wild :-( We should find a proper way to deprecate it ... 3240AMTAR='$${TAR-tar}' 3241 3242 3243# We'll loop over all known methods to create a tar archive until one works. 3244_am_tools='gnutar pax cpio none' 3245 3246am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 3247 3248 3249 3250 3251 3252# Variables for tags utilities; see am/tags.am 3253if test -z "$CTAGS"; then 3254 CTAGS=ctags 3255fi 3256 3257if test -z "$ETAGS"; then 3258 ETAGS=etags 3259fi 3260 3261if test -z "$CSCOPE"; then 3262 CSCOPE=cscope 3263fi 3264 3265 3266 3267# POSIX will say in a future version that running "rm -f" with no argument 3268# is OK; and we want to be able to make that assumption in our Makefile 3269# recipes. So use an aggressive probe to check that the usage we want is 3270# actually supported "in the wild" to an acceptable degree. 3271# See automake bug#10828. 3272# To make any issue more visible, cause the running configure to be aborted 3273# by default if the 'rm' program in use doesn't match our expectations; the 3274# user can still override this though. 3275if rm -f && rm -fr && rm -rf; then : OK; else 3276 cat >&2 <<'END' 3277Oops! 3278 3279Your 'rm' program seems unable to run without file operands specified 3280on the command line, even when the '-f' option is present. This is contrary 3281to the behaviour of most rm programs out there, and not conforming with 3282the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 3283 3284Please tell bug-automake@gnu.org about your system, including the value 3285of your $PATH and any error possibly output before this message. This 3286can help us improve future automake versions. 3287 3288END 3289 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 3290 echo 'Configuration will proceed anyway, since you have set the' >&2 3291 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 3292 echo >&2 3293 else 3294 cat >&2 <<'END' 3295Aborting the configuration process, to ensure you take notice of the issue. 3296 3297You can download and install GNU coreutils to get an 'rm' implementation 3298that behaves properly: <https://www.gnu.org/software/coreutils/>. 3299 3300If you want to complete the configuration process using your problematic 3301'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 3302to "yes", and re-run configure. 3303 3304END 3305 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 3306 fi 3307fi 3308 3309 3310# Initialize libtool 3311case `pwd` in 3312 *\ * | *\ *) 3313 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 3314printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 3315esac 3316 3317 3318 3319macro_version='2.4.7' 3320macro_revision='2.4.7' 3321 3322 3323 3324 3325 3326 3327 3328 3329 3330 3331 3332 3333 3334 3335ltmain=$ac_aux_dir/ltmain.sh 3336 3337 3338 3339 # Make sure we can run config.sub. 3340$SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 || 3341 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5 3342 3343{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 3344printf %s "checking build system type... " >&6; } 3345if test ${ac_cv_build+y} 3346then : 3347 printf %s "(cached) " >&6 3348else $as_nop 3349 ac_build_alias=$build_alias 3350test "x$ac_build_alias" = x && 3351 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"` 3352test "x$ac_build_alias" = x && 3353 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 3354ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` || 3355 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5 3356 3357fi 3358{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 3359printf "%s\n" "$ac_cv_build" >&6; } 3360case $ac_cv_build in 3361*-*-*) ;; 3362*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 3363esac 3364build=$ac_cv_build 3365ac_save_IFS=$IFS; IFS='-' 3366set x $ac_cv_build 3367shift 3368build_cpu=$1 3369build_vendor=$2 3370shift; shift 3371# Remember, the first character of IFS is used to create $*, 3372# except with old shells: 3373build_os=$* 3374IFS=$ac_save_IFS 3375case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 3376 3377 3378{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 3379printf %s "checking host system type... " >&6; } 3380if test ${ac_cv_host+y} 3381then : 3382 printf %s "(cached) " >&6 3383else $as_nop 3384 if test "x$host_alias" = x; then 3385 ac_cv_host=$ac_cv_build 3386else 3387 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` || 3388 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5 3389fi 3390 3391fi 3392{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 3393printf "%s\n" "$ac_cv_host" >&6; } 3394case $ac_cv_host in 3395*-*-*) ;; 3396*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 3397esac 3398host=$ac_cv_host 3399ac_save_IFS=$IFS; IFS='-' 3400set x $ac_cv_host 3401shift 3402host_cpu=$1 3403host_vendor=$2 3404shift; shift 3405# Remember, the first character of IFS is used to create $*, 3406# except with old shells: 3407host_os=$* 3408IFS=$ac_save_IFS 3409case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 3410 3411 3412# Backslashify metacharacters that are still active within 3413# double-quoted strings. 3414sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 3415 3416# Same as above, but do not quote variable references. 3417double_quote_subst='s/\(["`\\]\)/\\\1/g' 3418 3419# Sed substitution to delay expansion of an escaped shell variable in a 3420# double_quote_subst'ed string. 3421delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 3422 3423# Sed substitution to delay expansion of an escaped single quote. 3424delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 3425 3426# Sed substitution to avoid accidental globbing in evaled expressions 3427no_glob_subst='s/\*/\\\*/g' 3428 3429ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 3430ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 3431ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 3432 3433{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 3434printf %s "checking how to print strings... " >&6; } 3435# Test print first, because it will be a builtin if present. 3436if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 3437 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 3438 ECHO='print -r --' 3439elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 3440 ECHO='printf %s\n' 3441else 3442 # Use this function as a fallback that always works. 3443 func_fallback_echo () 3444 { 3445 eval 'cat <<_LTECHO_EOF 3446$1 3447_LTECHO_EOF' 3448 } 3449 ECHO='func_fallback_echo' 3450fi 3451 3452# func_echo_all arg... 3453# Invoke $ECHO with all args, space-separated. 3454func_echo_all () 3455{ 3456 $ECHO "" 3457} 3458 3459case $ECHO in 3460 printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5 3461printf "%s\n" "printf" >&6; } ;; 3462 print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 3463printf "%s\n" "print -r" >&6; } ;; 3464 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5 3465printf "%s\n" "cat" >&6; } ;; 3466esac 3467 3468 3469 3470 3471 3472 3473 3474 3475 3476 3477 3478 3479 3480 3481 3482 3483 3484 3485 3486 3487 3488 3489 3490DEPDIR="${am__leading_dot}deps" 3491 3492ac_config_commands="$ac_config_commands depfiles" 3493 3494{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5 3495printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; } 3496cat > confinc.mk << 'END' 3497am__doit: 3498 @echo this is the am__doit target >confinc.out 3499.PHONY: am__doit 3500END 3501am__include="#" 3502am__quote= 3503# BSD make does it like this. 3504echo '.include "confinc.mk" # ignored' > confmf.BSD 3505# Other make implementations (GNU, Solaris 10, AIX) do it like this. 3506echo 'include confinc.mk # ignored' > confmf.GNU 3507_am_result=no 3508for s in GNU BSD; do 3509 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5 3510 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5 3511 ac_status=$? 3512 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3513 (exit $ac_status); } 3514 case $?:`cat confinc.out 2>/dev/null` in #( 3515 '0:this is the am__doit target') : 3516 case $s in #( 3517 BSD) : 3518 am__include='.include' am__quote='"' ;; #( 3519 *) : 3520 am__include='include' am__quote='' ;; 3521esac ;; #( 3522 *) : 3523 ;; 3524esac 3525 if test "$am__include" != "#"; then 3526 _am_result="yes ($s style)" 3527 break 3528 fi 3529done 3530rm -f confinc.* confmf.* 3531{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5 3532printf "%s\n" "${_am_result}" >&6; } 3533 3534# Check whether --enable-dependency-tracking was given. 3535if test ${enable_dependency_tracking+y} 3536then : 3537 enableval=$enable_dependency_tracking; 3538fi 3539 3540if test "x$enable_dependency_tracking" != xno; then 3541 am_depcomp="$ac_aux_dir/depcomp" 3542 AMDEPBACKSLASH='\' 3543 am__nodep='_no' 3544fi 3545 if test "x$enable_dependency_tracking" != xno; then 3546 AMDEP_TRUE= 3547 AMDEP_FALSE='#' 3548else 3549 AMDEP_TRUE='#' 3550 AMDEP_FALSE= 3551fi 3552 3553 3554ac_ext=c 3555ac_cpp='$CPP $CPPFLAGS' 3556ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3557ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3558ac_compiler_gnu=$ac_cv_c_compiler_gnu 3559if test -n "$ac_tool_prefix"; then 3560 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3561set dummy ${ac_tool_prefix}gcc; ac_word=$2 3562{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3563printf %s "checking for $ac_word... " >&6; } 3564if test ${ac_cv_prog_CC+y} 3565then : 3566 printf %s "(cached) " >&6 3567else $as_nop 3568 if test -n "$CC"; then 3569 ac_cv_prog_CC="$CC" # Let the user override the test. 3570else 3571as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3572for as_dir in $PATH 3573do 3574 IFS=$as_save_IFS 3575 case $as_dir in #((( 3576 '') as_dir=./ ;; 3577 */) ;; 3578 *) as_dir=$as_dir/ ;; 3579 esac 3580 for ac_exec_ext in '' $ac_executable_extensions; do 3581 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3582 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3583 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3584 break 2 3585 fi 3586done 3587 done 3588IFS=$as_save_IFS 3589 3590fi 3591fi 3592CC=$ac_cv_prog_CC 3593if test -n "$CC"; then 3594 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3595printf "%s\n" "$CC" >&6; } 3596else 3597 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3598printf "%s\n" "no" >&6; } 3599fi 3600 3601 3602fi 3603if test -z "$ac_cv_prog_CC"; then 3604 ac_ct_CC=$CC 3605 # Extract the first word of "gcc", so it can be a program name with args. 3606set dummy gcc; ac_word=$2 3607{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3608printf %s "checking for $ac_word... " >&6; } 3609if test ${ac_cv_prog_ac_ct_CC+y} 3610then : 3611 printf %s "(cached) " >&6 3612else $as_nop 3613 if test -n "$ac_ct_CC"; then 3614 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3615else 3616as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3617for as_dir in $PATH 3618do 3619 IFS=$as_save_IFS 3620 case $as_dir in #((( 3621 '') as_dir=./ ;; 3622 */) ;; 3623 *) as_dir=$as_dir/ ;; 3624 esac 3625 for ac_exec_ext in '' $ac_executable_extensions; do 3626 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3627 ac_cv_prog_ac_ct_CC="gcc" 3628 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3629 break 2 3630 fi 3631done 3632 done 3633IFS=$as_save_IFS 3634 3635fi 3636fi 3637ac_ct_CC=$ac_cv_prog_ac_ct_CC 3638if test -n "$ac_ct_CC"; then 3639 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3640printf "%s\n" "$ac_ct_CC" >&6; } 3641else 3642 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3643printf "%s\n" "no" >&6; } 3644fi 3645 3646 if test "x$ac_ct_CC" = x; then 3647 CC="" 3648 else 3649 case $cross_compiling:$ac_tool_warned in 3650yes:) 3651{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3652printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3653ac_tool_warned=yes ;; 3654esac 3655 CC=$ac_ct_CC 3656 fi 3657else 3658 CC="$ac_cv_prog_CC" 3659fi 3660 3661if test -z "$CC"; then 3662 if test -n "$ac_tool_prefix"; then 3663 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3664set dummy ${ac_tool_prefix}cc; ac_word=$2 3665{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3666printf %s "checking for $ac_word... " >&6; } 3667if test ${ac_cv_prog_CC+y} 3668then : 3669 printf %s "(cached) " >&6 3670else $as_nop 3671 if test -n "$CC"; then 3672 ac_cv_prog_CC="$CC" # Let the user override the test. 3673else 3674as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3675for as_dir in $PATH 3676do 3677 IFS=$as_save_IFS 3678 case $as_dir in #((( 3679 '') as_dir=./ ;; 3680 */) ;; 3681 *) as_dir=$as_dir/ ;; 3682 esac 3683 for ac_exec_ext in '' $ac_executable_extensions; do 3684 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3685 ac_cv_prog_CC="${ac_tool_prefix}cc" 3686 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3687 break 2 3688 fi 3689done 3690 done 3691IFS=$as_save_IFS 3692 3693fi 3694fi 3695CC=$ac_cv_prog_CC 3696if test -n "$CC"; then 3697 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3698printf "%s\n" "$CC" >&6; } 3699else 3700 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3701printf "%s\n" "no" >&6; } 3702fi 3703 3704 3705 fi 3706fi 3707if test -z "$CC"; then 3708 # Extract the first word of "cc", so it can be a program name with args. 3709set dummy cc; ac_word=$2 3710{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3711printf %s "checking for $ac_word... " >&6; } 3712if test ${ac_cv_prog_CC+y} 3713then : 3714 printf %s "(cached) " >&6 3715else $as_nop 3716 if test -n "$CC"; then 3717 ac_cv_prog_CC="$CC" # Let the user override the test. 3718else 3719 ac_prog_rejected=no 3720as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3721for as_dir in $PATH 3722do 3723 IFS=$as_save_IFS 3724 case $as_dir in #((( 3725 '') as_dir=./ ;; 3726 */) ;; 3727 *) as_dir=$as_dir/ ;; 3728 esac 3729 for ac_exec_ext in '' $ac_executable_extensions; do 3730 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3731 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3732 ac_prog_rejected=yes 3733 continue 3734 fi 3735 ac_cv_prog_CC="cc" 3736 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3737 break 2 3738 fi 3739done 3740 done 3741IFS=$as_save_IFS 3742 3743if test $ac_prog_rejected = yes; then 3744 # We found a bogon in the path, so make sure we never use it. 3745 set dummy $ac_cv_prog_CC 3746 shift 3747 if test $# != 0; then 3748 # We chose a different compiler from the bogus one. 3749 # However, it has the same basename, so the bogon will be chosen 3750 # first if we set CC to just the basename; use the full file name. 3751 shift 3752 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@" 3753 fi 3754fi 3755fi 3756fi 3757CC=$ac_cv_prog_CC 3758if test -n "$CC"; then 3759 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3760printf "%s\n" "$CC" >&6; } 3761else 3762 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3763printf "%s\n" "no" >&6; } 3764fi 3765 3766 3767fi 3768if test -z "$CC"; then 3769 if test -n "$ac_tool_prefix"; then 3770 for ac_prog in cl.exe 3771 do 3772 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3773set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3774{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3775printf %s "checking for $ac_word... " >&6; } 3776if test ${ac_cv_prog_CC+y} 3777then : 3778 printf %s "(cached) " >&6 3779else $as_nop 3780 if test -n "$CC"; then 3781 ac_cv_prog_CC="$CC" # Let the user override the test. 3782else 3783as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3784for as_dir in $PATH 3785do 3786 IFS=$as_save_IFS 3787 case $as_dir in #((( 3788 '') as_dir=./ ;; 3789 */) ;; 3790 *) as_dir=$as_dir/ ;; 3791 esac 3792 for ac_exec_ext in '' $ac_executable_extensions; do 3793 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3794 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3795 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3796 break 2 3797 fi 3798done 3799 done 3800IFS=$as_save_IFS 3801 3802fi 3803fi 3804CC=$ac_cv_prog_CC 3805if test -n "$CC"; then 3806 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3807printf "%s\n" "$CC" >&6; } 3808else 3809 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3810printf "%s\n" "no" >&6; } 3811fi 3812 3813 3814 test -n "$CC" && break 3815 done 3816fi 3817if test -z "$CC"; then 3818 ac_ct_CC=$CC 3819 for ac_prog in cl.exe 3820do 3821 # Extract the first word of "$ac_prog", so it can be a program name with args. 3822set dummy $ac_prog; ac_word=$2 3823{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3824printf %s "checking for $ac_word... " >&6; } 3825if test ${ac_cv_prog_ac_ct_CC+y} 3826then : 3827 printf %s "(cached) " >&6 3828else $as_nop 3829 if test -n "$ac_ct_CC"; then 3830 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3831else 3832as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3833for as_dir in $PATH 3834do 3835 IFS=$as_save_IFS 3836 case $as_dir in #((( 3837 '') as_dir=./ ;; 3838 */) ;; 3839 *) as_dir=$as_dir/ ;; 3840 esac 3841 for ac_exec_ext in '' $ac_executable_extensions; do 3842 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3843 ac_cv_prog_ac_ct_CC="$ac_prog" 3844 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3845 break 2 3846 fi 3847done 3848 done 3849IFS=$as_save_IFS 3850 3851fi 3852fi 3853ac_ct_CC=$ac_cv_prog_ac_ct_CC 3854if test -n "$ac_ct_CC"; then 3855 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3856printf "%s\n" "$ac_ct_CC" >&6; } 3857else 3858 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3859printf "%s\n" "no" >&6; } 3860fi 3861 3862 3863 test -n "$ac_ct_CC" && break 3864done 3865 3866 if test "x$ac_ct_CC" = x; then 3867 CC="" 3868 else 3869 case $cross_compiling:$ac_tool_warned in 3870yes:) 3871{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3872printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3873ac_tool_warned=yes ;; 3874esac 3875 CC=$ac_ct_CC 3876 fi 3877fi 3878 3879fi 3880if test -z "$CC"; then 3881 if test -n "$ac_tool_prefix"; then 3882 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args. 3883set dummy ${ac_tool_prefix}clang; ac_word=$2 3884{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3885printf %s "checking for $ac_word... " >&6; } 3886if test ${ac_cv_prog_CC+y} 3887then : 3888 printf %s "(cached) " >&6 3889else $as_nop 3890 if test -n "$CC"; then 3891 ac_cv_prog_CC="$CC" # Let the user override the test. 3892else 3893as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3894for as_dir in $PATH 3895do 3896 IFS=$as_save_IFS 3897 case $as_dir in #((( 3898 '') as_dir=./ ;; 3899 */) ;; 3900 *) as_dir=$as_dir/ ;; 3901 esac 3902 for ac_exec_ext in '' $ac_executable_extensions; do 3903 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3904 ac_cv_prog_CC="${ac_tool_prefix}clang" 3905 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3906 break 2 3907 fi 3908done 3909 done 3910IFS=$as_save_IFS 3911 3912fi 3913fi 3914CC=$ac_cv_prog_CC 3915if test -n "$CC"; then 3916 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3917printf "%s\n" "$CC" >&6; } 3918else 3919 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3920printf "%s\n" "no" >&6; } 3921fi 3922 3923 3924fi 3925if test -z "$ac_cv_prog_CC"; then 3926 ac_ct_CC=$CC 3927 # Extract the first word of "clang", so it can be a program name with args. 3928set dummy clang; ac_word=$2 3929{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3930printf %s "checking for $ac_word... " >&6; } 3931if test ${ac_cv_prog_ac_ct_CC+y} 3932then : 3933 printf %s "(cached) " >&6 3934else $as_nop 3935 if test -n "$ac_ct_CC"; then 3936 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3937else 3938as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3939for as_dir in $PATH 3940do 3941 IFS=$as_save_IFS 3942 case $as_dir in #((( 3943 '') as_dir=./ ;; 3944 */) ;; 3945 *) as_dir=$as_dir/ ;; 3946 esac 3947 for ac_exec_ext in '' $ac_executable_extensions; do 3948 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3949 ac_cv_prog_ac_ct_CC="clang" 3950 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3951 break 2 3952 fi 3953done 3954 done 3955IFS=$as_save_IFS 3956 3957fi 3958fi 3959ac_ct_CC=$ac_cv_prog_ac_ct_CC 3960if test -n "$ac_ct_CC"; then 3961 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3962printf "%s\n" "$ac_ct_CC" >&6; } 3963else 3964 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3965printf "%s\n" "no" >&6; } 3966fi 3967 3968 if test "x$ac_ct_CC" = x; then 3969 CC="" 3970 else 3971 case $cross_compiling:$ac_tool_warned in 3972yes:) 3973{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3974printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3975ac_tool_warned=yes ;; 3976esac 3977 CC=$ac_ct_CC 3978 fi 3979else 3980 CC="$ac_cv_prog_CC" 3981fi 3982 3983fi 3984 3985 3986test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3987printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3988as_fn_error $? "no acceptable C compiler found in \$PATH 3989See \`config.log' for more details" "$LINENO" 5; } 3990 3991# Provide some information about the compiler. 3992printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3993set X $ac_compile 3994ac_compiler=$2 3995for ac_option in --version -v -V -qversion -version; do 3996 { { ac_try="$ac_compiler $ac_option >&5" 3997case "(($ac_try" in 3998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3999 *) ac_try_echo=$ac_try;; 4000esac 4001eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4002printf "%s\n" "$ac_try_echo"; } >&5 4003 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 4004 ac_status=$? 4005 if test -s conftest.err; then 4006 sed '10a\ 4007... rest of stderr output deleted ... 4008 10q' conftest.err >conftest.er1 4009 cat conftest.er1 >&5 4010 fi 4011 rm -f conftest.er1 conftest.err 4012 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4013 test $ac_status = 0; } 4014done 4015 4016cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4017/* end confdefs.h. */ 4018 4019int 4020main (void) 4021{ 4022 4023 ; 4024 return 0; 4025} 4026_ACEOF 4027ac_clean_files_save=$ac_clean_files 4028ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 4029# Try to create an executable without -o first, disregard a.out. 4030# It will help us diagnose broken compilers, and finding out an intuition 4031# of exeext. 4032{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 4033printf %s "checking whether the C compiler works... " >&6; } 4034ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 4035 4036# The possible output files: 4037ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 4038 4039ac_rmfiles= 4040for ac_file in $ac_files 4041do 4042 case $ac_file in 4043 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 4044 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 4045 esac 4046done 4047rm -f $ac_rmfiles 4048 4049if { { ac_try="$ac_link_default" 4050case "(($ac_try" in 4051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4052 *) ac_try_echo=$ac_try;; 4053esac 4054eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4055printf "%s\n" "$ac_try_echo"; } >&5 4056 (eval "$ac_link_default") 2>&5 4057 ac_status=$? 4058 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4059 test $ac_status = 0; } 4060then : 4061 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 4062# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 4063# in a Makefile. We should not override ac_cv_exeext if it was cached, 4064# so that the user can short-circuit this test for compilers unknown to 4065# Autoconf. 4066for ac_file in $ac_files '' 4067do 4068 test -f "$ac_file" || continue 4069 case $ac_file in 4070 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 4071 ;; 4072 [ab].out ) 4073 # We found the default executable, but exeext='' is most 4074 # certainly right. 4075 break;; 4076 *.* ) 4077 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no; 4078 then :; else 4079 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 4080 fi 4081 # We set ac_cv_exeext here because the later test for it is not 4082 # safe: cross compilers may not add the suffix if given an `-o' 4083 # argument, so we may need to know it at that point already. 4084 # Even if this section looks crufty: it has the advantage of 4085 # actually working. 4086 break;; 4087 * ) 4088 break;; 4089 esac 4090done 4091test "$ac_cv_exeext" = no && ac_cv_exeext= 4092 4093else $as_nop 4094 ac_file='' 4095fi 4096if test -z "$ac_file" 4097then : 4098 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4099printf "%s\n" "no" >&6; } 4100printf "%s\n" "$as_me: failed program was:" >&5 4101sed 's/^/| /' conftest.$ac_ext >&5 4102 4103{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4104printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 4105as_fn_error 77 "C compiler cannot create executables 4106See \`config.log' for more details" "$LINENO" 5; } 4107else $as_nop 4108 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4109printf "%s\n" "yes" >&6; } 4110fi 4111{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 4112printf %s "checking for C compiler default output file name... " >&6; } 4113{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 4114printf "%s\n" "$ac_file" >&6; } 4115ac_exeext=$ac_cv_exeext 4116 4117rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 4118ac_clean_files=$ac_clean_files_save 4119{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 4120printf %s "checking for suffix of executables... " >&6; } 4121if { { ac_try="$ac_link" 4122case "(($ac_try" in 4123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4124 *) ac_try_echo=$ac_try;; 4125esac 4126eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4127printf "%s\n" "$ac_try_echo"; } >&5 4128 (eval "$ac_link") 2>&5 4129 ac_status=$? 4130 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4131 test $ac_status = 0; } 4132then : 4133 # If both `conftest.exe' and `conftest' are `present' (well, observable) 4134# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 4135# work properly (i.e., refer to `conftest.exe'), while it won't with 4136# `rm'. 4137for ac_file in conftest.exe conftest conftest.*; do 4138 test -f "$ac_file" || continue 4139 case $ac_file in 4140 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 4141 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 4142 break;; 4143 * ) break;; 4144 esac 4145done 4146else $as_nop 4147 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4148printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 4149as_fn_error $? "cannot compute suffix of executables: cannot compile and link 4150See \`config.log' for more details" "$LINENO" 5; } 4151fi 4152rm -f conftest conftest$ac_cv_exeext 4153{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 4154printf "%s\n" "$ac_cv_exeext" >&6; } 4155 4156rm -f conftest.$ac_ext 4157EXEEXT=$ac_cv_exeext 4158ac_exeext=$EXEEXT 4159cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4160/* end confdefs.h. */ 4161#include <stdio.h> 4162int 4163main (void) 4164{ 4165FILE *f = fopen ("conftest.out", "w"); 4166 return ferror (f) || fclose (f) != 0; 4167 4168 ; 4169 return 0; 4170} 4171_ACEOF 4172ac_clean_files="$ac_clean_files conftest.out" 4173# Check that the compiler produces executables we can run. If not, either 4174# the compiler is broken, or we cross compile. 4175{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 4176printf %s "checking whether we are cross compiling... " >&6; } 4177if test "$cross_compiling" != yes; then 4178 { { ac_try="$ac_link" 4179case "(($ac_try" in 4180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4181 *) ac_try_echo=$ac_try;; 4182esac 4183eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4184printf "%s\n" "$ac_try_echo"; } >&5 4185 (eval "$ac_link") 2>&5 4186 ac_status=$? 4187 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4188 test $ac_status = 0; } 4189 if { ac_try='./conftest$ac_cv_exeext' 4190 { { case "(($ac_try" in 4191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4192 *) ac_try_echo=$ac_try;; 4193esac 4194eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4195printf "%s\n" "$ac_try_echo"; } >&5 4196 (eval "$ac_try") 2>&5 4197 ac_status=$? 4198 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4199 test $ac_status = 0; }; }; then 4200 cross_compiling=no 4201 else 4202 if test "$cross_compiling" = maybe; then 4203 cross_compiling=yes 4204 else 4205 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4206printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 4207as_fn_error 77 "cannot run C compiled programs. 4208If you meant to cross compile, use \`--host'. 4209See \`config.log' for more details" "$LINENO" 5; } 4210 fi 4211 fi 4212fi 4213{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 4214printf "%s\n" "$cross_compiling" >&6; } 4215 4216rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 4217ac_clean_files=$ac_clean_files_save 4218{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 4219printf %s "checking for suffix of object files... " >&6; } 4220if test ${ac_cv_objext+y} 4221then : 4222 printf %s "(cached) " >&6 4223else $as_nop 4224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4225/* end confdefs.h. */ 4226 4227int 4228main (void) 4229{ 4230 4231 ; 4232 return 0; 4233} 4234_ACEOF 4235rm -f conftest.o conftest.obj 4236if { { ac_try="$ac_compile" 4237case "(($ac_try" in 4238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4239 *) ac_try_echo=$ac_try;; 4240esac 4241eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4242printf "%s\n" "$ac_try_echo"; } >&5 4243 (eval "$ac_compile") 2>&5 4244 ac_status=$? 4245 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4246 test $ac_status = 0; } 4247then : 4248 for ac_file in conftest.o conftest.obj conftest.*; do 4249 test -f "$ac_file" || continue; 4250 case $ac_file in 4251 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 4252 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 4253 break;; 4254 esac 4255done 4256else $as_nop 4257 printf "%s\n" "$as_me: failed program was:" >&5 4258sed 's/^/| /' conftest.$ac_ext >&5 4259 4260{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4261printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 4262as_fn_error $? "cannot compute suffix of object files: cannot compile 4263See \`config.log' for more details" "$LINENO" 5; } 4264fi 4265rm -f conftest.$ac_cv_objext conftest.$ac_ext 4266fi 4267{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 4268printf "%s\n" "$ac_cv_objext" >&6; } 4269OBJEXT=$ac_cv_objext 4270ac_objext=$OBJEXT 4271{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5 4272printf %s "checking whether the compiler supports GNU C... " >&6; } 4273if test ${ac_cv_c_compiler_gnu+y} 4274then : 4275 printf %s "(cached) " >&6 4276else $as_nop 4277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4278/* end confdefs.h. */ 4279 4280int 4281main (void) 4282{ 4283#ifndef __GNUC__ 4284 choke me 4285#endif 4286 4287 ; 4288 return 0; 4289} 4290_ACEOF 4291if ac_fn_c_try_compile "$LINENO" 4292then : 4293 ac_compiler_gnu=yes 4294else $as_nop 4295 ac_compiler_gnu=no 4296fi 4297rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4298ac_cv_c_compiler_gnu=$ac_compiler_gnu 4299 4300fi 4301{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 4302printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; } 4303ac_compiler_gnu=$ac_cv_c_compiler_gnu 4304 4305if test $ac_compiler_gnu = yes; then 4306 GCC=yes 4307else 4308 GCC= 4309fi 4310ac_test_CFLAGS=${CFLAGS+y} 4311ac_save_CFLAGS=$CFLAGS 4312{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 4313printf %s "checking whether $CC accepts -g... " >&6; } 4314if test ${ac_cv_prog_cc_g+y} 4315then : 4316 printf %s "(cached) " >&6 4317else $as_nop 4318 ac_save_c_werror_flag=$ac_c_werror_flag 4319 ac_c_werror_flag=yes 4320 ac_cv_prog_cc_g=no 4321 CFLAGS="-g" 4322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4323/* end confdefs.h. */ 4324 4325int 4326main (void) 4327{ 4328 4329 ; 4330 return 0; 4331} 4332_ACEOF 4333if ac_fn_c_try_compile "$LINENO" 4334then : 4335 ac_cv_prog_cc_g=yes 4336else $as_nop 4337 CFLAGS="" 4338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4339/* end confdefs.h. */ 4340 4341int 4342main (void) 4343{ 4344 4345 ; 4346 return 0; 4347} 4348_ACEOF 4349if ac_fn_c_try_compile "$LINENO" 4350then : 4351 4352else $as_nop 4353 ac_c_werror_flag=$ac_save_c_werror_flag 4354 CFLAGS="-g" 4355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4356/* end confdefs.h. */ 4357 4358int 4359main (void) 4360{ 4361 4362 ; 4363 return 0; 4364} 4365_ACEOF 4366if ac_fn_c_try_compile "$LINENO" 4367then : 4368 ac_cv_prog_cc_g=yes 4369fi 4370rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4371fi 4372rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4373fi 4374rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4375 ac_c_werror_flag=$ac_save_c_werror_flag 4376fi 4377{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 4378printf "%s\n" "$ac_cv_prog_cc_g" >&6; } 4379if test $ac_test_CFLAGS; then 4380 CFLAGS=$ac_save_CFLAGS 4381elif test $ac_cv_prog_cc_g = yes; then 4382 if test "$GCC" = yes; then 4383 CFLAGS="-g -O2" 4384 else 4385 CFLAGS="-g" 4386 fi 4387else 4388 if test "$GCC" = yes; then 4389 CFLAGS="-O2" 4390 else 4391 CFLAGS= 4392 fi 4393fi 4394ac_prog_cc_stdc=no 4395if test x$ac_prog_cc_stdc = xno 4396then : 4397 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5 4398printf %s "checking for $CC option to enable C11 features... " >&6; } 4399if test ${ac_cv_prog_cc_c11+y} 4400then : 4401 printf %s "(cached) " >&6 4402else $as_nop 4403 ac_cv_prog_cc_c11=no 4404ac_save_CC=$CC 4405cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4406/* end confdefs.h. */ 4407$ac_c_conftest_c11_program 4408_ACEOF 4409for ac_arg in '' -std=gnu11 4410do 4411 CC="$ac_save_CC $ac_arg" 4412 if ac_fn_c_try_compile "$LINENO" 4413then : 4414 ac_cv_prog_cc_c11=$ac_arg 4415fi 4416rm -f core conftest.err conftest.$ac_objext conftest.beam 4417 test "x$ac_cv_prog_cc_c11" != "xno" && break 4418done 4419rm -f conftest.$ac_ext 4420CC=$ac_save_CC 4421fi 4422 4423if test "x$ac_cv_prog_cc_c11" = xno 4424then : 4425 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4426printf "%s\n" "unsupported" >&6; } 4427else $as_nop 4428 if test "x$ac_cv_prog_cc_c11" = x 4429then : 4430 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4431printf "%s\n" "none needed" >&6; } 4432else $as_nop 4433 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5 4434printf "%s\n" "$ac_cv_prog_cc_c11" >&6; } 4435 CC="$CC $ac_cv_prog_cc_c11" 4436fi 4437 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11 4438 ac_prog_cc_stdc=c11 4439fi 4440fi 4441if test x$ac_prog_cc_stdc = xno 4442then : 4443 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5 4444printf %s "checking for $CC option to enable C99 features... " >&6; } 4445if test ${ac_cv_prog_cc_c99+y} 4446then : 4447 printf %s "(cached) " >&6 4448else $as_nop 4449 ac_cv_prog_cc_c99=no 4450ac_save_CC=$CC 4451cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4452/* end confdefs.h. */ 4453$ac_c_conftest_c99_program 4454_ACEOF 4455for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99= 4456do 4457 CC="$ac_save_CC $ac_arg" 4458 if ac_fn_c_try_compile "$LINENO" 4459then : 4460 ac_cv_prog_cc_c99=$ac_arg 4461fi 4462rm -f core conftest.err conftest.$ac_objext conftest.beam 4463 test "x$ac_cv_prog_cc_c99" != "xno" && break 4464done 4465rm -f conftest.$ac_ext 4466CC=$ac_save_CC 4467fi 4468 4469if test "x$ac_cv_prog_cc_c99" = xno 4470then : 4471 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4472printf "%s\n" "unsupported" >&6; } 4473else $as_nop 4474 if test "x$ac_cv_prog_cc_c99" = x 4475then : 4476 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4477printf "%s\n" "none needed" >&6; } 4478else $as_nop 4479 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 4480printf "%s\n" "$ac_cv_prog_cc_c99" >&6; } 4481 CC="$CC $ac_cv_prog_cc_c99" 4482fi 4483 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 4484 ac_prog_cc_stdc=c99 4485fi 4486fi 4487if test x$ac_prog_cc_stdc = xno 4488then : 4489 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5 4490printf %s "checking for $CC option to enable C89 features... " >&6; } 4491if test ${ac_cv_prog_cc_c89+y} 4492then : 4493 printf %s "(cached) " >&6 4494else $as_nop 4495 ac_cv_prog_cc_c89=no 4496ac_save_CC=$CC 4497cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4498/* end confdefs.h. */ 4499$ac_c_conftest_c89_program 4500_ACEOF 4501for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4502do 4503 CC="$ac_save_CC $ac_arg" 4504 if ac_fn_c_try_compile "$LINENO" 4505then : 4506 ac_cv_prog_cc_c89=$ac_arg 4507fi 4508rm -f core conftest.err conftest.$ac_objext conftest.beam 4509 test "x$ac_cv_prog_cc_c89" != "xno" && break 4510done 4511rm -f conftest.$ac_ext 4512CC=$ac_save_CC 4513fi 4514 4515if test "x$ac_cv_prog_cc_c89" = xno 4516then : 4517 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4518printf "%s\n" "unsupported" >&6; } 4519else $as_nop 4520 if test "x$ac_cv_prog_cc_c89" = x 4521then : 4522 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4523printf "%s\n" "none needed" >&6; } 4524else $as_nop 4525 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4526printf "%s\n" "$ac_cv_prog_cc_c89" >&6; } 4527 CC="$CC $ac_cv_prog_cc_c89" 4528fi 4529 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 4530 ac_prog_cc_stdc=c89 4531fi 4532fi 4533 4534ac_ext=c 4535ac_cpp='$CPP $CPPFLAGS' 4536ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4537ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4538ac_compiler_gnu=$ac_cv_c_compiler_gnu 4539 4540 4541 ac_ext=c 4542ac_cpp='$CPP $CPPFLAGS' 4543ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4544ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4545ac_compiler_gnu=$ac_cv_c_compiler_gnu 4546{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 4547printf %s "checking whether $CC understands -c and -o together... " >&6; } 4548if test ${am_cv_prog_cc_c_o+y} 4549then : 4550 printf %s "(cached) " >&6 4551else $as_nop 4552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4553/* end confdefs.h. */ 4554 4555int 4556main (void) 4557{ 4558 4559 ; 4560 return 0; 4561} 4562_ACEOF 4563 # Make sure it works both with $CC and with simple cc. 4564 # Following AC_PROG_CC_C_O, we do the test twice because some 4565 # compilers refuse to overwrite an existing .o file with -o, 4566 # though they will create one. 4567 am_cv_prog_cc_c_o=yes 4568 for am_i in 1 2; do 4569 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 4570 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 4571 ac_status=$? 4572 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4573 (exit $ac_status); } \ 4574 && test -f conftest2.$ac_objext; then 4575 : OK 4576 else 4577 am_cv_prog_cc_c_o=no 4578 break 4579 fi 4580 done 4581 rm -f core conftest* 4582 unset am_i 4583fi 4584{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 4585printf "%s\n" "$am_cv_prog_cc_c_o" >&6; } 4586if test "$am_cv_prog_cc_c_o" != yes; then 4587 # Losing compiler, so override with the script. 4588 # FIXME: It is wrong to rewrite CC. 4589 # But if we don't then we get into trouble of one sort or another. 4590 # A longer-term fix would be to have automake use am__CC in this case, 4591 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 4592 CC="$am_aux_dir/compile $CC" 4593fi 4594ac_ext=c 4595ac_cpp='$CPP $CPPFLAGS' 4596ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4597ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4598ac_compiler_gnu=$ac_cv_c_compiler_gnu 4599 4600 4601depcc="$CC" am_compiler_list= 4602 4603{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4604printf %s "checking dependency style of $depcc... " >&6; } 4605if test ${am_cv_CC_dependencies_compiler_type+y} 4606then : 4607 printf %s "(cached) " >&6 4608else $as_nop 4609 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4610 # We make a subdir and do the tests there. Otherwise we can end up 4611 # making bogus files that we don't know about and never remove. For 4612 # instance it was reported that on HP-UX the gcc test will end up 4613 # making a dummy file named 'D' -- because '-MD' means "put the output 4614 # in D". 4615 rm -rf conftest.dir 4616 mkdir conftest.dir 4617 # Copy depcomp to subdir because otherwise we won't find it if we're 4618 # using a relative directory. 4619 cp "$am_depcomp" conftest.dir 4620 cd conftest.dir 4621 # We will build objects and dependencies in a subdirectory because 4622 # it helps to detect inapplicable dependency modes. For instance 4623 # both Tru64's cc and ICC support -MD to output dependencies as a 4624 # side effect of compilation, but ICC will put the dependencies in 4625 # the current directory while Tru64 will put them in the object 4626 # directory. 4627 mkdir sub 4628 4629 am_cv_CC_dependencies_compiler_type=none 4630 if test "$am_compiler_list" = ""; then 4631 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4632 fi 4633 am__universal=false 4634 case " $depcc " in #( 4635 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4636 esac 4637 4638 for depmode in $am_compiler_list; do 4639 # Setup a source with many dependencies, because some compilers 4640 # like to wrap large dependency lists on column 80 (with \), and 4641 # we should not choose a depcomp mode which is confused by this. 4642 # 4643 # We need to recreate these files for each test, as the compiler may 4644 # overwrite some of them when testing with obscure command lines. 4645 # This happens at least with the AIX C compiler. 4646 : > sub/conftest.c 4647 for i in 1 2 3 4 5 6; do 4648 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4649 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4650 # Solaris 10 /bin/sh. 4651 echo '/* dummy */' > sub/conftst$i.h 4652 done 4653 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4654 4655 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4656 # mode. It turns out that the SunPro C++ compiler does not properly 4657 # handle '-M -o', and we need to detect this. Also, some Intel 4658 # versions had trouble with output in subdirs. 4659 am__obj=sub/conftest.${OBJEXT-o} 4660 am__minus_obj="-o $am__obj" 4661 case $depmode in 4662 gcc) 4663 # This depmode causes a compiler race in universal mode. 4664 test "$am__universal" = false || continue 4665 ;; 4666 nosideeffect) 4667 # After this tag, mechanisms are not by side-effect, so they'll 4668 # only be used when explicitly requested. 4669 if test "x$enable_dependency_tracking" = xyes; then 4670 continue 4671 else 4672 break 4673 fi 4674 ;; 4675 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4676 # This compiler won't grok '-c -o', but also, the minuso test has 4677 # not run yet. These depmodes are late enough in the game, and 4678 # so weak that their functioning should not be impacted. 4679 am__obj=conftest.${OBJEXT-o} 4680 am__minus_obj= 4681 ;; 4682 none) break ;; 4683 esac 4684 if depmode=$depmode \ 4685 source=sub/conftest.c object=$am__obj \ 4686 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4687 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4688 >/dev/null 2>conftest.err && 4689 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4690 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4691 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4692 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4693 # icc doesn't choke on unknown options, it will just issue warnings 4694 # or remarks (even with -Werror). So we grep stderr for any message 4695 # that says an option was ignored or not supported. 4696 # When given -MP, icc 7.0 and 7.1 complain thusly: 4697 # icc: Command line warning: ignoring option '-M'; no argument required 4698 # The diagnosis changed in icc 8.0: 4699 # icc: Command line remark: option '-MP' not supported 4700 if (grep 'ignoring option' conftest.err || 4701 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4702 am_cv_CC_dependencies_compiler_type=$depmode 4703 break 4704 fi 4705 fi 4706 done 4707 4708 cd .. 4709 rm -rf conftest.dir 4710else 4711 am_cv_CC_dependencies_compiler_type=none 4712fi 4713 4714fi 4715{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4716printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; } 4717CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4718 4719 if 4720 test "x$enable_dependency_tracking" != xno \ 4721 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4722 am__fastdepCC_TRUE= 4723 am__fastdepCC_FALSE='#' 4724else 4725 am__fastdepCC_TRUE='#' 4726 am__fastdepCC_FALSE= 4727fi 4728 4729 4730{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4731printf %s "checking for a sed that does not truncate output... " >&6; } 4732if test ${ac_cv_path_SED+y} 4733then : 4734 printf %s "(cached) " >&6 4735else $as_nop 4736 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4737 for ac_i in 1 2 3 4 5 6 7; do 4738 ac_script="$ac_script$as_nl$ac_script" 4739 done 4740 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4741 { ac_script=; unset ac_script;} 4742 if test -z "$SED"; then 4743 ac_path_SED_found=false 4744 # Loop through the user's path and test for each of PROGNAME-LIST 4745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4746for as_dir in $PATH 4747do 4748 IFS=$as_save_IFS 4749 case $as_dir in #((( 4750 '') as_dir=./ ;; 4751 */) ;; 4752 *) as_dir=$as_dir/ ;; 4753 esac 4754 for ac_prog in sed gsed 4755 do 4756 for ac_exec_ext in '' $ac_executable_extensions; do 4757 ac_path_SED="$as_dir$ac_prog$ac_exec_ext" 4758 as_fn_executable_p "$ac_path_SED" || continue 4759# Check for GNU ac_path_SED and select it if it is found. 4760 # Check for GNU $ac_path_SED 4761case `"$ac_path_SED" --version 2>&1` in 4762*GNU*) 4763 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4764*) 4765 ac_count=0 4766 printf %s 0123456789 >"conftest.in" 4767 while : 4768 do 4769 cat "conftest.in" "conftest.in" >"conftest.tmp" 4770 mv "conftest.tmp" "conftest.in" 4771 cp "conftest.in" "conftest.nl" 4772 printf "%s\n" '' >> "conftest.nl" 4773 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4774 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4775 as_fn_arith $ac_count + 1 && ac_count=$as_val 4776 if test $ac_count -gt ${ac_path_SED_max-0}; then 4777 # Best one so far, save it but keep looking for a better one 4778 ac_cv_path_SED="$ac_path_SED" 4779 ac_path_SED_max=$ac_count 4780 fi 4781 # 10*(2^10) chars as input seems more than enough 4782 test $ac_count -gt 10 && break 4783 done 4784 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4785esac 4786 4787 $ac_path_SED_found && break 3 4788 done 4789 done 4790 done 4791IFS=$as_save_IFS 4792 if test -z "$ac_cv_path_SED"; then 4793 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 4794 fi 4795else 4796 ac_cv_path_SED=$SED 4797fi 4798 4799fi 4800{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4801printf "%s\n" "$ac_cv_path_SED" >&6; } 4802 SED="$ac_cv_path_SED" 4803 rm -f conftest.sed 4804 4805test -z "$SED" && SED=sed 4806Xsed="$SED -e 1s/^X//" 4807 4808 4809 4810 4811 4812 4813 4814 4815 4816 4817 4818{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4819printf %s "checking for grep that handles long lines and -e... " >&6; } 4820if test ${ac_cv_path_GREP+y} 4821then : 4822 printf %s "(cached) " >&6 4823else $as_nop 4824 if test -z "$GREP"; then 4825 ac_path_GREP_found=false 4826 # Loop through the user's path and test for each of PROGNAME-LIST 4827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4828for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4829do 4830 IFS=$as_save_IFS 4831 case $as_dir in #((( 4832 '') as_dir=./ ;; 4833 */) ;; 4834 *) as_dir=$as_dir/ ;; 4835 esac 4836 for ac_prog in grep ggrep 4837 do 4838 for ac_exec_ext in '' $ac_executable_extensions; do 4839 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext" 4840 as_fn_executable_p "$ac_path_GREP" || continue 4841# Check for GNU ac_path_GREP and select it if it is found. 4842 # Check for GNU $ac_path_GREP 4843case `"$ac_path_GREP" --version 2>&1` in 4844*GNU*) 4845 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4846*) 4847 ac_count=0 4848 printf %s 0123456789 >"conftest.in" 4849 while : 4850 do 4851 cat "conftest.in" "conftest.in" >"conftest.tmp" 4852 mv "conftest.tmp" "conftest.in" 4853 cp "conftest.in" "conftest.nl" 4854 printf "%s\n" 'GREP' >> "conftest.nl" 4855 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4856 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4857 as_fn_arith $ac_count + 1 && ac_count=$as_val 4858 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4859 # Best one so far, save it but keep looking for a better one 4860 ac_cv_path_GREP="$ac_path_GREP" 4861 ac_path_GREP_max=$ac_count 4862 fi 4863 # 10*(2^10) chars as input seems more than enough 4864 test $ac_count -gt 10 && break 4865 done 4866 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4867esac 4868 4869 $ac_path_GREP_found && break 3 4870 done 4871 done 4872 done 4873IFS=$as_save_IFS 4874 if test -z "$ac_cv_path_GREP"; then 4875 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4876 fi 4877else 4878 ac_cv_path_GREP=$GREP 4879fi 4880 4881fi 4882{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4883printf "%s\n" "$ac_cv_path_GREP" >&6; } 4884 GREP="$ac_cv_path_GREP" 4885 4886 4887{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4888printf %s "checking for egrep... " >&6; } 4889if test ${ac_cv_path_EGREP+y} 4890then : 4891 printf %s "(cached) " >&6 4892else $as_nop 4893 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4894 then ac_cv_path_EGREP="$GREP -E" 4895 else 4896 if test -z "$EGREP"; then 4897 ac_path_EGREP_found=false 4898 # Loop through the user's path and test for each of PROGNAME-LIST 4899 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4900for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4901do 4902 IFS=$as_save_IFS 4903 case $as_dir in #((( 4904 '') as_dir=./ ;; 4905 */) ;; 4906 *) as_dir=$as_dir/ ;; 4907 esac 4908 for ac_prog in egrep 4909 do 4910 for ac_exec_ext in '' $ac_executable_extensions; do 4911 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext" 4912 as_fn_executable_p "$ac_path_EGREP" || continue 4913# Check for GNU ac_path_EGREP and select it if it is found. 4914 # Check for GNU $ac_path_EGREP 4915case `"$ac_path_EGREP" --version 2>&1` in 4916*GNU*) 4917 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4918*) 4919 ac_count=0 4920 printf %s 0123456789 >"conftest.in" 4921 while : 4922 do 4923 cat "conftest.in" "conftest.in" >"conftest.tmp" 4924 mv "conftest.tmp" "conftest.in" 4925 cp "conftest.in" "conftest.nl" 4926 printf "%s\n" 'EGREP' >> "conftest.nl" 4927 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4928 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4929 as_fn_arith $ac_count + 1 && ac_count=$as_val 4930 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4931 # Best one so far, save it but keep looking for a better one 4932 ac_cv_path_EGREP="$ac_path_EGREP" 4933 ac_path_EGREP_max=$ac_count 4934 fi 4935 # 10*(2^10) chars as input seems more than enough 4936 test $ac_count -gt 10 && break 4937 done 4938 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4939esac 4940 4941 $ac_path_EGREP_found && break 3 4942 done 4943 done 4944 done 4945IFS=$as_save_IFS 4946 if test -z "$ac_cv_path_EGREP"; then 4947 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4948 fi 4949else 4950 ac_cv_path_EGREP=$EGREP 4951fi 4952 4953 fi 4954fi 4955{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4956printf "%s\n" "$ac_cv_path_EGREP" >&6; } 4957 EGREP="$ac_cv_path_EGREP" 4958 4959 4960{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 4961printf %s "checking for fgrep... " >&6; } 4962if test ${ac_cv_path_FGREP+y} 4963then : 4964 printf %s "(cached) " >&6 4965else $as_nop 4966 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 4967 then ac_cv_path_FGREP="$GREP -F" 4968 else 4969 if test -z "$FGREP"; then 4970 ac_path_FGREP_found=false 4971 # Loop through the user's path and test for each of PROGNAME-LIST 4972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4973for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4974do 4975 IFS=$as_save_IFS 4976 case $as_dir in #((( 4977 '') as_dir=./ ;; 4978 */) ;; 4979 *) as_dir=$as_dir/ ;; 4980 esac 4981 for ac_prog in fgrep 4982 do 4983 for ac_exec_ext in '' $ac_executable_extensions; do 4984 ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext" 4985 as_fn_executable_p "$ac_path_FGREP" || continue 4986# Check for GNU ac_path_FGREP and select it if it is found. 4987 # Check for GNU $ac_path_FGREP 4988case `"$ac_path_FGREP" --version 2>&1` in 4989*GNU*) 4990 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 4991*) 4992 ac_count=0 4993 printf %s 0123456789 >"conftest.in" 4994 while : 4995 do 4996 cat "conftest.in" "conftest.in" >"conftest.tmp" 4997 mv "conftest.tmp" "conftest.in" 4998 cp "conftest.in" "conftest.nl" 4999 printf "%s\n" 'FGREP' >> "conftest.nl" 5000 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 5001 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5002 as_fn_arith $ac_count + 1 && ac_count=$as_val 5003 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 5004 # Best one so far, save it but keep looking for a better one 5005 ac_cv_path_FGREP="$ac_path_FGREP" 5006 ac_path_FGREP_max=$ac_count 5007 fi 5008 # 10*(2^10) chars as input seems more than enough 5009 test $ac_count -gt 10 && break 5010 done 5011 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5012esac 5013 5014 $ac_path_FGREP_found && break 3 5015 done 5016 done 5017 done 5018IFS=$as_save_IFS 5019 if test -z "$ac_cv_path_FGREP"; then 5020 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5021 fi 5022else 5023 ac_cv_path_FGREP=$FGREP 5024fi 5025 5026 fi 5027fi 5028{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 5029printf "%s\n" "$ac_cv_path_FGREP" >&6; } 5030 FGREP="$ac_cv_path_FGREP" 5031 5032 5033test -z "$GREP" && GREP=grep 5034 5035 5036 5037 5038 5039 5040 5041 5042 5043 5044 5045 5046 5047 5048 5049 5050 5051 5052 5053# Check whether --with-gnu-ld was given. 5054if test ${with_gnu_ld+y} 5055then : 5056 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 5057else $as_nop 5058 with_gnu_ld=no 5059fi 5060 5061ac_prog=ld 5062if test yes = "$GCC"; then 5063 # Check if gcc -print-prog-name=ld gives a path. 5064 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 5065printf %s "checking for ld used by $CC... " >&6; } 5066 case $host in 5067 *-*-mingw*) 5068 # gcc leaves a trailing carriage return, which upsets mingw 5069 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 5070 *) 5071 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 5072 esac 5073 case $ac_prog in 5074 # Accept absolute paths. 5075 [\\/]* | ?:[\\/]*) 5076 re_direlt='/[^/][^/]*/\.\./' 5077 # Canonicalize the pathname of ld 5078 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 5079 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 5080 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 5081 done 5082 test -z "$LD" && LD=$ac_prog 5083 ;; 5084 "") 5085 # If it fails, then pretend we aren't using GCC. 5086 ac_prog=ld 5087 ;; 5088 *) 5089 # If it is relative, then search for the first ld in PATH. 5090 with_gnu_ld=unknown 5091 ;; 5092 esac 5093elif test yes = "$with_gnu_ld"; then 5094 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 5095printf %s "checking for GNU ld... " >&6; } 5096else 5097 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 5098printf %s "checking for non-GNU ld... " >&6; } 5099fi 5100if test ${lt_cv_path_LD+y} 5101then : 5102 printf %s "(cached) " >&6 5103else $as_nop 5104 if test -z "$LD"; then 5105 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 5106 for ac_dir in $PATH; do 5107 IFS=$lt_save_ifs 5108 test -z "$ac_dir" && ac_dir=. 5109 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 5110 lt_cv_path_LD=$ac_dir/$ac_prog 5111 # Check to see if the program is GNU ld. I'd rather use --version, 5112 # but apparently some variants of GNU ld only accept -v. 5113 # Break only if it was the GNU/non-GNU ld that we prefer. 5114 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 5115 *GNU* | *'with BFD'*) 5116 test no != "$with_gnu_ld" && break 5117 ;; 5118 *) 5119 test yes != "$with_gnu_ld" && break 5120 ;; 5121 esac 5122 fi 5123 done 5124 IFS=$lt_save_ifs 5125else 5126 lt_cv_path_LD=$LD # Let the user override the test with a path. 5127fi 5128fi 5129 5130LD=$lt_cv_path_LD 5131if test -n "$LD"; then 5132 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 5133printf "%s\n" "$LD" >&6; } 5134else 5135 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5136printf "%s\n" "no" >&6; } 5137fi 5138test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 5139{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 5140printf %s "checking if the linker ($LD) is GNU ld... " >&6; } 5141if test ${lt_cv_prog_gnu_ld+y} 5142then : 5143 printf %s "(cached) " >&6 5144else $as_nop 5145 # I'd rather use --version here, but apparently some GNU lds only accept -v. 5146case `$LD -v 2>&1 </dev/null` in 5147*GNU* | *'with BFD'*) 5148 lt_cv_prog_gnu_ld=yes 5149 ;; 5150*) 5151 lt_cv_prog_gnu_ld=no 5152 ;; 5153esac 5154fi 5155{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 5156printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; } 5157with_gnu_ld=$lt_cv_prog_gnu_ld 5158 5159 5160 5161 5162 5163 5164 5165 5166 5167{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 5168printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 5169if test ${lt_cv_path_NM+y} 5170then : 5171 printf %s "(cached) " >&6 5172else $as_nop 5173 if test -n "$NM"; then 5174 # Let the user override the test. 5175 lt_cv_path_NM=$NM 5176else 5177 lt_nm_to_check=${ac_tool_prefix}nm 5178 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 5179 lt_nm_to_check="$lt_nm_to_check nm" 5180 fi 5181 for lt_tmp_nm in $lt_nm_to_check; do 5182 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 5183 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 5184 IFS=$lt_save_ifs 5185 test -z "$ac_dir" && ac_dir=. 5186 tmp_nm=$ac_dir/$lt_tmp_nm 5187 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then 5188 # Check to see if the nm accepts a BSD-compat flag. 5189 # Adding the 'sed 1q' prevents false positives on HP-UX, which says: 5190 # nm: unknown option "B" ignored 5191 # Tru64's nm complains that /dev/null is an invalid object file 5192 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty 5193 case $build_os in 5194 mingw*) lt_bad_file=conftest.nm/nofile ;; 5195 *) lt_bad_file=/dev/null ;; 5196 esac 5197 case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in 5198 *$lt_bad_file* | *'Invalid file or object type'*) 5199 lt_cv_path_NM="$tmp_nm -B" 5200 break 2 5201 ;; 5202 *) 5203 case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in 5204 */dev/null*) 5205 lt_cv_path_NM="$tmp_nm -p" 5206 break 2 5207 ;; 5208 *) 5209 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 5210 continue # so that we can try to find one that supports BSD flags 5211 ;; 5212 esac 5213 ;; 5214 esac 5215 fi 5216 done 5217 IFS=$lt_save_ifs 5218 done 5219 : ${lt_cv_path_NM=no} 5220fi 5221fi 5222{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 5223printf "%s\n" "$lt_cv_path_NM" >&6; } 5224if test no != "$lt_cv_path_NM"; then 5225 NM=$lt_cv_path_NM 5226else 5227 # Didn't find any BSD compatible name lister, look for dumpbin. 5228 if test -n "$DUMPBIN"; then : 5229 # Let the user override the test. 5230 else 5231 if test -n "$ac_tool_prefix"; then 5232 for ac_prog in dumpbin "link -dump" 5233 do 5234 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5235set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5236{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5237printf %s "checking for $ac_word... " >&6; } 5238if test ${ac_cv_prog_DUMPBIN+y} 5239then : 5240 printf %s "(cached) " >&6 5241else $as_nop 5242 if test -n "$DUMPBIN"; then 5243 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 5244else 5245as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5246for as_dir in $PATH 5247do 5248 IFS=$as_save_IFS 5249 case $as_dir in #((( 5250 '') as_dir=./ ;; 5251 */) ;; 5252 *) as_dir=$as_dir/ ;; 5253 esac 5254 for ac_exec_ext in '' $ac_executable_extensions; do 5255 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5256 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 5257 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5258 break 2 5259 fi 5260done 5261 done 5262IFS=$as_save_IFS 5263 5264fi 5265fi 5266DUMPBIN=$ac_cv_prog_DUMPBIN 5267if test -n "$DUMPBIN"; then 5268 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 5269printf "%s\n" "$DUMPBIN" >&6; } 5270else 5271 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5272printf "%s\n" "no" >&6; } 5273fi 5274 5275 5276 test -n "$DUMPBIN" && break 5277 done 5278fi 5279if test -z "$DUMPBIN"; then 5280 ac_ct_DUMPBIN=$DUMPBIN 5281 for ac_prog in dumpbin "link -dump" 5282do 5283 # Extract the first word of "$ac_prog", so it can be a program name with args. 5284set dummy $ac_prog; ac_word=$2 5285{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5286printf %s "checking for $ac_word... " >&6; } 5287if test ${ac_cv_prog_ac_ct_DUMPBIN+y} 5288then : 5289 printf %s "(cached) " >&6 5290else $as_nop 5291 if test -n "$ac_ct_DUMPBIN"; then 5292 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 5293else 5294as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5295for as_dir in $PATH 5296do 5297 IFS=$as_save_IFS 5298 case $as_dir in #((( 5299 '') as_dir=./ ;; 5300 */) ;; 5301 *) as_dir=$as_dir/ ;; 5302 esac 5303 for ac_exec_ext in '' $ac_executable_extensions; do 5304 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5305 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 5306 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5307 break 2 5308 fi 5309done 5310 done 5311IFS=$as_save_IFS 5312 5313fi 5314fi 5315ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 5316if test -n "$ac_ct_DUMPBIN"; then 5317 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 5318printf "%s\n" "$ac_ct_DUMPBIN" >&6; } 5319else 5320 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5321printf "%s\n" "no" >&6; } 5322fi 5323 5324 5325 test -n "$ac_ct_DUMPBIN" && break 5326done 5327 5328 if test "x$ac_ct_DUMPBIN" = x; then 5329 DUMPBIN=":" 5330 else 5331 case $cross_compiling:$ac_tool_warned in 5332yes:) 5333{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5334printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5335ac_tool_warned=yes ;; 5336esac 5337 DUMPBIN=$ac_ct_DUMPBIN 5338 fi 5339fi 5340 5341 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in 5342 *COFF*) 5343 DUMPBIN="$DUMPBIN -symbols -headers" 5344 ;; 5345 *) 5346 DUMPBIN=: 5347 ;; 5348 esac 5349 fi 5350 5351 if test : != "$DUMPBIN"; then 5352 NM=$DUMPBIN 5353 fi 5354fi 5355test -z "$NM" && NM=nm 5356 5357 5358 5359 5360 5361 5362{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 5363printf %s "checking the name lister ($NM) interface... " >&6; } 5364if test ${lt_cv_nm_interface+y} 5365then : 5366 printf %s "(cached) " >&6 5367else $as_nop 5368 lt_cv_nm_interface="BSD nm" 5369 echo "int some_variable = 0;" > conftest.$ac_ext 5370 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 5371 (eval "$ac_compile" 2>conftest.err) 5372 cat conftest.err >&5 5373 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 5374 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 5375 cat conftest.err >&5 5376 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 5377 cat conftest.out >&5 5378 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 5379 lt_cv_nm_interface="MS dumpbin" 5380 fi 5381 rm -f conftest* 5382fi 5383{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 5384printf "%s\n" "$lt_cv_nm_interface" >&6; } 5385 5386{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 5387printf %s "checking whether ln -s works... " >&6; } 5388LN_S=$as_ln_s 5389if test "$LN_S" = "ln -s"; then 5390 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5391printf "%s\n" "yes" >&6; } 5392else 5393 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 5394printf "%s\n" "no, using $LN_S" >&6; } 5395fi 5396 5397# find the maximum length of command line arguments 5398{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 5399printf %s "checking the maximum length of command line arguments... " >&6; } 5400if test ${lt_cv_sys_max_cmd_len+y} 5401then : 5402 printf %s "(cached) " >&6 5403else $as_nop 5404 i=0 5405 teststring=ABCD 5406 5407 case $build_os in 5408 msdosdjgpp*) 5409 # On DJGPP, this test can blow up pretty badly due to problems in libc 5410 # (any single argument exceeding 2000 bytes causes a buffer overrun 5411 # during glob expansion). Even if it were fixed, the result of this 5412 # check would be larger than it should be. 5413 lt_cv_sys_max_cmd_len=12288; # 12K is about right 5414 ;; 5415 5416 gnu*) 5417 # Under GNU Hurd, this test is not required because there is 5418 # no limit to the length of command line arguments. 5419 # Libtool will interpret -1 as no limit whatsoever 5420 lt_cv_sys_max_cmd_len=-1; 5421 ;; 5422 5423 cygwin* | mingw* | cegcc*) 5424 # On Win9x/ME, this test blows up -- it succeeds, but takes 5425 # about 5 minutes as the teststring grows exponentially. 5426 # Worse, since 9x/ME are not pre-emptively multitasking, 5427 # you end up with a "frozen" computer, even though with patience 5428 # the test eventually succeeds (with a max line length of 256k). 5429 # Instead, let's just punt: use the minimum linelength reported by 5430 # all of the supported platforms: 8192 (on NT/2K/XP). 5431 lt_cv_sys_max_cmd_len=8192; 5432 ;; 5433 5434 mint*) 5435 # On MiNT this can take a long time and run out of memory. 5436 lt_cv_sys_max_cmd_len=8192; 5437 ;; 5438 5439 amigaos*) 5440 # On AmigaOS with pdksh, this test takes hours, literally. 5441 # So we just punt and use a minimum line length of 8192. 5442 lt_cv_sys_max_cmd_len=8192; 5443 ;; 5444 5445 bitrig* | darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*) 5446 # This has been around since 386BSD, at least. Likely further. 5447 if test -x /sbin/sysctl; then 5448 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 5449 elif test -x /usr/sbin/sysctl; then 5450 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 5451 else 5452 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 5453 fi 5454 # And add a safety zone 5455 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5456 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5457 ;; 5458 5459 interix*) 5460 # We know the value 262144 and hardcode it with a safety zone (like BSD) 5461 lt_cv_sys_max_cmd_len=196608 5462 ;; 5463 5464 os2*) 5465 # The test takes a long time on OS/2. 5466 lt_cv_sys_max_cmd_len=8192 5467 ;; 5468 5469 osf*) 5470 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 5471 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 5472 # nice to cause kernel panics so lets avoid the loop below. 5473 # First set a reasonable default. 5474 lt_cv_sys_max_cmd_len=16384 5475 # 5476 if test -x /sbin/sysconfig; then 5477 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 5478 *1*) lt_cv_sys_max_cmd_len=-1 ;; 5479 esac 5480 fi 5481 ;; 5482 sco3.2v5*) 5483 lt_cv_sys_max_cmd_len=102400 5484 ;; 5485 sysv5* | sco5v6* | sysv4.2uw2*) 5486 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 5487 if test -n "$kargmax"; then 5488 lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[ ]//'` 5489 else 5490 lt_cv_sys_max_cmd_len=32768 5491 fi 5492 ;; 5493 *) 5494 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 5495 if test -n "$lt_cv_sys_max_cmd_len" && \ 5496 test undefined != "$lt_cv_sys_max_cmd_len"; then 5497 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5498 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5499 else 5500 # Make teststring a little bigger before we do anything with it. 5501 # a 1K string should be a reasonable start. 5502 for i in 1 2 3 4 5 6 7 8; do 5503 teststring=$teststring$teststring 5504 done 5505 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 5506 # If test is not a shell built-in, we'll probably end up computing a 5507 # maximum length that is only half of the actual maximum length, but 5508 # we can't tell. 5509 while { test X`env echo "$teststring$teststring" 2>/dev/null` \ 5510 = "X$teststring$teststring"; } >/dev/null 2>&1 && 5511 test 17 != "$i" # 1/2 MB should be enough 5512 do 5513 i=`expr $i + 1` 5514 teststring=$teststring$teststring 5515 done 5516 # Only check the string length outside the loop. 5517 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 5518 teststring= 5519 # Add a significant safety factor because C++ compilers can tack on 5520 # massive amounts of additional arguments before passing them to the 5521 # linker. It appears as though 1/2 is a usable value. 5522 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 5523 fi 5524 ;; 5525 esac 5526 5527fi 5528 5529if test -n "$lt_cv_sys_max_cmd_len"; then 5530 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 5531printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; } 5532else 5533 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5 5534printf "%s\n" "none" >&6; } 5535fi 5536max_cmd_len=$lt_cv_sys_max_cmd_len 5537 5538 5539 5540 5541 5542 5543: ${CP="cp -f"} 5544: ${MV="mv -f"} 5545: ${RM="rm -f"} 5546 5547if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 5548 lt_unset=unset 5549else 5550 lt_unset=false 5551fi 5552 5553 5554 5555 5556 5557# test EBCDIC or ASCII 5558case `echo X|tr X '\101'` in 5559 A) # ASCII based system 5560 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 5561 lt_SP2NL='tr \040 \012' 5562 lt_NL2SP='tr \015\012 \040\040' 5563 ;; 5564 *) # EBCDIC based system 5565 lt_SP2NL='tr \100 \n' 5566 lt_NL2SP='tr \r\n \100\100' 5567 ;; 5568esac 5569 5570 5571 5572 5573 5574 5575 5576 5577 5578{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 5579printf %s "checking how to convert $build file names to $host format... " >&6; } 5580if test ${lt_cv_to_host_file_cmd+y} 5581then : 5582 printf %s "(cached) " >&6 5583else $as_nop 5584 case $host in 5585 *-*-mingw* ) 5586 case $build in 5587 *-*-mingw* ) # actually msys 5588 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 5589 ;; 5590 *-*-cygwin* ) 5591 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 5592 ;; 5593 * ) # otherwise, assume *nix 5594 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 5595 ;; 5596 esac 5597 ;; 5598 *-*-cygwin* ) 5599 case $build in 5600 *-*-mingw* ) # actually msys 5601 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 5602 ;; 5603 *-*-cygwin* ) 5604 lt_cv_to_host_file_cmd=func_convert_file_noop 5605 ;; 5606 * ) # otherwise, assume *nix 5607 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 5608 ;; 5609 esac 5610 ;; 5611 * ) # unhandled hosts (and "normal" native builds) 5612 lt_cv_to_host_file_cmd=func_convert_file_noop 5613 ;; 5614esac 5615 5616fi 5617 5618to_host_file_cmd=$lt_cv_to_host_file_cmd 5619{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 5620printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; } 5621 5622 5623 5624 5625 5626{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 5627printf %s "checking how to convert $build file names to toolchain format... " >&6; } 5628if test ${lt_cv_to_tool_file_cmd+y} 5629then : 5630 printf %s "(cached) " >&6 5631else $as_nop 5632 #assume ordinary cross tools, or native build. 5633lt_cv_to_tool_file_cmd=func_convert_file_noop 5634case $host in 5635 *-*-mingw* ) 5636 case $build in 5637 *-*-mingw* ) # actually msys 5638 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 5639 ;; 5640 esac 5641 ;; 5642esac 5643 5644fi 5645 5646to_tool_file_cmd=$lt_cv_to_tool_file_cmd 5647{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 5648printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; } 5649 5650 5651 5652 5653 5654{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 5655printf %s "checking for $LD option to reload object files... " >&6; } 5656if test ${lt_cv_ld_reload_flag+y} 5657then : 5658 printf %s "(cached) " >&6 5659else $as_nop 5660 lt_cv_ld_reload_flag='-r' 5661fi 5662{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 5663printf "%s\n" "$lt_cv_ld_reload_flag" >&6; } 5664reload_flag=$lt_cv_ld_reload_flag 5665case $reload_flag in 5666"" | " "*) ;; 5667*) reload_flag=" $reload_flag" ;; 5668esac 5669reload_cmds='$LD$reload_flag -o $output$reload_objs' 5670case $host_os in 5671 cygwin* | mingw* | pw32* | cegcc*) 5672 if test yes != "$GCC"; then 5673 reload_cmds=false 5674 fi 5675 ;; 5676 darwin*) 5677 if test yes = "$GCC"; then 5678 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' 5679 else 5680 reload_cmds='$LD$reload_flag -o $output$reload_objs' 5681 fi 5682 ;; 5683esac 5684 5685 5686 5687 5688 5689 5690 5691 5692 5693if test -n "$ac_tool_prefix"; then 5694 # Extract the first word of "${ac_tool_prefix}file", so it can be a program name with args. 5695set dummy ${ac_tool_prefix}file; ac_word=$2 5696{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5697printf %s "checking for $ac_word... " >&6; } 5698if test ${ac_cv_prog_FILECMD+y} 5699then : 5700 printf %s "(cached) " >&6 5701else $as_nop 5702 if test -n "$FILECMD"; then 5703 ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test. 5704else 5705as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5706for as_dir in $PATH 5707do 5708 IFS=$as_save_IFS 5709 case $as_dir in #((( 5710 '') as_dir=./ ;; 5711 */) ;; 5712 *) as_dir=$as_dir/ ;; 5713 esac 5714 for ac_exec_ext in '' $ac_executable_extensions; do 5715 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5716 ac_cv_prog_FILECMD="${ac_tool_prefix}file" 5717 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5718 break 2 5719 fi 5720done 5721 done 5722IFS=$as_save_IFS 5723 5724fi 5725fi 5726FILECMD=$ac_cv_prog_FILECMD 5727if test -n "$FILECMD"; then 5728 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5 5729printf "%s\n" "$FILECMD" >&6; } 5730else 5731 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5732printf "%s\n" "no" >&6; } 5733fi 5734 5735 5736fi 5737if test -z "$ac_cv_prog_FILECMD"; then 5738 ac_ct_FILECMD=$FILECMD 5739 # Extract the first word of "file", so it can be a program name with args. 5740set dummy file; ac_word=$2 5741{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5742printf %s "checking for $ac_word... " >&6; } 5743if test ${ac_cv_prog_ac_ct_FILECMD+y} 5744then : 5745 printf %s "(cached) " >&6 5746else $as_nop 5747 if test -n "$ac_ct_FILECMD"; then 5748 ac_cv_prog_ac_ct_FILECMD="$ac_ct_FILECMD" # Let the user override the test. 5749else 5750as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5751for as_dir in $PATH 5752do 5753 IFS=$as_save_IFS 5754 case $as_dir in #((( 5755 '') as_dir=./ ;; 5756 */) ;; 5757 *) as_dir=$as_dir/ ;; 5758 esac 5759 for ac_exec_ext in '' $ac_executable_extensions; do 5760 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5761 ac_cv_prog_ac_ct_FILECMD="file" 5762 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5763 break 2 5764 fi 5765done 5766 done 5767IFS=$as_save_IFS 5768 5769fi 5770fi 5771ac_ct_FILECMD=$ac_cv_prog_ac_ct_FILECMD 5772if test -n "$ac_ct_FILECMD"; then 5773 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FILECMD" >&5 5774printf "%s\n" "$ac_ct_FILECMD" >&6; } 5775else 5776 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5777printf "%s\n" "no" >&6; } 5778fi 5779 5780 if test "x$ac_ct_FILECMD" = x; then 5781 FILECMD=":" 5782 else 5783 case $cross_compiling:$ac_tool_warned in 5784yes:) 5785{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5786printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5787ac_tool_warned=yes ;; 5788esac 5789 FILECMD=$ac_ct_FILECMD 5790 fi 5791else 5792 FILECMD="$ac_cv_prog_FILECMD" 5793fi 5794 5795 5796 5797 5798 5799 5800 5801if test -n "$ac_tool_prefix"; then 5802 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 5803set dummy ${ac_tool_prefix}objdump; ac_word=$2 5804{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5805printf %s "checking for $ac_word... " >&6; } 5806if test ${ac_cv_prog_OBJDUMP+y} 5807then : 5808 printf %s "(cached) " >&6 5809else $as_nop 5810 if test -n "$OBJDUMP"; then 5811 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 5812else 5813as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5814for as_dir in $PATH 5815do 5816 IFS=$as_save_IFS 5817 case $as_dir in #((( 5818 '') as_dir=./ ;; 5819 */) ;; 5820 *) as_dir=$as_dir/ ;; 5821 esac 5822 for ac_exec_ext in '' $ac_executable_extensions; do 5823 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5824 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 5825 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5826 break 2 5827 fi 5828done 5829 done 5830IFS=$as_save_IFS 5831 5832fi 5833fi 5834OBJDUMP=$ac_cv_prog_OBJDUMP 5835if test -n "$OBJDUMP"; then 5836 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 5837printf "%s\n" "$OBJDUMP" >&6; } 5838else 5839 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5840printf "%s\n" "no" >&6; } 5841fi 5842 5843 5844fi 5845if test -z "$ac_cv_prog_OBJDUMP"; then 5846 ac_ct_OBJDUMP=$OBJDUMP 5847 # Extract the first word of "objdump", so it can be a program name with args. 5848set dummy objdump; ac_word=$2 5849{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5850printf %s "checking for $ac_word... " >&6; } 5851if test ${ac_cv_prog_ac_ct_OBJDUMP+y} 5852then : 5853 printf %s "(cached) " >&6 5854else $as_nop 5855 if test -n "$ac_ct_OBJDUMP"; then 5856 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 5857else 5858as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5859for as_dir in $PATH 5860do 5861 IFS=$as_save_IFS 5862 case $as_dir in #((( 5863 '') as_dir=./ ;; 5864 */) ;; 5865 *) as_dir=$as_dir/ ;; 5866 esac 5867 for ac_exec_ext in '' $ac_executable_extensions; do 5868 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5869 ac_cv_prog_ac_ct_OBJDUMP="objdump" 5870 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5871 break 2 5872 fi 5873done 5874 done 5875IFS=$as_save_IFS 5876 5877fi 5878fi 5879ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 5880if test -n "$ac_ct_OBJDUMP"; then 5881 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 5882printf "%s\n" "$ac_ct_OBJDUMP" >&6; } 5883else 5884 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5885printf "%s\n" "no" >&6; } 5886fi 5887 5888 if test "x$ac_ct_OBJDUMP" = x; then 5889 OBJDUMP="false" 5890 else 5891 case $cross_compiling:$ac_tool_warned in 5892yes:) 5893{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5894printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5895ac_tool_warned=yes ;; 5896esac 5897 OBJDUMP=$ac_ct_OBJDUMP 5898 fi 5899else 5900 OBJDUMP="$ac_cv_prog_OBJDUMP" 5901fi 5902 5903test -z "$OBJDUMP" && OBJDUMP=objdump 5904 5905 5906 5907 5908 5909 5910 5911 5912 5913{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 5914printf %s "checking how to recognize dependent libraries... " >&6; } 5915if test ${lt_cv_deplibs_check_method+y} 5916then : 5917 printf %s "(cached) " >&6 5918else $as_nop 5919 lt_cv_file_magic_cmd='$MAGIC_CMD' 5920lt_cv_file_magic_test_file= 5921lt_cv_deplibs_check_method='unknown' 5922# Need to set the preceding variable on all platforms that support 5923# interlibrary dependencies. 5924# 'none' -- dependencies not supported. 5925# 'unknown' -- same as none, but documents that we really don't know. 5926# 'pass_all' -- all dependencies passed with no checks. 5927# 'test_compile' -- check by making test program. 5928# 'file_magic [[regex]]' -- check by looking for files in library path 5929# that responds to the $file_magic_cmd with a given extended regex. 5930# If you have 'file' or equivalent on your system and you're not sure 5931# whether 'pass_all' will *always* work, you probably want this one. 5932 5933case $host_os in 5934aix[4-9]*) 5935 lt_cv_deplibs_check_method=pass_all 5936 ;; 5937 5938beos*) 5939 lt_cv_deplibs_check_method=pass_all 5940 ;; 5941 5942bsdi[45]*) 5943 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 5944 lt_cv_file_magic_cmd='$FILECMD -L' 5945 lt_cv_file_magic_test_file=/shlib/libc.so 5946 ;; 5947 5948cygwin*) 5949 # func_win32_libid is a shell function defined in ltmain.sh 5950 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5951 lt_cv_file_magic_cmd='func_win32_libid' 5952 ;; 5953 5954mingw* | pw32*) 5955 # Base MSYS/MinGW do not provide the 'file' command needed by 5956 # func_win32_libid shell function, so use a weaker test based on 'objdump', 5957 # unless we find 'file', for example because we are cross-compiling. 5958 if ( file / ) >/dev/null 2>&1; then 5959 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5960 lt_cv_file_magic_cmd='func_win32_libid' 5961 else 5962 # Keep this pattern in sync with the one in func_win32_libid. 5963 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 5964 lt_cv_file_magic_cmd='$OBJDUMP -f' 5965 fi 5966 ;; 5967 5968cegcc*) 5969 # use the weaker test based on 'objdump'. See mingw*. 5970 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 5971 lt_cv_file_magic_cmd='$OBJDUMP -f' 5972 ;; 5973 5974darwin* | rhapsody*) 5975 lt_cv_deplibs_check_method=pass_all 5976 ;; 5977 5978freebsd* | dragonfly* | midnightbsd*) 5979 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5980 case $host_cpu in 5981 i*86 ) 5982 # Not sure whether the presence of OpenBSD here was a mistake. 5983 # Let's accept both of them until this is cleared up. 5984 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 5985 lt_cv_file_magic_cmd=$FILECMD 5986 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 5987 ;; 5988 esac 5989 else 5990 lt_cv_deplibs_check_method=pass_all 5991 fi 5992 ;; 5993 5994haiku*) 5995 lt_cv_deplibs_check_method=pass_all 5996 ;; 5997 5998hpux10.20* | hpux11*) 5999 lt_cv_file_magic_cmd=$FILECMD 6000 case $host_cpu in 6001 ia64*) 6002 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 6003 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 6004 ;; 6005 hppa*64*) 6006 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]' 6007 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 6008 ;; 6009 *) 6010 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 6011 lt_cv_file_magic_test_file=/usr/lib/libc.sl 6012 ;; 6013 esac 6014 ;; 6015 6016interix[3-9]*) 6017 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 6018 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 6019 ;; 6020 6021irix5* | irix6* | nonstopux*) 6022 case $LD in 6023 *-32|*"-32 ") libmagic=32-bit;; 6024 *-n32|*"-n32 ") libmagic=N32;; 6025 *-64|*"-64 ") libmagic=64-bit;; 6026 *) libmagic=never-match;; 6027 esac 6028 lt_cv_deplibs_check_method=pass_all 6029 ;; 6030 6031# This must be glibc/ELF. 6032linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 6033 lt_cv_deplibs_check_method=pass_all 6034 ;; 6035 6036netbsd*) 6037 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 6038 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6039 else 6040 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 6041 fi 6042 ;; 6043 6044newos6*) 6045 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 6046 lt_cv_file_magic_cmd=$FILECMD 6047 lt_cv_file_magic_test_file=/usr/lib/libnls.so 6048 ;; 6049 6050*nto* | *qnx*) 6051 lt_cv_deplibs_check_method=pass_all 6052 ;; 6053 6054openbsd* | bitrig*) 6055 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 6056 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 6057 else 6058 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6059 fi 6060 ;; 6061 6062osf3* | osf4* | osf5*) 6063 lt_cv_deplibs_check_method=pass_all 6064 ;; 6065 6066rdos*) 6067 lt_cv_deplibs_check_method=pass_all 6068 ;; 6069 6070solaris*) 6071 lt_cv_deplibs_check_method=pass_all 6072 ;; 6073 6074sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 6075 lt_cv_deplibs_check_method=pass_all 6076 ;; 6077 6078sysv4 | sysv4.3*) 6079 case $host_vendor in 6080 motorola) 6081 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]' 6082 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 6083 ;; 6084 ncr) 6085 lt_cv_deplibs_check_method=pass_all 6086 ;; 6087 sequent) 6088 lt_cv_file_magic_cmd='/bin/file' 6089 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 6090 ;; 6091 sni) 6092 lt_cv_file_magic_cmd='/bin/file' 6093 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 6094 lt_cv_file_magic_test_file=/lib/libc.so 6095 ;; 6096 siemens) 6097 lt_cv_deplibs_check_method=pass_all 6098 ;; 6099 pc) 6100 lt_cv_deplibs_check_method=pass_all 6101 ;; 6102 esac 6103 ;; 6104 6105tpf*) 6106 lt_cv_deplibs_check_method=pass_all 6107 ;; 6108os2*) 6109 lt_cv_deplibs_check_method=pass_all 6110 ;; 6111esac 6112 6113fi 6114{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 6115printf "%s\n" "$lt_cv_deplibs_check_method" >&6; } 6116 6117file_magic_glob= 6118want_nocaseglob=no 6119if test "$build" = "$host"; then 6120 case $host_os in 6121 mingw* | pw32*) 6122 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 6123 want_nocaseglob=yes 6124 else 6125 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 6126 fi 6127 ;; 6128 esac 6129fi 6130 6131file_magic_cmd=$lt_cv_file_magic_cmd 6132deplibs_check_method=$lt_cv_deplibs_check_method 6133test -z "$deplibs_check_method" && deplibs_check_method=unknown 6134 6135 6136 6137 6138 6139 6140 6141 6142 6143 6144 6145 6146 6147 6148 6149 6150 6151 6152 6153 6154 6155 6156if test -n "$ac_tool_prefix"; then 6157 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 6158set dummy ${ac_tool_prefix}dlltool; ac_word=$2 6159{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6160printf %s "checking for $ac_word... " >&6; } 6161if test ${ac_cv_prog_DLLTOOL+y} 6162then : 6163 printf %s "(cached) " >&6 6164else $as_nop 6165 if test -n "$DLLTOOL"; then 6166 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 6167else 6168as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6169for as_dir in $PATH 6170do 6171 IFS=$as_save_IFS 6172 case $as_dir in #((( 6173 '') as_dir=./ ;; 6174 */) ;; 6175 *) as_dir=$as_dir/ ;; 6176 esac 6177 for ac_exec_ext in '' $ac_executable_extensions; do 6178 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6179 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 6180 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6181 break 2 6182 fi 6183done 6184 done 6185IFS=$as_save_IFS 6186 6187fi 6188fi 6189DLLTOOL=$ac_cv_prog_DLLTOOL 6190if test -n "$DLLTOOL"; then 6191 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 6192printf "%s\n" "$DLLTOOL" >&6; } 6193else 6194 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6195printf "%s\n" "no" >&6; } 6196fi 6197 6198 6199fi 6200if test -z "$ac_cv_prog_DLLTOOL"; then 6201 ac_ct_DLLTOOL=$DLLTOOL 6202 # Extract the first word of "dlltool", so it can be a program name with args. 6203set dummy dlltool; ac_word=$2 6204{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6205printf %s "checking for $ac_word... " >&6; } 6206if test ${ac_cv_prog_ac_ct_DLLTOOL+y} 6207then : 6208 printf %s "(cached) " >&6 6209else $as_nop 6210 if test -n "$ac_ct_DLLTOOL"; then 6211 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 6212else 6213as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6214for as_dir in $PATH 6215do 6216 IFS=$as_save_IFS 6217 case $as_dir in #((( 6218 '') as_dir=./ ;; 6219 */) ;; 6220 *) as_dir=$as_dir/ ;; 6221 esac 6222 for ac_exec_ext in '' $ac_executable_extensions; do 6223 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6224 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 6225 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6226 break 2 6227 fi 6228done 6229 done 6230IFS=$as_save_IFS 6231 6232fi 6233fi 6234ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 6235if test -n "$ac_ct_DLLTOOL"; then 6236 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 6237printf "%s\n" "$ac_ct_DLLTOOL" >&6; } 6238else 6239 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6240printf "%s\n" "no" >&6; } 6241fi 6242 6243 if test "x$ac_ct_DLLTOOL" = x; then 6244 DLLTOOL="false" 6245 else 6246 case $cross_compiling:$ac_tool_warned in 6247yes:) 6248{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6249printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6250ac_tool_warned=yes ;; 6251esac 6252 DLLTOOL=$ac_ct_DLLTOOL 6253 fi 6254else 6255 DLLTOOL="$ac_cv_prog_DLLTOOL" 6256fi 6257 6258test -z "$DLLTOOL" && DLLTOOL=dlltool 6259 6260 6261 6262 6263 6264 6265 6266 6267 6268 6269{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 6270printf %s "checking how to associate runtime and link libraries... " >&6; } 6271if test ${lt_cv_sharedlib_from_linklib_cmd+y} 6272then : 6273 printf %s "(cached) " >&6 6274else $as_nop 6275 lt_cv_sharedlib_from_linklib_cmd='unknown' 6276 6277case $host_os in 6278cygwin* | mingw* | pw32* | cegcc*) 6279 # two different shell functions defined in ltmain.sh; 6280 # decide which one to use based on capabilities of $DLLTOOL 6281 case `$DLLTOOL --help 2>&1` in 6282 *--identify-strict*) 6283 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 6284 ;; 6285 *) 6286 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 6287 ;; 6288 esac 6289 ;; 6290*) 6291 # fallback: assume linklib IS sharedlib 6292 lt_cv_sharedlib_from_linklib_cmd=$ECHO 6293 ;; 6294esac 6295 6296fi 6297{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 6298printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 6299sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 6300test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 6301 6302 6303 6304 6305 6306 6307 6308 6309if test -n "$ac_tool_prefix"; then 6310 for ac_prog in ar 6311 do 6312 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 6313set dummy $ac_tool_prefix$ac_prog; ac_word=$2 6314{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6315printf %s "checking for $ac_word... " >&6; } 6316if test ${ac_cv_prog_AR+y} 6317then : 6318 printf %s "(cached) " >&6 6319else $as_nop 6320 if test -n "$AR"; then 6321 ac_cv_prog_AR="$AR" # Let the user override the test. 6322else 6323as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6324for as_dir in $PATH 6325do 6326 IFS=$as_save_IFS 6327 case $as_dir in #((( 6328 '') as_dir=./ ;; 6329 */) ;; 6330 *) as_dir=$as_dir/ ;; 6331 esac 6332 for ac_exec_ext in '' $ac_executable_extensions; do 6333 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6334 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 6335 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6336 break 2 6337 fi 6338done 6339 done 6340IFS=$as_save_IFS 6341 6342fi 6343fi 6344AR=$ac_cv_prog_AR 6345if test -n "$AR"; then 6346 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 6347printf "%s\n" "$AR" >&6; } 6348else 6349 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6350printf "%s\n" "no" >&6; } 6351fi 6352 6353 6354 test -n "$AR" && break 6355 done 6356fi 6357if test -z "$AR"; then 6358 ac_ct_AR=$AR 6359 for ac_prog in ar 6360do 6361 # Extract the first word of "$ac_prog", so it can be a program name with args. 6362set dummy $ac_prog; ac_word=$2 6363{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6364printf %s "checking for $ac_word... " >&6; } 6365if test ${ac_cv_prog_ac_ct_AR+y} 6366then : 6367 printf %s "(cached) " >&6 6368else $as_nop 6369 if test -n "$ac_ct_AR"; then 6370 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 6371else 6372as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6373for as_dir in $PATH 6374do 6375 IFS=$as_save_IFS 6376 case $as_dir in #((( 6377 '') as_dir=./ ;; 6378 */) ;; 6379 *) as_dir=$as_dir/ ;; 6380 esac 6381 for ac_exec_ext in '' $ac_executable_extensions; do 6382 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6383 ac_cv_prog_ac_ct_AR="$ac_prog" 6384 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6385 break 2 6386 fi 6387done 6388 done 6389IFS=$as_save_IFS 6390 6391fi 6392fi 6393ac_ct_AR=$ac_cv_prog_ac_ct_AR 6394if test -n "$ac_ct_AR"; then 6395 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 6396printf "%s\n" "$ac_ct_AR" >&6; } 6397else 6398 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6399printf "%s\n" "no" >&6; } 6400fi 6401 6402 6403 test -n "$ac_ct_AR" && break 6404done 6405 6406 if test "x$ac_ct_AR" = x; then 6407 AR="false" 6408 else 6409 case $cross_compiling:$ac_tool_warned in 6410yes:) 6411{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6412printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6413ac_tool_warned=yes ;; 6414esac 6415 AR=$ac_ct_AR 6416 fi 6417fi 6418 6419: ${AR=ar} 6420 6421 6422 6423 6424 6425 6426# Use ARFLAGS variable as AR's operation code to sync the variable naming with 6427# Automake. If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have 6428# higher priority because thats what people were doing historically (setting 6429# ARFLAGS for automake and AR_FLAGS for libtool). FIXME: Make the AR_FLAGS 6430# variable obsoleted/removed. 6431 6432test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr} 6433lt_ar_flags=$AR_FLAGS 6434 6435 6436 6437 6438 6439 6440# Make AR_FLAGS overridable by 'make ARFLAGS='. Don't try to run-time override 6441# by AR_FLAGS because that was never working and AR_FLAGS is about to die. 6442 6443 6444 6445 6446 6447 6448{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 6449printf %s "checking for archiver @FILE support... " >&6; } 6450if test ${lt_cv_ar_at_file+y} 6451then : 6452 printf %s "(cached) " >&6 6453else $as_nop 6454 lt_cv_ar_at_file=no 6455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6456/* end confdefs.h. */ 6457 6458int 6459main (void) 6460{ 6461 6462 ; 6463 return 0; 6464} 6465_ACEOF 6466if ac_fn_c_try_compile "$LINENO" 6467then : 6468 echo conftest.$ac_objext > conftest.lst 6469 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 6470 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 6471 (eval $lt_ar_try) 2>&5 6472 ac_status=$? 6473 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6474 test $ac_status = 0; } 6475 if test 0 -eq "$ac_status"; then 6476 # Ensure the archiver fails upon bogus file names. 6477 rm -f conftest.$ac_objext libconftest.a 6478 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 6479 (eval $lt_ar_try) 2>&5 6480 ac_status=$? 6481 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6482 test $ac_status = 0; } 6483 if test 0 -ne "$ac_status"; then 6484 lt_cv_ar_at_file=@ 6485 fi 6486 fi 6487 rm -f conftest.* libconftest.a 6488 6489fi 6490rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6491 6492fi 6493{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 6494printf "%s\n" "$lt_cv_ar_at_file" >&6; } 6495 6496if test no = "$lt_cv_ar_at_file"; then 6497 archiver_list_spec= 6498else 6499 archiver_list_spec=$lt_cv_ar_at_file 6500fi 6501 6502 6503 6504 6505 6506 6507 6508if test -n "$ac_tool_prefix"; then 6509 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 6510set dummy ${ac_tool_prefix}strip; ac_word=$2 6511{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6512printf %s "checking for $ac_word... " >&6; } 6513if test ${ac_cv_prog_STRIP+y} 6514then : 6515 printf %s "(cached) " >&6 6516else $as_nop 6517 if test -n "$STRIP"; then 6518 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 6519else 6520as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6521for as_dir in $PATH 6522do 6523 IFS=$as_save_IFS 6524 case $as_dir in #((( 6525 '') as_dir=./ ;; 6526 */) ;; 6527 *) as_dir=$as_dir/ ;; 6528 esac 6529 for ac_exec_ext in '' $ac_executable_extensions; do 6530 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6531 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 6532 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6533 break 2 6534 fi 6535done 6536 done 6537IFS=$as_save_IFS 6538 6539fi 6540fi 6541STRIP=$ac_cv_prog_STRIP 6542if test -n "$STRIP"; then 6543 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 6544printf "%s\n" "$STRIP" >&6; } 6545else 6546 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6547printf "%s\n" "no" >&6; } 6548fi 6549 6550 6551fi 6552if test -z "$ac_cv_prog_STRIP"; then 6553 ac_ct_STRIP=$STRIP 6554 # Extract the first word of "strip", so it can be a program name with args. 6555set dummy strip; ac_word=$2 6556{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6557printf %s "checking for $ac_word... " >&6; } 6558if test ${ac_cv_prog_ac_ct_STRIP+y} 6559then : 6560 printf %s "(cached) " >&6 6561else $as_nop 6562 if test -n "$ac_ct_STRIP"; then 6563 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 6564else 6565as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6566for as_dir in $PATH 6567do 6568 IFS=$as_save_IFS 6569 case $as_dir in #((( 6570 '') as_dir=./ ;; 6571 */) ;; 6572 *) as_dir=$as_dir/ ;; 6573 esac 6574 for ac_exec_ext in '' $ac_executable_extensions; do 6575 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6576 ac_cv_prog_ac_ct_STRIP="strip" 6577 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6578 break 2 6579 fi 6580done 6581 done 6582IFS=$as_save_IFS 6583 6584fi 6585fi 6586ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 6587if test -n "$ac_ct_STRIP"; then 6588 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 6589printf "%s\n" "$ac_ct_STRIP" >&6; } 6590else 6591 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6592printf "%s\n" "no" >&6; } 6593fi 6594 6595 if test "x$ac_ct_STRIP" = x; then 6596 STRIP=":" 6597 else 6598 case $cross_compiling:$ac_tool_warned in 6599yes:) 6600{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6601printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6602ac_tool_warned=yes ;; 6603esac 6604 STRIP=$ac_ct_STRIP 6605 fi 6606else 6607 STRIP="$ac_cv_prog_STRIP" 6608fi 6609 6610test -z "$STRIP" && STRIP=: 6611 6612 6613 6614 6615 6616 6617if test -n "$ac_tool_prefix"; then 6618 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 6619set dummy ${ac_tool_prefix}ranlib; ac_word=$2 6620{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6621printf %s "checking for $ac_word... " >&6; } 6622if test ${ac_cv_prog_RANLIB+y} 6623then : 6624 printf %s "(cached) " >&6 6625else $as_nop 6626 if test -n "$RANLIB"; then 6627 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 6628else 6629as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6630for as_dir in $PATH 6631do 6632 IFS=$as_save_IFS 6633 case $as_dir in #((( 6634 '') as_dir=./ ;; 6635 */) ;; 6636 *) as_dir=$as_dir/ ;; 6637 esac 6638 for ac_exec_ext in '' $ac_executable_extensions; do 6639 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6640 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 6641 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6642 break 2 6643 fi 6644done 6645 done 6646IFS=$as_save_IFS 6647 6648fi 6649fi 6650RANLIB=$ac_cv_prog_RANLIB 6651if test -n "$RANLIB"; then 6652 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 6653printf "%s\n" "$RANLIB" >&6; } 6654else 6655 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6656printf "%s\n" "no" >&6; } 6657fi 6658 6659 6660fi 6661if test -z "$ac_cv_prog_RANLIB"; then 6662 ac_ct_RANLIB=$RANLIB 6663 # Extract the first word of "ranlib", so it can be a program name with args. 6664set dummy ranlib; ac_word=$2 6665{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6666printf %s "checking for $ac_word... " >&6; } 6667if test ${ac_cv_prog_ac_ct_RANLIB+y} 6668then : 6669 printf %s "(cached) " >&6 6670else $as_nop 6671 if test -n "$ac_ct_RANLIB"; then 6672 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 6673else 6674as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6675for as_dir in $PATH 6676do 6677 IFS=$as_save_IFS 6678 case $as_dir in #((( 6679 '') as_dir=./ ;; 6680 */) ;; 6681 *) as_dir=$as_dir/ ;; 6682 esac 6683 for ac_exec_ext in '' $ac_executable_extensions; do 6684 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6685 ac_cv_prog_ac_ct_RANLIB="ranlib" 6686 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6687 break 2 6688 fi 6689done 6690 done 6691IFS=$as_save_IFS 6692 6693fi 6694fi 6695ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 6696if test -n "$ac_ct_RANLIB"; then 6697 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 6698printf "%s\n" "$ac_ct_RANLIB" >&6; } 6699else 6700 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6701printf "%s\n" "no" >&6; } 6702fi 6703 6704 if test "x$ac_ct_RANLIB" = x; then 6705 RANLIB=":" 6706 else 6707 case $cross_compiling:$ac_tool_warned in 6708yes:) 6709{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6710printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6711ac_tool_warned=yes ;; 6712esac 6713 RANLIB=$ac_ct_RANLIB 6714 fi 6715else 6716 RANLIB="$ac_cv_prog_RANLIB" 6717fi 6718 6719test -z "$RANLIB" && RANLIB=: 6720 6721 6722 6723 6724 6725 6726# Determine commands to create old-style static archives. 6727old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 6728old_postinstall_cmds='chmod 644 $oldlib' 6729old_postuninstall_cmds= 6730 6731if test -n "$RANLIB"; then 6732 case $host_os in 6733 bitrig* | openbsd*) 6734 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 6735 ;; 6736 *) 6737 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 6738 ;; 6739 esac 6740 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 6741fi 6742 6743case $host_os in 6744 darwin*) 6745 lock_old_archive_extraction=yes ;; 6746 *) 6747 lock_old_archive_extraction=no ;; 6748esac 6749 6750 6751 6752 6753 6754 6755 6756 6757 6758 6759 6760 6761 6762 6763 6764 6765 6766 6767 6768 6769 6770 6771 6772 6773 6774 6775 6776 6777 6778 6779 6780 6781 6782 6783 6784 6785 6786 6787 6788# If no C compiler was specified, use CC. 6789LTCC=${LTCC-"$CC"} 6790 6791# If no C compiler flags were specified, use CFLAGS. 6792LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 6793 6794# Allow CC to be a program name with arguments. 6795compiler=$CC 6796 6797 6798# Check for command to grab the raw symbol name followed by C symbol from nm. 6799{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 6800printf %s "checking command to parse $NM output from $compiler object... " >&6; } 6801if test ${lt_cv_sys_global_symbol_pipe+y} 6802then : 6803 printf %s "(cached) " >&6 6804else $as_nop 6805 6806# These are sane defaults that work on at least a few old systems. 6807# [They come from Ultrix. What could be older than Ultrix?!! ;)] 6808 6809# Character class describing NM global symbol codes. 6810symcode='[BCDEGRST]' 6811 6812# Regexp to match symbols that can be accessed directly from C. 6813sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 6814 6815# Define system-specific variables. 6816case $host_os in 6817aix*) 6818 symcode='[BCDT]' 6819 ;; 6820cygwin* | mingw* | pw32* | cegcc*) 6821 symcode='[ABCDGISTW]' 6822 ;; 6823hpux*) 6824 if test ia64 = "$host_cpu"; then 6825 symcode='[ABCDEGRST]' 6826 fi 6827 ;; 6828irix* | nonstopux*) 6829 symcode='[BCDEGRST]' 6830 ;; 6831osf*) 6832 symcode='[BCDEGQRST]' 6833 ;; 6834solaris*) 6835 symcode='[BDRT]' 6836 ;; 6837sco3.2v5*) 6838 symcode='[DT]' 6839 ;; 6840sysv4.2uw2*) 6841 symcode='[DT]' 6842 ;; 6843sysv5* | sco5v6* | unixware* | OpenUNIX*) 6844 symcode='[ABDT]' 6845 ;; 6846sysv4) 6847 symcode='[DFNSTU]' 6848 ;; 6849esac 6850 6851# If we're using GNU nm, then use its standard symbol codes. 6852case `$NM -V 2>&1` in 6853*GNU* | *'with BFD'*) 6854 symcode='[ABCDGIRSTW]' ;; 6855esac 6856 6857if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6858 # Gets list of data symbols to import. 6859 lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'" 6860 # Adjust the below global symbol transforms to fixup imported variables. 6861 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" 6862 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" 6863 lt_c_name_lib_hook="\ 6864 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ 6865 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" 6866else 6867 # Disable hooks by default. 6868 lt_cv_sys_global_symbol_to_import= 6869 lt_cdecl_hook= 6870 lt_c_name_hook= 6871 lt_c_name_lib_hook= 6872fi 6873 6874# Transform an extracted symbol line into a proper C declaration. 6875# Some systems (esp. on ia64) link data and code symbols differently, 6876# so use this general approach. 6877lt_cv_sys_global_symbol_to_cdecl="$SED -n"\ 6878$lt_cdecl_hook\ 6879" -e 's/^T .* \(.*\)$/extern int \1();/p'"\ 6880" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" 6881 6882# Transform an extracted symbol line into symbol name and symbol address 6883lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\ 6884$lt_c_name_hook\ 6885" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 6886" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" 6887 6888# Transform an extracted symbol line into symbol name with lib prefix and 6889# symbol address. 6890lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\ 6891$lt_c_name_lib_hook\ 6892" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 6893" -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ 6894" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" 6895 6896# Handle CRLF in mingw tool chain 6897opt_cr= 6898case $build_os in 6899mingw*) 6900 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 6901 ;; 6902esac 6903 6904# Try without a prefix underscore, then with it. 6905for ac_symprfx in "" "_"; do 6906 6907 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 6908 symxfrm="\\1 $ac_symprfx\\2 \\2" 6909 6910 # Write the raw and C identifiers. 6911 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6912 # Fake it for dumpbin and say T for any non-static function, 6913 # D for any global variable and I for any imported variable. 6914 # Also find C++ and __fastcall symbols from MSVC++ or ICC, 6915 # which start with @ or ?. 6916 lt_cv_sys_global_symbol_pipe="$AWK '"\ 6917" {last_section=section; section=\$ 3};"\ 6918" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 6919" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 6920" /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ 6921" /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ 6922" /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ 6923" \$ 0!~/External *\|/{next};"\ 6924" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 6925" {if(hide[section]) next};"\ 6926" {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ 6927" {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ 6928" s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ 6929" s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ 6930" ' prfx=^$ac_symprfx" 6931 else 6932 lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 6933 fi 6934 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'" 6935 6936 # Check to see that the pipe works correctly. 6937 pipe_works=no 6938 6939 rm -f conftest* 6940 cat > conftest.$ac_ext <<_LT_EOF 6941#ifdef __cplusplus 6942extern "C" { 6943#endif 6944char nm_test_var; 6945void nm_test_func(void); 6946void nm_test_func(void){} 6947#ifdef __cplusplus 6948} 6949#endif 6950int main(){nm_test_var='a';nm_test_func();return(0);} 6951_LT_EOF 6952 6953 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6954 (eval $ac_compile) 2>&5 6955 ac_status=$? 6956 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6957 test $ac_status = 0; }; then 6958 # Now try to grab the symbols. 6959 nlist=conftest.nm 6960 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 6961 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 6962 ac_status=$? 6963 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6964 test $ac_status = 0; } && test -s "$nlist"; then 6965 # Try sorting and uniquifying the output. 6966 if sort "$nlist" | uniq > "$nlist"T; then 6967 mv -f "$nlist"T "$nlist" 6968 else 6969 rm -f "$nlist"T 6970 fi 6971 6972 # Make sure that we snagged all the symbols we need. 6973 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 6974 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 6975 cat <<_LT_EOF > conftest.$ac_ext 6976/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 6977#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE 6978/* DATA imports from DLLs on WIN32 can't be const, because runtime 6979 relocations are performed -- see ld's documentation on pseudo-relocs. */ 6980# define LT_DLSYM_CONST 6981#elif defined __osf__ 6982/* This system does not cope well with relocations in const data. */ 6983# define LT_DLSYM_CONST 6984#else 6985# define LT_DLSYM_CONST const 6986#endif 6987 6988#ifdef __cplusplus 6989extern "C" { 6990#endif 6991 6992_LT_EOF 6993 # Now generate the symbol file. 6994 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 6995 6996 cat <<_LT_EOF >> conftest.$ac_ext 6997 6998/* The mapping between symbol names and symbols. */ 6999LT_DLSYM_CONST struct { 7000 const char *name; 7001 void *address; 7002} 7003lt__PROGRAM__LTX_preloaded_symbols[] = 7004{ 7005 { "@PROGRAM@", (void *) 0 }, 7006_LT_EOF 7007 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 7008 cat <<\_LT_EOF >> conftest.$ac_ext 7009 {0, (void *) 0} 7010}; 7011 7012/* This works around a problem in FreeBSD linker */ 7013#ifdef FREEBSD_WORKAROUND 7014static const void *lt_preloaded_setup() { 7015 return lt__PROGRAM__LTX_preloaded_symbols; 7016} 7017#endif 7018 7019#ifdef __cplusplus 7020} 7021#endif 7022_LT_EOF 7023 # Now try linking the two files. 7024 mv conftest.$ac_objext conftstm.$ac_objext 7025 lt_globsym_save_LIBS=$LIBS 7026 lt_globsym_save_CFLAGS=$CFLAGS 7027 LIBS=conftstm.$ac_objext 7028 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 7029 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 7030 (eval $ac_link) 2>&5 7031 ac_status=$? 7032 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7033 test $ac_status = 0; } && test -s conftest$ac_exeext; then 7034 pipe_works=yes 7035 fi 7036 LIBS=$lt_globsym_save_LIBS 7037 CFLAGS=$lt_globsym_save_CFLAGS 7038 else 7039 echo "cannot find nm_test_func in $nlist" >&5 7040 fi 7041 else 7042 echo "cannot find nm_test_var in $nlist" >&5 7043 fi 7044 else 7045 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 7046 fi 7047 else 7048 echo "$progname: failed program was:" >&5 7049 cat conftest.$ac_ext >&5 7050 fi 7051 rm -rf conftest* conftst* 7052 7053 # Do not use the global_symbol_pipe unless it works. 7054 if test yes = "$pipe_works"; then 7055 break 7056 else 7057 lt_cv_sys_global_symbol_pipe= 7058 fi 7059done 7060 7061fi 7062 7063if test -z "$lt_cv_sys_global_symbol_pipe"; then 7064 lt_cv_sys_global_symbol_to_cdecl= 7065fi 7066if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 7067 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5 7068printf "%s\n" "failed" >&6; } 7069else 7070 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5 7071printf "%s\n" "ok" >&6; } 7072fi 7073 7074# Response file support. 7075if test "$lt_cv_nm_interface" = "MS dumpbin"; then 7076 nm_file_list_spec='@' 7077elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 7078 nm_file_list_spec='@' 7079fi 7080 7081 7082 7083 7084 7085 7086 7087 7088 7089 7090 7091 7092 7093 7094 7095 7096 7097 7098 7099 7100 7101 7102 7103 7104 7105 7106 7107 7108 7109 7110 7111 7112 7113 7114 7115 7116 7117{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 7118printf %s "checking for sysroot... " >&6; } 7119 7120# Check whether --with-sysroot was given. 7121if test ${with_sysroot+y} 7122then : 7123 withval=$with_sysroot; 7124else $as_nop 7125 with_sysroot=no 7126fi 7127 7128 7129lt_sysroot= 7130case $with_sysroot in #( 7131 yes) 7132 if test yes = "$GCC"; then 7133 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 7134 fi 7135 ;; #( 7136 /*) 7137 lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"` 7138 ;; #( 7139 no|'') 7140 ;; #( 7141 *) 7142 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5 7143printf "%s\n" "$with_sysroot" >&6; } 7144 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 7145 ;; 7146esac 7147 7148 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 7149printf "%s\n" "${lt_sysroot:-no}" >&6; } 7150 7151 7152 7153 7154 7155{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5 7156printf %s "checking for a working dd... " >&6; } 7157if test ${ac_cv_path_lt_DD+y} 7158then : 7159 printf %s "(cached) " >&6 7160else $as_nop 7161 printf 0123456789abcdef0123456789abcdef >conftest.i 7162cat conftest.i conftest.i >conftest2.i 7163: ${lt_DD:=$DD} 7164if test -z "$lt_DD"; then 7165 ac_path_lt_DD_found=false 7166 # Loop through the user's path and test for each of PROGNAME-LIST 7167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7168for as_dir in $PATH 7169do 7170 IFS=$as_save_IFS 7171 case $as_dir in #((( 7172 '') as_dir=./ ;; 7173 */) ;; 7174 *) as_dir=$as_dir/ ;; 7175 esac 7176 for ac_prog in dd 7177 do 7178 for ac_exec_ext in '' $ac_executable_extensions; do 7179 ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext" 7180 as_fn_executable_p "$ac_path_lt_DD" || continue 7181if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 7182 cmp -s conftest.i conftest.out \ 7183 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: 7184fi 7185 $ac_path_lt_DD_found && break 3 7186 done 7187 done 7188 done 7189IFS=$as_save_IFS 7190 if test -z "$ac_cv_path_lt_DD"; then 7191 : 7192 fi 7193else 7194 ac_cv_path_lt_DD=$lt_DD 7195fi 7196 7197rm -f conftest.i conftest2.i conftest.out 7198fi 7199{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 7200printf "%s\n" "$ac_cv_path_lt_DD" >&6; } 7201 7202 7203{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5 7204printf %s "checking how to truncate binary pipes... " >&6; } 7205if test ${lt_cv_truncate_bin+y} 7206then : 7207 printf %s "(cached) " >&6 7208else $as_nop 7209 printf 0123456789abcdef0123456789abcdef >conftest.i 7210cat conftest.i conftest.i >conftest2.i 7211lt_cv_truncate_bin= 7212if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 7213 cmp -s conftest.i conftest.out \ 7214 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" 7215fi 7216rm -f conftest.i conftest2.i conftest.out 7217test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" 7218fi 7219{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 7220printf "%s\n" "$lt_cv_truncate_bin" >&6; } 7221 7222 7223 7224 7225 7226 7227 7228# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 7229func_cc_basename () 7230{ 7231 for cc_temp in $*""; do 7232 case $cc_temp in 7233 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 7234 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 7235 \-*) ;; 7236 *) break;; 7237 esac 7238 done 7239 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 7240} 7241 7242# Check whether --enable-libtool-lock was given. 7243if test ${enable_libtool_lock+y} 7244then : 7245 enableval=$enable_libtool_lock; 7246fi 7247 7248test no = "$enable_libtool_lock" || enable_libtool_lock=yes 7249 7250# Some flags need to be propagated to the compiler or linker for good 7251# libtool support. 7252case $host in 7253ia64-*-hpux*) 7254 # Find out what ABI is being produced by ac_compile, and set mode 7255 # options accordingly. 7256 echo 'int i;' > conftest.$ac_ext 7257 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7258 (eval $ac_compile) 2>&5 7259 ac_status=$? 7260 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7261 test $ac_status = 0; }; then 7262 case `$FILECMD conftest.$ac_objext` in 7263 *ELF-32*) 7264 HPUX_IA64_MODE=32 7265 ;; 7266 *ELF-64*) 7267 HPUX_IA64_MODE=64 7268 ;; 7269 esac 7270 fi 7271 rm -rf conftest* 7272 ;; 7273*-*-irix6*) 7274 # Find out what ABI is being produced by ac_compile, and set linker 7275 # options accordingly. 7276 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 7277 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7278 (eval $ac_compile) 2>&5 7279 ac_status=$? 7280 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7281 test $ac_status = 0; }; then 7282 if test yes = "$lt_cv_prog_gnu_ld"; then 7283 case `$FILECMD conftest.$ac_objext` in 7284 *32-bit*) 7285 LD="${LD-ld} -melf32bsmip" 7286 ;; 7287 *N32*) 7288 LD="${LD-ld} -melf32bmipn32" 7289 ;; 7290 *64-bit*) 7291 LD="${LD-ld} -melf64bmip" 7292 ;; 7293 esac 7294 else 7295 case `$FILECMD conftest.$ac_objext` in 7296 *32-bit*) 7297 LD="${LD-ld} -32" 7298 ;; 7299 *N32*) 7300 LD="${LD-ld} -n32" 7301 ;; 7302 *64-bit*) 7303 LD="${LD-ld} -64" 7304 ;; 7305 esac 7306 fi 7307 fi 7308 rm -rf conftest* 7309 ;; 7310 7311mips64*-*linux*) 7312 # Find out what ABI is being produced by ac_compile, and set linker 7313 # options accordingly. 7314 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 7315 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7316 (eval $ac_compile) 2>&5 7317 ac_status=$? 7318 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7319 test $ac_status = 0; }; then 7320 emul=elf 7321 case `$FILECMD conftest.$ac_objext` in 7322 *32-bit*) 7323 emul="${emul}32" 7324 ;; 7325 *64-bit*) 7326 emul="${emul}64" 7327 ;; 7328 esac 7329 case `$FILECMD conftest.$ac_objext` in 7330 *MSB*) 7331 emul="${emul}btsmip" 7332 ;; 7333 *LSB*) 7334 emul="${emul}ltsmip" 7335 ;; 7336 esac 7337 case `$FILECMD conftest.$ac_objext` in 7338 *N32*) 7339 emul="${emul}n32" 7340 ;; 7341 esac 7342 LD="${LD-ld} -m $emul" 7343 fi 7344 rm -rf conftest* 7345 ;; 7346 7347x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 7348s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 7349 # Find out what ABI is being produced by ac_compile, and set linker 7350 # options accordingly. Note that the listed cases only cover the 7351 # situations where additional linker options are needed (such as when 7352 # doing 32-bit compilation for a host where ld defaults to 64-bit, or 7353 # vice versa); the common cases where no linker options are needed do 7354 # not appear in the list. 7355 echo 'int i;' > conftest.$ac_ext 7356 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7357 (eval $ac_compile) 2>&5 7358 ac_status=$? 7359 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7360 test $ac_status = 0; }; then 7361 case `$FILECMD conftest.o` in 7362 *32-bit*) 7363 case $host in 7364 x86_64-*kfreebsd*-gnu) 7365 LD="${LD-ld} -m elf_i386_fbsd" 7366 ;; 7367 x86_64-*linux*) 7368 case `$FILECMD conftest.o` in 7369 *x86-64*) 7370 LD="${LD-ld} -m elf32_x86_64" 7371 ;; 7372 *) 7373 LD="${LD-ld} -m elf_i386" 7374 ;; 7375 esac 7376 ;; 7377 powerpc64le-*linux*) 7378 LD="${LD-ld} -m elf32lppclinux" 7379 ;; 7380 powerpc64-*linux*) 7381 LD="${LD-ld} -m elf32ppclinux" 7382 ;; 7383 s390x-*linux*) 7384 LD="${LD-ld} -m elf_s390" 7385 ;; 7386 sparc64-*linux*) 7387 LD="${LD-ld} -m elf32_sparc" 7388 ;; 7389 esac 7390 ;; 7391 *64-bit*) 7392 case $host in 7393 x86_64-*kfreebsd*-gnu) 7394 LD="${LD-ld} -m elf_x86_64_fbsd" 7395 ;; 7396 x86_64-*linux*) 7397 LD="${LD-ld} -m elf_x86_64" 7398 ;; 7399 powerpcle-*linux*) 7400 LD="${LD-ld} -m elf64lppc" 7401 ;; 7402 powerpc-*linux*) 7403 LD="${LD-ld} -m elf64ppc" 7404 ;; 7405 s390*-*linux*|s390*-*tpf*) 7406 LD="${LD-ld} -m elf64_s390" 7407 ;; 7408 sparc*-*linux*) 7409 LD="${LD-ld} -m elf64_sparc" 7410 ;; 7411 esac 7412 ;; 7413 esac 7414 fi 7415 rm -rf conftest* 7416 ;; 7417 7418*-*-sco3.2v5*) 7419 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 7420 SAVE_CFLAGS=$CFLAGS 7421 CFLAGS="$CFLAGS -belf" 7422 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 7423printf %s "checking whether the C compiler needs -belf... " >&6; } 7424if test ${lt_cv_cc_needs_belf+y} 7425then : 7426 printf %s "(cached) " >&6 7427else $as_nop 7428 ac_ext=c 7429ac_cpp='$CPP $CPPFLAGS' 7430ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7431ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7432ac_compiler_gnu=$ac_cv_c_compiler_gnu 7433 7434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7435/* end confdefs.h. */ 7436 7437int 7438main (void) 7439{ 7440 7441 ; 7442 return 0; 7443} 7444_ACEOF 7445if ac_fn_c_try_link "$LINENO" 7446then : 7447 lt_cv_cc_needs_belf=yes 7448else $as_nop 7449 lt_cv_cc_needs_belf=no 7450fi 7451rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7452 conftest$ac_exeext conftest.$ac_ext 7453 ac_ext=c 7454ac_cpp='$CPP $CPPFLAGS' 7455ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7456ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7457ac_compiler_gnu=$ac_cv_c_compiler_gnu 7458 7459fi 7460{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 7461printf "%s\n" "$lt_cv_cc_needs_belf" >&6; } 7462 if test yes != "$lt_cv_cc_needs_belf"; then 7463 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 7464 CFLAGS=$SAVE_CFLAGS 7465 fi 7466 ;; 7467*-*solaris*) 7468 # Find out what ABI is being produced by ac_compile, and set linker 7469 # options accordingly. 7470 echo 'int i;' > conftest.$ac_ext 7471 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7472 (eval $ac_compile) 2>&5 7473 ac_status=$? 7474 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7475 test $ac_status = 0; }; then 7476 case `$FILECMD conftest.o` in 7477 *64-bit*) 7478 case $lt_cv_prog_gnu_ld in 7479 yes*) 7480 case $host in 7481 i?86-*-solaris*|x86_64-*-solaris*) 7482 LD="${LD-ld} -m elf_x86_64" 7483 ;; 7484 sparc*-*-solaris*) 7485 LD="${LD-ld} -m elf64_sparc" 7486 ;; 7487 esac 7488 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 7489 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 7490 LD=${LD-ld}_sol2 7491 fi 7492 ;; 7493 *) 7494 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 7495 LD="${LD-ld} -64" 7496 fi 7497 ;; 7498 esac 7499 ;; 7500 esac 7501 fi 7502 rm -rf conftest* 7503 ;; 7504esac 7505 7506need_locks=$enable_libtool_lock 7507 7508if test -n "$ac_tool_prefix"; then 7509 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 7510set dummy ${ac_tool_prefix}mt; ac_word=$2 7511{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7512printf %s "checking for $ac_word... " >&6; } 7513if test ${ac_cv_prog_MANIFEST_TOOL+y} 7514then : 7515 printf %s "(cached) " >&6 7516else $as_nop 7517 if test -n "$MANIFEST_TOOL"; then 7518 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 7519else 7520as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7521for as_dir in $PATH 7522do 7523 IFS=$as_save_IFS 7524 case $as_dir in #((( 7525 '') as_dir=./ ;; 7526 */) ;; 7527 *) as_dir=$as_dir/ ;; 7528 esac 7529 for ac_exec_ext in '' $ac_executable_extensions; do 7530 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7531 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 7532 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7533 break 2 7534 fi 7535done 7536 done 7537IFS=$as_save_IFS 7538 7539fi 7540fi 7541MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 7542if test -n "$MANIFEST_TOOL"; then 7543 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 7544printf "%s\n" "$MANIFEST_TOOL" >&6; } 7545else 7546 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7547printf "%s\n" "no" >&6; } 7548fi 7549 7550 7551fi 7552if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 7553 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 7554 # Extract the first word of "mt", so it can be a program name with args. 7555set dummy mt; ac_word=$2 7556{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7557printf %s "checking for $ac_word... " >&6; } 7558if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y} 7559then : 7560 printf %s "(cached) " >&6 7561else $as_nop 7562 if test -n "$ac_ct_MANIFEST_TOOL"; then 7563 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 7564else 7565as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7566for as_dir in $PATH 7567do 7568 IFS=$as_save_IFS 7569 case $as_dir in #((( 7570 '') as_dir=./ ;; 7571 */) ;; 7572 *) as_dir=$as_dir/ ;; 7573 esac 7574 for ac_exec_ext in '' $ac_executable_extensions; do 7575 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7576 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 7577 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7578 break 2 7579 fi 7580done 7581 done 7582IFS=$as_save_IFS 7583 7584fi 7585fi 7586ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 7587if test -n "$ac_ct_MANIFEST_TOOL"; then 7588 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 7589printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; } 7590else 7591 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7592printf "%s\n" "no" >&6; } 7593fi 7594 7595 if test "x$ac_ct_MANIFEST_TOOL" = x; then 7596 MANIFEST_TOOL=":" 7597 else 7598 case $cross_compiling:$ac_tool_warned in 7599yes:) 7600{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7601printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7602ac_tool_warned=yes ;; 7603esac 7604 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 7605 fi 7606else 7607 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 7608fi 7609 7610test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 7611{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 7612printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 7613if test ${lt_cv_path_mainfest_tool+y} 7614then : 7615 printf %s "(cached) " >&6 7616else $as_nop 7617 lt_cv_path_mainfest_tool=no 7618 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 7619 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 7620 cat conftest.err >&5 7621 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 7622 lt_cv_path_mainfest_tool=yes 7623 fi 7624 rm -f conftest* 7625fi 7626{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 7627printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; } 7628if test yes != "$lt_cv_path_mainfest_tool"; then 7629 MANIFEST_TOOL=: 7630fi 7631 7632 7633 7634 7635 7636 7637 case $host_os in 7638 rhapsody* | darwin*) 7639 if test -n "$ac_tool_prefix"; then 7640 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 7641set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 7642{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7643printf %s "checking for $ac_word... " >&6; } 7644if test ${ac_cv_prog_DSYMUTIL+y} 7645then : 7646 printf %s "(cached) " >&6 7647else $as_nop 7648 if test -n "$DSYMUTIL"; then 7649 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 7650else 7651as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7652for as_dir in $PATH 7653do 7654 IFS=$as_save_IFS 7655 case $as_dir in #((( 7656 '') as_dir=./ ;; 7657 */) ;; 7658 *) as_dir=$as_dir/ ;; 7659 esac 7660 for ac_exec_ext in '' $ac_executable_extensions; do 7661 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7662 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 7663 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7664 break 2 7665 fi 7666done 7667 done 7668IFS=$as_save_IFS 7669 7670fi 7671fi 7672DSYMUTIL=$ac_cv_prog_DSYMUTIL 7673if test -n "$DSYMUTIL"; then 7674 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 7675printf "%s\n" "$DSYMUTIL" >&6; } 7676else 7677 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7678printf "%s\n" "no" >&6; } 7679fi 7680 7681 7682fi 7683if test -z "$ac_cv_prog_DSYMUTIL"; then 7684 ac_ct_DSYMUTIL=$DSYMUTIL 7685 # Extract the first word of "dsymutil", so it can be a program name with args. 7686set dummy dsymutil; ac_word=$2 7687{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7688printf %s "checking for $ac_word... " >&6; } 7689if test ${ac_cv_prog_ac_ct_DSYMUTIL+y} 7690then : 7691 printf %s "(cached) " >&6 7692else $as_nop 7693 if test -n "$ac_ct_DSYMUTIL"; then 7694 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 7695else 7696as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7697for as_dir in $PATH 7698do 7699 IFS=$as_save_IFS 7700 case $as_dir in #((( 7701 '') as_dir=./ ;; 7702 */) ;; 7703 *) as_dir=$as_dir/ ;; 7704 esac 7705 for ac_exec_ext in '' $ac_executable_extensions; do 7706 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7707 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 7708 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7709 break 2 7710 fi 7711done 7712 done 7713IFS=$as_save_IFS 7714 7715fi 7716fi 7717ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 7718if test -n "$ac_ct_DSYMUTIL"; then 7719 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 7720printf "%s\n" "$ac_ct_DSYMUTIL" >&6; } 7721else 7722 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7723printf "%s\n" "no" >&6; } 7724fi 7725 7726 if test "x$ac_ct_DSYMUTIL" = x; then 7727 DSYMUTIL=":" 7728 else 7729 case $cross_compiling:$ac_tool_warned in 7730yes:) 7731{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7732printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7733ac_tool_warned=yes ;; 7734esac 7735 DSYMUTIL=$ac_ct_DSYMUTIL 7736 fi 7737else 7738 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 7739fi 7740 7741 if test -n "$ac_tool_prefix"; then 7742 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 7743set dummy ${ac_tool_prefix}nmedit; ac_word=$2 7744{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7745printf %s "checking for $ac_word... " >&6; } 7746if test ${ac_cv_prog_NMEDIT+y} 7747then : 7748 printf %s "(cached) " >&6 7749else $as_nop 7750 if test -n "$NMEDIT"; then 7751 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 7752else 7753as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7754for as_dir in $PATH 7755do 7756 IFS=$as_save_IFS 7757 case $as_dir in #((( 7758 '') as_dir=./ ;; 7759 */) ;; 7760 *) as_dir=$as_dir/ ;; 7761 esac 7762 for ac_exec_ext in '' $ac_executable_extensions; do 7763 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7764 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 7765 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7766 break 2 7767 fi 7768done 7769 done 7770IFS=$as_save_IFS 7771 7772fi 7773fi 7774NMEDIT=$ac_cv_prog_NMEDIT 7775if test -n "$NMEDIT"; then 7776 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 7777printf "%s\n" "$NMEDIT" >&6; } 7778else 7779 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7780printf "%s\n" "no" >&6; } 7781fi 7782 7783 7784fi 7785if test -z "$ac_cv_prog_NMEDIT"; then 7786 ac_ct_NMEDIT=$NMEDIT 7787 # Extract the first word of "nmedit", so it can be a program name with args. 7788set dummy nmedit; ac_word=$2 7789{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7790printf %s "checking for $ac_word... " >&6; } 7791if test ${ac_cv_prog_ac_ct_NMEDIT+y} 7792then : 7793 printf %s "(cached) " >&6 7794else $as_nop 7795 if test -n "$ac_ct_NMEDIT"; then 7796 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 7797else 7798as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7799for as_dir in $PATH 7800do 7801 IFS=$as_save_IFS 7802 case $as_dir in #((( 7803 '') as_dir=./ ;; 7804 */) ;; 7805 *) as_dir=$as_dir/ ;; 7806 esac 7807 for ac_exec_ext in '' $ac_executable_extensions; do 7808 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7809 ac_cv_prog_ac_ct_NMEDIT="nmedit" 7810 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7811 break 2 7812 fi 7813done 7814 done 7815IFS=$as_save_IFS 7816 7817fi 7818fi 7819ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 7820if test -n "$ac_ct_NMEDIT"; then 7821 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 7822printf "%s\n" "$ac_ct_NMEDIT" >&6; } 7823else 7824 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7825printf "%s\n" "no" >&6; } 7826fi 7827 7828 if test "x$ac_ct_NMEDIT" = x; then 7829 NMEDIT=":" 7830 else 7831 case $cross_compiling:$ac_tool_warned in 7832yes:) 7833{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7834printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7835ac_tool_warned=yes ;; 7836esac 7837 NMEDIT=$ac_ct_NMEDIT 7838 fi 7839else 7840 NMEDIT="$ac_cv_prog_NMEDIT" 7841fi 7842 7843 if test -n "$ac_tool_prefix"; then 7844 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 7845set dummy ${ac_tool_prefix}lipo; ac_word=$2 7846{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7847printf %s "checking for $ac_word... " >&6; } 7848if test ${ac_cv_prog_LIPO+y} 7849then : 7850 printf %s "(cached) " >&6 7851else $as_nop 7852 if test -n "$LIPO"; then 7853 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 7854else 7855as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7856for as_dir in $PATH 7857do 7858 IFS=$as_save_IFS 7859 case $as_dir in #((( 7860 '') as_dir=./ ;; 7861 */) ;; 7862 *) as_dir=$as_dir/ ;; 7863 esac 7864 for ac_exec_ext in '' $ac_executable_extensions; do 7865 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7866 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 7867 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7868 break 2 7869 fi 7870done 7871 done 7872IFS=$as_save_IFS 7873 7874fi 7875fi 7876LIPO=$ac_cv_prog_LIPO 7877if test -n "$LIPO"; then 7878 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 7879printf "%s\n" "$LIPO" >&6; } 7880else 7881 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7882printf "%s\n" "no" >&6; } 7883fi 7884 7885 7886fi 7887if test -z "$ac_cv_prog_LIPO"; then 7888 ac_ct_LIPO=$LIPO 7889 # Extract the first word of "lipo", so it can be a program name with args. 7890set dummy lipo; ac_word=$2 7891{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7892printf %s "checking for $ac_word... " >&6; } 7893if test ${ac_cv_prog_ac_ct_LIPO+y} 7894then : 7895 printf %s "(cached) " >&6 7896else $as_nop 7897 if test -n "$ac_ct_LIPO"; then 7898 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 7899else 7900as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7901for as_dir in $PATH 7902do 7903 IFS=$as_save_IFS 7904 case $as_dir in #((( 7905 '') as_dir=./ ;; 7906 */) ;; 7907 *) as_dir=$as_dir/ ;; 7908 esac 7909 for ac_exec_ext in '' $ac_executable_extensions; do 7910 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7911 ac_cv_prog_ac_ct_LIPO="lipo" 7912 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7913 break 2 7914 fi 7915done 7916 done 7917IFS=$as_save_IFS 7918 7919fi 7920fi 7921ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 7922if test -n "$ac_ct_LIPO"; then 7923 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 7924printf "%s\n" "$ac_ct_LIPO" >&6; } 7925else 7926 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7927printf "%s\n" "no" >&6; } 7928fi 7929 7930 if test "x$ac_ct_LIPO" = x; then 7931 LIPO=":" 7932 else 7933 case $cross_compiling:$ac_tool_warned in 7934yes:) 7935{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7936printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7937ac_tool_warned=yes ;; 7938esac 7939 LIPO=$ac_ct_LIPO 7940 fi 7941else 7942 LIPO="$ac_cv_prog_LIPO" 7943fi 7944 7945 if test -n "$ac_tool_prefix"; then 7946 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 7947set dummy ${ac_tool_prefix}otool; ac_word=$2 7948{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7949printf %s "checking for $ac_word... " >&6; } 7950if test ${ac_cv_prog_OTOOL+y} 7951then : 7952 printf %s "(cached) " >&6 7953else $as_nop 7954 if test -n "$OTOOL"; then 7955 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 7956else 7957as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7958for as_dir in $PATH 7959do 7960 IFS=$as_save_IFS 7961 case $as_dir in #((( 7962 '') as_dir=./ ;; 7963 */) ;; 7964 *) as_dir=$as_dir/ ;; 7965 esac 7966 for ac_exec_ext in '' $ac_executable_extensions; do 7967 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7968 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 7969 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7970 break 2 7971 fi 7972done 7973 done 7974IFS=$as_save_IFS 7975 7976fi 7977fi 7978OTOOL=$ac_cv_prog_OTOOL 7979if test -n "$OTOOL"; then 7980 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 7981printf "%s\n" "$OTOOL" >&6; } 7982else 7983 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7984printf "%s\n" "no" >&6; } 7985fi 7986 7987 7988fi 7989if test -z "$ac_cv_prog_OTOOL"; then 7990 ac_ct_OTOOL=$OTOOL 7991 # Extract the first word of "otool", so it can be a program name with args. 7992set dummy otool; ac_word=$2 7993{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7994printf %s "checking for $ac_word... " >&6; } 7995if test ${ac_cv_prog_ac_ct_OTOOL+y} 7996then : 7997 printf %s "(cached) " >&6 7998else $as_nop 7999 if test -n "$ac_ct_OTOOL"; then 8000 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 8001else 8002as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8003for as_dir in $PATH 8004do 8005 IFS=$as_save_IFS 8006 case $as_dir in #((( 8007 '') as_dir=./ ;; 8008 */) ;; 8009 *) as_dir=$as_dir/ ;; 8010 esac 8011 for ac_exec_ext in '' $ac_executable_extensions; do 8012 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8013 ac_cv_prog_ac_ct_OTOOL="otool" 8014 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8015 break 2 8016 fi 8017done 8018 done 8019IFS=$as_save_IFS 8020 8021fi 8022fi 8023ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 8024if test -n "$ac_ct_OTOOL"; then 8025 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 8026printf "%s\n" "$ac_ct_OTOOL" >&6; } 8027else 8028 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8029printf "%s\n" "no" >&6; } 8030fi 8031 8032 if test "x$ac_ct_OTOOL" = x; then 8033 OTOOL=":" 8034 else 8035 case $cross_compiling:$ac_tool_warned in 8036yes:) 8037{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8038printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8039ac_tool_warned=yes ;; 8040esac 8041 OTOOL=$ac_ct_OTOOL 8042 fi 8043else 8044 OTOOL="$ac_cv_prog_OTOOL" 8045fi 8046 8047 if test -n "$ac_tool_prefix"; then 8048 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 8049set dummy ${ac_tool_prefix}otool64; ac_word=$2 8050{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8051printf %s "checking for $ac_word... " >&6; } 8052if test ${ac_cv_prog_OTOOL64+y} 8053then : 8054 printf %s "(cached) " >&6 8055else $as_nop 8056 if test -n "$OTOOL64"; then 8057 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 8058else 8059as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8060for as_dir in $PATH 8061do 8062 IFS=$as_save_IFS 8063 case $as_dir in #((( 8064 '') as_dir=./ ;; 8065 */) ;; 8066 *) as_dir=$as_dir/ ;; 8067 esac 8068 for ac_exec_ext in '' $ac_executable_extensions; do 8069 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8070 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 8071 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8072 break 2 8073 fi 8074done 8075 done 8076IFS=$as_save_IFS 8077 8078fi 8079fi 8080OTOOL64=$ac_cv_prog_OTOOL64 8081if test -n "$OTOOL64"; then 8082 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 8083printf "%s\n" "$OTOOL64" >&6; } 8084else 8085 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8086printf "%s\n" "no" >&6; } 8087fi 8088 8089 8090fi 8091if test -z "$ac_cv_prog_OTOOL64"; then 8092 ac_ct_OTOOL64=$OTOOL64 8093 # Extract the first word of "otool64", so it can be a program name with args. 8094set dummy otool64; ac_word=$2 8095{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8096printf %s "checking for $ac_word... " >&6; } 8097if test ${ac_cv_prog_ac_ct_OTOOL64+y} 8098then : 8099 printf %s "(cached) " >&6 8100else $as_nop 8101 if test -n "$ac_ct_OTOOL64"; then 8102 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 8103else 8104as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8105for as_dir in $PATH 8106do 8107 IFS=$as_save_IFS 8108 case $as_dir in #((( 8109 '') as_dir=./ ;; 8110 */) ;; 8111 *) as_dir=$as_dir/ ;; 8112 esac 8113 for ac_exec_ext in '' $ac_executable_extensions; do 8114 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8115 ac_cv_prog_ac_ct_OTOOL64="otool64" 8116 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8117 break 2 8118 fi 8119done 8120 done 8121IFS=$as_save_IFS 8122 8123fi 8124fi 8125ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 8126if test -n "$ac_ct_OTOOL64"; then 8127 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 8128printf "%s\n" "$ac_ct_OTOOL64" >&6; } 8129else 8130 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8131printf "%s\n" "no" >&6; } 8132fi 8133 8134 if test "x$ac_ct_OTOOL64" = x; then 8135 OTOOL64=":" 8136 else 8137 case $cross_compiling:$ac_tool_warned in 8138yes:) 8139{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8140printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8141ac_tool_warned=yes ;; 8142esac 8143 OTOOL64=$ac_ct_OTOOL64 8144 fi 8145else 8146 OTOOL64="$ac_cv_prog_OTOOL64" 8147fi 8148 8149 8150 8151 8152 8153 8154 8155 8156 8157 8158 8159 8160 8161 8162 8163 8164 8165 8166 8167 8168 8169 8170 8171 8172 8173 8174 8175 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 8176printf %s "checking for -single_module linker flag... " >&6; } 8177if test ${lt_cv_apple_cc_single_mod+y} 8178then : 8179 printf %s "(cached) " >&6 8180else $as_nop 8181 lt_cv_apple_cc_single_mod=no 8182 if test -z "$LT_MULTI_MODULE"; then 8183 # By default we will add the -single_module flag. You can override 8184 # by either setting the environment variable LT_MULTI_MODULE 8185 # non-empty at configure time, or by adding -multi_module to the 8186 # link flags. 8187 rm -rf libconftest.dylib* 8188 echo "int foo(void){return 1;}" > conftest.c 8189 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 8190-dynamiclib -Wl,-single_module conftest.c" >&5 8191 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 8192 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 8193 _lt_result=$? 8194 # If there is a non-empty error log, and "single_module" 8195 # appears in it, assume the flag caused a linker warning 8196 if test -s conftest.err && $GREP single_module conftest.err; then 8197 cat conftest.err >&5 8198 # Otherwise, if the output was created with a 0 exit code from 8199 # the compiler, it worked. 8200 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then 8201 lt_cv_apple_cc_single_mod=yes 8202 else 8203 cat conftest.err >&5 8204 fi 8205 rm -rf libconftest.dylib* 8206 rm -f conftest.* 8207 fi 8208fi 8209{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 8210printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; } 8211 8212 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 8213printf %s "checking for -exported_symbols_list linker flag... " >&6; } 8214if test ${lt_cv_ld_exported_symbols_list+y} 8215then : 8216 printf %s "(cached) " >&6 8217else $as_nop 8218 lt_cv_ld_exported_symbols_list=no 8219 save_LDFLAGS=$LDFLAGS 8220 echo "_main" > conftest.sym 8221 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 8222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8223/* end confdefs.h. */ 8224 8225int 8226main (void) 8227{ 8228 8229 ; 8230 return 0; 8231} 8232_ACEOF 8233if ac_fn_c_try_link "$LINENO" 8234then : 8235 lt_cv_ld_exported_symbols_list=yes 8236else $as_nop 8237 lt_cv_ld_exported_symbols_list=no 8238fi 8239rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8240 conftest$ac_exeext conftest.$ac_ext 8241 LDFLAGS=$save_LDFLAGS 8242 8243fi 8244{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 8245printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; } 8246 8247 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 8248printf %s "checking for -force_load linker flag... " >&6; } 8249if test ${lt_cv_ld_force_load+y} 8250then : 8251 printf %s "(cached) " >&6 8252else $as_nop 8253 lt_cv_ld_force_load=no 8254 cat > conftest.c << _LT_EOF 8255int forced_loaded() { return 2;} 8256_LT_EOF 8257 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 8258 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 8259 echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5 8260 $AR $AR_FLAGS libconftest.a conftest.o 2>&5 8261 echo "$RANLIB libconftest.a" >&5 8262 $RANLIB libconftest.a 2>&5 8263 cat > conftest.c << _LT_EOF 8264int main() { return 0;} 8265_LT_EOF 8266 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 8267 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 8268 _lt_result=$? 8269 if test -s conftest.err && $GREP force_load conftest.err; then 8270 cat conftest.err >&5 8271 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then 8272 lt_cv_ld_force_load=yes 8273 else 8274 cat conftest.err >&5 8275 fi 8276 rm -f conftest.err libconftest.a conftest conftest.c 8277 rm -rf conftest.dSYM 8278 8279fi 8280{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 8281printf "%s\n" "$lt_cv_ld_force_load" >&6; } 8282 case $host_os in 8283 rhapsody* | darwin1.[012]) 8284 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; 8285 darwin1.*) 8286 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 8287 darwin*) 8288 case $MACOSX_DEPLOYMENT_TARGET,$host in 8289 10.[012],*|,*powerpc*-darwin[5-8]*) 8290 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 8291 *) 8292 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 8293 esac 8294 ;; 8295 esac 8296 if test yes = "$lt_cv_apple_cc_single_mod"; then 8297 _lt_dar_single_mod='$single_module' 8298 fi 8299 if test yes = "$lt_cv_ld_exported_symbols_list"; then 8300 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' 8301 else 8302 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' 8303 fi 8304 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then 8305 _lt_dsymutil='~$DSYMUTIL $lib || :' 8306 else 8307 _lt_dsymutil= 8308 fi 8309 ;; 8310 esac 8311 8312# func_munge_path_list VARIABLE PATH 8313# ----------------------------------- 8314# VARIABLE is name of variable containing _space_ separated list of 8315# directories to be munged by the contents of PATH, which is string 8316# having a format: 8317# "DIR[:DIR]:" 8318# string "DIR[ DIR]" will be prepended to VARIABLE 8319# ":DIR[:DIR]" 8320# string "DIR[ DIR]" will be appended to VARIABLE 8321# "DIRP[:DIRP]::[DIRA:]DIRA" 8322# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 8323# "DIRA[ DIRA]" will be appended to VARIABLE 8324# "DIR[:DIR]" 8325# VARIABLE will be replaced by "DIR[ DIR]" 8326func_munge_path_list () 8327{ 8328 case x$2 in 8329 x) 8330 ;; 8331 *:) 8332 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 8333 ;; 8334 x:*) 8335 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 8336 ;; 8337 *::*) 8338 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 8339 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 8340 ;; 8341 *) 8342 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 8343 ;; 8344 esac 8345} 8346 8347ac_header= ac_cache= 8348for ac_item in $ac_header_c_list 8349do 8350 if test $ac_cache; then 8351 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default" 8352 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then 8353 printf "%s\n" "#define $ac_item 1" >> confdefs.h 8354 fi 8355 ac_header= ac_cache= 8356 elif test $ac_header; then 8357 ac_cache=$ac_item 8358 else 8359 ac_header=$ac_item 8360 fi 8361done 8362 8363 8364 8365 8366 8367 8368 8369 8370if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes 8371then : 8372 8373printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h 8374 8375fi 8376ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 8377" 8378if test "x$ac_cv_header_dlfcn_h" = xyes 8379then : 8380 printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h 8381 8382fi 8383 8384 8385 8386 8387 8388# Set options 8389 8390 8391 8392 enable_dlopen=no 8393 8394 8395 enable_win32_dll=no 8396 8397 8398 # Check whether --enable-shared was given. 8399if test ${enable_shared+y} 8400then : 8401 enableval=$enable_shared; p=${PACKAGE-default} 8402 case $enableval in 8403 yes) enable_shared=yes ;; 8404 no) enable_shared=no ;; 8405 *) 8406 enable_shared=no 8407 # Look at the argument we got. We use all the common list separators. 8408 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8409 for pkg in $enableval; do 8410 IFS=$lt_save_ifs 8411 if test "X$pkg" = "X$p"; then 8412 enable_shared=yes 8413 fi 8414 done 8415 IFS=$lt_save_ifs 8416 ;; 8417 esac 8418else $as_nop 8419 enable_shared=yes 8420fi 8421 8422 8423 8424 8425 8426 8427 8428 8429 8430 # Check whether --enable-static was given. 8431if test ${enable_static+y} 8432then : 8433 enableval=$enable_static; p=${PACKAGE-default} 8434 case $enableval in 8435 yes) enable_static=yes ;; 8436 no) enable_static=no ;; 8437 *) 8438 enable_static=no 8439 # Look at the argument we got. We use all the common list separators. 8440 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8441 for pkg in $enableval; do 8442 IFS=$lt_save_ifs 8443 if test "X$pkg" = "X$p"; then 8444 enable_static=yes 8445 fi 8446 done 8447 IFS=$lt_save_ifs 8448 ;; 8449 esac 8450else $as_nop 8451 enable_static=yes 8452fi 8453 8454 8455 8456 8457 8458 8459 8460 8461 8462 8463# Check whether --with-pic was given. 8464if test ${with_pic+y} 8465then : 8466 withval=$with_pic; lt_p=${PACKAGE-default} 8467 case $withval in 8468 yes|no) pic_mode=$withval ;; 8469 *) 8470 pic_mode=default 8471 # Look at the argument we got. We use all the common list separators. 8472 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8473 for lt_pkg in $withval; do 8474 IFS=$lt_save_ifs 8475 if test "X$lt_pkg" = "X$lt_p"; then 8476 pic_mode=yes 8477 fi 8478 done 8479 IFS=$lt_save_ifs 8480 ;; 8481 esac 8482else $as_nop 8483 pic_mode=default 8484fi 8485 8486 8487 8488 8489 8490 8491 8492 8493 # Check whether --enable-fast-install was given. 8494if test ${enable_fast_install+y} 8495then : 8496 enableval=$enable_fast_install; p=${PACKAGE-default} 8497 case $enableval in 8498 yes) enable_fast_install=yes ;; 8499 no) enable_fast_install=no ;; 8500 *) 8501 enable_fast_install=no 8502 # Look at the argument we got. We use all the common list separators. 8503 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8504 for pkg in $enableval; do 8505 IFS=$lt_save_ifs 8506 if test "X$pkg" = "X$p"; then 8507 enable_fast_install=yes 8508 fi 8509 done 8510 IFS=$lt_save_ifs 8511 ;; 8512 esac 8513else $as_nop 8514 enable_fast_install=yes 8515fi 8516 8517 8518 8519 8520 8521 8522 8523 8524 shared_archive_member_spec= 8525case $host,$enable_shared in 8526power*-*-aix[5-9]*,yes) 8527 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 8528printf %s "checking which variant of shared library versioning to provide... " >&6; } 8529 8530# Check whether --with-aix-soname was given. 8531if test ${with_aix_soname+y} 8532then : 8533 withval=$with_aix_soname; case $withval in 8534 aix|svr4|both) 8535 ;; 8536 *) 8537 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5 8538 ;; 8539 esac 8540 lt_cv_with_aix_soname=$with_aix_soname 8541else $as_nop 8542 if test ${lt_cv_with_aix_soname+y} 8543then : 8544 printf %s "(cached) " >&6 8545else $as_nop 8546 lt_cv_with_aix_soname=aix 8547fi 8548 8549 with_aix_soname=$lt_cv_with_aix_soname 8550fi 8551 8552 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 8553printf "%s\n" "$with_aix_soname" >&6; } 8554 if test aix != "$with_aix_soname"; then 8555 # For the AIX way of multilib, we name the shared archive member 8556 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', 8557 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. 8558 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, 8559 # the AIX toolchain works better with OBJECT_MODE set (default 32). 8560 if test 64 = "${OBJECT_MODE-32}"; then 8561 shared_archive_member_spec=shr_64 8562 else 8563 shared_archive_member_spec=shr 8564 fi 8565 fi 8566 ;; 8567*) 8568 with_aix_soname=aix 8569 ;; 8570esac 8571 8572 8573 8574 8575 8576 8577 8578 8579 8580 8581# This can be used to rebuild libtool when needed 8582LIBTOOL_DEPS=$ltmain 8583 8584# Always use our own libtool. 8585LIBTOOL='$(SHELL) $(top_builddir)/libtool' 8586 8587 8588 8589 8590 8591 8592 8593 8594 8595 8596 8597 8598 8599 8600 8601 8602 8603 8604 8605 8606 8607 8608 8609 8610 8611 8612 8613 8614 8615 8616test -z "$LN_S" && LN_S="ln -s" 8617 8618 8619 8620 8621 8622 8623 8624 8625 8626 8627 8628 8629 8630 8631if test -n "${ZSH_VERSION+set}"; then 8632 setopt NO_GLOB_SUBST 8633fi 8634 8635{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 8636printf %s "checking for objdir... " >&6; } 8637if test ${lt_cv_objdir+y} 8638then : 8639 printf %s "(cached) " >&6 8640else $as_nop 8641 rm -f .libs 2>/dev/null 8642mkdir .libs 2>/dev/null 8643if test -d .libs; then 8644 lt_cv_objdir=.libs 8645else 8646 # MS-DOS does not allow filenames that begin with a dot. 8647 lt_cv_objdir=_libs 8648fi 8649rmdir .libs 2>/dev/null 8650fi 8651{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 8652printf "%s\n" "$lt_cv_objdir" >&6; } 8653objdir=$lt_cv_objdir 8654 8655 8656 8657 8658 8659printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h 8660 8661 8662 8663 8664case $host_os in 8665aix3*) 8666 # AIX sometimes has problems with the GCC collect2 program. For some 8667 # reason, if we set the COLLECT_NAMES environment variable, the problems 8668 # vanish in a puff of smoke. 8669 if test set != "${COLLECT_NAMES+set}"; then 8670 COLLECT_NAMES= 8671 export COLLECT_NAMES 8672 fi 8673 ;; 8674esac 8675 8676# Global variables: 8677ofile=libtool 8678can_build_shared=yes 8679 8680# All known linkers require a '.a' archive for static linking (except MSVC and 8681# ICC, which need '.lib'). 8682libext=a 8683 8684with_gnu_ld=$lt_cv_prog_gnu_ld 8685 8686old_CC=$CC 8687old_CFLAGS=$CFLAGS 8688 8689# Set sane defaults for various variables 8690test -z "$CC" && CC=cc 8691test -z "$LTCC" && LTCC=$CC 8692test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 8693test -z "$LD" && LD=ld 8694test -z "$ac_objext" && ac_objext=o 8695 8696func_cc_basename $compiler 8697cc_basename=$func_cc_basename_result 8698 8699 8700# Only perform the check for file, if the check method requires it 8701test -z "$MAGIC_CMD" && MAGIC_CMD=file 8702case $deplibs_check_method in 8703file_magic*) 8704 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 8705 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 8706printf %s "checking for ${ac_tool_prefix}file... " >&6; } 8707if test ${lt_cv_path_MAGIC_CMD+y} 8708then : 8709 printf %s "(cached) " >&6 8710else $as_nop 8711 case $MAGIC_CMD in 8712[\\/*] | ?:[\\/]*) 8713 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 8714 ;; 8715*) 8716 lt_save_MAGIC_CMD=$MAGIC_CMD 8717 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 8718 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8719 for ac_dir in $ac_dummy; do 8720 IFS=$lt_save_ifs 8721 test -z "$ac_dir" && ac_dir=. 8722 if test -f "$ac_dir/${ac_tool_prefix}file"; then 8723 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file" 8724 if test -n "$file_magic_test_file"; then 8725 case $deplibs_check_method in 8726 "file_magic "*) 8727 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8728 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8729 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8730 $EGREP "$file_magic_regex" > /dev/null; then 8731 : 8732 else 8733 cat <<_LT_EOF 1>&2 8734 8735*** Warning: the command libtool uses to detect shared libraries, 8736*** $file_magic_cmd, produces output that libtool cannot recognize. 8737*** The result is that libtool may fail to recognize shared libraries 8738*** as such. This will affect the creation of libtool libraries that 8739*** depend on shared libraries, but programs linked with such libtool 8740*** libraries will work regardless of this problem. Nevertheless, you 8741*** may want to report the problem to your system manager and/or to 8742*** bug-libtool@gnu.org 8743 8744_LT_EOF 8745 fi ;; 8746 esac 8747 fi 8748 break 8749 fi 8750 done 8751 IFS=$lt_save_ifs 8752 MAGIC_CMD=$lt_save_MAGIC_CMD 8753 ;; 8754esac 8755fi 8756 8757MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8758if test -n "$MAGIC_CMD"; then 8759 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8760printf "%s\n" "$MAGIC_CMD" >&6; } 8761else 8762 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8763printf "%s\n" "no" >&6; } 8764fi 8765 8766 8767 8768 8769 8770if test -z "$lt_cv_path_MAGIC_CMD"; then 8771 if test -n "$ac_tool_prefix"; then 8772 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5 8773printf %s "checking for file... " >&6; } 8774if test ${lt_cv_path_MAGIC_CMD+y} 8775then : 8776 printf %s "(cached) " >&6 8777else $as_nop 8778 case $MAGIC_CMD in 8779[\\/*] | ?:[\\/]*) 8780 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 8781 ;; 8782*) 8783 lt_save_MAGIC_CMD=$MAGIC_CMD 8784 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 8785 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8786 for ac_dir in $ac_dummy; do 8787 IFS=$lt_save_ifs 8788 test -z "$ac_dir" && ac_dir=. 8789 if test -f "$ac_dir/file"; then 8790 lt_cv_path_MAGIC_CMD=$ac_dir/"file" 8791 if test -n "$file_magic_test_file"; then 8792 case $deplibs_check_method in 8793 "file_magic "*) 8794 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8795 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8796 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8797 $EGREP "$file_magic_regex" > /dev/null; then 8798 : 8799 else 8800 cat <<_LT_EOF 1>&2 8801 8802*** Warning: the command libtool uses to detect shared libraries, 8803*** $file_magic_cmd, produces output that libtool cannot recognize. 8804*** The result is that libtool may fail to recognize shared libraries 8805*** as such. This will affect the creation of libtool libraries that 8806*** depend on shared libraries, but programs linked with such libtool 8807*** libraries will work regardless of this problem. Nevertheless, you 8808*** may want to report the problem to your system manager and/or to 8809*** bug-libtool@gnu.org 8810 8811_LT_EOF 8812 fi ;; 8813 esac 8814 fi 8815 break 8816 fi 8817 done 8818 IFS=$lt_save_ifs 8819 MAGIC_CMD=$lt_save_MAGIC_CMD 8820 ;; 8821esac 8822fi 8823 8824MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8825if test -n "$MAGIC_CMD"; then 8826 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8827printf "%s\n" "$MAGIC_CMD" >&6; } 8828else 8829 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8830printf "%s\n" "no" >&6; } 8831fi 8832 8833 8834 else 8835 MAGIC_CMD=: 8836 fi 8837fi 8838 8839 fi 8840 ;; 8841esac 8842 8843# Use C for the default configuration in the libtool script 8844 8845lt_save_CC=$CC 8846ac_ext=c 8847ac_cpp='$CPP $CPPFLAGS' 8848ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8849ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8850ac_compiler_gnu=$ac_cv_c_compiler_gnu 8851 8852 8853# Source file extension for C test sources. 8854ac_ext=c 8855 8856# Object file extension for compiled C test sources. 8857objext=o 8858objext=$objext 8859 8860# Code to be used in simple compile tests 8861lt_simple_compile_test_code="int some_variable = 0;" 8862 8863# Code to be used in simple link tests 8864lt_simple_link_test_code='int main(){return(0);}' 8865 8866 8867 8868 8869 8870 8871 8872# If no C compiler was specified, use CC. 8873LTCC=${LTCC-"$CC"} 8874 8875# If no C compiler flags were specified, use CFLAGS. 8876LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 8877 8878# Allow CC to be a program name with arguments. 8879compiler=$CC 8880 8881# Save the default compiler, since it gets overwritten when the other 8882# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 8883compiler_DEFAULT=$CC 8884 8885# save warnings/boilerplate of simple test code 8886ac_outfile=conftest.$ac_objext 8887echo "$lt_simple_compile_test_code" >conftest.$ac_ext 8888eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8889_lt_compiler_boilerplate=`cat conftest.err` 8890$RM conftest* 8891 8892ac_outfile=conftest.$ac_objext 8893echo "$lt_simple_link_test_code" >conftest.$ac_ext 8894eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8895_lt_linker_boilerplate=`cat conftest.err` 8896$RM -r conftest* 8897 8898 8899if test -n "$compiler"; then 8900 8901lt_prog_compiler_no_builtin_flag= 8902 8903if test yes = "$GCC"; then 8904 case $cc_basename in 8905 nvcc*) 8906 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 8907 *) 8908 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 8909 esac 8910 8911 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 8912printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 8913if test ${lt_cv_prog_compiler_rtti_exceptions+y} 8914then : 8915 printf %s "(cached) " >&6 8916else $as_nop 8917 lt_cv_prog_compiler_rtti_exceptions=no 8918 ac_outfile=conftest.$ac_objext 8919 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8920 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment 8921 # Insert the option either (1) after the last *FLAGS variable, or 8922 # (2) before a word containing "conftest.", or (3) at the end. 8923 # Note that $ac_compile itself does not contain backslashes and begins 8924 # with a dollar sign (not a hyphen), so the echo should work correctly. 8925 # The option is referenced via a variable to avoid confusing sed. 8926 lt_compile=`echo "$ac_compile" | $SED \ 8927 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8928 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8929 -e 's:$: $lt_compiler_flag:'` 8930 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8931 (eval "$lt_compile" 2>conftest.err) 8932 ac_status=$? 8933 cat conftest.err >&5 8934 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8935 if (exit $ac_status) && test -s "$ac_outfile"; then 8936 # The compiler can only warn and ignore the option if not recognized 8937 # So say no if there are warnings other than the usual output. 8938 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 8939 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8940 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8941 lt_cv_prog_compiler_rtti_exceptions=yes 8942 fi 8943 fi 8944 $RM conftest* 8945 8946fi 8947{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 8948printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 8949 8950if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then 8951 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 8952else 8953 : 8954fi 8955 8956fi 8957 8958 8959 8960 8961 8962 8963 lt_prog_compiler_wl= 8964lt_prog_compiler_pic= 8965lt_prog_compiler_static= 8966 8967 8968 if test yes = "$GCC"; then 8969 lt_prog_compiler_wl='-Wl,' 8970 lt_prog_compiler_static='-static' 8971 8972 case $host_os in 8973 aix*) 8974 # All AIX code is PIC. 8975 if test ia64 = "$host_cpu"; then 8976 # AIX 5 now supports IA64 processor 8977 lt_prog_compiler_static='-Bstatic' 8978 fi 8979 lt_prog_compiler_pic='-fPIC' 8980 ;; 8981 8982 amigaos*) 8983 case $host_cpu in 8984 powerpc) 8985 # see comment about AmigaOS4 .so support 8986 lt_prog_compiler_pic='-fPIC' 8987 ;; 8988 m68k) 8989 # FIXME: we need at least 68020 code to build shared libraries, but 8990 # adding the '-m68020' flag to GCC prevents building anything better, 8991 # like '-m68040'. 8992 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 8993 ;; 8994 esac 8995 ;; 8996 8997 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 8998 # PIC is the default for these OSes. 8999 ;; 9000 9001 mingw* | cygwin* | pw32* | os2* | cegcc*) 9002 # This hack is so that the source file can tell whether it is being 9003 # built for inclusion in a dll (and should export symbols for example). 9004 # Although the cygwin gcc ignores -fPIC, still need this for old-style 9005 # (--disable-auto-import) libraries 9006 lt_prog_compiler_pic='-DDLL_EXPORT' 9007 case $host_os in 9008 os2*) 9009 lt_prog_compiler_static='$wl-static' 9010 ;; 9011 esac 9012 ;; 9013 9014 darwin* | rhapsody*) 9015 # PIC is the default on this platform 9016 # Common symbols not allowed in MH_DYLIB files 9017 lt_prog_compiler_pic='-fno-common' 9018 ;; 9019 9020 haiku*) 9021 # PIC is the default for Haiku. 9022 # The "-static" flag exists, but is broken. 9023 lt_prog_compiler_static= 9024 ;; 9025 9026 hpux*) 9027 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 9028 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 9029 # sets the default TLS model and affects inlining. 9030 case $host_cpu in 9031 hppa*64*) 9032 # +Z the default 9033 ;; 9034 *) 9035 lt_prog_compiler_pic='-fPIC' 9036 ;; 9037 esac 9038 ;; 9039 9040 interix[3-9]*) 9041 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 9042 # Instead, we relocate shared libraries at runtime. 9043 ;; 9044 9045 msdosdjgpp*) 9046 # Just because we use GCC doesn't mean we suddenly get shared libraries 9047 # on systems that don't support them. 9048 lt_prog_compiler_can_build_shared=no 9049 enable_shared=no 9050 ;; 9051 9052 *nto* | *qnx*) 9053 # QNX uses GNU C++, but need to define -shared option too, otherwise 9054 # it will coredump. 9055 lt_prog_compiler_pic='-fPIC -shared' 9056 ;; 9057 9058 sysv4*MP*) 9059 if test -d /usr/nec; then 9060 lt_prog_compiler_pic=-Kconform_pic 9061 fi 9062 ;; 9063 9064 *) 9065 lt_prog_compiler_pic='-fPIC' 9066 ;; 9067 esac 9068 9069 case $cc_basename in 9070 nvcc*) # Cuda Compiler Driver 2.2 9071 lt_prog_compiler_wl='-Xlinker ' 9072 if test -n "$lt_prog_compiler_pic"; then 9073 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 9074 fi 9075 ;; 9076 esac 9077 else 9078 # PORTME Check for flag to pass linker flags through the system compiler. 9079 case $host_os in 9080 aix*) 9081 lt_prog_compiler_wl='-Wl,' 9082 if test ia64 = "$host_cpu"; then 9083 # AIX 5 now supports IA64 processor 9084 lt_prog_compiler_static='-Bstatic' 9085 else 9086 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 9087 fi 9088 ;; 9089 9090 darwin* | rhapsody*) 9091 # PIC is the default on this platform 9092 # Common symbols not allowed in MH_DYLIB files 9093 lt_prog_compiler_pic='-fno-common' 9094 case $cc_basename in 9095 nagfor*) 9096 # NAG Fortran compiler 9097 lt_prog_compiler_wl='-Wl,-Wl,,' 9098 lt_prog_compiler_pic='-PIC' 9099 lt_prog_compiler_static='-Bstatic' 9100 ;; 9101 esac 9102 ;; 9103 9104 mingw* | cygwin* | pw32* | os2* | cegcc*) 9105 # This hack is so that the source file can tell whether it is being 9106 # built for inclusion in a dll (and should export symbols for example). 9107 lt_prog_compiler_pic='-DDLL_EXPORT' 9108 case $host_os in 9109 os2*) 9110 lt_prog_compiler_static='$wl-static' 9111 ;; 9112 esac 9113 ;; 9114 9115 hpux9* | hpux10* | hpux11*) 9116 lt_prog_compiler_wl='-Wl,' 9117 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 9118 # not for PA HP-UX. 9119 case $host_cpu in 9120 hppa*64*|ia64*) 9121 # +Z the default 9122 ;; 9123 *) 9124 lt_prog_compiler_pic='+Z' 9125 ;; 9126 esac 9127 # Is there a better lt_prog_compiler_static that works with the bundled CC? 9128 lt_prog_compiler_static='$wl-a ${wl}archive' 9129 ;; 9130 9131 irix5* | irix6* | nonstopux*) 9132 lt_prog_compiler_wl='-Wl,' 9133 # PIC (with -KPIC) is the default. 9134 lt_prog_compiler_static='-non_shared' 9135 ;; 9136 9137 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 9138 case $cc_basename in 9139 # old Intel for x86_64, which still supported -KPIC. 9140 ecc*) 9141 lt_prog_compiler_wl='-Wl,' 9142 lt_prog_compiler_pic='-KPIC' 9143 lt_prog_compiler_static='-static' 9144 ;; 9145 # icc used to be incompatible with GCC. 9146 # ICC 10 doesn't accept -KPIC any more. 9147 icc* | ifort*) 9148 lt_prog_compiler_wl='-Wl,' 9149 lt_prog_compiler_pic='-fPIC' 9150 lt_prog_compiler_static='-static' 9151 ;; 9152 # Lahey Fortran 8.1. 9153 lf95*) 9154 lt_prog_compiler_wl='-Wl,' 9155 lt_prog_compiler_pic='--shared' 9156 lt_prog_compiler_static='--static' 9157 ;; 9158 nagfor*) 9159 # NAG Fortran compiler 9160 lt_prog_compiler_wl='-Wl,-Wl,,' 9161 lt_prog_compiler_pic='-PIC' 9162 lt_prog_compiler_static='-Bstatic' 9163 ;; 9164 tcc*) 9165 # Fabrice Bellard et al's Tiny C Compiler 9166 lt_prog_compiler_wl='-Wl,' 9167 lt_prog_compiler_pic='-fPIC' 9168 lt_prog_compiler_static='-static' 9169 ;; 9170 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 9171 # Portland Group compilers (*not* the Pentium gcc compiler, 9172 # which looks to be a dead project) 9173 lt_prog_compiler_wl='-Wl,' 9174 lt_prog_compiler_pic='-fpic' 9175 lt_prog_compiler_static='-Bstatic' 9176 ;; 9177 ccc*) 9178 lt_prog_compiler_wl='-Wl,' 9179 # All Alpha code is PIC. 9180 lt_prog_compiler_static='-non_shared' 9181 ;; 9182 xl* | bgxl* | bgf* | mpixl*) 9183 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 9184 lt_prog_compiler_wl='-Wl,' 9185 lt_prog_compiler_pic='-qpic' 9186 lt_prog_compiler_static='-qstaticlink' 9187 ;; 9188 *) 9189 case `$CC -V 2>&1 | $SED 5q` in 9190 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 9191 # Sun Fortran 8.3 passes all unrecognized flags to the linker 9192 lt_prog_compiler_pic='-KPIC' 9193 lt_prog_compiler_static='-Bstatic' 9194 lt_prog_compiler_wl='' 9195 ;; 9196 *Sun\ F* | *Sun*Fortran*) 9197 lt_prog_compiler_pic='-KPIC' 9198 lt_prog_compiler_static='-Bstatic' 9199 lt_prog_compiler_wl='-Qoption ld ' 9200 ;; 9201 *Sun\ C*) 9202 # Sun C 5.9 9203 lt_prog_compiler_pic='-KPIC' 9204 lt_prog_compiler_static='-Bstatic' 9205 lt_prog_compiler_wl='-Wl,' 9206 ;; 9207 *Intel*\ [CF]*Compiler*) 9208 lt_prog_compiler_wl='-Wl,' 9209 lt_prog_compiler_pic='-fPIC' 9210 lt_prog_compiler_static='-static' 9211 ;; 9212 *Portland\ Group*) 9213 lt_prog_compiler_wl='-Wl,' 9214 lt_prog_compiler_pic='-fpic' 9215 lt_prog_compiler_static='-Bstatic' 9216 ;; 9217 esac 9218 ;; 9219 esac 9220 ;; 9221 9222 newsos6) 9223 lt_prog_compiler_pic='-KPIC' 9224 lt_prog_compiler_static='-Bstatic' 9225 ;; 9226 9227 *nto* | *qnx*) 9228 # QNX uses GNU C++, but need to define -shared option too, otherwise 9229 # it will coredump. 9230 lt_prog_compiler_pic='-fPIC -shared' 9231 ;; 9232 9233 osf3* | osf4* | osf5*) 9234 lt_prog_compiler_wl='-Wl,' 9235 # All OSF/1 code is PIC. 9236 lt_prog_compiler_static='-non_shared' 9237 ;; 9238 9239 rdos*) 9240 lt_prog_compiler_static='-non_shared' 9241 ;; 9242 9243 solaris*) 9244 lt_prog_compiler_pic='-KPIC' 9245 lt_prog_compiler_static='-Bstatic' 9246 case $cc_basename in 9247 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 9248 lt_prog_compiler_wl='-Qoption ld ';; 9249 *) 9250 lt_prog_compiler_wl='-Wl,';; 9251 esac 9252 ;; 9253 9254 sunos4*) 9255 lt_prog_compiler_wl='-Qoption ld ' 9256 lt_prog_compiler_pic='-PIC' 9257 lt_prog_compiler_static='-Bstatic' 9258 ;; 9259 9260 sysv4 | sysv4.2uw2* | sysv4.3*) 9261 lt_prog_compiler_wl='-Wl,' 9262 lt_prog_compiler_pic='-KPIC' 9263 lt_prog_compiler_static='-Bstatic' 9264 ;; 9265 9266 sysv4*MP*) 9267 if test -d /usr/nec; then 9268 lt_prog_compiler_pic='-Kconform_pic' 9269 lt_prog_compiler_static='-Bstatic' 9270 fi 9271 ;; 9272 9273 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 9274 lt_prog_compiler_wl='-Wl,' 9275 lt_prog_compiler_pic='-KPIC' 9276 lt_prog_compiler_static='-Bstatic' 9277 ;; 9278 9279 unicos*) 9280 lt_prog_compiler_wl='-Wl,' 9281 lt_prog_compiler_can_build_shared=no 9282 ;; 9283 9284 uts4*) 9285 lt_prog_compiler_pic='-pic' 9286 lt_prog_compiler_static='-Bstatic' 9287 ;; 9288 9289 *) 9290 lt_prog_compiler_can_build_shared=no 9291 ;; 9292 esac 9293 fi 9294 9295case $host_os in 9296 # For platforms that do not support PIC, -DPIC is meaningless: 9297 *djgpp*) 9298 lt_prog_compiler_pic= 9299 ;; 9300 *) 9301 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 9302 ;; 9303esac 9304 9305{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 9306printf %s "checking for $compiler option to produce PIC... " >&6; } 9307if test ${lt_cv_prog_compiler_pic+y} 9308then : 9309 printf %s "(cached) " >&6 9310else $as_nop 9311 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 9312fi 9313{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 9314printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; } 9315lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 9316 9317# 9318# Check to make sure the PIC flag actually works. 9319# 9320if test -n "$lt_prog_compiler_pic"; then 9321 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 9322printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 9323if test ${lt_cv_prog_compiler_pic_works+y} 9324then : 9325 printf %s "(cached) " >&6 9326else $as_nop 9327 lt_cv_prog_compiler_pic_works=no 9328 ac_outfile=conftest.$ac_objext 9329 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9330 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment 9331 # Insert the option either (1) after the last *FLAGS variable, or 9332 # (2) before a word containing "conftest.", or (3) at the end. 9333 # Note that $ac_compile itself does not contain backslashes and begins 9334 # with a dollar sign (not a hyphen), so the echo should work correctly. 9335 # The option is referenced via a variable to avoid confusing sed. 9336 lt_compile=`echo "$ac_compile" | $SED \ 9337 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9338 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9339 -e 's:$: $lt_compiler_flag:'` 9340 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9341 (eval "$lt_compile" 2>conftest.err) 9342 ac_status=$? 9343 cat conftest.err >&5 9344 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9345 if (exit $ac_status) && test -s "$ac_outfile"; then 9346 # The compiler can only warn and ignore the option if not recognized 9347 # So say no if there are warnings other than the usual output. 9348 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 9349 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9350 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 9351 lt_cv_prog_compiler_pic_works=yes 9352 fi 9353 fi 9354 $RM conftest* 9355 9356fi 9357{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 9358printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; } 9359 9360if test yes = "$lt_cv_prog_compiler_pic_works"; then 9361 case $lt_prog_compiler_pic in 9362 "" | " "*) ;; 9363 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 9364 esac 9365else 9366 lt_prog_compiler_pic= 9367 lt_prog_compiler_can_build_shared=no 9368fi 9369 9370fi 9371 9372 9373 9374 9375 9376 9377 9378 9379 9380 9381 9382# 9383# Check to make sure the static flag actually works. 9384# 9385wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 9386{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 9387printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 9388if test ${lt_cv_prog_compiler_static_works+y} 9389then : 9390 printf %s "(cached) " >&6 9391else $as_nop 9392 lt_cv_prog_compiler_static_works=no 9393 save_LDFLAGS=$LDFLAGS 9394 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 9395 echo "$lt_simple_link_test_code" > conftest.$ac_ext 9396 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 9397 # The linker can only warn and ignore the option if not recognized 9398 # So say no if there are warnings 9399 if test -s conftest.err; then 9400 # Append any errors to the config.log. 9401 cat conftest.err 1>&5 9402 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 9403 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9404 if diff conftest.exp conftest.er2 >/dev/null; then 9405 lt_cv_prog_compiler_static_works=yes 9406 fi 9407 else 9408 lt_cv_prog_compiler_static_works=yes 9409 fi 9410 fi 9411 $RM -r conftest* 9412 LDFLAGS=$save_LDFLAGS 9413 9414fi 9415{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 9416printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; } 9417 9418if test yes = "$lt_cv_prog_compiler_static_works"; then 9419 : 9420else 9421 lt_prog_compiler_static= 9422fi 9423 9424 9425 9426 9427 9428 9429 9430 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 9431printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 9432if test ${lt_cv_prog_compiler_c_o+y} 9433then : 9434 printf %s "(cached) " >&6 9435else $as_nop 9436 lt_cv_prog_compiler_c_o=no 9437 $RM -r conftest 2>/dev/null 9438 mkdir conftest 9439 cd conftest 9440 mkdir out 9441 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9442 9443 lt_compiler_flag="-o out/conftest2.$ac_objext" 9444 # Insert the option either (1) after the last *FLAGS variable, or 9445 # (2) before a word containing "conftest.", or (3) at the end. 9446 # Note that $ac_compile itself does not contain backslashes and begins 9447 # with a dollar sign (not a hyphen), so the echo should work correctly. 9448 lt_compile=`echo "$ac_compile" | $SED \ 9449 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9450 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9451 -e 's:$: $lt_compiler_flag:'` 9452 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9453 (eval "$lt_compile" 2>out/conftest.err) 9454 ac_status=$? 9455 cat out/conftest.err >&5 9456 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9457 if (exit $ac_status) && test -s out/conftest2.$ac_objext 9458 then 9459 # The compiler can only warn and ignore the option if not recognized 9460 # So say no if there are warnings 9461 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 9462 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 9463 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 9464 lt_cv_prog_compiler_c_o=yes 9465 fi 9466 fi 9467 chmod u+w . 2>&5 9468 $RM conftest* 9469 # SGI C++ compiler will create directory out/ii_files/ for 9470 # template instantiation 9471 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 9472 $RM out/* && rmdir out 9473 cd .. 9474 $RM -r conftest 9475 $RM conftest* 9476 9477fi 9478{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 9479printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; } 9480 9481 9482 9483 9484 9485 9486 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 9487printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 9488if test ${lt_cv_prog_compiler_c_o+y} 9489then : 9490 printf %s "(cached) " >&6 9491else $as_nop 9492 lt_cv_prog_compiler_c_o=no 9493 $RM -r conftest 2>/dev/null 9494 mkdir conftest 9495 cd conftest 9496 mkdir out 9497 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9498 9499 lt_compiler_flag="-o out/conftest2.$ac_objext" 9500 # Insert the option either (1) after the last *FLAGS variable, or 9501 # (2) before a word containing "conftest.", or (3) at the end. 9502 # Note that $ac_compile itself does not contain backslashes and begins 9503 # with a dollar sign (not a hyphen), so the echo should work correctly. 9504 lt_compile=`echo "$ac_compile" | $SED \ 9505 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9506 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9507 -e 's:$: $lt_compiler_flag:'` 9508 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9509 (eval "$lt_compile" 2>out/conftest.err) 9510 ac_status=$? 9511 cat out/conftest.err >&5 9512 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9513 if (exit $ac_status) && test -s out/conftest2.$ac_objext 9514 then 9515 # The compiler can only warn and ignore the option if not recognized 9516 # So say no if there are warnings 9517 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 9518 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 9519 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 9520 lt_cv_prog_compiler_c_o=yes 9521 fi 9522 fi 9523 chmod u+w . 2>&5 9524 $RM conftest* 9525 # SGI C++ compiler will create directory out/ii_files/ for 9526 # template instantiation 9527 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 9528 $RM out/* && rmdir out 9529 cd .. 9530 $RM -r conftest 9531 $RM conftest* 9532 9533fi 9534{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 9535printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; } 9536 9537 9538 9539 9540hard_links=nottested 9541if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then 9542 # do not overwrite the value of need_locks provided by the user 9543 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 9544printf %s "checking if we can lock with hard links... " >&6; } 9545 hard_links=yes 9546 $RM conftest* 9547 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9548 touch conftest.a 9549 ln conftest.a conftest.b 2>&5 || hard_links=no 9550 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9551 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 9552printf "%s\n" "$hard_links" >&6; } 9553 if test no = "$hard_links"; then 9554 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 9555printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 9556 need_locks=warn 9557 fi 9558else 9559 need_locks=no 9560fi 9561 9562 9563 9564 9565 9566 9567 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 9568printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 9569 9570 runpath_var= 9571 allow_undefined_flag= 9572 always_export_symbols=no 9573 archive_cmds= 9574 archive_expsym_cmds= 9575 compiler_needs_object=no 9576 enable_shared_with_static_runtimes=no 9577 export_dynamic_flag_spec= 9578 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 9579 hardcode_automatic=no 9580 hardcode_direct=no 9581 hardcode_direct_absolute=no 9582 hardcode_libdir_flag_spec= 9583 hardcode_libdir_separator= 9584 hardcode_minus_L=no 9585 hardcode_shlibpath_var=unsupported 9586 inherit_rpath=no 9587 link_all_deplibs=unknown 9588 module_cmds= 9589 module_expsym_cmds= 9590 old_archive_from_new_cmds= 9591 old_archive_from_expsyms_cmds= 9592 thread_safe_flag_spec= 9593 whole_archive_flag_spec= 9594 # include_expsyms should be a list of space-separated symbols to be *always* 9595 # included in the symbol list 9596 include_expsyms= 9597 # exclude_expsyms can be an extended regexp of symbols to exclude 9598 # it will be wrapped by ' (' and ')$', so one must not match beginning or 9599 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', 9600 # as well as any symbol that contains 'd'. 9601 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 9602 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 9603 # platforms (ab)use it in PIC code, but their linkers get confused if 9604 # the symbol is explicitly referenced. Since portable code cannot 9605 # rely on this symbol name, it's probably fine to never include it in 9606 # preloaded symbol tables. 9607 # Exclude shared library initialization/finalization symbols. 9608 extract_expsyms_cmds= 9609 9610 case $host_os in 9611 cygwin* | mingw* | pw32* | cegcc*) 9612 # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time 9613 # When not using gcc, we currently assume that we are using 9614 # Microsoft Visual C++ or Intel C++ Compiler. 9615 if test yes != "$GCC"; then 9616 with_gnu_ld=no 9617 fi 9618 ;; 9619 interix*) 9620 # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC) 9621 with_gnu_ld=yes 9622 ;; 9623 openbsd* | bitrig*) 9624 with_gnu_ld=no 9625 ;; 9626 esac 9627 9628 ld_shlibs=yes 9629 9630 # On some targets, GNU ld is compatible enough with the native linker 9631 # that we're better off using the native interface for both. 9632 lt_use_gnu_ld_interface=no 9633 if test yes = "$with_gnu_ld"; then 9634 case $host_os in 9635 aix*) 9636 # The AIX port of GNU ld has always aspired to compatibility 9637 # with the native linker. However, as the warning in the GNU ld 9638 # block says, versions before 2.19.5* couldn't really create working 9639 # shared libraries, regardless of the interface used. 9640 case `$LD -v 2>&1` in 9641 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 9642 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 9643 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 9644 *) 9645 lt_use_gnu_ld_interface=yes 9646 ;; 9647 esac 9648 ;; 9649 *) 9650 lt_use_gnu_ld_interface=yes 9651 ;; 9652 esac 9653 fi 9654 9655 if test yes = "$lt_use_gnu_ld_interface"; then 9656 # If archive_cmds runs LD, not CC, wlarc should be empty 9657 wlarc='$wl' 9658 9659 # Set some defaults for GNU ld with shared library support. These 9660 # are reset later if shared libraries are not supported. Putting them 9661 # here allows them to be overridden if necessary. 9662 runpath_var=LD_RUN_PATH 9663 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9664 export_dynamic_flag_spec='$wl--export-dynamic' 9665 # ancient GNU ld didn't support --whole-archive et. al. 9666 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 9667 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 9668 else 9669 whole_archive_flag_spec= 9670 fi 9671 supports_anon_versioning=no 9672 case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in 9673 *GNU\ gold*) supports_anon_versioning=yes ;; 9674 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 9675 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 9676 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 9677 *\ 2.11.*) ;; # other 2.11 versions 9678 *) supports_anon_versioning=yes ;; 9679 esac 9680 9681 # See if GNU ld supports shared libraries. 9682 case $host_os in 9683 aix[3-9]*) 9684 # On AIX/PPC, the GNU linker is very broken 9685 if test ia64 != "$host_cpu"; then 9686 ld_shlibs=no 9687 cat <<_LT_EOF 1>&2 9688 9689*** Warning: the GNU linker, at least up to release 2.19, is reported 9690*** to be unable to reliably create shared libraries on AIX. 9691*** Therefore, libtool is disabling shared libraries support. If you 9692*** really care for shared libraries, you may want to install binutils 9693*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 9694*** You will then need to restart the configuration process. 9695 9696_LT_EOF 9697 fi 9698 ;; 9699 9700 amigaos*) 9701 case $host_cpu in 9702 powerpc) 9703 # see comment about AmigaOS4 .so support 9704 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9705 archive_expsym_cmds='' 9706 ;; 9707 m68k) 9708 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)' 9709 hardcode_libdir_flag_spec='-L$libdir' 9710 hardcode_minus_L=yes 9711 ;; 9712 esac 9713 ;; 9714 9715 beos*) 9716 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9717 allow_undefined_flag=unsupported 9718 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 9719 # support --undefined. This deserves some investigation. FIXME 9720 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9721 else 9722 ld_shlibs=no 9723 fi 9724 ;; 9725 9726 cygwin* | mingw* | pw32* | cegcc*) 9727 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 9728 # as there is no search path for DLLs. 9729 hardcode_libdir_flag_spec='-L$libdir' 9730 export_dynamic_flag_spec='$wl--export-all-symbols' 9731 allow_undefined_flag=unsupported 9732 always_export_symbols=no 9733 enable_shared_with_static_runtimes=yes 9734 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' 9735 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 9736 9737 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 9738 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9739 # If the export-symbols file already is a .def file, use it as 9740 # is; otherwise, prepend EXPORTS... 9741 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 9742 cp $export_symbols $output_objdir/$soname.def; 9743 else 9744 echo EXPORTS > $output_objdir/$soname.def; 9745 cat $export_symbols >> $output_objdir/$soname.def; 9746 fi~ 9747 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9748 else 9749 ld_shlibs=no 9750 fi 9751 ;; 9752 9753 haiku*) 9754 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9755 link_all_deplibs=yes 9756 ;; 9757 9758 os2*) 9759 hardcode_libdir_flag_spec='-L$libdir' 9760 hardcode_minus_L=yes 9761 allow_undefined_flag=unsupported 9762 shrext_cmds=.dll 9763 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 9764 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 9765 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 9766 $ECHO EXPORTS >> $output_objdir/$libname.def~ 9767 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 9768 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 9769 emximp -o $lib $output_objdir/$libname.def' 9770 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 9771 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 9772 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 9773 $ECHO EXPORTS >> $output_objdir/$libname.def~ 9774 prefix_cmds="$SED"~ 9775 if test EXPORTS = "`$SED 1q $export_symbols`"; then 9776 prefix_cmds="$prefix_cmds -e 1d"; 9777 fi~ 9778 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 9779 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 9780 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 9781 emximp -o $lib $output_objdir/$libname.def' 9782 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 9783 enable_shared_with_static_runtimes=yes 9784 file_list_spec='@' 9785 ;; 9786 9787 interix[3-9]*) 9788 hardcode_direct=no 9789 hardcode_shlibpath_var=no 9790 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 9791 export_dynamic_flag_spec='$wl-E' 9792 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 9793 # Instead, shared libraries are loaded at an image base (0x10000000 by 9794 # default) and relocated if they conflict, which is a slow very memory 9795 # consuming and fragmenting process. To avoid this, we pick a random, 9796 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 9797 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 9798 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 9799 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' 9800 ;; 9801 9802 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 9803 tmp_diet=no 9804 if test linux-dietlibc = "$host_os"; then 9805 case $cc_basename in 9806 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 9807 esac 9808 fi 9809 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 9810 && test no = "$tmp_diet" 9811 then 9812 tmp_addflag=' $pic_flag' 9813 tmp_sharedflag='-shared' 9814 case $cc_basename,$host_cpu in 9815 pgcc*) # Portland Group C compiler 9816 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' 9817 tmp_addflag=' $pic_flag' 9818 ;; 9819 pgf77* | pgf90* | pgf95* | pgfortran*) 9820 # Portland Group f77 and f90 compilers 9821 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' 9822 tmp_addflag=' $pic_flag -Mnomain' ;; 9823 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 9824 tmp_addflag=' -i_dynamic' ;; 9825 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 9826 tmp_addflag=' -i_dynamic -nofor_main' ;; 9827 ifc* | ifort*) # Intel Fortran compiler 9828 tmp_addflag=' -nofor_main' ;; 9829 lf95*) # Lahey Fortran 8.1 9830 whole_archive_flag_spec= 9831 tmp_sharedflag='--shared' ;; 9832 nagfor*) # NAGFOR 5.3 9833 tmp_sharedflag='-Wl,-shared' ;; 9834 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 9835 tmp_sharedflag='-qmkshrobj' 9836 tmp_addflag= ;; 9837 nvcc*) # Cuda Compiler Driver 2.2 9838 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' 9839 compiler_needs_object=yes 9840 ;; 9841 esac 9842 case `$CC -V 2>&1 | $SED 5q` in 9843 *Sun\ C*) # Sun C 5.9 9844 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' 9845 compiler_needs_object=yes 9846 tmp_sharedflag='-G' ;; 9847 *Sun\ F*) # Sun Fortran 8.3 9848 tmp_sharedflag='-G' ;; 9849 esac 9850 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9851 9852 if test yes = "$supports_anon_versioning"; then 9853 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9854 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9855 echo "local: *; };" >> $output_objdir/$libname.ver~ 9856 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 9857 fi 9858 9859 case $cc_basename in 9860 tcc*) 9861 export_dynamic_flag_spec='-rdynamic' 9862 ;; 9863 xlf* | bgf* | bgxlf* | mpixlf*) 9864 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 9865 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 9866 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9867 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 9868 if test yes = "$supports_anon_versioning"; then 9869 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9870 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9871 echo "local: *; };" >> $output_objdir/$libname.ver~ 9872 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 9873 fi 9874 ;; 9875 esac 9876 else 9877 ld_shlibs=no 9878 fi 9879 ;; 9880 9881 netbsd*) 9882 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9883 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 9884 wlarc= 9885 else 9886 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9887 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9888 fi 9889 ;; 9890 9891 solaris*) 9892 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 9893 ld_shlibs=no 9894 cat <<_LT_EOF 1>&2 9895 9896*** Warning: The releases 2.8.* of the GNU linker cannot reliably 9897*** create shared libraries on Solaris systems. Therefore, libtool 9898*** is disabling shared libraries support. We urge you to upgrade GNU 9899*** binutils to release 2.9.1 or newer. Another option is to modify 9900*** your PATH or compiler configuration so that the native linker is 9901*** used, and then restart. 9902 9903_LT_EOF 9904 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9905 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9906 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9907 else 9908 ld_shlibs=no 9909 fi 9910 ;; 9911 9912 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 9913 case `$LD -v 2>&1` in 9914 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 9915 ld_shlibs=no 9916 cat <<_LT_EOF 1>&2 9917 9918*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot 9919*** reliably create shared libraries on SCO systems. Therefore, libtool 9920*** is disabling shared libraries support. We urge you to upgrade GNU 9921*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 9922*** your PATH or compiler configuration so that the native linker is 9923*** used, and then restart. 9924 9925_LT_EOF 9926 ;; 9927 *) 9928 # For security reasons, it is highly recommended that you always 9929 # use absolute paths for naming shared libraries, and exclude the 9930 # DT_RUNPATH tag from executables and libraries. But doing so 9931 # requires that you compile everything twice, which is a pain. 9932 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9933 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9934 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9935 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9936 else 9937 ld_shlibs=no 9938 fi 9939 ;; 9940 esac 9941 ;; 9942 9943 sunos4*) 9944 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9945 wlarc= 9946 hardcode_direct=yes 9947 hardcode_shlibpath_var=no 9948 ;; 9949 9950 *) 9951 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9952 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9953 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9954 else 9955 ld_shlibs=no 9956 fi 9957 ;; 9958 esac 9959 9960 if test no = "$ld_shlibs"; then 9961 runpath_var= 9962 hardcode_libdir_flag_spec= 9963 export_dynamic_flag_spec= 9964 whole_archive_flag_spec= 9965 fi 9966 else 9967 # PORTME fill in a description of your system's linker (not GNU ld) 9968 case $host_os in 9969 aix3*) 9970 allow_undefined_flag=unsupported 9971 always_export_symbols=yes 9972 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' 9973 # Note: this linker hardcodes the directories in LIBPATH if there 9974 # are no directories specified by -L. 9975 hardcode_minus_L=yes 9976 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then 9977 # Neither direct hardcoding nor static linking is supported with a 9978 # broken collect2. 9979 hardcode_direct=unsupported 9980 fi 9981 ;; 9982 9983 aix[4-9]*) 9984 if test ia64 = "$host_cpu"; then 9985 # On IA64, the linker does run time linking by default, so we don't 9986 # have to do anything special. 9987 aix_use_runtimelinking=no 9988 exp_sym_flag='-Bexport' 9989 no_entry_flag= 9990 else 9991 # If we're using GNU nm, then we don't want the "-C" option. 9992 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 9993 # Without the "-l" option, or with the "-B" option, AIX nm treats 9994 # weak defined symbols like other global defined symbols, whereas 9995 # GNU nm marks them as "W". 9996 # While the 'weak' keyword is ignored in the Export File, we need 9997 # it in the Import File for the 'aix-soname' feature, so we have 9998 # to replace the "-B" option with "-P" for AIX nm. 9999 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 10000 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' 10001 else 10002 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' 10003 fi 10004 aix_use_runtimelinking=no 10005 10006 # Test if we are trying to use run time linking or normal 10007 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 10008 # have runtime linking enabled, and use it for executables. 10009 # For shared libraries, we enable/disable runtime linking 10010 # depending on the kind of the shared library created - 10011 # when "with_aix_soname,aix_use_runtimelinking" is: 10012 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 10013 # "aix,yes" lib.so shared, rtl:yes, for executables 10014 # lib.a static archive 10015 # "both,no" lib.so.V(shr.o) shared, rtl:yes 10016 # lib.a(lib.so.V) shared, rtl:no, for executables 10017 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 10018 # lib.a(lib.so.V) shared, rtl:no 10019 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 10020 # lib.a static archive 10021 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 10022 for ld_flag in $LDFLAGS; do 10023 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then 10024 aix_use_runtimelinking=yes 10025 break 10026 fi 10027 done 10028 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 10029 # With aix-soname=svr4, we create the lib.so.V shared archives only, 10030 # so we don't have lib.a shared libs to link our executables. 10031 # We have to force runtime linking in this case. 10032 aix_use_runtimelinking=yes 10033 LDFLAGS="$LDFLAGS -Wl,-brtl" 10034 fi 10035 ;; 10036 esac 10037 10038 exp_sym_flag='-bexport' 10039 no_entry_flag='-bnoentry' 10040 fi 10041 10042 # When large executables or shared objects are built, AIX ld can 10043 # have problems creating the table of contents. If linking a library 10044 # or program results in "error TOC overflow" add -mminimal-toc to 10045 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 10046 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 10047 10048 archive_cmds='' 10049 hardcode_direct=yes 10050 hardcode_direct_absolute=yes 10051 hardcode_libdir_separator=':' 10052 link_all_deplibs=yes 10053 file_list_spec='$wl-f,' 10054 case $with_aix_soname,$aix_use_runtimelinking in 10055 aix,*) ;; # traditional, no import file 10056 svr4,* | *,yes) # use import file 10057 # The Import File defines what to hardcode. 10058 hardcode_direct=no 10059 hardcode_direct_absolute=no 10060 ;; 10061 esac 10062 10063 if test yes = "$GCC"; then 10064 case $host_os in aix4.[012]|aix4.[012].*) 10065 # We only want to do this on AIX 4.2 and lower, the check 10066 # below for broken collect2 doesn't work under 4.3+ 10067 collect2name=`$CC -print-prog-name=collect2` 10068 if test -f "$collect2name" && 10069 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 10070 then 10071 # We have reworked collect2 10072 : 10073 else 10074 # We have old collect2 10075 hardcode_direct=unsupported 10076 # It fails to find uninstalled libraries when the uninstalled 10077 # path is not listed in the libpath. Setting hardcode_minus_L 10078 # to unsupported forces relinking 10079 hardcode_minus_L=yes 10080 hardcode_libdir_flag_spec='-L$libdir' 10081 hardcode_libdir_separator= 10082 fi 10083 ;; 10084 esac 10085 shared_flag='-shared' 10086 if test yes = "$aix_use_runtimelinking"; then 10087 shared_flag="$shared_flag "'$wl-G' 10088 fi 10089 # Need to ensure runtime linking is disabled for the traditional 10090 # shared library, or the linker may eventually find shared libraries 10091 # /with/ Import File - we do not want to mix them. 10092 shared_flag_aix='-shared' 10093 shared_flag_svr4='-shared $wl-G' 10094 else 10095 # not using gcc 10096 if test ia64 = "$host_cpu"; then 10097 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 10098 # chokes on -Wl,-G. The following line is correct: 10099 shared_flag='-G' 10100 else 10101 if test yes = "$aix_use_runtimelinking"; then 10102 shared_flag='$wl-G' 10103 else 10104 shared_flag='$wl-bM:SRE' 10105 fi 10106 shared_flag_aix='$wl-bM:SRE' 10107 shared_flag_svr4='$wl-G' 10108 fi 10109 fi 10110 10111 export_dynamic_flag_spec='$wl-bexpall' 10112 # It seems that -bexpall does not export symbols beginning with 10113 # underscore (_), so it is better to generate a list of symbols to export. 10114 always_export_symbols=yes 10115 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 10116 # Warning - without using the other runtime loading flags (-brtl), 10117 # -berok will link without error, but may produce a broken library. 10118 allow_undefined_flag='-berok' 10119 # Determine the default libpath from the value encoded in an 10120 # empty executable. 10121 if test set = "${lt_cv_aix_libpath+set}"; then 10122 aix_libpath=$lt_cv_aix_libpath 10123else 10124 if test ${lt_cv_aix_libpath_+y} 10125then : 10126 printf %s "(cached) " >&6 10127else $as_nop 10128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10129/* end confdefs.h. */ 10130 10131int 10132main (void) 10133{ 10134 10135 ; 10136 return 0; 10137} 10138_ACEOF 10139if ac_fn_c_try_link "$LINENO" 10140then : 10141 10142 lt_aix_libpath_sed=' 10143 /Import File Strings/,/^$/ { 10144 /^0/ { 10145 s/^0 *\([^ ]*\) *$/\1/ 10146 p 10147 } 10148 }' 10149 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10150 # Check for a 64-bit object if we didn't find anything. 10151 if test -z "$lt_cv_aix_libpath_"; then 10152 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10153 fi 10154fi 10155rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10156 conftest$ac_exeext conftest.$ac_ext 10157 if test -z "$lt_cv_aix_libpath_"; then 10158 lt_cv_aix_libpath_=/usr/lib:/lib 10159 fi 10160 10161fi 10162 10163 aix_libpath=$lt_cv_aix_libpath_ 10164fi 10165 10166 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 10167 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 10168 else 10169 if test ia64 = "$host_cpu"; then 10170 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib' 10171 allow_undefined_flag="-z nodefs" 10172 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" 10173 else 10174 # Determine the default libpath from the value encoded in an 10175 # empty executable. 10176 if test set = "${lt_cv_aix_libpath+set}"; then 10177 aix_libpath=$lt_cv_aix_libpath 10178else 10179 if test ${lt_cv_aix_libpath_+y} 10180then : 10181 printf %s "(cached) " >&6 10182else $as_nop 10183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10184/* end confdefs.h. */ 10185 10186int 10187main (void) 10188{ 10189 10190 ; 10191 return 0; 10192} 10193_ACEOF 10194if ac_fn_c_try_link "$LINENO" 10195then : 10196 10197 lt_aix_libpath_sed=' 10198 /Import File Strings/,/^$/ { 10199 /^0/ { 10200 s/^0 *\([^ ]*\) *$/\1/ 10201 p 10202 } 10203 }' 10204 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10205 # Check for a 64-bit object if we didn't find anything. 10206 if test -z "$lt_cv_aix_libpath_"; then 10207 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10208 fi 10209fi 10210rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10211 conftest$ac_exeext conftest.$ac_ext 10212 if test -z "$lt_cv_aix_libpath_"; then 10213 lt_cv_aix_libpath_=/usr/lib:/lib 10214 fi 10215 10216fi 10217 10218 aix_libpath=$lt_cv_aix_libpath_ 10219fi 10220 10221 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 10222 # Warning - without using the other run time loading flags, 10223 # -berok will link without error, but may produce a broken library. 10224 no_undefined_flag=' $wl-bernotok' 10225 allow_undefined_flag=' $wl-berok' 10226 if test yes = "$with_gnu_ld"; then 10227 # We only use this code for GNU lds that support --whole-archive. 10228 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive' 10229 else 10230 # Exported symbols can be pulled into shared objects from archives 10231 whole_archive_flag_spec='$convenience' 10232 fi 10233 archive_cmds_need_lc=yes 10234 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 10235 # -brtl affects multiple linker settings, -berok does not and is overridden later 10236 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 10237 if test svr4 != "$with_aix_soname"; then 10238 # This is similar to how AIX traditionally builds its shared libraries. 10239 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' 10240 fi 10241 if test aix != "$with_aix_soname"; then 10242 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' 10243 else 10244 # used by -dlpreopen to get the symbols 10245 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 10246 fi 10247 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d' 10248 fi 10249 fi 10250 ;; 10251 10252 amigaos*) 10253 case $host_cpu in 10254 powerpc) 10255 # see comment about AmigaOS4 .so support 10256 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10257 archive_expsym_cmds='' 10258 ;; 10259 m68k) 10260 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)' 10261 hardcode_libdir_flag_spec='-L$libdir' 10262 hardcode_minus_L=yes 10263 ;; 10264 esac 10265 ;; 10266 10267 bsdi[45]*) 10268 export_dynamic_flag_spec=-rdynamic 10269 ;; 10270 10271 cygwin* | mingw* | pw32* | cegcc*) 10272 # When not using gcc, we currently assume that we are using 10273 # Microsoft Visual C++ or Intel C++ Compiler. 10274 # hardcode_libdir_flag_spec is actually meaningless, as there is 10275 # no search path for DLLs. 10276 case $cc_basename in 10277 cl* | icl*) 10278 # Native MSVC or ICC 10279 hardcode_libdir_flag_spec=' ' 10280 allow_undefined_flag=unsupported 10281 always_export_symbols=yes 10282 file_list_spec='@' 10283 # Tell ltmain to make .lib files, not .a files. 10284 libext=lib 10285 # Tell ltmain to make .dll files, not .so files. 10286 shrext_cmds=.dll 10287 # FIXME: Setting linknames here is a bad hack. 10288 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 10289 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 10290 cp "$export_symbols" "$output_objdir/$soname.def"; 10291 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 10292 else 10293 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 10294 fi~ 10295 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 10296 linknames=' 10297 # The linker will not automatically build a static lib if we build a DLL. 10298 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 10299 enable_shared_with_static_runtimes=yes 10300 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 10301 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 10302 # Don't use ranlib 10303 old_postinstall_cmds='chmod 644 $oldlib' 10304 postlink_cmds='lt_outputfile="@OUTPUT@"~ 10305 lt_tool_outputfile="@TOOL_OUTPUT@"~ 10306 case $lt_outputfile in 10307 *.exe|*.EXE) ;; 10308 *) 10309 lt_outputfile=$lt_outputfile.exe 10310 lt_tool_outputfile=$lt_tool_outputfile.exe 10311 ;; 10312 esac~ 10313 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 10314 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 10315 $RM "$lt_outputfile.manifest"; 10316 fi' 10317 ;; 10318 *) 10319 # Assume MSVC and ICC wrapper 10320 hardcode_libdir_flag_spec=' ' 10321 allow_undefined_flag=unsupported 10322 # Tell ltmain to make .lib files, not .a files. 10323 libext=lib 10324 # Tell ltmain to make .dll files, not .so files. 10325 shrext_cmds=.dll 10326 # FIXME: Setting linknames here is a bad hack. 10327 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 10328 # The linker will automatically build a .lib file if we build a DLL. 10329 old_archive_from_new_cmds='true' 10330 # FIXME: Should let the user specify the lib program. 10331 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 10332 enable_shared_with_static_runtimes=yes 10333 ;; 10334 esac 10335 ;; 10336 10337 darwin* | rhapsody*) 10338 10339 10340 archive_cmds_need_lc=no 10341 hardcode_direct=no 10342 hardcode_automatic=yes 10343 hardcode_shlibpath_var=unsupported 10344 if test yes = "$lt_cv_ld_force_load"; then 10345 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\"`' 10346 10347 else 10348 whole_archive_flag_spec='' 10349 fi 10350 link_all_deplibs=yes 10351 allow_undefined_flag=$_lt_dar_allow_undefined 10352 case $cc_basename in 10353 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 10354 *) _lt_dar_can_shared=$GCC ;; 10355 esac 10356 if test yes = "$_lt_dar_can_shared"; then 10357 output_verbose_link_cmd=func_echo_all 10358 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" 10359 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 10360 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" 10361 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" 10362 10363 else 10364 ld_shlibs=no 10365 fi 10366 10367 ;; 10368 10369 dgux*) 10370 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10371 hardcode_libdir_flag_spec='-L$libdir' 10372 hardcode_shlibpath_var=no 10373 ;; 10374 10375 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 10376 # support. Future versions do this automatically, but an explicit c++rt0.o 10377 # does not break anything, and helps significantly (at the cost of a little 10378 # extra space). 10379 freebsd2.2*) 10380 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 10381 hardcode_libdir_flag_spec='-R$libdir' 10382 hardcode_direct=yes 10383 hardcode_shlibpath_var=no 10384 ;; 10385 10386 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 10387 freebsd2.*) 10388 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 10389 hardcode_direct=yes 10390 hardcode_minus_L=yes 10391 hardcode_shlibpath_var=no 10392 ;; 10393 10394 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 10395 freebsd* | dragonfly* | midnightbsd*) 10396 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10397 hardcode_libdir_flag_spec='-R$libdir' 10398 hardcode_direct=yes 10399 hardcode_shlibpath_var=no 10400 ;; 10401 10402 hpux9*) 10403 if test yes = "$GCC"; then 10404 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' 10405 else 10406 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' 10407 fi 10408 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 10409 hardcode_libdir_separator=: 10410 hardcode_direct=yes 10411 10412 # hardcode_minus_L: Not really in the search PATH, 10413 # but as the default location of the library. 10414 hardcode_minus_L=yes 10415 export_dynamic_flag_spec='$wl-E' 10416 ;; 10417 10418 hpux10*) 10419 if test yes,no = "$GCC,$with_gnu_ld"; then 10420 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10421 else 10422 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 10423 fi 10424 if test no = "$with_gnu_ld"; then 10425 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 10426 hardcode_libdir_separator=: 10427 hardcode_direct=yes 10428 hardcode_direct_absolute=yes 10429 export_dynamic_flag_spec='$wl-E' 10430 # hardcode_minus_L: Not really in the search PATH, 10431 # but as the default location of the library. 10432 hardcode_minus_L=yes 10433 fi 10434 ;; 10435 10436 hpux11*) 10437 if test yes,no = "$GCC,$with_gnu_ld"; then 10438 case $host_cpu in 10439 hppa*64*) 10440 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 10441 ;; 10442 ia64*) 10443 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 10444 ;; 10445 *) 10446 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10447 ;; 10448 esac 10449 else 10450 case $host_cpu in 10451 hppa*64*) 10452 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 10453 ;; 10454 ia64*) 10455 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 10456 ;; 10457 *) 10458 10459 # Older versions of the 11.00 compiler do not understand -b yet 10460 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 10461 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 10462printf %s "checking if $CC understands -b... " >&6; } 10463if test ${lt_cv_prog_compiler__b+y} 10464then : 10465 printf %s "(cached) " >&6 10466else $as_nop 10467 lt_cv_prog_compiler__b=no 10468 save_LDFLAGS=$LDFLAGS 10469 LDFLAGS="$LDFLAGS -b" 10470 echo "$lt_simple_link_test_code" > conftest.$ac_ext 10471 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 10472 # The linker can only warn and ignore the option if not recognized 10473 # So say no if there are warnings 10474 if test -s conftest.err; then 10475 # Append any errors to the config.log. 10476 cat conftest.err 1>&5 10477 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 10478 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 10479 if diff conftest.exp conftest.er2 >/dev/null; then 10480 lt_cv_prog_compiler__b=yes 10481 fi 10482 else 10483 lt_cv_prog_compiler__b=yes 10484 fi 10485 fi 10486 $RM -r conftest* 10487 LDFLAGS=$save_LDFLAGS 10488 10489fi 10490{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 10491printf "%s\n" "$lt_cv_prog_compiler__b" >&6; } 10492 10493if test yes = "$lt_cv_prog_compiler__b"; then 10494 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10495else 10496 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 10497fi 10498 10499 ;; 10500 esac 10501 fi 10502 if test no = "$with_gnu_ld"; then 10503 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 10504 hardcode_libdir_separator=: 10505 10506 case $host_cpu in 10507 hppa*64*|ia64*) 10508 hardcode_direct=no 10509 hardcode_shlibpath_var=no 10510 ;; 10511 *) 10512 hardcode_direct=yes 10513 hardcode_direct_absolute=yes 10514 export_dynamic_flag_spec='$wl-E' 10515 10516 # hardcode_minus_L: Not really in the search PATH, 10517 # but as the default location of the library. 10518 hardcode_minus_L=yes 10519 ;; 10520 esac 10521 fi 10522 ;; 10523 10524 irix5* | irix6* | nonstopux*) 10525 if test yes = "$GCC"; then 10526 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' 10527 # Try to use the -exported_symbol ld option, if it does not 10528 # work, assume that -exports_file does not work either and 10529 # implicitly export all symbols. 10530 # This should be the same for all languages, so no per-tag cache variable. 10531 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 10532printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 10533if test ${lt_cv_irix_exported_symbol+y} 10534then : 10535 printf %s "(cached) " >&6 10536else $as_nop 10537 save_LDFLAGS=$LDFLAGS 10538 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" 10539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10540/* end confdefs.h. */ 10541int foo (void) { return 0; } 10542_ACEOF 10543if ac_fn_c_try_link "$LINENO" 10544then : 10545 lt_cv_irix_exported_symbol=yes 10546else $as_nop 10547 lt_cv_irix_exported_symbol=no 10548fi 10549rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10550 conftest$ac_exeext conftest.$ac_ext 10551 LDFLAGS=$save_LDFLAGS 10552fi 10553{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 10554printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; } 10555 if test yes = "$lt_cv_irix_exported_symbol"; then 10556 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' 10557 fi 10558 else 10559 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' 10560 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' 10561 fi 10562 archive_cmds_need_lc='no' 10563 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10564 hardcode_libdir_separator=: 10565 inherit_rpath=yes 10566 link_all_deplibs=yes 10567 ;; 10568 10569 linux*) 10570 case $cc_basename in 10571 tcc*) 10572 # Fabrice Bellard et al's Tiny C Compiler 10573 ld_shlibs=yes 10574 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10575 ;; 10576 esac 10577 ;; 10578 10579 netbsd*) 10580 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10581 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 10582 else 10583 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 10584 fi 10585 hardcode_libdir_flag_spec='-R$libdir' 10586 hardcode_direct=yes 10587 hardcode_shlibpath_var=no 10588 ;; 10589 10590 newsos6) 10591 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10592 hardcode_direct=yes 10593 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10594 hardcode_libdir_separator=: 10595 hardcode_shlibpath_var=no 10596 ;; 10597 10598 *nto* | *qnx*) 10599 ;; 10600 10601 openbsd* | bitrig*) 10602 if test -f /usr/libexec/ld.so; then 10603 hardcode_direct=yes 10604 hardcode_shlibpath_var=no 10605 hardcode_direct_absolute=yes 10606 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 10607 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10608 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' 10609 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 10610 export_dynamic_flag_spec='$wl-E' 10611 else 10612 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10613 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 10614 fi 10615 else 10616 ld_shlibs=no 10617 fi 10618 ;; 10619 10620 os2*) 10621 hardcode_libdir_flag_spec='-L$libdir' 10622 hardcode_minus_L=yes 10623 allow_undefined_flag=unsupported 10624 shrext_cmds=.dll 10625 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10626 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10627 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10628 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10629 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 10630 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10631 emximp -o $lib $output_objdir/$libname.def' 10632 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10633 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10634 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10635 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10636 prefix_cmds="$SED"~ 10637 if test EXPORTS = "`$SED 1q $export_symbols`"; then 10638 prefix_cmds="$prefix_cmds -e 1d"; 10639 fi~ 10640 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 10641 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 10642 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10643 emximp -o $lib $output_objdir/$libname.def' 10644 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 10645 enable_shared_with_static_runtimes=yes 10646 file_list_spec='@' 10647 ;; 10648 10649 osf3*) 10650 if test yes = "$GCC"; then 10651 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 10652 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' 10653 else 10654 allow_undefined_flag=' -expect_unresolved \*' 10655 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' 10656 fi 10657 archive_cmds_need_lc='no' 10658 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10659 hardcode_libdir_separator=: 10660 ;; 10661 10662 osf4* | osf5*) # as osf3* with the addition of -msym flag 10663 if test yes = "$GCC"; then 10664 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 10665 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' 10666 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10667 else 10668 allow_undefined_flag=' -expect_unresolved \*' 10669 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' 10670 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~ 10671 $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' 10672 10673 # Both c and cxx compiler support -rpath directly 10674 hardcode_libdir_flag_spec='-rpath $libdir' 10675 fi 10676 archive_cmds_need_lc='no' 10677 hardcode_libdir_separator=: 10678 ;; 10679 10680 solaris*) 10681 no_undefined_flag=' -z defs' 10682 if test yes = "$GCC"; then 10683 wlarc='$wl' 10684 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 10685 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10686 $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' 10687 else 10688 case `$CC -V 2>&1` in 10689 *"Compilers 5.0"*) 10690 wlarc='' 10691 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' 10692 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10693 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 10694 ;; 10695 *) 10696 wlarc='$wl' 10697 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' 10698 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10699 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 10700 ;; 10701 esac 10702 fi 10703 hardcode_libdir_flag_spec='-R$libdir' 10704 hardcode_shlibpath_var=no 10705 case $host_os in 10706 solaris2.[0-5] | solaris2.[0-5].*) ;; 10707 *) 10708 # The compiler driver will combine and reorder linker options, 10709 # but understands '-z linker_flag'. GCC discards it without '$wl', 10710 # but is careful enough not to reorder. 10711 # Supported since Solaris 2.6 (maybe 2.5.1?) 10712 if test yes = "$GCC"; then 10713 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 10714 else 10715 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 10716 fi 10717 ;; 10718 esac 10719 link_all_deplibs=yes 10720 ;; 10721 10722 sunos4*) 10723 if test sequent = "$host_vendor"; then 10724 # Use $CC to link under sequent, because it throws in some extra .o 10725 # files that make .init and .fini sections work. 10726 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' 10727 else 10728 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 10729 fi 10730 hardcode_libdir_flag_spec='-L$libdir' 10731 hardcode_direct=yes 10732 hardcode_minus_L=yes 10733 hardcode_shlibpath_var=no 10734 ;; 10735 10736 sysv4) 10737 case $host_vendor in 10738 sni) 10739 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10740 hardcode_direct=yes # is this really true??? 10741 ;; 10742 siemens) 10743 ## LD is ld it makes a PLAMLIB 10744 ## CC just makes a GrossModule. 10745 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 10746 reload_cmds='$CC -r -o $output$reload_objs' 10747 hardcode_direct=no 10748 ;; 10749 motorola) 10750 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10751 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 10752 ;; 10753 esac 10754 runpath_var='LD_RUN_PATH' 10755 hardcode_shlibpath_var=no 10756 ;; 10757 10758 sysv4.3*) 10759 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10760 hardcode_shlibpath_var=no 10761 export_dynamic_flag_spec='-Bexport' 10762 ;; 10763 10764 sysv4*MP*) 10765 if test -d /usr/nec; then 10766 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10767 hardcode_shlibpath_var=no 10768 runpath_var=LD_RUN_PATH 10769 hardcode_runpath_var=yes 10770 ld_shlibs=yes 10771 fi 10772 ;; 10773 10774 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 10775 no_undefined_flag='$wl-z,text' 10776 archive_cmds_need_lc=no 10777 hardcode_shlibpath_var=no 10778 runpath_var='LD_RUN_PATH' 10779 10780 if test yes = "$GCC"; then 10781 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10782 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10783 else 10784 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10785 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10786 fi 10787 ;; 10788 10789 sysv5* | sco3.2v5* | sco5v6*) 10790 # Note: We CANNOT use -z defs as we might desire, because we do not 10791 # link with -lc, and that would cause any symbols used from libc to 10792 # always be unresolved, which means just about no library would 10793 # ever link correctly. If we're not using GNU ld we use -z text 10794 # though, which does catch some bad symbols but isn't as heavy-handed 10795 # as -z defs. 10796 no_undefined_flag='$wl-z,text' 10797 allow_undefined_flag='$wl-z,nodefs' 10798 archive_cmds_need_lc=no 10799 hardcode_shlibpath_var=no 10800 hardcode_libdir_flag_spec='$wl-R,$libdir' 10801 hardcode_libdir_separator=':' 10802 link_all_deplibs=yes 10803 export_dynamic_flag_spec='$wl-Bexport' 10804 runpath_var='LD_RUN_PATH' 10805 10806 if test yes = "$GCC"; then 10807 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10808 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10809 else 10810 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10811 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10812 fi 10813 ;; 10814 10815 uts4*) 10816 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10817 hardcode_libdir_flag_spec='-L$libdir' 10818 hardcode_shlibpath_var=no 10819 ;; 10820 10821 *) 10822 ld_shlibs=no 10823 ;; 10824 esac 10825 10826 if test sni = "$host_vendor"; then 10827 case $host in 10828 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 10829 export_dynamic_flag_spec='$wl-Blargedynsym' 10830 ;; 10831 esac 10832 fi 10833 fi 10834 10835{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 10836printf "%s\n" "$ld_shlibs" >&6; } 10837test no = "$ld_shlibs" && can_build_shared=no 10838 10839with_gnu_ld=$with_gnu_ld 10840 10841 10842 10843 10844 10845 10846 10847 10848 10849 10850 10851 10852 10853 10854 10855# 10856# Do we need to explicitly link libc? 10857# 10858case "x$archive_cmds_need_lc" in 10859x|xyes) 10860 # Assume -lc should be added 10861 archive_cmds_need_lc=yes 10862 10863 if test yes,yes = "$GCC,$enable_shared"; then 10864 case $archive_cmds in 10865 *'~'*) 10866 # FIXME: we may have to deal with multi-command sequences. 10867 ;; 10868 '$CC '*) 10869 # Test whether the compiler implicitly links with -lc since on some 10870 # systems, -lgcc has to come before -lc. If gcc already passes -lc 10871 # to ld, don't add -lc before -lgcc. 10872 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 10873printf %s "checking whether -lc should be explicitly linked in... " >&6; } 10874if test ${lt_cv_archive_cmds_need_lc+y} 10875then : 10876 printf %s "(cached) " >&6 10877else $as_nop 10878 $RM conftest* 10879 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10880 10881 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 10882 (eval $ac_compile) 2>&5 10883 ac_status=$? 10884 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10885 test $ac_status = 0; } 2>conftest.err; then 10886 soname=conftest 10887 lib=conftest 10888 libobjs=conftest.$ac_objext 10889 deplibs= 10890 wl=$lt_prog_compiler_wl 10891 pic_flag=$lt_prog_compiler_pic 10892 compiler_flags=-v 10893 linker_flags=-v 10894 verstring= 10895 output_objdir=. 10896 libname=conftest 10897 lt_save_allow_undefined_flag=$allow_undefined_flag 10898 allow_undefined_flag= 10899 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 10900 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 10901 ac_status=$? 10902 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10903 test $ac_status = 0; } 10904 then 10905 lt_cv_archive_cmds_need_lc=no 10906 else 10907 lt_cv_archive_cmds_need_lc=yes 10908 fi 10909 allow_undefined_flag=$lt_save_allow_undefined_flag 10910 else 10911 cat conftest.err 1>&5 10912 fi 10913 $RM conftest* 10914 10915fi 10916{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 10917printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; } 10918 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 10919 ;; 10920 esac 10921 fi 10922 ;; 10923esac 10924 10925 10926 10927 10928 10929 10930 10931 10932 10933 10934 10935 10936 10937 10938 10939 10940 10941 10942 10943 10944 10945 10946 10947 10948 10949 10950 10951 10952 10953 10954 10955 10956 10957 10958 10959 10960 10961 10962 10963 10964 10965 10966 10967 10968 10969 10970 10971 10972 10973 10974 10975 10976 10977 10978 10979 10980 10981 10982 10983 10984 10985 10986 10987 10988 10989 10990 10991 10992 10993 10994 10995 10996 10997 10998 10999 11000 11001 11002 11003 11004 11005 11006 11007 11008 11009 11010 11011 11012 11013 11014 11015 11016 11017 11018 11019 11020 11021 11022 11023 11024 11025 11026 11027 11028 11029 11030 11031 11032 11033 11034 11035 11036 11037 11038 11039 11040 11041 11042 11043 11044 11045 11046 11047 11048 11049 11050 11051 11052 11053 11054 11055 11056 11057 11058 11059 11060 11061 11062 11063 11064 11065 11066 11067 11068 11069 11070 11071 11072 11073 11074 11075 11076 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 11077printf %s "checking dynamic linker characteristics... " >&6; } 11078 11079if test yes = "$GCC"; then 11080 case $host_os in 11081 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; 11082 *) lt_awk_arg='/^libraries:/' ;; 11083 esac 11084 case $host_os in 11085 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;; 11086 *) lt_sed_strip_eq='s|=/|/|g' ;; 11087 esac 11088 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 11089 case $lt_search_path_spec in 11090 *\;*) 11091 # if the path contains ";" then we assume it to be the separator 11092 # otherwise default to the standard path separator (i.e. ":") - it is 11093 # assumed that no part of a normal pathname contains ";" but that should 11094 # okay in the real world where ";" in dirpaths is itself problematic. 11095 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 11096 ;; 11097 *) 11098 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 11099 ;; 11100 esac 11101 # Ok, now we have the path, separated by spaces, we can step through it 11102 # and add multilib dir if necessary... 11103 lt_tmp_lt_search_path_spec= 11104 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 11105 # ...but if some path component already ends with the multilib dir we assume 11106 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). 11107 case "$lt_multi_os_dir; $lt_search_path_spec " in 11108 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) 11109 lt_multi_os_dir= 11110 ;; 11111 esac 11112 for lt_sys_path in $lt_search_path_spec; do 11113 if test -d "$lt_sys_path$lt_multi_os_dir"; then 11114 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" 11115 elif test -n "$lt_multi_os_dir"; then 11116 test -d "$lt_sys_path" && \ 11117 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 11118 fi 11119 done 11120 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 11121BEGIN {RS = " "; FS = "/|\n";} { 11122 lt_foo = ""; 11123 lt_count = 0; 11124 for (lt_i = NF; lt_i > 0; lt_i--) { 11125 if ($lt_i != "" && $lt_i != ".") { 11126 if ($lt_i == "..") { 11127 lt_count++; 11128 } else { 11129 if (lt_count == 0) { 11130 lt_foo = "/" $lt_i lt_foo; 11131 } else { 11132 lt_count--; 11133 } 11134 } 11135 } 11136 } 11137 if (lt_foo != "") { lt_freq[lt_foo]++; } 11138 if (lt_freq[lt_foo] == 1) { print lt_foo; } 11139}'` 11140 # AWK program above erroneously prepends '/' to C:/dos/paths 11141 # for these hosts. 11142 case $host_os in 11143 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 11144 $SED 's|/\([A-Za-z]:\)|\1|g'` ;; 11145 esac 11146 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 11147else 11148 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 11149fi 11150library_names_spec= 11151libname_spec='lib$name' 11152soname_spec= 11153shrext_cmds=.so 11154postinstall_cmds= 11155postuninstall_cmds= 11156finish_cmds= 11157finish_eval= 11158shlibpath_var= 11159shlibpath_overrides_runpath=unknown 11160version_type=none 11161dynamic_linker="$host_os ld.so" 11162sys_lib_dlsearch_path_spec="/lib /usr/lib" 11163need_lib_prefix=unknown 11164hardcode_into_libs=no 11165 11166# when you set need_version to no, make sure it does not cause -set_version 11167# flags to be left without arguments 11168need_version=unknown 11169 11170 11171 11172case $host_os in 11173aix3*) 11174 version_type=linux # correct to gnu/linux during the next big refactor 11175 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 11176 shlibpath_var=LIBPATH 11177 11178 # AIX 3 has no versioning support, so we append a major version to the name. 11179 soname_spec='$libname$release$shared_ext$major' 11180 ;; 11181 11182aix[4-9]*) 11183 version_type=linux # correct to gnu/linux during the next big refactor 11184 need_lib_prefix=no 11185 need_version=no 11186 hardcode_into_libs=yes 11187 if test ia64 = "$host_cpu"; then 11188 # AIX 5 supports IA64 11189 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 11190 shlibpath_var=LD_LIBRARY_PATH 11191 else 11192 # With GCC up to 2.95.x, collect2 would create an import file 11193 # for dependence libraries. The import file would start with 11194 # the line '#! .'. This would cause the generated library to 11195 # depend on '.', always an invalid library. This was fixed in 11196 # development snapshots of GCC prior to 3.0. 11197 case $host_os in 11198 aix4 | aix4.[01] | aix4.[01].*) 11199 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 11200 echo ' yes ' 11201 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 11202 : 11203 else 11204 can_build_shared=no 11205 fi 11206 ;; 11207 esac 11208 # Using Import Files as archive members, it is possible to support 11209 # filename-based versioning of shared library archives on AIX. While 11210 # this would work for both with and without runtime linking, it will 11211 # prevent static linking of such archives. So we do filename-based 11212 # shared library versioning with .so extension only, which is used 11213 # when both runtime linking and shared linking is enabled. 11214 # Unfortunately, runtime linking may impact performance, so we do 11215 # not want this to be the default eventually. Also, we use the 11216 # versioned .so libs for executables only if there is the -brtl 11217 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. 11218 # To allow for filename-based versioning support, we need to create 11219 # libNAME.so.V as an archive file, containing: 11220 # *) an Import File, referring to the versioned filename of the 11221 # archive as well as the shared archive member, telling the 11222 # bitwidth (32 or 64) of that shared object, and providing the 11223 # list of exported symbols of that shared object, eventually 11224 # decorated with the 'weak' keyword 11225 # *) the shared object with the F_LOADONLY flag set, to really avoid 11226 # it being seen by the linker. 11227 # At run time we better use the real file rather than another symlink, 11228 # but for link time we create the symlink libNAME.so -> libNAME.so.V 11229 11230 case $with_aix_soname,$aix_use_runtimelinking in 11231 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 11232 # soname into executable. Probably we can add versioning support to 11233 # collect2, so additional links can be useful in future. 11234 aix,yes) # traditional libtool 11235 dynamic_linker='AIX unversionable lib.so' 11236 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 11237 # instead of lib<name>.a to let people know that these are not 11238 # typical AIX shared libraries. 11239 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11240 ;; 11241 aix,no) # traditional AIX only 11242 dynamic_linker='AIX lib.a(lib.so.V)' 11243 # We preserve .a as extension for shared libraries through AIX4.2 11244 # and later when we are not doing run time linking. 11245 library_names_spec='$libname$release.a $libname.a' 11246 soname_spec='$libname$release$shared_ext$major' 11247 ;; 11248 svr4,*) # full svr4 only 11249 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 11250 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 11251 # We do not specify a path in Import Files, so LIBPATH fires. 11252 shlibpath_overrides_runpath=yes 11253 ;; 11254 *,yes) # both, prefer svr4 11255 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 11256 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 11257 # unpreferred sharedlib libNAME.a needs extra handling 11258 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"' 11259 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"' 11260 # We do not specify a path in Import Files, so LIBPATH fires. 11261 shlibpath_overrides_runpath=yes 11262 ;; 11263 *,no) # both, prefer aix 11264 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 11265 library_names_spec='$libname$release.a $libname.a' 11266 soname_spec='$libname$release$shared_ext$major' 11267 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 11268 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)' 11269 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"' 11270 ;; 11271 esac 11272 shlibpath_var=LIBPATH 11273 fi 11274 ;; 11275 11276amigaos*) 11277 case $host_cpu in 11278 powerpc) 11279 # Since July 2007 AmigaOS4 officially supports .so libraries. 11280 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 11281 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11282 ;; 11283 m68k) 11284 library_names_spec='$libname.ixlibrary $libname.a' 11285 # Create ${libname}_ixlibrary.a entries in /sys/libs. 11286 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' 11287 ;; 11288 esac 11289 ;; 11290 11291beos*) 11292 library_names_spec='$libname$shared_ext' 11293 dynamic_linker="$host_os ld.so" 11294 shlibpath_var=LIBRARY_PATH 11295 ;; 11296 11297bsdi[45]*) 11298 version_type=linux # correct to gnu/linux during the next big refactor 11299 need_version=no 11300 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11301 soname_spec='$libname$release$shared_ext$major' 11302 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 11303 shlibpath_var=LD_LIBRARY_PATH 11304 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 11305 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 11306 # the default ld.so.conf also contains /usr/contrib/lib and 11307 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 11308 # libtool to hard-code these into programs 11309 ;; 11310 11311cygwin* | mingw* | pw32* | cegcc*) 11312 version_type=windows 11313 shrext_cmds=.dll 11314 need_version=no 11315 need_lib_prefix=no 11316 11317 case $GCC,$cc_basename in 11318 yes,*) 11319 # gcc 11320 library_names_spec='$libname.dll.a' 11321 # DLL is installed to $(libdir)/../bin by postinstall_cmds 11322 postinstall_cmds='base_file=`basename \$file`~ 11323 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 11324 dldir=$destdir/`dirname \$dlpath`~ 11325 test -d \$dldir || mkdir -p \$dldir~ 11326 $install_prog $dir/$dlname \$dldir/$dlname~ 11327 chmod a+x \$dldir/$dlname~ 11328 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 11329 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 11330 fi' 11331 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 11332 dlpath=$dir/\$dldll~ 11333 $RM \$dlpath' 11334 shlibpath_overrides_runpath=yes 11335 11336 case $host_os in 11337 cygwin*) 11338 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 11339 soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11340 11341 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 11342 ;; 11343 mingw* | cegcc*) 11344 # MinGW DLLs use traditional 'lib' prefix 11345 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11346 ;; 11347 pw32*) 11348 # pw32 DLLs use 'pw' prefix rather than 'lib' 11349 library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11350 ;; 11351 esac 11352 dynamic_linker='Win32 ld.exe' 11353 ;; 11354 11355 *,cl* | *,icl*) 11356 # Native MSVC or ICC 11357 libname_spec='$name' 11358 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11359 library_names_spec='$libname.dll.lib' 11360 11361 case $build_os in 11362 mingw*) 11363 sys_lib_search_path_spec= 11364 lt_save_ifs=$IFS 11365 IFS=';' 11366 for lt_path in $LIB 11367 do 11368 IFS=$lt_save_ifs 11369 # Let DOS variable expansion print the short 8.3 style file name. 11370 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 11371 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 11372 done 11373 IFS=$lt_save_ifs 11374 # Convert to MSYS style. 11375 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 11376 ;; 11377 cygwin*) 11378 # Convert to unix form, then to dos form, then back to unix form 11379 # but this time dos style (no spaces!) so that the unix form looks 11380 # like /cygdrive/c/PROGRA~1:/cygdr... 11381 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 11382 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 11383 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 11384 ;; 11385 *) 11386 sys_lib_search_path_spec=$LIB 11387 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 11388 # It is most probably a Windows format PATH. 11389 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 11390 else 11391 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 11392 fi 11393 # FIXME: find the short name or the path components, as spaces are 11394 # common. (e.g. "Program Files" -> "PROGRA~1") 11395 ;; 11396 esac 11397 11398 # DLL is installed to $(libdir)/../bin by postinstall_cmds 11399 postinstall_cmds='base_file=`basename \$file`~ 11400 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 11401 dldir=$destdir/`dirname \$dlpath`~ 11402 test -d \$dldir || mkdir -p \$dldir~ 11403 $install_prog $dir/$dlname \$dldir/$dlname' 11404 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 11405 dlpath=$dir/\$dldll~ 11406 $RM \$dlpath' 11407 shlibpath_overrides_runpath=yes 11408 dynamic_linker='Win32 link.exe' 11409 ;; 11410 11411 *) 11412 # Assume MSVC and ICC wrapper 11413 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 11414 dynamic_linker='Win32 ld.exe' 11415 ;; 11416 esac 11417 # FIXME: first we should search . and the directory the executable is in 11418 shlibpath_var=PATH 11419 ;; 11420 11421darwin* | rhapsody*) 11422 dynamic_linker="$host_os dyld" 11423 version_type=darwin 11424 need_lib_prefix=no 11425 need_version=no 11426 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' 11427 soname_spec='$libname$release$major$shared_ext' 11428 shlibpath_overrides_runpath=yes 11429 shlibpath_var=DYLD_LIBRARY_PATH 11430 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 11431 11432 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 11433 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 11434 ;; 11435 11436dgux*) 11437 version_type=linux # correct to gnu/linux during the next big refactor 11438 need_lib_prefix=no 11439 need_version=no 11440 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11441 soname_spec='$libname$release$shared_ext$major' 11442 shlibpath_var=LD_LIBRARY_PATH 11443 ;; 11444 11445freebsd* | dragonfly* | midnightbsd*) 11446 # DragonFly does not have aout. When/if they implement a new 11447 # versioning mechanism, adjust this. 11448 if test -x /usr/bin/objformat; then 11449 objformat=`/usr/bin/objformat` 11450 else 11451 case $host_os in 11452 freebsd[23].*) objformat=aout ;; 11453 *) objformat=elf ;; 11454 esac 11455 fi 11456 version_type=freebsd-$objformat 11457 case $version_type in 11458 freebsd-elf*) 11459 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11460 soname_spec='$libname$release$shared_ext$major' 11461 need_version=no 11462 need_lib_prefix=no 11463 ;; 11464 freebsd-*) 11465 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11466 need_version=yes 11467 ;; 11468 esac 11469 shlibpath_var=LD_LIBRARY_PATH 11470 case $host_os in 11471 freebsd2.*) 11472 shlibpath_overrides_runpath=yes 11473 ;; 11474 freebsd3.[01]* | freebsdelf3.[01]*) 11475 shlibpath_overrides_runpath=yes 11476 hardcode_into_libs=yes 11477 ;; 11478 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 11479 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 11480 shlibpath_overrides_runpath=no 11481 hardcode_into_libs=yes 11482 ;; 11483 *) # from 4.6 on, and DragonFly 11484 shlibpath_overrides_runpath=yes 11485 hardcode_into_libs=yes 11486 ;; 11487 esac 11488 ;; 11489 11490haiku*) 11491 version_type=linux # correct to gnu/linux during the next big refactor 11492 need_lib_prefix=no 11493 need_version=no 11494 dynamic_linker="$host_os runtime_loader" 11495 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11496 soname_spec='$libname$release$shared_ext$major' 11497 shlibpath_var=LIBRARY_PATH 11498 shlibpath_overrides_runpath=no 11499 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 11500 hardcode_into_libs=yes 11501 ;; 11502 11503hpux9* | hpux10* | hpux11*) 11504 # Give a soname corresponding to the major version so that dld.sl refuses to 11505 # link against other versions. 11506 version_type=sunos 11507 need_lib_prefix=no 11508 need_version=no 11509 case $host_cpu in 11510 ia64*) 11511 shrext_cmds='.so' 11512 hardcode_into_libs=yes 11513 dynamic_linker="$host_os dld.so" 11514 shlibpath_var=LD_LIBRARY_PATH 11515 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11516 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11517 soname_spec='$libname$release$shared_ext$major' 11518 if test 32 = "$HPUX_IA64_MODE"; then 11519 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 11520 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 11521 else 11522 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 11523 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 11524 fi 11525 ;; 11526 hppa*64*) 11527 shrext_cmds='.sl' 11528 hardcode_into_libs=yes 11529 dynamic_linker="$host_os dld.sl" 11530 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 11531 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11532 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11533 soname_spec='$libname$release$shared_ext$major' 11534 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 11535 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11536 ;; 11537 *) 11538 shrext_cmds='.sl' 11539 dynamic_linker="$host_os dld.sl" 11540 shlibpath_var=SHLIB_PATH 11541 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 11542 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11543 soname_spec='$libname$release$shared_ext$major' 11544 ;; 11545 esac 11546 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 11547 postinstall_cmds='chmod 555 $lib' 11548 # or fails outright, so override atomically: 11549 install_override_mode=555 11550 ;; 11551 11552interix[3-9]*) 11553 version_type=linux # correct to gnu/linux during the next big refactor 11554 need_lib_prefix=no 11555 need_version=no 11556 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11557 soname_spec='$libname$release$shared_ext$major' 11558 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 11559 shlibpath_var=LD_LIBRARY_PATH 11560 shlibpath_overrides_runpath=no 11561 hardcode_into_libs=yes 11562 ;; 11563 11564irix5* | irix6* | nonstopux*) 11565 case $host_os in 11566 nonstopux*) version_type=nonstopux ;; 11567 *) 11568 if test yes = "$lt_cv_prog_gnu_ld"; then 11569 version_type=linux # correct to gnu/linux during the next big refactor 11570 else 11571 version_type=irix 11572 fi ;; 11573 esac 11574 need_lib_prefix=no 11575 need_version=no 11576 soname_spec='$libname$release$shared_ext$major' 11577 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 11578 case $host_os in 11579 irix5* | nonstopux*) 11580 libsuff= shlibsuff= 11581 ;; 11582 *) 11583 case $LD in # libtool.m4 will add one of these switches to LD 11584 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 11585 libsuff= shlibsuff= libmagic=32-bit;; 11586 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 11587 libsuff=32 shlibsuff=N32 libmagic=N32;; 11588 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 11589 libsuff=64 shlibsuff=64 libmagic=64-bit;; 11590 *) libsuff= shlibsuff= libmagic=never-match;; 11591 esac 11592 ;; 11593 esac 11594 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 11595 shlibpath_overrides_runpath=no 11596 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 11597 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 11598 hardcode_into_libs=yes 11599 ;; 11600 11601# No shared lib support for Linux oldld, aout, or coff. 11602linux*oldld* | linux*aout* | linux*coff*) 11603 dynamic_linker=no 11604 ;; 11605 11606linux*android*) 11607 version_type=none # Android doesn't support versioned libraries. 11608 need_lib_prefix=no 11609 need_version=no 11610 library_names_spec='$libname$release$shared_ext' 11611 soname_spec='$libname$release$shared_ext' 11612 finish_cmds= 11613 shlibpath_var=LD_LIBRARY_PATH 11614 shlibpath_overrides_runpath=yes 11615 11616 # This implies no fast_install, which is unacceptable. 11617 # Some rework will be needed to allow for fast_install 11618 # before this can be enabled. 11619 hardcode_into_libs=yes 11620 11621 dynamic_linker='Android linker' 11622 # Don't embed -rpath directories since the linker doesn't support them. 11623 hardcode_libdir_flag_spec='-L$libdir' 11624 ;; 11625 11626# This must be glibc/ELF. 11627linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 11628 version_type=linux # correct to gnu/linux during the next big refactor 11629 need_lib_prefix=no 11630 need_version=no 11631 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11632 soname_spec='$libname$release$shared_ext$major' 11633 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 11634 shlibpath_var=LD_LIBRARY_PATH 11635 shlibpath_overrides_runpath=no 11636 11637 # Some binutils ld are patched to set DT_RUNPATH 11638 if test ${lt_cv_shlibpath_overrides_runpath+y} 11639then : 11640 printf %s "(cached) " >&6 11641else $as_nop 11642 lt_cv_shlibpath_overrides_runpath=no 11643 save_LDFLAGS=$LDFLAGS 11644 save_libdir=$libdir 11645 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 11646 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 11647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11648/* end confdefs.h. */ 11649 11650int 11651main (void) 11652{ 11653 11654 ; 11655 return 0; 11656} 11657_ACEOF 11658if ac_fn_c_try_link "$LINENO" 11659then : 11660 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null 11661then : 11662 lt_cv_shlibpath_overrides_runpath=yes 11663fi 11664fi 11665rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11666 conftest$ac_exeext conftest.$ac_ext 11667 LDFLAGS=$save_LDFLAGS 11668 libdir=$save_libdir 11669 11670fi 11671 11672 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 11673 11674 # This implies no fast_install, which is unacceptable. 11675 # Some rework will be needed to allow for fast_install 11676 # before this can be enabled. 11677 hardcode_into_libs=yes 11678 11679 # Ideally, we could use ldconfig to report *all* directores which are 11680 # searched for libraries, however this is still not possible. Aside from not 11681 # being certain /sbin/ldconfig is available, command 11682 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 11683 # even though it is searched at run-time. Try to do the best guess by 11684 # appending ld.so.conf contents (and includes) to the search path. 11685 if test -f /etc/ld.so.conf; then 11686 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' ' '` 11687 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 11688 fi 11689 11690 # We used to test for /lib/ld.so.1 and disable shared libraries on 11691 # powerpc, because MkLinux only supported shared libraries with the 11692 # GNU dynamic linker. Since this was broken with cross compilers, 11693 # most powerpc-linux boxes support dynamic linking these days and 11694 # people can always --disable-shared, the test was removed, and we 11695 # assume the GNU/Linux dynamic linker is in use. 11696 dynamic_linker='GNU/Linux ld.so' 11697 ;; 11698 11699netbsd*) 11700 version_type=sunos 11701 need_lib_prefix=no 11702 need_version=no 11703 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 11704 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11705 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11706 dynamic_linker='NetBSD (a.out) ld.so' 11707 else 11708 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11709 soname_spec='$libname$release$shared_ext$major' 11710 dynamic_linker='NetBSD ld.elf_so' 11711 fi 11712 shlibpath_var=LD_LIBRARY_PATH 11713 shlibpath_overrides_runpath=yes 11714 hardcode_into_libs=yes 11715 ;; 11716 11717newsos6) 11718 version_type=linux # correct to gnu/linux during the next big refactor 11719 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11720 shlibpath_var=LD_LIBRARY_PATH 11721 shlibpath_overrides_runpath=yes 11722 ;; 11723 11724*nto* | *qnx*) 11725 version_type=qnx 11726 need_lib_prefix=no 11727 need_version=no 11728 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11729 soname_spec='$libname$release$shared_ext$major' 11730 shlibpath_var=LD_LIBRARY_PATH 11731 shlibpath_overrides_runpath=no 11732 hardcode_into_libs=yes 11733 dynamic_linker='ldqnx.so' 11734 ;; 11735 11736openbsd* | bitrig*) 11737 version_type=sunos 11738 sys_lib_dlsearch_path_spec=/usr/lib 11739 need_lib_prefix=no 11740 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 11741 need_version=no 11742 else 11743 need_version=yes 11744 fi 11745 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11746 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11747 shlibpath_var=LD_LIBRARY_PATH 11748 shlibpath_overrides_runpath=yes 11749 ;; 11750 11751os2*) 11752 libname_spec='$name' 11753 version_type=windows 11754 shrext_cmds=.dll 11755 need_version=no 11756 need_lib_prefix=no 11757 # OS/2 can only load a DLL with a base name of 8 characters or less. 11758 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 11759 v=$($ECHO $release$versuffix | tr -d .-); 11760 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 11761 $ECHO $n$v`$shared_ext' 11762 library_names_spec='${libname}_dll.$libext' 11763 dynamic_linker='OS/2 ld.exe' 11764 shlibpath_var=BEGINLIBPATH 11765 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 11766 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11767 postinstall_cmds='base_file=`basename \$file`~ 11768 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 11769 dldir=$destdir/`dirname \$dlpath`~ 11770 test -d \$dldir || mkdir -p \$dldir~ 11771 $install_prog $dir/$dlname \$dldir/$dlname~ 11772 chmod a+x \$dldir/$dlname~ 11773 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 11774 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 11775 fi' 11776 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 11777 dlpath=$dir/\$dldll~ 11778 $RM \$dlpath' 11779 ;; 11780 11781osf3* | osf4* | osf5*) 11782 version_type=osf 11783 need_lib_prefix=no 11784 need_version=no 11785 soname_spec='$libname$release$shared_ext$major' 11786 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11787 shlibpath_var=LD_LIBRARY_PATH 11788 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 11789 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11790 ;; 11791 11792rdos*) 11793 dynamic_linker=no 11794 ;; 11795 11796solaris*) 11797 version_type=linux # correct to gnu/linux during the next big refactor 11798 need_lib_prefix=no 11799 need_version=no 11800 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11801 soname_spec='$libname$release$shared_ext$major' 11802 shlibpath_var=LD_LIBRARY_PATH 11803 shlibpath_overrides_runpath=yes 11804 hardcode_into_libs=yes 11805 # ldd complains unless libraries are executable 11806 postinstall_cmds='chmod +x $lib' 11807 ;; 11808 11809sunos4*) 11810 version_type=sunos 11811 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11812 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 11813 shlibpath_var=LD_LIBRARY_PATH 11814 shlibpath_overrides_runpath=yes 11815 if test yes = "$with_gnu_ld"; then 11816 need_lib_prefix=no 11817 fi 11818 need_version=yes 11819 ;; 11820 11821sysv4 | sysv4.3*) 11822 version_type=linux # correct to gnu/linux during the next big refactor 11823 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11824 soname_spec='$libname$release$shared_ext$major' 11825 shlibpath_var=LD_LIBRARY_PATH 11826 case $host_vendor in 11827 sni) 11828 shlibpath_overrides_runpath=no 11829 need_lib_prefix=no 11830 runpath_var=LD_RUN_PATH 11831 ;; 11832 siemens) 11833 need_lib_prefix=no 11834 ;; 11835 motorola) 11836 need_lib_prefix=no 11837 need_version=no 11838 shlibpath_overrides_runpath=no 11839 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 11840 ;; 11841 esac 11842 ;; 11843 11844sysv4*MP*) 11845 if test -d /usr/nec; then 11846 version_type=linux # correct to gnu/linux during the next big refactor 11847 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 11848 soname_spec='$libname$shared_ext.$major' 11849 shlibpath_var=LD_LIBRARY_PATH 11850 fi 11851 ;; 11852 11853sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 11854 version_type=sco 11855 need_lib_prefix=no 11856 need_version=no 11857 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 11858 soname_spec='$libname$release$shared_ext$major' 11859 shlibpath_var=LD_LIBRARY_PATH 11860 shlibpath_overrides_runpath=yes 11861 hardcode_into_libs=yes 11862 if test yes = "$with_gnu_ld"; then 11863 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 11864 else 11865 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 11866 case $host_os in 11867 sco3.2v5*) 11868 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 11869 ;; 11870 esac 11871 fi 11872 sys_lib_dlsearch_path_spec='/usr/lib' 11873 ;; 11874 11875tpf*) 11876 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 11877 version_type=linux # correct to gnu/linux during the next big refactor 11878 need_lib_prefix=no 11879 need_version=no 11880 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11881 shlibpath_var=LD_LIBRARY_PATH 11882 shlibpath_overrides_runpath=no 11883 hardcode_into_libs=yes 11884 ;; 11885 11886uts4*) 11887 version_type=linux # correct to gnu/linux during the next big refactor 11888 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11889 soname_spec='$libname$release$shared_ext$major' 11890 shlibpath_var=LD_LIBRARY_PATH 11891 ;; 11892 11893*) 11894 dynamic_linker=no 11895 ;; 11896esac 11897{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 11898printf "%s\n" "$dynamic_linker" >&6; } 11899test no = "$dynamic_linker" && can_build_shared=no 11900 11901variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 11902if test yes = "$GCC"; then 11903 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 11904fi 11905 11906if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 11907 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 11908fi 11909 11910if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 11911 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 11912fi 11913 11914# remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 11915configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 11916 11917# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 11918func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 11919 11920# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 11921configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 11922 11923 11924 11925 11926 11927 11928 11929 11930 11931 11932 11933 11934 11935 11936 11937 11938 11939 11940 11941 11942 11943 11944 11945 11946 11947 11948 11949 11950 11951 11952 11953 11954 11955 11956 11957 11958 11959 11960 11961 11962 11963 11964 11965 11966 11967 11968 11969 11970 11971 11972 11973 11974 11975 11976 11977 11978 11979 11980 11981 11982 11983 11984 11985 11986 11987 11988 11989 11990 11991 11992 11993 11994 11995 11996 11997 11998 11999 12000 12001 12002 12003 12004 12005 12006 12007 12008 12009 12010 12011 12012 12013 12014 12015 12016 12017 12018 12019 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 12020printf %s "checking how to hardcode library paths into programs... " >&6; } 12021hardcode_action= 12022if test -n "$hardcode_libdir_flag_spec" || 12023 test -n "$runpath_var" || 12024 test yes = "$hardcode_automatic"; then 12025 12026 # We can hardcode non-existent directories. 12027 if test no != "$hardcode_direct" && 12028 # If the only mechanism to avoid hardcoding is shlibpath_var, we 12029 # have to relink, otherwise we might link with an installed library 12030 # when we should be linking with a yet-to-be-installed one 12031 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" && 12032 test no != "$hardcode_minus_L"; then 12033 # Linking always hardcodes the temporary library directory. 12034 hardcode_action=relink 12035 else 12036 # We can link without hardcoding, and we can hardcode nonexisting dirs. 12037 hardcode_action=immediate 12038 fi 12039else 12040 # We cannot hardcode anything, or else we can only hardcode existing 12041 # directories. 12042 hardcode_action=unsupported 12043fi 12044{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 12045printf "%s\n" "$hardcode_action" >&6; } 12046 12047if test relink = "$hardcode_action" || 12048 test yes = "$inherit_rpath"; then 12049 # Fast installation is not supported 12050 enable_fast_install=no 12051elif test yes = "$shlibpath_overrides_runpath" || 12052 test no = "$enable_shared"; then 12053 # Fast installation is not necessary 12054 enable_fast_install=needless 12055fi 12056 12057 12058 12059 12060 12061 12062 if test yes != "$enable_dlopen"; then 12063 enable_dlopen=unknown 12064 enable_dlopen_self=unknown 12065 enable_dlopen_self_static=unknown 12066else 12067 lt_cv_dlopen=no 12068 lt_cv_dlopen_libs= 12069 12070 case $host_os in 12071 beos*) 12072 lt_cv_dlopen=load_add_on 12073 lt_cv_dlopen_libs= 12074 lt_cv_dlopen_self=yes 12075 ;; 12076 12077 mingw* | pw32* | cegcc*) 12078 lt_cv_dlopen=LoadLibrary 12079 lt_cv_dlopen_libs= 12080 ;; 12081 12082 cygwin*) 12083 lt_cv_dlopen=dlopen 12084 lt_cv_dlopen_libs= 12085 ;; 12086 12087 darwin*) 12088 # if libdl is installed we need to link against it 12089 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 12090printf %s "checking for dlopen in -ldl... " >&6; } 12091if test ${ac_cv_lib_dl_dlopen+y} 12092then : 12093 printf %s "(cached) " >&6 12094else $as_nop 12095 ac_check_lib_save_LIBS=$LIBS 12096LIBS="-ldl $LIBS" 12097cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12098/* end confdefs.h. */ 12099 12100/* Override any GCC internal prototype to avoid an error. 12101 Use char because int might match the return type of a GCC 12102 builtin and then its argument prototype would still apply. */ 12103char dlopen (); 12104int 12105main (void) 12106{ 12107return dlopen (); 12108 ; 12109 return 0; 12110} 12111_ACEOF 12112if ac_fn_c_try_link "$LINENO" 12113then : 12114 ac_cv_lib_dl_dlopen=yes 12115else $as_nop 12116 ac_cv_lib_dl_dlopen=no 12117fi 12118rm -f core conftest.err conftest.$ac_objext conftest.beam \ 12119 conftest$ac_exeext conftest.$ac_ext 12120LIBS=$ac_check_lib_save_LIBS 12121fi 12122{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 12123printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; } 12124if test "x$ac_cv_lib_dl_dlopen" = xyes 12125then : 12126 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 12127else $as_nop 12128 12129 lt_cv_dlopen=dyld 12130 lt_cv_dlopen_libs= 12131 lt_cv_dlopen_self=yes 12132 12133fi 12134 12135 ;; 12136 12137 tpf*) 12138 # Don't try to run any link tests for TPF. We know it's impossible 12139 # because TPF is a cross-compiler, and we know how we open DSOs. 12140 lt_cv_dlopen=dlopen 12141 lt_cv_dlopen_libs= 12142 lt_cv_dlopen_self=no 12143 ;; 12144 12145 *) 12146 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 12147if test "x$ac_cv_func_shl_load" = xyes 12148then : 12149 lt_cv_dlopen=shl_load 12150else $as_nop 12151 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 12152printf %s "checking for shl_load in -ldld... " >&6; } 12153if test ${ac_cv_lib_dld_shl_load+y} 12154then : 12155 printf %s "(cached) " >&6 12156else $as_nop 12157 ac_check_lib_save_LIBS=$LIBS 12158LIBS="-ldld $LIBS" 12159cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12160/* end confdefs.h. */ 12161 12162/* Override any GCC internal prototype to avoid an error. 12163 Use char because int might match the return type of a GCC 12164 builtin and then its argument prototype would still apply. */ 12165char shl_load (); 12166int 12167main (void) 12168{ 12169return shl_load (); 12170 ; 12171 return 0; 12172} 12173_ACEOF 12174if ac_fn_c_try_link "$LINENO" 12175then : 12176 ac_cv_lib_dld_shl_load=yes 12177else $as_nop 12178 ac_cv_lib_dld_shl_load=no 12179fi 12180rm -f core conftest.err conftest.$ac_objext conftest.beam \ 12181 conftest$ac_exeext conftest.$ac_ext 12182LIBS=$ac_check_lib_save_LIBS 12183fi 12184{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 12185printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; } 12186if test "x$ac_cv_lib_dld_shl_load" = xyes 12187then : 12188 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld 12189else $as_nop 12190 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 12191if test "x$ac_cv_func_dlopen" = xyes 12192then : 12193 lt_cv_dlopen=dlopen 12194else $as_nop 12195 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 12196printf %s "checking for dlopen in -ldl... " >&6; } 12197if test ${ac_cv_lib_dl_dlopen+y} 12198then : 12199 printf %s "(cached) " >&6 12200else $as_nop 12201 ac_check_lib_save_LIBS=$LIBS 12202LIBS="-ldl $LIBS" 12203cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12204/* end confdefs.h. */ 12205 12206/* Override any GCC internal prototype to avoid an error. 12207 Use char because int might match the return type of a GCC 12208 builtin and then its argument prototype would still apply. */ 12209char dlopen (); 12210int 12211main (void) 12212{ 12213return dlopen (); 12214 ; 12215 return 0; 12216} 12217_ACEOF 12218if ac_fn_c_try_link "$LINENO" 12219then : 12220 ac_cv_lib_dl_dlopen=yes 12221else $as_nop 12222 ac_cv_lib_dl_dlopen=no 12223fi 12224rm -f core conftest.err conftest.$ac_objext conftest.beam \ 12225 conftest$ac_exeext conftest.$ac_ext 12226LIBS=$ac_check_lib_save_LIBS 12227fi 12228{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 12229printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; } 12230if test "x$ac_cv_lib_dl_dlopen" = xyes 12231then : 12232 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 12233else $as_nop 12234 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 12235printf %s "checking for dlopen in -lsvld... " >&6; } 12236if test ${ac_cv_lib_svld_dlopen+y} 12237then : 12238 printf %s "(cached) " >&6 12239else $as_nop 12240 ac_check_lib_save_LIBS=$LIBS 12241LIBS="-lsvld $LIBS" 12242cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12243/* end confdefs.h. */ 12244 12245/* Override any GCC internal prototype to avoid an error. 12246 Use char because int might match the return type of a GCC 12247 builtin and then its argument prototype would still apply. */ 12248char dlopen (); 12249int 12250main (void) 12251{ 12252return dlopen (); 12253 ; 12254 return 0; 12255} 12256_ACEOF 12257if ac_fn_c_try_link "$LINENO" 12258then : 12259 ac_cv_lib_svld_dlopen=yes 12260else $as_nop 12261 ac_cv_lib_svld_dlopen=no 12262fi 12263rm -f core conftest.err conftest.$ac_objext conftest.beam \ 12264 conftest$ac_exeext conftest.$ac_ext 12265LIBS=$ac_check_lib_save_LIBS 12266fi 12267{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 12268printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; } 12269if test "x$ac_cv_lib_svld_dlopen" = xyes 12270then : 12271 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld 12272else $as_nop 12273 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 12274printf %s "checking for dld_link in -ldld... " >&6; } 12275if test ${ac_cv_lib_dld_dld_link+y} 12276then : 12277 printf %s "(cached) " >&6 12278else $as_nop 12279 ac_check_lib_save_LIBS=$LIBS 12280LIBS="-ldld $LIBS" 12281cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12282/* end confdefs.h. */ 12283 12284/* Override any GCC internal prototype to avoid an error. 12285 Use char because int might match the return type of a GCC 12286 builtin and then its argument prototype would still apply. */ 12287char dld_link (); 12288int 12289main (void) 12290{ 12291return dld_link (); 12292 ; 12293 return 0; 12294} 12295_ACEOF 12296if ac_fn_c_try_link "$LINENO" 12297then : 12298 ac_cv_lib_dld_dld_link=yes 12299else $as_nop 12300 ac_cv_lib_dld_dld_link=no 12301fi 12302rm -f core conftest.err conftest.$ac_objext conftest.beam \ 12303 conftest$ac_exeext conftest.$ac_ext 12304LIBS=$ac_check_lib_save_LIBS 12305fi 12306{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 12307printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; } 12308if test "x$ac_cv_lib_dld_dld_link" = xyes 12309then : 12310 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld 12311fi 12312 12313 12314fi 12315 12316 12317fi 12318 12319 12320fi 12321 12322 12323fi 12324 12325 12326fi 12327 12328 ;; 12329 esac 12330 12331 if test no = "$lt_cv_dlopen"; then 12332 enable_dlopen=no 12333 else 12334 enable_dlopen=yes 12335 fi 12336 12337 case $lt_cv_dlopen in 12338 dlopen) 12339 save_CPPFLAGS=$CPPFLAGS 12340 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 12341 12342 save_LDFLAGS=$LDFLAGS 12343 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 12344 12345 save_LIBS=$LIBS 12346 LIBS="$lt_cv_dlopen_libs $LIBS" 12347 12348 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 12349printf %s "checking whether a program can dlopen itself... " >&6; } 12350if test ${lt_cv_dlopen_self+y} 12351then : 12352 printf %s "(cached) " >&6 12353else $as_nop 12354 if test yes = "$cross_compiling"; then : 12355 lt_cv_dlopen_self=cross 12356else 12357 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 12358 lt_status=$lt_dlunknown 12359 cat > conftest.$ac_ext <<_LT_EOF 12360#line $LINENO "configure" 12361#include "confdefs.h" 12362 12363#if HAVE_DLFCN_H 12364#include <dlfcn.h> 12365#endif 12366 12367#include <stdio.h> 12368 12369#ifdef RTLD_GLOBAL 12370# define LT_DLGLOBAL RTLD_GLOBAL 12371#else 12372# ifdef DL_GLOBAL 12373# define LT_DLGLOBAL DL_GLOBAL 12374# else 12375# define LT_DLGLOBAL 0 12376# endif 12377#endif 12378 12379/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 12380 find out it does not work in some platform. */ 12381#ifndef LT_DLLAZY_OR_NOW 12382# ifdef RTLD_LAZY 12383# define LT_DLLAZY_OR_NOW RTLD_LAZY 12384# else 12385# ifdef DL_LAZY 12386# define LT_DLLAZY_OR_NOW DL_LAZY 12387# else 12388# ifdef RTLD_NOW 12389# define LT_DLLAZY_OR_NOW RTLD_NOW 12390# else 12391# ifdef DL_NOW 12392# define LT_DLLAZY_OR_NOW DL_NOW 12393# else 12394# define LT_DLLAZY_OR_NOW 0 12395# endif 12396# endif 12397# endif 12398# endif 12399#endif 12400 12401/* When -fvisibility=hidden is used, assume the code has been annotated 12402 correspondingly for the symbols needed. */ 12403#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 12404int fnord () __attribute__((visibility("default"))); 12405#endif 12406 12407int fnord () { return 42; } 12408int main () 12409{ 12410 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 12411 int status = $lt_dlunknown; 12412 12413 if (self) 12414 { 12415 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 12416 else 12417 { 12418 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 12419 else puts (dlerror ()); 12420 } 12421 /* dlclose (self); */ 12422 } 12423 else 12424 puts (dlerror ()); 12425 12426 return status; 12427} 12428_LT_EOF 12429 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 12430 (eval $ac_link) 2>&5 12431 ac_status=$? 12432 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12433 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 12434 (./conftest; exit; ) >&5 2>/dev/null 12435 lt_status=$? 12436 case x$lt_status in 12437 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 12438 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 12439 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 12440 esac 12441 else : 12442 # compilation failed 12443 lt_cv_dlopen_self=no 12444 fi 12445fi 12446rm -fr conftest* 12447 12448 12449fi 12450{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 12451printf "%s\n" "$lt_cv_dlopen_self" >&6; } 12452 12453 if test yes = "$lt_cv_dlopen_self"; then 12454 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 12455 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 12456printf %s "checking whether a statically linked program can dlopen itself... " >&6; } 12457if test ${lt_cv_dlopen_self_static+y} 12458then : 12459 printf %s "(cached) " >&6 12460else $as_nop 12461 if test yes = "$cross_compiling"; then : 12462 lt_cv_dlopen_self_static=cross 12463else 12464 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 12465 lt_status=$lt_dlunknown 12466 cat > conftest.$ac_ext <<_LT_EOF 12467#line $LINENO "configure" 12468#include "confdefs.h" 12469 12470#if HAVE_DLFCN_H 12471#include <dlfcn.h> 12472#endif 12473 12474#include <stdio.h> 12475 12476#ifdef RTLD_GLOBAL 12477# define LT_DLGLOBAL RTLD_GLOBAL 12478#else 12479# ifdef DL_GLOBAL 12480# define LT_DLGLOBAL DL_GLOBAL 12481# else 12482# define LT_DLGLOBAL 0 12483# endif 12484#endif 12485 12486/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 12487 find out it does not work in some platform. */ 12488#ifndef LT_DLLAZY_OR_NOW 12489# ifdef RTLD_LAZY 12490# define LT_DLLAZY_OR_NOW RTLD_LAZY 12491# else 12492# ifdef DL_LAZY 12493# define LT_DLLAZY_OR_NOW DL_LAZY 12494# else 12495# ifdef RTLD_NOW 12496# define LT_DLLAZY_OR_NOW RTLD_NOW 12497# else 12498# ifdef DL_NOW 12499# define LT_DLLAZY_OR_NOW DL_NOW 12500# else 12501# define LT_DLLAZY_OR_NOW 0 12502# endif 12503# endif 12504# endif 12505# endif 12506#endif 12507 12508/* When -fvisibility=hidden is used, assume the code has been annotated 12509 correspondingly for the symbols needed. */ 12510#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 12511int fnord () __attribute__((visibility("default"))); 12512#endif 12513 12514int fnord () { return 42; } 12515int main () 12516{ 12517 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 12518 int status = $lt_dlunknown; 12519 12520 if (self) 12521 { 12522 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 12523 else 12524 { 12525 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 12526 else puts (dlerror ()); 12527 } 12528 /* dlclose (self); */ 12529 } 12530 else 12531 puts (dlerror ()); 12532 12533 return status; 12534} 12535_LT_EOF 12536 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 12537 (eval $ac_link) 2>&5 12538 ac_status=$? 12539 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12540 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 12541 (./conftest; exit; ) >&5 2>/dev/null 12542 lt_status=$? 12543 case x$lt_status in 12544 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 12545 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 12546 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 12547 esac 12548 else : 12549 # compilation failed 12550 lt_cv_dlopen_self_static=no 12551 fi 12552fi 12553rm -fr conftest* 12554 12555 12556fi 12557{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 12558printf "%s\n" "$lt_cv_dlopen_self_static" >&6; } 12559 fi 12560 12561 CPPFLAGS=$save_CPPFLAGS 12562 LDFLAGS=$save_LDFLAGS 12563 LIBS=$save_LIBS 12564 ;; 12565 esac 12566 12567 case $lt_cv_dlopen_self in 12568 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 12569 *) enable_dlopen_self=unknown ;; 12570 esac 12571 12572 case $lt_cv_dlopen_self_static in 12573 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 12574 *) enable_dlopen_self_static=unknown ;; 12575 esac 12576fi 12577 12578 12579 12580 12581 12582 12583 12584 12585 12586 12587 12588 12589 12590 12591 12592 12593 12594striplib= 12595old_striplib= 12596{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 12597printf %s "checking whether stripping libraries is possible... " >&6; } 12598if test -z "$STRIP"; then 12599 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12600printf "%s\n" "no" >&6; } 12601else 12602 if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 12603 old_striplib="$STRIP --strip-debug" 12604 striplib="$STRIP --strip-unneeded" 12605 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12606printf "%s\n" "yes" >&6; } 12607 else 12608 case $host_os in 12609 darwin*) 12610 # FIXME - insert some real tests, host_os isn't really good enough 12611 striplib="$STRIP -x" 12612 old_striplib="$STRIP -S" 12613 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12614printf "%s\n" "yes" >&6; } 12615 ;; 12616 freebsd*) 12617 if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then 12618 old_striplib="$STRIP --strip-debug" 12619 striplib="$STRIP --strip-unneeded" 12620 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12621printf "%s\n" "yes" >&6; } 12622 else 12623 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12624printf "%s\n" "no" >&6; } 12625 fi 12626 ;; 12627 *) 12628 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12629printf "%s\n" "no" >&6; } 12630 ;; 12631 esac 12632 fi 12633fi 12634 12635 12636 12637 12638 12639 12640 12641 12642 12643 12644 12645 12646 # Report what library types will actually be built 12647 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 12648printf %s "checking if libtool supports shared libraries... " >&6; } 12649 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 12650printf "%s\n" "$can_build_shared" >&6; } 12651 12652 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 12653printf %s "checking whether to build shared libraries... " >&6; } 12654 test no = "$can_build_shared" && enable_shared=no 12655 12656 # On AIX, shared libraries and static libraries use the same namespace, and 12657 # are all built from PIC. 12658 case $host_os in 12659 aix3*) 12660 test yes = "$enable_shared" && enable_static=no 12661 if test -n "$RANLIB"; then 12662 archive_cmds="$archive_cmds~\$RANLIB \$lib" 12663 postinstall_cmds='$RANLIB $lib' 12664 fi 12665 ;; 12666 12667 aix[4-9]*) 12668 if test ia64 != "$host_cpu"; then 12669 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in 12670 yes,aix,yes) ;; # shared object as lib.so file only 12671 yes,svr4,*) ;; # shared object as lib.so archive member only 12672 yes,*) enable_static=no ;; # shared object in lib.a archive as well 12673 esac 12674 fi 12675 ;; 12676 esac 12677 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 12678printf "%s\n" "$enable_shared" >&6; } 12679 12680 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 12681printf %s "checking whether to build static libraries... " >&6; } 12682 # Make sure either enable_shared or enable_static is yes. 12683 test yes = "$enable_shared" || enable_static=yes 12684 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 12685printf "%s\n" "$enable_static" >&6; } 12686 12687 12688 12689 12690fi 12691ac_ext=c 12692ac_cpp='$CPP $CPPFLAGS' 12693ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12694ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12695ac_compiler_gnu=$ac_cv_c_compiler_gnu 12696 12697CC=$lt_save_CC 12698 12699 12700 12701 12702 12703 12704 12705 12706 12707 12708 12709 12710 12711 12712 12713 ac_config_commands="$ac_config_commands libtool" 12714 12715 12716 12717 12718# Only expand once: 12719 12720 12721 12722# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS 12723 12724 12725 12726 12727 12728 12729 12730 12731 12732 12733 12734 12735{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5 12736printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; } 12737if test ${ac_cv_c_undeclared_builtin_options+y} 12738then : 12739 printf %s "(cached) " >&6 12740else $as_nop 12741 ac_save_CFLAGS=$CFLAGS 12742 ac_cv_c_undeclared_builtin_options='cannot detect' 12743 for ac_arg in '' -fno-builtin; do 12744 CFLAGS="$ac_save_CFLAGS $ac_arg" 12745 # This test program should *not* compile successfully. 12746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12747/* end confdefs.h. */ 12748 12749int 12750main (void) 12751{ 12752(void) strchr; 12753 ; 12754 return 0; 12755} 12756_ACEOF 12757if ac_fn_c_try_compile "$LINENO" 12758then : 12759 12760else $as_nop 12761 # This test program should compile successfully. 12762 # No library function is consistently available on 12763 # freestanding implementations, so test against a dummy 12764 # declaration. Include always-available headers on the 12765 # off chance that they somehow elicit warnings. 12766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12767/* end confdefs.h. */ 12768#include <float.h> 12769#include <limits.h> 12770#include <stdarg.h> 12771#include <stddef.h> 12772extern void ac_decl (int, char *); 12773 12774int 12775main (void) 12776{ 12777(void) ac_decl (0, (char *) 0); 12778 (void) ac_decl; 12779 12780 ; 12781 return 0; 12782} 12783_ACEOF 12784if ac_fn_c_try_compile "$LINENO" 12785then : 12786 if test x"$ac_arg" = x 12787then : 12788 ac_cv_c_undeclared_builtin_options='none needed' 12789else $as_nop 12790 ac_cv_c_undeclared_builtin_options=$ac_arg 12791fi 12792 break 12793fi 12794rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 12795fi 12796rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 12797 done 12798 CFLAGS=$ac_save_CFLAGS 12799 12800fi 12801{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5 12802printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; } 12803 case $ac_cv_c_undeclared_builtin_options in #( 12804 'cannot detect') : 12805 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 12806printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 12807as_fn_error $? "cannot make $CC report undeclared builtins 12808See \`config.log' for more details" "$LINENO" 5; } ;; #( 12809 'none needed') : 12810 ac_c_undeclared_builtin_options='' ;; #( 12811 *) : 12812 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;; 12813esac 12814 12815 12816 12817 12818 12819ac_fn_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 12820if test "x$ac_cv_have_decl___clang__" = xyes 12821then : 12822 CLANGCC="yes" 12823else $as_nop 12824 CLANGCC="no" 12825fi 12826ac_fn_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 12827if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes 12828then : 12829 INTELCC="yes" 12830else $as_nop 12831 INTELCC="no" 12832fi 12833ac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 12834if test "x$ac_cv_have_decl___SUNPRO_C" = xyes 12835then : 12836 SUNCC="yes" 12837else $as_nop 12838 SUNCC="no" 12839fi 12840 12841 12842 12843 12844 12845 12846 12847 12848if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 12849 if test -n "$ac_tool_prefix"; then 12850 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 12851set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 12852{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12853printf %s "checking for $ac_word... " >&6; } 12854if test ${ac_cv_path_PKG_CONFIG+y} 12855then : 12856 printf %s "(cached) " >&6 12857else $as_nop 12858 case $PKG_CONFIG in 12859 [\\/]* | ?:[\\/]*) 12860 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 12861 ;; 12862 *) 12863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12864for as_dir in $PATH 12865do 12866 IFS=$as_save_IFS 12867 case $as_dir in #((( 12868 '') as_dir=./ ;; 12869 */) ;; 12870 *) as_dir=$as_dir/ ;; 12871 esac 12872 for ac_exec_ext in '' $ac_executable_extensions; do 12873 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 12874 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 12875 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 12876 break 2 12877 fi 12878done 12879 done 12880IFS=$as_save_IFS 12881 12882 ;; 12883esac 12884fi 12885PKG_CONFIG=$ac_cv_path_PKG_CONFIG 12886if test -n "$PKG_CONFIG"; then 12887 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 12888printf "%s\n" "$PKG_CONFIG" >&6; } 12889else 12890 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12891printf "%s\n" "no" >&6; } 12892fi 12893 12894 12895fi 12896if test -z "$ac_cv_path_PKG_CONFIG"; then 12897 ac_pt_PKG_CONFIG=$PKG_CONFIG 12898 # Extract the first word of "pkg-config", so it can be a program name with args. 12899set dummy pkg-config; ac_word=$2 12900{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12901printf %s "checking for $ac_word... " >&6; } 12902if test ${ac_cv_path_ac_pt_PKG_CONFIG+y} 12903then : 12904 printf %s "(cached) " >&6 12905else $as_nop 12906 case $ac_pt_PKG_CONFIG in 12907 [\\/]* | ?:[\\/]*) 12908 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 12909 ;; 12910 *) 12911 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12912for as_dir in $PATH 12913do 12914 IFS=$as_save_IFS 12915 case $as_dir in #((( 12916 '') as_dir=./ ;; 12917 */) ;; 12918 *) as_dir=$as_dir/ ;; 12919 esac 12920 for ac_exec_ext in '' $ac_executable_extensions; do 12921 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 12922 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 12923 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 12924 break 2 12925 fi 12926done 12927 done 12928IFS=$as_save_IFS 12929 12930 ;; 12931esac 12932fi 12933ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 12934if test -n "$ac_pt_PKG_CONFIG"; then 12935 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 12936printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; } 12937else 12938 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12939printf "%s\n" "no" >&6; } 12940fi 12941 12942 if test "x$ac_pt_PKG_CONFIG" = x; then 12943 PKG_CONFIG="" 12944 else 12945 case $cross_compiling:$ac_tool_warned in 12946yes:) 12947{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12948printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12949ac_tool_warned=yes ;; 12950esac 12951 PKG_CONFIG=$ac_pt_PKG_CONFIG 12952 fi 12953else 12954 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 12955fi 12956 12957fi 12958if test -n "$PKG_CONFIG"; then 12959 _pkg_min_version=0.9.0 12960 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 12961printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; } 12962 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 12963 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12964printf "%s\n" "yes" >&6; } 12965 else 12966 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12967printf "%s\n" "no" >&6; } 12968 PKG_CONFIG="" 12969 fi 12970fi 12971 12972 12973 12974 12975 12976# Check whether --enable-selective-werror was given. 12977if test ${enable_selective_werror+y} 12978then : 12979 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval 12980else $as_nop 12981 SELECTIVE_WERROR=yes 12982fi 12983 12984 12985 12986 12987 12988# -v is too short to test reliably with XORG_TESTSET_CFLAG 12989if test "x$SUNCC" = "xyes"; then 12990 BASE_CFLAGS="-v" 12991else 12992 BASE_CFLAGS="" 12993fi 12994 12995# This chunk of warnings were those that existed in the legacy CWARNFLAGS 12996 12997 12998 12999 13000 13001 13002 13003 13004 13005 13006 13007 13008 13009xorg_testset_save_CFLAGS="$CFLAGS" 13010 13011if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13012 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13013 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13014printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13015if test ${xorg_cv_cc_flag_unknown_warning_option+y} 13016then : 13017 printf %s "(cached) " >&6 13018else $as_nop 13019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13020/* end confdefs.h. */ 13021int i; 13022_ACEOF 13023if ac_fn_c_try_compile "$LINENO" 13024then : 13025 xorg_cv_cc_flag_unknown_warning_option=yes 13026else $as_nop 13027 xorg_cv_cc_flag_unknown_warning_option=no 13028fi 13029rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13030fi 13031{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13032printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13033 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13034 CFLAGS="$xorg_testset_save_CFLAGS" 13035fi 13036 13037if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13038 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13039 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13040 fi 13041 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13042 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13043printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13044if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 13045then : 13046 printf %s "(cached) " >&6 13047else $as_nop 13048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13049/* end confdefs.h. */ 13050int i; 13051_ACEOF 13052if ac_fn_c_try_compile "$LINENO" 13053then : 13054 xorg_cv_cc_flag_unused_command_line_argument=yes 13055else $as_nop 13056 xorg_cv_cc_flag_unused_command_line_argument=no 13057fi 13058rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13059fi 13060{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13061printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13062 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13063 CFLAGS="$xorg_testset_save_CFLAGS" 13064fi 13065 13066found="no" 13067 13068 if test $found = "no" ; then 13069 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13070 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13071 fi 13072 13073 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13074 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13075 fi 13076 13077 CFLAGS="$CFLAGS -Wall" 13078 13079 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5 13080printf %s "checking if $CC supports -Wall... " >&6; } 13081 cacheid=xorg_cv_cc_flag__Wall 13082 if eval test \${$cacheid+y} 13083then : 13084 printf %s "(cached) " >&6 13085else $as_nop 13086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13087/* end confdefs.h. */ 13088int i; 13089int 13090main (void) 13091{ 13092 13093 ; 13094 return 0; 13095} 13096_ACEOF 13097if ac_fn_c_try_link "$LINENO" 13098then : 13099 eval $cacheid=yes 13100else $as_nop 13101 eval $cacheid=no 13102fi 13103rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13104 conftest$ac_exeext conftest.$ac_ext 13105fi 13106 13107 13108 CFLAGS="$xorg_testset_save_CFLAGS" 13109 13110 eval supported=\$$cacheid 13111 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13112printf "%s\n" "$supported" >&6; } 13113 if test "$supported" = "yes" ; then 13114 BASE_CFLAGS="$BASE_CFLAGS -Wall" 13115 found="yes" 13116 fi 13117 fi 13118 13119 13120 13121 13122 13123 13124 13125 13126 13127 13128 13129 13130 13131 13132 13133xorg_testset_save_CFLAGS="$CFLAGS" 13134 13135if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13136 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13137 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13138printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13139if test ${xorg_cv_cc_flag_unknown_warning_option+y} 13140then : 13141 printf %s "(cached) " >&6 13142else $as_nop 13143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13144/* end confdefs.h. */ 13145int i; 13146_ACEOF 13147if ac_fn_c_try_compile "$LINENO" 13148then : 13149 xorg_cv_cc_flag_unknown_warning_option=yes 13150else $as_nop 13151 xorg_cv_cc_flag_unknown_warning_option=no 13152fi 13153rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13154fi 13155{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13156printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13157 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13158 CFLAGS="$xorg_testset_save_CFLAGS" 13159fi 13160 13161if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13162 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13163 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13164 fi 13165 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13166 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13167printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13168if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 13169then : 13170 printf %s "(cached) " >&6 13171else $as_nop 13172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13173/* end confdefs.h. */ 13174int i; 13175_ACEOF 13176if ac_fn_c_try_compile "$LINENO" 13177then : 13178 xorg_cv_cc_flag_unused_command_line_argument=yes 13179else $as_nop 13180 xorg_cv_cc_flag_unused_command_line_argument=no 13181fi 13182rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13183fi 13184{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13185printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13186 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13187 CFLAGS="$xorg_testset_save_CFLAGS" 13188fi 13189 13190found="no" 13191 13192 if test $found = "no" ; then 13193 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13194 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13195 fi 13196 13197 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13198 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13199 fi 13200 13201 CFLAGS="$CFLAGS -Wpointer-arith" 13202 13203 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5 13204printf %s "checking if $CC supports -Wpointer-arith... " >&6; } 13205 cacheid=xorg_cv_cc_flag__Wpointer_arith 13206 if eval test \${$cacheid+y} 13207then : 13208 printf %s "(cached) " >&6 13209else $as_nop 13210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13211/* end confdefs.h. */ 13212int i; 13213int 13214main (void) 13215{ 13216 13217 ; 13218 return 0; 13219} 13220_ACEOF 13221if ac_fn_c_try_link "$LINENO" 13222then : 13223 eval $cacheid=yes 13224else $as_nop 13225 eval $cacheid=no 13226fi 13227rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13228 conftest$ac_exeext conftest.$ac_ext 13229fi 13230 13231 13232 CFLAGS="$xorg_testset_save_CFLAGS" 13233 13234 eval supported=\$$cacheid 13235 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13236printf "%s\n" "$supported" >&6; } 13237 if test "$supported" = "yes" ; then 13238 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith" 13239 found="yes" 13240 fi 13241 fi 13242 13243 13244 13245 13246 13247 13248 13249 13250 13251 13252 13253 13254 13255 13256 13257xorg_testset_save_CFLAGS="$CFLAGS" 13258 13259if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13260 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13261 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13262printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13263if test ${xorg_cv_cc_flag_unknown_warning_option+y} 13264then : 13265 printf %s "(cached) " >&6 13266else $as_nop 13267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13268/* end confdefs.h. */ 13269int i; 13270_ACEOF 13271if ac_fn_c_try_compile "$LINENO" 13272then : 13273 xorg_cv_cc_flag_unknown_warning_option=yes 13274else $as_nop 13275 xorg_cv_cc_flag_unknown_warning_option=no 13276fi 13277rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13278fi 13279{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13280printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13281 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13282 CFLAGS="$xorg_testset_save_CFLAGS" 13283fi 13284 13285if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13286 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13287 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13288 fi 13289 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13290 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13291printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13292if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 13293then : 13294 printf %s "(cached) " >&6 13295else $as_nop 13296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13297/* end confdefs.h. */ 13298int i; 13299_ACEOF 13300if ac_fn_c_try_compile "$LINENO" 13301then : 13302 xorg_cv_cc_flag_unused_command_line_argument=yes 13303else $as_nop 13304 xorg_cv_cc_flag_unused_command_line_argument=no 13305fi 13306rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13307fi 13308{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13309printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13310 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13311 CFLAGS="$xorg_testset_save_CFLAGS" 13312fi 13313 13314found="no" 13315 13316 if test $found = "no" ; then 13317 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13318 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13319 fi 13320 13321 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13322 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13323 fi 13324 13325 CFLAGS="$CFLAGS -Wmissing-declarations" 13326 13327 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5 13328printf %s "checking if $CC supports -Wmissing-declarations... " >&6; } 13329 cacheid=xorg_cv_cc_flag__Wmissing_declarations 13330 if eval test \${$cacheid+y} 13331then : 13332 printf %s "(cached) " >&6 13333else $as_nop 13334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13335/* end confdefs.h. */ 13336int i; 13337int 13338main (void) 13339{ 13340 13341 ; 13342 return 0; 13343} 13344_ACEOF 13345if ac_fn_c_try_link "$LINENO" 13346then : 13347 eval $cacheid=yes 13348else $as_nop 13349 eval $cacheid=no 13350fi 13351rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13352 conftest$ac_exeext conftest.$ac_ext 13353fi 13354 13355 13356 CFLAGS="$xorg_testset_save_CFLAGS" 13357 13358 eval supported=\$$cacheid 13359 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13360printf "%s\n" "$supported" >&6; } 13361 if test "$supported" = "yes" ; then 13362 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations" 13363 found="yes" 13364 fi 13365 fi 13366 13367 13368 13369 13370 13371 13372 13373 13374 13375 13376 13377 13378 13379 13380 13381xorg_testset_save_CFLAGS="$CFLAGS" 13382 13383if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13384 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13385 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13386printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13387if test ${xorg_cv_cc_flag_unknown_warning_option+y} 13388then : 13389 printf %s "(cached) " >&6 13390else $as_nop 13391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13392/* end confdefs.h. */ 13393int i; 13394_ACEOF 13395if ac_fn_c_try_compile "$LINENO" 13396then : 13397 xorg_cv_cc_flag_unknown_warning_option=yes 13398else $as_nop 13399 xorg_cv_cc_flag_unknown_warning_option=no 13400fi 13401rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13402fi 13403{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13404printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13405 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13406 CFLAGS="$xorg_testset_save_CFLAGS" 13407fi 13408 13409if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13410 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13411 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13412 fi 13413 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13414 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13415printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13416if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 13417then : 13418 printf %s "(cached) " >&6 13419else $as_nop 13420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13421/* end confdefs.h. */ 13422int i; 13423_ACEOF 13424if ac_fn_c_try_compile "$LINENO" 13425then : 13426 xorg_cv_cc_flag_unused_command_line_argument=yes 13427else $as_nop 13428 xorg_cv_cc_flag_unused_command_line_argument=no 13429fi 13430rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13431fi 13432{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13433printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13434 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13435 CFLAGS="$xorg_testset_save_CFLAGS" 13436fi 13437 13438found="no" 13439 13440 if test $found = "no" ; then 13441 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13442 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13443 fi 13444 13445 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13446 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13447 fi 13448 13449 CFLAGS="$CFLAGS -Wformat=2" 13450 13451 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5 13452printf %s "checking if $CC supports -Wformat=2... " >&6; } 13453 cacheid=xorg_cv_cc_flag__Wformat_2 13454 if eval test \${$cacheid+y} 13455then : 13456 printf %s "(cached) " >&6 13457else $as_nop 13458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13459/* end confdefs.h. */ 13460int i; 13461int 13462main (void) 13463{ 13464 13465 ; 13466 return 0; 13467} 13468_ACEOF 13469if ac_fn_c_try_link "$LINENO" 13470then : 13471 eval $cacheid=yes 13472else $as_nop 13473 eval $cacheid=no 13474fi 13475rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13476 conftest$ac_exeext conftest.$ac_ext 13477fi 13478 13479 13480 CFLAGS="$xorg_testset_save_CFLAGS" 13481 13482 eval supported=\$$cacheid 13483 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13484printf "%s\n" "$supported" >&6; } 13485 if test "$supported" = "yes" ; then 13486 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2" 13487 found="yes" 13488 fi 13489 fi 13490 13491 if test $found = "no" ; then 13492 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13493 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13494 fi 13495 13496 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13497 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13498 fi 13499 13500 CFLAGS="$CFLAGS -Wformat" 13501 13502 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5 13503printf %s "checking if $CC supports -Wformat... " >&6; } 13504 cacheid=xorg_cv_cc_flag__Wformat 13505 if eval test \${$cacheid+y} 13506then : 13507 printf %s "(cached) " >&6 13508else $as_nop 13509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13510/* end confdefs.h. */ 13511int i; 13512int 13513main (void) 13514{ 13515 13516 ; 13517 return 0; 13518} 13519_ACEOF 13520if ac_fn_c_try_link "$LINENO" 13521then : 13522 eval $cacheid=yes 13523else $as_nop 13524 eval $cacheid=no 13525fi 13526rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13527 conftest$ac_exeext conftest.$ac_ext 13528fi 13529 13530 13531 CFLAGS="$xorg_testset_save_CFLAGS" 13532 13533 eval supported=\$$cacheid 13534 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13535printf "%s\n" "$supported" >&6; } 13536 if test "$supported" = "yes" ; then 13537 BASE_CFLAGS="$BASE_CFLAGS -Wformat" 13538 found="yes" 13539 fi 13540 fi 13541 13542 13543 13544 13545 13546 13547 13548 13549 13550 13551 13552 13553 13554 13555 13556 13557 13558xorg_testset_save_CFLAGS="$CFLAGS" 13559 13560if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13561 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13562 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13563printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13564if test ${xorg_cv_cc_flag_unknown_warning_option+y} 13565then : 13566 printf %s "(cached) " >&6 13567else $as_nop 13568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13569/* end confdefs.h. */ 13570int i; 13571_ACEOF 13572if ac_fn_c_try_compile "$LINENO" 13573then : 13574 xorg_cv_cc_flag_unknown_warning_option=yes 13575else $as_nop 13576 xorg_cv_cc_flag_unknown_warning_option=no 13577fi 13578rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13579fi 13580{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13581printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13582 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13583 CFLAGS="$xorg_testset_save_CFLAGS" 13584fi 13585 13586if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13587 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13588 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13589 fi 13590 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13591 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13592printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13593if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 13594then : 13595 printf %s "(cached) " >&6 13596else $as_nop 13597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13598/* end confdefs.h. */ 13599int i; 13600_ACEOF 13601if ac_fn_c_try_compile "$LINENO" 13602then : 13603 xorg_cv_cc_flag_unused_command_line_argument=yes 13604else $as_nop 13605 xorg_cv_cc_flag_unused_command_line_argument=no 13606fi 13607rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13608fi 13609{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13610printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13611 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13612 CFLAGS="$xorg_testset_save_CFLAGS" 13613fi 13614 13615found="no" 13616 13617 if test $found = "no" ; then 13618 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13619 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13620 fi 13621 13622 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13623 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13624 fi 13625 13626 CFLAGS="$CFLAGS -Wstrict-prototypes" 13627 13628 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5 13629printf %s "checking if $CC supports -Wstrict-prototypes... " >&6; } 13630 cacheid=xorg_cv_cc_flag__Wstrict_prototypes 13631 if eval test \${$cacheid+y} 13632then : 13633 printf %s "(cached) " >&6 13634else $as_nop 13635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13636/* end confdefs.h. */ 13637int i; 13638int 13639main (void) 13640{ 13641 13642 ; 13643 return 0; 13644} 13645_ACEOF 13646if ac_fn_c_try_link "$LINENO" 13647then : 13648 eval $cacheid=yes 13649else $as_nop 13650 eval $cacheid=no 13651fi 13652rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13653 conftest$ac_exeext conftest.$ac_ext 13654fi 13655 13656 13657 CFLAGS="$xorg_testset_save_CFLAGS" 13658 13659 eval supported=\$$cacheid 13660 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13661printf "%s\n" "$supported" >&6; } 13662 if test "$supported" = "yes" ; then 13663 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes" 13664 found="yes" 13665 fi 13666 fi 13667 13668 13669 13670 13671 13672 13673 13674 13675 13676 13677 13678 13679 13680 13681 13682xorg_testset_save_CFLAGS="$CFLAGS" 13683 13684if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13685 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13686 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13687printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13688if test ${xorg_cv_cc_flag_unknown_warning_option+y} 13689then : 13690 printf %s "(cached) " >&6 13691else $as_nop 13692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13693/* end confdefs.h. */ 13694int i; 13695_ACEOF 13696if ac_fn_c_try_compile "$LINENO" 13697then : 13698 xorg_cv_cc_flag_unknown_warning_option=yes 13699else $as_nop 13700 xorg_cv_cc_flag_unknown_warning_option=no 13701fi 13702rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13703fi 13704{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13705printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13706 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13707 CFLAGS="$xorg_testset_save_CFLAGS" 13708fi 13709 13710if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13711 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13712 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13713 fi 13714 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13715 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13716printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13717if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 13718then : 13719 printf %s "(cached) " >&6 13720else $as_nop 13721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13722/* end confdefs.h. */ 13723int i; 13724_ACEOF 13725if ac_fn_c_try_compile "$LINENO" 13726then : 13727 xorg_cv_cc_flag_unused_command_line_argument=yes 13728else $as_nop 13729 xorg_cv_cc_flag_unused_command_line_argument=no 13730fi 13731rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13732fi 13733{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13734printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13735 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13736 CFLAGS="$xorg_testset_save_CFLAGS" 13737fi 13738 13739found="no" 13740 13741 if test $found = "no" ; then 13742 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13743 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13744 fi 13745 13746 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13747 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13748 fi 13749 13750 CFLAGS="$CFLAGS -Wmissing-prototypes" 13751 13752 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5 13753printf %s "checking if $CC supports -Wmissing-prototypes... " >&6; } 13754 cacheid=xorg_cv_cc_flag__Wmissing_prototypes 13755 if eval test \${$cacheid+y} 13756then : 13757 printf %s "(cached) " >&6 13758else $as_nop 13759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13760/* end confdefs.h. */ 13761int i; 13762int 13763main (void) 13764{ 13765 13766 ; 13767 return 0; 13768} 13769_ACEOF 13770if ac_fn_c_try_link "$LINENO" 13771then : 13772 eval $cacheid=yes 13773else $as_nop 13774 eval $cacheid=no 13775fi 13776rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13777 conftest$ac_exeext conftest.$ac_ext 13778fi 13779 13780 13781 CFLAGS="$xorg_testset_save_CFLAGS" 13782 13783 eval supported=\$$cacheid 13784 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13785printf "%s\n" "$supported" >&6; } 13786 if test "$supported" = "yes" ; then 13787 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes" 13788 found="yes" 13789 fi 13790 fi 13791 13792 13793 13794 13795 13796 13797 13798 13799 13800 13801 13802 13803 13804 13805 13806xorg_testset_save_CFLAGS="$CFLAGS" 13807 13808if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13809 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13810 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13811printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13812if test ${xorg_cv_cc_flag_unknown_warning_option+y} 13813then : 13814 printf %s "(cached) " >&6 13815else $as_nop 13816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13817/* end confdefs.h. */ 13818int i; 13819_ACEOF 13820if ac_fn_c_try_compile "$LINENO" 13821then : 13822 xorg_cv_cc_flag_unknown_warning_option=yes 13823else $as_nop 13824 xorg_cv_cc_flag_unknown_warning_option=no 13825fi 13826rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13827fi 13828{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13829printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13830 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13831 CFLAGS="$xorg_testset_save_CFLAGS" 13832fi 13833 13834if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13835 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13836 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13837 fi 13838 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13839 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13840printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13841if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 13842then : 13843 printf %s "(cached) " >&6 13844else $as_nop 13845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13846/* end confdefs.h. */ 13847int i; 13848_ACEOF 13849if ac_fn_c_try_compile "$LINENO" 13850then : 13851 xorg_cv_cc_flag_unused_command_line_argument=yes 13852else $as_nop 13853 xorg_cv_cc_flag_unused_command_line_argument=no 13854fi 13855rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13856fi 13857{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13858printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13859 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13860 CFLAGS="$xorg_testset_save_CFLAGS" 13861fi 13862 13863found="no" 13864 13865 if test $found = "no" ; then 13866 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13867 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13868 fi 13869 13870 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13871 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13872 fi 13873 13874 CFLAGS="$CFLAGS -Wnested-externs" 13875 13876 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5 13877printf %s "checking if $CC supports -Wnested-externs... " >&6; } 13878 cacheid=xorg_cv_cc_flag__Wnested_externs 13879 if eval test \${$cacheid+y} 13880then : 13881 printf %s "(cached) " >&6 13882else $as_nop 13883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13884/* end confdefs.h. */ 13885int i; 13886int 13887main (void) 13888{ 13889 13890 ; 13891 return 0; 13892} 13893_ACEOF 13894if ac_fn_c_try_link "$LINENO" 13895then : 13896 eval $cacheid=yes 13897else $as_nop 13898 eval $cacheid=no 13899fi 13900rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13901 conftest$ac_exeext conftest.$ac_ext 13902fi 13903 13904 13905 CFLAGS="$xorg_testset_save_CFLAGS" 13906 13907 eval supported=\$$cacheid 13908 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13909printf "%s\n" "$supported" >&6; } 13910 if test "$supported" = "yes" ; then 13911 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs" 13912 found="yes" 13913 fi 13914 fi 13915 13916 13917 13918 13919 13920 13921 13922 13923 13924 13925 13926 13927 13928 13929 13930xorg_testset_save_CFLAGS="$CFLAGS" 13931 13932if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13933 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13934 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13935printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13936if test ${xorg_cv_cc_flag_unknown_warning_option+y} 13937then : 13938 printf %s "(cached) " >&6 13939else $as_nop 13940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13941/* end confdefs.h. */ 13942int i; 13943_ACEOF 13944if ac_fn_c_try_compile "$LINENO" 13945then : 13946 xorg_cv_cc_flag_unknown_warning_option=yes 13947else $as_nop 13948 xorg_cv_cc_flag_unknown_warning_option=no 13949fi 13950rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13951fi 13952{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13953printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13954 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13955 CFLAGS="$xorg_testset_save_CFLAGS" 13956fi 13957 13958if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13959 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13960 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13961 fi 13962 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13963 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13964printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13965if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 13966then : 13967 printf %s "(cached) " >&6 13968else $as_nop 13969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13970/* end confdefs.h. */ 13971int i; 13972_ACEOF 13973if ac_fn_c_try_compile "$LINENO" 13974then : 13975 xorg_cv_cc_flag_unused_command_line_argument=yes 13976else $as_nop 13977 xorg_cv_cc_flag_unused_command_line_argument=no 13978fi 13979rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13980fi 13981{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13982printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13983 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13984 CFLAGS="$xorg_testset_save_CFLAGS" 13985fi 13986 13987found="no" 13988 13989 if test $found = "no" ; then 13990 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13991 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13992 fi 13993 13994 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13995 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13996 fi 13997 13998 CFLAGS="$CFLAGS -Wbad-function-cast" 13999 14000 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5 14001printf %s "checking if $CC supports -Wbad-function-cast... " >&6; } 14002 cacheid=xorg_cv_cc_flag__Wbad_function_cast 14003 if eval test \${$cacheid+y} 14004then : 14005 printf %s "(cached) " >&6 14006else $as_nop 14007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14008/* end confdefs.h. */ 14009int i; 14010int 14011main (void) 14012{ 14013 14014 ; 14015 return 0; 14016} 14017_ACEOF 14018if ac_fn_c_try_link "$LINENO" 14019then : 14020 eval $cacheid=yes 14021else $as_nop 14022 eval $cacheid=no 14023fi 14024rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14025 conftest$ac_exeext conftest.$ac_ext 14026fi 14027 14028 14029 CFLAGS="$xorg_testset_save_CFLAGS" 14030 14031 eval supported=\$$cacheid 14032 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14033printf "%s\n" "$supported" >&6; } 14034 if test "$supported" = "yes" ; then 14035 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast" 14036 found="yes" 14037 fi 14038 fi 14039 14040 14041 14042 14043 14044 14045 14046 14047 14048 14049 14050 14051 14052 14053 14054xorg_testset_save_CFLAGS="$CFLAGS" 14055 14056if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14057 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14058 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14059printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14060if test ${xorg_cv_cc_flag_unknown_warning_option+y} 14061then : 14062 printf %s "(cached) " >&6 14063else $as_nop 14064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14065/* end confdefs.h. */ 14066int i; 14067_ACEOF 14068if ac_fn_c_try_compile "$LINENO" 14069then : 14070 xorg_cv_cc_flag_unknown_warning_option=yes 14071else $as_nop 14072 xorg_cv_cc_flag_unknown_warning_option=no 14073fi 14074rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14075fi 14076{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14077printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14078 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14079 CFLAGS="$xorg_testset_save_CFLAGS" 14080fi 14081 14082if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14083 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14084 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14085 fi 14086 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14087 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14088printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14089if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 14090then : 14091 printf %s "(cached) " >&6 14092else $as_nop 14093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14094/* end confdefs.h. */ 14095int i; 14096_ACEOF 14097if ac_fn_c_try_compile "$LINENO" 14098then : 14099 xorg_cv_cc_flag_unused_command_line_argument=yes 14100else $as_nop 14101 xorg_cv_cc_flag_unused_command_line_argument=no 14102fi 14103rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14104fi 14105{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14106printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14107 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14108 CFLAGS="$xorg_testset_save_CFLAGS" 14109fi 14110 14111found="no" 14112 14113 if test $found = "no" ; then 14114 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14115 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14116 fi 14117 14118 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14119 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14120 fi 14121 14122 CFLAGS="$CFLAGS -Wold-style-definition" 14123 14124 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5 14125printf %s "checking if $CC supports -Wold-style-definition... " >&6; } 14126 cacheid=xorg_cv_cc_flag__Wold_style_definition 14127 if eval test \${$cacheid+y} 14128then : 14129 printf %s "(cached) " >&6 14130else $as_nop 14131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14132/* end confdefs.h. */ 14133int i; 14134int 14135main (void) 14136{ 14137 14138 ; 14139 return 0; 14140} 14141_ACEOF 14142if ac_fn_c_try_link "$LINENO" 14143then : 14144 eval $cacheid=yes 14145else $as_nop 14146 eval $cacheid=no 14147fi 14148rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14149 conftest$ac_exeext conftest.$ac_ext 14150fi 14151 14152 14153 CFLAGS="$xorg_testset_save_CFLAGS" 14154 14155 eval supported=\$$cacheid 14156 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14157printf "%s\n" "$supported" >&6; } 14158 if test "$supported" = "yes" ; then 14159 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition" 14160 found="yes" 14161 fi 14162 fi 14163 14164 if test $found = "no" ; then 14165 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14166 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14167 fi 14168 14169 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14170 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14171 fi 14172 14173 CFLAGS="$CFLAGS -fd" 14174 14175 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5 14176printf %s "checking if $CC supports -fd... " >&6; } 14177 cacheid=xorg_cv_cc_flag__fd 14178 if eval test \${$cacheid+y} 14179then : 14180 printf %s "(cached) " >&6 14181else $as_nop 14182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14183/* end confdefs.h. */ 14184int i; 14185int 14186main (void) 14187{ 14188 14189 ; 14190 return 0; 14191} 14192_ACEOF 14193if ac_fn_c_try_link "$LINENO" 14194then : 14195 eval $cacheid=yes 14196else $as_nop 14197 eval $cacheid=no 14198fi 14199rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14200 conftest$ac_exeext conftest.$ac_ext 14201fi 14202 14203 14204 CFLAGS="$xorg_testset_save_CFLAGS" 14205 14206 eval supported=\$$cacheid 14207 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14208printf "%s\n" "$supported" >&6; } 14209 if test "$supported" = "yes" ; then 14210 BASE_CFLAGS="$BASE_CFLAGS -fd" 14211 found="yes" 14212 fi 14213 fi 14214 14215 14216 14217 14218 14219 14220 14221 14222 14223 14224 14225 14226 14227 14228 14229xorg_testset_save_CFLAGS="$CFLAGS" 14230 14231if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14232 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14233 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14234printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14235if test ${xorg_cv_cc_flag_unknown_warning_option+y} 14236then : 14237 printf %s "(cached) " >&6 14238else $as_nop 14239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14240/* end confdefs.h. */ 14241int i; 14242_ACEOF 14243if ac_fn_c_try_compile "$LINENO" 14244then : 14245 xorg_cv_cc_flag_unknown_warning_option=yes 14246else $as_nop 14247 xorg_cv_cc_flag_unknown_warning_option=no 14248fi 14249rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14250fi 14251{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14252printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14253 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14254 CFLAGS="$xorg_testset_save_CFLAGS" 14255fi 14256 14257if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14258 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14259 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14260 fi 14261 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14262 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14263printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14264if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 14265then : 14266 printf %s "(cached) " >&6 14267else $as_nop 14268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14269/* end confdefs.h. */ 14270int i; 14271_ACEOF 14272if ac_fn_c_try_compile "$LINENO" 14273then : 14274 xorg_cv_cc_flag_unused_command_line_argument=yes 14275else $as_nop 14276 xorg_cv_cc_flag_unused_command_line_argument=no 14277fi 14278rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14279fi 14280{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14281printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14282 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14283 CFLAGS="$xorg_testset_save_CFLAGS" 14284fi 14285 14286found="no" 14287 14288 if test $found = "no" ; then 14289 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14290 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14291 fi 14292 14293 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14294 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14295 fi 14296 14297 CFLAGS="$CFLAGS -Wdeclaration-after-statement" 14298 14299 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5 14300printf %s "checking if $CC supports -Wdeclaration-after-statement... " >&6; } 14301 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement 14302 if eval test \${$cacheid+y} 14303then : 14304 printf %s "(cached) " >&6 14305else $as_nop 14306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14307/* end confdefs.h. */ 14308int i; 14309int 14310main (void) 14311{ 14312 14313 ; 14314 return 0; 14315} 14316_ACEOF 14317if ac_fn_c_try_link "$LINENO" 14318then : 14319 eval $cacheid=yes 14320else $as_nop 14321 eval $cacheid=no 14322fi 14323rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14324 conftest$ac_exeext conftest.$ac_ext 14325fi 14326 14327 14328 CFLAGS="$xorg_testset_save_CFLAGS" 14329 14330 eval supported=\$$cacheid 14331 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14332printf "%s\n" "$supported" >&6; } 14333 if test "$supported" = "yes" ; then 14334 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement" 14335 found="yes" 14336 fi 14337 fi 14338 14339 14340 14341 14342 14343# This chunk adds additional warnings that could catch undesired effects. 14344 14345 14346 14347 14348 14349 14350 14351 14352 14353 14354 14355 14356 14357xorg_testset_save_CFLAGS="$CFLAGS" 14358 14359if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14360 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14361 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14362printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14363if test ${xorg_cv_cc_flag_unknown_warning_option+y} 14364then : 14365 printf %s "(cached) " >&6 14366else $as_nop 14367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14368/* end confdefs.h. */ 14369int i; 14370_ACEOF 14371if ac_fn_c_try_compile "$LINENO" 14372then : 14373 xorg_cv_cc_flag_unknown_warning_option=yes 14374else $as_nop 14375 xorg_cv_cc_flag_unknown_warning_option=no 14376fi 14377rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14378fi 14379{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14380printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14381 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14382 CFLAGS="$xorg_testset_save_CFLAGS" 14383fi 14384 14385if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14386 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14387 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14388 fi 14389 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14390 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14391printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14392if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 14393then : 14394 printf %s "(cached) " >&6 14395else $as_nop 14396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14397/* end confdefs.h. */ 14398int i; 14399_ACEOF 14400if ac_fn_c_try_compile "$LINENO" 14401then : 14402 xorg_cv_cc_flag_unused_command_line_argument=yes 14403else $as_nop 14404 xorg_cv_cc_flag_unused_command_line_argument=no 14405fi 14406rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14407fi 14408{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14409printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14410 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14411 CFLAGS="$xorg_testset_save_CFLAGS" 14412fi 14413 14414found="no" 14415 14416 if test $found = "no" ; then 14417 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14418 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14419 fi 14420 14421 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14422 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14423 fi 14424 14425 CFLAGS="$CFLAGS -Wunused" 14426 14427 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5 14428printf %s "checking if $CC supports -Wunused... " >&6; } 14429 cacheid=xorg_cv_cc_flag__Wunused 14430 if eval test \${$cacheid+y} 14431then : 14432 printf %s "(cached) " >&6 14433else $as_nop 14434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14435/* end confdefs.h. */ 14436int i; 14437int 14438main (void) 14439{ 14440 14441 ; 14442 return 0; 14443} 14444_ACEOF 14445if ac_fn_c_try_link "$LINENO" 14446then : 14447 eval $cacheid=yes 14448else $as_nop 14449 eval $cacheid=no 14450fi 14451rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14452 conftest$ac_exeext conftest.$ac_ext 14453fi 14454 14455 14456 CFLAGS="$xorg_testset_save_CFLAGS" 14457 14458 eval supported=\$$cacheid 14459 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14460printf "%s\n" "$supported" >&6; } 14461 if test "$supported" = "yes" ; then 14462 BASE_CFLAGS="$BASE_CFLAGS -Wunused" 14463 found="yes" 14464 fi 14465 fi 14466 14467 14468 14469 14470 14471 14472 14473 14474 14475 14476 14477 14478 14479 14480 14481xorg_testset_save_CFLAGS="$CFLAGS" 14482 14483if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14484 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14485 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14486printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14487if test ${xorg_cv_cc_flag_unknown_warning_option+y} 14488then : 14489 printf %s "(cached) " >&6 14490else $as_nop 14491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14492/* end confdefs.h. */ 14493int i; 14494_ACEOF 14495if ac_fn_c_try_compile "$LINENO" 14496then : 14497 xorg_cv_cc_flag_unknown_warning_option=yes 14498else $as_nop 14499 xorg_cv_cc_flag_unknown_warning_option=no 14500fi 14501rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14502fi 14503{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14504printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14505 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14506 CFLAGS="$xorg_testset_save_CFLAGS" 14507fi 14508 14509if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14510 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14511 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14512 fi 14513 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14514 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14515printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14516if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 14517then : 14518 printf %s "(cached) " >&6 14519else $as_nop 14520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14521/* end confdefs.h. */ 14522int i; 14523_ACEOF 14524if ac_fn_c_try_compile "$LINENO" 14525then : 14526 xorg_cv_cc_flag_unused_command_line_argument=yes 14527else $as_nop 14528 xorg_cv_cc_flag_unused_command_line_argument=no 14529fi 14530rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14531fi 14532{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14533printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14534 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14535 CFLAGS="$xorg_testset_save_CFLAGS" 14536fi 14537 14538found="no" 14539 14540 if test $found = "no" ; then 14541 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14542 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14543 fi 14544 14545 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14546 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14547 fi 14548 14549 CFLAGS="$CFLAGS -Wuninitialized" 14550 14551 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5 14552printf %s "checking if $CC supports -Wuninitialized... " >&6; } 14553 cacheid=xorg_cv_cc_flag__Wuninitialized 14554 if eval test \${$cacheid+y} 14555then : 14556 printf %s "(cached) " >&6 14557else $as_nop 14558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14559/* end confdefs.h. */ 14560int i; 14561int 14562main (void) 14563{ 14564 14565 ; 14566 return 0; 14567} 14568_ACEOF 14569if ac_fn_c_try_link "$LINENO" 14570then : 14571 eval $cacheid=yes 14572else $as_nop 14573 eval $cacheid=no 14574fi 14575rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14576 conftest$ac_exeext conftest.$ac_ext 14577fi 14578 14579 14580 CFLAGS="$xorg_testset_save_CFLAGS" 14581 14582 eval supported=\$$cacheid 14583 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14584printf "%s\n" "$supported" >&6; } 14585 if test "$supported" = "yes" ; then 14586 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized" 14587 found="yes" 14588 fi 14589 fi 14590 14591 14592 14593 14594 14595 14596 14597 14598 14599 14600 14601 14602 14603 14604 14605xorg_testset_save_CFLAGS="$CFLAGS" 14606 14607if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14608 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14609 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14610printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14611if test ${xorg_cv_cc_flag_unknown_warning_option+y} 14612then : 14613 printf %s "(cached) " >&6 14614else $as_nop 14615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14616/* end confdefs.h. */ 14617int i; 14618_ACEOF 14619if ac_fn_c_try_compile "$LINENO" 14620then : 14621 xorg_cv_cc_flag_unknown_warning_option=yes 14622else $as_nop 14623 xorg_cv_cc_flag_unknown_warning_option=no 14624fi 14625rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14626fi 14627{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14628printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14629 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14630 CFLAGS="$xorg_testset_save_CFLAGS" 14631fi 14632 14633if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14634 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14635 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14636 fi 14637 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14638 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14639printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14640if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 14641then : 14642 printf %s "(cached) " >&6 14643else $as_nop 14644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14645/* end confdefs.h. */ 14646int i; 14647_ACEOF 14648if ac_fn_c_try_compile "$LINENO" 14649then : 14650 xorg_cv_cc_flag_unused_command_line_argument=yes 14651else $as_nop 14652 xorg_cv_cc_flag_unused_command_line_argument=no 14653fi 14654rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14655fi 14656{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14657printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14658 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14659 CFLAGS="$xorg_testset_save_CFLAGS" 14660fi 14661 14662found="no" 14663 14664 if test $found = "no" ; then 14665 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14666 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14667 fi 14668 14669 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14670 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14671 fi 14672 14673 CFLAGS="$CFLAGS -Wshadow" 14674 14675 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5 14676printf %s "checking if $CC supports -Wshadow... " >&6; } 14677 cacheid=xorg_cv_cc_flag__Wshadow 14678 if eval test \${$cacheid+y} 14679then : 14680 printf %s "(cached) " >&6 14681else $as_nop 14682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14683/* end confdefs.h. */ 14684int i; 14685int 14686main (void) 14687{ 14688 14689 ; 14690 return 0; 14691} 14692_ACEOF 14693if ac_fn_c_try_link "$LINENO" 14694then : 14695 eval $cacheid=yes 14696else $as_nop 14697 eval $cacheid=no 14698fi 14699rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14700 conftest$ac_exeext conftest.$ac_ext 14701fi 14702 14703 14704 CFLAGS="$xorg_testset_save_CFLAGS" 14705 14706 eval supported=\$$cacheid 14707 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14708printf "%s\n" "$supported" >&6; } 14709 if test "$supported" = "yes" ; then 14710 BASE_CFLAGS="$BASE_CFLAGS -Wshadow" 14711 found="yes" 14712 fi 14713 fi 14714 14715 14716 14717 14718 14719 14720 14721 14722 14723 14724 14725 14726 14727 14728 14729xorg_testset_save_CFLAGS="$CFLAGS" 14730 14731if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14732 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14733 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14734printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14735if test ${xorg_cv_cc_flag_unknown_warning_option+y} 14736then : 14737 printf %s "(cached) " >&6 14738else $as_nop 14739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14740/* end confdefs.h. */ 14741int i; 14742_ACEOF 14743if ac_fn_c_try_compile "$LINENO" 14744then : 14745 xorg_cv_cc_flag_unknown_warning_option=yes 14746else $as_nop 14747 xorg_cv_cc_flag_unknown_warning_option=no 14748fi 14749rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14750fi 14751{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14752printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14753 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14754 CFLAGS="$xorg_testset_save_CFLAGS" 14755fi 14756 14757if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14758 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14759 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14760 fi 14761 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14762 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14763printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14764if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 14765then : 14766 printf %s "(cached) " >&6 14767else $as_nop 14768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14769/* end confdefs.h. */ 14770int i; 14771_ACEOF 14772if ac_fn_c_try_compile "$LINENO" 14773then : 14774 xorg_cv_cc_flag_unused_command_line_argument=yes 14775else $as_nop 14776 xorg_cv_cc_flag_unused_command_line_argument=no 14777fi 14778rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14779fi 14780{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14781printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14782 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14783 CFLAGS="$xorg_testset_save_CFLAGS" 14784fi 14785 14786found="no" 14787 14788 if test $found = "no" ; then 14789 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14790 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14791 fi 14792 14793 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14794 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14795 fi 14796 14797 CFLAGS="$CFLAGS -Wmissing-noreturn" 14798 14799 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5 14800printf %s "checking if $CC supports -Wmissing-noreturn... " >&6; } 14801 cacheid=xorg_cv_cc_flag__Wmissing_noreturn 14802 if eval test \${$cacheid+y} 14803then : 14804 printf %s "(cached) " >&6 14805else $as_nop 14806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14807/* end confdefs.h. */ 14808int i; 14809int 14810main (void) 14811{ 14812 14813 ; 14814 return 0; 14815} 14816_ACEOF 14817if ac_fn_c_try_link "$LINENO" 14818then : 14819 eval $cacheid=yes 14820else $as_nop 14821 eval $cacheid=no 14822fi 14823rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14824 conftest$ac_exeext conftest.$ac_ext 14825fi 14826 14827 14828 CFLAGS="$xorg_testset_save_CFLAGS" 14829 14830 eval supported=\$$cacheid 14831 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14832printf "%s\n" "$supported" >&6; } 14833 if test "$supported" = "yes" ; then 14834 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn" 14835 found="yes" 14836 fi 14837 fi 14838 14839 14840 14841 14842 14843 14844 14845 14846 14847 14848 14849 14850 14851 14852 14853xorg_testset_save_CFLAGS="$CFLAGS" 14854 14855if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14856 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14857 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14858printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14859if test ${xorg_cv_cc_flag_unknown_warning_option+y} 14860then : 14861 printf %s "(cached) " >&6 14862else $as_nop 14863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14864/* end confdefs.h. */ 14865int i; 14866_ACEOF 14867if ac_fn_c_try_compile "$LINENO" 14868then : 14869 xorg_cv_cc_flag_unknown_warning_option=yes 14870else $as_nop 14871 xorg_cv_cc_flag_unknown_warning_option=no 14872fi 14873rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14874fi 14875{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14876printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14877 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14878 CFLAGS="$xorg_testset_save_CFLAGS" 14879fi 14880 14881if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14882 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14883 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14884 fi 14885 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14886 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14887printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14888if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 14889then : 14890 printf %s "(cached) " >&6 14891else $as_nop 14892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14893/* end confdefs.h. */ 14894int i; 14895_ACEOF 14896if ac_fn_c_try_compile "$LINENO" 14897then : 14898 xorg_cv_cc_flag_unused_command_line_argument=yes 14899else $as_nop 14900 xorg_cv_cc_flag_unused_command_line_argument=no 14901fi 14902rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14903fi 14904{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14905printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14906 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14907 CFLAGS="$xorg_testset_save_CFLAGS" 14908fi 14909 14910found="no" 14911 14912 if test $found = "no" ; then 14913 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14914 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14915 fi 14916 14917 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14918 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14919 fi 14920 14921 CFLAGS="$CFLAGS -Wmissing-format-attribute" 14922 14923 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5 14924printf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; } 14925 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute 14926 if eval test \${$cacheid+y} 14927then : 14928 printf %s "(cached) " >&6 14929else $as_nop 14930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14931/* end confdefs.h. */ 14932int i; 14933int 14934main (void) 14935{ 14936 14937 ; 14938 return 0; 14939} 14940_ACEOF 14941if ac_fn_c_try_link "$LINENO" 14942then : 14943 eval $cacheid=yes 14944else $as_nop 14945 eval $cacheid=no 14946fi 14947rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14948 conftest$ac_exeext conftest.$ac_ext 14949fi 14950 14951 14952 CFLAGS="$xorg_testset_save_CFLAGS" 14953 14954 eval supported=\$$cacheid 14955 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14956printf "%s\n" "$supported" >&6; } 14957 if test "$supported" = "yes" ; then 14958 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute" 14959 found="yes" 14960 fi 14961 fi 14962 14963 14964 14965 14966 14967 14968 14969 14970 14971 14972 14973 14974 14975 14976 14977xorg_testset_save_CFLAGS="$CFLAGS" 14978 14979if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14980 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14981 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14982printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14983if test ${xorg_cv_cc_flag_unknown_warning_option+y} 14984then : 14985 printf %s "(cached) " >&6 14986else $as_nop 14987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14988/* end confdefs.h. */ 14989int i; 14990_ACEOF 14991if ac_fn_c_try_compile "$LINENO" 14992then : 14993 xorg_cv_cc_flag_unknown_warning_option=yes 14994else $as_nop 14995 xorg_cv_cc_flag_unknown_warning_option=no 14996fi 14997rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14998fi 14999{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15000printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15001 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15002 CFLAGS="$xorg_testset_save_CFLAGS" 15003fi 15004 15005if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15006 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15007 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15008 fi 15009 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15010 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15011printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15012if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 15013then : 15014 printf %s "(cached) " >&6 15015else $as_nop 15016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15017/* end confdefs.h. */ 15018int i; 15019_ACEOF 15020if ac_fn_c_try_compile "$LINENO" 15021then : 15022 xorg_cv_cc_flag_unused_command_line_argument=yes 15023else $as_nop 15024 xorg_cv_cc_flag_unused_command_line_argument=no 15025fi 15026rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15027fi 15028{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15029printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15030 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15031 CFLAGS="$xorg_testset_save_CFLAGS" 15032fi 15033 15034found="no" 15035 15036 if test $found = "no" ; then 15037 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15038 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15039 fi 15040 15041 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15042 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15043 fi 15044 15045 CFLAGS="$CFLAGS -Wredundant-decls" 15046 15047 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5 15048printf %s "checking if $CC supports -Wredundant-decls... " >&6; } 15049 cacheid=xorg_cv_cc_flag__Wredundant_decls 15050 if eval test \${$cacheid+y} 15051then : 15052 printf %s "(cached) " >&6 15053else $as_nop 15054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15055/* end confdefs.h. */ 15056int i; 15057int 15058main (void) 15059{ 15060 15061 ; 15062 return 0; 15063} 15064_ACEOF 15065if ac_fn_c_try_link "$LINENO" 15066then : 15067 eval $cacheid=yes 15068else $as_nop 15069 eval $cacheid=no 15070fi 15071rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15072 conftest$ac_exeext conftest.$ac_ext 15073fi 15074 15075 15076 CFLAGS="$xorg_testset_save_CFLAGS" 15077 15078 eval supported=\$$cacheid 15079 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15080printf "%s\n" "$supported" >&6; } 15081 if test "$supported" = "yes" ; then 15082 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls" 15083 found="yes" 15084 fi 15085 fi 15086 15087 15088 15089 15090 15091 15092 15093 15094 15095 15096 15097 15098 15099 15100 15101xorg_testset_save_CFLAGS="$CFLAGS" 15102 15103if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15104 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15105 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15106printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15107if test ${xorg_cv_cc_flag_unknown_warning_option+y} 15108then : 15109 printf %s "(cached) " >&6 15110else $as_nop 15111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15112/* end confdefs.h. */ 15113int i; 15114_ACEOF 15115if ac_fn_c_try_compile "$LINENO" 15116then : 15117 xorg_cv_cc_flag_unknown_warning_option=yes 15118else $as_nop 15119 xorg_cv_cc_flag_unknown_warning_option=no 15120fi 15121rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15122fi 15123{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15124printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15125 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15126 CFLAGS="$xorg_testset_save_CFLAGS" 15127fi 15128 15129if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15130 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15131 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15132 fi 15133 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15134 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15135printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15136if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 15137then : 15138 printf %s "(cached) " >&6 15139else $as_nop 15140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15141/* end confdefs.h. */ 15142int i; 15143_ACEOF 15144if ac_fn_c_try_compile "$LINENO" 15145then : 15146 xorg_cv_cc_flag_unused_command_line_argument=yes 15147else $as_nop 15148 xorg_cv_cc_flag_unused_command_line_argument=no 15149fi 15150rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15151fi 15152{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15153printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15154 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15155 CFLAGS="$xorg_testset_save_CFLAGS" 15156fi 15157 15158found="no" 15159 15160 if test $found = "no" ; then 15161 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15162 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15163 fi 15164 15165 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15166 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15167 fi 15168 15169 CFLAGS="$CFLAGS -Wlogical-op" 15170 15171 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5 15172printf %s "checking if $CC supports -Wlogical-op... " >&6; } 15173 cacheid=xorg_cv_cc_flag__Wlogical_op 15174 if eval test \${$cacheid+y} 15175then : 15176 printf %s "(cached) " >&6 15177else $as_nop 15178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15179/* end confdefs.h. */ 15180int i; 15181int 15182main (void) 15183{ 15184 15185 ; 15186 return 0; 15187} 15188_ACEOF 15189if ac_fn_c_try_link "$LINENO" 15190then : 15191 eval $cacheid=yes 15192else $as_nop 15193 eval $cacheid=no 15194fi 15195rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15196 conftest$ac_exeext conftest.$ac_ext 15197fi 15198 15199 15200 CFLAGS="$xorg_testset_save_CFLAGS" 15201 15202 eval supported=\$$cacheid 15203 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15204printf "%s\n" "$supported" >&6; } 15205 if test "$supported" = "yes" ; then 15206 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op" 15207 found="yes" 15208 fi 15209 fi 15210 15211 15212 15213# These are currently disabled because they are noisy. They will be enabled 15214# in the future once the codebase is sufficiently modernized to silence 15215# them. For now, I don't want them to drown out the other warnings. 15216# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses]) 15217# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align]) 15218# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual]) 15219 15220# Turn some warnings into errors, so we don't accidently get successful builds 15221# when there are problems that should be fixed. 15222 15223if test "x$SELECTIVE_WERROR" = "xyes" ; then 15224 15225 15226 15227 15228 15229 15230 15231 15232 15233 15234 15235 15236 15237xorg_testset_save_CFLAGS="$CFLAGS" 15238 15239if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15240 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15241 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15242printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15243if test ${xorg_cv_cc_flag_unknown_warning_option+y} 15244then : 15245 printf %s "(cached) " >&6 15246else $as_nop 15247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15248/* end confdefs.h. */ 15249int i; 15250_ACEOF 15251if ac_fn_c_try_compile "$LINENO" 15252then : 15253 xorg_cv_cc_flag_unknown_warning_option=yes 15254else $as_nop 15255 xorg_cv_cc_flag_unknown_warning_option=no 15256fi 15257rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15258fi 15259{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15260printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15261 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15262 CFLAGS="$xorg_testset_save_CFLAGS" 15263fi 15264 15265if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15266 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15267 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15268 fi 15269 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15270 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15271printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15272if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 15273then : 15274 printf %s "(cached) " >&6 15275else $as_nop 15276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15277/* end confdefs.h. */ 15278int i; 15279_ACEOF 15280if ac_fn_c_try_compile "$LINENO" 15281then : 15282 xorg_cv_cc_flag_unused_command_line_argument=yes 15283else $as_nop 15284 xorg_cv_cc_flag_unused_command_line_argument=no 15285fi 15286rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15287fi 15288{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15289printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15290 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15291 CFLAGS="$xorg_testset_save_CFLAGS" 15292fi 15293 15294found="no" 15295 15296 if test $found = "no" ; then 15297 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15298 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15299 fi 15300 15301 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15302 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15303 fi 15304 15305 CFLAGS="$CFLAGS -Werror=implicit" 15306 15307 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5 15308printf %s "checking if $CC supports -Werror=implicit... " >&6; } 15309 cacheid=xorg_cv_cc_flag__Werror_implicit 15310 if eval test \${$cacheid+y} 15311then : 15312 printf %s "(cached) " >&6 15313else $as_nop 15314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15315/* end confdefs.h. */ 15316int i; 15317int 15318main (void) 15319{ 15320 15321 ; 15322 return 0; 15323} 15324_ACEOF 15325if ac_fn_c_try_link "$LINENO" 15326then : 15327 eval $cacheid=yes 15328else $as_nop 15329 eval $cacheid=no 15330fi 15331rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15332 conftest$ac_exeext conftest.$ac_ext 15333fi 15334 15335 15336 CFLAGS="$xorg_testset_save_CFLAGS" 15337 15338 eval supported=\$$cacheid 15339 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15340printf "%s\n" "$supported" >&6; } 15341 if test "$supported" = "yes" ; then 15342 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit" 15343 found="yes" 15344 fi 15345 fi 15346 15347 if test $found = "no" ; then 15348 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15349 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15350 fi 15351 15352 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15353 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15354 fi 15355 15356 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 15357 15358 { 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 15359printf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; } 15360 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED 15361 if eval test \${$cacheid+y} 15362then : 15363 printf %s "(cached) " >&6 15364else $as_nop 15365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15366/* end confdefs.h. */ 15367int i; 15368int 15369main (void) 15370{ 15371 15372 ; 15373 return 0; 15374} 15375_ACEOF 15376if ac_fn_c_try_link "$LINENO" 15377then : 15378 eval $cacheid=yes 15379else $as_nop 15380 eval $cacheid=no 15381fi 15382rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15383 conftest$ac_exeext conftest.$ac_ext 15384fi 15385 15386 15387 CFLAGS="$xorg_testset_save_CFLAGS" 15388 15389 eval supported=\$$cacheid 15390 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15391printf "%s\n" "$supported" >&6; } 15392 if test "$supported" = "yes" ; then 15393 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 15394 found="yes" 15395 fi 15396 fi 15397 15398 15399 15400 15401 15402 15403 15404 15405 15406 15407 15408 15409 15410 15411 15412xorg_testset_save_CFLAGS="$CFLAGS" 15413 15414if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15415 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15416 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15417printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15418if test ${xorg_cv_cc_flag_unknown_warning_option+y} 15419then : 15420 printf %s "(cached) " >&6 15421else $as_nop 15422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15423/* end confdefs.h. */ 15424int i; 15425_ACEOF 15426if ac_fn_c_try_compile "$LINENO" 15427then : 15428 xorg_cv_cc_flag_unknown_warning_option=yes 15429else $as_nop 15430 xorg_cv_cc_flag_unknown_warning_option=no 15431fi 15432rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15433fi 15434{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15435printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15436 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15437 CFLAGS="$xorg_testset_save_CFLAGS" 15438fi 15439 15440if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15441 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15442 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15443 fi 15444 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15445 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15446printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15447if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 15448then : 15449 printf %s "(cached) " >&6 15450else $as_nop 15451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15452/* end confdefs.h. */ 15453int i; 15454_ACEOF 15455if ac_fn_c_try_compile "$LINENO" 15456then : 15457 xorg_cv_cc_flag_unused_command_line_argument=yes 15458else $as_nop 15459 xorg_cv_cc_flag_unused_command_line_argument=no 15460fi 15461rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15462fi 15463{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15464printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15465 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15466 CFLAGS="$xorg_testset_save_CFLAGS" 15467fi 15468 15469found="no" 15470 15471 if test $found = "no" ; then 15472 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15473 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15474 fi 15475 15476 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15477 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15478 fi 15479 15480 CFLAGS="$CFLAGS -Werror=nonnull" 15481 15482 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5 15483printf %s "checking if $CC supports -Werror=nonnull... " >&6; } 15484 cacheid=xorg_cv_cc_flag__Werror_nonnull 15485 if eval test \${$cacheid+y} 15486then : 15487 printf %s "(cached) " >&6 15488else $as_nop 15489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15490/* end confdefs.h. */ 15491int i; 15492int 15493main (void) 15494{ 15495 15496 ; 15497 return 0; 15498} 15499_ACEOF 15500if ac_fn_c_try_link "$LINENO" 15501then : 15502 eval $cacheid=yes 15503else $as_nop 15504 eval $cacheid=no 15505fi 15506rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15507 conftest$ac_exeext conftest.$ac_ext 15508fi 15509 15510 15511 CFLAGS="$xorg_testset_save_CFLAGS" 15512 15513 eval supported=\$$cacheid 15514 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15515printf "%s\n" "$supported" >&6; } 15516 if test "$supported" = "yes" ; then 15517 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull" 15518 found="yes" 15519 fi 15520 fi 15521 15522 15523 15524 15525 15526 15527 15528 15529 15530 15531 15532 15533 15534 15535 15536xorg_testset_save_CFLAGS="$CFLAGS" 15537 15538if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15539 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15540 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15541printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15542if test ${xorg_cv_cc_flag_unknown_warning_option+y} 15543then : 15544 printf %s "(cached) " >&6 15545else $as_nop 15546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15547/* end confdefs.h. */ 15548int i; 15549_ACEOF 15550if ac_fn_c_try_compile "$LINENO" 15551then : 15552 xorg_cv_cc_flag_unknown_warning_option=yes 15553else $as_nop 15554 xorg_cv_cc_flag_unknown_warning_option=no 15555fi 15556rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15557fi 15558{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15559printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15560 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15561 CFLAGS="$xorg_testset_save_CFLAGS" 15562fi 15563 15564if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15565 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15566 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15567 fi 15568 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15569 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15570printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15571if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 15572then : 15573 printf %s "(cached) " >&6 15574else $as_nop 15575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15576/* end confdefs.h. */ 15577int i; 15578_ACEOF 15579if ac_fn_c_try_compile "$LINENO" 15580then : 15581 xorg_cv_cc_flag_unused_command_line_argument=yes 15582else $as_nop 15583 xorg_cv_cc_flag_unused_command_line_argument=no 15584fi 15585rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15586fi 15587{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15588printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15589 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15590 CFLAGS="$xorg_testset_save_CFLAGS" 15591fi 15592 15593found="no" 15594 15595 if test $found = "no" ; then 15596 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15597 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15598 fi 15599 15600 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15601 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15602 fi 15603 15604 CFLAGS="$CFLAGS -Werror=init-self" 15605 15606 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5 15607printf %s "checking if $CC supports -Werror=init-self... " >&6; } 15608 cacheid=xorg_cv_cc_flag__Werror_init_self 15609 if eval test \${$cacheid+y} 15610then : 15611 printf %s "(cached) " >&6 15612else $as_nop 15613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15614/* end confdefs.h. */ 15615int i; 15616int 15617main (void) 15618{ 15619 15620 ; 15621 return 0; 15622} 15623_ACEOF 15624if ac_fn_c_try_link "$LINENO" 15625then : 15626 eval $cacheid=yes 15627else $as_nop 15628 eval $cacheid=no 15629fi 15630rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15631 conftest$ac_exeext conftest.$ac_ext 15632fi 15633 15634 15635 CFLAGS="$xorg_testset_save_CFLAGS" 15636 15637 eval supported=\$$cacheid 15638 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15639printf "%s\n" "$supported" >&6; } 15640 if test "$supported" = "yes" ; then 15641 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self" 15642 found="yes" 15643 fi 15644 fi 15645 15646 15647 15648 15649 15650 15651 15652 15653 15654 15655 15656 15657 15658 15659 15660xorg_testset_save_CFLAGS="$CFLAGS" 15661 15662if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15663 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15664 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15665printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15666if test ${xorg_cv_cc_flag_unknown_warning_option+y} 15667then : 15668 printf %s "(cached) " >&6 15669else $as_nop 15670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15671/* end confdefs.h. */ 15672int i; 15673_ACEOF 15674if ac_fn_c_try_compile "$LINENO" 15675then : 15676 xorg_cv_cc_flag_unknown_warning_option=yes 15677else $as_nop 15678 xorg_cv_cc_flag_unknown_warning_option=no 15679fi 15680rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15681fi 15682{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15683printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15684 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15685 CFLAGS="$xorg_testset_save_CFLAGS" 15686fi 15687 15688if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15689 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15690 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15691 fi 15692 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15693 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15694printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15695if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 15696then : 15697 printf %s "(cached) " >&6 15698else $as_nop 15699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15700/* end confdefs.h. */ 15701int i; 15702_ACEOF 15703if ac_fn_c_try_compile "$LINENO" 15704then : 15705 xorg_cv_cc_flag_unused_command_line_argument=yes 15706else $as_nop 15707 xorg_cv_cc_flag_unused_command_line_argument=no 15708fi 15709rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15710fi 15711{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15712printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15713 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15714 CFLAGS="$xorg_testset_save_CFLAGS" 15715fi 15716 15717found="no" 15718 15719 if test $found = "no" ; then 15720 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15721 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15722 fi 15723 15724 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15725 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15726 fi 15727 15728 CFLAGS="$CFLAGS -Werror=main" 15729 15730 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5 15731printf %s "checking if $CC supports -Werror=main... " >&6; } 15732 cacheid=xorg_cv_cc_flag__Werror_main 15733 if eval test \${$cacheid+y} 15734then : 15735 printf %s "(cached) " >&6 15736else $as_nop 15737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15738/* end confdefs.h. */ 15739int i; 15740int 15741main (void) 15742{ 15743 15744 ; 15745 return 0; 15746} 15747_ACEOF 15748if ac_fn_c_try_link "$LINENO" 15749then : 15750 eval $cacheid=yes 15751else $as_nop 15752 eval $cacheid=no 15753fi 15754rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15755 conftest$ac_exeext conftest.$ac_ext 15756fi 15757 15758 15759 CFLAGS="$xorg_testset_save_CFLAGS" 15760 15761 eval supported=\$$cacheid 15762 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15763printf "%s\n" "$supported" >&6; } 15764 if test "$supported" = "yes" ; then 15765 BASE_CFLAGS="$BASE_CFLAGS -Werror=main" 15766 found="yes" 15767 fi 15768 fi 15769 15770 15771 15772 15773 15774 15775 15776 15777 15778 15779 15780 15781 15782 15783 15784xorg_testset_save_CFLAGS="$CFLAGS" 15785 15786if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15787 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15788 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15789printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15790if test ${xorg_cv_cc_flag_unknown_warning_option+y} 15791then : 15792 printf %s "(cached) " >&6 15793else $as_nop 15794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15795/* end confdefs.h. */ 15796int i; 15797_ACEOF 15798if ac_fn_c_try_compile "$LINENO" 15799then : 15800 xorg_cv_cc_flag_unknown_warning_option=yes 15801else $as_nop 15802 xorg_cv_cc_flag_unknown_warning_option=no 15803fi 15804rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15805fi 15806{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15807printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15808 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15809 CFLAGS="$xorg_testset_save_CFLAGS" 15810fi 15811 15812if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15813 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15814 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15815 fi 15816 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15817 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15818printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15819if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 15820then : 15821 printf %s "(cached) " >&6 15822else $as_nop 15823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15824/* end confdefs.h. */ 15825int i; 15826_ACEOF 15827if ac_fn_c_try_compile "$LINENO" 15828then : 15829 xorg_cv_cc_flag_unused_command_line_argument=yes 15830else $as_nop 15831 xorg_cv_cc_flag_unused_command_line_argument=no 15832fi 15833rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15834fi 15835{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15836printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15837 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15838 CFLAGS="$xorg_testset_save_CFLAGS" 15839fi 15840 15841found="no" 15842 15843 if test $found = "no" ; then 15844 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15845 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15846 fi 15847 15848 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15849 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15850 fi 15851 15852 CFLAGS="$CFLAGS -Werror=missing-braces" 15853 15854 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5 15855printf %s "checking if $CC supports -Werror=missing-braces... " >&6; } 15856 cacheid=xorg_cv_cc_flag__Werror_missing_braces 15857 if eval test \${$cacheid+y} 15858then : 15859 printf %s "(cached) " >&6 15860else $as_nop 15861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15862/* end confdefs.h. */ 15863int i; 15864int 15865main (void) 15866{ 15867 15868 ; 15869 return 0; 15870} 15871_ACEOF 15872if ac_fn_c_try_link "$LINENO" 15873then : 15874 eval $cacheid=yes 15875else $as_nop 15876 eval $cacheid=no 15877fi 15878rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15879 conftest$ac_exeext conftest.$ac_ext 15880fi 15881 15882 15883 CFLAGS="$xorg_testset_save_CFLAGS" 15884 15885 eval supported=\$$cacheid 15886 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15887printf "%s\n" "$supported" >&6; } 15888 if test "$supported" = "yes" ; then 15889 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces" 15890 found="yes" 15891 fi 15892 fi 15893 15894 15895 15896 15897 15898 15899 15900 15901 15902 15903 15904 15905 15906 15907 15908xorg_testset_save_CFLAGS="$CFLAGS" 15909 15910if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15911 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15912 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15913printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15914if test ${xorg_cv_cc_flag_unknown_warning_option+y} 15915then : 15916 printf %s "(cached) " >&6 15917else $as_nop 15918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15919/* end confdefs.h. */ 15920int i; 15921_ACEOF 15922if ac_fn_c_try_compile "$LINENO" 15923then : 15924 xorg_cv_cc_flag_unknown_warning_option=yes 15925else $as_nop 15926 xorg_cv_cc_flag_unknown_warning_option=no 15927fi 15928rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15929fi 15930{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15931printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15932 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15933 CFLAGS="$xorg_testset_save_CFLAGS" 15934fi 15935 15936if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15937 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15938 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15939 fi 15940 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15941 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15942printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15943if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 15944then : 15945 printf %s "(cached) " >&6 15946else $as_nop 15947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15948/* end confdefs.h. */ 15949int i; 15950_ACEOF 15951if ac_fn_c_try_compile "$LINENO" 15952then : 15953 xorg_cv_cc_flag_unused_command_line_argument=yes 15954else $as_nop 15955 xorg_cv_cc_flag_unused_command_line_argument=no 15956fi 15957rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15958fi 15959{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15960printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15961 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15962 CFLAGS="$xorg_testset_save_CFLAGS" 15963fi 15964 15965found="no" 15966 15967 if test $found = "no" ; then 15968 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15969 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15970 fi 15971 15972 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15973 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15974 fi 15975 15976 CFLAGS="$CFLAGS -Werror=sequence-point" 15977 15978 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5 15979printf %s "checking if $CC supports -Werror=sequence-point... " >&6; } 15980 cacheid=xorg_cv_cc_flag__Werror_sequence_point 15981 if eval test \${$cacheid+y} 15982then : 15983 printf %s "(cached) " >&6 15984else $as_nop 15985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15986/* end confdefs.h. */ 15987int i; 15988int 15989main (void) 15990{ 15991 15992 ; 15993 return 0; 15994} 15995_ACEOF 15996if ac_fn_c_try_link "$LINENO" 15997then : 15998 eval $cacheid=yes 15999else $as_nop 16000 eval $cacheid=no 16001fi 16002rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16003 conftest$ac_exeext conftest.$ac_ext 16004fi 16005 16006 16007 CFLAGS="$xorg_testset_save_CFLAGS" 16008 16009 eval supported=\$$cacheid 16010 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16011printf "%s\n" "$supported" >&6; } 16012 if test "$supported" = "yes" ; then 16013 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point" 16014 found="yes" 16015 fi 16016 fi 16017 16018 16019 16020 16021 16022 16023 16024 16025 16026 16027 16028 16029 16030 16031 16032xorg_testset_save_CFLAGS="$CFLAGS" 16033 16034if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16035 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16036 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16037printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16038if test ${xorg_cv_cc_flag_unknown_warning_option+y} 16039then : 16040 printf %s "(cached) " >&6 16041else $as_nop 16042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16043/* end confdefs.h. */ 16044int i; 16045_ACEOF 16046if ac_fn_c_try_compile "$LINENO" 16047then : 16048 xorg_cv_cc_flag_unknown_warning_option=yes 16049else $as_nop 16050 xorg_cv_cc_flag_unknown_warning_option=no 16051fi 16052rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16053fi 16054{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16055printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16056 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16057 CFLAGS="$xorg_testset_save_CFLAGS" 16058fi 16059 16060if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16061 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16062 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16063 fi 16064 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16065 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16066printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16067if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 16068then : 16069 printf %s "(cached) " >&6 16070else $as_nop 16071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16072/* end confdefs.h. */ 16073int i; 16074_ACEOF 16075if ac_fn_c_try_compile "$LINENO" 16076then : 16077 xorg_cv_cc_flag_unused_command_line_argument=yes 16078else $as_nop 16079 xorg_cv_cc_flag_unused_command_line_argument=no 16080fi 16081rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16082fi 16083{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16084printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16085 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16086 CFLAGS="$xorg_testset_save_CFLAGS" 16087fi 16088 16089found="no" 16090 16091 if test $found = "no" ; then 16092 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16093 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16094 fi 16095 16096 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16097 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16098 fi 16099 16100 CFLAGS="$CFLAGS -Werror=return-type" 16101 16102 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5 16103printf %s "checking if $CC supports -Werror=return-type... " >&6; } 16104 cacheid=xorg_cv_cc_flag__Werror_return_type 16105 if eval test \${$cacheid+y} 16106then : 16107 printf %s "(cached) " >&6 16108else $as_nop 16109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16110/* end confdefs.h. */ 16111int i; 16112int 16113main (void) 16114{ 16115 16116 ; 16117 return 0; 16118} 16119_ACEOF 16120if ac_fn_c_try_link "$LINENO" 16121then : 16122 eval $cacheid=yes 16123else $as_nop 16124 eval $cacheid=no 16125fi 16126rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16127 conftest$ac_exeext conftest.$ac_ext 16128fi 16129 16130 16131 CFLAGS="$xorg_testset_save_CFLAGS" 16132 16133 eval supported=\$$cacheid 16134 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16135printf "%s\n" "$supported" >&6; } 16136 if test "$supported" = "yes" ; then 16137 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type" 16138 found="yes" 16139 fi 16140 fi 16141 16142 if test $found = "no" ; then 16143 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16144 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16145 fi 16146 16147 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16148 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16149 fi 16150 16151 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 16152 16153 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5 16154printf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; } 16155 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT 16156 if eval test \${$cacheid+y} 16157then : 16158 printf %s "(cached) " >&6 16159else $as_nop 16160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16161/* end confdefs.h. */ 16162int i; 16163int 16164main (void) 16165{ 16166 16167 ; 16168 return 0; 16169} 16170_ACEOF 16171if ac_fn_c_try_link "$LINENO" 16172then : 16173 eval $cacheid=yes 16174else $as_nop 16175 eval $cacheid=no 16176fi 16177rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16178 conftest$ac_exeext conftest.$ac_ext 16179fi 16180 16181 16182 CFLAGS="$xorg_testset_save_CFLAGS" 16183 16184 eval supported=\$$cacheid 16185 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16186printf "%s\n" "$supported" >&6; } 16187 if test "$supported" = "yes" ; then 16188 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 16189 found="yes" 16190 fi 16191 fi 16192 16193 16194 16195 16196 16197 16198 16199 16200 16201 16202 16203 16204 16205 16206 16207xorg_testset_save_CFLAGS="$CFLAGS" 16208 16209if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16210 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16211 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16212printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16213if test ${xorg_cv_cc_flag_unknown_warning_option+y} 16214then : 16215 printf %s "(cached) " >&6 16216else $as_nop 16217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16218/* end confdefs.h. */ 16219int i; 16220_ACEOF 16221if ac_fn_c_try_compile "$LINENO" 16222then : 16223 xorg_cv_cc_flag_unknown_warning_option=yes 16224else $as_nop 16225 xorg_cv_cc_flag_unknown_warning_option=no 16226fi 16227rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16228fi 16229{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16230printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16231 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16232 CFLAGS="$xorg_testset_save_CFLAGS" 16233fi 16234 16235if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16236 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16237 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16238 fi 16239 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16240 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16241printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16242if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 16243then : 16244 printf %s "(cached) " >&6 16245else $as_nop 16246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16247/* end confdefs.h. */ 16248int i; 16249_ACEOF 16250if ac_fn_c_try_compile "$LINENO" 16251then : 16252 xorg_cv_cc_flag_unused_command_line_argument=yes 16253else $as_nop 16254 xorg_cv_cc_flag_unused_command_line_argument=no 16255fi 16256rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16257fi 16258{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16259printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16260 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16261 CFLAGS="$xorg_testset_save_CFLAGS" 16262fi 16263 16264found="no" 16265 16266 if test $found = "no" ; then 16267 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16268 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16269 fi 16270 16271 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16272 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16273 fi 16274 16275 CFLAGS="$CFLAGS -Werror=trigraphs" 16276 16277 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5 16278printf %s "checking if $CC supports -Werror=trigraphs... " >&6; } 16279 cacheid=xorg_cv_cc_flag__Werror_trigraphs 16280 if eval test \${$cacheid+y} 16281then : 16282 printf %s "(cached) " >&6 16283else $as_nop 16284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16285/* end confdefs.h. */ 16286int i; 16287int 16288main (void) 16289{ 16290 16291 ; 16292 return 0; 16293} 16294_ACEOF 16295if ac_fn_c_try_link "$LINENO" 16296then : 16297 eval $cacheid=yes 16298else $as_nop 16299 eval $cacheid=no 16300fi 16301rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16302 conftest$ac_exeext conftest.$ac_ext 16303fi 16304 16305 16306 CFLAGS="$xorg_testset_save_CFLAGS" 16307 16308 eval supported=\$$cacheid 16309 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16310printf "%s\n" "$supported" >&6; } 16311 if test "$supported" = "yes" ; then 16312 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs" 16313 found="yes" 16314 fi 16315 fi 16316 16317 16318 16319 16320 16321 16322 16323 16324 16325 16326 16327 16328 16329 16330 16331xorg_testset_save_CFLAGS="$CFLAGS" 16332 16333if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16334 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16335 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16336printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16337if test ${xorg_cv_cc_flag_unknown_warning_option+y} 16338then : 16339 printf %s "(cached) " >&6 16340else $as_nop 16341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16342/* end confdefs.h. */ 16343int i; 16344_ACEOF 16345if ac_fn_c_try_compile "$LINENO" 16346then : 16347 xorg_cv_cc_flag_unknown_warning_option=yes 16348else $as_nop 16349 xorg_cv_cc_flag_unknown_warning_option=no 16350fi 16351rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16352fi 16353{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16354printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16355 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16356 CFLAGS="$xorg_testset_save_CFLAGS" 16357fi 16358 16359if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16360 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16361 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16362 fi 16363 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16364 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16365printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16366if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 16367then : 16368 printf %s "(cached) " >&6 16369else $as_nop 16370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16371/* end confdefs.h. */ 16372int i; 16373_ACEOF 16374if ac_fn_c_try_compile "$LINENO" 16375then : 16376 xorg_cv_cc_flag_unused_command_line_argument=yes 16377else $as_nop 16378 xorg_cv_cc_flag_unused_command_line_argument=no 16379fi 16380rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16381fi 16382{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16383printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16384 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16385 CFLAGS="$xorg_testset_save_CFLAGS" 16386fi 16387 16388found="no" 16389 16390 if test $found = "no" ; then 16391 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16392 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16393 fi 16394 16395 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16396 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16397 fi 16398 16399 CFLAGS="$CFLAGS -Werror=array-bounds" 16400 16401 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5 16402printf %s "checking if $CC supports -Werror=array-bounds... " >&6; } 16403 cacheid=xorg_cv_cc_flag__Werror_array_bounds 16404 if eval test \${$cacheid+y} 16405then : 16406 printf %s "(cached) " >&6 16407else $as_nop 16408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16409/* end confdefs.h. */ 16410int i; 16411int 16412main (void) 16413{ 16414 16415 ; 16416 return 0; 16417} 16418_ACEOF 16419if ac_fn_c_try_link "$LINENO" 16420then : 16421 eval $cacheid=yes 16422else $as_nop 16423 eval $cacheid=no 16424fi 16425rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16426 conftest$ac_exeext conftest.$ac_ext 16427fi 16428 16429 16430 CFLAGS="$xorg_testset_save_CFLAGS" 16431 16432 eval supported=\$$cacheid 16433 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16434printf "%s\n" "$supported" >&6; } 16435 if test "$supported" = "yes" ; then 16436 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds" 16437 found="yes" 16438 fi 16439 fi 16440 16441 16442 16443 16444 16445 16446 16447 16448 16449 16450 16451 16452 16453 16454 16455xorg_testset_save_CFLAGS="$CFLAGS" 16456 16457if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16458 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16459 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16460printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16461if test ${xorg_cv_cc_flag_unknown_warning_option+y} 16462then : 16463 printf %s "(cached) " >&6 16464else $as_nop 16465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16466/* end confdefs.h. */ 16467int i; 16468_ACEOF 16469if ac_fn_c_try_compile "$LINENO" 16470then : 16471 xorg_cv_cc_flag_unknown_warning_option=yes 16472else $as_nop 16473 xorg_cv_cc_flag_unknown_warning_option=no 16474fi 16475rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16476fi 16477{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16478printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16479 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16480 CFLAGS="$xorg_testset_save_CFLAGS" 16481fi 16482 16483if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16484 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16485 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16486 fi 16487 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16488 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16489printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16490if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 16491then : 16492 printf %s "(cached) " >&6 16493else $as_nop 16494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16495/* end confdefs.h. */ 16496int i; 16497_ACEOF 16498if ac_fn_c_try_compile "$LINENO" 16499then : 16500 xorg_cv_cc_flag_unused_command_line_argument=yes 16501else $as_nop 16502 xorg_cv_cc_flag_unused_command_line_argument=no 16503fi 16504rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16505fi 16506{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16507printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16508 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16509 CFLAGS="$xorg_testset_save_CFLAGS" 16510fi 16511 16512found="no" 16513 16514 if test $found = "no" ; then 16515 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16516 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16517 fi 16518 16519 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16520 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16521 fi 16522 16523 CFLAGS="$CFLAGS -Werror=write-strings" 16524 16525 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5 16526printf %s "checking if $CC supports -Werror=write-strings... " >&6; } 16527 cacheid=xorg_cv_cc_flag__Werror_write_strings 16528 if eval test \${$cacheid+y} 16529then : 16530 printf %s "(cached) " >&6 16531else $as_nop 16532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16533/* end confdefs.h. */ 16534int i; 16535int 16536main (void) 16537{ 16538 16539 ; 16540 return 0; 16541} 16542_ACEOF 16543if ac_fn_c_try_link "$LINENO" 16544then : 16545 eval $cacheid=yes 16546else $as_nop 16547 eval $cacheid=no 16548fi 16549rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16550 conftest$ac_exeext conftest.$ac_ext 16551fi 16552 16553 16554 CFLAGS="$xorg_testset_save_CFLAGS" 16555 16556 eval supported=\$$cacheid 16557 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16558printf "%s\n" "$supported" >&6; } 16559 if test "$supported" = "yes" ; then 16560 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings" 16561 found="yes" 16562 fi 16563 fi 16564 16565 16566 16567 16568 16569 16570 16571 16572 16573 16574 16575 16576 16577 16578 16579xorg_testset_save_CFLAGS="$CFLAGS" 16580 16581if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16582 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16583 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16584printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16585if test ${xorg_cv_cc_flag_unknown_warning_option+y} 16586then : 16587 printf %s "(cached) " >&6 16588else $as_nop 16589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16590/* end confdefs.h. */ 16591int i; 16592_ACEOF 16593if ac_fn_c_try_compile "$LINENO" 16594then : 16595 xorg_cv_cc_flag_unknown_warning_option=yes 16596else $as_nop 16597 xorg_cv_cc_flag_unknown_warning_option=no 16598fi 16599rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16600fi 16601{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16602printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16603 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16604 CFLAGS="$xorg_testset_save_CFLAGS" 16605fi 16606 16607if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16608 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16609 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16610 fi 16611 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16612 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16613printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16614if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 16615then : 16616 printf %s "(cached) " >&6 16617else $as_nop 16618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16619/* end confdefs.h. */ 16620int i; 16621_ACEOF 16622if ac_fn_c_try_compile "$LINENO" 16623then : 16624 xorg_cv_cc_flag_unused_command_line_argument=yes 16625else $as_nop 16626 xorg_cv_cc_flag_unused_command_line_argument=no 16627fi 16628rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16629fi 16630{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16631printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16632 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16633 CFLAGS="$xorg_testset_save_CFLAGS" 16634fi 16635 16636found="no" 16637 16638 if test $found = "no" ; then 16639 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16640 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16641 fi 16642 16643 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16644 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16645 fi 16646 16647 CFLAGS="$CFLAGS -Werror=address" 16648 16649 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5 16650printf %s "checking if $CC supports -Werror=address... " >&6; } 16651 cacheid=xorg_cv_cc_flag__Werror_address 16652 if eval test \${$cacheid+y} 16653then : 16654 printf %s "(cached) " >&6 16655else $as_nop 16656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16657/* end confdefs.h. */ 16658int i; 16659int 16660main (void) 16661{ 16662 16663 ; 16664 return 0; 16665} 16666_ACEOF 16667if ac_fn_c_try_link "$LINENO" 16668then : 16669 eval $cacheid=yes 16670else $as_nop 16671 eval $cacheid=no 16672fi 16673rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16674 conftest$ac_exeext conftest.$ac_ext 16675fi 16676 16677 16678 CFLAGS="$xorg_testset_save_CFLAGS" 16679 16680 eval supported=\$$cacheid 16681 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16682printf "%s\n" "$supported" >&6; } 16683 if test "$supported" = "yes" ; then 16684 BASE_CFLAGS="$BASE_CFLAGS -Werror=address" 16685 found="yes" 16686 fi 16687 fi 16688 16689 16690 16691 16692 16693 16694 16695 16696 16697 16698 16699 16700 16701 16702 16703xorg_testset_save_CFLAGS="$CFLAGS" 16704 16705if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16706 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16707 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16708printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16709if test ${xorg_cv_cc_flag_unknown_warning_option+y} 16710then : 16711 printf %s "(cached) " >&6 16712else $as_nop 16713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16714/* end confdefs.h. */ 16715int i; 16716_ACEOF 16717if ac_fn_c_try_compile "$LINENO" 16718then : 16719 xorg_cv_cc_flag_unknown_warning_option=yes 16720else $as_nop 16721 xorg_cv_cc_flag_unknown_warning_option=no 16722fi 16723rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16724fi 16725{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16726printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16727 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16728 CFLAGS="$xorg_testset_save_CFLAGS" 16729fi 16730 16731if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16732 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16733 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16734 fi 16735 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16736 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16737printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16738if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 16739then : 16740 printf %s "(cached) " >&6 16741else $as_nop 16742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16743/* end confdefs.h. */ 16744int i; 16745_ACEOF 16746if ac_fn_c_try_compile "$LINENO" 16747then : 16748 xorg_cv_cc_flag_unused_command_line_argument=yes 16749else $as_nop 16750 xorg_cv_cc_flag_unused_command_line_argument=no 16751fi 16752rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16753fi 16754{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16755printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16756 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16757 CFLAGS="$xorg_testset_save_CFLAGS" 16758fi 16759 16760found="no" 16761 16762 if test $found = "no" ; then 16763 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16764 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16765 fi 16766 16767 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16768 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16769 fi 16770 16771 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast" 16772 16773 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5 16774printf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; } 16775 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast 16776 if eval test \${$cacheid+y} 16777then : 16778 printf %s "(cached) " >&6 16779else $as_nop 16780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16781/* end confdefs.h. */ 16782int i; 16783int 16784main (void) 16785{ 16786 16787 ; 16788 return 0; 16789} 16790_ACEOF 16791if ac_fn_c_try_link "$LINENO" 16792then : 16793 eval $cacheid=yes 16794else $as_nop 16795 eval $cacheid=no 16796fi 16797rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16798 conftest$ac_exeext conftest.$ac_ext 16799fi 16800 16801 16802 CFLAGS="$xorg_testset_save_CFLAGS" 16803 16804 eval supported=\$$cacheid 16805 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16806printf "%s\n" "$supported" >&6; } 16807 if test "$supported" = "yes" ; then 16808 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast" 16809 found="yes" 16810 fi 16811 fi 16812 16813 if test $found = "no" ; then 16814 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16815 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16816 fi 16817 16818 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16819 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16820 fi 16821 16822 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 16823 16824 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5 16825printf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; } 16826 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION 16827 if eval test \${$cacheid+y} 16828then : 16829 printf %s "(cached) " >&6 16830else $as_nop 16831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16832/* end confdefs.h. */ 16833int i; 16834int 16835main (void) 16836{ 16837 16838 ; 16839 return 0; 16840} 16841_ACEOF 16842if ac_fn_c_try_link "$LINENO" 16843then : 16844 eval $cacheid=yes 16845else $as_nop 16846 eval $cacheid=no 16847fi 16848rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16849 conftest$ac_exeext conftest.$ac_ext 16850fi 16851 16852 16853 CFLAGS="$xorg_testset_save_CFLAGS" 16854 16855 eval supported=\$$cacheid 16856 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16857printf "%s\n" "$supported" >&6; } 16858 if test "$supported" = "yes" ; then 16859 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 16860 found="yes" 16861 fi 16862 fi 16863 16864 16865 16866 16867 16868 16869 16870 16871 16872 16873 16874 16875 16876 16877 16878xorg_testset_save_CFLAGS="$CFLAGS" 16879 16880if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16881 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16882 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16883printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16884if test ${xorg_cv_cc_flag_unknown_warning_option+y} 16885then : 16886 printf %s "(cached) " >&6 16887else $as_nop 16888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16889/* end confdefs.h. */ 16890int i; 16891_ACEOF 16892if ac_fn_c_try_compile "$LINENO" 16893then : 16894 xorg_cv_cc_flag_unknown_warning_option=yes 16895else $as_nop 16896 xorg_cv_cc_flag_unknown_warning_option=no 16897fi 16898rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16899fi 16900{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16901printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16902 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16903 CFLAGS="$xorg_testset_save_CFLAGS" 16904fi 16905 16906if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16907 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16908 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16909 fi 16910 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16911 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16912printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16913if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 16914then : 16915 printf %s "(cached) " >&6 16916else $as_nop 16917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16918/* end confdefs.h. */ 16919int i; 16920_ACEOF 16921if ac_fn_c_try_compile "$LINENO" 16922then : 16923 xorg_cv_cc_flag_unused_command_line_argument=yes 16924else $as_nop 16925 xorg_cv_cc_flag_unused_command_line_argument=no 16926fi 16927rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16928fi 16929{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16930printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16931 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16932 CFLAGS="$xorg_testset_save_CFLAGS" 16933fi 16934 16935found="no" 16936 16937 if test $found = "no" ; then 16938 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16939 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16940 fi 16941 16942 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16943 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16944 fi 16945 16946 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast" 16947 16948 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5 16949printf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; } 16950 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast 16951 if eval test \${$cacheid+y} 16952then : 16953 printf %s "(cached) " >&6 16954else $as_nop 16955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16956/* end confdefs.h. */ 16957int i; 16958int 16959main (void) 16960{ 16961 16962 ; 16963 return 0; 16964} 16965_ACEOF 16966if ac_fn_c_try_link "$LINENO" 16967then : 16968 eval $cacheid=yes 16969else $as_nop 16970 eval $cacheid=no 16971fi 16972rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16973 conftest$ac_exeext conftest.$ac_ext 16974fi 16975 16976 16977 CFLAGS="$xorg_testset_save_CFLAGS" 16978 16979 eval supported=\$$cacheid 16980 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16981printf "%s\n" "$supported" >&6; } 16982 if test "$supported" = "yes" ; then 16983 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast" 16984 found="yes" 16985 fi 16986 fi 16987 16988 # Also -errwarn=E_BAD_PTR_INT_COMBINATION 16989else 16990{ 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 16991printf "%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;} 16992 16993 16994 16995 16996 16997 16998 16999 17000 17001 17002 17003 17004 17005xorg_testset_save_CFLAGS="$CFLAGS" 17006 17007if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17008 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17009 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17010printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17011if test ${xorg_cv_cc_flag_unknown_warning_option+y} 17012then : 17013 printf %s "(cached) " >&6 17014else $as_nop 17015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17016/* end confdefs.h. */ 17017int i; 17018_ACEOF 17019if ac_fn_c_try_compile "$LINENO" 17020then : 17021 xorg_cv_cc_flag_unknown_warning_option=yes 17022else $as_nop 17023 xorg_cv_cc_flag_unknown_warning_option=no 17024fi 17025rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17026fi 17027{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17028printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17029 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17030 CFLAGS="$xorg_testset_save_CFLAGS" 17031fi 17032 17033if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17034 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17035 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17036 fi 17037 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17038 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17039printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17040if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 17041then : 17042 printf %s "(cached) " >&6 17043else $as_nop 17044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17045/* end confdefs.h. */ 17046int i; 17047_ACEOF 17048if ac_fn_c_try_compile "$LINENO" 17049then : 17050 xorg_cv_cc_flag_unused_command_line_argument=yes 17051else $as_nop 17052 xorg_cv_cc_flag_unused_command_line_argument=no 17053fi 17054rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17055fi 17056{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17057printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17058 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17059 CFLAGS="$xorg_testset_save_CFLAGS" 17060fi 17061 17062found="no" 17063 17064 if test $found = "no" ; then 17065 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17066 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17067 fi 17068 17069 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17070 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17071 fi 17072 17073 CFLAGS="$CFLAGS -Wimplicit" 17074 17075 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5 17076printf %s "checking if $CC supports -Wimplicit... " >&6; } 17077 cacheid=xorg_cv_cc_flag__Wimplicit 17078 if eval test \${$cacheid+y} 17079then : 17080 printf %s "(cached) " >&6 17081else $as_nop 17082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17083/* end confdefs.h. */ 17084int i; 17085int 17086main (void) 17087{ 17088 17089 ; 17090 return 0; 17091} 17092_ACEOF 17093if ac_fn_c_try_link "$LINENO" 17094then : 17095 eval $cacheid=yes 17096else $as_nop 17097 eval $cacheid=no 17098fi 17099rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17100 conftest$ac_exeext conftest.$ac_ext 17101fi 17102 17103 17104 CFLAGS="$xorg_testset_save_CFLAGS" 17105 17106 eval supported=\$$cacheid 17107 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17108printf "%s\n" "$supported" >&6; } 17109 if test "$supported" = "yes" ; then 17110 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit" 17111 found="yes" 17112 fi 17113 fi 17114 17115 17116 17117 17118 17119 17120 17121 17122 17123 17124 17125 17126 17127 17128 17129xorg_testset_save_CFLAGS="$CFLAGS" 17130 17131if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17132 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17133 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17134printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17135if test ${xorg_cv_cc_flag_unknown_warning_option+y} 17136then : 17137 printf %s "(cached) " >&6 17138else $as_nop 17139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17140/* end confdefs.h. */ 17141int i; 17142_ACEOF 17143if ac_fn_c_try_compile "$LINENO" 17144then : 17145 xorg_cv_cc_flag_unknown_warning_option=yes 17146else $as_nop 17147 xorg_cv_cc_flag_unknown_warning_option=no 17148fi 17149rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17150fi 17151{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17152printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17153 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17154 CFLAGS="$xorg_testset_save_CFLAGS" 17155fi 17156 17157if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17158 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17159 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17160 fi 17161 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17162 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17163printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17164if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 17165then : 17166 printf %s "(cached) " >&6 17167else $as_nop 17168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17169/* end confdefs.h. */ 17170int i; 17171_ACEOF 17172if ac_fn_c_try_compile "$LINENO" 17173then : 17174 xorg_cv_cc_flag_unused_command_line_argument=yes 17175else $as_nop 17176 xorg_cv_cc_flag_unused_command_line_argument=no 17177fi 17178rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17179fi 17180{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17181printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17182 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17183 CFLAGS="$xorg_testset_save_CFLAGS" 17184fi 17185 17186found="no" 17187 17188 if test $found = "no" ; then 17189 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17190 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17191 fi 17192 17193 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17194 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17195 fi 17196 17197 CFLAGS="$CFLAGS -Wnonnull" 17198 17199 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5 17200printf %s "checking if $CC supports -Wnonnull... " >&6; } 17201 cacheid=xorg_cv_cc_flag__Wnonnull 17202 if eval test \${$cacheid+y} 17203then : 17204 printf %s "(cached) " >&6 17205else $as_nop 17206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17207/* end confdefs.h. */ 17208int i; 17209int 17210main (void) 17211{ 17212 17213 ; 17214 return 0; 17215} 17216_ACEOF 17217if ac_fn_c_try_link "$LINENO" 17218then : 17219 eval $cacheid=yes 17220else $as_nop 17221 eval $cacheid=no 17222fi 17223rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17224 conftest$ac_exeext conftest.$ac_ext 17225fi 17226 17227 17228 CFLAGS="$xorg_testset_save_CFLAGS" 17229 17230 eval supported=\$$cacheid 17231 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17232printf "%s\n" "$supported" >&6; } 17233 if test "$supported" = "yes" ; then 17234 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull" 17235 found="yes" 17236 fi 17237 fi 17238 17239 17240 17241 17242 17243 17244 17245 17246 17247 17248 17249 17250 17251 17252 17253xorg_testset_save_CFLAGS="$CFLAGS" 17254 17255if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17256 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17257 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17258printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17259if test ${xorg_cv_cc_flag_unknown_warning_option+y} 17260then : 17261 printf %s "(cached) " >&6 17262else $as_nop 17263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17264/* end confdefs.h. */ 17265int i; 17266_ACEOF 17267if ac_fn_c_try_compile "$LINENO" 17268then : 17269 xorg_cv_cc_flag_unknown_warning_option=yes 17270else $as_nop 17271 xorg_cv_cc_flag_unknown_warning_option=no 17272fi 17273rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17274fi 17275{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17276printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17277 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17278 CFLAGS="$xorg_testset_save_CFLAGS" 17279fi 17280 17281if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17282 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17283 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17284 fi 17285 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17286 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17287printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17288if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 17289then : 17290 printf %s "(cached) " >&6 17291else $as_nop 17292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17293/* end confdefs.h. */ 17294int i; 17295_ACEOF 17296if ac_fn_c_try_compile "$LINENO" 17297then : 17298 xorg_cv_cc_flag_unused_command_line_argument=yes 17299else $as_nop 17300 xorg_cv_cc_flag_unused_command_line_argument=no 17301fi 17302rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17303fi 17304{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17305printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17306 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17307 CFLAGS="$xorg_testset_save_CFLAGS" 17308fi 17309 17310found="no" 17311 17312 if test $found = "no" ; then 17313 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17314 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17315 fi 17316 17317 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17318 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17319 fi 17320 17321 CFLAGS="$CFLAGS -Winit-self" 17322 17323 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5 17324printf %s "checking if $CC supports -Winit-self... " >&6; } 17325 cacheid=xorg_cv_cc_flag__Winit_self 17326 if eval test \${$cacheid+y} 17327then : 17328 printf %s "(cached) " >&6 17329else $as_nop 17330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17331/* end confdefs.h. */ 17332int i; 17333int 17334main (void) 17335{ 17336 17337 ; 17338 return 0; 17339} 17340_ACEOF 17341if ac_fn_c_try_link "$LINENO" 17342then : 17343 eval $cacheid=yes 17344else $as_nop 17345 eval $cacheid=no 17346fi 17347rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17348 conftest$ac_exeext conftest.$ac_ext 17349fi 17350 17351 17352 CFLAGS="$xorg_testset_save_CFLAGS" 17353 17354 eval supported=\$$cacheid 17355 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17356printf "%s\n" "$supported" >&6; } 17357 if test "$supported" = "yes" ; then 17358 BASE_CFLAGS="$BASE_CFLAGS -Winit-self" 17359 found="yes" 17360 fi 17361 fi 17362 17363 17364 17365 17366 17367 17368 17369 17370 17371 17372 17373 17374 17375 17376 17377xorg_testset_save_CFLAGS="$CFLAGS" 17378 17379if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17380 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17381 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17382printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17383if test ${xorg_cv_cc_flag_unknown_warning_option+y} 17384then : 17385 printf %s "(cached) " >&6 17386else $as_nop 17387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17388/* end confdefs.h. */ 17389int i; 17390_ACEOF 17391if ac_fn_c_try_compile "$LINENO" 17392then : 17393 xorg_cv_cc_flag_unknown_warning_option=yes 17394else $as_nop 17395 xorg_cv_cc_flag_unknown_warning_option=no 17396fi 17397rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17398fi 17399{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17400printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17401 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17402 CFLAGS="$xorg_testset_save_CFLAGS" 17403fi 17404 17405if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17406 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17407 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17408 fi 17409 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17410 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17411printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17412if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 17413then : 17414 printf %s "(cached) " >&6 17415else $as_nop 17416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17417/* end confdefs.h. */ 17418int i; 17419_ACEOF 17420if ac_fn_c_try_compile "$LINENO" 17421then : 17422 xorg_cv_cc_flag_unused_command_line_argument=yes 17423else $as_nop 17424 xorg_cv_cc_flag_unused_command_line_argument=no 17425fi 17426rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17427fi 17428{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17429printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17430 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17431 CFLAGS="$xorg_testset_save_CFLAGS" 17432fi 17433 17434found="no" 17435 17436 if test $found = "no" ; then 17437 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17438 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17439 fi 17440 17441 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17442 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17443 fi 17444 17445 CFLAGS="$CFLAGS -Wmain" 17446 17447 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5 17448printf %s "checking if $CC supports -Wmain... " >&6; } 17449 cacheid=xorg_cv_cc_flag__Wmain 17450 if eval test \${$cacheid+y} 17451then : 17452 printf %s "(cached) " >&6 17453else $as_nop 17454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17455/* end confdefs.h. */ 17456int i; 17457int 17458main (void) 17459{ 17460 17461 ; 17462 return 0; 17463} 17464_ACEOF 17465if ac_fn_c_try_link "$LINENO" 17466then : 17467 eval $cacheid=yes 17468else $as_nop 17469 eval $cacheid=no 17470fi 17471rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17472 conftest$ac_exeext conftest.$ac_ext 17473fi 17474 17475 17476 CFLAGS="$xorg_testset_save_CFLAGS" 17477 17478 eval supported=\$$cacheid 17479 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17480printf "%s\n" "$supported" >&6; } 17481 if test "$supported" = "yes" ; then 17482 BASE_CFLAGS="$BASE_CFLAGS -Wmain" 17483 found="yes" 17484 fi 17485 fi 17486 17487 17488 17489 17490 17491 17492 17493 17494 17495 17496 17497 17498 17499 17500 17501xorg_testset_save_CFLAGS="$CFLAGS" 17502 17503if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17504 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17505 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17506printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17507if test ${xorg_cv_cc_flag_unknown_warning_option+y} 17508then : 17509 printf %s "(cached) " >&6 17510else $as_nop 17511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17512/* end confdefs.h. */ 17513int i; 17514_ACEOF 17515if ac_fn_c_try_compile "$LINENO" 17516then : 17517 xorg_cv_cc_flag_unknown_warning_option=yes 17518else $as_nop 17519 xorg_cv_cc_flag_unknown_warning_option=no 17520fi 17521rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17522fi 17523{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17524printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17525 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17526 CFLAGS="$xorg_testset_save_CFLAGS" 17527fi 17528 17529if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17530 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17531 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17532 fi 17533 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17534 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17535printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17536if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 17537then : 17538 printf %s "(cached) " >&6 17539else $as_nop 17540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17541/* end confdefs.h. */ 17542int i; 17543_ACEOF 17544if ac_fn_c_try_compile "$LINENO" 17545then : 17546 xorg_cv_cc_flag_unused_command_line_argument=yes 17547else $as_nop 17548 xorg_cv_cc_flag_unused_command_line_argument=no 17549fi 17550rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17551fi 17552{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17553printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17554 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17555 CFLAGS="$xorg_testset_save_CFLAGS" 17556fi 17557 17558found="no" 17559 17560 if test $found = "no" ; then 17561 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17562 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17563 fi 17564 17565 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17566 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17567 fi 17568 17569 CFLAGS="$CFLAGS -Wmissing-braces" 17570 17571 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5 17572printf %s "checking if $CC supports -Wmissing-braces... " >&6; } 17573 cacheid=xorg_cv_cc_flag__Wmissing_braces 17574 if eval test \${$cacheid+y} 17575then : 17576 printf %s "(cached) " >&6 17577else $as_nop 17578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17579/* end confdefs.h. */ 17580int i; 17581int 17582main (void) 17583{ 17584 17585 ; 17586 return 0; 17587} 17588_ACEOF 17589if ac_fn_c_try_link "$LINENO" 17590then : 17591 eval $cacheid=yes 17592else $as_nop 17593 eval $cacheid=no 17594fi 17595rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17596 conftest$ac_exeext conftest.$ac_ext 17597fi 17598 17599 17600 CFLAGS="$xorg_testset_save_CFLAGS" 17601 17602 eval supported=\$$cacheid 17603 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17604printf "%s\n" "$supported" >&6; } 17605 if test "$supported" = "yes" ; then 17606 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces" 17607 found="yes" 17608 fi 17609 fi 17610 17611 17612 17613 17614 17615 17616 17617 17618 17619 17620 17621 17622 17623 17624 17625xorg_testset_save_CFLAGS="$CFLAGS" 17626 17627if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17628 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17629 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17630printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17631if test ${xorg_cv_cc_flag_unknown_warning_option+y} 17632then : 17633 printf %s "(cached) " >&6 17634else $as_nop 17635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17636/* end confdefs.h. */ 17637int i; 17638_ACEOF 17639if ac_fn_c_try_compile "$LINENO" 17640then : 17641 xorg_cv_cc_flag_unknown_warning_option=yes 17642else $as_nop 17643 xorg_cv_cc_flag_unknown_warning_option=no 17644fi 17645rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17646fi 17647{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17648printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17649 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17650 CFLAGS="$xorg_testset_save_CFLAGS" 17651fi 17652 17653if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17654 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17655 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17656 fi 17657 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17658 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17659printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17660if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 17661then : 17662 printf %s "(cached) " >&6 17663else $as_nop 17664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17665/* end confdefs.h. */ 17666int i; 17667_ACEOF 17668if ac_fn_c_try_compile "$LINENO" 17669then : 17670 xorg_cv_cc_flag_unused_command_line_argument=yes 17671else $as_nop 17672 xorg_cv_cc_flag_unused_command_line_argument=no 17673fi 17674rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17675fi 17676{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17677printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17678 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17679 CFLAGS="$xorg_testset_save_CFLAGS" 17680fi 17681 17682found="no" 17683 17684 if test $found = "no" ; then 17685 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17686 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17687 fi 17688 17689 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17690 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17691 fi 17692 17693 CFLAGS="$CFLAGS -Wsequence-point" 17694 17695 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5 17696printf %s "checking if $CC supports -Wsequence-point... " >&6; } 17697 cacheid=xorg_cv_cc_flag__Wsequence_point 17698 if eval test \${$cacheid+y} 17699then : 17700 printf %s "(cached) " >&6 17701else $as_nop 17702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17703/* end confdefs.h. */ 17704int i; 17705int 17706main (void) 17707{ 17708 17709 ; 17710 return 0; 17711} 17712_ACEOF 17713if ac_fn_c_try_link "$LINENO" 17714then : 17715 eval $cacheid=yes 17716else $as_nop 17717 eval $cacheid=no 17718fi 17719rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17720 conftest$ac_exeext conftest.$ac_ext 17721fi 17722 17723 17724 CFLAGS="$xorg_testset_save_CFLAGS" 17725 17726 eval supported=\$$cacheid 17727 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17728printf "%s\n" "$supported" >&6; } 17729 if test "$supported" = "yes" ; then 17730 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point" 17731 found="yes" 17732 fi 17733 fi 17734 17735 17736 17737 17738 17739 17740 17741 17742 17743 17744 17745 17746 17747 17748 17749xorg_testset_save_CFLAGS="$CFLAGS" 17750 17751if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17752 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17753 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17754printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17755if test ${xorg_cv_cc_flag_unknown_warning_option+y} 17756then : 17757 printf %s "(cached) " >&6 17758else $as_nop 17759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17760/* end confdefs.h. */ 17761int i; 17762_ACEOF 17763if ac_fn_c_try_compile "$LINENO" 17764then : 17765 xorg_cv_cc_flag_unknown_warning_option=yes 17766else $as_nop 17767 xorg_cv_cc_flag_unknown_warning_option=no 17768fi 17769rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17770fi 17771{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17772printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17773 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17774 CFLAGS="$xorg_testset_save_CFLAGS" 17775fi 17776 17777if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17778 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17779 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17780 fi 17781 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17782 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17783printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17784if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 17785then : 17786 printf %s "(cached) " >&6 17787else $as_nop 17788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17789/* end confdefs.h. */ 17790int i; 17791_ACEOF 17792if ac_fn_c_try_compile "$LINENO" 17793then : 17794 xorg_cv_cc_flag_unused_command_line_argument=yes 17795else $as_nop 17796 xorg_cv_cc_flag_unused_command_line_argument=no 17797fi 17798rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17799fi 17800{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17801printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17802 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17803 CFLAGS="$xorg_testset_save_CFLAGS" 17804fi 17805 17806found="no" 17807 17808 if test $found = "no" ; then 17809 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17810 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17811 fi 17812 17813 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17814 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17815 fi 17816 17817 CFLAGS="$CFLAGS -Wreturn-type" 17818 17819 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5 17820printf %s "checking if $CC supports -Wreturn-type... " >&6; } 17821 cacheid=xorg_cv_cc_flag__Wreturn_type 17822 if eval test \${$cacheid+y} 17823then : 17824 printf %s "(cached) " >&6 17825else $as_nop 17826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17827/* end confdefs.h. */ 17828int i; 17829int 17830main (void) 17831{ 17832 17833 ; 17834 return 0; 17835} 17836_ACEOF 17837if ac_fn_c_try_link "$LINENO" 17838then : 17839 eval $cacheid=yes 17840else $as_nop 17841 eval $cacheid=no 17842fi 17843rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17844 conftest$ac_exeext conftest.$ac_ext 17845fi 17846 17847 17848 CFLAGS="$xorg_testset_save_CFLAGS" 17849 17850 eval supported=\$$cacheid 17851 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17852printf "%s\n" "$supported" >&6; } 17853 if test "$supported" = "yes" ; then 17854 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type" 17855 found="yes" 17856 fi 17857 fi 17858 17859 17860 17861 17862 17863 17864 17865 17866 17867 17868 17869 17870 17871 17872 17873xorg_testset_save_CFLAGS="$CFLAGS" 17874 17875if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17876 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17877 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17878printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17879if test ${xorg_cv_cc_flag_unknown_warning_option+y} 17880then : 17881 printf %s "(cached) " >&6 17882else $as_nop 17883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17884/* end confdefs.h. */ 17885int i; 17886_ACEOF 17887if ac_fn_c_try_compile "$LINENO" 17888then : 17889 xorg_cv_cc_flag_unknown_warning_option=yes 17890else $as_nop 17891 xorg_cv_cc_flag_unknown_warning_option=no 17892fi 17893rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17894fi 17895{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17896printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17897 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17898 CFLAGS="$xorg_testset_save_CFLAGS" 17899fi 17900 17901if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17902 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17903 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17904 fi 17905 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17906 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17907printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17908if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 17909then : 17910 printf %s "(cached) " >&6 17911else $as_nop 17912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17913/* end confdefs.h. */ 17914int i; 17915_ACEOF 17916if ac_fn_c_try_compile "$LINENO" 17917then : 17918 xorg_cv_cc_flag_unused_command_line_argument=yes 17919else $as_nop 17920 xorg_cv_cc_flag_unused_command_line_argument=no 17921fi 17922rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17923fi 17924{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17925printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17926 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17927 CFLAGS="$xorg_testset_save_CFLAGS" 17928fi 17929 17930found="no" 17931 17932 if test $found = "no" ; then 17933 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17934 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17935 fi 17936 17937 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17938 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17939 fi 17940 17941 CFLAGS="$CFLAGS -Wtrigraphs" 17942 17943 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5 17944printf %s "checking if $CC supports -Wtrigraphs... " >&6; } 17945 cacheid=xorg_cv_cc_flag__Wtrigraphs 17946 if eval test \${$cacheid+y} 17947then : 17948 printf %s "(cached) " >&6 17949else $as_nop 17950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17951/* end confdefs.h. */ 17952int i; 17953int 17954main (void) 17955{ 17956 17957 ; 17958 return 0; 17959} 17960_ACEOF 17961if ac_fn_c_try_link "$LINENO" 17962then : 17963 eval $cacheid=yes 17964else $as_nop 17965 eval $cacheid=no 17966fi 17967rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17968 conftest$ac_exeext conftest.$ac_ext 17969fi 17970 17971 17972 CFLAGS="$xorg_testset_save_CFLAGS" 17973 17974 eval supported=\$$cacheid 17975 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17976printf "%s\n" "$supported" >&6; } 17977 if test "$supported" = "yes" ; then 17978 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs" 17979 found="yes" 17980 fi 17981 fi 17982 17983 17984 17985 17986 17987 17988 17989 17990 17991 17992 17993 17994 17995 17996 17997xorg_testset_save_CFLAGS="$CFLAGS" 17998 17999if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18000 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18001 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18002printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18003if test ${xorg_cv_cc_flag_unknown_warning_option+y} 18004then : 18005 printf %s "(cached) " >&6 18006else $as_nop 18007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18008/* end confdefs.h. */ 18009int i; 18010_ACEOF 18011if ac_fn_c_try_compile "$LINENO" 18012then : 18013 xorg_cv_cc_flag_unknown_warning_option=yes 18014else $as_nop 18015 xorg_cv_cc_flag_unknown_warning_option=no 18016fi 18017rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18018fi 18019{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18020printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18021 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18022 CFLAGS="$xorg_testset_save_CFLAGS" 18023fi 18024 18025if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18026 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18027 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18028 fi 18029 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18030 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18031printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18032if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 18033then : 18034 printf %s "(cached) " >&6 18035else $as_nop 18036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18037/* end confdefs.h. */ 18038int i; 18039_ACEOF 18040if ac_fn_c_try_compile "$LINENO" 18041then : 18042 xorg_cv_cc_flag_unused_command_line_argument=yes 18043else $as_nop 18044 xorg_cv_cc_flag_unused_command_line_argument=no 18045fi 18046rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18047fi 18048{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18049printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18050 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18051 CFLAGS="$xorg_testset_save_CFLAGS" 18052fi 18053 18054found="no" 18055 18056 if test $found = "no" ; then 18057 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18058 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18059 fi 18060 18061 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18062 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18063 fi 18064 18065 CFLAGS="$CFLAGS -Warray-bounds" 18066 18067 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5 18068printf %s "checking if $CC supports -Warray-bounds... " >&6; } 18069 cacheid=xorg_cv_cc_flag__Warray_bounds 18070 if eval test \${$cacheid+y} 18071then : 18072 printf %s "(cached) " >&6 18073else $as_nop 18074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18075/* end confdefs.h. */ 18076int i; 18077int 18078main (void) 18079{ 18080 18081 ; 18082 return 0; 18083} 18084_ACEOF 18085if ac_fn_c_try_link "$LINENO" 18086then : 18087 eval $cacheid=yes 18088else $as_nop 18089 eval $cacheid=no 18090fi 18091rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18092 conftest$ac_exeext conftest.$ac_ext 18093fi 18094 18095 18096 CFLAGS="$xorg_testset_save_CFLAGS" 18097 18098 eval supported=\$$cacheid 18099 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18100printf "%s\n" "$supported" >&6; } 18101 if test "$supported" = "yes" ; then 18102 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds" 18103 found="yes" 18104 fi 18105 fi 18106 18107 18108 18109 18110 18111 18112 18113 18114 18115 18116 18117 18118 18119 18120 18121xorg_testset_save_CFLAGS="$CFLAGS" 18122 18123if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18124 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18125 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18126printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18127if test ${xorg_cv_cc_flag_unknown_warning_option+y} 18128then : 18129 printf %s "(cached) " >&6 18130else $as_nop 18131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18132/* end confdefs.h. */ 18133int i; 18134_ACEOF 18135if ac_fn_c_try_compile "$LINENO" 18136then : 18137 xorg_cv_cc_flag_unknown_warning_option=yes 18138else $as_nop 18139 xorg_cv_cc_flag_unknown_warning_option=no 18140fi 18141rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18142fi 18143{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18144printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18145 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18146 CFLAGS="$xorg_testset_save_CFLAGS" 18147fi 18148 18149if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18150 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18151 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18152 fi 18153 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18154 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18155printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18156if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 18157then : 18158 printf %s "(cached) " >&6 18159else $as_nop 18160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18161/* end confdefs.h. */ 18162int i; 18163_ACEOF 18164if ac_fn_c_try_compile "$LINENO" 18165then : 18166 xorg_cv_cc_flag_unused_command_line_argument=yes 18167else $as_nop 18168 xorg_cv_cc_flag_unused_command_line_argument=no 18169fi 18170rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18171fi 18172{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18173printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18174 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18175 CFLAGS="$xorg_testset_save_CFLAGS" 18176fi 18177 18178found="no" 18179 18180 if test $found = "no" ; then 18181 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18182 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18183 fi 18184 18185 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18186 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18187 fi 18188 18189 CFLAGS="$CFLAGS -Wwrite-strings" 18190 18191 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5 18192printf %s "checking if $CC supports -Wwrite-strings... " >&6; } 18193 cacheid=xorg_cv_cc_flag__Wwrite_strings 18194 if eval test \${$cacheid+y} 18195then : 18196 printf %s "(cached) " >&6 18197else $as_nop 18198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18199/* end confdefs.h. */ 18200int i; 18201int 18202main (void) 18203{ 18204 18205 ; 18206 return 0; 18207} 18208_ACEOF 18209if ac_fn_c_try_link "$LINENO" 18210then : 18211 eval $cacheid=yes 18212else $as_nop 18213 eval $cacheid=no 18214fi 18215rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18216 conftest$ac_exeext conftest.$ac_ext 18217fi 18218 18219 18220 CFLAGS="$xorg_testset_save_CFLAGS" 18221 18222 eval supported=\$$cacheid 18223 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18224printf "%s\n" "$supported" >&6; } 18225 if test "$supported" = "yes" ; then 18226 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings" 18227 found="yes" 18228 fi 18229 fi 18230 18231 18232 18233 18234 18235 18236 18237 18238 18239 18240 18241 18242 18243 18244 18245xorg_testset_save_CFLAGS="$CFLAGS" 18246 18247if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18248 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18249 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18250printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18251if test ${xorg_cv_cc_flag_unknown_warning_option+y} 18252then : 18253 printf %s "(cached) " >&6 18254else $as_nop 18255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18256/* end confdefs.h. */ 18257int i; 18258_ACEOF 18259if ac_fn_c_try_compile "$LINENO" 18260then : 18261 xorg_cv_cc_flag_unknown_warning_option=yes 18262else $as_nop 18263 xorg_cv_cc_flag_unknown_warning_option=no 18264fi 18265rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18266fi 18267{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18268printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18269 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18270 CFLAGS="$xorg_testset_save_CFLAGS" 18271fi 18272 18273if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18274 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18275 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18276 fi 18277 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18278 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18279printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18280if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 18281then : 18282 printf %s "(cached) " >&6 18283else $as_nop 18284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18285/* end confdefs.h. */ 18286int i; 18287_ACEOF 18288if ac_fn_c_try_compile "$LINENO" 18289then : 18290 xorg_cv_cc_flag_unused_command_line_argument=yes 18291else $as_nop 18292 xorg_cv_cc_flag_unused_command_line_argument=no 18293fi 18294rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18295fi 18296{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18297printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18298 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18299 CFLAGS="$xorg_testset_save_CFLAGS" 18300fi 18301 18302found="no" 18303 18304 if test $found = "no" ; then 18305 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18306 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18307 fi 18308 18309 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18310 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18311 fi 18312 18313 CFLAGS="$CFLAGS -Waddress" 18314 18315 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5 18316printf %s "checking if $CC supports -Waddress... " >&6; } 18317 cacheid=xorg_cv_cc_flag__Waddress 18318 if eval test \${$cacheid+y} 18319then : 18320 printf %s "(cached) " >&6 18321else $as_nop 18322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18323/* end confdefs.h. */ 18324int i; 18325int 18326main (void) 18327{ 18328 18329 ; 18330 return 0; 18331} 18332_ACEOF 18333if ac_fn_c_try_link "$LINENO" 18334then : 18335 eval $cacheid=yes 18336else $as_nop 18337 eval $cacheid=no 18338fi 18339rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18340 conftest$ac_exeext conftest.$ac_ext 18341fi 18342 18343 18344 CFLAGS="$xorg_testset_save_CFLAGS" 18345 18346 eval supported=\$$cacheid 18347 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18348printf "%s\n" "$supported" >&6; } 18349 if test "$supported" = "yes" ; then 18350 BASE_CFLAGS="$BASE_CFLAGS -Waddress" 18351 found="yes" 18352 fi 18353 fi 18354 18355 18356 18357 18358 18359 18360 18361 18362 18363 18364 18365 18366 18367 18368 18369xorg_testset_save_CFLAGS="$CFLAGS" 18370 18371if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18372 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18373 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18374printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18375if test ${xorg_cv_cc_flag_unknown_warning_option+y} 18376then : 18377 printf %s "(cached) " >&6 18378else $as_nop 18379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18380/* end confdefs.h. */ 18381int i; 18382_ACEOF 18383if ac_fn_c_try_compile "$LINENO" 18384then : 18385 xorg_cv_cc_flag_unknown_warning_option=yes 18386else $as_nop 18387 xorg_cv_cc_flag_unknown_warning_option=no 18388fi 18389rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18390fi 18391{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18392printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18393 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18394 CFLAGS="$xorg_testset_save_CFLAGS" 18395fi 18396 18397if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18398 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18399 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18400 fi 18401 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18402 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18403printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18404if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 18405then : 18406 printf %s "(cached) " >&6 18407else $as_nop 18408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18409/* end confdefs.h. */ 18410int i; 18411_ACEOF 18412if ac_fn_c_try_compile "$LINENO" 18413then : 18414 xorg_cv_cc_flag_unused_command_line_argument=yes 18415else $as_nop 18416 xorg_cv_cc_flag_unused_command_line_argument=no 18417fi 18418rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18419fi 18420{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18421printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18422 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18423 CFLAGS="$xorg_testset_save_CFLAGS" 18424fi 18425 18426found="no" 18427 18428 if test $found = "no" ; then 18429 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18430 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18431 fi 18432 18433 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18434 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18435 fi 18436 18437 CFLAGS="$CFLAGS -Wint-to-pointer-cast" 18438 18439 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5 18440printf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; } 18441 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast 18442 if eval test \${$cacheid+y} 18443then : 18444 printf %s "(cached) " >&6 18445else $as_nop 18446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18447/* end confdefs.h. */ 18448int i; 18449int 18450main (void) 18451{ 18452 18453 ; 18454 return 0; 18455} 18456_ACEOF 18457if ac_fn_c_try_link "$LINENO" 18458then : 18459 eval $cacheid=yes 18460else $as_nop 18461 eval $cacheid=no 18462fi 18463rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18464 conftest$ac_exeext conftest.$ac_ext 18465fi 18466 18467 18468 CFLAGS="$xorg_testset_save_CFLAGS" 18469 18470 eval supported=\$$cacheid 18471 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18472printf "%s\n" "$supported" >&6; } 18473 if test "$supported" = "yes" ; then 18474 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast" 18475 found="yes" 18476 fi 18477 fi 18478 18479 18480 18481 18482 18483 18484 18485 18486 18487 18488 18489 18490 18491 18492 18493xorg_testset_save_CFLAGS="$CFLAGS" 18494 18495if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18496 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18497 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18498printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18499if test ${xorg_cv_cc_flag_unknown_warning_option+y} 18500then : 18501 printf %s "(cached) " >&6 18502else $as_nop 18503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18504/* end confdefs.h. */ 18505int i; 18506_ACEOF 18507if ac_fn_c_try_compile "$LINENO" 18508then : 18509 xorg_cv_cc_flag_unknown_warning_option=yes 18510else $as_nop 18511 xorg_cv_cc_flag_unknown_warning_option=no 18512fi 18513rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18514fi 18515{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18516printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18517 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18518 CFLAGS="$xorg_testset_save_CFLAGS" 18519fi 18520 18521if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18522 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18523 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18524 fi 18525 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18526 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18527printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18528if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 18529then : 18530 printf %s "(cached) " >&6 18531else $as_nop 18532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18533/* end confdefs.h. */ 18534int i; 18535_ACEOF 18536if ac_fn_c_try_compile "$LINENO" 18537then : 18538 xorg_cv_cc_flag_unused_command_line_argument=yes 18539else $as_nop 18540 xorg_cv_cc_flag_unused_command_line_argument=no 18541fi 18542rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18543fi 18544{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18545printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18546 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18547 CFLAGS="$xorg_testset_save_CFLAGS" 18548fi 18549 18550found="no" 18551 18552 if test $found = "no" ; then 18553 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18554 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18555 fi 18556 18557 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18558 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18559 fi 18560 18561 CFLAGS="$CFLAGS -Wpointer-to-int-cast" 18562 18563 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5 18564printf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; } 18565 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast 18566 if eval test \${$cacheid+y} 18567then : 18568 printf %s "(cached) " >&6 18569else $as_nop 18570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18571/* end confdefs.h. */ 18572int i; 18573int 18574main (void) 18575{ 18576 18577 ; 18578 return 0; 18579} 18580_ACEOF 18581if ac_fn_c_try_link "$LINENO" 18582then : 18583 eval $cacheid=yes 18584else $as_nop 18585 eval $cacheid=no 18586fi 18587rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18588 conftest$ac_exeext conftest.$ac_ext 18589fi 18590 18591 18592 CFLAGS="$xorg_testset_save_CFLAGS" 18593 18594 eval supported=\$$cacheid 18595 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18596printf "%s\n" "$supported" >&6; } 18597 if test "$supported" = "yes" ; then 18598 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast" 18599 found="yes" 18600 fi 18601 fi 18602 18603 18604fi 18605 18606 18607 18608 18609 18610 18611 18612 CWARNFLAGS="$BASE_CFLAGS" 18613 if test "x$GCC" = xyes ; then 18614 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing" 18615 fi 18616 18617 18618 18619 18620 18621 18622 18623 18624# Check whether --enable-strict-compilation was given. 18625if test ${enable_strict_compilation+y} 18626then : 18627 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 18628else $as_nop 18629 STRICT_COMPILE=no 18630fi 18631 18632 18633 18634 18635 18636 18637STRICT_CFLAGS="" 18638 18639 18640 18641 18642 18643 18644 18645 18646 18647 18648 18649 18650 18651xorg_testset_save_CFLAGS="$CFLAGS" 18652 18653if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18654 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18655 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18656printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18657if test ${xorg_cv_cc_flag_unknown_warning_option+y} 18658then : 18659 printf %s "(cached) " >&6 18660else $as_nop 18661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18662/* end confdefs.h. */ 18663int i; 18664_ACEOF 18665if ac_fn_c_try_compile "$LINENO" 18666then : 18667 xorg_cv_cc_flag_unknown_warning_option=yes 18668else $as_nop 18669 xorg_cv_cc_flag_unknown_warning_option=no 18670fi 18671rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18672fi 18673{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18674printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18675 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18676 CFLAGS="$xorg_testset_save_CFLAGS" 18677fi 18678 18679if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18680 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18681 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18682 fi 18683 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18684 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18685printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18686if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 18687then : 18688 printf %s "(cached) " >&6 18689else $as_nop 18690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18691/* end confdefs.h. */ 18692int i; 18693_ACEOF 18694if ac_fn_c_try_compile "$LINENO" 18695then : 18696 xorg_cv_cc_flag_unused_command_line_argument=yes 18697else $as_nop 18698 xorg_cv_cc_flag_unused_command_line_argument=no 18699fi 18700rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18701fi 18702{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18703printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18704 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18705 CFLAGS="$xorg_testset_save_CFLAGS" 18706fi 18707 18708found="no" 18709 18710 if test $found = "no" ; then 18711 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18712 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18713 fi 18714 18715 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18716 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18717 fi 18718 18719 CFLAGS="$CFLAGS -pedantic" 18720 18721 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5 18722printf %s "checking if $CC supports -pedantic... " >&6; } 18723 cacheid=xorg_cv_cc_flag__pedantic 18724 if eval test \${$cacheid+y} 18725then : 18726 printf %s "(cached) " >&6 18727else $as_nop 18728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18729/* end confdefs.h. */ 18730int i; 18731int 18732main (void) 18733{ 18734 18735 ; 18736 return 0; 18737} 18738_ACEOF 18739if ac_fn_c_try_link "$LINENO" 18740then : 18741 eval $cacheid=yes 18742else $as_nop 18743 eval $cacheid=no 18744fi 18745rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18746 conftest$ac_exeext conftest.$ac_ext 18747fi 18748 18749 18750 CFLAGS="$xorg_testset_save_CFLAGS" 18751 18752 eval supported=\$$cacheid 18753 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18754printf "%s\n" "$supported" >&6; } 18755 if test "$supported" = "yes" ; then 18756 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic" 18757 found="yes" 18758 fi 18759 fi 18760 18761 18762 18763 18764 18765 18766 18767 18768 18769 18770 18771 18772 18773 18774 18775xorg_testset_save_CFLAGS="$CFLAGS" 18776 18777if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18778 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18779 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18780printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18781if test ${xorg_cv_cc_flag_unknown_warning_option+y} 18782then : 18783 printf %s "(cached) " >&6 18784else $as_nop 18785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18786/* end confdefs.h. */ 18787int i; 18788_ACEOF 18789if ac_fn_c_try_compile "$LINENO" 18790then : 18791 xorg_cv_cc_flag_unknown_warning_option=yes 18792else $as_nop 18793 xorg_cv_cc_flag_unknown_warning_option=no 18794fi 18795rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18796fi 18797{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18798printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18799 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18800 CFLAGS="$xorg_testset_save_CFLAGS" 18801fi 18802 18803if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18804 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18805 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18806 fi 18807 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18808 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18809printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18810if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 18811then : 18812 printf %s "(cached) " >&6 18813else $as_nop 18814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18815/* end confdefs.h. */ 18816int i; 18817_ACEOF 18818if ac_fn_c_try_compile "$LINENO" 18819then : 18820 xorg_cv_cc_flag_unused_command_line_argument=yes 18821else $as_nop 18822 xorg_cv_cc_flag_unused_command_line_argument=no 18823fi 18824rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18825fi 18826{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18827printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18828 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18829 CFLAGS="$xorg_testset_save_CFLAGS" 18830fi 18831 18832found="no" 18833 18834 if test $found = "no" ; then 18835 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18836 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18837 fi 18838 18839 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18840 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18841 fi 18842 18843 CFLAGS="$CFLAGS -Werror" 18844 18845 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5 18846printf %s "checking if $CC supports -Werror... " >&6; } 18847 cacheid=xorg_cv_cc_flag__Werror 18848 if eval test \${$cacheid+y} 18849then : 18850 printf %s "(cached) " >&6 18851else $as_nop 18852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18853/* end confdefs.h. */ 18854int i; 18855int 18856main (void) 18857{ 18858 18859 ; 18860 return 0; 18861} 18862_ACEOF 18863if ac_fn_c_try_link "$LINENO" 18864then : 18865 eval $cacheid=yes 18866else $as_nop 18867 eval $cacheid=no 18868fi 18869rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18870 conftest$ac_exeext conftest.$ac_ext 18871fi 18872 18873 18874 CFLAGS="$xorg_testset_save_CFLAGS" 18875 18876 eval supported=\$$cacheid 18877 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18878printf "%s\n" "$supported" >&6; } 18879 if test "$supported" = "yes" ; then 18880 STRICT_CFLAGS="$STRICT_CFLAGS -Werror" 18881 found="yes" 18882 fi 18883 fi 18884 18885 if test $found = "no" ; then 18886 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18887 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18888 fi 18889 18890 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18891 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18892 fi 18893 18894 CFLAGS="$CFLAGS -errwarn" 18895 18896 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5 18897printf %s "checking if $CC supports -errwarn... " >&6; } 18898 cacheid=xorg_cv_cc_flag__errwarn 18899 if eval test \${$cacheid+y} 18900then : 18901 printf %s "(cached) " >&6 18902else $as_nop 18903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18904/* end confdefs.h. */ 18905int i; 18906int 18907main (void) 18908{ 18909 18910 ; 18911 return 0; 18912} 18913_ACEOF 18914if ac_fn_c_try_link "$LINENO" 18915then : 18916 eval $cacheid=yes 18917else $as_nop 18918 eval $cacheid=no 18919fi 18920rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18921 conftest$ac_exeext conftest.$ac_ext 18922fi 18923 18924 18925 CFLAGS="$xorg_testset_save_CFLAGS" 18926 18927 eval supported=\$$cacheid 18928 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18929printf "%s\n" "$supported" >&6; } 18930 if test "$supported" = "yes" ; then 18931 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn" 18932 found="yes" 18933 fi 18934 fi 18935 18936 18937 18938# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not 18939# activate it with -Werror, so we add it here explicitly. 18940 18941 18942 18943 18944 18945 18946 18947 18948 18949 18950 18951 18952 18953xorg_testset_save_CFLAGS="$CFLAGS" 18954 18955if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18956 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18957 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18958printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18959if test ${xorg_cv_cc_flag_unknown_warning_option+y} 18960then : 18961 printf %s "(cached) " >&6 18962else $as_nop 18963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18964/* end confdefs.h. */ 18965int i; 18966_ACEOF 18967if ac_fn_c_try_compile "$LINENO" 18968then : 18969 xorg_cv_cc_flag_unknown_warning_option=yes 18970else $as_nop 18971 xorg_cv_cc_flag_unknown_warning_option=no 18972fi 18973rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18974fi 18975{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18976printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18977 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18978 CFLAGS="$xorg_testset_save_CFLAGS" 18979fi 18980 18981if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18982 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18983 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18984 fi 18985 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18986 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18987printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18988if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 18989then : 18990 printf %s "(cached) " >&6 18991else $as_nop 18992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18993/* end confdefs.h. */ 18994int i; 18995_ACEOF 18996if ac_fn_c_try_compile "$LINENO" 18997then : 18998 xorg_cv_cc_flag_unused_command_line_argument=yes 18999else $as_nop 19000 xorg_cv_cc_flag_unused_command_line_argument=no 19001fi 19002rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 19003fi 19004{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 19005printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 19006 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 19007 CFLAGS="$xorg_testset_save_CFLAGS" 19008fi 19009 19010found="no" 19011 19012 if test $found = "no" ; then 19013 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19014 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19015 fi 19016 19017 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 19018 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19019 fi 19020 19021 CFLAGS="$CFLAGS -Werror=attributes" 19022 19023 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5 19024printf %s "checking if $CC supports -Werror=attributes... " >&6; } 19025 cacheid=xorg_cv_cc_flag__Werror_attributes 19026 if eval test \${$cacheid+y} 19027then : 19028 printf %s "(cached) " >&6 19029else $as_nop 19030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19031/* end confdefs.h. */ 19032int i; 19033int 19034main (void) 19035{ 19036 19037 ; 19038 return 0; 19039} 19040_ACEOF 19041if ac_fn_c_try_link "$LINENO" 19042then : 19043 eval $cacheid=yes 19044else $as_nop 19045 eval $cacheid=no 19046fi 19047rm -f core conftest.err conftest.$ac_objext conftest.beam \ 19048 conftest$ac_exeext conftest.$ac_ext 19049fi 19050 19051 19052 CFLAGS="$xorg_testset_save_CFLAGS" 19053 19054 eval supported=\$$cacheid 19055 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 19056printf "%s\n" "$supported" >&6; } 19057 if test "$supported" = "yes" ; then 19058 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes" 19059 found="yes" 19060 fi 19061 fi 19062 19063 19064 19065if test "x$STRICT_COMPILE" = "xyes"; then 19066 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS" 19067 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 19068fi 19069 19070 19071 19072 19073 19074 19075cat >>confdefs.h <<_ACEOF 19076#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 19077_ACEOF 19078 19079 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 19080 if test "x$PVM" = "x"; then 19081 PVM="0" 19082 fi 19083 19084printf "%s\n" "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h 19085 19086 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 19087 if test "x$PVP" = "x"; then 19088 PVP="0" 19089 fi 19090 19091printf "%s\n" "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h 19092 19093 19094 19095CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \ 19096mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 19097|| (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \ 19098touch \$(top_srcdir)/ChangeLog; \ 19099echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))" 19100 19101 19102 19103 19104macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros` 19105INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \ 19106mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \ 19107|| (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \ 19108touch \$(top_srcdir)/INSTALL; \ 19109echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))" 19110 19111 19112 19113 19114 19115 19116case $host_os in 19117 solaris*) 19118 # Solaris 2.0 - 11.3 use SysV man page section numbers, so we 19119 # check for a man page file found in later versions that use 19120 # traditional section numbers instead 19121 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5 19122printf %s "checking for /usr/share/man/man7/attributes.7... " >&6; } 19123if test ${ac_cv_file__usr_share_man_man7_attributes_7+y} 19124then : 19125 printf %s "(cached) " >&6 19126else $as_nop 19127 test "$cross_compiling" = yes && 19128 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 19129if test -r "/usr/share/man/man7/attributes.7"; then 19130 ac_cv_file__usr_share_man_man7_attributes_7=yes 19131else 19132 ac_cv_file__usr_share_man_man7_attributes_7=no 19133fi 19134fi 19135{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5 19136printf "%s\n" "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; } 19137if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes 19138then : 19139 SYSV_MAN_SECTIONS=false 19140else $as_nop 19141 SYSV_MAN_SECTIONS=true 19142fi 19143 19144 ;; 19145 *) SYSV_MAN_SECTIONS=false ;; 19146esac 19147 19148if test x$APP_MAN_SUFFIX = x ; then 19149 APP_MAN_SUFFIX=1 19150fi 19151if test x$APP_MAN_DIR = x ; then 19152 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 19153fi 19154 19155if test x$LIB_MAN_SUFFIX = x ; then 19156 LIB_MAN_SUFFIX=3 19157fi 19158if test x$LIB_MAN_DIR = x ; then 19159 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 19160fi 19161 19162if test x$FILE_MAN_SUFFIX = x ; then 19163 case $SYSV_MAN_SECTIONS in 19164 true) FILE_MAN_SUFFIX=4 ;; 19165 *) FILE_MAN_SUFFIX=5 ;; 19166 esac 19167fi 19168if test x$FILE_MAN_DIR = x ; then 19169 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 19170fi 19171 19172if test x$MISC_MAN_SUFFIX = x ; then 19173 case $SYSV_MAN_SECTIONS in 19174 true) MISC_MAN_SUFFIX=5 ;; 19175 *) MISC_MAN_SUFFIX=7 ;; 19176 esac 19177fi 19178if test x$MISC_MAN_DIR = x ; then 19179 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 19180fi 19181 19182if test x$DRIVER_MAN_SUFFIX = x ; then 19183 case $SYSV_MAN_SECTIONS in 19184 true) DRIVER_MAN_SUFFIX=7 ;; 19185 *) DRIVER_MAN_SUFFIX=4 ;; 19186 esac 19187fi 19188if test x$DRIVER_MAN_DIR = x ; then 19189 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 19190fi 19191 19192if test x$ADMIN_MAN_SUFFIX = x ; then 19193 case $SYSV_MAN_SECTIONS in 19194 true) ADMIN_MAN_SUFFIX=1m ;; 19195 *) ADMIN_MAN_SUFFIX=8 ;; 19196 esac 19197fi 19198if test x$ADMIN_MAN_DIR = x ; then 19199 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 19200fi 19201 19202 19203 19204 19205 19206 19207 19208 19209 19210 19211 19212 19213 19214 19215 19216XORG_MAN_PAGE="X Version 11" 19217 19218MAN_SUBSTS="\ 19219 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 19220 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 19221 -e 's|__xservername__|Xorg|g' \ 19222 -e 's|__xconfigfile__|xorg.conf|g' \ 19223 -e 's|__projectroot__|\$(prefix)|g' \ 19224 -e 's|__apploaddir__|\$(appdefaultdir)|g' \ 19225 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \ 19226 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \ 19227 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \ 19228 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \ 19229 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \ 19230 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'" 19231 19232 19233 19234# Check whether --enable-silent-rules was given. 19235if test ${enable_silent_rules+y} 19236then : 19237 enableval=$enable_silent_rules; 19238fi 19239 19240case $enable_silent_rules in # ((( 19241 yes) AM_DEFAULT_VERBOSITY=0;; 19242 no) AM_DEFAULT_VERBOSITY=1;; 19243 *) AM_DEFAULT_VERBOSITY=0;; 19244esac 19245am_make=${MAKE-make} 19246{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 19247printf %s "checking whether $am_make supports nested variables... " >&6; } 19248if test ${am_cv_make_support_nested_variables+y} 19249then : 19250 printf %s "(cached) " >&6 19251else $as_nop 19252 if printf "%s\n" 'TRUE=$(BAR$(V)) 19253BAR0=false 19254BAR1=true 19255V=1 19256am__doit: 19257 @$(TRUE) 19258.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 19259 am_cv_make_support_nested_variables=yes 19260else 19261 am_cv_make_support_nested_variables=no 19262fi 19263fi 19264{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 19265printf "%s\n" "$am_cv_make_support_nested_variables" >&6; } 19266if test $am_cv_make_support_nested_variables = yes; then 19267 AM_V='$(V)' 19268 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 19269else 19270 AM_V=$AM_DEFAULT_VERBOSITY 19271 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 19272fi 19273AM_BACKSLASH='\' 19274 19275 19276 19277 19278 19279 19280# Check whether --with-xmlto was given. 19281if test ${with_xmlto+y} 19282then : 19283 withval=$with_xmlto; use_xmlto=$withval 19284else $as_nop 19285 use_xmlto=auto 19286fi 19287 19288 19289 19290if test "x$use_xmlto" = x"auto"; then 19291 # Extract the first word of "xmlto", so it can be a program name with args. 19292set dummy xmlto; ac_word=$2 19293{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19294printf %s "checking for $ac_word... " >&6; } 19295if test ${ac_cv_path_XMLTO+y} 19296then : 19297 printf %s "(cached) " >&6 19298else $as_nop 19299 case $XMLTO in 19300 [\\/]* | ?:[\\/]*) 19301 ac_cv_path_XMLTO="$XMLTO" # Let the user override the test with a path. 19302 ;; 19303 *) 19304 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19305for as_dir in $PATH 19306do 19307 IFS=$as_save_IFS 19308 case $as_dir in #((( 19309 '') as_dir=./ ;; 19310 */) ;; 19311 *) as_dir=$as_dir/ ;; 19312 esac 19313 for ac_exec_ext in '' $ac_executable_extensions; do 19314 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 19315 ac_cv_path_XMLTO="$as_dir$ac_word$ac_exec_ext" 19316 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 19317 break 2 19318 fi 19319done 19320 done 19321IFS=$as_save_IFS 19322 19323 ;; 19324esac 19325fi 19326XMLTO=$ac_cv_path_XMLTO 19327if test -n "$XMLTO"; then 19328 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XMLTO" >&5 19329printf "%s\n" "$XMLTO" >&6; } 19330else 19331 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 19332printf "%s\n" "no" >&6; } 19333fi 19334 19335 19336 if test "x$XMLTO" = "x"; then 19337 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: xmlto not found - documentation targets will be skipped" >&5 19338printf "%s\n" "$as_me: WARNING: xmlto not found - documentation targets will be skipped" >&2;} 19339 have_xmlto=no 19340 else 19341 have_xmlto=yes 19342 fi 19343elif test "x$use_xmlto" = x"yes" ; then 19344 # Extract the first word of "xmlto", so it can be a program name with args. 19345set dummy xmlto; ac_word=$2 19346{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19347printf %s "checking for $ac_word... " >&6; } 19348if test ${ac_cv_path_XMLTO+y} 19349then : 19350 printf %s "(cached) " >&6 19351else $as_nop 19352 case $XMLTO in 19353 [\\/]* | ?:[\\/]*) 19354 ac_cv_path_XMLTO="$XMLTO" # Let the user override the test with a path. 19355 ;; 19356 *) 19357 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19358for as_dir in $PATH 19359do 19360 IFS=$as_save_IFS 19361 case $as_dir in #((( 19362 '') as_dir=./ ;; 19363 */) ;; 19364 *) as_dir=$as_dir/ ;; 19365 esac 19366 for ac_exec_ext in '' $ac_executable_extensions; do 19367 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 19368 ac_cv_path_XMLTO="$as_dir$ac_word$ac_exec_ext" 19369 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 19370 break 2 19371 fi 19372done 19373 done 19374IFS=$as_save_IFS 19375 19376 ;; 19377esac 19378fi 19379XMLTO=$ac_cv_path_XMLTO 19380if test -n "$XMLTO"; then 19381 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XMLTO" >&5 19382printf "%s\n" "$XMLTO" >&6; } 19383else 19384 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 19385printf "%s\n" "no" >&6; } 19386fi 19387 19388 19389 if test "x$XMLTO" = "x"; then 19390 as_fn_error $? "--with-xmlto=yes specified but xmlto not found in PATH" "$LINENO" 5 19391 fi 19392 have_xmlto=yes 19393elif test "x$use_xmlto" = x"no" ; then 19394 if test "x$XMLTO" != "x"; then 19395 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ignoring XMLTO environment variable since --with-xmlto=no was specified" >&5 19396printf "%s\n" "$as_me: WARNING: ignoring XMLTO environment variable since --with-xmlto=no was specified" >&2;} 19397 fi 19398 have_xmlto=no 19399else 19400 as_fn_error $? "--with-xmlto expects 'yes' or 'no'" "$LINENO" 5 19401fi 19402 19403# Test for a minimum version of xmlto, if provided. 19404if test "$have_xmlto" = yes; then 19405 # scrape the xmlto version 19406 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the xmlto version" >&5 19407printf %s "checking the xmlto version... " >&6; } 19408 xmlto_version=`$XMLTO --version 2>/dev/null | cut -d' ' -f3` 19409 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xmlto_version" >&5 19410printf "%s\n" "$xmlto_version" >&6; } 19411 as_arg_v1=$xmlto_version 19412as_arg_v2=0.0.20 19413awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null 19414case $? in #( 19415 1) : 19416 if test "x$use_xmlto" = xauto; then 19417 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: xmlto version $xmlto_version found, but 0.0.20 needed" >&5 19418printf "%s\n" "$as_me: WARNING: xmlto version $xmlto_version found, but 0.0.20 needed" >&2;} 19419 have_xmlto=no 19420 else 19421 as_fn_error $? "xmlto version $xmlto_version found, but 0.0.20 needed" "$LINENO" 5 19422 fi ;; #( 19423 0) : 19424 ;; #( 19425 2) : 19426 ;; #( 19427 *) : 19428 ;; 19429esac 19430fi 19431 19432# Test for the ability of xmlto to generate a text target 19433# 19434# NOTE: xmlto 0.0.27 or higher return a non-zero return code in the 19435# following test for empty XML docbook files. 19436# For compatibility reasons use the following empty XML docbook file and if 19437# it fails try it again with a non-empty XML file. 19438have_xmlto_text=no 19439cat > conftest.xml << "EOF" 19440EOF 19441if test "$have_xmlto" = yes 19442then : 19443 if $XMLTO --skip-validation txt conftest.xml >/dev/null 2>&1 19444then : 19445 have_xmlto_text=yes 19446else $as_nop 19447 # Try it again with a non-empty XML file. 19448 cat > conftest.xml << "EOF" 19449<x></x> 19450EOF 19451 if $XMLTO --skip-validation txt conftest.xml >/dev/null 2>&1 19452then : 19453 have_xmlto_text=yes 19454else $as_nop 19455 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: xmlto cannot generate text format, this format skipped" >&5 19456printf "%s\n" "$as_me: WARNING: xmlto cannot generate text format, this format skipped" >&2;} 19457fi 19458fi 19459fi 19460rm -f conftest.xml 19461 if test $have_xmlto_text = yes; then 19462 HAVE_XMLTO_TEXT_TRUE= 19463 HAVE_XMLTO_TEXT_FALSE='#' 19464else 19465 HAVE_XMLTO_TEXT_TRUE='#' 19466 HAVE_XMLTO_TEXT_FALSE= 19467fi 19468 19469 if test "$have_xmlto" = yes; then 19470 HAVE_XMLTO_TRUE= 19471 HAVE_XMLTO_FALSE='#' 19472else 19473 HAVE_XMLTO_TRUE='#' 19474 HAVE_XMLTO_FALSE= 19475fi 19476 19477 19478 19479# Determine if the source for man pages is available 19480# It may already be present (tarball) or can be generated using xmlto 19481 if test -f "$srcdir/man/Xcomposite.man" || test "x$have_xmlto" = xyes; then 19482 INSTALL_MANPAGES_TRUE= 19483 INSTALL_MANPAGES_FALSE='#' 19484else 19485 INSTALL_MANPAGES_TRUE='#' 19486 INSTALL_MANPAGES_FALSE= 19487fi 19488 19489 19490# Check compositeext configuration, strip extra digits from package version to 19491# find the required protocol version 19492if test "$VERSION" = "" ; then 19493 VERSION=$PACKAGE_VERSION; 19494fi 19495COMPOSITEEXT_VERSION=`echo $VERSION | sed 's/^\([0-9][0-9]*\.[0-9][0-9]*\).*$/\1/'` 19496 19497 19498# Obtain compiler/linker options for dependencies 19499 19500pkg_failed=no 19501{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XCOMPOSITE" >&5 19502printf %s "checking for XCOMPOSITE... " >&6; } 19503 19504if test -n "$XCOMPOSITE_CFLAGS"; then 19505 pkg_cv_XCOMPOSITE_CFLAGS="$XCOMPOSITE_CFLAGS" 19506 elif test -n "$PKG_CONFIG"; then 19507 if test -n "$PKG_CONFIG" && \ 19508 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"compositeproto >= \$COMPOSITEEXT_VERSION xproto >= 7.0.22 x11\""; } >&5 19509 ($PKG_CONFIG --exists --print-errors "compositeproto >= $COMPOSITEEXT_VERSION xproto >= 7.0.22 x11") 2>&5 19510 ac_status=$? 19511 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19512 test $ac_status = 0; }; then 19513 pkg_cv_XCOMPOSITE_CFLAGS=`$PKG_CONFIG --cflags "compositeproto >= $COMPOSITEEXT_VERSION xproto >= 7.0.22 x11" 2>/dev/null` 19514 test "x$?" != "x0" && pkg_failed=yes 19515else 19516 pkg_failed=yes 19517fi 19518 else 19519 pkg_failed=untried 19520fi 19521if test -n "$XCOMPOSITE_LIBS"; then 19522 pkg_cv_XCOMPOSITE_LIBS="$XCOMPOSITE_LIBS" 19523 elif test -n "$PKG_CONFIG"; then 19524 if test -n "$PKG_CONFIG" && \ 19525 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"compositeproto >= \$COMPOSITEEXT_VERSION xproto >= 7.0.22 x11\""; } >&5 19526 ($PKG_CONFIG --exists --print-errors "compositeproto >= $COMPOSITEEXT_VERSION xproto >= 7.0.22 x11") 2>&5 19527 ac_status=$? 19528 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19529 test $ac_status = 0; }; then 19530 pkg_cv_XCOMPOSITE_LIBS=`$PKG_CONFIG --libs "compositeproto >= $COMPOSITEEXT_VERSION xproto >= 7.0.22 x11" 2>/dev/null` 19531 test "x$?" != "x0" && pkg_failed=yes 19532else 19533 pkg_failed=yes 19534fi 19535 else 19536 pkg_failed=untried 19537fi 19538 19539 19540 19541if test $pkg_failed = yes; then 19542 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 19543printf "%s\n" "no" >&6; } 19544 19545if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 19546 _pkg_short_errors_supported=yes 19547else 19548 _pkg_short_errors_supported=no 19549fi 19550 if test $_pkg_short_errors_supported = yes; then 19551 XCOMPOSITE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "compositeproto >= $COMPOSITEEXT_VERSION xproto >= 7.0.22 x11" 2>&1` 19552 else 19553 XCOMPOSITE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "compositeproto >= $COMPOSITEEXT_VERSION xproto >= 7.0.22 x11" 2>&1` 19554 fi 19555 # Put the nasty error message in config.log where it belongs 19556 echo "$XCOMPOSITE_PKG_ERRORS" >&5 19557 19558 as_fn_error $? "Package requirements (compositeproto >= $COMPOSITEEXT_VERSION xproto >= 7.0.22 x11) were not met: 19559 19560$XCOMPOSITE_PKG_ERRORS 19561 19562Consider adjusting the PKG_CONFIG_PATH environment variable if you 19563installed software in a non-standard prefix. 19564 19565Alternatively, you may set the environment variables XCOMPOSITE_CFLAGS 19566and XCOMPOSITE_LIBS to avoid the need to call pkg-config. 19567See the pkg-config man page for more details." "$LINENO" 5 19568elif test $pkg_failed = untried; then 19569 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 19570printf "%s\n" "no" >&6; } 19571 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 19572printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 19573as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 19574is in your PATH or set the PKG_CONFIG environment variable to the full 19575path to pkg-config. 19576 19577Alternatively, you may set the environment variables XCOMPOSITE_CFLAGS 19578and XCOMPOSITE_LIBS to avoid the need to call pkg-config. 19579See the pkg-config man page for more details. 19580 19581To get pkg-config, see <http://pkg-config.freedesktop.org/>. 19582See \`config.log' for more details" "$LINENO" 5; } 19583else 19584 XCOMPOSITE_CFLAGS=$pkg_cv_XCOMPOSITE_CFLAGS 19585 XCOMPOSITE_LIBS=$pkg_cv_XCOMPOSITE_LIBS 19586 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19587printf "%s\n" "yes" >&6; } 19588 19589fi 19590 19591pkg_failed=no 19592{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XFIXES" >&5 19593printf %s "checking for XFIXES... " >&6; } 19594 19595if test -n "$XFIXES_CFLAGS"; then 19596 pkg_cv_XFIXES_CFLAGS="$XFIXES_CFLAGS" 19597 elif test -n "$PKG_CONFIG"; then 19598 if test -n "$PKG_CONFIG" && \ 19599 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xfixes\""; } >&5 19600 ($PKG_CONFIG --exists --print-errors "xfixes") 2>&5 19601 ac_status=$? 19602 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19603 test $ac_status = 0; }; then 19604 pkg_cv_XFIXES_CFLAGS=`$PKG_CONFIG --cflags "xfixes" 2>/dev/null` 19605 test "x$?" != "x0" && pkg_failed=yes 19606else 19607 pkg_failed=yes 19608fi 19609 else 19610 pkg_failed=untried 19611fi 19612if test -n "$XFIXES_LIBS"; then 19613 pkg_cv_XFIXES_LIBS="$XFIXES_LIBS" 19614 elif test -n "$PKG_CONFIG"; then 19615 if test -n "$PKG_CONFIG" && \ 19616 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xfixes\""; } >&5 19617 ($PKG_CONFIG --exists --print-errors "xfixes") 2>&5 19618 ac_status=$? 19619 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19620 test $ac_status = 0; }; then 19621 pkg_cv_XFIXES_LIBS=`$PKG_CONFIG --libs "xfixes" 2>/dev/null` 19622 test "x$?" != "x0" && pkg_failed=yes 19623else 19624 pkg_failed=yes 19625fi 19626 else 19627 pkg_failed=untried 19628fi 19629 19630 19631 19632if test $pkg_failed = yes; then 19633 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 19634printf "%s\n" "no" >&6; } 19635 19636if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 19637 _pkg_short_errors_supported=yes 19638else 19639 _pkg_short_errors_supported=no 19640fi 19641 if test $_pkg_short_errors_supported = yes; then 19642 XFIXES_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xfixes" 2>&1` 19643 else 19644 XFIXES_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xfixes" 2>&1` 19645 fi 19646 # Put the nasty error message in config.log where it belongs 19647 echo "$XFIXES_PKG_ERRORS" >&5 19648 19649 as_fn_error $? "Package requirements (xfixes) were not met: 19650 19651$XFIXES_PKG_ERRORS 19652 19653Consider adjusting the PKG_CONFIG_PATH environment variable if you 19654installed software in a non-standard prefix. 19655 19656Alternatively, you may set the environment variables XFIXES_CFLAGS 19657and XFIXES_LIBS to avoid the need to call pkg-config. 19658See the pkg-config man page for more details." "$LINENO" 5 19659elif test $pkg_failed = untried; then 19660 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 19661printf "%s\n" "no" >&6; } 19662 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 19663printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 19664as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 19665is in your PATH or set the PKG_CONFIG environment variable to the full 19666path to pkg-config. 19667 19668Alternatively, you may set the environment variables XFIXES_CFLAGS 19669and XFIXES_LIBS to avoid the need to call pkg-config. 19670See the pkg-config man page for more details. 19671 19672To get pkg-config, see <http://pkg-config.freedesktop.org/>. 19673See \`config.log' for more details" "$LINENO" 5; } 19674else 19675 XFIXES_CFLAGS=$pkg_cv_XFIXES_CFLAGS 19676 XFIXES_LIBS=$pkg_cv_XFIXES_LIBS 19677 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19678printf "%s\n" "yes" >&6; } 19679 19680fi 19681 19682ac_config_files="$ac_config_files Makefile src/Makefile man/Makefile xcomposite.pc" 19683 19684cat >confcache <<\_ACEOF 19685# This file is a shell script that caches the results of configure 19686# tests run on this system so they can be shared between configure 19687# scripts and configure runs, see configure's option --config-cache. 19688# It is not useful on other systems. If it contains results you don't 19689# want to keep, you may remove or edit it. 19690# 19691# config.status only pays attention to the cache file if you give it 19692# the --recheck option to rerun configure. 19693# 19694# `ac_cv_env_foo' variables (set or unset) will be overridden when 19695# loading this file, other *unset* `ac_cv_foo' will be assigned the 19696# following values. 19697 19698_ACEOF 19699 19700# The following way of writing the cache mishandles newlines in values, 19701# but we know of no workaround that is simple, portable, and efficient. 19702# So, we kill variables containing newlines. 19703# Ultrix sh set writes to stderr and can't be redirected directly, 19704# and sets the high bit in the cache file unless we assign to the vars. 19705( 19706 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 19707 eval ac_val=\$$ac_var 19708 case $ac_val in #( 19709 *${as_nl}*) 19710 case $ac_var in #( 19711 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 19712printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 19713 esac 19714 case $ac_var in #( 19715 _ | IFS | as_nl) ;; #( 19716 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 19717 *) { eval $ac_var=; unset $ac_var;} ;; 19718 esac ;; 19719 esac 19720 done 19721 19722 (set) 2>&1 | 19723 case $as_nl`(ac_space=' '; set) 2>&1` in #( 19724 *${as_nl}ac_space=\ *) 19725 # `set' does not quote correctly, so add quotes: double-quote 19726 # substitution turns \\\\ into \\, and sed turns \\ into \. 19727 sed -n \ 19728 "s/'/'\\\\''/g; 19729 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 19730 ;; #( 19731 *) 19732 # `set' quotes correctly as required by POSIX, so do not add quotes. 19733 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 19734 ;; 19735 esac | 19736 sort 19737) | 19738 sed ' 19739 /^ac_cv_env_/b end 19740 t clear 19741 :clear 19742 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/ 19743 t end 19744 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 19745 :end' >>confcache 19746if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 19747 if test -w "$cache_file"; then 19748 if test "x$cache_file" != "x/dev/null"; then 19749 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 19750printf "%s\n" "$as_me: updating cache $cache_file" >&6;} 19751 if test ! -f "$cache_file" || test -h "$cache_file"; then 19752 cat confcache >"$cache_file" 19753 else 19754 case $cache_file in #( 19755 */* | ?:*) 19756 mv -f confcache "$cache_file"$$ && 19757 mv -f "$cache_file"$$ "$cache_file" ;; #( 19758 *) 19759 mv -f confcache "$cache_file" ;; 19760 esac 19761 fi 19762 fi 19763 else 19764 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 19765printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;} 19766 fi 19767fi 19768rm -f confcache 19769 19770test "x$prefix" = xNONE && prefix=$ac_default_prefix 19771# Let make expand exec_prefix. 19772test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 19773 19774DEFS=-DHAVE_CONFIG_H 19775 19776ac_libobjs= 19777ac_ltlibobjs= 19778U= 19779for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 19780 # 1. Remove the extension, and $U if already installed. 19781 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 19782 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"` 19783 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 19784 # will be set to the directory where LIBOBJS objects are built. 19785 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 19786 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 19787done 19788LIBOBJS=$ac_libobjs 19789 19790LTLIBOBJS=$ac_ltlibobjs 19791 19792 19793{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 19794printf %s "checking that generated files are newer than configure... " >&6; } 19795 if test -n "$am_sleep_pid"; then 19796 # Hide warnings about reused PIDs. 19797 wait $am_sleep_pid 2>/dev/null 19798 fi 19799 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5 19800printf "%s\n" "done" >&6; } 19801 if test -n "$EXEEXT"; then 19802 am__EXEEXT_TRUE= 19803 am__EXEEXT_FALSE='#' 19804else 19805 am__EXEEXT_TRUE='#' 19806 am__EXEEXT_FALSE= 19807fi 19808 19809if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 19810 as_fn_error $? "conditional \"AMDEP\" was never defined. 19811Usually this means the macro was only invoked conditionally." "$LINENO" 5 19812fi 19813if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 19814 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 19815Usually this means the macro was only invoked conditionally." "$LINENO" 5 19816fi 19817if test -z "${HAVE_XMLTO_TEXT_TRUE}" && test -z "${HAVE_XMLTO_TEXT_FALSE}"; then 19818 as_fn_error $? "conditional \"HAVE_XMLTO_TEXT\" was never defined. 19819Usually this means the macro was only invoked conditionally." "$LINENO" 5 19820fi 19821if test -z "${HAVE_XMLTO_TRUE}" && test -z "${HAVE_XMLTO_FALSE}"; then 19822 as_fn_error $? "conditional \"HAVE_XMLTO\" was never defined. 19823Usually this means the macro was only invoked conditionally." "$LINENO" 5 19824fi 19825if test -z "${INSTALL_MANPAGES_TRUE}" && test -z "${INSTALL_MANPAGES_FALSE}"; then 19826 as_fn_error $? "conditional \"INSTALL_MANPAGES\" was never defined. 19827Usually this means the macro was only invoked conditionally." "$LINENO" 5 19828fi 19829 19830: "${CONFIG_STATUS=./config.status}" 19831ac_write_fail=0 19832ac_clean_files_save=$ac_clean_files 19833ac_clean_files="$ac_clean_files $CONFIG_STATUS" 19834{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 19835printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;} 19836as_write_fail=0 19837cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 19838#! $SHELL 19839# Generated by $as_me. 19840# Run this file to recreate the current configuration. 19841# Compiler output produced by configure, useful for debugging 19842# configure, is in config.log if it exists. 19843 19844debug=false 19845ac_cs_recheck=false 19846ac_cs_silent=false 19847 19848SHELL=\${CONFIG_SHELL-$SHELL} 19849export SHELL 19850_ASEOF 19851cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 19852## -------------------- ## 19853## M4sh Initialization. ## 19854## -------------------- ## 19855 19856# Be more Bourne compatible 19857DUALCASE=1; export DUALCASE # for MKS sh 19858as_nop=: 19859if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 19860then : 19861 emulate sh 19862 NULLCMD=: 19863 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 19864 # is contrary to our usage. Disable this feature. 19865 alias -g '${1+"$@"}'='"$@"' 19866 setopt NO_GLOB_SUBST 19867else $as_nop 19868 case `(set -o) 2>/dev/null` in #( 19869 *posix*) : 19870 set -o posix ;; #( 19871 *) : 19872 ;; 19873esac 19874fi 19875 19876 19877 19878# Reset variables that may have inherited troublesome values from 19879# the environment. 19880 19881# IFS needs to be set, to space, tab, and newline, in precisely that order. 19882# (If _AS_PATH_WALK were called with IFS unset, it would have the 19883# side effect of setting IFS to empty, thus disabling word splitting.) 19884# Quoting is to prevent editors from complaining about space-tab. 19885as_nl=' 19886' 19887export as_nl 19888IFS=" "" $as_nl" 19889 19890PS1='$ ' 19891PS2='> ' 19892PS4='+ ' 19893 19894# Ensure predictable behavior from utilities with locale-dependent output. 19895LC_ALL=C 19896export LC_ALL 19897LANGUAGE=C 19898export LANGUAGE 19899 19900# We cannot yet rely on "unset" to work, but we need these variables 19901# to be unset--not just set to an empty or harmless value--now, to 19902# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct 19903# also avoids known problems related to "unset" and subshell syntax 19904# in other old shells (e.g. bash 2.01 and pdksh 5.2.14). 19905for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH 19906do eval test \${$as_var+y} \ 19907 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 19908done 19909 19910# Ensure that fds 0, 1, and 2 are open. 19911if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi 19912if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi 19913if (exec 3>&2) ; then :; else exec 2>/dev/null; fi 19914 19915# The user is always right. 19916if ${PATH_SEPARATOR+false} :; then 19917 PATH_SEPARATOR=: 19918 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 19919 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 19920 PATH_SEPARATOR=';' 19921 } 19922fi 19923 19924 19925# Find who we are. Look in the path if we contain no directory separator. 19926as_myself= 19927case $0 in #(( 19928 *[\\/]* ) as_myself=$0 ;; 19929 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19930for as_dir in $PATH 19931do 19932 IFS=$as_save_IFS 19933 case $as_dir in #((( 19934 '') as_dir=./ ;; 19935 */) ;; 19936 *) as_dir=$as_dir/ ;; 19937 esac 19938 test -r "$as_dir$0" && as_myself=$as_dir$0 && break 19939 done 19940IFS=$as_save_IFS 19941 19942 ;; 19943esac 19944# We did not find ourselves, most probably we were run as `sh COMMAND' 19945# in which case we are not to be found in the path. 19946if test "x$as_myself" = x; then 19947 as_myself=$0 19948fi 19949if test ! -f "$as_myself"; then 19950 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 19951 exit 1 19952fi 19953 19954 19955 19956# as_fn_error STATUS ERROR [LINENO LOG_FD] 19957# ---------------------------------------- 19958# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 19959# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 19960# script with STATUS, using 1 if that was 0. 19961as_fn_error () 19962{ 19963 as_status=$1; test $as_status -eq 0 && as_status=1 19964 if test "$4"; then 19965 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 19966 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 19967 fi 19968 printf "%s\n" "$as_me: error: $2" >&2 19969 as_fn_exit $as_status 19970} # as_fn_error 19971 19972 19973 19974# as_fn_set_status STATUS 19975# ----------------------- 19976# Set $? to STATUS, without forking. 19977as_fn_set_status () 19978{ 19979 return $1 19980} # as_fn_set_status 19981 19982# as_fn_exit STATUS 19983# ----------------- 19984# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 19985as_fn_exit () 19986{ 19987 set +e 19988 as_fn_set_status $1 19989 exit $1 19990} # as_fn_exit 19991 19992# as_fn_unset VAR 19993# --------------- 19994# Portably unset VAR. 19995as_fn_unset () 19996{ 19997 { eval $1=; unset $1;} 19998} 19999as_unset=as_fn_unset 20000 20001# as_fn_append VAR VALUE 20002# ---------------------- 20003# Append the text in VALUE to the end of the definition contained in VAR. Take 20004# advantage of any shell optimizations that allow amortized linear growth over 20005# repeated appends, instead of the typical quadratic growth present in naive 20006# implementations. 20007if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null 20008then : 20009 eval 'as_fn_append () 20010 { 20011 eval $1+=\$2 20012 }' 20013else $as_nop 20014 as_fn_append () 20015 { 20016 eval $1=\$$1\$2 20017 } 20018fi # as_fn_append 20019 20020# as_fn_arith ARG... 20021# ------------------ 20022# Perform arithmetic evaluation on the ARGs, and store the result in the 20023# global $as_val. Take advantage of shells that can avoid forks. The arguments 20024# must be portable across $(()) and expr. 20025if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null 20026then : 20027 eval 'as_fn_arith () 20028 { 20029 as_val=$(( $* )) 20030 }' 20031else $as_nop 20032 as_fn_arith () 20033 { 20034 as_val=`expr "$@" || test $? -eq 1` 20035 } 20036fi # as_fn_arith 20037 20038 20039if expr a : '\(a\)' >/dev/null 2>&1 && 20040 test "X`expr 00001 : '.*\(...\)'`" = X001; then 20041 as_expr=expr 20042else 20043 as_expr=false 20044fi 20045 20046if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 20047 as_basename=basename 20048else 20049 as_basename=false 20050fi 20051 20052if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 20053 as_dirname=dirname 20054else 20055 as_dirname=false 20056fi 20057 20058as_me=`$as_basename -- "$0" || 20059$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 20060 X"$0" : 'X\(//\)$' \| \ 20061 X"$0" : 'X\(/\)' \| . 2>/dev/null || 20062printf "%s\n" X/"$0" | 20063 sed '/^.*\/\([^/][^/]*\)\/*$/{ 20064 s//\1/ 20065 q 20066 } 20067 /^X\/\(\/\/\)$/{ 20068 s//\1/ 20069 q 20070 } 20071 /^X\/\(\/\).*/{ 20072 s//\1/ 20073 q 20074 } 20075 s/.*/./; q'` 20076 20077# Avoid depending upon Character Ranges. 20078as_cr_letters='abcdefghijklmnopqrstuvwxyz' 20079as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 20080as_cr_Letters=$as_cr_letters$as_cr_LETTERS 20081as_cr_digits='0123456789' 20082as_cr_alnum=$as_cr_Letters$as_cr_digits 20083 20084 20085# Determine whether it's possible to make 'echo' print without a newline. 20086# These variables are no longer used directly by Autoconf, but are AC_SUBSTed 20087# for compatibility with existing Makefiles. 20088ECHO_C= ECHO_N= ECHO_T= 20089case `echo -n x` in #((((( 20090-n*) 20091 case `echo 'xy\c'` in 20092 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 20093 xy) ECHO_C='\c';; 20094 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 20095 ECHO_T=' ';; 20096 esac;; 20097*) 20098 ECHO_N='-n';; 20099esac 20100 20101# For backward compatibility with old third-party macros, we provide 20102# the shell variables $as_echo and $as_echo_n. New code should use 20103# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. 20104as_echo='printf %s\n' 20105as_echo_n='printf %s' 20106 20107rm -f conf$$ conf$$.exe conf$$.file 20108if test -d conf$$.dir; then 20109 rm -f conf$$.dir/conf$$.file 20110else 20111 rm -f conf$$.dir 20112 mkdir conf$$.dir 2>/dev/null 20113fi 20114if (echo >conf$$.file) 2>/dev/null; then 20115 if ln -s conf$$.file conf$$ 2>/dev/null; then 20116 as_ln_s='ln -s' 20117 # ... but there are two gotchas: 20118 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 20119 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 20120 # In both cases, we have to default to `cp -pR'. 20121 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 20122 as_ln_s='cp -pR' 20123 elif ln conf$$.file conf$$ 2>/dev/null; then 20124 as_ln_s=ln 20125 else 20126 as_ln_s='cp -pR' 20127 fi 20128else 20129 as_ln_s='cp -pR' 20130fi 20131rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 20132rmdir conf$$.dir 2>/dev/null 20133 20134 20135# as_fn_mkdir_p 20136# ------------- 20137# Create "$as_dir" as a directory, including parents if necessary. 20138as_fn_mkdir_p () 20139{ 20140 20141 case $as_dir in #( 20142 -*) as_dir=./$as_dir;; 20143 esac 20144 test -d "$as_dir" || eval $as_mkdir_p || { 20145 as_dirs= 20146 while :; do 20147 case $as_dir in #( 20148 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 20149 *) as_qdir=$as_dir;; 20150 esac 20151 as_dirs="'$as_qdir' $as_dirs" 20152 as_dir=`$as_dirname -- "$as_dir" || 20153$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20154 X"$as_dir" : 'X\(//\)[^/]' \| \ 20155 X"$as_dir" : 'X\(//\)$' \| \ 20156 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 20157printf "%s\n" X"$as_dir" | 20158 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 20159 s//\1/ 20160 q 20161 } 20162 /^X\(\/\/\)[^/].*/{ 20163 s//\1/ 20164 q 20165 } 20166 /^X\(\/\/\)$/{ 20167 s//\1/ 20168 q 20169 } 20170 /^X\(\/\).*/{ 20171 s//\1/ 20172 q 20173 } 20174 s/.*/./; q'` 20175 test -d "$as_dir" && break 20176 done 20177 test -z "$as_dirs" || eval "mkdir $as_dirs" 20178 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 20179 20180 20181} # as_fn_mkdir_p 20182if mkdir -p . 2>/dev/null; then 20183 as_mkdir_p='mkdir -p "$as_dir"' 20184else 20185 test -d ./-p && rmdir ./-p 20186 as_mkdir_p=false 20187fi 20188 20189 20190# as_fn_executable_p FILE 20191# ----------------------- 20192# Test if FILE is an executable regular file. 20193as_fn_executable_p () 20194{ 20195 test -f "$1" && test -x "$1" 20196} # as_fn_executable_p 20197as_test_x='test -x' 20198as_executable_p=as_fn_executable_p 20199 20200# Sed expression to map a string onto a valid CPP name. 20201as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 20202 20203# Sed expression to map a string onto a valid variable name. 20204as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 20205 20206 20207exec 6>&1 20208## ----------------------------------- ## 20209## Main body of $CONFIG_STATUS script. ## 20210## ----------------------------------- ## 20211_ASEOF 20212test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 20213 20214cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20215# Save the log message, to keep $0 and so on meaningful, and to 20216# report actual input values of CONFIG_FILES etc. instead of their 20217# values after options handling. 20218ac_log=" 20219This file was extended by libXcomposite $as_me 0.4.6, which was 20220generated by GNU Autoconf 2.71. Invocation command line was 20221 20222 CONFIG_FILES = $CONFIG_FILES 20223 CONFIG_HEADERS = $CONFIG_HEADERS 20224 CONFIG_LINKS = $CONFIG_LINKS 20225 CONFIG_COMMANDS = $CONFIG_COMMANDS 20226 $ $0 $@ 20227 20228on `(hostname || uname -n) 2>/dev/null | sed 1q` 20229" 20230 20231_ACEOF 20232 20233case $ac_config_files in *" 20234"*) set x $ac_config_files; shift; ac_config_files=$*;; 20235esac 20236 20237case $ac_config_headers in *" 20238"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 20239esac 20240 20241 20242cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20243# Files that config.status was made for. 20244config_files="$ac_config_files" 20245config_headers="$ac_config_headers" 20246config_commands="$ac_config_commands" 20247 20248_ACEOF 20249 20250cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20251ac_cs_usage="\ 20252\`$as_me' instantiates files and other configuration actions 20253from templates according to the current configuration. Unless the files 20254and actions are specified as TAGs, all are instantiated by default. 20255 20256Usage: $0 [OPTION]... [TAG]... 20257 20258 -h, --help print this help, then exit 20259 -V, --version print version number and configuration settings, then exit 20260 --config print configuration, then exit 20261 -q, --quiet, --silent 20262 do not print progress messages 20263 -d, --debug don't remove temporary files 20264 --recheck update $as_me by reconfiguring in the same conditions 20265 --file=FILE[:TEMPLATE] 20266 instantiate the configuration file FILE 20267 --header=FILE[:TEMPLATE] 20268 instantiate the configuration header FILE 20269 20270Configuration files: 20271$config_files 20272 20273Configuration headers: 20274$config_headers 20275 20276Configuration commands: 20277$config_commands 20278 20279Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libxcomposite/-/issues>." 20280 20281_ACEOF 20282ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"` 20283ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"` 20284cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20285ac_cs_config='$ac_cs_config_escaped' 20286ac_cs_version="\\ 20287libXcomposite config.status 0.4.6 20288configured by $0, generated by GNU Autoconf 2.71, 20289 with options \\"\$ac_cs_config\\" 20290 20291Copyright (C) 2021 Free Software Foundation, Inc. 20292This config.status script is free software; the Free Software Foundation 20293gives unlimited permission to copy, distribute and modify it." 20294 20295ac_pwd='$ac_pwd' 20296srcdir='$srcdir' 20297INSTALL='$INSTALL' 20298MKDIR_P='$MKDIR_P' 20299AWK='$AWK' 20300test -n "\$AWK" || AWK=awk 20301_ACEOF 20302 20303cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20304# The default lists apply if the user does not specify any file. 20305ac_need_defaults=: 20306while test $# != 0 20307do 20308 case $1 in 20309 --*=?*) 20310 ac_option=`expr "X$1" : 'X\([^=]*\)='` 20311 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 20312 ac_shift=: 20313 ;; 20314 --*=) 20315 ac_option=`expr "X$1" : 'X\([^=]*\)='` 20316 ac_optarg= 20317 ac_shift=: 20318 ;; 20319 *) 20320 ac_option=$1 20321 ac_optarg=$2 20322 ac_shift=shift 20323 ;; 20324 esac 20325 20326 case $ac_option in 20327 # Handling of the options. 20328 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 20329 ac_cs_recheck=: ;; 20330 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 20331 printf "%s\n" "$ac_cs_version"; exit ;; 20332 --config | --confi | --conf | --con | --co | --c ) 20333 printf "%s\n" "$ac_cs_config"; exit ;; 20334 --debug | --debu | --deb | --de | --d | -d ) 20335 debug=: ;; 20336 --file | --fil | --fi | --f ) 20337 $ac_shift 20338 case $ac_optarg in 20339 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 20340 '') as_fn_error $? "missing file argument" ;; 20341 esac 20342 as_fn_append CONFIG_FILES " '$ac_optarg'" 20343 ac_need_defaults=false;; 20344 --header | --heade | --head | --hea ) 20345 $ac_shift 20346 case $ac_optarg in 20347 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 20348 esac 20349 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 20350 ac_need_defaults=false;; 20351 --he | --h) 20352 # Conflict between --help and --header 20353 as_fn_error $? "ambiguous option: \`$1' 20354Try \`$0 --help' for more information.";; 20355 --help | --hel | -h ) 20356 printf "%s\n" "$ac_cs_usage"; exit ;; 20357 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 20358 | -silent | --silent | --silen | --sile | --sil | --si | --s) 20359 ac_cs_silent=: ;; 20360 20361 # This is an error. 20362 -*) as_fn_error $? "unrecognized option: \`$1' 20363Try \`$0 --help' for more information." ;; 20364 20365 *) as_fn_append ac_config_targets " $1" 20366 ac_need_defaults=false ;; 20367 20368 esac 20369 shift 20370done 20371 20372ac_configure_extra_args= 20373 20374if $ac_cs_silent; then 20375 exec 6>/dev/null 20376 ac_configure_extra_args="$ac_configure_extra_args --silent" 20377fi 20378 20379_ACEOF 20380cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20381if \$ac_cs_recheck; then 20382 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 20383 shift 20384 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6 20385 CONFIG_SHELL='$SHELL' 20386 export CONFIG_SHELL 20387 exec "\$@" 20388fi 20389 20390_ACEOF 20391cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20392exec 5>>config.log 20393{ 20394 echo 20395 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 20396## Running $as_me. ## 20397_ASBOX 20398 printf "%s\n" "$ac_log" 20399} >&5 20400 20401_ACEOF 20402cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20403# 20404# INIT-COMMANDS 20405# 20406AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}" 20407 20408 20409# The HP-UX ksh and POSIX shell print the target directory to stdout 20410# if CDPATH is set. 20411(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 20412 20413sed_quote_subst='$sed_quote_subst' 20414double_quote_subst='$double_quote_subst' 20415delay_variable_subst='$delay_variable_subst' 20416macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 20417macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 20418enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 20419enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 20420pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 20421enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 20422shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`' 20423SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 20424ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 20425PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 20426host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 20427host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 20428host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 20429build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 20430build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 20431build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 20432SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 20433Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 20434GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 20435EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 20436FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 20437LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 20438NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 20439LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 20440max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 20441ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 20442exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 20443lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 20444lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 20445lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 20446lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 20447lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 20448reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 20449reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 20450FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`' 20451OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 20452deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 20453file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 20454file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 20455want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 20456DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 20457sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 20458AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 20459lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`' 20460AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 20461archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 20462STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 20463RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 20464old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 20465old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 20466old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 20467lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 20468CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 20469CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 20470compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 20471GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 20472lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 20473lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 20474lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`' 20475lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 20476lt_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"`' 20477lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`' 20478nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 20479lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 20480lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`' 20481objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 20482MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 20483lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 20484lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 20485lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 20486lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 20487lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 20488need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 20489MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 20490DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 20491NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 20492LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 20493OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 20494OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 20495libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 20496shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 20497extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 20498archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 20499enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 20500export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 20501whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 20502compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 20503old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 20504old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 20505archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 20506archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 20507module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 20508module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 20509with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 20510allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 20511no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 20512hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 20513hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 20514hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 20515hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 20516hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 20517hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 20518hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 20519inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 20520link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 20521always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 20522export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 20523exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 20524include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 20525prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 20526postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 20527file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 20528variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 20529need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 20530need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 20531version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 20532runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 20533shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 20534shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 20535libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 20536library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 20537soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 20538install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 20539postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 20540postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 20541finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 20542finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 20543hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 20544sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 20545configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`' 20546configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`' 20547hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 20548enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 20549enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 20550enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 20551old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 20552striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 20553 20554LTCC='$LTCC' 20555LTCFLAGS='$LTCFLAGS' 20556compiler='$compiler_DEFAULT' 20557 20558# A function that is used when there is no print builtin or printf. 20559func_fallback_echo () 20560{ 20561 eval 'cat <<_LTECHO_EOF 20562\$1 20563_LTECHO_EOF' 20564} 20565 20566# Quote evaled strings. 20567for var in SHELL \ 20568ECHO \ 20569PATH_SEPARATOR \ 20570SED \ 20571GREP \ 20572EGREP \ 20573FGREP \ 20574LD \ 20575NM \ 20576LN_S \ 20577lt_SP2NL \ 20578lt_NL2SP \ 20579reload_flag \ 20580FILECMD \ 20581OBJDUMP \ 20582deplibs_check_method \ 20583file_magic_cmd \ 20584file_magic_glob \ 20585want_nocaseglob \ 20586DLLTOOL \ 20587sharedlib_from_linklib_cmd \ 20588AR \ 20589archiver_list_spec \ 20590STRIP \ 20591RANLIB \ 20592CC \ 20593CFLAGS \ 20594compiler \ 20595lt_cv_sys_global_symbol_pipe \ 20596lt_cv_sys_global_symbol_to_cdecl \ 20597lt_cv_sys_global_symbol_to_import \ 20598lt_cv_sys_global_symbol_to_c_name_address \ 20599lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 20600lt_cv_nm_interface \ 20601nm_file_list_spec \ 20602lt_cv_truncate_bin \ 20603lt_prog_compiler_no_builtin_flag \ 20604lt_prog_compiler_pic \ 20605lt_prog_compiler_wl \ 20606lt_prog_compiler_static \ 20607lt_cv_prog_compiler_c_o \ 20608need_locks \ 20609MANIFEST_TOOL \ 20610DSYMUTIL \ 20611NMEDIT \ 20612LIPO \ 20613OTOOL \ 20614OTOOL64 \ 20615shrext_cmds \ 20616export_dynamic_flag_spec \ 20617whole_archive_flag_spec \ 20618compiler_needs_object \ 20619with_gnu_ld \ 20620allow_undefined_flag \ 20621no_undefined_flag \ 20622hardcode_libdir_flag_spec \ 20623hardcode_libdir_separator \ 20624exclude_expsyms \ 20625include_expsyms \ 20626file_list_spec \ 20627variables_saved_for_relink \ 20628libname_spec \ 20629library_names_spec \ 20630soname_spec \ 20631install_override_mode \ 20632finish_eval \ 20633old_striplib \ 20634striplib; do 20635 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 20636 *[\\\\\\\`\\"\\\$]*) 20637 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 20638 ;; 20639 *) 20640 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 20641 ;; 20642 esac 20643done 20644 20645# Double-quote double-evaled strings. 20646for var in reload_cmds \ 20647old_postinstall_cmds \ 20648old_postuninstall_cmds \ 20649old_archive_cmds \ 20650extract_expsyms_cmds \ 20651old_archive_from_new_cmds \ 20652old_archive_from_expsyms_cmds \ 20653archive_cmds \ 20654archive_expsym_cmds \ 20655module_cmds \ 20656module_expsym_cmds \ 20657export_symbols_cmds \ 20658prelink_cmds \ 20659postlink_cmds \ 20660postinstall_cmds \ 20661postuninstall_cmds \ 20662finish_cmds \ 20663sys_lib_search_path_spec \ 20664configure_time_dlsearch_path \ 20665configure_time_lt_sys_library_path; do 20666 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 20667 *[\\\\\\\`\\"\\\$]*) 20668 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 20669 ;; 20670 *) 20671 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 20672 ;; 20673 esac 20674done 20675 20676ac_aux_dir='$ac_aux_dir' 20677 20678# See if we are running on zsh, and set the options that allow our 20679# commands through without removal of \ escapes INIT. 20680if test -n "\${ZSH_VERSION+set}"; then 20681 setopt NO_GLOB_SUBST 20682fi 20683 20684 20685 PACKAGE='$PACKAGE' 20686 VERSION='$VERSION' 20687 RM='$RM' 20688 ofile='$ofile' 20689 20690 20691 20692 20693_ACEOF 20694 20695cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20696 20697# Handling of arguments. 20698for ac_config_target in $ac_config_targets 20699do 20700 case $ac_config_target in 20701 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 20702 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 20703 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 20704 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 20705 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 20706 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 20707 "xcomposite.pc") CONFIG_FILES="$CONFIG_FILES xcomposite.pc" ;; 20708 20709 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 20710 esac 20711done 20712 20713 20714# If the user did not use the arguments to specify the items to instantiate, 20715# then the envvar interface is used. Set only those that are not. 20716# We use the long form for the default assignment because of an extremely 20717# bizarre bug on SunOS 4.1.3. 20718if $ac_need_defaults; then 20719 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files 20720 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers 20721 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands 20722fi 20723 20724# Have a temporary directory for convenience. Make it in the build tree 20725# simply because there is no reason against having it here, and in addition, 20726# creating and moving files from /tmp can sometimes cause problems. 20727# Hook for its removal unless debugging. 20728# Note that there is a small window in which the directory will not be cleaned: 20729# after its creation but before its name has been assigned to `$tmp'. 20730$debug || 20731{ 20732 tmp= ac_tmp= 20733 trap 'exit_status=$? 20734 : "${ac_tmp:=$tmp}" 20735 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 20736' 0 20737 trap 'as_fn_exit 1' 1 2 13 15 20738} 20739# Create a (secure) tmp directory for tmp files. 20740 20741{ 20742 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 20743 test -d "$tmp" 20744} || 20745{ 20746 tmp=./conf$$-$RANDOM 20747 (umask 077 && mkdir "$tmp") 20748} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 20749ac_tmp=$tmp 20750 20751# Set up the scripts for CONFIG_FILES section. 20752# No need to generate them if there are no CONFIG_FILES. 20753# This happens for instance with `./config.status config.h'. 20754if test -n "$CONFIG_FILES"; then 20755 20756 20757ac_cr=`echo X | tr X '\015'` 20758# On cygwin, bash can eat \r inside `` if the user requested igncr. 20759# But we know of no other shell where ac_cr would be empty at this 20760# point, so we can use a bashism as a fallback. 20761if test "x$ac_cr" = x; then 20762 eval ac_cr=\$\'\\r\' 20763fi 20764ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 20765if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 20766 ac_cs_awk_cr='\\r' 20767else 20768 ac_cs_awk_cr=$ac_cr 20769fi 20770 20771echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 20772_ACEOF 20773 20774 20775{ 20776 echo "cat >conf$$subs.awk <<_ACEOF" && 20777 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 20778 echo "_ACEOF" 20779} >conf$$subs.sh || 20780 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 20781ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 20782ac_delim='%!_!# ' 20783for ac_last_try in false false false false false :; do 20784 . ./conf$$subs.sh || 20785 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 20786 20787 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 20788 if test $ac_delim_n = $ac_delim_num; then 20789 break 20790 elif $ac_last_try; then 20791 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 20792 else 20793 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 20794 fi 20795done 20796rm -f conf$$subs.sh 20797 20798cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20799cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 20800_ACEOF 20801sed -n ' 20802h 20803s/^/S["/; s/!.*/"]=/ 20804p 20805g 20806s/^[^!]*!// 20807:repl 20808t repl 20809s/'"$ac_delim"'$// 20810t delim 20811:nl 20812h 20813s/\(.\{148\}\)..*/\1/ 20814t more1 20815s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 20816p 20817n 20818b repl 20819:more1 20820s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 20821p 20822g 20823s/.\{148\}// 20824t nl 20825:delim 20826h 20827s/\(.\{148\}\)..*/\1/ 20828t more2 20829s/["\\]/\\&/g; s/^/"/; s/$/"/ 20830p 20831b 20832:more2 20833s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 20834p 20835g 20836s/.\{148\}// 20837t delim 20838' <conf$$subs.awk | sed ' 20839/^[^""]/{ 20840 N 20841 s/\n// 20842} 20843' >>$CONFIG_STATUS || ac_write_fail=1 20844rm -f conf$$subs.awk 20845cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20846_ACAWK 20847cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 20848 for (key in S) S_is_set[key] = 1 20849 FS = "" 20850 20851} 20852{ 20853 line = $ 0 20854 nfields = split(line, field, "@") 20855 substed = 0 20856 len = length(field[1]) 20857 for (i = 2; i < nfields; i++) { 20858 key = field[i] 20859 keylen = length(key) 20860 if (S_is_set[key]) { 20861 value = S[key] 20862 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 20863 len += length(value) + length(field[++i]) 20864 substed = 1 20865 } else 20866 len += 1 + keylen 20867 } 20868 20869 print line 20870} 20871 20872_ACAWK 20873_ACEOF 20874cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20875if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 20876 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 20877else 20878 cat 20879fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 20880 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 20881_ACEOF 20882 20883# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 20884# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 20885# trailing colons and then remove the whole line if VPATH becomes empty 20886# (actually we leave an empty line to preserve line numbers). 20887if test "x$srcdir" = x.; then 20888 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 20889h 20890s/// 20891s/^/:/ 20892s/[ ]*$/:/ 20893s/:\$(srcdir):/:/g 20894s/:\${srcdir}:/:/g 20895s/:@srcdir@:/:/g 20896s/^:*// 20897s/:*$// 20898x 20899s/\(=[ ]*\).*/\1/ 20900G 20901s/\n// 20902s/^[^=]*=[ ]*$// 20903}' 20904fi 20905 20906cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20907fi # test -n "$CONFIG_FILES" 20908 20909# Set up the scripts for CONFIG_HEADERS section. 20910# No need to generate them if there are no CONFIG_HEADERS. 20911# This happens for instance with `./config.status Makefile'. 20912if test -n "$CONFIG_HEADERS"; then 20913cat >"$ac_tmp/defines.awk" <<\_ACAWK || 20914BEGIN { 20915_ACEOF 20916 20917# Transform confdefs.h into an awk script `defines.awk', embedded as 20918# here-document in config.status, that substitutes the proper values into 20919# config.h.in to produce config.h. 20920 20921# Create a delimiter string that does not exist in confdefs.h, to ease 20922# handling of long lines. 20923ac_delim='%!_!# ' 20924for ac_last_try in false false :; do 20925 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 20926 if test -z "$ac_tt"; then 20927 break 20928 elif $ac_last_try; then 20929 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 20930 else 20931 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 20932 fi 20933done 20934 20935# For the awk script, D is an array of macro values keyed by name, 20936# likewise P contains macro parameters if any. Preserve backslash 20937# newline sequences. 20938 20939ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 20940sed -n ' 20941s/.\{148\}/&'"$ac_delim"'/g 20942t rset 20943:rset 20944s/^[ ]*#[ ]*define[ ][ ]*/ / 20945t def 20946d 20947:def 20948s/\\$// 20949t bsnl 20950s/["\\]/\\&/g 20951s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 20952D["\1"]=" \3"/p 20953s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 20954d 20955:bsnl 20956s/["\\]/\\&/g 20957s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 20958D["\1"]=" \3\\\\\\n"\\/p 20959t cont 20960s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 20961t cont 20962d 20963:cont 20964n 20965s/.\{148\}/&'"$ac_delim"'/g 20966t clear 20967:clear 20968s/\\$// 20969t bsnlc 20970s/["\\]/\\&/g; s/^/"/; s/$/"/p 20971d 20972:bsnlc 20973s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 20974b cont 20975' <confdefs.h | sed ' 20976s/'"$ac_delim"'/"\\\ 20977"/g' >>$CONFIG_STATUS || ac_write_fail=1 20978 20979cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20980 for (key in D) D_is_set[key] = 1 20981 FS = "" 20982} 20983/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 20984 line = \$ 0 20985 split(line, arg, " ") 20986 if (arg[1] == "#") { 20987 defundef = arg[2] 20988 mac1 = arg[3] 20989 } else { 20990 defundef = substr(arg[1], 2) 20991 mac1 = arg[2] 20992 } 20993 split(mac1, mac2, "(") #) 20994 macro = mac2[1] 20995 prefix = substr(line, 1, index(line, defundef) - 1) 20996 if (D_is_set[macro]) { 20997 # Preserve the white space surrounding the "#". 20998 print prefix "define", macro P[macro] D[macro] 20999 next 21000 } else { 21001 # Replace #undef with comments. This is necessary, for example, 21002 # in the case of _POSIX_SOURCE, which is predefined and required 21003 # on some systems where configure will not decide to define it. 21004 if (defundef == "undef") { 21005 print "/*", prefix defundef, macro, "*/" 21006 next 21007 } 21008 } 21009} 21010{ print } 21011_ACAWK 21012_ACEOF 21013cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21014 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 21015fi # test -n "$CONFIG_HEADERS" 21016 21017 21018eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 21019shift 21020for ac_tag 21021do 21022 case $ac_tag in 21023 :[FHLC]) ac_mode=$ac_tag; continue;; 21024 esac 21025 case $ac_mode$ac_tag in 21026 :[FHL]*:*);; 21027 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 21028 :[FH]-) ac_tag=-:-;; 21029 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 21030 esac 21031 ac_save_IFS=$IFS 21032 IFS=: 21033 set x $ac_tag 21034 IFS=$ac_save_IFS 21035 shift 21036 ac_file=$1 21037 shift 21038 21039 case $ac_mode in 21040 :L) ac_source=$1;; 21041 :[FH]) 21042 ac_file_inputs= 21043 for ac_f 21044 do 21045 case $ac_f in 21046 -) ac_f="$ac_tmp/stdin";; 21047 *) # Look for the file first in the build tree, then in the source tree 21048 # (if the path is not absolute). The absolute path cannot be DOS-style, 21049 # because $ac_f cannot contain `:'. 21050 test -f "$ac_f" || 21051 case $ac_f in 21052 [\\/$]*) false;; 21053 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 21054 esac || 21055 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 21056 esac 21057 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 21058 as_fn_append ac_file_inputs " '$ac_f'" 21059 done 21060 21061 # Let's still pretend it is `configure' which instantiates (i.e., don't 21062 # use $as_me), people would be surprised to read: 21063 # /* config.h. Generated by config.status. */ 21064 configure_input='Generated from '` 21065 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 21066 `' by configure.' 21067 if test x"$ac_file" != x-; then 21068 configure_input="$ac_file. $configure_input" 21069 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 21070printf "%s\n" "$as_me: creating $ac_file" >&6;} 21071 fi 21072 # Neutralize special characters interpreted by sed in replacement strings. 21073 case $configure_input in #( 21074 *\&* | *\|* | *\\* ) 21075 ac_sed_conf_input=`printf "%s\n" "$configure_input" | 21076 sed 's/[\\\\&|]/\\\\&/g'`;; #( 21077 *) ac_sed_conf_input=$configure_input;; 21078 esac 21079 21080 case $ac_tag in 21081 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 21082 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 21083 esac 21084 ;; 21085 esac 21086 21087 ac_dir=`$as_dirname -- "$ac_file" || 21088$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21089 X"$ac_file" : 'X\(//\)[^/]' \| \ 21090 X"$ac_file" : 'X\(//\)$' \| \ 21091 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 21092printf "%s\n" X"$ac_file" | 21093 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 21094 s//\1/ 21095 q 21096 } 21097 /^X\(\/\/\)[^/].*/{ 21098 s//\1/ 21099 q 21100 } 21101 /^X\(\/\/\)$/{ 21102 s//\1/ 21103 q 21104 } 21105 /^X\(\/\).*/{ 21106 s//\1/ 21107 q 21108 } 21109 s/.*/./; q'` 21110 as_dir="$ac_dir"; as_fn_mkdir_p 21111 ac_builddir=. 21112 21113case "$ac_dir" in 21114.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 21115*) 21116 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 21117 # A ".." for each directory in $ac_dir_suffix. 21118 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 21119 case $ac_top_builddir_sub in 21120 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 21121 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 21122 esac ;; 21123esac 21124ac_abs_top_builddir=$ac_pwd 21125ac_abs_builddir=$ac_pwd$ac_dir_suffix 21126# for backward compatibility: 21127ac_top_builddir=$ac_top_build_prefix 21128 21129case $srcdir in 21130 .) # We are building in place. 21131 ac_srcdir=. 21132 ac_top_srcdir=$ac_top_builddir_sub 21133 ac_abs_top_srcdir=$ac_pwd ;; 21134 [\\/]* | ?:[\\/]* ) # Absolute name. 21135 ac_srcdir=$srcdir$ac_dir_suffix; 21136 ac_top_srcdir=$srcdir 21137 ac_abs_top_srcdir=$srcdir ;; 21138 *) # Relative name. 21139 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 21140 ac_top_srcdir=$ac_top_build_prefix$srcdir 21141 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 21142esac 21143ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 21144 21145 21146 case $ac_mode in 21147 :F) 21148 # 21149 # CONFIG_FILE 21150 # 21151 21152 case $INSTALL in 21153 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 21154 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 21155 esac 21156 ac_MKDIR_P=$MKDIR_P 21157 case $MKDIR_P in 21158 [\\/$]* | ?:[\\/]* ) ;; 21159 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 21160 esac 21161_ACEOF 21162 21163cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21164# If the template does not know about datarootdir, expand it. 21165# FIXME: This hack should be removed a few years after 2.60. 21166ac_datarootdir_hack=; ac_datarootdir_seen= 21167ac_sed_dataroot=' 21168/datarootdir/ { 21169 p 21170 q 21171} 21172/@datadir@/p 21173/@docdir@/p 21174/@infodir@/p 21175/@localedir@/p 21176/@mandir@/p' 21177case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 21178*datarootdir*) ac_datarootdir_seen=yes;; 21179*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 21180 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 21181printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 21182_ACEOF 21183cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21184 ac_datarootdir_hack=' 21185 s&@datadir@&$datadir&g 21186 s&@docdir@&$docdir&g 21187 s&@infodir@&$infodir&g 21188 s&@localedir@&$localedir&g 21189 s&@mandir@&$mandir&g 21190 s&\\\${datarootdir}&$datarootdir&g' ;; 21191esac 21192_ACEOF 21193 21194# Neutralize VPATH when `$srcdir' = `.'. 21195# Shell code in configure.ac might set extrasub. 21196# FIXME: do we really want to maintain this feature? 21197cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21198ac_sed_extra="$ac_vpsub 21199$extrasub 21200_ACEOF 21201cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21202:t 21203/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 21204s|@configure_input@|$ac_sed_conf_input|;t t 21205s&@top_builddir@&$ac_top_builddir_sub&;t t 21206s&@top_build_prefix@&$ac_top_build_prefix&;t t 21207s&@srcdir@&$ac_srcdir&;t t 21208s&@abs_srcdir@&$ac_abs_srcdir&;t t 21209s&@top_srcdir@&$ac_top_srcdir&;t t 21210s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 21211s&@builddir@&$ac_builddir&;t t 21212s&@abs_builddir@&$ac_abs_builddir&;t t 21213s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 21214s&@INSTALL@&$ac_INSTALL&;t t 21215s&@MKDIR_P@&$ac_MKDIR_P&;t t 21216$ac_datarootdir_hack 21217" 21218eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 21219 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 21220 21221test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 21222 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 21223 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 21224 "$ac_tmp/out"`; test -z "$ac_out"; } && 21225 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 21226which seems to be undefined. Please make sure it is defined" >&5 21227printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 21228which seems to be undefined. Please make sure it is defined" >&2;} 21229 21230 rm -f "$ac_tmp/stdin" 21231 case $ac_file in 21232 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 21233 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 21234 esac \ 21235 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 21236 ;; 21237 :H) 21238 # 21239 # CONFIG_HEADER 21240 # 21241 if test x"$ac_file" != x-; then 21242 { 21243 printf "%s\n" "/* $configure_input */" >&1 \ 21244 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 21245 } >"$ac_tmp/config.h" \ 21246 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 21247 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 21248 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 21249printf "%s\n" "$as_me: $ac_file is unchanged" >&6;} 21250 else 21251 rm -f "$ac_file" 21252 mv "$ac_tmp/config.h" "$ac_file" \ 21253 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 21254 fi 21255 else 21256 printf "%s\n" "/* $configure_input */" >&1 \ 21257 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 21258 || as_fn_error $? "could not create -" "$LINENO" 5 21259 fi 21260# Compute "$ac_file"'s index in $config_headers. 21261_am_arg="$ac_file" 21262_am_stamp_count=1 21263for _am_header in $config_headers :; do 21264 case $_am_header in 21265 $_am_arg | $_am_arg:* ) 21266 break ;; 21267 * ) 21268 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 21269 esac 21270done 21271echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 21272$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21273 X"$_am_arg" : 'X\(//\)[^/]' \| \ 21274 X"$_am_arg" : 'X\(//\)$' \| \ 21275 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 21276printf "%s\n" X"$_am_arg" | 21277 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 21278 s//\1/ 21279 q 21280 } 21281 /^X\(\/\/\)[^/].*/{ 21282 s//\1/ 21283 q 21284 } 21285 /^X\(\/\/\)$/{ 21286 s//\1/ 21287 q 21288 } 21289 /^X\(\/\).*/{ 21290 s//\1/ 21291 q 21292 } 21293 s/.*/./; q'`/stamp-h$_am_stamp_count 21294 ;; 21295 21296 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 21297printf "%s\n" "$as_me: executing $ac_file commands" >&6;} 21298 ;; 21299 esac 21300 21301 21302 case $ac_file$ac_mode in 21303 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 21304 # Older Autoconf quotes --file arguments for eval, but not when files 21305 # are listed without --file. Let's play safe and only enable the eval 21306 # if we detect the quoting. 21307 # TODO: see whether this extra hack can be removed once we start 21308 # requiring Autoconf 2.70 or later. 21309 case $CONFIG_FILES in #( 21310 *\'*) : 21311 eval set x "$CONFIG_FILES" ;; #( 21312 *) : 21313 set x $CONFIG_FILES ;; #( 21314 *) : 21315 ;; 21316esac 21317 shift 21318 # Used to flag and report bootstrapping failures. 21319 am_rc=0 21320 for am_mf 21321 do 21322 # Strip MF so we end up with the name of the file. 21323 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'` 21324 # Check whether this is an Automake generated Makefile which includes 21325 # dependency-tracking related rules and includes. 21326 # Grep'ing the whole file directly is not great: AIX grep has a line 21327 # limit of 2048, but all sed's we know have understand at least 4000. 21328 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \ 21329 || continue 21330 am_dirpart=`$as_dirname -- "$am_mf" || 21331$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21332 X"$am_mf" : 'X\(//\)[^/]' \| \ 21333 X"$am_mf" : 'X\(//\)$' \| \ 21334 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 21335printf "%s\n" X"$am_mf" | 21336 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 21337 s//\1/ 21338 q 21339 } 21340 /^X\(\/\/\)[^/].*/{ 21341 s//\1/ 21342 q 21343 } 21344 /^X\(\/\/\)$/{ 21345 s//\1/ 21346 q 21347 } 21348 /^X\(\/\).*/{ 21349 s//\1/ 21350 q 21351 } 21352 s/.*/./; q'` 21353 am_filepart=`$as_basename -- "$am_mf" || 21354$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \ 21355 X"$am_mf" : 'X\(//\)$' \| \ 21356 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 21357printf "%s\n" X/"$am_mf" | 21358 sed '/^.*\/\([^/][^/]*\)\/*$/{ 21359 s//\1/ 21360 q 21361 } 21362 /^X\/\(\/\/\)$/{ 21363 s//\1/ 21364 q 21365 } 21366 /^X\/\(\/\).*/{ 21367 s//\1/ 21368 q 21369 } 21370 s/.*/./; q'` 21371 { echo "$as_me:$LINENO: cd "$am_dirpart" \ 21372 && sed -e '/# am--include-marker/d' "$am_filepart" \ 21373 | $MAKE -f - am--depfiles" >&5 21374 (cd "$am_dirpart" \ 21375 && sed -e '/# am--include-marker/d' "$am_filepart" \ 21376 | $MAKE -f - am--depfiles) >&5 2>&5 21377 ac_status=$? 21378 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21379 (exit $ac_status); } || am_rc=$? 21380 done 21381 if test $am_rc -ne 0; then 21382 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 21383printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 21384as_fn_error $? "Something went wrong bootstrapping makefile fragments 21385 for automatic dependency tracking. If GNU make was not used, consider 21386 re-running the configure script with MAKE=\"gmake\" (or whatever is 21387 necessary). You can also try re-running configure with the 21388 '--disable-dependency-tracking' option to at least be able to build 21389 the package (albeit without support for automatic dependency tracking). 21390See \`config.log' for more details" "$LINENO" 5; } 21391 fi 21392 { am_dirpart=; unset am_dirpart;} 21393 { am_filepart=; unset am_filepart;} 21394 { am_mf=; unset am_mf;} 21395 { am_rc=; unset am_rc;} 21396 rm -f conftest-deps.mk 21397} 21398 ;; 21399 "libtool":C) 21400 21401 # See if we are running on zsh, and set the options that allow our 21402 # commands through without removal of \ escapes. 21403 if test -n "${ZSH_VERSION+set}"; then 21404 setopt NO_GLOB_SUBST 21405 fi 21406 21407 cfgfile=${ofile}T 21408 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 21409 $RM "$cfgfile" 21410 21411 cat <<_LT_EOF >> "$cfgfile" 21412#! $SHELL 21413# Generated automatically by $as_me ($PACKAGE) $VERSION 21414# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 21415# NOTE: Changes made to this file will be lost: look at ltmain.sh. 21416 21417# Provide generalized library-building support services. 21418# Written by Gordon Matzigkeit, 1996 21419 21420# Copyright (C) 2014 Free Software Foundation, Inc. 21421# This is free software; see the source for copying conditions. There is NO 21422# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 21423 21424# GNU Libtool is free software; you can redistribute it and/or modify 21425# it under the terms of the GNU General Public License as published by 21426# the Free Software Foundation; either version 2 of of the License, or 21427# (at your option) any later version. 21428# 21429# As a special exception to the GNU General Public License, if you 21430# distribute this file as part of a program or library that is built 21431# using GNU Libtool, you may include this file under the same 21432# distribution terms that you use for the rest of that program. 21433# 21434# GNU Libtool is distributed in the hope that it will be useful, but 21435# WITHOUT ANY WARRANTY; without even the implied warranty of 21436# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 21437# GNU General Public License for more details. 21438# 21439# You should have received a copy of the GNU General Public License 21440# along with this program. If not, see <http://www.gnu.org/licenses/>. 21441 21442 21443# The names of the tagged configurations supported by this script. 21444available_tags='' 21445 21446# Configured defaults for sys_lib_dlsearch_path munging. 21447: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} 21448 21449# ### BEGIN LIBTOOL CONFIG 21450 21451# Which release of libtool.m4 was used? 21452macro_version=$macro_version 21453macro_revision=$macro_revision 21454 21455# Whether or not to build shared libraries. 21456build_libtool_libs=$enable_shared 21457 21458# Whether or not to build static libraries. 21459build_old_libs=$enable_static 21460 21461# What type of objects to build. 21462pic_mode=$pic_mode 21463 21464# Whether or not to optimize for fast installation. 21465fast_install=$enable_fast_install 21466 21467# Shared archive member basename,for filename based shared library versioning on AIX. 21468shared_archive_member_spec=$shared_archive_member_spec 21469 21470# Shell to use when invoking shell scripts. 21471SHELL=$lt_SHELL 21472 21473# An echo program that protects backslashes. 21474ECHO=$lt_ECHO 21475 21476# The PATH separator for the build system. 21477PATH_SEPARATOR=$lt_PATH_SEPARATOR 21478 21479# The host system. 21480host_alias=$host_alias 21481host=$host 21482host_os=$host_os 21483 21484# The build system. 21485build_alias=$build_alias 21486build=$build 21487build_os=$build_os 21488 21489# A sed program that does not truncate output. 21490SED=$lt_SED 21491 21492# Sed that helps us avoid accidentally triggering echo(1) options like -n. 21493Xsed="\$SED -e 1s/^X//" 21494 21495# A grep program that handles long lines. 21496GREP=$lt_GREP 21497 21498# An ERE matcher. 21499EGREP=$lt_EGREP 21500 21501# A literal string matcher. 21502FGREP=$lt_FGREP 21503 21504# A BSD- or MS-compatible name lister. 21505NM=$lt_NM 21506 21507# Whether we need soft or hard links. 21508LN_S=$lt_LN_S 21509 21510# What is the maximum length of a command? 21511max_cmd_len=$max_cmd_len 21512 21513# Object file suffix (normally "o"). 21514objext=$ac_objext 21515 21516# Executable file suffix (normally ""). 21517exeext=$exeext 21518 21519# whether the shell understands "unset". 21520lt_unset=$lt_unset 21521 21522# turn spaces into newlines. 21523SP2NL=$lt_lt_SP2NL 21524 21525# turn newlines into spaces. 21526NL2SP=$lt_lt_NL2SP 21527 21528# convert \$build file names to \$host format. 21529to_host_file_cmd=$lt_cv_to_host_file_cmd 21530 21531# convert \$build files to toolchain format. 21532to_tool_file_cmd=$lt_cv_to_tool_file_cmd 21533 21534# A file(cmd) program that detects file types. 21535FILECMD=$lt_FILECMD 21536 21537# An object symbol dumper. 21538OBJDUMP=$lt_OBJDUMP 21539 21540# Method to check whether dependent libraries are shared objects. 21541deplibs_check_method=$lt_deplibs_check_method 21542 21543# Command to use when deplibs_check_method = "file_magic". 21544file_magic_cmd=$lt_file_magic_cmd 21545 21546# How to find potential files when deplibs_check_method = "file_magic". 21547file_magic_glob=$lt_file_magic_glob 21548 21549# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 21550want_nocaseglob=$lt_want_nocaseglob 21551 21552# DLL creation program. 21553DLLTOOL=$lt_DLLTOOL 21554 21555# Command to associate shared and link libraries. 21556sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 21557 21558# The archiver. 21559AR=$lt_AR 21560 21561# Flags to create an archive (by configure). 21562lt_ar_flags=$lt_ar_flags 21563 21564# Flags to create an archive. 21565AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"} 21566 21567# How to feed a file listing to the archiver. 21568archiver_list_spec=$lt_archiver_list_spec 21569 21570# A symbol stripping program. 21571STRIP=$lt_STRIP 21572 21573# Commands used to install an old-style archive. 21574RANLIB=$lt_RANLIB 21575old_postinstall_cmds=$lt_old_postinstall_cmds 21576old_postuninstall_cmds=$lt_old_postuninstall_cmds 21577 21578# Whether to use a lock for old archive extraction. 21579lock_old_archive_extraction=$lock_old_archive_extraction 21580 21581# A C compiler. 21582LTCC=$lt_CC 21583 21584# LTCC compiler flags. 21585LTCFLAGS=$lt_CFLAGS 21586 21587# Take the output of nm and produce a listing of raw symbols and C names. 21588global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 21589 21590# Transform the output of nm in a proper C declaration. 21591global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 21592 21593# Transform the output of nm into a list of symbols to manually relocate. 21594global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import 21595 21596# Transform the output of nm in a C name address pair. 21597global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 21598 21599# Transform the output of nm in a C name address pair when lib prefix is needed. 21600global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 21601 21602# The name lister interface. 21603nm_interface=$lt_lt_cv_nm_interface 21604 21605# Specify filename containing input files for \$NM. 21606nm_file_list_spec=$lt_nm_file_list_spec 21607 21608# The root where to search for dependent libraries,and where our libraries should be installed. 21609lt_sysroot=$lt_sysroot 21610 21611# Command to truncate a binary pipe. 21612lt_truncate_bin=$lt_lt_cv_truncate_bin 21613 21614# The name of the directory that contains temporary libtool files. 21615objdir=$objdir 21616 21617# Used to examine libraries when file_magic_cmd begins with "file". 21618MAGIC_CMD=$MAGIC_CMD 21619 21620# Must we lock files when doing compilation? 21621need_locks=$lt_need_locks 21622 21623# Manifest tool. 21624MANIFEST_TOOL=$lt_MANIFEST_TOOL 21625 21626# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 21627DSYMUTIL=$lt_DSYMUTIL 21628 21629# Tool to change global to local symbols on Mac OS X. 21630NMEDIT=$lt_NMEDIT 21631 21632# Tool to manipulate fat objects and archives on Mac OS X. 21633LIPO=$lt_LIPO 21634 21635# ldd/readelf like tool for Mach-O binaries on Mac OS X. 21636OTOOL=$lt_OTOOL 21637 21638# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 21639OTOOL64=$lt_OTOOL64 21640 21641# Old archive suffix (normally "a"). 21642libext=$libext 21643 21644# Shared library suffix (normally ".so"). 21645shrext_cmds=$lt_shrext_cmds 21646 21647# The commands to extract the exported symbol list from a shared archive. 21648extract_expsyms_cmds=$lt_extract_expsyms_cmds 21649 21650# Variables whose values should be saved in libtool wrapper scripts and 21651# restored at link time. 21652variables_saved_for_relink=$lt_variables_saved_for_relink 21653 21654# Do we need the "lib" prefix for modules? 21655need_lib_prefix=$need_lib_prefix 21656 21657# Do we need a version for libraries? 21658need_version=$need_version 21659 21660# Library versioning type. 21661version_type=$version_type 21662 21663# Shared library runtime path variable. 21664runpath_var=$runpath_var 21665 21666# Shared library path variable. 21667shlibpath_var=$shlibpath_var 21668 21669# Is shlibpath searched before the hard-coded library search path? 21670shlibpath_overrides_runpath=$shlibpath_overrides_runpath 21671 21672# Format of library name prefix. 21673libname_spec=$lt_libname_spec 21674 21675# List of archive names. First name is the real one, the rest are links. 21676# The last name is the one that the linker finds with -lNAME 21677library_names_spec=$lt_library_names_spec 21678 21679# The coded name of the library, if different from the real name. 21680soname_spec=$lt_soname_spec 21681 21682# Permission mode override for installation of shared libraries. 21683install_override_mode=$lt_install_override_mode 21684 21685# Command to use after installation of a shared archive. 21686postinstall_cmds=$lt_postinstall_cmds 21687 21688# Command to use after uninstallation of a shared archive. 21689postuninstall_cmds=$lt_postuninstall_cmds 21690 21691# Commands used to finish a libtool library installation in a directory. 21692finish_cmds=$lt_finish_cmds 21693 21694# As "finish_cmds", except a single script fragment to be evaled but 21695# not shown. 21696finish_eval=$lt_finish_eval 21697 21698# Whether we should hardcode library paths into libraries. 21699hardcode_into_libs=$hardcode_into_libs 21700 21701# Compile-time system search path for libraries. 21702sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 21703 21704# Detected run-time system search path for libraries. 21705sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path 21706 21707# Explicit LT_SYS_LIBRARY_PATH set during ./configure time. 21708configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path 21709 21710# Whether dlopen is supported. 21711dlopen_support=$enable_dlopen 21712 21713# Whether dlopen of programs is supported. 21714dlopen_self=$enable_dlopen_self 21715 21716# Whether dlopen of statically linked programs is supported. 21717dlopen_self_static=$enable_dlopen_self_static 21718 21719# Commands to strip libraries. 21720old_striplib=$lt_old_striplib 21721striplib=$lt_striplib 21722 21723 21724# The linker used to build libraries. 21725LD=$lt_LD 21726 21727# How to create reloadable object files. 21728reload_flag=$lt_reload_flag 21729reload_cmds=$lt_reload_cmds 21730 21731# Commands used to build an old-style archive. 21732old_archive_cmds=$lt_old_archive_cmds 21733 21734# A language specific compiler. 21735CC=$lt_compiler 21736 21737# Is the compiler the GNU compiler? 21738with_gcc=$GCC 21739 21740# Compiler flag to turn off builtin functions. 21741no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 21742 21743# Additional compiler flags for building library objects. 21744pic_flag=$lt_lt_prog_compiler_pic 21745 21746# How to pass a linker flag through the compiler. 21747wl=$lt_lt_prog_compiler_wl 21748 21749# Compiler flag to prevent dynamic linking. 21750link_static_flag=$lt_lt_prog_compiler_static 21751 21752# Does compiler simultaneously support -c and -o options? 21753compiler_c_o=$lt_lt_cv_prog_compiler_c_o 21754 21755# Whether or not to add -lc for building shared libraries. 21756build_libtool_need_lc=$archive_cmds_need_lc 21757 21758# Whether or not to disallow shared libs when runtime libs are static. 21759allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 21760 21761# Compiler flag to allow reflexive dlopens. 21762export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 21763 21764# Compiler flag to generate shared objects directly from archives. 21765whole_archive_flag_spec=$lt_whole_archive_flag_spec 21766 21767# Whether the compiler copes with passing no objects directly. 21768compiler_needs_object=$lt_compiler_needs_object 21769 21770# Create an old-style archive from a shared archive. 21771old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 21772 21773# Create a temporary old-style archive to link instead of a shared archive. 21774old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 21775 21776# Commands used to build a shared archive. 21777archive_cmds=$lt_archive_cmds 21778archive_expsym_cmds=$lt_archive_expsym_cmds 21779 21780# Commands used to build a loadable module if different from building 21781# a shared archive. 21782module_cmds=$lt_module_cmds 21783module_expsym_cmds=$lt_module_expsym_cmds 21784 21785# Whether we are building with GNU ld or not. 21786with_gnu_ld=$lt_with_gnu_ld 21787 21788# Flag that allows shared libraries with undefined symbols to be built. 21789allow_undefined_flag=$lt_allow_undefined_flag 21790 21791# Flag that enforces no undefined symbols. 21792no_undefined_flag=$lt_no_undefined_flag 21793 21794# Flag to hardcode \$libdir into a binary during linking. 21795# This must work even if \$libdir does not exist 21796hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 21797 21798# Whether we need a single "-rpath" flag with a separated argument. 21799hardcode_libdir_separator=$lt_hardcode_libdir_separator 21800 21801# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 21802# DIR into the resulting binary. 21803hardcode_direct=$hardcode_direct 21804 21805# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 21806# DIR into the resulting binary and the resulting library dependency is 21807# "absolute",i.e impossible to change by setting \$shlibpath_var if the 21808# library is relocated. 21809hardcode_direct_absolute=$hardcode_direct_absolute 21810 21811# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 21812# into the resulting binary. 21813hardcode_minus_L=$hardcode_minus_L 21814 21815# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 21816# into the resulting binary. 21817hardcode_shlibpath_var=$hardcode_shlibpath_var 21818 21819# Set to "yes" if building a shared library automatically hardcodes DIR 21820# into the library and all subsequent libraries and executables linked 21821# against it. 21822hardcode_automatic=$hardcode_automatic 21823 21824# Set to yes if linker adds runtime paths of dependent libraries 21825# to runtime path list. 21826inherit_rpath=$inherit_rpath 21827 21828# Whether libtool must link a program against all its dependency libraries. 21829link_all_deplibs=$link_all_deplibs 21830 21831# Set to "yes" if exported symbols are required. 21832always_export_symbols=$always_export_symbols 21833 21834# The commands to list exported symbols. 21835export_symbols_cmds=$lt_export_symbols_cmds 21836 21837# Symbols that should not be listed in the preloaded symbols. 21838exclude_expsyms=$lt_exclude_expsyms 21839 21840# Symbols that must always be exported. 21841include_expsyms=$lt_include_expsyms 21842 21843# Commands necessary for linking programs (against libraries) with templates. 21844prelink_cmds=$lt_prelink_cmds 21845 21846# Commands necessary for finishing linking programs. 21847postlink_cmds=$lt_postlink_cmds 21848 21849# Specify filename containing input files. 21850file_list_spec=$lt_file_list_spec 21851 21852# How to hardcode a shared library path into an executable. 21853hardcode_action=$hardcode_action 21854 21855# ### END LIBTOOL CONFIG 21856 21857_LT_EOF 21858 21859 cat <<'_LT_EOF' >> "$cfgfile" 21860 21861# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE 21862 21863# func_munge_path_list VARIABLE PATH 21864# ----------------------------------- 21865# VARIABLE is name of variable containing _space_ separated list of 21866# directories to be munged by the contents of PATH, which is string 21867# having a format: 21868# "DIR[:DIR]:" 21869# string "DIR[ DIR]" will be prepended to VARIABLE 21870# ":DIR[:DIR]" 21871# string "DIR[ DIR]" will be appended to VARIABLE 21872# "DIRP[:DIRP]::[DIRA:]DIRA" 21873# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 21874# "DIRA[ DIRA]" will be appended to VARIABLE 21875# "DIR[:DIR]" 21876# VARIABLE will be replaced by "DIR[ DIR]" 21877func_munge_path_list () 21878{ 21879 case x$2 in 21880 x) 21881 ;; 21882 *:) 21883 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 21884 ;; 21885 x:*) 21886 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 21887 ;; 21888 *::*) 21889 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 21890 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 21891 ;; 21892 *) 21893 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 21894 ;; 21895 esac 21896} 21897 21898 21899# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 21900func_cc_basename () 21901{ 21902 for cc_temp in $*""; do 21903 case $cc_temp in 21904 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 21905 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 21906 \-*) ;; 21907 *) break;; 21908 esac 21909 done 21910 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 21911} 21912 21913 21914# ### END FUNCTIONS SHARED WITH CONFIGURE 21915 21916_LT_EOF 21917 21918 case $host_os in 21919 aix3*) 21920 cat <<\_LT_EOF >> "$cfgfile" 21921# AIX sometimes has problems with the GCC collect2 program. For some 21922# reason, if we set the COLLECT_NAMES environment variable, the problems 21923# vanish in a puff of smoke. 21924if test set != "${COLLECT_NAMES+set}"; then 21925 COLLECT_NAMES= 21926 export COLLECT_NAMES 21927fi 21928_LT_EOF 21929 ;; 21930 esac 21931 21932 21933 21934ltmain=$ac_aux_dir/ltmain.sh 21935 21936 21937 # We use sed instead of cat because bash on DJGPP gets confused if 21938 # if finds mixed CR/LF and LF-only lines. Since sed operates in 21939 # text mode, it properly converts lines to CR/LF. This bash problem 21940 # is reportedly fixed, but why not run on old versions too? 21941 $SED '$q' "$ltmain" >> "$cfgfile" \ 21942 || (rm -f "$cfgfile"; exit 1) 21943 21944 mv -f "$cfgfile" "$ofile" || 21945 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 21946 chmod +x "$ofile" 21947 21948 ;; 21949 21950 esac 21951done # for ac_tag 21952 21953 21954as_fn_exit 0 21955_ACEOF 21956ac_clean_files=$ac_clean_files_save 21957 21958test $ac_write_fail = 0 || 21959 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 21960 21961 21962# configure is writing to config.log, and then calls config.status. 21963# config.status does its own redirection, appending to config.log. 21964# Unfortunately, on DOS this fails, as config.log is still kept open 21965# by configure, so config.status won't be able to write to it; its 21966# output is simply discarded. So we exec the FD to /dev/null, 21967# effectively closing config.log, so it can be properly (re)opened and 21968# appended to by config.status. When coming back to configure, we 21969# need to make the FD available again. 21970if test "$no_create" != yes; then 21971 ac_cs_success=: 21972 ac_config_status_args= 21973 test "$silent" = yes && 21974 ac_config_status_args="$ac_config_status_args --quiet" 21975 exec 5>/dev/null 21976 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 21977 exec 5>>config.log 21978 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 21979 # would make configure fail if this is the last instruction. 21980 $ac_cs_success || as_fn_exit 1 21981fi 21982if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 21983 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 21984printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 21985fi 21986 21987 21988