configure revision c6b4a769
1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.71 for libXi 1.8.2. 4# 5# Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libXi/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/libXi/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='libXi' 684PACKAGE_TARNAME='libXi' 685PACKAGE_VERSION='1.8.2' 686PACKAGE_STRING='libXi 1.8.2' 687PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/lib/libXi/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 727INSTALL_MANPAGES_FALSE 728INSTALL_MANPAGES_TRUE 729HAVE_DOCTOOLS_FALSE 730HAVE_DOCTOOLS_TRUE 731XFIXES_LIBS 732XFIXES_CFLAGS 733XI_LIBS 734XI_CFLAGS 735XTMALLOC_ZERO_CFLAGS 736XMALLOC_ZERO_CFLAGS 737MALLOC_ZERO_CFLAGS 738HAVE_ASCIIDOC_FALSE 739HAVE_ASCIIDOC_TRUE 740ASCIIDOC 741HAVE_STYLESHEETS_FALSE 742HAVE_STYLESHEETS_TRUE 743XSL_STYLESHEET 744STYLESHEET_SRCDIR 745XORG_SGML_PATH 746HAVE_XSLTPROC_FALSE 747HAVE_XSLTPROC_TRUE 748XSLTPROC 749HAVE_FOP_FALSE 750HAVE_FOP_TRUE 751FOP 752HAVE_XMLTO_FALSE 753HAVE_XMLTO_TRUE 754HAVE_XMLTO_TEXT_FALSE 755HAVE_XMLTO_TEXT_TRUE 756XMLTO 757ENABLE_SPECS_FALSE 758ENABLE_SPECS_TRUE 759ENABLE_DOCS_FALSE 760ENABLE_DOCS_TRUE 761MAN_SUBSTS 762XORG_MAN_PAGE 763ADMIN_MAN_DIR 764DRIVER_MAN_DIR 765MISC_MAN_DIR 766FILE_MAN_DIR 767LIB_MAN_DIR 768APP_MAN_DIR 769ADMIN_MAN_SUFFIX 770DRIVER_MAN_SUFFIX 771MISC_MAN_SUFFIX 772FILE_MAN_SUFFIX 773LIB_MAN_SUFFIX 774APP_MAN_SUFFIX 775INSTALL_CMD 776PKG_CONFIG_LIBDIR 777PKG_CONFIG_PATH 778PKG_CONFIG 779CHANGELOG_CMD 780STRICT_CFLAGS 781CWARNFLAGS 782BASE_CFLAGS 783LT_SYS_LIBRARY_PATH 784OTOOL64 785OTOOL 786LIPO 787NMEDIT 788DSYMUTIL 789MANIFEST_TOOL 790RANLIB 791ac_ct_AR 792AR 793DLLTOOL 794OBJDUMP 795FILECMD 796LN_S 797NM 798ac_ct_DUMPBIN 799DUMPBIN 800LD 801FGREP 802EGREP 803GREP 804SED 805am__fastdepCC_FALSE 806am__fastdepCC_TRUE 807CCDEPMODE 808am__nodep 809AMDEPBACKSLASH 810AMDEP_FALSE 811AMDEP_TRUE 812am__include 813DEPDIR 814OBJEXT 815EXEEXT 816ac_ct_CC 817CPPFLAGS 818LDFLAGS 819CFLAGS 820CC 821host_os 822host_vendor 823host_cpu 824host 825build_os 826build_vendor 827build_cpu 828build 829LIBTOOL 830AM_BACKSLASH 831AM_DEFAULT_VERBOSITY 832AM_DEFAULT_V 833AM_V 834CSCOPE 835ETAGS 836CTAGS 837am__untar 838am__tar 839AMTAR 840am__leading_dot 841SET_MAKE 842AWK 843mkdir_p 844MKDIR_P 845INSTALL_STRIP_PROGRAM 846STRIP 847install_sh 848MAKEINFO 849AUTOHEADER 850AUTOMAKE 851AUTOCONF 852ACLOCAL 853VERSION 854PACKAGE 855CYGPATH_W 856am__isrc 857INSTALL_DATA 858INSTALL_SCRIPT 859INSTALL_PROGRAM 860target_alias 861host_alias 862build_alias 863LIBS 864ECHO_T 865ECHO_N 866ECHO_C 867DEFS 868mandir 869localedir 870libdir 871psdir 872pdfdir 873dvidir 874htmldir 875infodir 876docdir 877oldincludedir 878includedir 879runstatedir 880localstatedir 881sharedstatedir 882sysconfdir 883datadir 884datarootdir 885libexecdir 886sbindir 887bindir 888program_transform_name 889prefix 890exec_prefix 891PACKAGE_URL 892PACKAGE_BUGREPORT 893PACKAGE_STRING 894PACKAGE_VERSION 895PACKAGE_TARNAME 896PACKAGE_NAME 897PATH_SEPARATOR 898SHELL 899am__quote' 900ac_subst_files='' 901ac_user_opts=' 902enable_option_checking 903enable_silent_rules 904enable_shared 905enable_static 906with_pic 907enable_fast_install 908with_aix_soname 909enable_dependency_tracking 910with_gnu_ld 911with_sysroot 912enable_libtool_lock 913enable_selective_werror 914enable_strict_compilation 915enable_docs 916enable_specs 917with_xmlto 918with_fop 919with_xsltproc 920with_asciidoc 921enable_malloc0returnsnull 922' 923 ac_precious_vars='build_alias 924host_alias 925target_alias 926CC 927CFLAGS 928LDFLAGS 929LIBS 930CPPFLAGS 931LT_SYS_LIBRARY_PATH 932PKG_CONFIG 933PKG_CONFIG_PATH 934PKG_CONFIG_LIBDIR 935XMLTO 936FOP 937XSLTPROC 938ASCIIDOC 939XI_CFLAGS 940XI_LIBS 941XFIXES_CFLAGS 942XFIXES_LIBS' 943 944 945# Initialize some variables set by options. 946ac_init_help= 947ac_init_version=false 948ac_unrecognized_opts= 949ac_unrecognized_sep= 950# The variables have the same names as the options, with 951# dashes changed to underlines. 952cache_file=/dev/null 953exec_prefix=NONE 954no_create= 955no_recursion= 956prefix=NONE 957program_prefix=NONE 958program_suffix=NONE 959program_transform_name=s,x,x, 960silent= 961site= 962srcdir= 963verbose= 964x_includes=NONE 965x_libraries=NONE 966 967# Installation directory options. 968# These are left unexpanded so users can "make install exec_prefix=/foo" 969# and all the variables that are supposed to be based on exec_prefix 970# by default will actually change. 971# Use braces instead of parens because sh, perl, etc. also accept them. 972# (The list follows the same order as the GNU Coding Standards.) 973bindir='${exec_prefix}/bin' 974sbindir='${exec_prefix}/sbin' 975libexecdir='${exec_prefix}/libexec' 976datarootdir='${prefix}/share' 977datadir='${datarootdir}' 978sysconfdir='${prefix}/etc' 979sharedstatedir='${prefix}/com' 980localstatedir='${prefix}/var' 981runstatedir='${localstatedir}/run' 982includedir='${prefix}/include' 983oldincludedir='/usr/include' 984docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 985infodir='${datarootdir}/info' 986htmldir='${docdir}' 987dvidir='${docdir}' 988pdfdir='${docdir}' 989psdir='${docdir}' 990libdir='${exec_prefix}/lib' 991localedir='${datarootdir}/locale' 992mandir='${datarootdir}/man' 993 994ac_prev= 995ac_dashdash= 996for ac_option 997do 998 # If the previous option needs an argument, assign it. 999 if test -n "$ac_prev"; then 1000 eval $ac_prev=\$ac_option 1001 ac_prev= 1002 continue 1003 fi 1004 1005 case $ac_option in 1006 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 1007 *=) ac_optarg= ;; 1008 *) ac_optarg=yes ;; 1009 esac 1010 1011 case $ac_dashdash$ac_option in 1012 --) 1013 ac_dashdash=yes ;; 1014 1015 -bindir | --bindir | --bindi | --bind | --bin | --bi) 1016 ac_prev=bindir ;; 1017 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 1018 bindir=$ac_optarg ;; 1019 1020 -build | --build | --buil | --bui | --bu) 1021 ac_prev=build_alias ;; 1022 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 1023 build_alias=$ac_optarg ;; 1024 1025 -cache-file | --cache-file | --cache-fil | --cache-fi \ 1026 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 1027 ac_prev=cache_file ;; 1028 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 1029 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 1030 cache_file=$ac_optarg ;; 1031 1032 --config-cache | -C) 1033 cache_file=config.cache ;; 1034 1035 -datadir | --datadir | --datadi | --datad) 1036 ac_prev=datadir ;; 1037 -datadir=* | --datadir=* | --datadi=* | --datad=*) 1038 datadir=$ac_optarg ;; 1039 1040 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 1041 | --dataroo | --dataro | --datar) 1042 ac_prev=datarootdir ;; 1043 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 1044 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 1045 datarootdir=$ac_optarg ;; 1046 1047 -disable-* | --disable-*) 1048 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 1049 # Reject names that are not valid shell variable names. 1050 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1051 as_fn_error $? "invalid feature name: \`$ac_useropt'" 1052 ac_useropt_orig=$ac_useropt 1053 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1054 case $ac_user_opts in 1055 *" 1056"enable_$ac_useropt" 1057"*) ;; 1058 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 1059 ac_unrecognized_sep=', ';; 1060 esac 1061 eval enable_$ac_useropt=no ;; 1062 1063 -docdir | --docdir | --docdi | --doc | --do) 1064 ac_prev=docdir ;; 1065 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1066 docdir=$ac_optarg ;; 1067 1068 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1069 ac_prev=dvidir ;; 1070 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1071 dvidir=$ac_optarg ;; 1072 1073 -enable-* | --enable-*) 1074 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1075 # Reject names that are not valid shell variable names. 1076 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1077 as_fn_error $? "invalid feature name: \`$ac_useropt'" 1078 ac_useropt_orig=$ac_useropt 1079 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1080 case $ac_user_opts in 1081 *" 1082"enable_$ac_useropt" 1083"*) ;; 1084 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1085 ac_unrecognized_sep=', ';; 1086 esac 1087 eval enable_$ac_useropt=\$ac_optarg ;; 1088 1089 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1090 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1091 | --exec | --exe | --ex) 1092 ac_prev=exec_prefix ;; 1093 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1094 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1095 | --exec=* | --exe=* | --ex=*) 1096 exec_prefix=$ac_optarg ;; 1097 1098 -gas | --gas | --ga | --g) 1099 # Obsolete; use --with-gas. 1100 with_gas=yes ;; 1101 1102 -help | --help | --hel | --he | -h) 1103 ac_init_help=long ;; 1104 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1105 ac_init_help=recursive ;; 1106 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1107 ac_init_help=short ;; 1108 1109 -host | --host | --hos | --ho) 1110 ac_prev=host_alias ;; 1111 -host=* | --host=* | --hos=* | --ho=*) 1112 host_alias=$ac_optarg ;; 1113 1114 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1115 ac_prev=htmldir ;; 1116 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1117 | --ht=*) 1118 htmldir=$ac_optarg ;; 1119 1120 -includedir | --includedir | --includedi | --included | --include \ 1121 | --includ | --inclu | --incl | --inc) 1122 ac_prev=includedir ;; 1123 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1124 | --includ=* | --inclu=* | --incl=* | --inc=*) 1125 includedir=$ac_optarg ;; 1126 1127 -infodir | --infodir | --infodi | --infod | --info | --inf) 1128 ac_prev=infodir ;; 1129 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1130 infodir=$ac_optarg ;; 1131 1132 -libdir | --libdir | --libdi | --libd) 1133 ac_prev=libdir ;; 1134 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1135 libdir=$ac_optarg ;; 1136 1137 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1138 | --libexe | --libex | --libe) 1139 ac_prev=libexecdir ;; 1140 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1141 | --libexe=* | --libex=* | --libe=*) 1142 libexecdir=$ac_optarg ;; 1143 1144 -localedir | --localedir | --localedi | --localed | --locale) 1145 ac_prev=localedir ;; 1146 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1147 localedir=$ac_optarg ;; 1148 1149 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1150 | --localstate | --localstat | --localsta | --localst | --locals) 1151 ac_prev=localstatedir ;; 1152 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1153 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1154 localstatedir=$ac_optarg ;; 1155 1156 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1157 ac_prev=mandir ;; 1158 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1159 mandir=$ac_optarg ;; 1160 1161 -nfp | --nfp | --nf) 1162 # Obsolete; use --without-fp. 1163 with_fp=no ;; 1164 1165 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1166 | --no-cr | --no-c | -n) 1167 no_create=yes ;; 1168 1169 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1170 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1171 no_recursion=yes ;; 1172 1173 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1174 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1175 | --oldin | --oldi | --old | --ol | --o) 1176 ac_prev=oldincludedir ;; 1177 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1178 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1179 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1180 oldincludedir=$ac_optarg ;; 1181 1182 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1183 ac_prev=prefix ;; 1184 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1185 prefix=$ac_optarg ;; 1186 1187 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1188 | --program-pre | --program-pr | --program-p) 1189 ac_prev=program_prefix ;; 1190 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1191 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1192 program_prefix=$ac_optarg ;; 1193 1194 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1195 | --program-suf | --program-su | --program-s) 1196 ac_prev=program_suffix ;; 1197 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1198 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1199 program_suffix=$ac_optarg ;; 1200 1201 -program-transform-name | --program-transform-name \ 1202 | --program-transform-nam | --program-transform-na \ 1203 | --program-transform-n | --program-transform- \ 1204 | --program-transform | --program-transfor \ 1205 | --program-transfo | --program-transf \ 1206 | --program-trans | --program-tran \ 1207 | --progr-tra | --program-tr | --program-t) 1208 ac_prev=program_transform_name ;; 1209 -program-transform-name=* | --program-transform-name=* \ 1210 | --program-transform-nam=* | --program-transform-na=* \ 1211 | --program-transform-n=* | --program-transform-=* \ 1212 | --program-transform=* | --program-transfor=* \ 1213 | --program-transfo=* | --program-transf=* \ 1214 | --program-trans=* | --program-tran=* \ 1215 | --progr-tra=* | --program-tr=* | --program-t=*) 1216 program_transform_name=$ac_optarg ;; 1217 1218 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1219 ac_prev=pdfdir ;; 1220 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1221 pdfdir=$ac_optarg ;; 1222 1223 -psdir | --psdir | --psdi | --psd | --ps) 1224 ac_prev=psdir ;; 1225 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1226 psdir=$ac_optarg ;; 1227 1228 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1229 | -silent | --silent | --silen | --sile | --sil) 1230 silent=yes ;; 1231 1232 -runstatedir | --runstatedir | --runstatedi | --runstated \ 1233 | --runstate | --runstat | --runsta | --runst | --runs \ 1234 | --run | --ru | --r) 1235 ac_prev=runstatedir ;; 1236 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ 1237 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ 1238 | --run=* | --ru=* | --r=*) 1239 runstatedir=$ac_optarg ;; 1240 1241 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1242 ac_prev=sbindir ;; 1243 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1244 | --sbi=* | --sb=*) 1245 sbindir=$ac_optarg ;; 1246 1247 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1248 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1249 | --sharedst | --shareds | --shared | --share | --shar \ 1250 | --sha | --sh) 1251 ac_prev=sharedstatedir ;; 1252 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1253 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1254 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1255 | --sha=* | --sh=*) 1256 sharedstatedir=$ac_optarg ;; 1257 1258 -site | --site | --sit) 1259 ac_prev=site ;; 1260 -site=* | --site=* | --sit=*) 1261 site=$ac_optarg ;; 1262 1263 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1264 ac_prev=srcdir ;; 1265 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1266 srcdir=$ac_optarg ;; 1267 1268 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1269 | --syscon | --sysco | --sysc | --sys | --sy) 1270 ac_prev=sysconfdir ;; 1271 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1272 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1273 sysconfdir=$ac_optarg ;; 1274 1275 -target | --target | --targe | --targ | --tar | --ta | --t) 1276 ac_prev=target_alias ;; 1277 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1278 target_alias=$ac_optarg ;; 1279 1280 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1281 verbose=yes ;; 1282 1283 -version | --version | --versio | --versi | --vers | -V) 1284 ac_init_version=: ;; 1285 1286 -with-* | --with-*) 1287 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1288 # Reject names that are not valid shell variable names. 1289 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1290 as_fn_error $? "invalid package name: \`$ac_useropt'" 1291 ac_useropt_orig=$ac_useropt 1292 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1293 case $ac_user_opts in 1294 *" 1295"with_$ac_useropt" 1296"*) ;; 1297 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1298 ac_unrecognized_sep=', ';; 1299 esac 1300 eval with_$ac_useropt=\$ac_optarg ;; 1301 1302 -without-* | --without-*) 1303 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1304 # Reject names that are not valid shell variable names. 1305 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1306 as_fn_error $? "invalid package name: \`$ac_useropt'" 1307 ac_useropt_orig=$ac_useropt 1308 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1309 case $ac_user_opts in 1310 *" 1311"with_$ac_useropt" 1312"*) ;; 1313 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1314 ac_unrecognized_sep=', ';; 1315 esac 1316 eval with_$ac_useropt=no ;; 1317 1318 --x) 1319 # Obsolete; use --with-x. 1320 with_x=yes ;; 1321 1322 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1323 | --x-incl | --x-inc | --x-in | --x-i) 1324 ac_prev=x_includes ;; 1325 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1326 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1327 x_includes=$ac_optarg ;; 1328 1329 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1330 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1331 ac_prev=x_libraries ;; 1332 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1333 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1334 x_libraries=$ac_optarg ;; 1335 1336 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1337Try \`$0 --help' for more information" 1338 ;; 1339 1340 *=*) 1341 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1342 # Reject names that are not valid shell variable names. 1343 case $ac_envvar in #( 1344 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1345 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1346 esac 1347 eval $ac_envvar=\$ac_optarg 1348 export $ac_envvar ;; 1349 1350 *) 1351 # FIXME: should be removed in autoconf 3.0. 1352 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2 1353 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1354 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2 1355 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1356 ;; 1357 1358 esac 1359done 1360 1361if test -n "$ac_prev"; then 1362 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1363 as_fn_error $? "missing argument to $ac_option" 1364fi 1365 1366if test -n "$ac_unrecognized_opts"; then 1367 case $enable_option_checking in 1368 no) ;; 1369 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1370 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1371 esac 1372fi 1373 1374# Check all directory arguments for consistency. 1375for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1376 datadir sysconfdir sharedstatedir localstatedir includedir \ 1377 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1378 libdir localedir mandir runstatedir 1379do 1380 eval ac_val=\$$ac_var 1381 # Remove trailing slashes. 1382 case $ac_val in 1383 */ ) 1384 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1385 eval $ac_var=\$ac_val;; 1386 esac 1387 # Be sure to have absolute directory names. 1388 case $ac_val in 1389 [\\/$]* | ?:[\\/]* ) continue;; 1390 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1391 esac 1392 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1393done 1394 1395# There might be people who depend on the old broken behavior: `$host' 1396# used to hold the argument of --host etc. 1397# FIXME: To remove some day. 1398build=$build_alias 1399host=$host_alias 1400target=$target_alias 1401 1402# FIXME: To remove some day. 1403if test "x$host_alias" != x; then 1404 if test "x$build_alias" = x; then 1405 cross_compiling=maybe 1406 elif test "x$build_alias" != "x$host_alias"; then 1407 cross_compiling=yes 1408 fi 1409fi 1410 1411ac_tool_prefix= 1412test -n "$host_alias" && ac_tool_prefix=$host_alias- 1413 1414test "$silent" = yes && exec 6>/dev/null 1415 1416 1417ac_pwd=`pwd` && test -n "$ac_pwd" && 1418ac_ls_di=`ls -di .` && 1419ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1420 as_fn_error $? "working directory cannot be determined" 1421test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1422 as_fn_error $? "pwd does not report name of working directory" 1423 1424 1425# Find the source files, if location was not specified. 1426if test -z "$srcdir"; then 1427 ac_srcdir_defaulted=yes 1428 # Try the directory containing this script, then the parent directory. 1429 ac_confdir=`$as_dirname -- "$as_myself" || 1430$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1431 X"$as_myself" : 'X\(//\)[^/]' \| \ 1432 X"$as_myself" : 'X\(//\)$' \| \ 1433 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1434printf "%s\n" X"$as_myself" | 1435 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1436 s//\1/ 1437 q 1438 } 1439 /^X\(\/\/\)[^/].*/{ 1440 s//\1/ 1441 q 1442 } 1443 /^X\(\/\/\)$/{ 1444 s//\1/ 1445 q 1446 } 1447 /^X\(\/\).*/{ 1448 s//\1/ 1449 q 1450 } 1451 s/.*/./; q'` 1452 srcdir=$ac_confdir 1453 if test ! -r "$srcdir/$ac_unique_file"; then 1454 srcdir=.. 1455 fi 1456else 1457 ac_srcdir_defaulted=no 1458fi 1459if test ! -r "$srcdir/$ac_unique_file"; then 1460 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1461 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1462fi 1463ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1464ac_abs_confdir=`( 1465 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1466 pwd)` 1467# When building in place, set srcdir=. 1468if test "$ac_abs_confdir" = "$ac_pwd"; then 1469 srcdir=. 1470fi 1471# Remove unnecessary trailing slashes from srcdir. 1472# Double slashes in file names in object file debugging info 1473# mess up M-x gdb in Emacs. 1474case $srcdir in 1475*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1476esac 1477for ac_var in $ac_precious_vars; do 1478 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1479 eval ac_env_${ac_var}_value=\$${ac_var} 1480 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1481 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1482done 1483 1484# 1485# Report the --help message. 1486# 1487if test "$ac_init_help" = "long"; then 1488 # Omit some internal or obsolete options to make the list less imposing. 1489 # This message is too long to be a string in the A/UX 3.1 sh. 1490 cat <<_ACEOF 1491\`configure' configures libXi 1.8.2 to adapt to many kinds of systems. 1492 1493Usage: $0 [OPTION]... [VAR=VALUE]... 1494 1495To assign environment variables (e.g., CC, CFLAGS...), specify them as 1496VAR=VALUE. See below for descriptions of some of the useful variables. 1497 1498Defaults for the options are specified in brackets. 1499 1500Configuration: 1501 -h, --help display this help and exit 1502 --help=short display options specific to this package 1503 --help=recursive display the short help of all the included packages 1504 -V, --version display version information and exit 1505 -q, --quiet, --silent do not print \`checking ...' messages 1506 --cache-file=FILE cache test results in FILE [disabled] 1507 -C, --config-cache alias for \`--cache-file=config.cache' 1508 -n, --no-create do not create output files 1509 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1510 1511Installation directories: 1512 --prefix=PREFIX install architecture-independent files in PREFIX 1513 [$ac_default_prefix] 1514 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1515 [PREFIX] 1516 1517By default, \`make install' will install all the files in 1518\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1519an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1520for instance \`--prefix=\$HOME'. 1521 1522For better control, use the options below. 1523 1524Fine tuning of the installation directories: 1525 --bindir=DIR user executables [EPREFIX/bin] 1526 --sbindir=DIR system admin executables [EPREFIX/sbin] 1527 --libexecdir=DIR program executables [EPREFIX/libexec] 1528 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1529 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1530 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1531 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] 1532 --libdir=DIR object code libraries [EPREFIX/lib] 1533 --includedir=DIR C header files [PREFIX/include] 1534 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1535 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1536 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1537 --infodir=DIR info documentation [DATAROOTDIR/info] 1538 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1539 --mandir=DIR man documentation [DATAROOTDIR/man] 1540 --docdir=DIR documentation root [DATAROOTDIR/doc/libXi] 1541 --htmldir=DIR html documentation [DOCDIR] 1542 --dvidir=DIR dvi documentation [DOCDIR] 1543 --pdfdir=DIR pdf documentation [DOCDIR] 1544 --psdir=DIR ps documentation [DOCDIR] 1545_ACEOF 1546 1547 cat <<\_ACEOF 1548 1549Program names: 1550 --program-prefix=PREFIX prepend PREFIX to installed program names 1551 --program-suffix=SUFFIX append SUFFIX to installed program names 1552 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1553 1554System types: 1555 --build=BUILD configure for building on BUILD [guessed] 1556 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1557_ACEOF 1558fi 1559 1560if test -n "$ac_init_help"; then 1561 case $ac_init_help in 1562 short | recursive ) echo "Configuration of libXi 1.8.2:";; 1563 esac 1564 cat <<\_ACEOF 1565 1566Optional Features: 1567 --disable-option-checking ignore unrecognized --enable/--with options 1568 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1569 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1570 --enable-silent-rules less verbose build output (undo: "make V=1") 1571 --disable-silent-rules verbose build output (undo: "make V=0") 1572 --enable-shared[=PKGS] build shared libraries [default=yes] 1573 --enable-static[=PKGS] build static libraries [default=yes] 1574 --enable-fast-install[=PKGS] 1575 optimize for fast installation [default=yes] 1576 --enable-dependency-tracking 1577 do not reject slow dependency extractors 1578 --disable-dependency-tracking 1579 speeds up one-time build 1580 --disable-libtool-lock avoid locking (might break parallel builds) 1581 --disable-selective-werror 1582 Turn off selective compiler errors. (default: 1583 enabled) 1584 --enable-strict-compilation 1585 Enable all warnings from compiler and make them 1586 errors (default: disabled) 1587 --enable-docs Enable building the documentation (default: yes) 1588 --enable-specs Enable building the specs (default: yes) 1589 --enable-malloc0returnsnull 1590 malloc(0) returns NULL (default: auto) 1591 1592Optional Packages: 1593 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1594 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1595 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1596 both] 1597 --with-aix-soname=aix|svr4|both 1598 shared library versioning (aka "SONAME") variant to 1599 provide on AIX, [default=aix]. 1600 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1601 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the 1602 compiler's sysroot if not specified). 1603 --with-xmlto Use xmlto to regenerate documentation (default: 1604 auto) 1605 --with-fop Use fop to regenerate documentation (default: auto) 1606 --with-xsltproc Use xsltproc for the transformation of XML documents 1607 (default: auto) 1608 --with-asciidoc Use asciidoc to regenerate documentation (default: 1609 auto) 1610 1611Some influential environment variables: 1612 CC C compiler command 1613 CFLAGS C compiler flags 1614 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1615 nonstandard directory <lib dir> 1616 LIBS libraries to pass to the linker, e.g. -l<library> 1617 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1618 you have headers in a nonstandard directory <include dir> 1619 LT_SYS_LIBRARY_PATH 1620 User-defined run-time library search path. 1621 PKG_CONFIG path to pkg-config utility 1622 PKG_CONFIG_PATH 1623 directories to add to pkg-config's search path 1624 PKG_CONFIG_LIBDIR 1625 path overriding pkg-config's built-in search path 1626 XMLTO Path to xmlto command 1627 FOP Path to fop command 1628 XSLTPROC Path to xsltproc command 1629 ASCIIDOC Path to asciidoc command 1630 XI_CFLAGS C compiler flags for XI, overriding pkg-config 1631 XI_LIBS linker flags for XI, overriding pkg-config 1632 XFIXES_CFLAGS 1633 C compiler flags for XFIXES, overriding pkg-config 1634 XFIXES_LIBS linker flags for XFIXES, overriding pkg-config 1635 1636Use these variables to override the choices made by `configure' or to help 1637it to find libraries and programs with nonstandard names/locations. 1638 1639Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libXi/issues>. 1640_ACEOF 1641ac_status=$? 1642fi 1643 1644if test "$ac_init_help" = "recursive"; then 1645 # If there are subdirs, report their specific --help. 1646 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1647 test -d "$ac_dir" || 1648 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1649 continue 1650 ac_builddir=. 1651 1652case "$ac_dir" in 1653.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1654*) 1655 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 1656 # A ".." for each directory in $ac_dir_suffix. 1657 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1658 case $ac_top_builddir_sub in 1659 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1660 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1661 esac ;; 1662esac 1663ac_abs_top_builddir=$ac_pwd 1664ac_abs_builddir=$ac_pwd$ac_dir_suffix 1665# for backward compatibility: 1666ac_top_builddir=$ac_top_build_prefix 1667 1668case $srcdir in 1669 .) # We are building in place. 1670 ac_srcdir=. 1671 ac_top_srcdir=$ac_top_builddir_sub 1672 ac_abs_top_srcdir=$ac_pwd ;; 1673 [\\/]* | ?:[\\/]* ) # Absolute name. 1674 ac_srcdir=$srcdir$ac_dir_suffix; 1675 ac_top_srcdir=$srcdir 1676 ac_abs_top_srcdir=$srcdir ;; 1677 *) # Relative name. 1678 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1679 ac_top_srcdir=$ac_top_build_prefix$srcdir 1680 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1681esac 1682ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1683 1684 cd "$ac_dir" || { ac_status=$?; continue; } 1685 # Check for configure.gnu first; this name is used for a wrapper for 1686 # Metaconfig's "Configure" on case-insensitive file systems. 1687 if test -f "$ac_srcdir/configure.gnu"; then 1688 echo && 1689 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1690 elif test -f "$ac_srcdir/configure"; then 1691 echo && 1692 $SHELL "$ac_srcdir/configure" --help=recursive 1693 else 1694 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1695 fi || ac_status=$? 1696 cd "$ac_pwd" || { ac_status=$?; break; } 1697 done 1698fi 1699 1700test -n "$ac_init_help" && exit $ac_status 1701if $ac_init_version; then 1702 cat <<\_ACEOF 1703libXi configure 1.8.2 1704generated by GNU Autoconf 2.71 1705 1706Copyright (C) 2021 Free Software Foundation, Inc. 1707This configure script is free software; the Free Software Foundation 1708gives unlimited permission to copy, distribute and modify it. 1709_ACEOF 1710 exit 1711fi 1712 1713## ------------------------ ## 1714## Autoconf initialization. ## 1715## ------------------------ ## 1716 1717# ac_fn_c_try_compile LINENO 1718# -------------------------- 1719# Try to compile conftest.$ac_ext, and return whether this succeeded. 1720ac_fn_c_try_compile () 1721{ 1722 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1723 rm -f conftest.$ac_objext conftest.beam 1724 if { { ac_try="$ac_compile" 1725case "(($ac_try" in 1726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1727 *) ac_try_echo=$ac_try;; 1728esac 1729eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1730printf "%s\n" "$ac_try_echo"; } >&5 1731 (eval "$ac_compile") 2>conftest.err 1732 ac_status=$? 1733 if test -s conftest.err; then 1734 grep -v '^ *+' conftest.err >conftest.er1 1735 cat conftest.er1 >&5 1736 mv -f conftest.er1 conftest.err 1737 fi 1738 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1739 test $ac_status = 0; } && { 1740 test -z "$ac_c_werror_flag" || 1741 test ! -s conftest.err 1742 } && test -s conftest.$ac_objext 1743then : 1744 ac_retval=0 1745else $as_nop 1746 printf "%s\n" "$as_me: failed program was:" >&5 1747sed 's/^/| /' conftest.$ac_ext >&5 1748 1749 ac_retval=1 1750fi 1751 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1752 as_fn_set_status $ac_retval 1753 1754} # ac_fn_c_try_compile 1755 1756# ac_fn_c_try_link LINENO 1757# ----------------------- 1758# Try to link conftest.$ac_ext, and return whether this succeeded. 1759ac_fn_c_try_link () 1760{ 1761 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1762 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext 1763 if { { ac_try="$ac_link" 1764case "(($ac_try" in 1765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1766 *) ac_try_echo=$ac_try;; 1767esac 1768eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1769printf "%s\n" "$ac_try_echo"; } >&5 1770 (eval "$ac_link") 2>conftest.err 1771 ac_status=$? 1772 if test -s conftest.err; then 1773 grep -v '^ *+' conftest.err >conftest.er1 1774 cat conftest.er1 >&5 1775 mv -f conftest.er1 conftest.err 1776 fi 1777 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1778 test $ac_status = 0; } && { 1779 test -z "$ac_c_werror_flag" || 1780 test ! -s conftest.err 1781 } && test -s conftest$ac_exeext && { 1782 test "$cross_compiling" = yes || 1783 test -x conftest$ac_exeext 1784 } 1785then : 1786 ac_retval=0 1787else $as_nop 1788 printf "%s\n" "$as_me: failed program was:" >&5 1789sed 's/^/| /' conftest.$ac_ext >&5 1790 1791 ac_retval=1 1792fi 1793 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1794 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1795 # interfere with the next link command; also delete a directory that is 1796 # left behind by Apple's compiler. We do this before executing the actions. 1797 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1798 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1799 as_fn_set_status $ac_retval 1800 1801} # ac_fn_c_try_link 1802 1803# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1804# ------------------------------------------------------- 1805# Tests whether HEADER exists and can be compiled using the include files in 1806# INCLUDES, setting the cache variable VAR accordingly. 1807ac_fn_c_check_header_compile () 1808{ 1809 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1810 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1811printf %s "checking for $2... " >&6; } 1812if eval test \${$3+y} 1813then : 1814 printf %s "(cached) " >&6 1815else $as_nop 1816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1817/* end confdefs.h. */ 1818$4 1819#include <$2> 1820_ACEOF 1821if ac_fn_c_try_compile "$LINENO" 1822then : 1823 eval "$3=yes" 1824else $as_nop 1825 eval "$3=no" 1826fi 1827rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1828fi 1829eval ac_res=\$$3 1830 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1831printf "%s\n" "$ac_res" >&6; } 1832 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1833 1834} # ac_fn_c_check_header_compile 1835 1836# ac_fn_c_check_func LINENO FUNC VAR 1837# ---------------------------------- 1838# Tests whether FUNC exists, setting the cache variable VAR accordingly 1839ac_fn_c_check_func () 1840{ 1841 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1842 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1843printf %s "checking for $2... " >&6; } 1844if eval test \${$3+y} 1845then : 1846 printf %s "(cached) " >&6 1847else $as_nop 1848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1849/* end confdefs.h. */ 1850/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1851 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1852#define $2 innocuous_$2 1853 1854/* System header to define __stub macros and hopefully few prototypes, 1855 which can conflict with char $2 (); below. */ 1856 1857#include <limits.h> 1858#undef $2 1859 1860/* Override any GCC internal prototype to avoid an error. 1861 Use char because int might match the return type of a GCC 1862 builtin and then its argument prototype would still apply. */ 1863#ifdef __cplusplus 1864extern "C" 1865#endif 1866char $2 (); 1867/* The GNU C library defines this for functions which it implements 1868 to always fail with ENOSYS. Some functions are actually named 1869 something starting with __ and the normal name is an alias. */ 1870#if defined __stub_$2 || defined __stub___$2 1871choke me 1872#endif 1873 1874int 1875main (void) 1876{ 1877return $2 (); 1878 ; 1879 return 0; 1880} 1881_ACEOF 1882if ac_fn_c_try_link "$LINENO" 1883then : 1884 eval "$3=yes" 1885else $as_nop 1886 eval "$3=no" 1887fi 1888rm -f core conftest.err conftest.$ac_objext conftest.beam \ 1889 conftest$ac_exeext conftest.$ac_ext 1890fi 1891eval ac_res=\$$3 1892 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1893printf "%s\n" "$ac_res" >&6; } 1894 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1895 1896} # ac_fn_c_check_func 1897 1898# ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR 1899# ------------------------------------------------------------------ 1900# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 1901# accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR. 1902ac_fn_check_decl () 1903{ 1904 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1905 as_decl_name=`echo $2|sed 's/ *(.*//'` 1906 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 1907printf %s "checking whether $as_decl_name is declared... " >&6; } 1908if eval test \${$3+y} 1909then : 1910 printf %s "(cached) " >&6 1911else $as_nop 1912 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 1913 eval ac_save_FLAGS=\$$6 1914 as_fn_append $6 " $5" 1915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1916/* end confdefs.h. */ 1917$4 1918int 1919main (void) 1920{ 1921#ifndef $as_decl_name 1922#ifdef __cplusplus 1923 (void) $as_decl_use; 1924#else 1925 (void) $as_decl_name; 1926#endif 1927#endif 1928 1929 ; 1930 return 0; 1931} 1932_ACEOF 1933if ac_fn_c_try_compile "$LINENO" 1934then : 1935 eval "$3=yes" 1936else $as_nop 1937 eval "$3=no" 1938fi 1939rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1940 eval $6=\$ac_save_FLAGS 1941 1942fi 1943eval ac_res=\$$3 1944 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1945printf "%s\n" "$ac_res" >&6; } 1946 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1947 1948} # ac_fn_check_decl 1949 1950# ac_fn_c_try_run LINENO 1951# ---------------------- 1952# Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that 1953# executables *can* be run. 1954ac_fn_c_try_run () 1955{ 1956 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1957 if { { ac_try="$ac_link" 1958case "(($ac_try" in 1959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1960 *) ac_try_echo=$ac_try;; 1961esac 1962eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1963printf "%s\n" "$ac_try_echo"; } >&5 1964 (eval "$ac_link") 2>&5 1965 ac_status=$? 1966 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1967 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1968 { { case "(($ac_try" in 1969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1970 *) ac_try_echo=$ac_try;; 1971esac 1972eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1973printf "%s\n" "$ac_try_echo"; } >&5 1974 (eval "$ac_try") 2>&5 1975 ac_status=$? 1976 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1977 test $ac_status = 0; }; } 1978then : 1979 ac_retval=0 1980else $as_nop 1981 printf "%s\n" "$as_me: program exited with status $ac_status" >&5 1982 printf "%s\n" "$as_me: failed program was:" >&5 1983sed 's/^/| /' conftest.$ac_ext >&5 1984 1985 ac_retval=$ac_status 1986fi 1987 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1988 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1989 as_fn_set_status $ac_retval 1990 1991} # ac_fn_c_try_run 1992ac_configure_args_raw= 1993for ac_arg 1994do 1995 case $ac_arg in 1996 *\'*) 1997 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1998 esac 1999 as_fn_append ac_configure_args_raw " '$ac_arg'" 2000done 2001 2002case $ac_configure_args_raw in 2003 *$as_nl*) 2004 ac_safe_unquote= ;; 2005 *) 2006 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab. 2007 ac_unsafe_a="$ac_unsafe_z#~" 2008 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g" 2009 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;; 2010esac 2011 2012cat >config.log <<_ACEOF 2013This file contains any messages produced by compilers while 2014running configure, to aid debugging if configure makes a mistake. 2015 2016It was created by libXi $as_me 1.8.2, which was 2017generated by GNU Autoconf 2.71. Invocation command line was 2018 2019 $ $0$ac_configure_args_raw 2020 2021_ACEOF 2022exec 5>>config.log 2023{ 2024cat <<_ASUNAME 2025## --------- ## 2026## Platform. ## 2027## --------- ## 2028 2029hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2030uname -m = `(uname -m) 2>/dev/null || echo unknown` 2031uname -r = `(uname -r) 2>/dev/null || echo unknown` 2032uname -s = `(uname -s) 2>/dev/null || echo unknown` 2033uname -v = `(uname -v) 2>/dev/null || echo unknown` 2034 2035/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2036/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2037 2038/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2039/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2040/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2041/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2042/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2043/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2044/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2045 2046_ASUNAME 2047 2048as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2049for as_dir in $PATH 2050do 2051 IFS=$as_save_IFS 2052 case $as_dir in #((( 2053 '') as_dir=./ ;; 2054 */) ;; 2055 *) as_dir=$as_dir/ ;; 2056 esac 2057 printf "%s\n" "PATH: $as_dir" 2058 done 2059IFS=$as_save_IFS 2060 2061} >&5 2062 2063cat >&5 <<_ACEOF 2064 2065 2066## ----------- ## 2067## Core tests. ## 2068## ----------- ## 2069 2070_ACEOF 2071 2072 2073# Keep a trace of the command line. 2074# Strip out --no-create and --no-recursion so they do not pile up. 2075# Strip out --silent because we don't want to record it for future runs. 2076# Also quote any args containing shell meta-characters. 2077# Make two passes to allow for proper duplicate-argument suppression. 2078ac_configure_args= 2079ac_configure_args0= 2080ac_configure_args1= 2081ac_must_keep_next=false 2082for ac_pass in 1 2 2083do 2084 for ac_arg 2085 do 2086 case $ac_arg in 2087 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2088 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2089 | -silent | --silent | --silen | --sile | --sil) 2090 continue ;; 2091 *\'*) 2092 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2093 esac 2094 case $ac_pass in 2095 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2096 2) 2097 as_fn_append ac_configure_args1 " '$ac_arg'" 2098 if test $ac_must_keep_next = true; then 2099 ac_must_keep_next=false # Got value, back to normal. 2100 else 2101 case $ac_arg in 2102 *=* | --config-cache | -C | -disable-* | --disable-* \ 2103 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2104 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2105 | -with-* | --with-* | -without-* | --without-* | --x) 2106 case "$ac_configure_args0 " in 2107 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2108 esac 2109 ;; 2110 -* ) ac_must_keep_next=true ;; 2111 esac 2112 fi 2113 as_fn_append ac_configure_args " '$ac_arg'" 2114 ;; 2115 esac 2116 done 2117done 2118{ ac_configure_args0=; unset ac_configure_args0;} 2119{ ac_configure_args1=; unset ac_configure_args1;} 2120 2121# When interrupted or exit'd, cleanup temporary files, and complete 2122# config.log. We remove comments because anyway the quotes in there 2123# would cause problems or look ugly. 2124# WARNING: Use '\'' to represent an apostrophe within the trap. 2125# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2126trap 'exit_status=$? 2127 # Sanitize IFS. 2128 IFS=" "" $as_nl" 2129 # Save into config.log some information that might help in debugging. 2130 { 2131 echo 2132 2133 printf "%s\n" "## ---------------- ## 2134## Cache variables. ## 2135## ---------------- ##" 2136 echo 2137 # The following way of writing the cache mishandles newlines in values, 2138( 2139 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2140 eval ac_val=\$$ac_var 2141 case $ac_val in #( 2142 *${as_nl}*) 2143 case $ac_var in #( 2144 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2145printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2146 esac 2147 case $ac_var in #( 2148 _ | IFS | as_nl) ;; #( 2149 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2150 *) { eval $ac_var=; unset $ac_var;} ;; 2151 esac ;; 2152 esac 2153 done 2154 (set) 2>&1 | 2155 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2156 *${as_nl}ac_space=\ *) 2157 sed -n \ 2158 "s/'\''/'\''\\\\'\'''\''/g; 2159 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2160 ;; #( 2161 *) 2162 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2163 ;; 2164 esac | 2165 sort 2166) 2167 echo 2168 2169 printf "%s\n" "## ----------------- ## 2170## Output variables. ## 2171## ----------------- ##" 2172 echo 2173 for ac_var in $ac_subst_vars 2174 do 2175 eval ac_val=\$$ac_var 2176 case $ac_val in 2177 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2178 esac 2179 printf "%s\n" "$ac_var='\''$ac_val'\''" 2180 done | sort 2181 echo 2182 2183 if test -n "$ac_subst_files"; then 2184 printf "%s\n" "## ------------------- ## 2185## File substitutions. ## 2186## ------------------- ##" 2187 echo 2188 for ac_var in $ac_subst_files 2189 do 2190 eval ac_val=\$$ac_var 2191 case $ac_val in 2192 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2193 esac 2194 printf "%s\n" "$ac_var='\''$ac_val'\''" 2195 done | sort 2196 echo 2197 fi 2198 2199 if test -s confdefs.h; then 2200 printf "%s\n" "## ----------- ## 2201## confdefs.h. ## 2202## ----------- ##" 2203 echo 2204 cat confdefs.h 2205 echo 2206 fi 2207 test "$ac_signal" != 0 && 2208 printf "%s\n" "$as_me: caught signal $ac_signal" 2209 printf "%s\n" "$as_me: exit $exit_status" 2210 } >&5 2211 rm -f core *.core core.conftest.* && 2212 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2213 exit $exit_status 2214' 0 2215for ac_signal in 1 2 13 15; do 2216 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2217done 2218ac_signal=0 2219 2220# confdefs.h avoids OS command line length limits that DEFS can exceed. 2221rm -f -r conftest* confdefs.h 2222 2223printf "%s\n" "/* confdefs.h */" > confdefs.h 2224 2225# Predefined preprocessor variables. 2226 2227printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h 2228 2229printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h 2230 2231printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h 2232 2233printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h 2234 2235printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h 2236 2237printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h 2238 2239 2240# Let the site file select an alternate cache file if it wants to. 2241# Prefer an explicitly selected file to automatically selected ones. 2242if test -n "$CONFIG_SITE"; then 2243 ac_site_files="$CONFIG_SITE" 2244elif test "x$prefix" != xNONE; then 2245 ac_site_files="$prefix/share/config.site $prefix/etc/config.site" 2246else 2247 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 2248fi 2249 2250for ac_site_file in $ac_site_files 2251do 2252 case $ac_site_file in #( 2253 */*) : 2254 ;; #( 2255 *) : 2256 ac_site_file=./$ac_site_file ;; 2257esac 2258 if test -f "$ac_site_file" && test -r "$ac_site_file"; then 2259 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2260printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;} 2261 sed 's/^/| /' "$ac_site_file" >&5 2262 . "$ac_site_file" \ 2263 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2264printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 2265as_fn_error $? "failed to load site script $ac_site_file 2266See \`config.log' for more details" "$LINENO" 5; } 2267 fi 2268done 2269 2270if test -r "$cache_file"; then 2271 # Some versions of bash will fail to source /dev/null (special files 2272 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2273 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2274 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2275printf "%s\n" "$as_me: loading cache $cache_file" >&6;} 2276 case $cache_file in 2277 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2278 *) . "./$cache_file";; 2279 esac 2280 fi 2281else 2282 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2283printf "%s\n" "$as_me: creating cache $cache_file" >&6;} 2284 >$cache_file 2285fi 2286 2287# Test code for whether the C compiler supports C89 (global declarations) 2288ac_c_conftest_c89_globals=' 2289/* Does the compiler advertise C89 conformance? 2290 Do not test the value of __STDC__, because some compilers set it to 0 2291 while being otherwise adequately conformant. */ 2292#if !defined __STDC__ 2293# error "Compiler does not advertise C89 conformance" 2294#endif 2295 2296#include <stddef.h> 2297#include <stdarg.h> 2298struct stat; 2299/* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */ 2300struct buf { int x; }; 2301struct buf * (*rcsopen) (struct buf *, struct stat *, int); 2302static char *e (p, i) 2303 char **p; 2304 int i; 2305{ 2306 return p[i]; 2307} 2308static char *f (char * (*g) (char **, int), char **p, ...) 2309{ 2310 char *s; 2311 va_list v; 2312 va_start (v,p); 2313 s = g (p, va_arg (v,int)); 2314 va_end (v); 2315 return s; 2316} 2317 2318/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 2319 function prototypes and stuff, but not \xHH hex character constants. 2320 These do not provoke an error unfortunately, instead are silently treated 2321 as an "x". The following induces an error, until -std is added to get 2322 proper ANSI mode. Curiously \x00 != x always comes out true, for an 2323 array size at least. It is necessary to write \x00 == 0 to get something 2324 that is true only with -std. */ 2325int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1]; 2326 2327/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 2328 inside strings and character constants. */ 2329#define FOO(x) '\''x'\'' 2330int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1]; 2331 2332int test (int i, double x); 2333struct s1 {int (*f) (int a);}; 2334struct s2 {int (*f) (double a);}; 2335int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int), 2336 int, int);' 2337 2338# Test code for whether the C compiler supports C89 (body of main). 2339ac_c_conftest_c89_main=' 2340ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]); 2341' 2342 2343# Test code for whether the C compiler supports C99 (global declarations) 2344ac_c_conftest_c99_globals=' 2345// Does the compiler advertise C99 conformance? 2346#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L 2347# error "Compiler does not advertise C99 conformance" 2348#endif 2349 2350#include <stdbool.h> 2351extern int puts (const char *); 2352extern int printf (const char *, ...); 2353extern int dprintf (int, const char *, ...); 2354extern void *malloc (size_t); 2355 2356// Check varargs macros. These examples are taken from C99 6.10.3.5. 2357// dprintf is used instead of fprintf to avoid needing to declare 2358// FILE and stderr. 2359#define debug(...) dprintf (2, __VA_ARGS__) 2360#define showlist(...) puts (#__VA_ARGS__) 2361#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 2362static void 2363test_varargs_macros (void) 2364{ 2365 int x = 1234; 2366 int y = 5678; 2367 debug ("Flag"); 2368 debug ("X = %d\n", x); 2369 showlist (The first, second, and third items.); 2370 report (x>y, "x is %d but y is %d", x, y); 2371} 2372 2373// Check long long types. 2374#define BIG64 18446744073709551615ull 2375#define BIG32 4294967295ul 2376#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 2377#if !BIG_OK 2378 #error "your preprocessor is broken" 2379#endif 2380#if BIG_OK 2381#else 2382 #error "your preprocessor is broken" 2383#endif 2384static long long int bignum = -9223372036854775807LL; 2385static unsigned long long int ubignum = BIG64; 2386 2387struct incomplete_array 2388{ 2389 int datasize; 2390 double data[]; 2391}; 2392 2393struct named_init { 2394 int number; 2395 const wchar_t *name; 2396 double average; 2397}; 2398 2399typedef const char *ccp; 2400 2401static inline int 2402test_restrict (ccp restrict text) 2403{ 2404 // See if C++-style comments work. 2405 // Iterate through items via the restricted pointer. 2406 // Also check for declarations in for loops. 2407 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i) 2408 continue; 2409 return 0; 2410} 2411 2412// Check varargs and va_copy. 2413static bool 2414test_varargs (const char *format, ...) 2415{ 2416 va_list args; 2417 va_start (args, format); 2418 va_list args_copy; 2419 va_copy (args_copy, args); 2420 2421 const char *str = ""; 2422 int number = 0; 2423 float fnumber = 0; 2424 2425 while (*format) 2426 { 2427 switch (*format++) 2428 { 2429 case '\''s'\'': // string 2430 str = va_arg (args_copy, const char *); 2431 break; 2432 case '\''d'\'': // int 2433 number = va_arg (args_copy, int); 2434 break; 2435 case '\''f'\'': // float 2436 fnumber = va_arg (args_copy, double); 2437 break; 2438 default: 2439 break; 2440 } 2441 } 2442 va_end (args_copy); 2443 va_end (args); 2444 2445 return *str && number && fnumber; 2446} 2447' 2448 2449# Test code for whether the C compiler supports C99 (body of main). 2450ac_c_conftest_c99_main=' 2451 // Check bool. 2452 _Bool success = false; 2453 success |= (argc != 0); 2454 2455 // Check restrict. 2456 if (test_restrict ("String literal") == 0) 2457 success = true; 2458 char *restrict newvar = "Another string"; 2459 2460 // Check varargs. 2461 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234); 2462 test_varargs_macros (); 2463 2464 // Check flexible array members. 2465 struct incomplete_array *ia = 2466 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 2467 ia->datasize = 10; 2468 for (int i = 0; i < ia->datasize; ++i) 2469 ia->data[i] = i * 1.234; 2470 2471 // Check named initializers. 2472 struct named_init ni = { 2473 .number = 34, 2474 .name = L"Test wide string", 2475 .average = 543.34343, 2476 }; 2477 2478 ni.number = 58; 2479 2480 int dynamic_array[ni.number]; 2481 dynamic_array[0] = argv[0][0]; 2482 dynamic_array[ni.number - 1] = 543; 2483 2484 // work around unused variable warnings 2485 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\'' 2486 || dynamic_array[ni.number - 1] != 543); 2487' 2488 2489# Test code for whether the C compiler supports C11 (global declarations) 2490ac_c_conftest_c11_globals=' 2491// Does the compiler advertise C11 conformance? 2492#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L 2493# error "Compiler does not advertise C11 conformance" 2494#endif 2495 2496// Check _Alignas. 2497char _Alignas (double) aligned_as_double; 2498char _Alignas (0) no_special_alignment; 2499extern char aligned_as_int; 2500char _Alignas (0) _Alignas (int) aligned_as_int; 2501 2502// Check _Alignof. 2503enum 2504{ 2505 int_alignment = _Alignof (int), 2506 int_array_alignment = _Alignof (int[100]), 2507 char_alignment = _Alignof (char) 2508}; 2509_Static_assert (0 < -_Alignof (int), "_Alignof is signed"); 2510 2511// Check _Noreturn. 2512int _Noreturn does_not_return (void) { for (;;) continue; } 2513 2514// Check _Static_assert. 2515struct test_static_assert 2516{ 2517 int x; 2518 _Static_assert (sizeof (int) <= sizeof (long int), 2519 "_Static_assert does not work in struct"); 2520 long int y; 2521}; 2522 2523// Check UTF-8 literals. 2524#define u8 syntax error! 2525char const utf8_literal[] = u8"happens to be ASCII" "another string"; 2526 2527// Check duplicate typedefs. 2528typedef long *long_ptr; 2529typedef long int *long_ptr; 2530typedef long_ptr long_ptr; 2531 2532// Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1. 2533struct anonymous 2534{ 2535 union { 2536 struct { int i; int j; }; 2537 struct { int k; long int l; } w; 2538 }; 2539 int m; 2540} v1; 2541' 2542 2543# Test code for whether the C compiler supports C11 (body of main). 2544ac_c_conftest_c11_main=' 2545 _Static_assert ((offsetof (struct anonymous, i) 2546 == offsetof (struct anonymous, w.k)), 2547 "Anonymous union alignment botch"); 2548 v1.i = 2; 2549 v1.w.k = 5; 2550 ok |= v1.i != 5; 2551' 2552 2553# Test code for whether the C compiler supports C11 (complete). 2554ac_c_conftest_c11_program="${ac_c_conftest_c89_globals} 2555${ac_c_conftest_c99_globals} 2556${ac_c_conftest_c11_globals} 2557 2558int 2559main (int argc, char **argv) 2560{ 2561 int ok = 0; 2562 ${ac_c_conftest_c89_main} 2563 ${ac_c_conftest_c99_main} 2564 ${ac_c_conftest_c11_main} 2565 return ok; 2566} 2567" 2568 2569# Test code for whether the C compiler supports C99 (complete). 2570ac_c_conftest_c99_program="${ac_c_conftest_c89_globals} 2571${ac_c_conftest_c99_globals} 2572 2573int 2574main (int argc, char **argv) 2575{ 2576 int ok = 0; 2577 ${ac_c_conftest_c89_main} 2578 ${ac_c_conftest_c99_main} 2579 return ok; 2580} 2581" 2582 2583# Test code for whether the C compiler supports C89 (complete). 2584ac_c_conftest_c89_program="${ac_c_conftest_c89_globals} 2585 2586int 2587main (int argc, char **argv) 2588{ 2589 int ok = 0; 2590 ${ac_c_conftest_c89_main} 2591 return ok; 2592} 2593" 2594 2595as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H" 2596as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H" 2597as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H" 2598as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H" 2599as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H" 2600as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H" 2601as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H" 2602as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H" 2603as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H" 2604 2605# Auxiliary files required by this configure script. 2606ac_aux_files="compile config.guess config.sub ltmain.sh missing install-sh" 2607 2608# Locations in which to look for auxiliary files. 2609ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.." 2610 2611# Search for a directory containing all of the required auxiliary files, 2612# $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates. 2613# If we don't find one directory that contains all the files we need, 2614# we report the set of missing files from the *first* directory in 2615# $ac_aux_dir_candidates and give up. 2616ac_missing_aux_files="" 2617ac_first_candidate=: 2618printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5 2619as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2620as_found=false 2621for as_dir in $ac_aux_dir_candidates 2622do 2623 IFS=$as_save_IFS 2624 case $as_dir in #((( 2625 '') as_dir=./ ;; 2626 */) ;; 2627 *) as_dir=$as_dir/ ;; 2628 esac 2629 as_found=: 2630 2631 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5 2632 ac_aux_dir_found=yes 2633 ac_install_sh= 2634 for ac_aux in $ac_aux_files 2635 do 2636 # As a special case, if "install-sh" is required, that requirement 2637 # can be satisfied by any of "install-sh", "install.sh", or "shtool", 2638 # and $ac_install_sh is set appropriately for whichever one is found. 2639 if test x"$ac_aux" = x"install-sh" 2640 then 2641 if test -f "${as_dir}install-sh"; then 2642 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5 2643 ac_install_sh="${as_dir}install-sh -c" 2644 elif test -f "${as_dir}install.sh"; then 2645 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5 2646 ac_install_sh="${as_dir}install.sh -c" 2647 elif test -f "${as_dir}shtool"; then 2648 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5 2649 ac_install_sh="${as_dir}shtool install -c" 2650 else 2651 ac_aux_dir_found=no 2652 if $ac_first_candidate; then 2653 ac_missing_aux_files="${ac_missing_aux_files} install-sh" 2654 else 2655 break 2656 fi 2657 fi 2658 else 2659 if test -f "${as_dir}${ac_aux}"; then 2660 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5 2661 else 2662 ac_aux_dir_found=no 2663 if $ac_first_candidate; then 2664 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}" 2665 else 2666 break 2667 fi 2668 fi 2669 fi 2670 done 2671 if test "$ac_aux_dir_found" = yes; then 2672 ac_aux_dir="$as_dir" 2673 break 2674 fi 2675 ac_first_candidate=false 2676 2677 as_found=false 2678done 2679IFS=$as_save_IFS 2680if $as_found 2681then : 2682 2683else $as_nop 2684 as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 2685fi 2686 2687 2688# These three variables are undocumented and unsupported, 2689# and are intended to be withdrawn in a future Autoconf release. 2690# They can cause serious problems if a builder's source tree is in a directory 2691# whose full name contains unusual characters. 2692if test -f "${ac_aux_dir}config.guess"; then 2693 ac_config_guess="$SHELL ${ac_aux_dir}config.guess" 2694fi 2695if test -f "${ac_aux_dir}config.sub"; then 2696 ac_config_sub="$SHELL ${ac_aux_dir}config.sub" 2697fi 2698if test -f "$ac_aux_dir/configure"; then 2699 ac_configure="$SHELL ${ac_aux_dir}configure" 2700fi 2701 2702# Check that the precious variables saved in the cache have kept the same 2703# value. 2704ac_cache_corrupted=false 2705for ac_var in $ac_precious_vars; do 2706 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2707 eval ac_new_set=\$ac_env_${ac_var}_set 2708 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2709 eval ac_new_val=\$ac_env_${ac_var}_value 2710 case $ac_old_set,$ac_new_set in 2711 set,) 2712 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2713printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2714 ac_cache_corrupted=: ;; 2715 ,set) 2716 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2717printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2718 ac_cache_corrupted=: ;; 2719 ,);; 2720 *) 2721 if test "x$ac_old_val" != "x$ac_new_val"; then 2722 # differences in whitespace do not lead to failure. 2723 ac_old_val_w=`echo x $ac_old_val` 2724 ac_new_val_w=`echo x $ac_new_val` 2725 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2726 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2727printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2728 ac_cache_corrupted=: 2729 else 2730 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2731printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2732 eval $ac_var=\$ac_old_val 2733 fi 2734 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2735printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;} 2736 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2737printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;} 2738 fi;; 2739 esac 2740 # Pass precious variables to config.status. 2741 if test "$ac_new_set" = set; then 2742 case $ac_new_val in 2743 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2744 *) ac_arg=$ac_var=$ac_new_val ;; 2745 esac 2746 case " $ac_configure_args " in 2747 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2748 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2749 esac 2750 fi 2751done 2752if $ac_cache_corrupted; then 2753 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2754printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 2755 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2756printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;} 2757 as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file' 2758 and start over" "$LINENO" 5 2759fi 2760## -------------------- ## 2761## Main body of script. ## 2762## -------------------- ## 2763 2764ac_ext=c 2765ac_cpp='$CPP $CPPFLAGS' 2766ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2767ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2768ac_compiler_gnu=$ac_cv_c_compiler_gnu 2769 2770 2771 2772ac_config_headers="$ac_config_headers src/config.h" 2773 2774 2775 2776# Initialize Automake 2777am__api_version='1.16' 2778 2779 2780 2781 # Find a good install program. We prefer a C program (faster), 2782# so one script is as good as another. But avoid the broken or 2783# incompatible versions: 2784# SysV /etc/install, /usr/sbin/install 2785# SunOS /usr/etc/install 2786# IRIX /sbin/install 2787# AIX /bin/install 2788# AmigaOS /C/install, which installs bootblocks on floppy discs 2789# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2790# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2791# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2792# OS/2's system install, which has a completely different semantic 2793# ./install, which can be erroneously created by make from ./install.sh. 2794# Reject install programs that cannot install multiple files. 2795{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2796printf %s "checking for a BSD-compatible install... " >&6; } 2797if test -z "$INSTALL"; then 2798if test ${ac_cv_path_install+y} 2799then : 2800 printf %s "(cached) " >&6 2801else $as_nop 2802 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2803for as_dir in $PATH 2804do 2805 IFS=$as_save_IFS 2806 case $as_dir in #((( 2807 '') as_dir=./ ;; 2808 */) ;; 2809 *) as_dir=$as_dir/ ;; 2810 esac 2811 # Account for fact that we put trailing slashes in our PATH walk. 2812case $as_dir in #(( 2813 ./ | /[cC]/* | \ 2814 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2815 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2816 /usr/ucb/* ) ;; 2817 *) 2818 # OSF1 and SCO ODT 3.0 have their own names for install. 2819 # Don't use installbsd from OSF since it installs stuff as root 2820 # by default. 2821 for ac_prog in ginstall scoinst install; do 2822 for ac_exec_ext in '' $ac_executable_extensions; do 2823 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then 2824 if test $ac_prog = install && 2825 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2826 # AIX install. It has an incompatible calling convention. 2827 : 2828 elif test $ac_prog = install && 2829 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2830 # program-specific install script used by HP pwplus--don't use. 2831 : 2832 else 2833 rm -rf conftest.one conftest.two conftest.dir 2834 echo one > conftest.one 2835 echo two > conftest.two 2836 mkdir conftest.dir 2837 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" && 2838 test -s conftest.one && test -s conftest.two && 2839 test -s conftest.dir/conftest.one && 2840 test -s conftest.dir/conftest.two 2841 then 2842 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c" 2843 break 3 2844 fi 2845 fi 2846 fi 2847 done 2848 done 2849 ;; 2850esac 2851 2852 done 2853IFS=$as_save_IFS 2854 2855rm -rf conftest.one conftest.two conftest.dir 2856 2857fi 2858 if test ${ac_cv_path_install+y}; then 2859 INSTALL=$ac_cv_path_install 2860 else 2861 # As a last resort, use the slow shell script. Don't cache a 2862 # value for INSTALL within a source directory, because that will 2863 # break other packages using the cache if that directory is 2864 # removed, or if the value is a relative name. 2865 INSTALL=$ac_install_sh 2866 fi 2867fi 2868{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2869printf "%s\n" "$INSTALL" >&6; } 2870 2871# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2872# It thinks the first close brace ends the variable substitution. 2873test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2874 2875test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2876 2877test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2878 2879{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2880printf %s "checking whether build environment is sane... " >&6; } 2881# Reject unsafe characters in $srcdir or the absolute working directory 2882# name. Accept space and tab only in the latter. 2883am_lf=' 2884' 2885case `pwd` in 2886 *[\\\"\#\$\&\'\`$am_lf]*) 2887 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2888esac 2889case $srcdir in 2890 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2891 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 2892esac 2893 2894# Do 'set' in a subshell so we don't clobber the current shell's 2895# arguments. Must try -L first in case configure is actually a 2896# symlink; some systems play weird games with the mod time of symlinks 2897# (eg FreeBSD returns the mod time of the symlink's containing 2898# directory). 2899if ( 2900 am_has_slept=no 2901 for am_try in 1 2; do 2902 echo "timestamp, slept: $am_has_slept" > conftest.file 2903 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2904 if test "$*" = "X"; then 2905 # -L didn't work. 2906 set X `ls -t "$srcdir/configure" conftest.file` 2907 fi 2908 if test "$*" != "X $srcdir/configure conftest.file" \ 2909 && test "$*" != "X conftest.file $srcdir/configure"; then 2910 2911 # If neither matched, then we have a broken ls. This can happen 2912 # if, for instance, CONFIG_SHELL is bash and it inherits a 2913 # broken ls alias from the environment. This has actually 2914 # happened. Such a system could not be considered "sane". 2915 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2916 alias in your environment" "$LINENO" 5 2917 fi 2918 if test "$2" = conftest.file || test $am_try -eq 2; then 2919 break 2920 fi 2921 # Just in case. 2922 sleep 1 2923 am_has_slept=yes 2924 done 2925 test "$2" = conftest.file 2926 ) 2927then 2928 # Ok. 2929 : 2930else 2931 as_fn_error $? "newly created file is older than distributed files! 2932Check your system clock" "$LINENO" 5 2933fi 2934{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2935printf "%s\n" "yes" >&6; } 2936# If we didn't sleep, we still need to ensure time stamps of config.status and 2937# generated files are strictly newer. 2938am_sleep_pid= 2939if grep 'slept: no' conftest.file >/dev/null 2>&1; then 2940 ( sleep 1 ) & 2941 am_sleep_pid=$! 2942fi 2943 2944rm -f conftest.file 2945 2946test "$program_prefix" != NONE && 2947 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2948# Use a double $ so make ignores it. 2949test "$program_suffix" != NONE && 2950 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2951# Double any \ or $. 2952# By default was `s,x,x', remove it if useless. 2953ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2954program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"` 2955 2956 2957# Expand $ac_aux_dir to an absolute path. 2958am_aux_dir=`cd "$ac_aux_dir" && pwd` 2959 2960 2961 if test x"${MISSING+set}" != xset; then 2962 MISSING="\${SHELL} '$am_aux_dir/missing'" 2963fi 2964# Use eval to expand $SHELL 2965if eval "$MISSING --is-lightweight"; then 2966 am_missing_run="$MISSING " 2967else 2968 am_missing_run= 2969 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 2970printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 2971fi 2972 2973if test x"${install_sh+set}" != xset; then 2974 case $am_aux_dir in 2975 *\ * | *\ *) 2976 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2977 *) 2978 install_sh="\${SHELL} $am_aux_dir/install-sh" 2979 esac 2980fi 2981 2982# Installed binaries are usually stripped using 'strip' when the user 2983# run "make install-strip". However 'strip' might not be the right 2984# tool to use in cross-compilation environments, therefore Automake 2985# will honor the 'STRIP' environment variable to overrule this program. 2986if test "$cross_compiling" != no; then 2987 if test -n "$ac_tool_prefix"; then 2988 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2989set dummy ${ac_tool_prefix}strip; ac_word=$2 2990{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2991printf %s "checking for $ac_word... " >&6; } 2992if test ${ac_cv_prog_STRIP+y} 2993then : 2994 printf %s "(cached) " >&6 2995else $as_nop 2996 if test -n "$STRIP"; then 2997 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2998else 2999as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3000for as_dir in $PATH 3001do 3002 IFS=$as_save_IFS 3003 case $as_dir in #((( 3004 '') as_dir=./ ;; 3005 */) ;; 3006 *) as_dir=$as_dir/ ;; 3007 esac 3008 for ac_exec_ext in '' $ac_executable_extensions; do 3009 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3010 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 3011 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3012 break 2 3013 fi 3014done 3015 done 3016IFS=$as_save_IFS 3017 3018fi 3019fi 3020STRIP=$ac_cv_prog_STRIP 3021if test -n "$STRIP"; then 3022 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 3023printf "%s\n" "$STRIP" >&6; } 3024else 3025 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3026printf "%s\n" "no" >&6; } 3027fi 3028 3029 3030fi 3031if test -z "$ac_cv_prog_STRIP"; then 3032 ac_ct_STRIP=$STRIP 3033 # Extract the first word of "strip", so it can be a program name with args. 3034set dummy strip; ac_word=$2 3035{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3036printf %s "checking for $ac_word... " >&6; } 3037if test ${ac_cv_prog_ac_ct_STRIP+y} 3038then : 3039 printf %s "(cached) " >&6 3040else $as_nop 3041 if test -n "$ac_ct_STRIP"; then 3042 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 3043else 3044as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3045for as_dir in $PATH 3046do 3047 IFS=$as_save_IFS 3048 case $as_dir in #((( 3049 '') as_dir=./ ;; 3050 */) ;; 3051 *) as_dir=$as_dir/ ;; 3052 esac 3053 for ac_exec_ext in '' $ac_executable_extensions; do 3054 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3055 ac_cv_prog_ac_ct_STRIP="strip" 3056 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3057 break 2 3058 fi 3059done 3060 done 3061IFS=$as_save_IFS 3062 3063fi 3064fi 3065ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 3066if test -n "$ac_ct_STRIP"; then 3067 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 3068printf "%s\n" "$ac_ct_STRIP" >&6; } 3069else 3070 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3071printf "%s\n" "no" >&6; } 3072fi 3073 3074 if test "x$ac_ct_STRIP" = x; then 3075 STRIP=":" 3076 else 3077 case $cross_compiling:$ac_tool_warned in 3078yes:) 3079{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3080printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3081ac_tool_warned=yes ;; 3082esac 3083 STRIP=$ac_ct_STRIP 3084 fi 3085else 3086 STRIP="$ac_cv_prog_STRIP" 3087fi 3088 3089fi 3090INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 3091 3092 3093 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5 3094printf %s "checking for a race-free mkdir -p... " >&6; } 3095if test -z "$MKDIR_P"; then 3096 if test ${ac_cv_path_mkdir+y} 3097then : 3098 printf %s "(cached) " >&6 3099else $as_nop 3100 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3101for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 3102do 3103 IFS=$as_save_IFS 3104 case $as_dir in #((( 3105 '') as_dir=./ ;; 3106 */) ;; 3107 *) as_dir=$as_dir/ ;; 3108 esac 3109 for ac_prog in mkdir gmkdir; do 3110 for ac_exec_ext in '' $ac_executable_extensions; do 3111 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue 3112 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #( 3113 'mkdir ('*'coreutils) '* | \ 3114 'BusyBox '* | \ 3115 'mkdir (fileutils) '4.1*) 3116 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext 3117 break 3;; 3118 esac 3119 done 3120 done 3121 done 3122IFS=$as_save_IFS 3123 3124fi 3125 3126 test -d ./--version && rmdir ./--version 3127 if test ${ac_cv_path_mkdir+y}; then 3128 MKDIR_P="$ac_cv_path_mkdir -p" 3129 else 3130 # As a last resort, use the slow shell script. Don't cache a 3131 # value for MKDIR_P within a source directory, because that will 3132 # break other packages using the cache if that directory is 3133 # removed, or if the value is a relative name. 3134 MKDIR_P="$ac_install_sh -d" 3135 fi 3136fi 3137{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 3138printf "%s\n" "$MKDIR_P" >&6; } 3139 3140for ac_prog in gawk mawk nawk awk 3141do 3142 # Extract the first word of "$ac_prog", so it can be a program name with args. 3143set dummy $ac_prog; ac_word=$2 3144{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3145printf %s "checking for $ac_word... " >&6; } 3146if test ${ac_cv_prog_AWK+y} 3147then : 3148 printf %s "(cached) " >&6 3149else $as_nop 3150 if test -n "$AWK"; then 3151 ac_cv_prog_AWK="$AWK" # Let the user override the test. 3152else 3153as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3154for as_dir in $PATH 3155do 3156 IFS=$as_save_IFS 3157 case $as_dir in #((( 3158 '') as_dir=./ ;; 3159 */) ;; 3160 *) as_dir=$as_dir/ ;; 3161 esac 3162 for ac_exec_ext in '' $ac_executable_extensions; do 3163 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3164 ac_cv_prog_AWK="$ac_prog" 3165 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3166 break 2 3167 fi 3168done 3169 done 3170IFS=$as_save_IFS 3171 3172fi 3173fi 3174AWK=$ac_cv_prog_AWK 3175if test -n "$AWK"; then 3176 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 3177printf "%s\n" "$AWK" >&6; } 3178else 3179 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3180printf "%s\n" "no" >&6; } 3181fi 3182 3183 3184 test -n "$AWK" && break 3185done 3186 3187{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 3188printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 3189set x ${MAKE-make} 3190ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 3191if eval test \${ac_cv_prog_make_${ac_make}_set+y} 3192then : 3193 printf %s "(cached) " >&6 3194else $as_nop 3195 cat >conftest.make <<\_ACEOF 3196SHELL = /bin/sh 3197all: 3198 @echo '@@@%%%=$(MAKE)=@@@%%%' 3199_ACEOF 3200# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 3201case `${MAKE-make} -f conftest.make 2>/dev/null` in 3202 *@@@%%%=?*=@@@%%%*) 3203 eval ac_cv_prog_make_${ac_make}_set=yes;; 3204 *) 3205 eval ac_cv_prog_make_${ac_make}_set=no;; 3206esac 3207rm -f conftest.make 3208fi 3209if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 3210 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3211printf "%s\n" "yes" >&6; } 3212 SET_MAKE= 3213else 3214 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3215printf "%s\n" "no" >&6; } 3216 SET_MAKE="MAKE=${MAKE-make}" 3217fi 3218 3219rm -rf .tst 2>/dev/null 3220mkdir .tst 2>/dev/null 3221if test -d .tst; then 3222 am__leading_dot=. 3223else 3224 am__leading_dot=_ 3225fi 3226rmdir .tst 2>/dev/null 3227 3228# Check whether --enable-silent-rules was given. 3229if test ${enable_silent_rules+y} 3230then : 3231 enableval=$enable_silent_rules; 3232fi 3233 3234case $enable_silent_rules in # ((( 3235 yes) AM_DEFAULT_VERBOSITY=0;; 3236 no) AM_DEFAULT_VERBOSITY=1;; 3237 *) AM_DEFAULT_VERBOSITY=1;; 3238esac 3239am_make=${MAKE-make} 3240{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 3241printf %s "checking whether $am_make supports nested variables... " >&6; } 3242if test ${am_cv_make_support_nested_variables+y} 3243then : 3244 printf %s "(cached) " >&6 3245else $as_nop 3246 if printf "%s\n" 'TRUE=$(BAR$(V)) 3247BAR0=false 3248BAR1=true 3249V=1 3250am__doit: 3251 @$(TRUE) 3252.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 3253 am_cv_make_support_nested_variables=yes 3254else 3255 am_cv_make_support_nested_variables=no 3256fi 3257fi 3258{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 3259printf "%s\n" "$am_cv_make_support_nested_variables" >&6; } 3260if test $am_cv_make_support_nested_variables = yes; then 3261 AM_V='$(V)' 3262 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 3263else 3264 AM_V=$AM_DEFAULT_VERBOSITY 3265 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 3266fi 3267AM_BACKSLASH='\' 3268 3269if test "`cd $srcdir && pwd`" != "`pwd`"; then 3270 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 3271 # is not polluted with repeated "-I." 3272 am__isrc=' -I$(srcdir)' 3273 # test to see if srcdir already configured 3274 if test -f $srcdir/config.status; then 3275 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 3276 fi 3277fi 3278 3279# test whether we have cygpath 3280if test -z "$CYGPATH_W"; then 3281 if (cygpath --version) >/dev/null 2>/dev/null; then 3282 CYGPATH_W='cygpath -w' 3283 else 3284 CYGPATH_W=echo 3285 fi 3286fi 3287 3288 3289# Define the identity of the package. 3290 PACKAGE='libXi' 3291 VERSION='1.8.2' 3292 3293 3294printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h 3295 3296 3297printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h 3298 3299# Some tools Automake needs. 3300 3301ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 3302 3303 3304AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 3305 3306 3307AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 3308 3309 3310AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 3311 3312 3313MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 3314 3315# For better backward compatibility. To be removed once Automake 1.9.x 3316# dies out for good. For more background, see: 3317# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 3318# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 3319mkdir_p='$(MKDIR_P)' 3320 3321# We need awk for the "check" target (and possibly the TAP driver). The 3322# system "awk" is bad on some platforms. 3323# Always define AMTAR for backward compatibility. Yes, it's still used 3324# in the wild :-( We should find a proper way to deprecate it ... 3325AMTAR='$${TAR-tar}' 3326 3327 3328# We'll loop over all known methods to create a tar archive until one works. 3329_am_tools='gnutar pax cpio none' 3330 3331am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 3332 3333 3334 3335 3336 3337# Variables for tags utilities; see am/tags.am 3338if test -z "$CTAGS"; then 3339 CTAGS=ctags 3340fi 3341 3342if test -z "$ETAGS"; then 3343 ETAGS=etags 3344fi 3345 3346if test -z "$CSCOPE"; then 3347 CSCOPE=cscope 3348fi 3349 3350 3351 3352# POSIX will say in a future version that running "rm -f" with no argument 3353# is OK; and we want to be able to make that assumption in our Makefile 3354# recipes. So use an aggressive probe to check that the usage we want is 3355# actually supported "in the wild" to an acceptable degree. 3356# See automake bug#10828. 3357# To make any issue more visible, cause the running configure to be aborted 3358# by default if the 'rm' program in use doesn't match our expectations; the 3359# user can still override this though. 3360if rm -f && rm -fr && rm -rf; then : OK; else 3361 cat >&2 <<'END' 3362Oops! 3363 3364Your 'rm' program seems unable to run without file operands specified 3365on the command line, even when the '-f' option is present. This is contrary 3366to the behaviour of most rm programs out there, and not conforming with 3367the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 3368 3369Please tell bug-automake@gnu.org about your system, including the value 3370of your $PATH and any error possibly output before this message. This 3371can help us improve future automake versions. 3372 3373END 3374 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 3375 echo 'Configuration will proceed anyway, since you have set the' >&2 3376 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 3377 echo >&2 3378 else 3379 cat >&2 <<'END' 3380Aborting the configuration process, to ensure you take notice of the issue. 3381 3382You can download and install GNU coreutils to get an 'rm' implementation 3383that behaves properly: <https://www.gnu.org/software/coreutils/>. 3384 3385If you want to complete the configuration process using your problematic 3386'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 3387to "yes", and re-run configure. 3388 3389END 3390 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 3391 fi 3392fi 3393 3394 3395# Initialize libtool 3396case `pwd` in 3397 *\ * | *\ *) 3398 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 3399printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 3400esac 3401 3402 3403 3404macro_version='2.4.7' 3405macro_revision='2.4.7' 3406 3407 3408 3409 3410 3411 3412 3413 3414 3415 3416 3417 3418 3419 3420ltmain=$ac_aux_dir/ltmain.sh 3421 3422 3423 3424 # Make sure we can run config.sub. 3425$SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 || 3426 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5 3427 3428{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 3429printf %s "checking build system type... " >&6; } 3430if test ${ac_cv_build+y} 3431then : 3432 printf %s "(cached) " >&6 3433else $as_nop 3434 ac_build_alias=$build_alias 3435test "x$ac_build_alias" = x && 3436 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"` 3437test "x$ac_build_alias" = x && 3438 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 3439ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` || 3440 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5 3441 3442fi 3443{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 3444printf "%s\n" "$ac_cv_build" >&6; } 3445case $ac_cv_build in 3446*-*-*) ;; 3447*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 3448esac 3449build=$ac_cv_build 3450ac_save_IFS=$IFS; IFS='-' 3451set x $ac_cv_build 3452shift 3453build_cpu=$1 3454build_vendor=$2 3455shift; shift 3456# Remember, the first character of IFS is used to create $*, 3457# except with old shells: 3458build_os=$* 3459IFS=$ac_save_IFS 3460case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 3461 3462 3463{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 3464printf %s "checking host system type... " >&6; } 3465if test ${ac_cv_host+y} 3466then : 3467 printf %s "(cached) " >&6 3468else $as_nop 3469 if test "x$host_alias" = x; then 3470 ac_cv_host=$ac_cv_build 3471else 3472 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` || 3473 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5 3474fi 3475 3476fi 3477{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 3478printf "%s\n" "$ac_cv_host" >&6; } 3479case $ac_cv_host in 3480*-*-*) ;; 3481*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 3482esac 3483host=$ac_cv_host 3484ac_save_IFS=$IFS; IFS='-' 3485set x $ac_cv_host 3486shift 3487host_cpu=$1 3488host_vendor=$2 3489shift; shift 3490# Remember, the first character of IFS is used to create $*, 3491# except with old shells: 3492host_os=$* 3493IFS=$ac_save_IFS 3494case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 3495 3496 3497# Backslashify metacharacters that are still active within 3498# double-quoted strings. 3499sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 3500 3501# Same as above, but do not quote variable references. 3502double_quote_subst='s/\(["`\\]\)/\\\1/g' 3503 3504# Sed substitution to delay expansion of an escaped shell variable in a 3505# double_quote_subst'ed string. 3506delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 3507 3508# Sed substitution to delay expansion of an escaped single quote. 3509delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 3510 3511# Sed substitution to avoid accidental globbing in evaled expressions 3512no_glob_subst='s/\*/\\\*/g' 3513 3514ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 3515ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 3516ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 3517 3518{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 3519printf %s "checking how to print strings... " >&6; } 3520# Test print first, because it will be a builtin if present. 3521if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 3522 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 3523 ECHO='print -r --' 3524elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 3525 ECHO='printf %s\n' 3526else 3527 # Use this function as a fallback that always works. 3528 func_fallback_echo () 3529 { 3530 eval 'cat <<_LTECHO_EOF 3531$1 3532_LTECHO_EOF' 3533 } 3534 ECHO='func_fallback_echo' 3535fi 3536 3537# func_echo_all arg... 3538# Invoke $ECHO with all args, space-separated. 3539func_echo_all () 3540{ 3541 $ECHO "" 3542} 3543 3544case $ECHO in 3545 printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5 3546printf "%s\n" "printf" >&6; } ;; 3547 print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 3548printf "%s\n" "print -r" >&6; } ;; 3549 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5 3550printf "%s\n" "cat" >&6; } ;; 3551esac 3552 3553 3554 3555 3556 3557 3558 3559 3560 3561 3562 3563 3564 3565 3566 3567 3568 3569 3570 3571 3572 3573 3574 3575DEPDIR="${am__leading_dot}deps" 3576 3577ac_config_commands="$ac_config_commands depfiles" 3578 3579{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5 3580printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; } 3581cat > confinc.mk << 'END' 3582am__doit: 3583 @echo this is the am__doit target >confinc.out 3584.PHONY: am__doit 3585END 3586am__include="#" 3587am__quote= 3588# BSD make does it like this. 3589echo '.include "confinc.mk" # ignored' > confmf.BSD 3590# Other make implementations (GNU, Solaris 10, AIX) do it like this. 3591echo 'include confinc.mk # ignored' > confmf.GNU 3592_am_result=no 3593for s in GNU BSD; do 3594 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5 3595 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5 3596 ac_status=$? 3597 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3598 (exit $ac_status); } 3599 case $?:`cat confinc.out 2>/dev/null` in #( 3600 '0:this is the am__doit target') : 3601 case $s in #( 3602 BSD) : 3603 am__include='.include' am__quote='"' ;; #( 3604 *) : 3605 am__include='include' am__quote='' ;; 3606esac ;; #( 3607 *) : 3608 ;; 3609esac 3610 if test "$am__include" != "#"; then 3611 _am_result="yes ($s style)" 3612 break 3613 fi 3614done 3615rm -f confinc.* confmf.* 3616{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5 3617printf "%s\n" "${_am_result}" >&6; } 3618 3619# Check whether --enable-dependency-tracking was given. 3620if test ${enable_dependency_tracking+y} 3621then : 3622 enableval=$enable_dependency_tracking; 3623fi 3624 3625if test "x$enable_dependency_tracking" != xno; then 3626 am_depcomp="$ac_aux_dir/depcomp" 3627 AMDEPBACKSLASH='\' 3628 am__nodep='_no' 3629fi 3630 if test "x$enable_dependency_tracking" != xno; then 3631 AMDEP_TRUE= 3632 AMDEP_FALSE='#' 3633else 3634 AMDEP_TRUE='#' 3635 AMDEP_FALSE= 3636fi 3637 3638 3639ac_ext=c 3640ac_cpp='$CPP $CPPFLAGS' 3641ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3642ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3643ac_compiler_gnu=$ac_cv_c_compiler_gnu 3644if test -n "$ac_tool_prefix"; then 3645 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3646set dummy ${ac_tool_prefix}gcc; ac_word=$2 3647{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3648printf %s "checking for $ac_word... " >&6; } 3649if test ${ac_cv_prog_CC+y} 3650then : 3651 printf %s "(cached) " >&6 3652else $as_nop 3653 if test -n "$CC"; then 3654 ac_cv_prog_CC="$CC" # Let the user override the test. 3655else 3656as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3657for as_dir in $PATH 3658do 3659 IFS=$as_save_IFS 3660 case $as_dir in #((( 3661 '') as_dir=./ ;; 3662 */) ;; 3663 *) as_dir=$as_dir/ ;; 3664 esac 3665 for ac_exec_ext in '' $ac_executable_extensions; do 3666 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3667 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3668 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3669 break 2 3670 fi 3671done 3672 done 3673IFS=$as_save_IFS 3674 3675fi 3676fi 3677CC=$ac_cv_prog_CC 3678if test -n "$CC"; then 3679 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3680printf "%s\n" "$CC" >&6; } 3681else 3682 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3683printf "%s\n" "no" >&6; } 3684fi 3685 3686 3687fi 3688if test -z "$ac_cv_prog_CC"; then 3689 ac_ct_CC=$CC 3690 # Extract the first word of "gcc", so it can be a program name with args. 3691set dummy gcc; ac_word=$2 3692{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3693printf %s "checking for $ac_word... " >&6; } 3694if test ${ac_cv_prog_ac_ct_CC+y} 3695then : 3696 printf %s "(cached) " >&6 3697else $as_nop 3698 if test -n "$ac_ct_CC"; then 3699 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3700else 3701as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3702for as_dir in $PATH 3703do 3704 IFS=$as_save_IFS 3705 case $as_dir in #((( 3706 '') as_dir=./ ;; 3707 */) ;; 3708 *) as_dir=$as_dir/ ;; 3709 esac 3710 for ac_exec_ext in '' $ac_executable_extensions; do 3711 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3712 ac_cv_prog_ac_ct_CC="gcc" 3713 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3714 break 2 3715 fi 3716done 3717 done 3718IFS=$as_save_IFS 3719 3720fi 3721fi 3722ac_ct_CC=$ac_cv_prog_ac_ct_CC 3723if test -n "$ac_ct_CC"; then 3724 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3725printf "%s\n" "$ac_ct_CC" >&6; } 3726else 3727 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3728printf "%s\n" "no" >&6; } 3729fi 3730 3731 if test "x$ac_ct_CC" = x; then 3732 CC="" 3733 else 3734 case $cross_compiling:$ac_tool_warned in 3735yes:) 3736{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3737printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3738ac_tool_warned=yes ;; 3739esac 3740 CC=$ac_ct_CC 3741 fi 3742else 3743 CC="$ac_cv_prog_CC" 3744fi 3745 3746if test -z "$CC"; then 3747 if test -n "$ac_tool_prefix"; then 3748 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3749set dummy ${ac_tool_prefix}cc; ac_word=$2 3750{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3751printf %s "checking for $ac_word... " >&6; } 3752if test ${ac_cv_prog_CC+y} 3753then : 3754 printf %s "(cached) " >&6 3755else $as_nop 3756 if test -n "$CC"; then 3757 ac_cv_prog_CC="$CC" # Let the user override the test. 3758else 3759as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3760for as_dir in $PATH 3761do 3762 IFS=$as_save_IFS 3763 case $as_dir in #((( 3764 '') as_dir=./ ;; 3765 */) ;; 3766 *) as_dir=$as_dir/ ;; 3767 esac 3768 for ac_exec_ext in '' $ac_executable_extensions; do 3769 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3770 ac_cv_prog_CC="${ac_tool_prefix}cc" 3771 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3772 break 2 3773 fi 3774done 3775 done 3776IFS=$as_save_IFS 3777 3778fi 3779fi 3780CC=$ac_cv_prog_CC 3781if test -n "$CC"; then 3782 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3783printf "%s\n" "$CC" >&6; } 3784else 3785 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3786printf "%s\n" "no" >&6; } 3787fi 3788 3789 3790 fi 3791fi 3792if test -z "$CC"; then 3793 # Extract the first word of "cc", so it can be a program name with args. 3794set dummy cc; ac_word=$2 3795{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3796printf %s "checking for $ac_word... " >&6; } 3797if test ${ac_cv_prog_CC+y} 3798then : 3799 printf %s "(cached) " >&6 3800else $as_nop 3801 if test -n "$CC"; then 3802 ac_cv_prog_CC="$CC" # Let the user override the test. 3803else 3804 ac_prog_rejected=no 3805as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3806for as_dir in $PATH 3807do 3808 IFS=$as_save_IFS 3809 case $as_dir in #((( 3810 '') as_dir=./ ;; 3811 */) ;; 3812 *) as_dir=$as_dir/ ;; 3813 esac 3814 for ac_exec_ext in '' $ac_executable_extensions; do 3815 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3816 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3817 ac_prog_rejected=yes 3818 continue 3819 fi 3820 ac_cv_prog_CC="cc" 3821 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3822 break 2 3823 fi 3824done 3825 done 3826IFS=$as_save_IFS 3827 3828if test $ac_prog_rejected = yes; then 3829 # We found a bogon in the path, so make sure we never use it. 3830 set dummy $ac_cv_prog_CC 3831 shift 3832 if test $# != 0; then 3833 # We chose a different compiler from the bogus one. 3834 # However, it has the same basename, so the bogon will be chosen 3835 # first if we set CC to just the basename; use the full file name. 3836 shift 3837 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@" 3838 fi 3839fi 3840fi 3841fi 3842CC=$ac_cv_prog_CC 3843if test -n "$CC"; then 3844 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3845printf "%s\n" "$CC" >&6; } 3846else 3847 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3848printf "%s\n" "no" >&6; } 3849fi 3850 3851 3852fi 3853if test -z "$CC"; then 3854 if test -n "$ac_tool_prefix"; then 3855 for ac_prog in cl.exe 3856 do 3857 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3858set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3859{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3860printf %s "checking for $ac_word... " >&6; } 3861if test ${ac_cv_prog_CC+y} 3862then : 3863 printf %s "(cached) " >&6 3864else $as_nop 3865 if test -n "$CC"; then 3866 ac_cv_prog_CC="$CC" # Let the user override the test. 3867else 3868as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3869for as_dir in $PATH 3870do 3871 IFS=$as_save_IFS 3872 case $as_dir in #((( 3873 '') as_dir=./ ;; 3874 */) ;; 3875 *) as_dir=$as_dir/ ;; 3876 esac 3877 for ac_exec_ext in '' $ac_executable_extensions; do 3878 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3879 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3880 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3881 break 2 3882 fi 3883done 3884 done 3885IFS=$as_save_IFS 3886 3887fi 3888fi 3889CC=$ac_cv_prog_CC 3890if test -n "$CC"; then 3891 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3892printf "%s\n" "$CC" >&6; } 3893else 3894 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3895printf "%s\n" "no" >&6; } 3896fi 3897 3898 3899 test -n "$CC" && break 3900 done 3901fi 3902if test -z "$CC"; then 3903 ac_ct_CC=$CC 3904 for ac_prog in cl.exe 3905do 3906 # Extract the first word of "$ac_prog", so it can be a program name with args. 3907set dummy $ac_prog; ac_word=$2 3908{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3909printf %s "checking for $ac_word... " >&6; } 3910if test ${ac_cv_prog_ac_ct_CC+y} 3911then : 3912 printf %s "(cached) " >&6 3913else $as_nop 3914 if test -n "$ac_ct_CC"; then 3915 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3916else 3917as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3918for as_dir in $PATH 3919do 3920 IFS=$as_save_IFS 3921 case $as_dir in #((( 3922 '') as_dir=./ ;; 3923 */) ;; 3924 *) as_dir=$as_dir/ ;; 3925 esac 3926 for ac_exec_ext in '' $ac_executable_extensions; do 3927 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3928 ac_cv_prog_ac_ct_CC="$ac_prog" 3929 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3930 break 2 3931 fi 3932done 3933 done 3934IFS=$as_save_IFS 3935 3936fi 3937fi 3938ac_ct_CC=$ac_cv_prog_ac_ct_CC 3939if test -n "$ac_ct_CC"; then 3940 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3941printf "%s\n" "$ac_ct_CC" >&6; } 3942else 3943 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3944printf "%s\n" "no" >&6; } 3945fi 3946 3947 3948 test -n "$ac_ct_CC" && break 3949done 3950 3951 if test "x$ac_ct_CC" = x; then 3952 CC="" 3953 else 3954 case $cross_compiling:$ac_tool_warned in 3955yes:) 3956{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3957printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3958ac_tool_warned=yes ;; 3959esac 3960 CC=$ac_ct_CC 3961 fi 3962fi 3963 3964fi 3965if test -z "$CC"; then 3966 if test -n "$ac_tool_prefix"; then 3967 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args. 3968set dummy ${ac_tool_prefix}clang; ac_word=$2 3969{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3970printf %s "checking for $ac_word... " >&6; } 3971if test ${ac_cv_prog_CC+y} 3972then : 3973 printf %s "(cached) " >&6 3974else $as_nop 3975 if test -n "$CC"; then 3976 ac_cv_prog_CC="$CC" # Let the user override the test. 3977else 3978as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3979for as_dir in $PATH 3980do 3981 IFS=$as_save_IFS 3982 case $as_dir in #((( 3983 '') as_dir=./ ;; 3984 */) ;; 3985 *) as_dir=$as_dir/ ;; 3986 esac 3987 for ac_exec_ext in '' $ac_executable_extensions; do 3988 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3989 ac_cv_prog_CC="${ac_tool_prefix}clang" 3990 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3991 break 2 3992 fi 3993done 3994 done 3995IFS=$as_save_IFS 3996 3997fi 3998fi 3999CC=$ac_cv_prog_CC 4000if test -n "$CC"; then 4001 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4002printf "%s\n" "$CC" >&6; } 4003else 4004 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4005printf "%s\n" "no" >&6; } 4006fi 4007 4008 4009fi 4010if test -z "$ac_cv_prog_CC"; then 4011 ac_ct_CC=$CC 4012 # Extract the first word of "clang", so it can be a program name with args. 4013set dummy clang; ac_word=$2 4014{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4015printf %s "checking for $ac_word... " >&6; } 4016if test ${ac_cv_prog_ac_ct_CC+y} 4017then : 4018 printf %s "(cached) " >&6 4019else $as_nop 4020 if test -n "$ac_ct_CC"; then 4021 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 4022else 4023as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4024for as_dir in $PATH 4025do 4026 IFS=$as_save_IFS 4027 case $as_dir in #((( 4028 '') as_dir=./ ;; 4029 */) ;; 4030 *) as_dir=$as_dir/ ;; 4031 esac 4032 for ac_exec_ext in '' $ac_executable_extensions; do 4033 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4034 ac_cv_prog_ac_ct_CC="clang" 4035 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4036 break 2 4037 fi 4038done 4039 done 4040IFS=$as_save_IFS 4041 4042fi 4043fi 4044ac_ct_CC=$ac_cv_prog_ac_ct_CC 4045if test -n "$ac_ct_CC"; then 4046 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 4047printf "%s\n" "$ac_ct_CC" >&6; } 4048else 4049 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4050printf "%s\n" "no" >&6; } 4051fi 4052 4053 if test "x$ac_ct_CC" = x; then 4054 CC="" 4055 else 4056 case $cross_compiling:$ac_tool_warned in 4057yes:) 4058{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4059printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4060ac_tool_warned=yes ;; 4061esac 4062 CC=$ac_ct_CC 4063 fi 4064else 4065 CC="$ac_cv_prog_CC" 4066fi 4067 4068fi 4069 4070 4071test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4072printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 4073as_fn_error $? "no acceptable C compiler found in \$PATH 4074See \`config.log' for more details" "$LINENO" 5; } 4075 4076# Provide some information about the compiler. 4077printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 4078set X $ac_compile 4079ac_compiler=$2 4080for ac_option in --version -v -V -qversion -version; do 4081 { { ac_try="$ac_compiler $ac_option >&5" 4082case "(($ac_try" in 4083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4084 *) ac_try_echo=$ac_try;; 4085esac 4086eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4087printf "%s\n" "$ac_try_echo"; } >&5 4088 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 4089 ac_status=$? 4090 if test -s conftest.err; then 4091 sed '10a\ 4092... rest of stderr output deleted ... 4093 10q' conftest.err >conftest.er1 4094 cat conftest.er1 >&5 4095 fi 4096 rm -f conftest.er1 conftest.err 4097 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4098 test $ac_status = 0; } 4099done 4100 4101cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4102/* end confdefs.h. */ 4103 4104int 4105main (void) 4106{ 4107 4108 ; 4109 return 0; 4110} 4111_ACEOF 4112ac_clean_files_save=$ac_clean_files 4113ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 4114# Try to create an executable without -o first, disregard a.out. 4115# It will help us diagnose broken compilers, and finding out an intuition 4116# of exeext. 4117{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 4118printf %s "checking whether the C compiler works... " >&6; } 4119ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 4120 4121# The possible output files: 4122ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 4123 4124ac_rmfiles= 4125for ac_file in $ac_files 4126do 4127 case $ac_file in 4128 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 4129 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 4130 esac 4131done 4132rm -f $ac_rmfiles 4133 4134if { { ac_try="$ac_link_default" 4135case "(($ac_try" in 4136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4137 *) ac_try_echo=$ac_try;; 4138esac 4139eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4140printf "%s\n" "$ac_try_echo"; } >&5 4141 (eval "$ac_link_default") 2>&5 4142 ac_status=$? 4143 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4144 test $ac_status = 0; } 4145then : 4146 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 4147# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 4148# in a Makefile. We should not override ac_cv_exeext if it was cached, 4149# so that the user can short-circuit this test for compilers unknown to 4150# Autoconf. 4151for ac_file in $ac_files '' 4152do 4153 test -f "$ac_file" || continue 4154 case $ac_file in 4155 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 4156 ;; 4157 [ab].out ) 4158 # We found the default executable, but exeext='' is most 4159 # certainly right. 4160 break;; 4161 *.* ) 4162 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no; 4163 then :; else 4164 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 4165 fi 4166 # We set ac_cv_exeext here because the later test for it is not 4167 # safe: cross compilers may not add the suffix if given an `-o' 4168 # argument, so we may need to know it at that point already. 4169 # Even if this section looks crufty: it has the advantage of 4170 # actually working. 4171 break;; 4172 * ) 4173 break;; 4174 esac 4175done 4176test "$ac_cv_exeext" = no && ac_cv_exeext= 4177 4178else $as_nop 4179 ac_file='' 4180fi 4181if test -z "$ac_file" 4182then : 4183 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4184printf "%s\n" "no" >&6; } 4185printf "%s\n" "$as_me: failed program was:" >&5 4186sed 's/^/| /' conftest.$ac_ext >&5 4187 4188{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4189printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 4190as_fn_error 77 "C compiler cannot create executables 4191See \`config.log' for more details" "$LINENO" 5; } 4192else $as_nop 4193 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4194printf "%s\n" "yes" >&6; } 4195fi 4196{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 4197printf %s "checking for C compiler default output file name... " >&6; } 4198{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 4199printf "%s\n" "$ac_file" >&6; } 4200ac_exeext=$ac_cv_exeext 4201 4202rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 4203ac_clean_files=$ac_clean_files_save 4204{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 4205printf %s "checking for suffix of executables... " >&6; } 4206if { { ac_try="$ac_link" 4207case "(($ac_try" in 4208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4209 *) ac_try_echo=$ac_try;; 4210esac 4211eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4212printf "%s\n" "$ac_try_echo"; } >&5 4213 (eval "$ac_link") 2>&5 4214 ac_status=$? 4215 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4216 test $ac_status = 0; } 4217then : 4218 # If both `conftest.exe' and `conftest' are `present' (well, observable) 4219# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 4220# work properly (i.e., refer to `conftest.exe'), while it won't with 4221# `rm'. 4222for ac_file in conftest.exe conftest conftest.*; do 4223 test -f "$ac_file" || continue 4224 case $ac_file in 4225 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 4226 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 4227 break;; 4228 * ) break;; 4229 esac 4230done 4231else $as_nop 4232 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4233printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 4234as_fn_error $? "cannot compute suffix of executables: cannot compile and link 4235See \`config.log' for more details" "$LINENO" 5; } 4236fi 4237rm -f conftest conftest$ac_cv_exeext 4238{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 4239printf "%s\n" "$ac_cv_exeext" >&6; } 4240 4241rm -f conftest.$ac_ext 4242EXEEXT=$ac_cv_exeext 4243ac_exeext=$EXEEXT 4244cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4245/* end confdefs.h. */ 4246#include <stdio.h> 4247int 4248main (void) 4249{ 4250FILE *f = fopen ("conftest.out", "w"); 4251 return ferror (f) || fclose (f) != 0; 4252 4253 ; 4254 return 0; 4255} 4256_ACEOF 4257ac_clean_files="$ac_clean_files conftest.out" 4258# Check that the compiler produces executables we can run. If not, either 4259# the compiler is broken, or we cross compile. 4260{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 4261printf %s "checking whether we are cross compiling... " >&6; } 4262if test "$cross_compiling" != yes; then 4263 { { ac_try="$ac_link" 4264case "(($ac_try" in 4265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4266 *) ac_try_echo=$ac_try;; 4267esac 4268eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4269printf "%s\n" "$ac_try_echo"; } >&5 4270 (eval "$ac_link") 2>&5 4271 ac_status=$? 4272 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4273 test $ac_status = 0; } 4274 if { ac_try='./conftest$ac_cv_exeext' 4275 { { case "(($ac_try" in 4276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4277 *) ac_try_echo=$ac_try;; 4278esac 4279eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4280printf "%s\n" "$ac_try_echo"; } >&5 4281 (eval "$ac_try") 2>&5 4282 ac_status=$? 4283 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4284 test $ac_status = 0; }; }; then 4285 cross_compiling=no 4286 else 4287 if test "$cross_compiling" = maybe; then 4288 cross_compiling=yes 4289 else 4290 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4291printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 4292as_fn_error 77 "cannot run C compiled programs. 4293If you meant to cross compile, use \`--host'. 4294See \`config.log' for more details" "$LINENO" 5; } 4295 fi 4296 fi 4297fi 4298{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 4299printf "%s\n" "$cross_compiling" >&6; } 4300 4301rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 4302ac_clean_files=$ac_clean_files_save 4303{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 4304printf %s "checking for suffix of object files... " >&6; } 4305if test ${ac_cv_objext+y} 4306then : 4307 printf %s "(cached) " >&6 4308else $as_nop 4309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4310/* end confdefs.h. */ 4311 4312int 4313main (void) 4314{ 4315 4316 ; 4317 return 0; 4318} 4319_ACEOF 4320rm -f conftest.o conftest.obj 4321if { { ac_try="$ac_compile" 4322case "(($ac_try" in 4323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4324 *) ac_try_echo=$ac_try;; 4325esac 4326eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4327printf "%s\n" "$ac_try_echo"; } >&5 4328 (eval "$ac_compile") 2>&5 4329 ac_status=$? 4330 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4331 test $ac_status = 0; } 4332then : 4333 for ac_file in conftest.o conftest.obj conftest.*; do 4334 test -f "$ac_file" || continue; 4335 case $ac_file in 4336 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 4337 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 4338 break;; 4339 esac 4340done 4341else $as_nop 4342 printf "%s\n" "$as_me: failed program was:" >&5 4343sed 's/^/| /' conftest.$ac_ext >&5 4344 4345{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4346printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 4347as_fn_error $? "cannot compute suffix of object files: cannot compile 4348See \`config.log' for more details" "$LINENO" 5; } 4349fi 4350rm -f conftest.$ac_cv_objext conftest.$ac_ext 4351fi 4352{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 4353printf "%s\n" "$ac_cv_objext" >&6; } 4354OBJEXT=$ac_cv_objext 4355ac_objext=$OBJEXT 4356{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5 4357printf %s "checking whether the compiler supports GNU C... " >&6; } 4358if test ${ac_cv_c_compiler_gnu+y} 4359then : 4360 printf %s "(cached) " >&6 4361else $as_nop 4362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4363/* end confdefs.h. */ 4364 4365int 4366main (void) 4367{ 4368#ifndef __GNUC__ 4369 choke me 4370#endif 4371 4372 ; 4373 return 0; 4374} 4375_ACEOF 4376if ac_fn_c_try_compile "$LINENO" 4377then : 4378 ac_compiler_gnu=yes 4379else $as_nop 4380 ac_compiler_gnu=no 4381fi 4382rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4383ac_cv_c_compiler_gnu=$ac_compiler_gnu 4384 4385fi 4386{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 4387printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; } 4388ac_compiler_gnu=$ac_cv_c_compiler_gnu 4389 4390if test $ac_compiler_gnu = yes; then 4391 GCC=yes 4392else 4393 GCC= 4394fi 4395ac_test_CFLAGS=${CFLAGS+y} 4396ac_save_CFLAGS=$CFLAGS 4397{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 4398printf %s "checking whether $CC accepts -g... " >&6; } 4399if test ${ac_cv_prog_cc_g+y} 4400then : 4401 printf %s "(cached) " >&6 4402else $as_nop 4403 ac_save_c_werror_flag=$ac_c_werror_flag 4404 ac_c_werror_flag=yes 4405 ac_cv_prog_cc_g=no 4406 CFLAGS="-g" 4407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4408/* end confdefs.h. */ 4409 4410int 4411main (void) 4412{ 4413 4414 ; 4415 return 0; 4416} 4417_ACEOF 4418if ac_fn_c_try_compile "$LINENO" 4419then : 4420 ac_cv_prog_cc_g=yes 4421else $as_nop 4422 CFLAGS="" 4423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4424/* end confdefs.h. */ 4425 4426int 4427main (void) 4428{ 4429 4430 ; 4431 return 0; 4432} 4433_ACEOF 4434if ac_fn_c_try_compile "$LINENO" 4435then : 4436 4437else $as_nop 4438 ac_c_werror_flag=$ac_save_c_werror_flag 4439 CFLAGS="-g" 4440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4441/* end confdefs.h. */ 4442 4443int 4444main (void) 4445{ 4446 4447 ; 4448 return 0; 4449} 4450_ACEOF 4451if ac_fn_c_try_compile "$LINENO" 4452then : 4453 ac_cv_prog_cc_g=yes 4454fi 4455rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4456fi 4457rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4458fi 4459rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4460 ac_c_werror_flag=$ac_save_c_werror_flag 4461fi 4462{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 4463printf "%s\n" "$ac_cv_prog_cc_g" >&6; } 4464if test $ac_test_CFLAGS; then 4465 CFLAGS=$ac_save_CFLAGS 4466elif test $ac_cv_prog_cc_g = yes; then 4467 if test "$GCC" = yes; then 4468 CFLAGS="-g -O2" 4469 else 4470 CFLAGS="-g" 4471 fi 4472else 4473 if test "$GCC" = yes; then 4474 CFLAGS="-O2" 4475 else 4476 CFLAGS= 4477 fi 4478fi 4479ac_prog_cc_stdc=no 4480if test x$ac_prog_cc_stdc = xno 4481then : 4482 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5 4483printf %s "checking for $CC option to enable C11 features... " >&6; } 4484if test ${ac_cv_prog_cc_c11+y} 4485then : 4486 printf %s "(cached) " >&6 4487else $as_nop 4488 ac_cv_prog_cc_c11=no 4489ac_save_CC=$CC 4490cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4491/* end confdefs.h. */ 4492$ac_c_conftest_c11_program 4493_ACEOF 4494for ac_arg in '' -std=gnu11 4495do 4496 CC="$ac_save_CC $ac_arg" 4497 if ac_fn_c_try_compile "$LINENO" 4498then : 4499 ac_cv_prog_cc_c11=$ac_arg 4500fi 4501rm -f core conftest.err conftest.$ac_objext conftest.beam 4502 test "x$ac_cv_prog_cc_c11" != "xno" && break 4503done 4504rm -f conftest.$ac_ext 4505CC=$ac_save_CC 4506fi 4507 4508if test "x$ac_cv_prog_cc_c11" = xno 4509then : 4510 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4511printf "%s\n" "unsupported" >&6; } 4512else $as_nop 4513 if test "x$ac_cv_prog_cc_c11" = x 4514then : 4515 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4516printf "%s\n" "none needed" >&6; } 4517else $as_nop 4518 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5 4519printf "%s\n" "$ac_cv_prog_cc_c11" >&6; } 4520 CC="$CC $ac_cv_prog_cc_c11" 4521fi 4522 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11 4523 ac_prog_cc_stdc=c11 4524fi 4525fi 4526if test x$ac_prog_cc_stdc = xno 4527then : 4528 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5 4529printf %s "checking for $CC option to enable C99 features... " >&6; } 4530if test ${ac_cv_prog_cc_c99+y} 4531then : 4532 printf %s "(cached) " >&6 4533else $as_nop 4534 ac_cv_prog_cc_c99=no 4535ac_save_CC=$CC 4536cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4537/* end confdefs.h. */ 4538$ac_c_conftest_c99_program 4539_ACEOF 4540for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99= 4541do 4542 CC="$ac_save_CC $ac_arg" 4543 if ac_fn_c_try_compile "$LINENO" 4544then : 4545 ac_cv_prog_cc_c99=$ac_arg 4546fi 4547rm -f core conftest.err conftest.$ac_objext conftest.beam 4548 test "x$ac_cv_prog_cc_c99" != "xno" && break 4549done 4550rm -f conftest.$ac_ext 4551CC=$ac_save_CC 4552fi 4553 4554if test "x$ac_cv_prog_cc_c99" = xno 4555then : 4556 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4557printf "%s\n" "unsupported" >&6; } 4558else $as_nop 4559 if test "x$ac_cv_prog_cc_c99" = x 4560then : 4561 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4562printf "%s\n" "none needed" >&6; } 4563else $as_nop 4564 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 4565printf "%s\n" "$ac_cv_prog_cc_c99" >&6; } 4566 CC="$CC $ac_cv_prog_cc_c99" 4567fi 4568 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 4569 ac_prog_cc_stdc=c99 4570fi 4571fi 4572if test x$ac_prog_cc_stdc = xno 4573then : 4574 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5 4575printf %s "checking for $CC option to enable C89 features... " >&6; } 4576if test ${ac_cv_prog_cc_c89+y} 4577then : 4578 printf %s "(cached) " >&6 4579else $as_nop 4580 ac_cv_prog_cc_c89=no 4581ac_save_CC=$CC 4582cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4583/* end confdefs.h. */ 4584$ac_c_conftest_c89_program 4585_ACEOF 4586for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4587do 4588 CC="$ac_save_CC $ac_arg" 4589 if ac_fn_c_try_compile "$LINENO" 4590then : 4591 ac_cv_prog_cc_c89=$ac_arg 4592fi 4593rm -f core conftest.err conftest.$ac_objext conftest.beam 4594 test "x$ac_cv_prog_cc_c89" != "xno" && break 4595done 4596rm -f conftest.$ac_ext 4597CC=$ac_save_CC 4598fi 4599 4600if test "x$ac_cv_prog_cc_c89" = xno 4601then : 4602 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4603printf "%s\n" "unsupported" >&6; } 4604else $as_nop 4605 if test "x$ac_cv_prog_cc_c89" = x 4606then : 4607 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4608printf "%s\n" "none needed" >&6; } 4609else $as_nop 4610 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4611printf "%s\n" "$ac_cv_prog_cc_c89" >&6; } 4612 CC="$CC $ac_cv_prog_cc_c89" 4613fi 4614 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 4615 ac_prog_cc_stdc=c89 4616fi 4617fi 4618 4619ac_ext=c 4620ac_cpp='$CPP $CPPFLAGS' 4621ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4622ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4623ac_compiler_gnu=$ac_cv_c_compiler_gnu 4624 4625 4626 ac_ext=c 4627ac_cpp='$CPP $CPPFLAGS' 4628ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4629ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4630ac_compiler_gnu=$ac_cv_c_compiler_gnu 4631{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 4632printf %s "checking whether $CC understands -c and -o together... " >&6; } 4633if test ${am_cv_prog_cc_c_o+y} 4634then : 4635 printf %s "(cached) " >&6 4636else $as_nop 4637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4638/* end confdefs.h. */ 4639 4640int 4641main (void) 4642{ 4643 4644 ; 4645 return 0; 4646} 4647_ACEOF 4648 # Make sure it works both with $CC and with simple cc. 4649 # Following AC_PROG_CC_C_O, we do the test twice because some 4650 # compilers refuse to overwrite an existing .o file with -o, 4651 # though they will create one. 4652 am_cv_prog_cc_c_o=yes 4653 for am_i in 1 2; do 4654 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 4655 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 4656 ac_status=$? 4657 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4658 (exit $ac_status); } \ 4659 && test -f conftest2.$ac_objext; then 4660 : OK 4661 else 4662 am_cv_prog_cc_c_o=no 4663 break 4664 fi 4665 done 4666 rm -f core conftest* 4667 unset am_i 4668fi 4669{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 4670printf "%s\n" "$am_cv_prog_cc_c_o" >&6; } 4671if test "$am_cv_prog_cc_c_o" != yes; then 4672 # Losing compiler, so override with the script. 4673 # FIXME: It is wrong to rewrite CC. 4674 # But if we don't then we get into trouble of one sort or another. 4675 # A longer-term fix would be to have automake use am__CC in this case, 4676 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 4677 CC="$am_aux_dir/compile $CC" 4678fi 4679ac_ext=c 4680ac_cpp='$CPP $CPPFLAGS' 4681ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4682ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4683ac_compiler_gnu=$ac_cv_c_compiler_gnu 4684 4685 4686depcc="$CC" am_compiler_list= 4687 4688{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4689printf %s "checking dependency style of $depcc... " >&6; } 4690if test ${am_cv_CC_dependencies_compiler_type+y} 4691then : 4692 printf %s "(cached) " >&6 4693else $as_nop 4694 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4695 # We make a subdir and do the tests there. Otherwise we can end up 4696 # making bogus files that we don't know about and never remove. For 4697 # instance it was reported that on HP-UX the gcc test will end up 4698 # making a dummy file named 'D' -- because '-MD' means "put the output 4699 # in D". 4700 rm -rf conftest.dir 4701 mkdir conftest.dir 4702 # Copy depcomp to subdir because otherwise we won't find it if we're 4703 # using a relative directory. 4704 cp "$am_depcomp" conftest.dir 4705 cd conftest.dir 4706 # We will build objects and dependencies in a subdirectory because 4707 # it helps to detect inapplicable dependency modes. For instance 4708 # both Tru64's cc and ICC support -MD to output dependencies as a 4709 # side effect of compilation, but ICC will put the dependencies in 4710 # the current directory while Tru64 will put them in the object 4711 # directory. 4712 mkdir sub 4713 4714 am_cv_CC_dependencies_compiler_type=none 4715 if test "$am_compiler_list" = ""; then 4716 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4717 fi 4718 am__universal=false 4719 case " $depcc " in #( 4720 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4721 esac 4722 4723 for depmode in $am_compiler_list; do 4724 # Setup a source with many dependencies, because some compilers 4725 # like to wrap large dependency lists on column 80 (with \), and 4726 # we should not choose a depcomp mode which is confused by this. 4727 # 4728 # We need to recreate these files for each test, as the compiler may 4729 # overwrite some of them when testing with obscure command lines. 4730 # This happens at least with the AIX C compiler. 4731 : > sub/conftest.c 4732 for i in 1 2 3 4 5 6; do 4733 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4734 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4735 # Solaris 10 /bin/sh. 4736 echo '/* dummy */' > sub/conftst$i.h 4737 done 4738 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4739 4740 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4741 # mode. It turns out that the SunPro C++ compiler does not properly 4742 # handle '-M -o', and we need to detect this. Also, some Intel 4743 # versions had trouble with output in subdirs. 4744 am__obj=sub/conftest.${OBJEXT-o} 4745 am__minus_obj="-o $am__obj" 4746 case $depmode in 4747 gcc) 4748 # This depmode causes a compiler race in universal mode. 4749 test "$am__universal" = false || continue 4750 ;; 4751 nosideeffect) 4752 # After this tag, mechanisms are not by side-effect, so they'll 4753 # only be used when explicitly requested. 4754 if test "x$enable_dependency_tracking" = xyes; then 4755 continue 4756 else 4757 break 4758 fi 4759 ;; 4760 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4761 # This compiler won't grok '-c -o', but also, the minuso test has 4762 # not run yet. These depmodes are late enough in the game, and 4763 # so weak that their functioning should not be impacted. 4764 am__obj=conftest.${OBJEXT-o} 4765 am__minus_obj= 4766 ;; 4767 none) break ;; 4768 esac 4769 if depmode=$depmode \ 4770 source=sub/conftest.c object=$am__obj \ 4771 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4772 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4773 >/dev/null 2>conftest.err && 4774 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4775 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4776 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4777 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4778 # icc doesn't choke on unknown options, it will just issue warnings 4779 # or remarks (even with -Werror). So we grep stderr for any message 4780 # that says an option was ignored or not supported. 4781 # When given -MP, icc 7.0 and 7.1 complain thusly: 4782 # icc: Command line warning: ignoring option '-M'; no argument required 4783 # The diagnosis changed in icc 8.0: 4784 # icc: Command line remark: option '-MP' not supported 4785 if (grep 'ignoring option' conftest.err || 4786 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4787 am_cv_CC_dependencies_compiler_type=$depmode 4788 break 4789 fi 4790 fi 4791 done 4792 4793 cd .. 4794 rm -rf conftest.dir 4795else 4796 am_cv_CC_dependencies_compiler_type=none 4797fi 4798 4799fi 4800{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4801printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; } 4802CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4803 4804 if 4805 test "x$enable_dependency_tracking" != xno \ 4806 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4807 am__fastdepCC_TRUE= 4808 am__fastdepCC_FALSE='#' 4809else 4810 am__fastdepCC_TRUE='#' 4811 am__fastdepCC_FALSE= 4812fi 4813 4814 4815{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4816printf %s "checking for a sed that does not truncate output... " >&6; } 4817if test ${ac_cv_path_SED+y} 4818then : 4819 printf %s "(cached) " >&6 4820else $as_nop 4821 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4822 for ac_i in 1 2 3 4 5 6 7; do 4823 ac_script="$ac_script$as_nl$ac_script" 4824 done 4825 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4826 { ac_script=; unset ac_script;} 4827 if test -z "$SED"; then 4828 ac_path_SED_found=false 4829 # Loop through the user's path and test for each of PROGNAME-LIST 4830 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4831for as_dir in $PATH 4832do 4833 IFS=$as_save_IFS 4834 case $as_dir in #((( 4835 '') as_dir=./ ;; 4836 */) ;; 4837 *) as_dir=$as_dir/ ;; 4838 esac 4839 for ac_prog in sed gsed 4840 do 4841 for ac_exec_ext in '' $ac_executable_extensions; do 4842 ac_path_SED="$as_dir$ac_prog$ac_exec_ext" 4843 as_fn_executable_p "$ac_path_SED" || continue 4844# Check for GNU ac_path_SED and select it if it is found. 4845 # Check for GNU $ac_path_SED 4846case `"$ac_path_SED" --version 2>&1` in 4847*GNU*) 4848 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4849*) 4850 ac_count=0 4851 printf %s 0123456789 >"conftest.in" 4852 while : 4853 do 4854 cat "conftest.in" "conftest.in" >"conftest.tmp" 4855 mv "conftest.tmp" "conftest.in" 4856 cp "conftest.in" "conftest.nl" 4857 printf "%s\n" '' >> "conftest.nl" 4858 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4859 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4860 as_fn_arith $ac_count + 1 && ac_count=$as_val 4861 if test $ac_count -gt ${ac_path_SED_max-0}; then 4862 # Best one so far, save it but keep looking for a better one 4863 ac_cv_path_SED="$ac_path_SED" 4864 ac_path_SED_max=$ac_count 4865 fi 4866 # 10*(2^10) chars as input seems more than enough 4867 test $ac_count -gt 10 && break 4868 done 4869 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4870esac 4871 4872 $ac_path_SED_found && break 3 4873 done 4874 done 4875 done 4876IFS=$as_save_IFS 4877 if test -z "$ac_cv_path_SED"; then 4878 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 4879 fi 4880else 4881 ac_cv_path_SED=$SED 4882fi 4883 4884fi 4885{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4886printf "%s\n" "$ac_cv_path_SED" >&6; } 4887 SED="$ac_cv_path_SED" 4888 rm -f conftest.sed 4889 4890test -z "$SED" && SED=sed 4891Xsed="$SED -e 1s/^X//" 4892 4893 4894 4895 4896 4897 4898 4899 4900 4901 4902 4903{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4904printf %s "checking for grep that handles long lines and -e... " >&6; } 4905if test ${ac_cv_path_GREP+y} 4906then : 4907 printf %s "(cached) " >&6 4908else $as_nop 4909 if test -z "$GREP"; then 4910 ac_path_GREP_found=false 4911 # Loop through the user's path and test for each of PROGNAME-LIST 4912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4913for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4914do 4915 IFS=$as_save_IFS 4916 case $as_dir in #((( 4917 '') as_dir=./ ;; 4918 */) ;; 4919 *) as_dir=$as_dir/ ;; 4920 esac 4921 for ac_prog in grep ggrep 4922 do 4923 for ac_exec_ext in '' $ac_executable_extensions; do 4924 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext" 4925 as_fn_executable_p "$ac_path_GREP" || continue 4926# Check for GNU ac_path_GREP and select it if it is found. 4927 # Check for GNU $ac_path_GREP 4928case `"$ac_path_GREP" --version 2>&1` in 4929*GNU*) 4930 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4931*) 4932 ac_count=0 4933 printf %s 0123456789 >"conftest.in" 4934 while : 4935 do 4936 cat "conftest.in" "conftest.in" >"conftest.tmp" 4937 mv "conftest.tmp" "conftest.in" 4938 cp "conftest.in" "conftest.nl" 4939 printf "%s\n" 'GREP' >> "conftest.nl" 4940 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4941 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4942 as_fn_arith $ac_count + 1 && ac_count=$as_val 4943 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4944 # Best one so far, save it but keep looking for a better one 4945 ac_cv_path_GREP="$ac_path_GREP" 4946 ac_path_GREP_max=$ac_count 4947 fi 4948 # 10*(2^10) chars as input seems more than enough 4949 test $ac_count -gt 10 && break 4950 done 4951 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4952esac 4953 4954 $ac_path_GREP_found && break 3 4955 done 4956 done 4957 done 4958IFS=$as_save_IFS 4959 if test -z "$ac_cv_path_GREP"; then 4960 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4961 fi 4962else 4963 ac_cv_path_GREP=$GREP 4964fi 4965 4966fi 4967{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4968printf "%s\n" "$ac_cv_path_GREP" >&6; } 4969 GREP="$ac_cv_path_GREP" 4970 4971 4972{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4973printf %s "checking for egrep... " >&6; } 4974if test ${ac_cv_path_EGREP+y} 4975then : 4976 printf %s "(cached) " >&6 4977else $as_nop 4978 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4979 then ac_cv_path_EGREP="$GREP -E" 4980 else 4981 if test -z "$EGREP"; then 4982 ac_path_EGREP_found=false 4983 # Loop through the user's path and test for each of PROGNAME-LIST 4984 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4985for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4986do 4987 IFS=$as_save_IFS 4988 case $as_dir in #((( 4989 '') as_dir=./ ;; 4990 */) ;; 4991 *) as_dir=$as_dir/ ;; 4992 esac 4993 for ac_prog in egrep 4994 do 4995 for ac_exec_ext in '' $ac_executable_extensions; do 4996 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext" 4997 as_fn_executable_p "$ac_path_EGREP" || continue 4998# Check for GNU ac_path_EGREP and select it if it is found. 4999 # Check for GNU $ac_path_EGREP 5000case `"$ac_path_EGREP" --version 2>&1` in 5001*GNU*) 5002 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 5003*) 5004 ac_count=0 5005 printf %s 0123456789 >"conftest.in" 5006 while : 5007 do 5008 cat "conftest.in" "conftest.in" >"conftest.tmp" 5009 mv "conftest.tmp" "conftest.in" 5010 cp "conftest.in" "conftest.nl" 5011 printf "%s\n" 'EGREP' >> "conftest.nl" 5012 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 5013 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5014 as_fn_arith $ac_count + 1 && ac_count=$as_val 5015 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 5016 # Best one so far, save it but keep looking for a better one 5017 ac_cv_path_EGREP="$ac_path_EGREP" 5018 ac_path_EGREP_max=$ac_count 5019 fi 5020 # 10*(2^10) chars as input seems more than enough 5021 test $ac_count -gt 10 && break 5022 done 5023 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5024esac 5025 5026 $ac_path_EGREP_found && break 3 5027 done 5028 done 5029 done 5030IFS=$as_save_IFS 5031 if test -z "$ac_cv_path_EGREP"; then 5032 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5033 fi 5034else 5035 ac_cv_path_EGREP=$EGREP 5036fi 5037 5038 fi 5039fi 5040{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 5041printf "%s\n" "$ac_cv_path_EGREP" >&6; } 5042 EGREP="$ac_cv_path_EGREP" 5043 5044 5045{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 5046printf %s "checking for fgrep... " >&6; } 5047if test ${ac_cv_path_FGREP+y} 5048then : 5049 printf %s "(cached) " >&6 5050else $as_nop 5051 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 5052 then ac_cv_path_FGREP="$GREP -F" 5053 else 5054 if test -z "$FGREP"; then 5055 ac_path_FGREP_found=false 5056 # Loop through the user's path and test for each of PROGNAME-LIST 5057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5058for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5059do 5060 IFS=$as_save_IFS 5061 case $as_dir in #((( 5062 '') as_dir=./ ;; 5063 */) ;; 5064 *) as_dir=$as_dir/ ;; 5065 esac 5066 for ac_prog in fgrep 5067 do 5068 for ac_exec_ext in '' $ac_executable_extensions; do 5069 ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext" 5070 as_fn_executable_p "$ac_path_FGREP" || continue 5071# Check for GNU ac_path_FGREP and select it if it is found. 5072 # Check for GNU $ac_path_FGREP 5073case `"$ac_path_FGREP" --version 2>&1` in 5074*GNU*) 5075 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 5076*) 5077 ac_count=0 5078 printf %s 0123456789 >"conftest.in" 5079 while : 5080 do 5081 cat "conftest.in" "conftest.in" >"conftest.tmp" 5082 mv "conftest.tmp" "conftest.in" 5083 cp "conftest.in" "conftest.nl" 5084 printf "%s\n" 'FGREP' >> "conftest.nl" 5085 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 5086 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5087 as_fn_arith $ac_count + 1 && ac_count=$as_val 5088 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 5089 # Best one so far, save it but keep looking for a better one 5090 ac_cv_path_FGREP="$ac_path_FGREP" 5091 ac_path_FGREP_max=$ac_count 5092 fi 5093 # 10*(2^10) chars as input seems more than enough 5094 test $ac_count -gt 10 && break 5095 done 5096 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5097esac 5098 5099 $ac_path_FGREP_found && break 3 5100 done 5101 done 5102 done 5103IFS=$as_save_IFS 5104 if test -z "$ac_cv_path_FGREP"; then 5105 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5106 fi 5107else 5108 ac_cv_path_FGREP=$FGREP 5109fi 5110 5111 fi 5112fi 5113{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 5114printf "%s\n" "$ac_cv_path_FGREP" >&6; } 5115 FGREP="$ac_cv_path_FGREP" 5116 5117 5118test -z "$GREP" && GREP=grep 5119 5120 5121 5122 5123 5124 5125 5126 5127 5128 5129 5130 5131 5132 5133 5134 5135 5136 5137 5138# Check whether --with-gnu-ld was given. 5139if test ${with_gnu_ld+y} 5140then : 5141 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 5142else $as_nop 5143 with_gnu_ld=no 5144fi 5145 5146ac_prog=ld 5147if test yes = "$GCC"; then 5148 # Check if gcc -print-prog-name=ld gives a path. 5149 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 5150printf %s "checking for ld used by $CC... " >&6; } 5151 case $host in 5152 *-*-mingw*) 5153 # gcc leaves a trailing carriage return, which upsets mingw 5154 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 5155 *) 5156 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 5157 esac 5158 case $ac_prog in 5159 # Accept absolute paths. 5160 [\\/]* | ?:[\\/]*) 5161 re_direlt='/[^/][^/]*/\.\./' 5162 # Canonicalize the pathname of ld 5163 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 5164 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 5165 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 5166 done 5167 test -z "$LD" && LD=$ac_prog 5168 ;; 5169 "") 5170 # If it fails, then pretend we aren't using GCC. 5171 ac_prog=ld 5172 ;; 5173 *) 5174 # If it is relative, then search for the first ld in PATH. 5175 with_gnu_ld=unknown 5176 ;; 5177 esac 5178elif test yes = "$with_gnu_ld"; then 5179 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 5180printf %s "checking for GNU ld... " >&6; } 5181else 5182 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 5183printf %s "checking for non-GNU ld... " >&6; } 5184fi 5185if test ${lt_cv_path_LD+y} 5186then : 5187 printf %s "(cached) " >&6 5188else $as_nop 5189 if test -z "$LD"; then 5190 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 5191 for ac_dir in $PATH; do 5192 IFS=$lt_save_ifs 5193 test -z "$ac_dir" && ac_dir=. 5194 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 5195 lt_cv_path_LD=$ac_dir/$ac_prog 5196 # Check to see if the program is GNU ld. I'd rather use --version, 5197 # but apparently some variants of GNU ld only accept -v. 5198 # Break only if it was the GNU/non-GNU ld that we prefer. 5199 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 5200 *GNU* | *'with BFD'*) 5201 test no != "$with_gnu_ld" && break 5202 ;; 5203 *) 5204 test yes != "$with_gnu_ld" && break 5205 ;; 5206 esac 5207 fi 5208 done 5209 IFS=$lt_save_ifs 5210else 5211 lt_cv_path_LD=$LD # Let the user override the test with a path. 5212fi 5213fi 5214 5215LD=$lt_cv_path_LD 5216if test -n "$LD"; then 5217 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 5218printf "%s\n" "$LD" >&6; } 5219else 5220 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5221printf "%s\n" "no" >&6; } 5222fi 5223test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 5224{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 5225printf %s "checking if the linker ($LD) is GNU ld... " >&6; } 5226if test ${lt_cv_prog_gnu_ld+y} 5227then : 5228 printf %s "(cached) " >&6 5229else $as_nop 5230 # I'd rather use --version here, but apparently some GNU lds only accept -v. 5231case `$LD -v 2>&1 </dev/null` in 5232*GNU* | *'with BFD'*) 5233 lt_cv_prog_gnu_ld=yes 5234 ;; 5235*) 5236 lt_cv_prog_gnu_ld=no 5237 ;; 5238esac 5239fi 5240{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 5241printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; } 5242with_gnu_ld=$lt_cv_prog_gnu_ld 5243 5244 5245 5246 5247 5248 5249 5250 5251 5252{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 5253printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 5254if test ${lt_cv_path_NM+y} 5255then : 5256 printf %s "(cached) " >&6 5257else $as_nop 5258 if test -n "$NM"; then 5259 # Let the user override the test. 5260 lt_cv_path_NM=$NM 5261else 5262 lt_nm_to_check=${ac_tool_prefix}nm 5263 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 5264 lt_nm_to_check="$lt_nm_to_check nm" 5265 fi 5266 for lt_tmp_nm in $lt_nm_to_check; do 5267 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 5268 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 5269 IFS=$lt_save_ifs 5270 test -z "$ac_dir" && ac_dir=. 5271 tmp_nm=$ac_dir/$lt_tmp_nm 5272 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then 5273 # Check to see if the nm accepts a BSD-compat flag. 5274 # Adding the 'sed 1q' prevents false positives on HP-UX, which says: 5275 # nm: unknown option "B" ignored 5276 # Tru64's nm complains that /dev/null is an invalid object file 5277 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty 5278 case $build_os in 5279 mingw*) lt_bad_file=conftest.nm/nofile ;; 5280 *) lt_bad_file=/dev/null ;; 5281 esac 5282 case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in 5283 *$lt_bad_file* | *'Invalid file or object type'*) 5284 lt_cv_path_NM="$tmp_nm -B" 5285 break 2 5286 ;; 5287 *) 5288 case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in 5289 */dev/null*) 5290 lt_cv_path_NM="$tmp_nm -p" 5291 break 2 5292 ;; 5293 *) 5294 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 5295 continue # so that we can try to find one that supports BSD flags 5296 ;; 5297 esac 5298 ;; 5299 esac 5300 fi 5301 done 5302 IFS=$lt_save_ifs 5303 done 5304 : ${lt_cv_path_NM=no} 5305fi 5306fi 5307{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 5308printf "%s\n" "$lt_cv_path_NM" >&6; } 5309if test no != "$lt_cv_path_NM"; then 5310 NM=$lt_cv_path_NM 5311else 5312 # Didn't find any BSD compatible name lister, look for dumpbin. 5313 if test -n "$DUMPBIN"; then : 5314 # Let the user override the test. 5315 else 5316 if test -n "$ac_tool_prefix"; then 5317 for ac_prog in dumpbin "link -dump" 5318 do 5319 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5320set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5321{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5322printf %s "checking for $ac_word... " >&6; } 5323if test ${ac_cv_prog_DUMPBIN+y} 5324then : 5325 printf %s "(cached) " >&6 5326else $as_nop 5327 if test -n "$DUMPBIN"; then 5328 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 5329else 5330as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5331for as_dir in $PATH 5332do 5333 IFS=$as_save_IFS 5334 case $as_dir in #((( 5335 '') as_dir=./ ;; 5336 */) ;; 5337 *) as_dir=$as_dir/ ;; 5338 esac 5339 for ac_exec_ext in '' $ac_executable_extensions; do 5340 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5341 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 5342 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5343 break 2 5344 fi 5345done 5346 done 5347IFS=$as_save_IFS 5348 5349fi 5350fi 5351DUMPBIN=$ac_cv_prog_DUMPBIN 5352if test -n "$DUMPBIN"; then 5353 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 5354printf "%s\n" "$DUMPBIN" >&6; } 5355else 5356 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5357printf "%s\n" "no" >&6; } 5358fi 5359 5360 5361 test -n "$DUMPBIN" && break 5362 done 5363fi 5364if test -z "$DUMPBIN"; then 5365 ac_ct_DUMPBIN=$DUMPBIN 5366 for ac_prog in dumpbin "link -dump" 5367do 5368 # Extract the first word of "$ac_prog", so it can be a program name with args. 5369set dummy $ac_prog; ac_word=$2 5370{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5371printf %s "checking for $ac_word... " >&6; } 5372if test ${ac_cv_prog_ac_ct_DUMPBIN+y} 5373then : 5374 printf %s "(cached) " >&6 5375else $as_nop 5376 if test -n "$ac_ct_DUMPBIN"; then 5377 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 5378else 5379as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5380for as_dir in $PATH 5381do 5382 IFS=$as_save_IFS 5383 case $as_dir in #((( 5384 '') as_dir=./ ;; 5385 */) ;; 5386 *) as_dir=$as_dir/ ;; 5387 esac 5388 for ac_exec_ext in '' $ac_executable_extensions; do 5389 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5390 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 5391 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5392 break 2 5393 fi 5394done 5395 done 5396IFS=$as_save_IFS 5397 5398fi 5399fi 5400ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 5401if test -n "$ac_ct_DUMPBIN"; then 5402 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 5403printf "%s\n" "$ac_ct_DUMPBIN" >&6; } 5404else 5405 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5406printf "%s\n" "no" >&6; } 5407fi 5408 5409 5410 test -n "$ac_ct_DUMPBIN" && break 5411done 5412 5413 if test "x$ac_ct_DUMPBIN" = x; then 5414 DUMPBIN=":" 5415 else 5416 case $cross_compiling:$ac_tool_warned in 5417yes:) 5418{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5419printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5420ac_tool_warned=yes ;; 5421esac 5422 DUMPBIN=$ac_ct_DUMPBIN 5423 fi 5424fi 5425 5426 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in 5427 *COFF*) 5428 DUMPBIN="$DUMPBIN -symbols -headers" 5429 ;; 5430 *) 5431 DUMPBIN=: 5432 ;; 5433 esac 5434 fi 5435 5436 if test : != "$DUMPBIN"; then 5437 NM=$DUMPBIN 5438 fi 5439fi 5440test -z "$NM" && NM=nm 5441 5442 5443 5444 5445 5446 5447{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 5448printf %s "checking the name lister ($NM) interface... " >&6; } 5449if test ${lt_cv_nm_interface+y} 5450then : 5451 printf %s "(cached) " >&6 5452else $as_nop 5453 lt_cv_nm_interface="BSD nm" 5454 echo "int some_variable = 0;" > conftest.$ac_ext 5455 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 5456 (eval "$ac_compile" 2>conftest.err) 5457 cat conftest.err >&5 5458 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 5459 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 5460 cat conftest.err >&5 5461 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 5462 cat conftest.out >&5 5463 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 5464 lt_cv_nm_interface="MS dumpbin" 5465 fi 5466 rm -f conftest* 5467fi 5468{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 5469printf "%s\n" "$lt_cv_nm_interface" >&6; } 5470 5471{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 5472printf %s "checking whether ln -s works... " >&6; } 5473LN_S=$as_ln_s 5474if test "$LN_S" = "ln -s"; then 5475 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5476printf "%s\n" "yes" >&6; } 5477else 5478 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 5479printf "%s\n" "no, using $LN_S" >&6; } 5480fi 5481 5482# find the maximum length of command line arguments 5483{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 5484printf %s "checking the maximum length of command line arguments... " >&6; } 5485if test ${lt_cv_sys_max_cmd_len+y} 5486then : 5487 printf %s "(cached) " >&6 5488else $as_nop 5489 i=0 5490 teststring=ABCD 5491 5492 case $build_os in 5493 msdosdjgpp*) 5494 # On DJGPP, this test can blow up pretty badly due to problems in libc 5495 # (any single argument exceeding 2000 bytes causes a buffer overrun 5496 # during glob expansion). Even if it were fixed, the result of this 5497 # check would be larger than it should be. 5498 lt_cv_sys_max_cmd_len=12288; # 12K is about right 5499 ;; 5500 5501 gnu*) 5502 # Under GNU Hurd, this test is not required because there is 5503 # no limit to the length of command line arguments. 5504 # Libtool will interpret -1 as no limit whatsoever 5505 lt_cv_sys_max_cmd_len=-1; 5506 ;; 5507 5508 cygwin* | mingw* | cegcc*) 5509 # On Win9x/ME, this test blows up -- it succeeds, but takes 5510 # about 5 minutes as the teststring grows exponentially. 5511 # Worse, since 9x/ME are not pre-emptively multitasking, 5512 # you end up with a "frozen" computer, even though with patience 5513 # the test eventually succeeds (with a max line length of 256k). 5514 # Instead, let's just punt: use the minimum linelength reported by 5515 # all of the supported platforms: 8192 (on NT/2K/XP). 5516 lt_cv_sys_max_cmd_len=8192; 5517 ;; 5518 5519 mint*) 5520 # On MiNT this can take a long time and run out of memory. 5521 lt_cv_sys_max_cmd_len=8192; 5522 ;; 5523 5524 amigaos*) 5525 # On AmigaOS with pdksh, this test takes hours, literally. 5526 # So we just punt and use a minimum line length of 8192. 5527 lt_cv_sys_max_cmd_len=8192; 5528 ;; 5529 5530 bitrig* | darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*) 5531 # This has been around since 386BSD, at least. Likely further. 5532 if test -x /sbin/sysctl; then 5533 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 5534 elif test -x /usr/sbin/sysctl; then 5535 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 5536 else 5537 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 5538 fi 5539 # And add a safety zone 5540 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5541 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5542 ;; 5543 5544 interix*) 5545 # We know the value 262144 and hardcode it with a safety zone (like BSD) 5546 lt_cv_sys_max_cmd_len=196608 5547 ;; 5548 5549 os2*) 5550 # The test takes a long time on OS/2. 5551 lt_cv_sys_max_cmd_len=8192 5552 ;; 5553 5554 osf*) 5555 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 5556 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 5557 # nice to cause kernel panics so lets avoid the loop below. 5558 # First set a reasonable default. 5559 lt_cv_sys_max_cmd_len=16384 5560 # 5561 if test -x /sbin/sysconfig; then 5562 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 5563 *1*) lt_cv_sys_max_cmd_len=-1 ;; 5564 esac 5565 fi 5566 ;; 5567 sco3.2v5*) 5568 lt_cv_sys_max_cmd_len=102400 5569 ;; 5570 sysv5* | sco5v6* | sysv4.2uw2*) 5571 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 5572 if test -n "$kargmax"; then 5573 lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[ ]//'` 5574 else 5575 lt_cv_sys_max_cmd_len=32768 5576 fi 5577 ;; 5578 *) 5579 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 5580 if test -n "$lt_cv_sys_max_cmd_len" && \ 5581 test undefined != "$lt_cv_sys_max_cmd_len"; then 5582 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5583 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5584 else 5585 # Make teststring a little bigger before we do anything with it. 5586 # a 1K string should be a reasonable start. 5587 for i in 1 2 3 4 5 6 7 8; do 5588 teststring=$teststring$teststring 5589 done 5590 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 5591 # If test is not a shell built-in, we'll probably end up computing a 5592 # maximum length that is only half of the actual maximum length, but 5593 # we can't tell. 5594 while { test X`env echo "$teststring$teststring" 2>/dev/null` \ 5595 = "X$teststring$teststring"; } >/dev/null 2>&1 && 5596 test 17 != "$i" # 1/2 MB should be enough 5597 do 5598 i=`expr $i + 1` 5599 teststring=$teststring$teststring 5600 done 5601 # Only check the string length outside the loop. 5602 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 5603 teststring= 5604 # Add a significant safety factor because C++ compilers can tack on 5605 # massive amounts of additional arguments before passing them to the 5606 # linker. It appears as though 1/2 is a usable value. 5607 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 5608 fi 5609 ;; 5610 esac 5611 5612fi 5613 5614if test -n "$lt_cv_sys_max_cmd_len"; then 5615 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 5616printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; } 5617else 5618 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5 5619printf "%s\n" "none" >&6; } 5620fi 5621max_cmd_len=$lt_cv_sys_max_cmd_len 5622 5623 5624 5625 5626 5627 5628: ${CP="cp -f"} 5629: ${MV="mv -f"} 5630: ${RM="rm -f"} 5631 5632if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 5633 lt_unset=unset 5634else 5635 lt_unset=false 5636fi 5637 5638 5639 5640 5641 5642# test EBCDIC or ASCII 5643case `echo X|tr X '\101'` in 5644 A) # ASCII based system 5645 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 5646 lt_SP2NL='tr \040 \012' 5647 lt_NL2SP='tr \015\012 \040\040' 5648 ;; 5649 *) # EBCDIC based system 5650 lt_SP2NL='tr \100 \n' 5651 lt_NL2SP='tr \r\n \100\100' 5652 ;; 5653esac 5654 5655 5656 5657 5658 5659 5660 5661 5662 5663{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 5664printf %s "checking how to convert $build file names to $host format... " >&6; } 5665if test ${lt_cv_to_host_file_cmd+y} 5666then : 5667 printf %s "(cached) " >&6 5668else $as_nop 5669 case $host in 5670 *-*-mingw* ) 5671 case $build in 5672 *-*-mingw* ) # actually msys 5673 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 5674 ;; 5675 *-*-cygwin* ) 5676 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 5677 ;; 5678 * ) # otherwise, assume *nix 5679 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 5680 ;; 5681 esac 5682 ;; 5683 *-*-cygwin* ) 5684 case $build in 5685 *-*-mingw* ) # actually msys 5686 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 5687 ;; 5688 *-*-cygwin* ) 5689 lt_cv_to_host_file_cmd=func_convert_file_noop 5690 ;; 5691 * ) # otherwise, assume *nix 5692 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 5693 ;; 5694 esac 5695 ;; 5696 * ) # unhandled hosts (and "normal" native builds) 5697 lt_cv_to_host_file_cmd=func_convert_file_noop 5698 ;; 5699esac 5700 5701fi 5702 5703to_host_file_cmd=$lt_cv_to_host_file_cmd 5704{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 5705printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; } 5706 5707 5708 5709 5710 5711{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 5712printf %s "checking how to convert $build file names to toolchain format... " >&6; } 5713if test ${lt_cv_to_tool_file_cmd+y} 5714then : 5715 printf %s "(cached) " >&6 5716else $as_nop 5717 #assume ordinary cross tools, or native build. 5718lt_cv_to_tool_file_cmd=func_convert_file_noop 5719case $host in 5720 *-*-mingw* ) 5721 case $build in 5722 *-*-mingw* ) # actually msys 5723 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 5724 ;; 5725 esac 5726 ;; 5727esac 5728 5729fi 5730 5731to_tool_file_cmd=$lt_cv_to_tool_file_cmd 5732{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 5733printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; } 5734 5735 5736 5737 5738 5739{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 5740printf %s "checking for $LD option to reload object files... " >&6; } 5741if test ${lt_cv_ld_reload_flag+y} 5742then : 5743 printf %s "(cached) " >&6 5744else $as_nop 5745 lt_cv_ld_reload_flag='-r' 5746fi 5747{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 5748printf "%s\n" "$lt_cv_ld_reload_flag" >&6; } 5749reload_flag=$lt_cv_ld_reload_flag 5750case $reload_flag in 5751"" | " "*) ;; 5752*) reload_flag=" $reload_flag" ;; 5753esac 5754reload_cmds='$LD$reload_flag -o $output$reload_objs' 5755case $host_os in 5756 cygwin* | mingw* | pw32* | cegcc*) 5757 if test yes != "$GCC"; then 5758 reload_cmds=false 5759 fi 5760 ;; 5761 darwin*) 5762 if test yes = "$GCC"; then 5763 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' 5764 else 5765 reload_cmds='$LD$reload_flag -o $output$reload_objs' 5766 fi 5767 ;; 5768esac 5769 5770 5771 5772 5773 5774 5775 5776 5777 5778if test -n "$ac_tool_prefix"; then 5779 # Extract the first word of "${ac_tool_prefix}file", so it can be a program name with args. 5780set dummy ${ac_tool_prefix}file; ac_word=$2 5781{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5782printf %s "checking for $ac_word... " >&6; } 5783if test ${ac_cv_prog_FILECMD+y} 5784then : 5785 printf %s "(cached) " >&6 5786else $as_nop 5787 if test -n "$FILECMD"; then 5788 ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test. 5789else 5790as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5791for as_dir in $PATH 5792do 5793 IFS=$as_save_IFS 5794 case $as_dir in #((( 5795 '') as_dir=./ ;; 5796 */) ;; 5797 *) as_dir=$as_dir/ ;; 5798 esac 5799 for ac_exec_ext in '' $ac_executable_extensions; do 5800 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5801 ac_cv_prog_FILECMD="${ac_tool_prefix}file" 5802 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5803 break 2 5804 fi 5805done 5806 done 5807IFS=$as_save_IFS 5808 5809fi 5810fi 5811FILECMD=$ac_cv_prog_FILECMD 5812if test -n "$FILECMD"; then 5813 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5 5814printf "%s\n" "$FILECMD" >&6; } 5815else 5816 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5817printf "%s\n" "no" >&6; } 5818fi 5819 5820 5821fi 5822if test -z "$ac_cv_prog_FILECMD"; then 5823 ac_ct_FILECMD=$FILECMD 5824 # Extract the first word of "file", so it can be a program name with args. 5825set dummy file; ac_word=$2 5826{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5827printf %s "checking for $ac_word... " >&6; } 5828if test ${ac_cv_prog_ac_ct_FILECMD+y} 5829then : 5830 printf %s "(cached) " >&6 5831else $as_nop 5832 if test -n "$ac_ct_FILECMD"; then 5833 ac_cv_prog_ac_ct_FILECMD="$ac_ct_FILECMD" # Let the user override the test. 5834else 5835as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5836for as_dir in $PATH 5837do 5838 IFS=$as_save_IFS 5839 case $as_dir in #((( 5840 '') as_dir=./ ;; 5841 */) ;; 5842 *) as_dir=$as_dir/ ;; 5843 esac 5844 for ac_exec_ext in '' $ac_executable_extensions; do 5845 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5846 ac_cv_prog_ac_ct_FILECMD="file" 5847 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5848 break 2 5849 fi 5850done 5851 done 5852IFS=$as_save_IFS 5853 5854fi 5855fi 5856ac_ct_FILECMD=$ac_cv_prog_ac_ct_FILECMD 5857if test -n "$ac_ct_FILECMD"; then 5858 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FILECMD" >&5 5859printf "%s\n" "$ac_ct_FILECMD" >&6; } 5860else 5861 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5862printf "%s\n" "no" >&6; } 5863fi 5864 5865 if test "x$ac_ct_FILECMD" = x; then 5866 FILECMD=":" 5867 else 5868 case $cross_compiling:$ac_tool_warned in 5869yes:) 5870{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5871printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5872ac_tool_warned=yes ;; 5873esac 5874 FILECMD=$ac_ct_FILECMD 5875 fi 5876else 5877 FILECMD="$ac_cv_prog_FILECMD" 5878fi 5879 5880 5881 5882 5883 5884 5885 5886if test -n "$ac_tool_prefix"; then 5887 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 5888set dummy ${ac_tool_prefix}objdump; ac_word=$2 5889{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5890printf %s "checking for $ac_word... " >&6; } 5891if test ${ac_cv_prog_OBJDUMP+y} 5892then : 5893 printf %s "(cached) " >&6 5894else $as_nop 5895 if test -n "$OBJDUMP"; then 5896 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 5897else 5898as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5899for as_dir in $PATH 5900do 5901 IFS=$as_save_IFS 5902 case $as_dir in #((( 5903 '') as_dir=./ ;; 5904 */) ;; 5905 *) as_dir=$as_dir/ ;; 5906 esac 5907 for ac_exec_ext in '' $ac_executable_extensions; do 5908 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5909 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 5910 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5911 break 2 5912 fi 5913done 5914 done 5915IFS=$as_save_IFS 5916 5917fi 5918fi 5919OBJDUMP=$ac_cv_prog_OBJDUMP 5920if test -n "$OBJDUMP"; then 5921 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 5922printf "%s\n" "$OBJDUMP" >&6; } 5923else 5924 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5925printf "%s\n" "no" >&6; } 5926fi 5927 5928 5929fi 5930if test -z "$ac_cv_prog_OBJDUMP"; then 5931 ac_ct_OBJDUMP=$OBJDUMP 5932 # Extract the first word of "objdump", so it can be a program name with args. 5933set dummy objdump; ac_word=$2 5934{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5935printf %s "checking for $ac_word... " >&6; } 5936if test ${ac_cv_prog_ac_ct_OBJDUMP+y} 5937then : 5938 printf %s "(cached) " >&6 5939else $as_nop 5940 if test -n "$ac_ct_OBJDUMP"; then 5941 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 5942else 5943as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5944for as_dir in $PATH 5945do 5946 IFS=$as_save_IFS 5947 case $as_dir in #((( 5948 '') as_dir=./ ;; 5949 */) ;; 5950 *) as_dir=$as_dir/ ;; 5951 esac 5952 for ac_exec_ext in '' $ac_executable_extensions; do 5953 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5954 ac_cv_prog_ac_ct_OBJDUMP="objdump" 5955 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5956 break 2 5957 fi 5958done 5959 done 5960IFS=$as_save_IFS 5961 5962fi 5963fi 5964ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 5965if test -n "$ac_ct_OBJDUMP"; then 5966 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 5967printf "%s\n" "$ac_ct_OBJDUMP" >&6; } 5968else 5969 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5970printf "%s\n" "no" >&6; } 5971fi 5972 5973 if test "x$ac_ct_OBJDUMP" = x; then 5974 OBJDUMP="false" 5975 else 5976 case $cross_compiling:$ac_tool_warned in 5977yes:) 5978{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5979printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5980ac_tool_warned=yes ;; 5981esac 5982 OBJDUMP=$ac_ct_OBJDUMP 5983 fi 5984else 5985 OBJDUMP="$ac_cv_prog_OBJDUMP" 5986fi 5987 5988test -z "$OBJDUMP" && OBJDUMP=objdump 5989 5990 5991 5992 5993 5994 5995 5996 5997 5998{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 5999printf %s "checking how to recognize dependent libraries... " >&6; } 6000if test ${lt_cv_deplibs_check_method+y} 6001then : 6002 printf %s "(cached) " >&6 6003else $as_nop 6004 lt_cv_file_magic_cmd='$MAGIC_CMD' 6005lt_cv_file_magic_test_file= 6006lt_cv_deplibs_check_method='unknown' 6007# Need to set the preceding variable on all platforms that support 6008# interlibrary dependencies. 6009# 'none' -- dependencies not supported. 6010# 'unknown' -- same as none, but documents that we really don't know. 6011# 'pass_all' -- all dependencies passed with no checks. 6012# 'test_compile' -- check by making test program. 6013# 'file_magic [[regex]]' -- check by looking for files in library path 6014# that responds to the $file_magic_cmd with a given extended regex. 6015# If you have 'file' or equivalent on your system and you're not sure 6016# whether 'pass_all' will *always* work, you probably want this one. 6017 6018case $host_os in 6019aix[4-9]*) 6020 lt_cv_deplibs_check_method=pass_all 6021 ;; 6022 6023beos*) 6024 lt_cv_deplibs_check_method=pass_all 6025 ;; 6026 6027bsdi[45]*) 6028 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 6029 lt_cv_file_magic_cmd='$FILECMD -L' 6030 lt_cv_file_magic_test_file=/shlib/libc.so 6031 ;; 6032 6033cygwin*) 6034 # func_win32_libid is a shell function defined in ltmain.sh 6035 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 6036 lt_cv_file_magic_cmd='func_win32_libid' 6037 ;; 6038 6039mingw* | pw32*) 6040 # Base MSYS/MinGW do not provide the 'file' command needed by 6041 # func_win32_libid shell function, so use a weaker test based on 'objdump', 6042 # unless we find 'file', for example because we are cross-compiling. 6043 if ( file / ) >/dev/null 2>&1; then 6044 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 6045 lt_cv_file_magic_cmd='func_win32_libid' 6046 else 6047 # Keep this pattern in sync with the one in func_win32_libid. 6048 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 6049 lt_cv_file_magic_cmd='$OBJDUMP -f' 6050 fi 6051 ;; 6052 6053cegcc*) 6054 # use the weaker test based on 'objdump'. See mingw*. 6055 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 6056 lt_cv_file_magic_cmd='$OBJDUMP -f' 6057 ;; 6058 6059darwin* | rhapsody*) 6060 lt_cv_deplibs_check_method=pass_all 6061 ;; 6062 6063freebsd* | dragonfly* | midnightbsd*) 6064 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 6065 case $host_cpu in 6066 i*86 ) 6067 # Not sure whether the presence of OpenBSD here was a mistake. 6068 # Let's accept both of them until this is cleared up. 6069 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 6070 lt_cv_file_magic_cmd=$FILECMD 6071 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 6072 ;; 6073 esac 6074 else 6075 lt_cv_deplibs_check_method=pass_all 6076 fi 6077 ;; 6078 6079haiku*) 6080 lt_cv_deplibs_check_method=pass_all 6081 ;; 6082 6083hpux10.20* | hpux11*) 6084 lt_cv_file_magic_cmd=$FILECMD 6085 case $host_cpu in 6086 ia64*) 6087 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 6088 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 6089 ;; 6090 hppa*64*) 6091 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]' 6092 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 6093 ;; 6094 *) 6095 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 6096 lt_cv_file_magic_test_file=/usr/lib/libc.sl 6097 ;; 6098 esac 6099 ;; 6100 6101interix[3-9]*) 6102 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 6103 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 6104 ;; 6105 6106irix5* | irix6* | nonstopux*) 6107 case $LD in 6108 *-32|*"-32 ") libmagic=32-bit;; 6109 *-n32|*"-n32 ") libmagic=N32;; 6110 *-64|*"-64 ") libmagic=64-bit;; 6111 *) libmagic=never-match;; 6112 esac 6113 lt_cv_deplibs_check_method=pass_all 6114 ;; 6115 6116# This must be glibc/ELF. 6117linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 6118 lt_cv_deplibs_check_method=pass_all 6119 ;; 6120 6121netbsd*) 6122 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 6123 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6124 else 6125 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 6126 fi 6127 ;; 6128 6129newos6*) 6130 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 6131 lt_cv_file_magic_cmd=$FILECMD 6132 lt_cv_file_magic_test_file=/usr/lib/libnls.so 6133 ;; 6134 6135*nto* | *qnx*) 6136 lt_cv_deplibs_check_method=pass_all 6137 ;; 6138 6139openbsd* | bitrig*) 6140 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 6141 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 6142 else 6143 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6144 fi 6145 ;; 6146 6147osf3* | osf4* | osf5*) 6148 lt_cv_deplibs_check_method=pass_all 6149 ;; 6150 6151rdos*) 6152 lt_cv_deplibs_check_method=pass_all 6153 ;; 6154 6155solaris*) 6156 lt_cv_deplibs_check_method=pass_all 6157 ;; 6158 6159sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 6160 lt_cv_deplibs_check_method=pass_all 6161 ;; 6162 6163sysv4 | sysv4.3*) 6164 case $host_vendor in 6165 motorola) 6166 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]' 6167 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 6168 ;; 6169 ncr) 6170 lt_cv_deplibs_check_method=pass_all 6171 ;; 6172 sequent) 6173 lt_cv_file_magic_cmd='/bin/file' 6174 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 6175 ;; 6176 sni) 6177 lt_cv_file_magic_cmd='/bin/file' 6178 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 6179 lt_cv_file_magic_test_file=/lib/libc.so 6180 ;; 6181 siemens) 6182 lt_cv_deplibs_check_method=pass_all 6183 ;; 6184 pc) 6185 lt_cv_deplibs_check_method=pass_all 6186 ;; 6187 esac 6188 ;; 6189 6190tpf*) 6191 lt_cv_deplibs_check_method=pass_all 6192 ;; 6193os2*) 6194 lt_cv_deplibs_check_method=pass_all 6195 ;; 6196esac 6197 6198fi 6199{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 6200printf "%s\n" "$lt_cv_deplibs_check_method" >&6; } 6201 6202file_magic_glob= 6203want_nocaseglob=no 6204if test "$build" = "$host"; then 6205 case $host_os in 6206 mingw* | pw32*) 6207 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 6208 want_nocaseglob=yes 6209 else 6210 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 6211 fi 6212 ;; 6213 esac 6214fi 6215 6216file_magic_cmd=$lt_cv_file_magic_cmd 6217deplibs_check_method=$lt_cv_deplibs_check_method 6218test -z "$deplibs_check_method" && deplibs_check_method=unknown 6219 6220 6221 6222 6223 6224 6225 6226 6227 6228 6229 6230 6231 6232 6233 6234 6235 6236 6237 6238 6239 6240 6241if test -n "$ac_tool_prefix"; then 6242 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 6243set dummy ${ac_tool_prefix}dlltool; ac_word=$2 6244{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6245printf %s "checking for $ac_word... " >&6; } 6246if test ${ac_cv_prog_DLLTOOL+y} 6247then : 6248 printf %s "(cached) " >&6 6249else $as_nop 6250 if test -n "$DLLTOOL"; then 6251 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 6252else 6253as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6254for as_dir in $PATH 6255do 6256 IFS=$as_save_IFS 6257 case $as_dir in #((( 6258 '') as_dir=./ ;; 6259 */) ;; 6260 *) as_dir=$as_dir/ ;; 6261 esac 6262 for ac_exec_ext in '' $ac_executable_extensions; do 6263 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6264 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 6265 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6266 break 2 6267 fi 6268done 6269 done 6270IFS=$as_save_IFS 6271 6272fi 6273fi 6274DLLTOOL=$ac_cv_prog_DLLTOOL 6275if test -n "$DLLTOOL"; then 6276 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 6277printf "%s\n" "$DLLTOOL" >&6; } 6278else 6279 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6280printf "%s\n" "no" >&6; } 6281fi 6282 6283 6284fi 6285if test -z "$ac_cv_prog_DLLTOOL"; then 6286 ac_ct_DLLTOOL=$DLLTOOL 6287 # Extract the first word of "dlltool", so it can be a program name with args. 6288set dummy dlltool; ac_word=$2 6289{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6290printf %s "checking for $ac_word... " >&6; } 6291if test ${ac_cv_prog_ac_ct_DLLTOOL+y} 6292then : 6293 printf %s "(cached) " >&6 6294else $as_nop 6295 if test -n "$ac_ct_DLLTOOL"; then 6296 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 6297else 6298as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6299for as_dir in $PATH 6300do 6301 IFS=$as_save_IFS 6302 case $as_dir in #((( 6303 '') as_dir=./ ;; 6304 */) ;; 6305 *) as_dir=$as_dir/ ;; 6306 esac 6307 for ac_exec_ext in '' $ac_executable_extensions; do 6308 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6309 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 6310 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6311 break 2 6312 fi 6313done 6314 done 6315IFS=$as_save_IFS 6316 6317fi 6318fi 6319ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 6320if test -n "$ac_ct_DLLTOOL"; then 6321 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 6322printf "%s\n" "$ac_ct_DLLTOOL" >&6; } 6323else 6324 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6325printf "%s\n" "no" >&6; } 6326fi 6327 6328 if test "x$ac_ct_DLLTOOL" = x; then 6329 DLLTOOL="false" 6330 else 6331 case $cross_compiling:$ac_tool_warned in 6332yes:) 6333{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6334printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6335ac_tool_warned=yes ;; 6336esac 6337 DLLTOOL=$ac_ct_DLLTOOL 6338 fi 6339else 6340 DLLTOOL="$ac_cv_prog_DLLTOOL" 6341fi 6342 6343test -z "$DLLTOOL" && DLLTOOL=dlltool 6344 6345 6346 6347 6348 6349 6350 6351 6352 6353 6354{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 6355printf %s "checking how to associate runtime and link libraries... " >&6; } 6356if test ${lt_cv_sharedlib_from_linklib_cmd+y} 6357then : 6358 printf %s "(cached) " >&6 6359else $as_nop 6360 lt_cv_sharedlib_from_linklib_cmd='unknown' 6361 6362case $host_os in 6363cygwin* | mingw* | pw32* | cegcc*) 6364 # two different shell functions defined in ltmain.sh; 6365 # decide which one to use based on capabilities of $DLLTOOL 6366 case `$DLLTOOL --help 2>&1` in 6367 *--identify-strict*) 6368 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 6369 ;; 6370 *) 6371 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 6372 ;; 6373 esac 6374 ;; 6375*) 6376 # fallback: assume linklib IS sharedlib 6377 lt_cv_sharedlib_from_linklib_cmd=$ECHO 6378 ;; 6379esac 6380 6381fi 6382{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 6383printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 6384sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 6385test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 6386 6387 6388 6389 6390 6391 6392 6393 6394if test -n "$ac_tool_prefix"; then 6395 for ac_prog in ar 6396 do 6397 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 6398set dummy $ac_tool_prefix$ac_prog; ac_word=$2 6399{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6400printf %s "checking for $ac_word... " >&6; } 6401if test ${ac_cv_prog_AR+y} 6402then : 6403 printf %s "(cached) " >&6 6404else $as_nop 6405 if test -n "$AR"; then 6406 ac_cv_prog_AR="$AR" # Let the user override the test. 6407else 6408as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6409for as_dir in $PATH 6410do 6411 IFS=$as_save_IFS 6412 case $as_dir in #((( 6413 '') as_dir=./ ;; 6414 */) ;; 6415 *) as_dir=$as_dir/ ;; 6416 esac 6417 for ac_exec_ext in '' $ac_executable_extensions; do 6418 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6419 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 6420 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6421 break 2 6422 fi 6423done 6424 done 6425IFS=$as_save_IFS 6426 6427fi 6428fi 6429AR=$ac_cv_prog_AR 6430if test -n "$AR"; then 6431 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 6432printf "%s\n" "$AR" >&6; } 6433else 6434 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6435printf "%s\n" "no" >&6; } 6436fi 6437 6438 6439 test -n "$AR" && break 6440 done 6441fi 6442if test -z "$AR"; then 6443 ac_ct_AR=$AR 6444 for ac_prog in ar 6445do 6446 # Extract the first word of "$ac_prog", so it can be a program name with args. 6447set dummy $ac_prog; ac_word=$2 6448{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6449printf %s "checking for $ac_word... " >&6; } 6450if test ${ac_cv_prog_ac_ct_AR+y} 6451then : 6452 printf %s "(cached) " >&6 6453else $as_nop 6454 if test -n "$ac_ct_AR"; then 6455 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 6456else 6457as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6458for as_dir in $PATH 6459do 6460 IFS=$as_save_IFS 6461 case $as_dir in #((( 6462 '') as_dir=./ ;; 6463 */) ;; 6464 *) as_dir=$as_dir/ ;; 6465 esac 6466 for ac_exec_ext in '' $ac_executable_extensions; do 6467 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6468 ac_cv_prog_ac_ct_AR="$ac_prog" 6469 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6470 break 2 6471 fi 6472done 6473 done 6474IFS=$as_save_IFS 6475 6476fi 6477fi 6478ac_ct_AR=$ac_cv_prog_ac_ct_AR 6479if test -n "$ac_ct_AR"; then 6480 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 6481printf "%s\n" "$ac_ct_AR" >&6; } 6482else 6483 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6484printf "%s\n" "no" >&6; } 6485fi 6486 6487 6488 test -n "$ac_ct_AR" && break 6489done 6490 6491 if test "x$ac_ct_AR" = x; then 6492 AR="false" 6493 else 6494 case $cross_compiling:$ac_tool_warned in 6495yes:) 6496{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6497printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6498ac_tool_warned=yes ;; 6499esac 6500 AR=$ac_ct_AR 6501 fi 6502fi 6503 6504: ${AR=ar} 6505 6506 6507 6508 6509 6510 6511# Use ARFLAGS variable as AR's operation code to sync the variable naming with 6512# Automake. If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have 6513# higher priority because thats what people were doing historically (setting 6514# ARFLAGS for automake and AR_FLAGS for libtool). FIXME: Make the AR_FLAGS 6515# variable obsoleted/removed. 6516 6517test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr} 6518lt_ar_flags=$AR_FLAGS 6519 6520 6521 6522 6523 6524 6525# Make AR_FLAGS overridable by 'make ARFLAGS='. Don't try to run-time override 6526# by AR_FLAGS because that was never working and AR_FLAGS is about to die. 6527 6528 6529 6530 6531 6532 6533{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 6534printf %s "checking for archiver @FILE support... " >&6; } 6535if test ${lt_cv_ar_at_file+y} 6536then : 6537 printf %s "(cached) " >&6 6538else $as_nop 6539 lt_cv_ar_at_file=no 6540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6541/* end confdefs.h. */ 6542 6543int 6544main (void) 6545{ 6546 6547 ; 6548 return 0; 6549} 6550_ACEOF 6551if ac_fn_c_try_compile "$LINENO" 6552then : 6553 echo conftest.$ac_objext > conftest.lst 6554 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 6555 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 6556 (eval $lt_ar_try) 2>&5 6557 ac_status=$? 6558 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6559 test $ac_status = 0; } 6560 if test 0 -eq "$ac_status"; then 6561 # Ensure the archiver fails upon bogus file names. 6562 rm -f conftest.$ac_objext libconftest.a 6563 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 6564 (eval $lt_ar_try) 2>&5 6565 ac_status=$? 6566 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6567 test $ac_status = 0; } 6568 if test 0 -ne "$ac_status"; then 6569 lt_cv_ar_at_file=@ 6570 fi 6571 fi 6572 rm -f conftest.* libconftest.a 6573 6574fi 6575rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6576 6577fi 6578{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 6579printf "%s\n" "$lt_cv_ar_at_file" >&6; } 6580 6581if test no = "$lt_cv_ar_at_file"; then 6582 archiver_list_spec= 6583else 6584 archiver_list_spec=$lt_cv_ar_at_file 6585fi 6586 6587 6588 6589 6590 6591 6592 6593if test -n "$ac_tool_prefix"; then 6594 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 6595set dummy ${ac_tool_prefix}strip; ac_word=$2 6596{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6597printf %s "checking for $ac_word... " >&6; } 6598if test ${ac_cv_prog_STRIP+y} 6599then : 6600 printf %s "(cached) " >&6 6601else $as_nop 6602 if test -n "$STRIP"; then 6603 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 6604else 6605as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6606for as_dir in $PATH 6607do 6608 IFS=$as_save_IFS 6609 case $as_dir in #((( 6610 '') as_dir=./ ;; 6611 */) ;; 6612 *) as_dir=$as_dir/ ;; 6613 esac 6614 for ac_exec_ext in '' $ac_executable_extensions; do 6615 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6616 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 6617 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6618 break 2 6619 fi 6620done 6621 done 6622IFS=$as_save_IFS 6623 6624fi 6625fi 6626STRIP=$ac_cv_prog_STRIP 6627if test -n "$STRIP"; then 6628 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 6629printf "%s\n" "$STRIP" >&6; } 6630else 6631 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6632printf "%s\n" "no" >&6; } 6633fi 6634 6635 6636fi 6637if test -z "$ac_cv_prog_STRIP"; then 6638 ac_ct_STRIP=$STRIP 6639 # Extract the first word of "strip", so it can be a program name with args. 6640set dummy strip; ac_word=$2 6641{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6642printf %s "checking for $ac_word... " >&6; } 6643if test ${ac_cv_prog_ac_ct_STRIP+y} 6644then : 6645 printf %s "(cached) " >&6 6646else $as_nop 6647 if test -n "$ac_ct_STRIP"; then 6648 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 6649else 6650as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6651for as_dir in $PATH 6652do 6653 IFS=$as_save_IFS 6654 case $as_dir in #((( 6655 '') as_dir=./ ;; 6656 */) ;; 6657 *) as_dir=$as_dir/ ;; 6658 esac 6659 for ac_exec_ext in '' $ac_executable_extensions; do 6660 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6661 ac_cv_prog_ac_ct_STRIP="strip" 6662 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6663 break 2 6664 fi 6665done 6666 done 6667IFS=$as_save_IFS 6668 6669fi 6670fi 6671ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 6672if test -n "$ac_ct_STRIP"; then 6673 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 6674printf "%s\n" "$ac_ct_STRIP" >&6; } 6675else 6676 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6677printf "%s\n" "no" >&6; } 6678fi 6679 6680 if test "x$ac_ct_STRIP" = x; then 6681 STRIP=":" 6682 else 6683 case $cross_compiling:$ac_tool_warned in 6684yes:) 6685{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6686printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6687ac_tool_warned=yes ;; 6688esac 6689 STRIP=$ac_ct_STRIP 6690 fi 6691else 6692 STRIP="$ac_cv_prog_STRIP" 6693fi 6694 6695test -z "$STRIP" && STRIP=: 6696 6697 6698 6699 6700 6701 6702if test -n "$ac_tool_prefix"; then 6703 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 6704set dummy ${ac_tool_prefix}ranlib; ac_word=$2 6705{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6706printf %s "checking for $ac_word... " >&6; } 6707if test ${ac_cv_prog_RANLIB+y} 6708then : 6709 printf %s "(cached) " >&6 6710else $as_nop 6711 if test -n "$RANLIB"; then 6712 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 6713else 6714as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6715for as_dir in $PATH 6716do 6717 IFS=$as_save_IFS 6718 case $as_dir in #((( 6719 '') as_dir=./ ;; 6720 */) ;; 6721 *) as_dir=$as_dir/ ;; 6722 esac 6723 for ac_exec_ext in '' $ac_executable_extensions; do 6724 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6725 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 6726 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6727 break 2 6728 fi 6729done 6730 done 6731IFS=$as_save_IFS 6732 6733fi 6734fi 6735RANLIB=$ac_cv_prog_RANLIB 6736if test -n "$RANLIB"; then 6737 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 6738printf "%s\n" "$RANLIB" >&6; } 6739else 6740 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6741printf "%s\n" "no" >&6; } 6742fi 6743 6744 6745fi 6746if test -z "$ac_cv_prog_RANLIB"; then 6747 ac_ct_RANLIB=$RANLIB 6748 # Extract the first word of "ranlib", so it can be a program name with args. 6749set dummy ranlib; ac_word=$2 6750{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6751printf %s "checking for $ac_word... " >&6; } 6752if test ${ac_cv_prog_ac_ct_RANLIB+y} 6753then : 6754 printf %s "(cached) " >&6 6755else $as_nop 6756 if test -n "$ac_ct_RANLIB"; then 6757 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 6758else 6759as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6760for as_dir in $PATH 6761do 6762 IFS=$as_save_IFS 6763 case $as_dir in #((( 6764 '') as_dir=./ ;; 6765 */) ;; 6766 *) as_dir=$as_dir/ ;; 6767 esac 6768 for ac_exec_ext in '' $ac_executable_extensions; do 6769 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6770 ac_cv_prog_ac_ct_RANLIB="ranlib" 6771 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6772 break 2 6773 fi 6774done 6775 done 6776IFS=$as_save_IFS 6777 6778fi 6779fi 6780ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 6781if test -n "$ac_ct_RANLIB"; then 6782 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 6783printf "%s\n" "$ac_ct_RANLIB" >&6; } 6784else 6785 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6786printf "%s\n" "no" >&6; } 6787fi 6788 6789 if test "x$ac_ct_RANLIB" = x; then 6790 RANLIB=":" 6791 else 6792 case $cross_compiling:$ac_tool_warned in 6793yes:) 6794{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6795printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6796ac_tool_warned=yes ;; 6797esac 6798 RANLIB=$ac_ct_RANLIB 6799 fi 6800else 6801 RANLIB="$ac_cv_prog_RANLIB" 6802fi 6803 6804test -z "$RANLIB" && RANLIB=: 6805 6806 6807 6808 6809 6810 6811# Determine commands to create old-style static archives. 6812old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 6813old_postinstall_cmds='chmod 644 $oldlib' 6814old_postuninstall_cmds= 6815 6816if test -n "$RANLIB"; then 6817 case $host_os in 6818 bitrig* | openbsd*) 6819 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 6820 ;; 6821 *) 6822 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 6823 ;; 6824 esac 6825 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 6826fi 6827 6828case $host_os in 6829 darwin*) 6830 lock_old_archive_extraction=yes ;; 6831 *) 6832 lock_old_archive_extraction=no ;; 6833esac 6834 6835 6836 6837 6838 6839 6840 6841 6842 6843 6844 6845 6846 6847 6848 6849 6850 6851 6852 6853 6854 6855 6856 6857 6858 6859 6860 6861 6862 6863 6864 6865 6866 6867 6868 6869 6870 6871 6872 6873# If no C compiler was specified, use CC. 6874LTCC=${LTCC-"$CC"} 6875 6876# If no C compiler flags were specified, use CFLAGS. 6877LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 6878 6879# Allow CC to be a program name with arguments. 6880compiler=$CC 6881 6882 6883# Check for command to grab the raw symbol name followed by C symbol from nm. 6884{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 6885printf %s "checking command to parse $NM output from $compiler object... " >&6; } 6886if test ${lt_cv_sys_global_symbol_pipe+y} 6887then : 6888 printf %s "(cached) " >&6 6889else $as_nop 6890 6891# These are sane defaults that work on at least a few old systems. 6892# [They come from Ultrix. What could be older than Ultrix?!! ;)] 6893 6894# Character class describing NM global symbol codes. 6895symcode='[BCDEGRST]' 6896 6897# Regexp to match symbols that can be accessed directly from C. 6898sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 6899 6900# Define system-specific variables. 6901case $host_os in 6902aix*) 6903 symcode='[BCDT]' 6904 ;; 6905cygwin* | mingw* | pw32* | cegcc*) 6906 symcode='[ABCDGISTW]' 6907 ;; 6908hpux*) 6909 if test ia64 = "$host_cpu"; then 6910 symcode='[ABCDEGRST]' 6911 fi 6912 ;; 6913irix* | nonstopux*) 6914 symcode='[BCDEGRST]' 6915 ;; 6916osf*) 6917 symcode='[BCDEGQRST]' 6918 ;; 6919solaris*) 6920 symcode='[BDRT]' 6921 ;; 6922sco3.2v5*) 6923 symcode='[DT]' 6924 ;; 6925sysv4.2uw2*) 6926 symcode='[DT]' 6927 ;; 6928sysv5* | sco5v6* | unixware* | OpenUNIX*) 6929 symcode='[ABDT]' 6930 ;; 6931sysv4) 6932 symcode='[DFNSTU]' 6933 ;; 6934esac 6935 6936# If we're using GNU nm, then use its standard symbol codes. 6937case `$NM -V 2>&1` in 6938*GNU* | *'with BFD'*) 6939 symcode='[ABCDGIRSTW]' ;; 6940esac 6941 6942if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6943 # Gets list of data symbols to import. 6944 lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'" 6945 # Adjust the below global symbol transforms to fixup imported variables. 6946 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" 6947 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" 6948 lt_c_name_lib_hook="\ 6949 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ 6950 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" 6951else 6952 # Disable hooks by default. 6953 lt_cv_sys_global_symbol_to_import= 6954 lt_cdecl_hook= 6955 lt_c_name_hook= 6956 lt_c_name_lib_hook= 6957fi 6958 6959# Transform an extracted symbol line into a proper C declaration. 6960# Some systems (esp. on ia64) link data and code symbols differently, 6961# so use this general approach. 6962lt_cv_sys_global_symbol_to_cdecl="$SED -n"\ 6963$lt_cdecl_hook\ 6964" -e 's/^T .* \(.*\)$/extern int \1();/p'"\ 6965" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" 6966 6967# Transform an extracted symbol line into symbol name and symbol address 6968lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\ 6969$lt_c_name_hook\ 6970" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 6971" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" 6972 6973# Transform an extracted symbol line into symbol name with lib prefix and 6974# symbol address. 6975lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\ 6976$lt_c_name_lib_hook\ 6977" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 6978" -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ 6979" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" 6980 6981# Handle CRLF in mingw tool chain 6982opt_cr= 6983case $build_os in 6984mingw*) 6985 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 6986 ;; 6987esac 6988 6989# Try without a prefix underscore, then with it. 6990for ac_symprfx in "" "_"; do 6991 6992 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 6993 symxfrm="\\1 $ac_symprfx\\2 \\2" 6994 6995 # Write the raw and C identifiers. 6996 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6997 # Fake it for dumpbin and say T for any non-static function, 6998 # D for any global variable and I for any imported variable. 6999 # Also find C++ and __fastcall symbols from MSVC++ or ICC, 7000 # which start with @ or ?. 7001 lt_cv_sys_global_symbol_pipe="$AWK '"\ 7002" {last_section=section; section=\$ 3};"\ 7003" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 7004" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 7005" /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ 7006" /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ 7007" /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ 7008" \$ 0!~/External *\|/{next};"\ 7009" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 7010" {if(hide[section]) next};"\ 7011" {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ 7012" {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ 7013" s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ 7014" s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ 7015" ' prfx=^$ac_symprfx" 7016 else 7017 lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 7018 fi 7019 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'" 7020 7021 # Check to see that the pipe works correctly. 7022 pipe_works=no 7023 7024 rm -f conftest* 7025 cat > conftest.$ac_ext <<_LT_EOF 7026#ifdef __cplusplus 7027extern "C" { 7028#endif 7029char nm_test_var; 7030void nm_test_func(void); 7031void nm_test_func(void){} 7032#ifdef __cplusplus 7033} 7034#endif 7035int main(){nm_test_var='a';nm_test_func();return(0);} 7036_LT_EOF 7037 7038 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7039 (eval $ac_compile) 2>&5 7040 ac_status=$? 7041 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7042 test $ac_status = 0; }; then 7043 # Now try to grab the symbols. 7044 nlist=conftest.nm 7045 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 7046 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 7047 ac_status=$? 7048 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7049 test $ac_status = 0; } && test -s "$nlist"; then 7050 # Try sorting and uniquifying the output. 7051 if sort "$nlist" | uniq > "$nlist"T; then 7052 mv -f "$nlist"T "$nlist" 7053 else 7054 rm -f "$nlist"T 7055 fi 7056 7057 # Make sure that we snagged all the symbols we need. 7058 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 7059 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 7060 cat <<_LT_EOF > conftest.$ac_ext 7061/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 7062#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE 7063/* DATA imports from DLLs on WIN32 can't be const, because runtime 7064 relocations are performed -- see ld's documentation on pseudo-relocs. */ 7065# define LT_DLSYM_CONST 7066#elif defined __osf__ 7067/* This system does not cope well with relocations in const data. */ 7068# define LT_DLSYM_CONST 7069#else 7070# define LT_DLSYM_CONST const 7071#endif 7072 7073#ifdef __cplusplus 7074extern "C" { 7075#endif 7076 7077_LT_EOF 7078 # Now generate the symbol file. 7079 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 7080 7081 cat <<_LT_EOF >> conftest.$ac_ext 7082 7083/* The mapping between symbol names and symbols. */ 7084LT_DLSYM_CONST struct { 7085 const char *name; 7086 void *address; 7087} 7088lt__PROGRAM__LTX_preloaded_symbols[] = 7089{ 7090 { "@PROGRAM@", (void *) 0 }, 7091_LT_EOF 7092 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 7093 cat <<\_LT_EOF >> conftest.$ac_ext 7094 {0, (void *) 0} 7095}; 7096 7097/* This works around a problem in FreeBSD linker */ 7098#ifdef FREEBSD_WORKAROUND 7099static const void *lt_preloaded_setup() { 7100 return lt__PROGRAM__LTX_preloaded_symbols; 7101} 7102#endif 7103 7104#ifdef __cplusplus 7105} 7106#endif 7107_LT_EOF 7108 # Now try linking the two files. 7109 mv conftest.$ac_objext conftstm.$ac_objext 7110 lt_globsym_save_LIBS=$LIBS 7111 lt_globsym_save_CFLAGS=$CFLAGS 7112 LIBS=conftstm.$ac_objext 7113 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 7114 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 7115 (eval $ac_link) 2>&5 7116 ac_status=$? 7117 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7118 test $ac_status = 0; } && test -s conftest$ac_exeext; then 7119 pipe_works=yes 7120 fi 7121 LIBS=$lt_globsym_save_LIBS 7122 CFLAGS=$lt_globsym_save_CFLAGS 7123 else 7124 echo "cannot find nm_test_func in $nlist" >&5 7125 fi 7126 else 7127 echo "cannot find nm_test_var in $nlist" >&5 7128 fi 7129 else 7130 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 7131 fi 7132 else 7133 echo "$progname: failed program was:" >&5 7134 cat conftest.$ac_ext >&5 7135 fi 7136 rm -rf conftest* conftst* 7137 7138 # Do not use the global_symbol_pipe unless it works. 7139 if test yes = "$pipe_works"; then 7140 break 7141 else 7142 lt_cv_sys_global_symbol_pipe= 7143 fi 7144done 7145 7146fi 7147 7148if test -z "$lt_cv_sys_global_symbol_pipe"; then 7149 lt_cv_sys_global_symbol_to_cdecl= 7150fi 7151if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 7152 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5 7153printf "%s\n" "failed" >&6; } 7154else 7155 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5 7156printf "%s\n" "ok" >&6; } 7157fi 7158 7159# Response file support. 7160if test "$lt_cv_nm_interface" = "MS dumpbin"; then 7161 nm_file_list_spec='@' 7162elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 7163 nm_file_list_spec='@' 7164fi 7165 7166 7167 7168 7169 7170 7171 7172 7173 7174 7175 7176 7177 7178 7179 7180 7181 7182 7183 7184 7185 7186 7187 7188 7189 7190 7191 7192 7193 7194 7195 7196 7197 7198 7199 7200 7201 7202{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 7203printf %s "checking for sysroot... " >&6; } 7204 7205# Check whether --with-sysroot was given. 7206if test ${with_sysroot+y} 7207then : 7208 withval=$with_sysroot; 7209else $as_nop 7210 with_sysroot=no 7211fi 7212 7213 7214lt_sysroot= 7215case $with_sysroot in #( 7216 yes) 7217 if test yes = "$GCC"; then 7218 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 7219 fi 7220 ;; #( 7221 /*) 7222 lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"` 7223 ;; #( 7224 no|'') 7225 ;; #( 7226 *) 7227 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5 7228printf "%s\n" "$with_sysroot" >&6; } 7229 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 7230 ;; 7231esac 7232 7233 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 7234printf "%s\n" "${lt_sysroot:-no}" >&6; } 7235 7236 7237 7238 7239 7240{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5 7241printf %s "checking for a working dd... " >&6; } 7242if test ${ac_cv_path_lt_DD+y} 7243then : 7244 printf %s "(cached) " >&6 7245else $as_nop 7246 printf 0123456789abcdef0123456789abcdef >conftest.i 7247cat conftest.i conftest.i >conftest2.i 7248: ${lt_DD:=$DD} 7249if test -z "$lt_DD"; then 7250 ac_path_lt_DD_found=false 7251 # Loop through the user's path and test for each of PROGNAME-LIST 7252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7253for as_dir in $PATH 7254do 7255 IFS=$as_save_IFS 7256 case $as_dir in #((( 7257 '') as_dir=./ ;; 7258 */) ;; 7259 *) as_dir=$as_dir/ ;; 7260 esac 7261 for ac_prog in dd 7262 do 7263 for ac_exec_ext in '' $ac_executable_extensions; do 7264 ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext" 7265 as_fn_executable_p "$ac_path_lt_DD" || continue 7266if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 7267 cmp -s conftest.i conftest.out \ 7268 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: 7269fi 7270 $ac_path_lt_DD_found && break 3 7271 done 7272 done 7273 done 7274IFS=$as_save_IFS 7275 if test -z "$ac_cv_path_lt_DD"; then 7276 : 7277 fi 7278else 7279 ac_cv_path_lt_DD=$lt_DD 7280fi 7281 7282rm -f conftest.i conftest2.i conftest.out 7283fi 7284{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 7285printf "%s\n" "$ac_cv_path_lt_DD" >&6; } 7286 7287 7288{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5 7289printf %s "checking how to truncate binary pipes... " >&6; } 7290if test ${lt_cv_truncate_bin+y} 7291then : 7292 printf %s "(cached) " >&6 7293else $as_nop 7294 printf 0123456789abcdef0123456789abcdef >conftest.i 7295cat conftest.i conftest.i >conftest2.i 7296lt_cv_truncate_bin= 7297if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 7298 cmp -s conftest.i conftest.out \ 7299 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" 7300fi 7301rm -f conftest.i conftest2.i conftest.out 7302test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" 7303fi 7304{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 7305printf "%s\n" "$lt_cv_truncate_bin" >&6; } 7306 7307 7308 7309 7310 7311 7312 7313# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 7314func_cc_basename () 7315{ 7316 for cc_temp in $*""; do 7317 case $cc_temp in 7318 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 7319 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 7320 \-*) ;; 7321 *) break;; 7322 esac 7323 done 7324 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 7325} 7326 7327# Check whether --enable-libtool-lock was given. 7328if test ${enable_libtool_lock+y} 7329then : 7330 enableval=$enable_libtool_lock; 7331fi 7332 7333test no = "$enable_libtool_lock" || enable_libtool_lock=yes 7334 7335# Some flags need to be propagated to the compiler or linker for good 7336# libtool support. 7337case $host in 7338ia64-*-hpux*) 7339 # Find out what ABI is being produced by ac_compile, and set mode 7340 # options accordingly. 7341 echo 'int i;' > conftest.$ac_ext 7342 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7343 (eval $ac_compile) 2>&5 7344 ac_status=$? 7345 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7346 test $ac_status = 0; }; then 7347 case `$FILECMD conftest.$ac_objext` in 7348 *ELF-32*) 7349 HPUX_IA64_MODE=32 7350 ;; 7351 *ELF-64*) 7352 HPUX_IA64_MODE=64 7353 ;; 7354 esac 7355 fi 7356 rm -rf conftest* 7357 ;; 7358*-*-irix6*) 7359 # Find out what ABI is being produced by ac_compile, and set linker 7360 # options accordingly. 7361 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 7362 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7363 (eval $ac_compile) 2>&5 7364 ac_status=$? 7365 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7366 test $ac_status = 0; }; then 7367 if test yes = "$lt_cv_prog_gnu_ld"; then 7368 case `$FILECMD conftest.$ac_objext` in 7369 *32-bit*) 7370 LD="${LD-ld} -melf32bsmip" 7371 ;; 7372 *N32*) 7373 LD="${LD-ld} -melf32bmipn32" 7374 ;; 7375 *64-bit*) 7376 LD="${LD-ld} -melf64bmip" 7377 ;; 7378 esac 7379 else 7380 case `$FILECMD conftest.$ac_objext` in 7381 *32-bit*) 7382 LD="${LD-ld} -32" 7383 ;; 7384 *N32*) 7385 LD="${LD-ld} -n32" 7386 ;; 7387 *64-bit*) 7388 LD="${LD-ld} -64" 7389 ;; 7390 esac 7391 fi 7392 fi 7393 rm -rf conftest* 7394 ;; 7395 7396mips64*-*linux*) 7397 # Find out what ABI is being produced by ac_compile, and set linker 7398 # options accordingly. 7399 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 7400 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7401 (eval $ac_compile) 2>&5 7402 ac_status=$? 7403 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7404 test $ac_status = 0; }; then 7405 emul=elf 7406 case `$FILECMD conftest.$ac_objext` in 7407 *32-bit*) 7408 emul="${emul}32" 7409 ;; 7410 *64-bit*) 7411 emul="${emul}64" 7412 ;; 7413 esac 7414 case `$FILECMD conftest.$ac_objext` in 7415 *MSB*) 7416 emul="${emul}btsmip" 7417 ;; 7418 *LSB*) 7419 emul="${emul}ltsmip" 7420 ;; 7421 esac 7422 case `$FILECMD conftest.$ac_objext` in 7423 *N32*) 7424 emul="${emul}n32" 7425 ;; 7426 esac 7427 LD="${LD-ld} -m $emul" 7428 fi 7429 rm -rf conftest* 7430 ;; 7431 7432x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 7433s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 7434 # Find out what ABI is being produced by ac_compile, and set linker 7435 # options accordingly. Note that the listed cases only cover the 7436 # situations where additional linker options are needed (such as when 7437 # doing 32-bit compilation for a host where ld defaults to 64-bit, or 7438 # vice versa); the common cases where no linker options are needed do 7439 # not appear in the list. 7440 echo 'int i;' > conftest.$ac_ext 7441 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7442 (eval $ac_compile) 2>&5 7443 ac_status=$? 7444 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7445 test $ac_status = 0; }; then 7446 case `$FILECMD conftest.o` in 7447 *32-bit*) 7448 case $host in 7449 x86_64-*kfreebsd*-gnu) 7450 LD="${LD-ld} -m elf_i386_fbsd" 7451 ;; 7452 x86_64-*linux*) 7453 case `$FILECMD conftest.o` in 7454 *x86-64*) 7455 LD="${LD-ld} -m elf32_x86_64" 7456 ;; 7457 *) 7458 LD="${LD-ld} -m elf_i386" 7459 ;; 7460 esac 7461 ;; 7462 powerpc64le-*linux*) 7463 LD="${LD-ld} -m elf32lppclinux" 7464 ;; 7465 powerpc64-*linux*) 7466 LD="${LD-ld} -m elf32ppclinux" 7467 ;; 7468 s390x-*linux*) 7469 LD="${LD-ld} -m elf_s390" 7470 ;; 7471 sparc64-*linux*) 7472 LD="${LD-ld} -m elf32_sparc" 7473 ;; 7474 esac 7475 ;; 7476 *64-bit*) 7477 case $host in 7478 x86_64-*kfreebsd*-gnu) 7479 LD="${LD-ld} -m elf_x86_64_fbsd" 7480 ;; 7481 x86_64-*linux*) 7482 LD="${LD-ld} -m elf_x86_64" 7483 ;; 7484 powerpcle-*linux*) 7485 LD="${LD-ld} -m elf64lppc" 7486 ;; 7487 powerpc-*linux*) 7488 LD="${LD-ld} -m elf64ppc" 7489 ;; 7490 s390*-*linux*|s390*-*tpf*) 7491 LD="${LD-ld} -m elf64_s390" 7492 ;; 7493 sparc*-*linux*) 7494 LD="${LD-ld} -m elf64_sparc" 7495 ;; 7496 esac 7497 ;; 7498 esac 7499 fi 7500 rm -rf conftest* 7501 ;; 7502 7503*-*-sco3.2v5*) 7504 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 7505 SAVE_CFLAGS=$CFLAGS 7506 CFLAGS="$CFLAGS -belf" 7507 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 7508printf %s "checking whether the C compiler needs -belf... " >&6; } 7509if test ${lt_cv_cc_needs_belf+y} 7510then : 7511 printf %s "(cached) " >&6 7512else $as_nop 7513 ac_ext=c 7514ac_cpp='$CPP $CPPFLAGS' 7515ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7516ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7517ac_compiler_gnu=$ac_cv_c_compiler_gnu 7518 7519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7520/* end confdefs.h. */ 7521 7522int 7523main (void) 7524{ 7525 7526 ; 7527 return 0; 7528} 7529_ACEOF 7530if ac_fn_c_try_link "$LINENO" 7531then : 7532 lt_cv_cc_needs_belf=yes 7533else $as_nop 7534 lt_cv_cc_needs_belf=no 7535fi 7536rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7537 conftest$ac_exeext conftest.$ac_ext 7538 ac_ext=c 7539ac_cpp='$CPP $CPPFLAGS' 7540ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7541ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7542ac_compiler_gnu=$ac_cv_c_compiler_gnu 7543 7544fi 7545{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 7546printf "%s\n" "$lt_cv_cc_needs_belf" >&6; } 7547 if test yes != "$lt_cv_cc_needs_belf"; then 7548 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 7549 CFLAGS=$SAVE_CFLAGS 7550 fi 7551 ;; 7552*-*solaris*) 7553 # Find out what ABI is being produced by ac_compile, and set linker 7554 # options accordingly. 7555 echo 'int i;' > conftest.$ac_ext 7556 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7557 (eval $ac_compile) 2>&5 7558 ac_status=$? 7559 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7560 test $ac_status = 0; }; then 7561 case `$FILECMD conftest.o` in 7562 *64-bit*) 7563 case $lt_cv_prog_gnu_ld in 7564 yes*) 7565 case $host in 7566 i?86-*-solaris*|x86_64-*-solaris*) 7567 LD="${LD-ld} -m elf_x86_64" 7568 ;; 7569 sparc*-*-solaris*) 7570 LD="${LD-ld} -m elf64_sparc" 7571 ;; 7572 esac 7573 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 7574 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 7575 LD=${LD-ld}_sol2 7576 fi 7577 ;; 7578 *) 7579 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 7580 LD="${LD-ld} -64" 7581 fi 7582 ;; 7583 esac 7584 ;; 7585 esac 7586 fi 7587 rm -rf conftest* 7588 ;; 7589esac 7590 7591need_locks=$enable_libtool_lock 7592 7593if test -n "$ac_tool_prefix"; then 7594 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 7595set dummy ${ac_tool_prefix}mt; ac_word=$2 7596{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7597printf %s "checking for $ac_word... " >&6; } 7598if test ${ac_cv_prog_MANIFEST_TOOL+y} 7599then : 7600 printf %s "(cached) " >&6 7601else $as_nop 7602 if test -n "$MANIFEST_TOOL"; then 7603 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 7604else 7605as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7606for as_dir in $PATH 7607do 7608 IFS=$as_save_IFS 7609 case $as_dir in #((( 7610 '') as_dir=./ ;; 7611 */) ;; 7612 *) as_dir=$as_dir/ ;; 7613 esac 7614 for ac_exec_ext in '' $ac_executable_extensions; do 7615 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7616 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 7617 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7618 break 2 7619 fi 7620done 7621 done 7622IFS=$as_save_IFS 7623 7624fi 7625fi 7626MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 7627if test -n "$MANIFEST_TOOL"; then 7628 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 7629printf "%s\n" "$MANIFEST_TOOL" >&6; } 7630else 7631 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7632printf "%s\n" "no" >&6; } 7633fi 7634 7635 7636fi 7637if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 7638 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 7639 # Extract the first word of "mt", so it can be a program name with args. 7640set dummy mt; ac_word=$2 7641{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7642printf %s "checking for $ac_word... " >&6; } 7643if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y} 7644then : 7645 printf %s "(cached) " >&6 7646else $as_nop 7647 if test -n "$ac_ct_MANIFEST_TOOL"; then 7648 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 7649else 7650as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7651for as_dir in $PATH 7652do 7653 IFS=$as_save_IFS 7654 case $as_dir in #((( 7655 '') as_dir=./ ;; 7656 */) ;; 7657 *) as_dir=$as_dir/ ;; 7658 esac 7659 for ac_exec_ext in '' $ac_executable_extensions; do 7660 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7661 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 7662 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7663 break 2 7664 fi 7665done 7666 done 7667IFS=$as_save_IFS 7668 7669fi 7670fi 7671ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 7672if test -n "$ac_ct_MANIFEST_TOOL"; then 7673 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 7674printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; } 7675else 7676 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7677printf "%s\n" "no" >&6; } 7678fi 7679 7680 if test "x$ac_ct_MANIFEST_TOOL" = x; then 7681 MANIFEST_TOOL=":" 7682 else 7683 case $cross_compiling:$ac_tool_warned in 7684yes:) 7685{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7686printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7687ac_tool_warned=yes ;; 7688esac 7689 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 7690 fi 7691else 7692 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 7693fi 7694 7695test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 7696{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 7697printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 7698if test ${lt_cv_path_mainfest_tool+y} 7699then : 7700 printf %s "(cached) " >&6 7701else $as_nop 7702 lt_cv_path_mainfest_tool=no 7703 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 7704 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 7705 cat conftest.err >&5 7706 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 7707 lt_cv_path_mainfest_tool=yes 7708 fi 7709 rm -f conftest* 7710fi 7711{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 7712printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; } 7713if test yes != "$lt_cv_path_mainfest_tool"; then 7714 MANIFEST_TOOL=: 7715fi 7716 7717 7718 7719 7720 7721 7722 case $host_os in 7723 rhapsody* | darwin*) 7724 if test -n "$ac_tool_prefix"; then 7725 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 7726set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 7727{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7728printf %s "checking for $ac_word... " >&6; } 7729if test ${ac_cv_prog_DSYMUTIL+y} 7730then : 7731 printf %s "(cached) " >&6 7732else $as_nop 7733 if test -n "$DSYMUTIL"; then 7734 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 7735else 7736as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7737for as_dir in $PATH 7738do 7739 IFS=$as_save_IFS 7740 case $as_dir in #((( 7741 '') as_dir=./ ;; 7742 */) ;; 7743 *) as_dir=$as_dir/ ;; 7744 esac 7745 for ac_exec_ext in '' $ac_executable_extensions; do 7746 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7747 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 7748 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7749 break 2 7750 fi 7751done 7752 done 7753IFS=$as_save_IFS 7754 7755fi 7756fi 7757DSYMUTIL=$ac_cv_prog_DSYMUTIL 7758if test -n "$DSYMUTIL"; then 7759 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 7760printf "%s\n" "$DSYMUTIL" >&6; } 7761else 7762 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7763printf "%s\n" "no" >&6; } 7764fi 7765 7766 7767fi 7768if test -z "$ac_cv_prog_DSYMUTIL"; then 7769 ac_ct_DSYMUTIL=$DSYMUTIL 7770 # Extract the first word of "dsymutil", so it can be a program name with args. 7771set dummy dsymutil; ac_word=$2 7772{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7773printf %s "checking for $ac_word... " >&6; } 7774if test ${ac_cv_prog_ac_ct_DSYMUTIL+y} 7775then : 7776 printf %s "(cached) " >&6 7777else $as_nop 7778 if test -n "$ac_ct_DSYMUTIL"; then 7779 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 7780else 7781as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7782for as_dir in $PATH 7783do 7784 IFS=$as_save_IFS 7785 case $as_dir in #((( 7786 '') as_dir=./ ;; 7787 */) ;; 7788 *) as_dir=$as_dir/ ;; 7789 esac 7790 for ac_exec_ext in '' $ac_executable_extensions; do 7791 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7792 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 7793 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7794 break 2 7795 fi 7796done 7797 done 7798IFS=$as_save_IFS 7799 7800fi 7801fi 7802ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 7803if test -n "$ac_ct_DSYMUTIL"; then 7804 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 7805printf "%s\n" "$ac_ct_DSYMUTIL" >&6; } 7806else 7807 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7808printf "%s\n" "no" >&6; } 7809fi 7810 7811 if test "x$ac_ct_DSYMUTIL" = x; then 7812 DSYMUTIL=":" 7813 else 7814 case $cross_compiling:$ac_tool_warned in 7815yes:) 7816{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7817printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7818ac_tool_warned=yes ;; 7819esac 7820 DSYMUTIL=$ac_ct_DSYMUTIL 7821 fi 7822else 7823 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 7824fi 7825 7826 if test -n "$ac_tool_prefix"; then 7827 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 7828set dummy ${ac_tool_prefix}nmedit; ac_word=$2 7829{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7830printf %s "checking for $ac_word... " >&6; } 7831if test ${ac_cv_prog_NMEDIT+y} 7832then : 7833 printf %s "(cached) " >&6 7834else $as_nop 7835 if test -n "$NMEDIT"; then 7836 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 7837else 7838as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7839for as_dir in $PATH 7840do 7841 IFS=$as_save_IFS 7842 case $as_dir in #((( 7843 '') as_dir=./ ;; 7844 */) ;; 7845 *) as_dir=$as_dir/ ;; 7846 esac 7847 for ac_exec_ext in '' $ac_executable_extensions; do 7848 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7849 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 7850 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7851 break 2 7852 fi 7853done 7854 done 7855IFS=$as_save_IFS 7856 7857fi 7858fi 7859NMEDIT=$ac_cv_prog_NMEDIT 7860if test -n "$NMEDIT"; then 7861 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 7862printf "%s\n" "$NMEDIT" >&6; } 7863else 7864 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7865printf "%s\n" "no" >&6; } 7866fi 7867 7868 7869fi 7870if test -z "$ac_cv_prog_NMEDIT"; then 7871 ac_ct_NMEDIT=$NMEDIT 7872 # Extract the first word of "nmedit", so it can be a program name with args. 7873set dummy nmedit; ac_word=$2 7874{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7875printf %s "checking for $ac_word... " >&6; } 7876if test ${ac_cv_prog_ac_ct_NMEDIT+y} 7877then : 7878 printf %s "(cached) " >&6 7879else $as_nop 7880 if test -n "$ac_ct_NMEDIT"; then 7881 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 7882else 7883as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7884for as_dir in $PATH 7885do 7886 IFS=$as_save_IFS 7887 case $as_dir in #((( 7888 '') as_dir=./ ;; 7889 */) ;; 7890 *) as_dir=$as_dir/ ;; 7891 esac 7892 for ac_exec_ext in '' $ac_executable_extensions; do 7893 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7894 ac_cv_prog_ac_ct_NMEDIT="nmedit" 7895 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7896 break 2 7897 fi 7898done 7899 done 7900IFS=$as_save_IFS 7901 7902fi 7903fi 7904ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 7905if test -n "$ac_ct_NMEDIT"; then 7906 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 7907printf "%s\n" "$ac_ct_NMEDIT" >&6; } 7908else 7909 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7910printf "%s\n" "no" >&6; } 7911fi 7912 7913 if test "x$ac_ct_NMEDIT" = x; then 7914 NMEDIT=":" 7915 else 7916 case $cross_compiling:$ac_tool_warned in 7917yes:) 7918{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7919printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7920ac_tool_warned=yes ;; 7921esac 7922 NMEDIT=$ac_ct_NMEDIT 7923 fi 7924else 7925 NMEDIT="$ac_cv_prog_NMEDIT" 7926fi 7927 7928 if test -n "$ac_tool_prefix"; then 7929 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 7930set dummy ${ac_tool_prefix}lipo; ac_word=$2 7931{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7932printf %s "checking for $ac_word... " >&6; } 7933if test ${ac_cv_prog_LIPO+y} 7934then : 7935 printf %s "(cached) " >&6 7936else $as_nop 7937 if test -n "$LIPO"; then 7938 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 7939else 7940as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7941for as_dir in $PATH 7942do 7943 IFS=$as_save_IFS 7944 case $as_dir in #((( 7945 '') as_dir=./ ;; 7946 */) ;; 7947 *) as_dir=$as_dir/ ;; 7948 esac 7949 for ac_exec_ext in '' $ac_executable_extensions; do 7950 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7951 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 7952 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7953 break 2 7954 fi 7955done 7956 done 7957IFS=$as_save_IFS 7958 7959fi 7960fi 7961LIPO=$ac_cv_prog_LIPO 7962if test -n "$LIPO"; then 7963 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 7964printf "%s\n" "$LIPO" >&6; } 7965else 7966 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7967printf "%s\n" "no" >&6; } 7968fi 7969 7970 7971fi 7972if test -z "$ac_cv_prog_LIPO"; then 7973 ac_ct_LIPO=$LIPO 7974 # Extract the first word of "lipo", so it can be a program name with args. 7975set dummy lipo; ac_word=$2 7976{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7977printf %s "checking for $ac_word... " >&6; } 7978if test ${ac_cv_prog_ac_ct_LIPO+y} 7979then : 7980 printf %s "(cached) " >&6 7981else $as_nop 7982 if test -n "$ac_ct_LIPO"; then 7983 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 7984else 7985as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7986for as_dir in $PATH 7987do 7988 IFS=$as_save_IFS 7989 case $as_dir in #((( 7990 '') as_dir=./ ;; 7991 */) ;; 7992 *) as_dir=$as_dir/ ;; 7993 esac 7994 for ac_exec_ext in '' $ac_executable_extensions; do 7995 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7996 ac_cv_prog_ac_ct_LIPO="lipo" 7997 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7998 break 2 7999 fi 8000done 8001 done 8002IFS=$as_save_IFS 8003 8004fi 8005fi 8006ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 8007if test -n "$ac_ct_LIPO"; then 8008 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 8009printf "%s\n" "$ac_ct_LIPO" >&6; } 8010else 8011 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8012printf "%s\n" "no" >&6; } 8013fi 8014 8015 if test "x$ac_ct_LIPO" = x; then 8016 LIPO=":" 8017 else 8018 case $cross_compiling:$ac_tool_warned in 8019yes:) 8020{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8021printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8022ac_tool_warned=yes ;; 8023esac 8024 LIPO=$ac_ct_LIPO 8025 fi 8026else 8027 LIPO="$ac_cv_prog_LIPO" 8028fi 8029 8030 if test -n "$ac_tool_prefix"; then 8031 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 8032set dummy ${ac_tool_prefix}otool; ac_word=$2 8033{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8034printf %s "checking for $ac_word... " >&6; } 8035if test ${ac_cv_prog_OTOOL+y} 8036then : 8037 printf %s "(cached) " >&6 8038else $as_nop 8039 if test -n "$OTOOL"; then 8040 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 8041else 8042as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8043for as_dir in $PATH 8044do 8045 IFS=$as_save_IFS 8046 case $as_dir in #((( 8047 '') as_dir=./ ;; 8048 */) ;; 8049 *) as_dir=$as_dir/ ;; 8050 esac 8051 for ac_exec_ext in '' $ac_executable_extensions; do 8052 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8053 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 8054 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8055 break 2 8056 fi 8057done 8058 done 8059IFS=$as_save_IFS 8060 8061fi 8062fi 8063OTOOL=$ac_cv_prog_OTOOL 8064if test -n "$OTOOL"; then 8065 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 8066printf "%s\n" "$OTOOL" >&6; } 8067else 8068 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8069printf "%s\n" "no" >&6; } 8070fi 8071 8072 8073fi 8074if test -z "$ac_cv_prog_OTOOL"; then 8075 ac_ct_OTOOL=$OTOOL 8076 # Extract the first word of "otool", so it can be a program name with args. 8077set dummy otool; ac_word=$2 8078{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8079printf %s "checking for $ac_word... " >&6; } 8080if test ${ac_cv_prog_ac_ct_OTOOL+y} 8081then : 8082 printf %s "(cached) " >&6 8083else $as_nop 8084 if test -n "$ac_ct_OTOOL"; then 8085 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 8086else 8087as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8088for as_dir in $PATH 8089do 8090 IFS=$as_save_IFS 8091 case $as_dir in #((( 8092 '') as_dir=./ ;; 8093 */) ;; 8094 *) as_dir=$as_dir/ ;; 8095 esac 8096 for ac_exec_ext in '' $ac_executable_extensions; do 8097 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8098 ac_cv_prog_ac_ct_OTOOL="otool" 8099 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8100 break 2 8101 fi 8102done 8103 done 8104IFS=$as_save_IFS 8105 8106fi 8107fi 8108ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 8109if test -n "$ac_ct_OTOOL"; then 8110 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 8111printf "%s\n" "$ac_ct_OTOOL" >&6; } 8112else 8113 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8114printf "%s\n" "no" >&6; } 8115fi 8116 8117 if test "x$ac_ct_OTOOL" = x; then 8118 OTOOL=":" 8119 else 8120 case $cross_compiling:$ac_tool_warned in 8121yes:) 8122{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8123printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8124ac_tool_warned=yes ;; 8125esac 8126 OTOOL=$ac_ct_OTOOL 8127 fi 8128else 8129 OTOOL="$ac_cv_prog_OTOOL" 8130fi 8131 8132 if test -n "$ac_tool_prefix"; then 8133 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 8134set dummy ${ac_tool_prefix}otool64; ac_word=$2 8135{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8136printf %s "checking for $ac_word... " >&6; } 8137if test ${ac_cv_prog_OTOOL64+y} 8138then : 8139 printf %s "(cached) " >&6 8140else $as_nop 8141 if test -n "$OTOOL64"; then 8142 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 8143else 8144as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8145for as_dir in $PATH 8146do 8147 IFS=$as_save_IFS 8148 case $as_dir in #((( 8149 '') as_dir=./ ;; 8150 */) ;; 8151 *) as_dir=$as_dir/ ;; 8152 esac 8153 for ac_exec_ext in '' $ac_executable_extensions; do 8154 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8155 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 8156 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8157 break 2 8158 fi 8159done 8160 done 8161IFS=$as_save_IFS 8162 8163fi 8164fi 8165OTOOL64=$ac_cv_prog_OTOOL64 8166if test -n "$OTOOL64"; then 8167 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 8168printf "%s\n" "$OTOOL64" >&6; } 8169else 8170 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8171printf "%s\n" "no" >&6; } 8172fi 8173 8174 8175fi 8176if test -z "$ac_cv_prog_OTOOL64"; then 8177 ac_ct_OTOOL64=$OTOOL64 8178 # Extract the first word of "otool64", so it can be a program name with args. 8179set dummy otool64; ac_word=$2 8180{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8181printf %s "checking for $ac_word... " >&6; } 8182if test ${ac_cv_prog_ac_ct_OTOOL64+y} 8183then : 8184 printf %s "(cached) " >&6 8185else $as_nop 8186 if test -n "$ac_ct_OTOOL64"; then 8187 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 8188else 8189as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8190for as_dir in $PATH 8191do 8192 IFS=$as_save_IFS 8193 case $as_dir in #((( 8194 '') as_dir=./ ;; 8195 */) ;; 8196 *) as_dir=$as_dir/ ;; 8197 esac 8198 for ac_exec_ext in '' $ac_executable_extensions; do 8199 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8200 ac_cv_prog_ac_ct_OTOOL64="otool64" 8201 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8202 break 2 8203 fi 8204done 8205 done 8206IFS=$as_save_IFS 8207 8208fi 8209fi 8210ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 8211if test -n "$ac_ct_OTOOL64"; then 8212 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 8213printf "%s\n" "$ac_ct_OTOOL64" >&6; } 8214else 8215 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8216printf "%s\n" "no" >&6; } 8217fi 8218 8219 if test "x$ac_ct_OTOOL64" = x; then 8220 OTOOL64=":" 8221 else 8222 case $cross_compiling:$ac_tool_warned in 8223yes:) 8224{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8225printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8226ac_tool_warned=yes ;; 8227esac 8228 OTOOL64=$ac_ct_OTOOL64 8229 fi 8230else 8231 OTOOL64="$ac_cv_prog_OTOOL64" 8232fi 8233 8234 8235 8236 8237 8238 8239 8240 8241 8242 8243 8244 8245 8246 8247 8248 8249 8250 8251 8252 8253 8254 8255 8256 8257 8258 8259 8260 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 8261printf %s "checking for -single_module linker flag... " >&6; } 8262if test ${lt_cv_apple_cc_single_mod+y} 8263then : 8264 printf %s "(cached) " >&6 8265else $as_nop 8266 lt_cv_apple_cc_single_mod=no 8267 if test -z "$LT_MULTI_MODULE"; then 8268 # By default we will add the -single_module flag. You can override 8269 # by either setting the environment variable LT_MULTI_MODULE 8270 # non-empty at configure time, or by adding -multi_module to the 8271 # link flags. 8272 rm -rf libconftest.dylib* 8273 echo "int foo(void){return 1;}" > conftest.c 8274 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 8275-dynamiclib -Wl,-single_module conftest.c" >&5 8276 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 8277 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 8278 _lt_result=$? 8279 # If there is a non-empty error log, and "single_module" 8280 # appears in it, assume the flag caused a linker warning 8281 if test -s conftest.err && $GREP single_module conftest.err; then 8282 cat conftest.err >&5 8283 # Otherwise, if the output was created with a 0 exit code from 8284 # the compiler, it worked. 8285 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then 8286 lt_cv_apple_cc_single_mod=yes 8287 else 8288 cat conftest.err >&5 8289 fi 8290 rm -rf libconftest.dylib* 8291 rm -f conftest.* 8292 fi 8293fi 8294{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 8295printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; } 8296 8297 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 8298printf %s "checking for -exported_symbols_list linker flag... " >&6; } 8299if test ${lt_cv_ld_exported_symbols_list+y} 8300then : 8301 printf %s "(cached) " >&6 8302else $as_nop 8303 lt_cv_ld_exported_symbols_list=no 8304 save_LDFLAGS=$LDFLAGS 8305 echo "_main" > conftest.sym 8306 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 8307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8308/* end confdefs.h. */ 8309 8310int 8311main (void) 8312{ 8313 8314 ; 8315 return 0; 8316} 8317_ACEOF 8318if ac_fn_c_try_link "$LINENO" 8319then : 8320 lt_cv_ld_exported_symbols_list=yes 8321else $as_nop 8322 lt_cv_ld_exported_symbols_list=no 8323fi 8324rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8325 conftest$ac_exeext conftest.$ac_ext 8326 LDFLAGS=$save_LDFLAGS 8327 8328fi 8329{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 8330printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; } 8331 8332 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 8333printf %s "checking for -force_load linker flag... " >&6; } 8334if test ${lt_cv_ld_force_load+y} 8335then : 8336 printf %s "(cached) " >&6 8337else $as_nop 8338 lt_cv_ld_force_load=no 8339 cat > conftest.c << _LT_EOF 8340int forced_loaded() { return 2;} 8341_LT_EOF 8342 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 8343 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 8344 echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5 8345 $AR $AR_FLAGS libconftest.a conftest.o 2>&5 8346 echo "$RANLIB libconftest.a" >&5 8347 $RANLIB libconftest.a 2>&5 8348 cat > conftest.c << _LT_EOF 8349int main() { return 0;} 8350_LT_EOF 8351 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 8352 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 8353 _lt_result=$? 8354 if test -s conftest.err && $GREP force_load conftest.err; then 8355 cat conftest.err >&5 8356 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then 8357 lt_cv_ld_force_load=yes 8358 else 8359 cat conftest.err >&5 8360 fi 8361 rm -f conftest.err libconftest.a conftest conftest.c 8362 rm -rf conftest.dSYM 8363 8364fi 8365{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 8366printf "%s\n" "$lt_cv_ld_force_load" >&6; } 8367 case $host_os in 8368 rhapsody* | darwin1.[012]) 8369 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; 8370 darwin1.*) 8371 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 8372 darwin*) 8373 case $MACOSX_DEPLOYMENT_TARGET,$host in 8374 10.[012],*|,*powerpc*-darwin[5-8]*) 8375 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 8376 *) 8377 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 8378 esac 8379 ;; 8380 esac 8381 if test yes = "$lt_cv_apple_cc_single_mod"; then 8382 _lt_dar_single_mod='$single_module' 8383 fi 8384 if test yes = "$lt_cv_ld_exported_symbols_list"; then 8385 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' 8386 else 8387 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' 8388 fi 8389 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then 8390 _lt_dsymutil='~$DSYMUTIL $lib || :' 8391 else 8392 _lt_dsymutil= 8393 fi 8394 ;; 8395 esac 8396 8397# func_munge_path_list VARIABLE PATH 8398# ----------------------------------- 8399# VARIABLE is name of variable containing _space_ separated list of 8400# directories to be munged by the contents of PATH, which is string 8401# having a format: 8402# "DIR[:DIR]:" 8403# string "DIR[ DIR]" will be prepended to VARIABLE 8404# ":DIR[:DIR]" 8405# string "DIR[ DIR]" will be appended to VARIABLE 8406# "DIRP[:DIRP]::[DIRA:]DIRA" 8407# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 8408# "DIRA[ DIRA]" will be appended to VARIABLE 8409# "DIR[:DIR]" 8410# VARIABLE will be replaced by "DIR[ DIR]" 8411func_munge_path_list () 8412{ 8413 case x$2 in 8414 x) 8415 ;; 8416 *:) 8417 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 8418 ;; 8419 x:*) 8420 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 8421 ;; 8422 *::*) 8423 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 8424 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 8425 ;; 8426 *) 8427 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 8428 ;; 8429 esac 8430} 8431 8432ac_header= ac_cache= 8433for ac_item in $ac_header_c_list 8434do 8435 if test $ac_cache; then 8436 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default" 8437 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then 8438 printf "%s\n" "#define $ac_item 1" >> confdefs.h 8439 fi 8440 ac_header= ac_cache= 8441 elif test $ac_header; then 8442 ac_cache=$ac_item 8443 else 8444 ac_header=$ac_item 8445 fi 8446done 8447 8448 8449 8450 8451 8452 8453 8454 8455if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes 8456then : 8457 8458printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h 8459 8460fi 8461ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 8462" 8463if test "x$ac_cv_header_dlfcn_h" = xyes 8464then : 8465 printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h 8466 8467fi 8468 8469 8470 8471 8472 8473# Set options 8474 8475 8476 8477 enable_dlopen=no 8478 8479 8480 enable_win32_dll=no 8481 8482 8483 # Check whether --enable-shared was given. 8484if test ${enable_shared+y} 8485then : 8486 enableval=$enable_shared; p=${PACKAGE-default} 8487 case $enableval in 8488 yes) enable_shared=yes ;; 8489 no) enable_shared=no ;; 8490 *) 8491 enable_shared=no 8492 # Look at the argument we got. We use all the common list separators. 8493 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8494 for pkg in $enableval; do 8495 IFS=$lt_save_ifs 8496 if test "X$pkg" = "X$p"; then 8497 enable_shared=yes 8498 fi 8499 done 8500 IFS=$lt_save_ifs 8501 ;; 8502 esac 8503else $as_nop 8504 enable_shared=yes 8505fi 8506 8507 8508 8509 8510 8511 8512 8513 8514 8515 # Check whether --enable-static was given. 8516if test ${enable_static+y} 8517then : 8518 enableval=$enable_static; p=${PACKAGE-default} 8519 case $enableval in 8520 yes) enable_static=yes ;; 8521 no) enable_static=no ;; 8522 *) 8523 enable_static=no 8524 # Look at the argument we got. We use all the common list separators. 8525 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8526 for pkg in $enableval; do 8527 IFS=$lt_save_ifs 8528 if test "X$pkg" = "X$p"; then 8529 enable_static=yes 8530 fi 8531 done 8532 IFS=$lt_save_ifs 8533 ;; 8534 esac 8535else $as_nop 8536 enable_static=yes 8537fi 8538 8539 8540 8541 8542 8543 8544 8545 8546 8547 8548# Check whether --with-pic was given. 8549if test ${with_pic+y} 8550then : 8551 withval=$with_pic; lt_p=${PACKAGE-default} 8552 case $withval in 8553 yes|no) pic_mode=$withval ;; 8554 *) 8555 pic_mode=default 8556 # Look at the argument we got. We use all the common list separators. 8557 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8558 for lt_pkg in $withval; do 8559 IFS=$lt_save_ifs 8560 if test "X$lt_pkg" = "X$lt_p"; then 8561 pic_mode=yes 8562 fi 8563 done 8564 IFS=$lt_save_ifs 8565 ;; 8566 esac 8567else $as_nop 8568 pic_mode=default 8569fi 8570 8571 8572 8573 8574 8575 8576 8577 8578 # Check whether --enable-fast-install was given. 8579if test ${enable_fast_install+y} 8580then : 8581 enableval=$enable_fast_install; p=${PACKAGE-default} 8582 case $enableval in 8583 yes) enable_fast_install=yes ;; 8584 no) enable_fast_install=no ;; 8585 *) 8586 enable_fast_install=no 8587 # Look at the argument we got. We use all the common list separators. 8588 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8589 for pkg in $enableval; do 8590 IFS=$lt_save_ifs 8591 if test "X$pkg" = "X$p"; then 8592 enable_fast_install=yes 8593 fi 8594 done 8595 IFS=$lt_save_ifs 8596 ;; 8597 esac 8598else $as_nop 8599 enable_fast_install=yes 8600fi 8601 8602 8603 8604 8605 8606 8607 8608 8609 shared_archive_member_spec= 8610case $host,$enable_shared in 8611power*-*-aix[5-9]*,yes) 8612 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 8613printf %s "checking which variant of shared library versioning to provide... " >&6; } 8614 8615# Check whether --with-aix-soname was given. 8616if test ${with_aix_soname+y} 8617then : 8618 withval=$with_aix_soname; case $withval in 8619 aix|svr4|both) 8620 ;; 8621 *) 8622 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5 8623 ;; 8624 esac 8625 lt_cv_with_aix_soname=$with_aix_soname 8626else $as_nop 8627 if test ${lt_cv_with_aix_soname+y} 8628then : 8629 printf %s "(cached) " >&6 8630else $as_nop 8631 lt_cv_with_aix_soname=aix 8632fi 8633 8634 with_aix_soname=$lt_cv_with_aix_soname 8635fi 8636 8637 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 8638printf "%s\n" "$with_aix_soname" >&6; } 8639 if test aix != "$with_aix_soname"; then 8640 # For the AIX way of multilib, we name the shared archive member 8641 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', 8642 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. 8643 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, 8644 # the AIX toolchain works better with OBJECT_MODE set (default 32). 8645 if test 64 = "${OBJECT_MODE-32}"; then 8646 shared_archive_member_spec=shr_64 8647 else 8648 shared_archive_member_spec=shr 8649 fi 8650 fi 8651 ;; 8652*) 8653 with_aix_soname=aix 8654 ;; 8655esac 8656 8657 8658 8659 8660 8661 8662 8663 8664 8665 8666# This can be used to rebuild libtool when needed 8667LIBTOOL_DEPS=$ltmain 8668 8669# Always use our own libtool. 8670LIBTOOL='$(SHELL) $(top_builddir)/libtool' 8671 8672 8673 8674 8675 8676 8677 8678 8679 8680 8681 8682 8683 8684 8685 8686 8687 8688 8689 8690 8691 8692 8693 8694 8695 8696 8697 8698 8699 8700 8701test -z "$LN_S" && LN_S="ln -s" 8702 8703 8704 8705 8706 8707 8708 8709 8710 8711 8712 8713 8714 8715 8716if test -n "${ZSH_VERSION+set}"; then 8717 setopt NO_GLOB_SUBST 8718fi 8719 8720{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 8721printf %s "checking for objdir... " >&6; } 8722if test ${lt_cv_objdir+y} 8723then : 8724 printf %s "(cached) " >&6 8725else $as_nop 8726 rm -f .libs 2>/dev/null 8727mkdir .libs 2>/dev/null 8728if test -d .libs; then 8729 lt_cv_objdir=.libs 8730else 8731 # MS-DOS does not allow filenames that begin with a dot. 8732 lt_cv_objdir=_libs 8733fi 8734rmdir .libs 2>/dev/null 8735fi 8736{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 8737printf "%s\n" "$lt_cv_objdir" >&6; } 8738objdir=$lt_cv_objdir 8739 8740 8741 8742 8743 8744printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h 8745 8746 8747 8748 8749case $host_os in 8750aix3*) 8751 # AIX sometimes has problems with the GCC collect2 program. For some 8752 # reason, if we set the COLLECT_NAMES environment variable, the problems 8753 # vanish in a puff of smoke. 8754 if test set != "${COLLECT_NAMES+set}"; then 8755 COLLECT_NAMES= 8756 export COLLECT_NAMES 8757 fi 8758 ;; 8759esac 8760 8761# Global variables: 8762ofile=libtool 8763can_build_shared=yes 8764 8765# All known linkers require a '.a' archive for static linking (except MSVC and 8766# ICC, which need '.lib'). 8767libext=a 8768 8769with_gnu_ld=$lt_cv_prog_gnu_ld 8770 8771old_CC=$CC 8772old_CFLAGS=$CFLAGS 8773 8774# Set sane defaults for various variables 8775test -z "$CC" && CC=cc 8776test -z "$LTCC" && LTCC=$CC 8777test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 8778test -z "$LD" && LD=ld 8779test -z "$ac_objext" && ac_objext=o 8780 8781func_cc_basename $compiler 8782cc_basename=$func_cc_basename_result 8783 8784 8785# Only perform the check for file, if the check method requires it 8786test -z "$MAGIC_CMD" && MAGIC_CMD=file 8787case $deplibs_check_method in 8788file_magic*) 8789 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 8790 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 8791printf %s "checking for ${ac_tool_prefix}file... " >&6; } 8792if test ${lt_cv_path_MAGIC_CMD+y} 8793then : 8794 printf %s "(cached) " >&6 8795else $as_nop 8796 case $MAGIC_CMD in 8797[\\/*] | ?:[\\/]*) 8798 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 8799 ;; 8800*) 8801 lt_save_MAGIC_CMD=$MAGIC_CMD 8802 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 8803 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8804 for ac_dir in $ac_dummy; do 8805 IFS=$lt_save_ifs 8806 test -z "$ac_dir" && ac_dir=. 8807 if test -f "$ac_dir/${ac_tool_prefix}file"; then 8808 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file" 8809 if test -n "$file_magic_test_file"; then 8810 case $deplibs_check_method in 8811 "file_magic "*) 8812 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8813 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8814 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8815 $EGREP "$file_magic_regex" > /dev/null; then 8816 : 8817 else 8818 cat <<_LT_EOF 1>&2 8819 8820*** Warning: the command libtool uses to detect shared libraries, 8821*** $file_magic_cmd, produces output that libtool cannot recognize. 8822*** The result is that libtool may fail to recognize shared libraries 8823*** as such. This will affect the creation of libtool libraries that 8824*** depend on shared libraries, but programs linked with such libtool 8825*** libraries will work regardless of this problem. Nevertheless, you 8826*** may want to report the problem to your system manager and/or to 8827*** bug-libtool@gnu.org 8828 8829_LT_EOF 8830 fi ;; 8831 esac 8832 fi 8833 break 8834 fi 8835 done 8836 IFS=$lt_save_ifs 8837 MAGIC_CMD=$lt_save_MAGIC_CMD 8838 ;; 8839esac 8840fi 8841 8842MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8843if test -n "$MAGIC_CMD"; then 8844 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8845printf "%s\n" "$MAGIC_CMD" >&6; } 8846else 8847 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8848printf "%s\n" "no" >&6; } 8849fi 8850 8851 8852 8853 8854 8855if test -z "$lt_cv_path_MAGIC_CMD"; then 8856 if test -n "$ac_tool_prefix"; then 8857 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5 8858printf %s "checking for file... " >&6; } 8859if test ${lt_cv_path_MAGIC_CMD+y} 8860then : 8861 printf %s "(cached) " >&6 8862else $as_nop 8863 case $MAGIC_CMD in 8864[\\/*] | ?:[\\/]*) 8865 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 8866 ;; 8867*) 8868 lt_save_MAGIC_CMD=$MAGIC_CMD 8869 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 8870 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8871 for ac_dir in $ac_dummy; do 8872 IFS=$lt_save_ifs 8873 test -z "$ac_dir" && ac_dir=. 8874 if test -f "$ac_dir/file"; then 8875 lt_cv_path_MAGIC_CMD=$ac_dir/"file" 8876 if test -n "$file_magic_test_file"; then 8877 case $deplibs_check_method in 8878 "file_magic "*) 8879 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8880 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8881 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8882 $EGREP "$file_magic_regex" > /dev/null; then 8883 : 8884 else 8885 cat <<_LT_EOF 1>&2 8886 8887*** Warning: the command libtool uses to detect shared libraries, 8888*** $file_magic_cmd, produces output that libtool cannot recognize. 8889*** The result is that libtool may fail to recognize shared libraries 8890*** as such. This will affect the creation of libtool libraries that 8891*** depend on shared libraries, but programs linked with such libtool 8892*** libraries will work regardless of this problem. Nevertheless, you 8893*** may want to report the problem to your system manager and/or to 8894*** bug-libtool@gnu.org 8895 8896_LT_EOF 8897 fi ;; 8898 esac 8899 fi 8900 break 8901 fi 8902 done 8903 IFS=$lt_save_ifs 8904 MAGIC_CMD=$lt_save_MAGIC_CMD 8905 ;; 8906esac 8907fi 8908 8909MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8910if test -n "$MAGIC_CMD"; then 8911 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8912printf "%s\n" "$MAGIC_CMD" >&6; } 8913else 8914 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8915printf "%s\n" "no" >&6; } 8916fi 8917 8918 8919 else 8920 MAGIC_CMD=: 8921 fi 8922fi 8923 8924 fi 8925 ;; 8926esac 8927 8928# Use C for the default configuration in the libtool script 8929 8930lt_save_CC=$CC 8931ac_ext=c 8932ac_cpp='$CPP $CPPFLAGS' 8933ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8934ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8935ac_compiler_gnu=$ac_cv_c_compiler_gnu 8936 8937 8938# Source file extension for C test sources. 8939ac_ext=c 8940 8941# Object file extension for compiled C test sources. 8942objext=o 8943objext=$objext 8944 8945# Code to be used in simple compile tests 8946lt_simple_compile_test_code="int some_variable = 0;" 8947 8948# Code to be used in simple link tests 8949lt_simple_link_test_code='int main(){return(0);}' 8950 8951 8952 8953 8954 8955 8956 8957# If no C compiler was specified, use CC. 8958LTCC=${LTCC-"$CC"} 8959 8960# If no C compiler flags were specified, use CFLAGS. 8961LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 8962 8963# Allow CC to be a program name with arguments. 8964compiler=$CC 8965 8966# Save the default compiler, since it gets overwritten when the other 8967# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 8968compiler_DEFAULT=$CC 8969 8970# save warnings/boilerplate of simple test code 8971ac_outfile=conftest.$ac_objext 8972echo "$lt_simple_compile_test_code" >conftest.$ac_ext 8973eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8974_lt_compiler_boilerplate=`cat conftest.err` 8975$RM conftest* 8976 8977ac_outfile=conftest.$ac_objext 8978echo "$lt_simple_link_test_code" >conftest.$ac_ext 8979eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8980_lt_linker_boilerplate=`cat conftest.err` 8981$RM -r conftest* 8982 8983 8984## CAVEAT EMPTOR: 8985## There is no encapsulation within the following macros, do not change 8986## the running order or otherwise move them around unless you know exactly 8987## what you are doing... 8988if test -n "$compiler"; then 8989 8990lt_prog_compiler_no_builtin_flag= 8991 8992if test yes = "$GCC"; then 8993 case $cc_basename in 8994 nvcc*) 8995 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 8996 *) 8997 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 8998 esac 8999 9000 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 9001printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 9002if test ${lt_cv_prog_compiler_rtti_exceptions+y} 9003then : 9004 printf %s "(cached) " >&6 9005else $as_nop 9006 lt_cv_prog_compiler_rtti_exceptions=no 9007 ac_outfile=conftest.$ac_objext 9008 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9009 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment 9010 # Insert the option either (1) after the last *FLAGS variable, or 9011 # (2) before a word containing "conftest.", or (3) at the end. 9012 # Note that $ac_compile itself does not contain backslashes and begins 9013 # with a dollar sign (not a hyphen), so the echo should work correctly. 9014 # The option is referenced via a variable to avoid confusing sed. 9015 lt_compile=`echo "$ac_compile" | $SED \ 9016 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9017 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9018 -e 's:$: $lt_compiler_flag:'` 9019 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9020 (eval "$lt_compile" 2>conftest.err) 9021 ac_status=$? 9022 cat conftest.err >&5 9023 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9024 if (exit $ac_status) && test -s "$ac_outfile"; then 9025 # The compiler can only warn and ignore the option if not recognized 9026 # So say no if there are warnings other than the usual output. 9027 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 9028 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9029 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 9030 lt_cv_prog_compiler_rtti_exceptions=yes 9031 fi 9032 fi 9033 $RM conftest* 9034 9035fi 9036{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 9037printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 9038 9039if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then 9040 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 9041else 9042 : 9043fi 9044 9045fi 9046 9047 9048 9049 9050 9051 9052 lt_prog_compiler_wl= 9053lt_prog_compiler_pic= 9054lt_prog_compiler_static= 9055 9056 9057 if test yes = "$GCC"; then 9058 lt_prog_compiler_wl='-Wl,' 9059 lt_prog_compiler_static='-static' 9060 9061 case $host_os in 9062 aix*) 9063 # All AIX code is PIC. 9064 if test ia64 = "$host_cpu"; then 9065 # AIX 5 now supports IA64 processor 9066 lt_prog_compiler_static='-Bstatic' 9067 fi 9068 lt_prog_compiler_pic='-fPIC' 9069 ;; 9070 9071 amigaos*) 9072 case $host_cpu in 9073 powerpc) 9074 # see comment about AmigaOS4 .so support 9075 lt_prog_compiler_pic='-fPIC' 9076 ;; 9077 m68k) 9078 # FIXME: we need at least 68020 code to build shared libraries, but 9079 # adding the '-m68020' flag to GCC prevents building anything better, 9080 # like '-m68040'. 9081 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 9082 ;; 9083 esac 9084 ;; 9085 9086 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 9087 # PIC is the default for these OSes. 9088 ;; 9089 9090 mingw* | cygwin* | pw32* | os2* | cegcc*) 9091 # This hack is so that the source file can tell whether it is being 9092 # built for inclusion in a dll (and should export symbols for example). 9093 # Although the cygwin gcc ignores -fPIC, still need this for old-style 9094 # (--disable-auto-import) libraries 9095 lt_prog_compiler_pic='-DDLL_EXPORT' 9096 case $host_os in 9097 os2*) 9098 lt_prog_compiler_static='$wl-static' 9099 ;; 9100 esac 9101 ;; 9102 9103 darwin* | rhapsody*) 9104 # PIC is the default on this platform 9105 # Common symbols not allowed in MH_DYLIB files 9106 lt_prog_compiler_pic='-fno-common' 9107 ;; 9108 9109 haiku*) 9110 # PIC is the default for Haiku. 9111 # The "-static" flag exists, but is broken. 9112 lt_prog_compiler_static= 9113 ;; 9114 9115 hpux*) 9116 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 9117 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 9118 # sets the default TLS model and affects inlining. 9119 case $host_cpu in 9120 hppa*64*) 9121 # +Z the default 9122 ;; 9123 *) 9124 lt_prog_compiler_pic='-fPIC' 9125 ;; 9126 esac 9127 ;; 9128 9129 interix[3-9]*) 9130 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 9131 # Instead, we relocate shared libraries at runtime. 9132 ;; 9133 9134 msdosdjgpp*) 9135 # Just because we use GCC doesn't mean we suddenly get shared libraries 9136 # on systems that don't support them. 9137 lt_prog_compiler_can_build_shared=no 9138 enable_shared=no 9139 ;; 9140 9141 *nto* | *qnx*) 9142 # QNX uses GNU C++, but need to define -shared option too, otherwise 9143 # it will coredump. 9144 lt_prog_compiler_pic='-fPIC -shared' 9145 ;; 9146 9147 sysv4*MP*) 9148 if test -d /usr/nec; then 9149 lt_prog_compiler_pic=-Kconform_pic 9150 fi 9151 ;; 9152 9153 *) 9154 lt_prog_compiler_pic='-fPIC' 9155 ;; 9156 esac 9157 9158 case $cc_basename in 9159 nvcc*) # Cuda Compiler Driver 2.2 9160 lt_prog_compiler_wl='-Xlinker ' 9161 if test -n "$lt_prog_compiler_pic"; then 9162 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 9163 fi 9164 ;; 9165 esac 9166 else 9167 # PORTME Check for flag to pass linker flags through the system compiler. 9168 case $host_os in 9169 aix*) 9170 lt_prog_compiler_wl='-Wl,' 9171 if test ia64 = "$host_cpu"; then 9172 # AIX 5 now supports IA64 processor 9173 lt_prog_compiler_static='-Bstatic' 9174 else 9175 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 9176 fi 9177 ;; 9178 9179 darwin* | rhapsody*) 9180 # PIC is the default on this platform 9181 # Common symbols not allowed in MH_DYLIB files 9182 lt_prog_compiler_pic='-fno-common' 9183 case $cc_basename in 9184 nagfor*) 9185 # NAG Fortran compiler 9186 lt_prog_compiler_wl='-Wl,-Wl,,' 9187 lt_prog_compiler_pic='-PIC' 9188 lt_prog_compiler_static='-Bstatic' 9189 ;; 9190 esac 9191 ;; 9192 9193 mingw* | cygwin* | pw32* | os2* | cegcc*) 9194 # This hack is so that the source file can tell whether it is being 9195 # built for inclusion in a dll (and should export symbols for example). 9196 lt_prog_compiler_pic='-DDLL_EXPORT' 9197 case $host_os in 9198 os2*) 9199 lt_prog_compiler_static='$wl-static' 9200 ;; 9201 esac 9202 ;; 9203 9204 hpux9* | hpux10* | hpux11*) 9205 lt_prog_compiler_wl='-Wl,' 9206 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 9207 # not for PA HP-UX. 9208 case $host_cpu in 9209 hppa*64*|ia64*) 9210 # +Z the default 9211 ;; 9212 *) 9213 lt_prog_compiler_pic='+Z' 9214 ;; 9215 esac 9216 # Is there a better lt_prog_compiler_static that works with the bundled CC? 9217 lt_prog_compiler_static='$wl-a ${wl}archive' 9218 ;; 9219 9220 irix5* | irix6* | nonstopux*) 9221 lt_prog_compiler_wl='-Wl,' 9222 # PIC (with -KPIC) is the default. 9223 lt_prog_compiler_static='-non_shared' 9224 ;; 9225 9226 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 9227 case $cc_basename in 9228 # old Intel for x86_64, which still supported -KPIC. 9229 ecc*) 9230 lt_prog_compiler_wl='-Wl,' 9231 lt_prog_compiler_pic='-KPIC' 9232 lt_prog_compiler_static='-static' 9233 ;; 9234 # icc used to be incompatible with GCC. 9235 # ICC 10 doesn't accept -KPIC any more. 9236 icc* | ifort*) 9237 lt_prog_compiler_wl='-Wl,' 9238 lt_prog_compiler_pic='-fPIC' 9239 lt_prog_compiler_static='-static' 9240 ;; 9241 # Lahey Fortran 8.1. 9242 lf95*) 9243 lt_prog_compiler_wl='-Wl,' 9244 lt_prog_compiler_pic='--shared' 9245 lt_prog_compiler_static='--static' 9246 ;; 9247 nagfor*) 9248 # NAG Fortran compiler 9249 lt_prog_compiler_wl='-Wl,-Wl,,' 9250 lt_prog_compiler_pic='-PIC' 9251 lt_prog_compiler_static='-Bstatic' 9252 ;; 9253 tcc*) 9254 # Fabrice Bellard et al's Tiny C Compiler 9255 lt_prog_compiler_wl='-Wl,' 9256 lt_prog_compiler_pic='-fPIC' 9257 lt_prog_compiler_static='-static' 9258 ;; 9259 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 9260 # Portland Group compilers (*not* the Pentium gcc compiler, 9261 # which looks to be a dead project) 9262 lt_prog_compiler_wl='-Wl,' 9263 lt_prog_compiler_pic='-fpic' 9264 lt_prog_compiler_static='-Bstatic' 9265 ;; 9266 ccc*) 9267 lt_prog_compiler_wl='-Wl,' 9268 # All Alpha code is PIC. 9269 lt_prog_compiler_static='-non_shared' 9270 ;; 9271 xl* | bgxl* | bgf* | mpixl*) 9272 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 9273 lt_prog_compiler_wl='-Wl,' 9274 lt_prog_compiler_pic='-qpic' 9275 lt_prog_compiler_static='-qstaticlink' 9276 ;; 9277 *) 9278 case `$CC -V 2>&1 | $SED 5q` in 9279 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 9280 # Sun Fortran 8.3 passes all unrecognized flags to the linker 9281 lt_prog_compiler_pic='-KPIC' 9282 lt_prog_compiler_static='-Bstatic' 9283 lt_prog_compiler_wl='' 9284 ;; 9285 *Sun\ F* | *Sun*Fortran*) 9286 lt_prog_compiler_pic='-KPIC' 9287 lt_prog_compiler_static='-Bstatic' 9288 lt_prog_compiler_wl='-Qoption ld ' 9289 ;; 9290 *Sun\ C*) 9291 # Sun C 5.9 9292 lt_prog_compiler_pic='-KPIC' 9293 lt_prog_compiler_static='-Bstatic' 9294 lt_prog_compiler_wl='-Wl,' 9295 ;; 9296 *Intel*\ [CF]*Compiler*) 9297 lt_prog_compiler_wl='-Wl,' 9298 lt_prog_compiler_pic='-fPIC' 9299 lt_prog_compiler_static='-static' 9300 ;; 9301 *Portland\ Group*) 9302 lt_prog_compiler_wl='-Wl,' 9303 lt_prog_compiler_pic='-fpic' 9304 lt_prog_compiler_static='-Bstatic' 9305 ;; 9306 esac 9307 ;; 9308 esac 9309 ;; 9310 9311 newsos6) 9312 lt_prog_compiler_pic='-KPIC' 9313 lt_prog_compiler_static='-Bstatic' 9314 ;; 9315 9316 *nto* | *qnx*) 9317 # QNX uses GNU C++, but need to define -shared option too, otherwise 9318 # it will coredump. 9319 lt_prog_compiler_pic='-fPIC -shared' 9320 ;; 9321 9322 osf3* | osf4* | osf5*) 9323 lt_prog_compiler_wl='-Wl,' 9324 # All OSF/1 code is PIC. 9325 lt_prog_compiler_static='-non_shared' 9326 ;; 9327 9328 rdos*) 9329 lt_prog_compiler_static='-non_shared' 9330 ;; 9331 9332 solaris*) 9333 lt_prog_compiler_pic='-KPIC' 9334 lt_prog_compiler_static='-Bstatic' 9335 case $cc_basename in 9336 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 9337 lt_prog_compiler_wl='-Qoption ld ';; 9338 *) 9339 lt_prog_compiler_wl='-Wl,';; 9340 esac 9341 ;; 9342 9343 sunos4*) 9344 lt_prog_compiler_wl='-Qoption ld ' 9345 lt_prog_compiler_pic='-PIC' 9346 lt_prog_compiler_static='-Bstatic' 9347 ;; 9348 9349 sysv4 | sysv4.2uw2* | sysv4.3*) 9350 lt_prog_compiler_wl='-Wl,' 9351 lt_prog_compiler_pic='-KPIC' 9352 lt_prog_compiler_static='-Bstatic' 9353 ;; 9354 9355 sysv4*MP*) 9356 if test -d /usr/nec; then 9357 lt_prog_compiler_pic='-Kconform_pic' 9358 lt_prog_compiler_static='-Bstatic' 9359 fi 9360 ;; 9361 9362 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 9363 lt_prog_compiler_wl='-Wl,' 9364 lt_prog_compiler_pic='-KPIC' 9365 lt_prog_compiler_static='-Bstatic' 9366 ;; 9367 9368 unicos*) 9369 lt_prog_compiler_wl='-Wl,' 9370 lt_prog_compiler_can_build_shared=no 9371 ;; 9372 9373 uts4*) 9374 lt_prog_compiler_pic='-pic' 9375 lt_prog_compiler_static='-Bstatic' 9376 ;; 9377 9378 *) 9379 lt_prog_compiler_can_build_shared=no 9380 ;; 9381 esac 9382 fi 9383 9384case $host_os in 9385 # For platforms that do not support PIC, -DPIC is meaningless: 9386 *djgpp*) 9387 lt_prog_compiler_pic= 9388 ;; 9389 *) 9390 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 9391 ;; 9392esac 9393 9394{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 9395printf %s "checking for $compiler option to produce PIC... " >&6; } 9396if test ${lt_cv_prog_compiler_pic+y} 9397then : 9398 printf %s "(cached) " >&6 9399else $as_nop 9400 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 9401fi 9402{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 9403printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; } 9404lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 9405 9406# 9407# Check to make sure the PIC flag actually works. 9408# 9409if test -n "$lt_prog_compiler_pic"; then 9410 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 9411printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 9412if test ${lt_cv_prog_compiler_pic_works+y} 9413then : 9414 printf %s "(cached) " >&6 9415else $as_nop 9416 lt_cv_prog_compiler_pic_works=no 9417 ac_outfile=conftest.$ac_objext 9418 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9419 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment 9420 # Insert the option either (1) after the last *FLAGS variable, or 9421 # (2) before a word containing "conftest.", or (3) at the end. 9422 # Note that $ac_compile itself does not contain backslashes and begins 9423 # with a dollar sign (not a hyphen), so the echo should work correctly. 9424 # The option is referenced via a variable to avoid confusing sed. 9425 lt_compile=`echo "$ac_compile" | $SED \ 9426 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9427 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9428 -e 's:$: $lt_compiler_flag:'` 9429 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9430 (eval "$lt_compile" 2>conftest.err) 9431 ac_status=$? 9432 cat conftest.err >&5 9433 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9434 if (exit $ac_status) && test -s "$ac_outfile"; then 9435 # The compiler can only warn and ignore the option if not recognized 9436 # So say no if there are warnings other than the usual output. 9437 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 9438 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9439 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 9440 lt_cv_prog_compiler_pic_works=yes 9441 fi 9442 fi 9443 $RM conftest* 9444 9445fi 9446{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 9447printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; } 9448 9449if test yes = "$lt_cv_prog_compiler_pic_works"; then 9450 case $lt_prog_compiler_pic in 9451 "" | " "*) ;; 9452 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 9453 esac 9454else 9455 lt_prog_compiler_pic= 9456 lt_prog_compiler_can_build_shared=no 9457fi 9458 9459fi 9460 9461 9462 9463 9464 9465 9466 9467 9468 9469 9470 9471# 9472# Check to make sure the static flag actually works. 9473# 9474wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 9475{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 9476printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 9477if test ${lt_cv_prog_compiler_static_works+y} 9478then : 9479 printf %s "(cached) " >&6 9480else $as_nop 9481 lt_cv_prog_compiler_static_works=no 9482 save_LDFLAGS=$LDFLAGS 9483 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 9484 echo "$lt_simple_link_test_code" > conftest.$ac_ext 9485 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 9486 # The linker can only warn and ignore the option if not recognized 9487 # So say no if there are warnings 9488 if test -s conftest.err; then 9489 # Append any errors to the config.log. 9490 cat conftest.err 1>&5 9491 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 9492 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9493 if diff conftest.exp conftest.er2 >/dev/null; then 9494 lt_cv_prog_compiler_static_works=yes 9495 fi 9496 else 9497 lt_cv_prog_compiler_static_works=yes 9498 fi 9499 fi 9500 $RM -r conftest* 9501 LDFLAGS=$save_LDFLAGS 9502 9503fi 9504{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 9505printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; } 9506 9507if test yes = "$lt_cv_prog_compiler_static_works"; then 9508 : 9509else 9510 lt_prog_compiler_static= 9511fi 9512 9513 9514 9515 9516 9517 9518 9519 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 9520printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 9521if test ${lt_cv_prog_compiler_c_o+y} 9522then : 9523 printf %s "(cached) " >&6 9524else $as_nop 9525 lt_cv_prog_compiler_c_o=no 9526 $RM -r conftest 2>/dev/null 9527 mkdir conftest 9528 cd conftest 9529 mkdir out 9530 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9531 9532 lt_compiler_flag="-o out/conftest2.$ac_objext" 9533 # Insert the option either (1) after the last *FLAGS variable, or 9534 # (2) before a word containing "conftest.", or (3) at the end. 9535 # Note that $ac_compile itself does not contain backslashes and begins 9536 # with a dollar sign (not a hyphen), so the echo should work correctly. 9537 lt_compile=`echo "$ac_compile" | $SED \ 9538 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9539 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9540 -e 's:$: $lt_compiler_flag:'` 9541 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9542 (eval "$lt_compile" 2>out/conftest.err) 9543 ac_status=$? 9544 cat out/conftest.err >&5 9545 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9546 if (exit $ac_status) && test -s out/conftest2.$ac_objext 9547 then 9548 # The compiler can only warn and ignore the option if not recognized 9549 # So say no if there are warnings 9550 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 9551 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 9552 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 9553 lt_cv_prog_compiler_c_o=yes 9554 fi 9555 fi 9556 chmod u+w . 2>&5 9557 $RM conftest* 9558 # SGI C++ compiler will create directory out/ii_files/ for 9559 # template instantiation 9560 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 9561 $RM out/* && rmdir out 9562 cd .. 9563 $RM -r conftest 9564 $RM conftest* 9565 9566fi 9567{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 9568printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; } 9569 9570 9571 9572 9573 9574 9575 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 9576printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 9577if test ${lt_cv_prog_compiler_c_o+y} 9578then : 9579 printf %s "(cached) " >&6 9580else $as_nop 9581 lt_cv_prog_compiler_c_o=no 9582 $RM -r conftest 2>/dev/null 9583 mkdir conftest 9584 cd conftest 9585 mkdir out 9586 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9587 9588 lt_compiler_flag="-o out/conftest2.$ac_objext" 9589 # Insert the option either (1) after the last *FLAGS variable, or 9590 # (2) before a word containing "conftest.", or (3) at the end. 9591 # Note that $ac_compile itself does not contain backslashes and begins 9592 # with a dollar sign (not a hyphen), so the echo should work correctly. 9593 lt_compile=`echo "$ac_compile" | $SED \ 9594 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9595 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9596 -e 's:$: $lt_compiler_flag:'` 9597 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9598 (eval "$lt_compile" 2>out/conftest.err) 9599 ac_status=$? 9600 cat out/conftest.err >&5 9601 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9602 if (exit $ac_status) && test -s out/conftest2.$ac_objext 9603 then 9604 # The compiler can only warn and ignore the option if not recognized 9605 # So say no if there are warnings 9606 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 9607 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 9608 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 9609 lt_cv_prog_compiler_c_o=yes 9610 fi 9611 fi 9612 chmod u+w . 2>&5 9613 $RM conftest* 9614 # SGI C++ compiler will create directory out/ii_files/ for 9615 # template instantiation 9616 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 9617 $RM out/* && rmdir out 9618 cd .. 9619 $RM -r conftest 9620 $RM conftest* 9621 9622fi 9623{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 9624printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; } 9625 9626 9627 9628 9629hard_links=nottested 9630if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then 9631 # do not overwrite the value of need_locks provided by the user 9632 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 9633printf %s "checking if we can lock with hard links... " >&6; } 9634 hard_links=yes 9635 $RM conftest* 9636 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9637 touch conftest.a 9638 ln conftest.a conftest.b 2>&5 || hard_links=no 9639 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9640 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 9641printf "%s\n" "$hard_links" >&6; } 9642 if test no = "$hard_links"; then 9643 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 9644printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 9645 need_locks=warn 9646 fi 9647else 9648 need_locks=no 9649fi 9650 9651 9652 9653 9654 9655 9656 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 9657printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 9658 9659 runpath_var= 9660 allow_undefined_flag= 9661 always_export_symbols=no 9662 archive_cmds= 9663 archive_expsym_cmds= 9664 compiler_needs_object=no 9665 enable_shared_with_static_runtimes=no 9666 export_dynamic_flag_spec= 9667 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 9668 hardcode_automatic=no 9669 hardcode_direct=no 9670 hardcode_direct_absolute=no 9671 hardcode_libdir_flag_spec= 9672 hardcode_libdir_separator= 9673 hardcode_minus_L=no 9674 hardcode_shlibpath_var=unsupported 9675 inherit_rpath=no 9676 link_all_deplibs=unknown 9677 module_cmds= 9678 module_expsym_cmds= 9679 old_archive_from_new_cmds= 9680 old_archive_from_expsyms_cmds= 9681 thread_safe_flag_spec= 9682 whole_archive_flag_spec= 9683 # include_expsyms should be a list of space-separated symbols to be *always* 9684 # included in the symbol list 9685 include_expsyms= 9686 # exclude_expsyms can be an extended regexp of symbols to exclude 9687 # it will be wrapped by ' (' and ')$', so one must not match beginning or 9688 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', 9689 # as well as any symbol that contains 'd'. 9690 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 9691 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 9692 # platforms (ab)use it in PIC code, but their linkers get confused if 9693 # the symbol is explicitly referenced. Since portable code cannot 9694 # rely on this symbol name, it's probably fine to never include it in 9695 # preloaded symbol tables. 9696 # Exclude shared library initialization/finalization symbols. 9697 extract_expsyms_cmds= 9698 9699 case $host_os in 9700 cygwin* | mingw* | pw32* | cegcc*) 9701 # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time 9702 # When not using gcc, we currently assume that we are using 9703 # Microsoft Visual C++ or Intel C++ Compiler. 9704 if test yes != "$GCC"; then 9705 with_gnu_ld=no 9706 fi 9707 ;; 9708 interix*) 9709 # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC) 9710 with_gnu_ld=yes 9711 ;; 9712 openbsd* | bitrig*) 9713 with_gnu_ld=no 9714 ;; 9715 esac 9716 9717 ld_shlibs=yes 9718 9719 # On some targets, GNU ld is compatible enough with the native linker 9720 # that we're better off using the native interface for both. 9721 lt_use_gnu_ld_interface=no 9722 if test yes = "$with_gnu_ld"; then 9723 case $host_os in 9724 aix*) 9725 # The AIX port of GNU ld has always aspired to compatibility 9726 # with the native linker. However, as the warning in the GNU ld 9727 # block says, versions before 2.19.5* couldn't really create working 9728 # shared libraries, regardless of the interface used. 9729 case `$LD -v 2>&1` in 9730 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 9731 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 9732 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 9733 *) 9734 lt_use_gnu_ld_interface=yes 9735 ;; 9736 esac 9737 ;; 9738 *) 9739 lt_use_gnu_ld_interface=yes 9740 ;; 9741 esac 9742 fi 9743 9744 if test yes = "$lt_use_gnu_ld_interface"; then 9745 # If archive_cmds runs LD, not CC, wlarc should be empty 9746 wlarc='$wl' 9747 9748 # Set some defaults for GNU ld with shared library support. These 9749 # are reset later if shared libraries are not supported. Putting them 9750 # here allows them to be overridden if necessary. 9751 runpath_var=LD_RUN_PATH 9752 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9753 export_dynamic_flag_spec='$wl--export-dynamic' 9754 # ancient GNU ld didn't support --whole-archive et. al. 9755 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 9756 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 9757 else 9758 whole_archive_flag_spec= 9759 fi 9760 supports_anon_versioning=no 9761 case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in 9762 *GNU\ gold*) supports_anon_versioning=yes ;; 9763 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 9764 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 9765 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 9766 *\ 2.11.*) ;; # other 2.11 versions 9767 *) supports_anon_versioning=yes ;; 9768 esac 9769 9770 # See if GNU ld supports shared libraries. 9771 case $host_os in 9772 aix[3-9]*) 9773 # On AIX/PPC, the GNU linker is very broken 9774 if test ia64 != "$host_cpu"; then 9775 ld_shlibs=no 9776 cat <<_LT_EOF 1>&2 9777 9778*** Warning: the GNU linker, at least up to release 2.19, is reported 9779*** to be unable to reliably create shared libraries on AIX. 9780*** Therefore, libtool is disabling shared libraries support. If you 9781*** really care for shared libraries, you may want to install binutils 9782*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 9783*** You will then need to restart the configuration process. 9784 9785_LT_EOF 9786 fi 9787 ;; 9788 9789 amigaos*) 9790 case $host_cpu in 9791 powerpc) 9792 # see comment about AmigaOS4 .so support 9793 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9794 archive_expsym_cmds='' 9795 ;; 9796 m68k) 9797 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)' 9798 hardcode_libdir_flag_spec='-L$libdir' 9799 hardcode_minus_L=yes 9800 ;; 9801 esac 9802 ;; 9803 9804 beos*) 9805 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9806 allow_undefined_flag=unsupported 9807 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 9808 # support --undefined. This deserves some investigation. FIXME 9809 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9810 else 9811 ld_shlibs=no 9812 fi 9813 ;; 9814 9815 cygwin* | mingw* | pw32* | cegcc*) 9816 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 9817 # as there is no search path for DLLs. 9818 hardcode_libdir_flag_spec='-L$libdir' 9819 export_dynamic_flag_spec='$wl--export-all-symbols' 9820 allow_undefined_flag=unsupported 9821 always_export_symbols=no 9822 enable_shared_with_static_runtimes=yes 9823 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' 9824 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 9825 9826 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 9827 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9828 # If the export-symbols file already is a .def file, use it as 9829 # is; otherwise, prepend EXPORTS... 9830 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 9831 cp $export_symbols $output_objdir/$soname.def; 9832 else 9833 echo EXPORTS > $output_objdir/$soname.def; 9834 cat $export_symbols >> $output_objdir/$soname.def; 9835 fi~ 9836 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9837 else 9838 ld_shlibs=no 9839 fi 9840 ;; 9841 9842 haiku*) 9843 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9844 link_all_deplibs=yes 9845 ;; 9846 9847 os2*) 9848 hardcode_libdir_flag_spec='-L$libdir' 9849 hardcode_minus_L=yes 9850 allow_undefined_flag=unsupported 9851 shrext_cmds=.dll 9852 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 9853 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 9854 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 9855 $ECHO EXPORTS >> $output_objdir/$libname.def~ 9856 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 9857 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 9858 emximp -o $lib $output_objdir/$libname.def' 9859 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 9860 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 9861 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 9862 $ECHO EXPORTS >> $output_objdir/$libname.def~ 9863 prefix_cmds="$SED"~ 9864 if test EXPORTS = "`$SED 1q $export_symbols`"; then 9865 prefix_cmds="$prefix_cmds -e 1d"; 9866 fi~ 9867 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 9868 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 9869 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 9870 emximp -o $lib $output_objdir/$libname.def' 9871 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 9872 enable_shared_with_static_runtimes=yes 9873 file_list_spec='@' 9874 ;; 9875 9876 interix[3-9]*) 9877 hardcode_direct=no 9878 hardcode_shlibpath_var=no 9879 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 9880 export_dynamic_flag_spec='$wl-E' 9881 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 9882 # Instead, shared libraries are loaded at an image base (0x10000000 by 9883 # default) and relocated if they conflict, which is a slow very memory 9884 # consuming and fragmenting process. To avoid this, we pick a random, 9885 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 9886 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 9887 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 9888 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' 9889 ;; 9890 9891 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 9892 tmp_diet=no 9893 if test linux-dietlibc = "$host_os"; then 9894 case $cc_basename in 9895 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 9896 esac 9897 fi 9898 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 9899 && test no = "$tmp_diet" 9900 then 9901 tmp_addflag=' $pic_flag' 9902 tmp_sharedflag='-shared' 9903 case $cc_basename,$host_cpu in 9904 pgcc*) # Portland Group C compiler 9905 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' 9906 tmp_addflag=' $pic_flag' 9907 ;; 9908 pgf77* | pgf90* | pgf95* | pgfortran*) 9909 # Portland Group f77 and f90 compilers 9910 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' 9911 tmp_addflag=' $pic_flag -Mnomain' ;; 9912 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 9913 tmp_addflag=' -i_dynamic' ;; 9914 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 9915 tmp_addflag=' -i_dynamic -nofor_main' ;; 9916 ifc* | ifort*) # Intel Fortran compiler 9917 tmp_addflag=' -nofor_main' ;; 9918 lf95*) # Lahey Fortran 8.1 9919 whole_archive_flag_spec= 9920 tmp_sharedflag='--shared' ;; 9921 nagfor*) # NAGFOR 5.3 9922 tmp_sharedflag='-Wl,-shared' ;; 9923 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 9924 tmp_sharedflag='-qmkshrobj' 9925 tmp_addflag= ;; 9926 nvcc*) # Cuda Compiler Driver 2.2 9927 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' 9928 compiler_needs_object=yes 9929 ;; 9930 esac 9931 case `$CC -V 2>&1 | $SED 5q` in 9932 *Sun\ C*) # Sun C 5.9 9933 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' 9934 compiler_needs_object=yes 9935 tmp_sharedflag='-G' ;; 9936 *Sun\ F*) # Sun Fortran 8.3 9937 tmp_sharedflag='-G' ;; 9938 esac 9939 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9940 9941 if test yes = "$supports_anon_versioning"; then 9942 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9943 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9944 echo "local: *; };" >> $output_objdir/$libname.ver~ 9945 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 9946 fi 9947 9948 case $cc_basename in 9949 tcc*) 9950 export_dynamic_flag_spec='-rdynamic' 9951 ;; 9952 xlf* | bgf* | bgxlf* | mpixlf*) 9953 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 9954 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 9955 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9956 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 9957 if test yes = "$supports_anon_versioning"; then 9958 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9959 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9960 echo "local: *; };" >> $output_objdir/$libname.ver~ 9961 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 9962 fi 9963 ;; 9964 esac 9965 else 9966 ld_shlibs=no 9967 fi 9968 ;; 9969 9970 netbsd*) 9971 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9972 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 9973 wlarc= 9974 else 9975 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9976 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9977 fi 9978 ;; 9979 9980 solaris*) 9981 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 9982 ld_shlibs=no 9983 cat <<_LT_EOF 1>&2 9984 9985*** Warning: The releases 2.8.* of the GNU linker cannot reliably 9986*** create shared libraries on Solaris systems. Therefore, libtool 9987*** is disabling shared libraries support. We urge you to upgrade GNU 9988*** binutils to release 2.9.1 or newer. Another option is to modify 9989*** your PATH or compiler configuration so that the native linker is 9990*** used, and then restart. 9991 9992_LT_EOF 9993 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9994 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9995 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9996 else 9997 ld_shlibs=no 9998 fi 9999 ;; 10000 10001 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 10002 case `$LD -v 2>&1` in 10003 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 10004 ld_shlibs=no 10005 cat <<_LT_EOF 1>&2 10006 10007*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot 10008*** reliably create shared libraries on SCO systems. Therefore, libtool 10009*** is disabling shared libraries support. We urge you to upgrade GNU 10010*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 10011*** your PATH or compiler configuration so that the native linker is 10012*** used, and then restart. 10013 10014_LT_EOF 10015 ;; 10016 *) 10017 # For security reasons, it is highly recommended that you always 10018 # use absolute paths for naming shared libraries, and exclude the 10019 # DT_RUNPATH tag from executables and libraries. But doing so 10020 # requires that you compile everything twice, which is a pain. 10021 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10022 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10023 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10024 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10025 else 10026 ld_shlibs=no 10027 fi 10028 ;; 10029 esac 10030 ;; 10031 10032 sunos4*) 10033 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 10034 wlarc= 10035 hardcode_direct=yes 10036 hardcode_shlibpath_var=no 10037 ;; 10038 10039 *) 10040 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10041 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10042 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10043 else 10044 ld_shlibs=no 10045 fi 10046 ;; 10047 esac 10048 10049 if test no = "$ld_shlibs"; then 10050 runpath_var= 10051 hardcode_libdir_flag_spec= 10052 export_dynamic_flag_spec= 10053 whole_archive_flag_spec= 10054 fi 10055 else 10056 # PORTME fill in a description of your system's linker (not GNU ld) 10057 case $host_os in 10058 aix3*) 10059 allow_undefined_flag=unsupported 10060 always_export_symbols=yes 10061 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' 10062 # Note: this linker hardcodes the directories in LIBPATH if there 10063 # are no directories specified by -L. 10064 hardcode_minus_L=yes 10065 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then 10066 # Neither direct hardcoding nor static linking is supported with a 10067 # broken collect2. 10068 hardcode_direct=unsupported 10069 fi 10070 ;; 10071 10072 aix[4-9]*) 10073 if test ia64 = "$host_cpu"; then 10074 # On IA64, the linker does run time linking by default, so we don't 10075 # have to do anything special. 10076 aix_use_runtimelinking=no 10077 exp_sym_flag='-Bexport' 10078 no_entry_flag= 10079 else 10080 # If we're using GNU nm, then we don't want the "-C" option. 10081 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 10082 # Without the "-l" option, or with the "-B" option, AIX nm treats 10083 # weak defined symbols like other global defined symbols, whereas 10084 # GNU nm marks them as "W". 10085 # While the 'weak' keyword is ignored in the Export File, we need 10086 # it in the Import File for the 'aix-soname' feature, so we have 10087 # to replace the "-B" option with "-P" for AIX nm. 10088 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 10089 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' 10090 else 10091 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' 10092 fi 10093 aix_use_runtimelinking=no 10094 10095 # Test if we are trying to use run time linking or normal 10096 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 10097 # have runtime linking enabled, and use it for executables. 10098 # For shared libraries, we enable/disable runtime linking 10099 # depending on the kind of the shared library created - 10100 # when "with_aix_soname,aix_use_runtimelinking" is: 10101 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 10102 # "aix,yes" lib.so shared, rtl:yes, for executables 10103 # lib.a static archive 10104 # "both,no" lib.so.V(shr.o) shared, rtl:yes 10105 # lib.a(lib.so.V) shared, rtl:no, for executables 10106 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 10107 # lib.a(lib.so.V) shared, rtl:no 10108 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 10109 # lib.a static archive 10110 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 10111 for ld_flag in $LDFLAGS; do 10112 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then 10113 aix_use_runtimelinking=yes 10114 break 10115 fi 10116 done 10117 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 10118 # With aix-soname=svr4, we create the lib.so.V shared archives only, 10119 # so we don't have lib.a shared libs to link our executables. 10120 # We have to force runtime linking in this case. 10121 aix_use_runtimelinking=yes 10122 LDFLAGS="$LDFLAGS -Wl,-brtl" 10123 fi 10124 ;; 10125 esac 10126 10127 exp_sym_flag='-bexport' 10128 no_entry_flag='-bnoentry' 10129 fi 10130 10131 # When large executables or shared objects are built, AIX ld can 10132 # have problems creating the table of contents. If linking a library 10133 # or program results in "error TOC overflow" add -mminimal-toc to 10134 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 10135 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 10136 10137 archive_cmds='' 10138 hardcode_direct=yes 10139 hardcode_direct_absolute=yes 10140 hardcode_libdir_separator=':' 10141 link_all_deplibs=yes 10142 file_list_spec='$wl-f,' 10143 case $with_aix_soname,$aix_use_runtimelinking in 10144 aix,*) ;; # traditional, no import file 10145 svr4,* | *,yes) # use import file 10146 # The Import File defines what to hardcode. 10147 hardcode_direct=no 10148 hardcode_direct_absolute=no 10149 ;; 10150 esac 10151 10152 if test yes = "$GCC"; then 10153 case $host_os in aix4.[012]|aix4.[012].*) 10154 # We only want to do this on AIX 4.2 and lower, the check 10155 # below for broken collect2 doesn't work under 4.3+ 10156 collect2name=`$CC -print-prog-name=collect2` 10157 if test -f "$collect2name" && 10158 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 10159 then 10160 # We have reworked collect2 10161 : 10162 else 10163 # We have old collect2 10164 hardcode_direct=unsupported 10165 # It fails to find uninstalled libraries when the uninstalled 10166 # path is not listed in the libpath. Setting hardcode_minus_L 10167 # to unsupported forces relinking 10168 hardcode_minus_L=yes 10169 hardcode_libdir_flag_spec='-L$libdir' 10170 hardcode_libdir_separator= 10171 fi 10172 ;; 10173 esac 10174 shared_flag='-shared' 10175 if test yes = "$aix_use_runtimelinking"; then 10176 shared_flag="$shared_flag "'$wl-G' 10177 fi 10178 # Need to ensure runtime linking is disabled for the traditional 10179 # shared library, or the linker may eventually find shared libraries 10180 # /with/ Import File - we do not want to mix them. 10181 shared_flag_aix='-shared' 10182 shared_flag_svr4='-shared $wl-G' 10183 else 10184 # not using gcc 10185 if test ia64 = "$host_cpu"; then 10186 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 10187 # chokes on -Wl,-G. The following line is correct: 10188 shared_flag='-G' 10189 else 10190 if test yes = "$aix_use_runtimelinking"; then 10191 shared_flag='$wl-G' 10192 else 10193 shared_flag='$wl-bM:SRE' 10194 fi 10195 shared_flag_aix='$wl-bM:SRE' 10196 shared_flag_svr4='$wl-G' 10197 fi 10198 fi 10199 10200 export_dynamic_flag_spec='$wl-bexpall' 10201 # It seems that -bexpall does not export symbols beginning with 10202 # underscore (_), so it is better to generate a list of symbols to export. 10203 always_export_symbols=yes 10204 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 10205 # Warning - without using the other runtime loading flags (-brtl), 10206 # -berok will link without error, but may produce a broken library. 10207 allow_undefined_flag='-berok' 10208 # Determine the default libpath from the value encoded in an 10209 # empty executable. 10210 if test set = "${lt_cv_aix_libpath+set}"; then 10211 aix_libpath=$lt_cv_aix_libpath 10212else 10213 if test ${lt_cv_aix_libpath_+y} 10214then : 10215 printf %s "(cached) " >&6 10216else $as_nop 10217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10218/* end confdefs.h. */ 10219 10220int 10221main (void) 10222{ 10223 10224 ; 10225 return 0; 10226} 10227_ACEOF 10228if ac_fn_c_try_link "$LINENO" 10229then : 10230 10231 lt_aix_libpath_sed=' 10232 /Import File Strings/,/^$/ { 10233 /^0/ { 10234 s/^0 *\([^ ]*\) *$/\1/ 10235 p 10236 } 10237 }' 10238 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10239 # Check for a 64-bit object if we didn't find anything. 10240 if test -z "$lt_cv_aix_libpath_"; then 10241 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10242 fi 10243fi 10244rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10245 conftest$ac_exeext conftest.$ac_ext 10246 if test -z "$lt_cv_aix_libpath_"; then 10247 lt_cv_aix_libpath_=/usr/lib:/lib 10248 fi 10249 10250fi 10251 10252 aix_libpath=$lt_cv_aix_libpath_ 10253fi 10254 10255 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 10256 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 10257 else 10258 if test ia64 = "$host_cpu"; then 10259 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib' 10260 allow_undefined_flag="-z nodefs" 10261 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" 10262 else 10263 # Determine the default libpath from the value encoded in an 10264 # empty executable. 10265 if test set = "${lt_cv_aix_libpath+set}"; then 10266 aix_libpath=$lt_cv_aix_libpath 10267else 10268 if test ${lt_cv_aix_libpath_+y} 10269then : 10270 printf %s "(cached) " >&6 10271else $as_nop 10272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10273/* end confdefs.h. */ 10274 10275int 10276main (void) 10277{ 10278 10279 ; 10280 return 0; 10281} 10282_ACEOF 10283if ac_fn_c_try_link "$LINENO" 10284then : 10285 10286 lt_aix_libpath_sed=' 10287 /Import File Strings/,/^$/ { 10288 /^0/ { 10289 s/^0 *\([^ ]*\) *$/\1/ 10290 p 10291 } 10292 }' 10293 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10294 # Check for a 64-bit object if we didn't find anything. 10295 if test -z "$lt_cv_aix_libpath_"; then 10296 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10297 fi 10298fi 10299rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10300 conftest$ac_exeext conftest.$ac_ext 10301 if test -z "$lt_cv_aix_libpath_"; then 10302 lt_cv_aix_libpath_=/usr/lib:/lib 10303 fi 10304 10305fi 10306 10307 aix_libpath=$lt_cv_aix_libpath_ 10308fi 10309 10310 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 10311 # Warning - without using the other run time loading flags, 10312 # -berok will link without error, but may produce a broken library. 10313 no_undefined_flag=' $wl-bernotok' 10314 allow_undefined_flag=' $wl-berok' 10315 if test yes = "$with_gnu_ld"; then 10316 # We only use this code for GNU lds that support --whole-archive. 10317 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive' 10318 else 10319 # Exported symbols can be pulled into shared objects from archives 10320 whole_archive_flag_spec='$convenience' 10321 fi 10322 archive_cmds_need_lc=yes 10323 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 10324 # -brtl affects multiple linker settings, -berok does not and is overridden later 10325 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 10326 if test svr4 != "$with_aix_soname"; then 10327 # This is similar to how AIX traditionally builds its shared libraries. 10328 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' 10329 fi 10330 if test aix != "$with_aix_soname"; then 10331 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' 10332 else 10333 # used by -dlpreopen to get the symbols 10334 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 10335 fi 10336 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d' 10337 fi 10338 fi 10339 ;; 10340 10341 amigaos*) 10342 case $host_cpu in 10343 powerpc) 10344 # see comment about AmigaOS4 .so support 10345 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10346 archive_expsym_cmds='' 10347 ;; 10348 m68k) 10349 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)' 10350 hardcode_libdir_flag_spec='-L$libdir' 10351 hardcode_minus_L=yes 10352 ;; 10353 esac 10354 ;; 10355 10356 bsdi[45]*) 10357 export_dynamic_flag_spec=-rdynamic 10358 ;; 10359 10360 cygwin* | mingw* | pw32* | cegcc*) 10361 # When not using gcc, we currently assume that we are using 10362 # Microsoft Visual C++ or Intel C++ Compiler. 10363 # hardcode_libdir_flag_spec is actually meaningless, as there is 10364 # no search path for DLLs. 10365 case $cc_basename in 10366 cl* | icl*) 10367 # Native MSVC or ICC 10368 hardcode_libdir_flag_spec=' ' 10369 allow_undefined_flag=unsupported 10370 always_export_symbols=yes 10371 file_list_spec='@' 10372 # Tell ltmain to make .lib files, not .a files. 10373 libext=lib 10374 # Tell ltmain to make .dll files, not .so files. 10375 shrext_cmds=.dll 10376 # FIXME: Setting linknames here is a bad hack. 10377 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 10378 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 10379 cp "$export_symbols" "$output_objdir/$soname.def"; 10380 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 10381 else 10382 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 10383 fi~ 10384 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 10385 linknames=' 10386 # The linker will not automatically build a static lib if we build a DLL. 10387 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 10388 enable_shared_with_static_runtimes=yes 10389 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 10390 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 10391 # Don't use ranlib 10392 old_postinstall_cmds='chmod 644 $oldlib' 10393 postlink_cmds='lt_outputfile="@OUTPUT@"~ 10394 lt_tool_outputfile="@TOOL_OUTPUT@"~ 10395 case $lt_outputfile in 10396 *.exe|*.EXE) ;; 10397 *) 10398 lt_outputfile=$lt_outputfile.exe 10399 lt_tool_outputfile=$lt_tool_outputfile.exe 10400 ;; 10401 esac~ 10402 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 10403 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 10404 $RM "$lt_outputfile.manifest"; 10405 fi' 10406 ;; 10407 *) 10408 # Assume MSVC and ICC wrapper 10409 hardcode_libdir_flag_spec=' ' 10410 allow_undefined_flag=unsupported 10411 # Tell ltmain to make .lib files, not .a files. 10412 libext=lib 10413 # Tell ltmain to make .dll files, not .so files. 10414 shrext_cmds=.dll 10415 # FIXME: Setting linknames here is a bad hack. 10416 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 10417 # The linker will automatically build a .lib file if we build a DLL. 10418 old_archive_from_new_cmds='true' 10419 # FIXME: Should let the user specify the lib program. 10420 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 10421 enable_shared_with_static_runtimes=yes 10422 ;; 10423 esac 10424 ;; 10425 10426 darwin* | rhapsody*) 10427 10428 10429 archive_cmds_need_lc=no 10430 hardcode_direct=no 10431 hardcode_automatic=yes 10432 hardcode_shlibpath_var=unsupported 10433 if test yes = "$lt_cv_ld_force_load"; then 10434 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\"`' 10435 10436 else 10437 whole_archive_flag_spec='' 10438 fi 10439 link_all_deplibs=yes 10440 allow_undefined_flag=$_lt_dar_allow_undefined 10441 case $cc_basename in 10442 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 10443 *) _lt_dar_can_shared=$GCC ;; 10444 esac 10445 if test yes = "$_lt_dar_can_shared"; then 10446 output_verbose_link_cmd=func_echo_all 10447 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" 10448 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 10449 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" 10450 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" 10451 10452 else 10453 ld_shlibs=no 10454 fi 10455 10456 ;; 10457 10458 dgux*) 10459 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10460 hardcode_libdir_flag_spec='-L$libdir' 10461 hardcode_shlibpath_var=no 10462 ;; 10463 10464 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 10465 # support. Future versions do this automatically, but an explicit c++rt0.o 10466 # does not break anything, and helps significantly (at the cost of a little 10467 # extra space). 10468 freebsd2.2*) 10469 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 10470 hardcode_libdir_flag_spec='-R$libdir' 10471 hardcode_direct=yes 10472 hardcode_shlibpath_var=no 10473 ;; 10474 10475 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 10476 freebsd2.*) 10477 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 10478 hardcode_direct=yes 10479 hardcode_minus_L=yes 10480 hardcode_shlibpath_var=no 10481 ;; 10482 10483 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 10484 freebsd* | dragonfly* | midnightbsd*) 10485 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10486 hardcode_libdir_flag_spec='-R$libdir' 10487 hardcode_direct=yes 10488 hardcode_shlibpath_var=no 10489 ;; 10490 10491 hpux9*) 10492 if test yes = "$GCC"; then 10493 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' 10494 else 10495 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' 10496 fi 10497 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 10498 hardcode_libdir_separator=: 10499 hardcode_direct=yes 10500 10501 # hardcode_minus_L: Not really in the search PATH, 10502 # but as the default location of the library. 10503 hardcode_minus_L=yes 10504 export_dynamic_flag_spec='$wl-E' 10505 ;; 10506 10507 hpux10*) 10508 if test yes,no = "$GCC,$with_gnu_ld"; then 10509 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10510 else 10511 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 10512 fi 10513 if test no = "$with_gnu_ld"; then 10514 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 10515 hardcode_libdir_separator=: 10516 hardcode_direct=yes 10517 hardcode_direct_absolute=yes 10518 export_dynamic_flag_spec='$wl-E' 10519 # hardcode_minus_L: Not really in the search PATH, 10520 # but as the default location of the library. 10521 hardcode_minus_L=yes 10522 fi 10523 ;; 10524 10525 hpux11*) 10526 if test yes,no = "$GCC,$with_gnu_ld"; then 10527 case $host_cpu in 10528 hppa*64*) 10529 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 10530 ;; 10531 ia64*) 10532 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 10533 ;; 10534 *) 10535 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10536 ;; 10537 esac 10538 else 10539 case $host_cpu in 10540 hppa*64*) 10541 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 10542 ;; 10543 ia64*) 10544 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 10545 ;; 10546 *) 10547 10548 # Older versions of the 11.00 compiler do not understand -b yet 10549 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 10550 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 10551printf %s "checking if $CC understands -b... " >&6; } 10552if test ${lt_cv_prog_compiler__b+y} 10553then : 10554 printf %s "(cached) " >&6 10555else $as_nop 10556 lt_cv_prog_compiler__b=no 10557 save_LDFLAGS=$LDFLAGS 10558 LDFLAGS="$LDFLAGS -b" 10559 echo "$lt_simple_link_test_code" > conftest.$ac_ext 10560 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 10561 # The linker can only warn and ignore the option if not recognized 10562 # So say no if there are warnings 10563 if test -s conftest.err; then 10564 # Append any errors to the config.log. 10565 cat conftest.err 1>&5 10566 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 10567 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 10568 if diff conftest.exp conftest.er2 >/dev/null; then 10569 lt_cv_prog_compiler__b=yes 10570 fi 10571 else 10572 lt_cv_prog_compiler__b=yes 10573 fi 10574 fi 10575 $RM -r conftest* 10576 LDFLAGS=$save_LDFLAGS 10577 10578fi 10579{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 10580printf "%s\n" "$lt_cv_prog_compiler__b" >&6; } 10581 10582if test yes = "$lt_cv_prog_compiler__b"; then 10583 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10584else 10585 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 10586fi 10587 10588 ;; 10589 esac 10590 fi 10591 if test no = "$with_gnu_ld"; then 10592 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 10593 hardcode_libdir_separator=: 10594 10595 case $host_cpu in 10596 hppa*64*|ia64*) 10597 hardcode_direct=no 10598 hardcode_shlibpath_var=no 10599 ;; 10600 *) 10601 hardcode_direct=yes 10602 hardcode_direct_absolute=yes 10603 export_dynamic_flag_spec='$wl-E' 10604 10605 # hardcode_minus_L: Not really in the search PATH, 10606 # but as the default location of the library. 10607 hardcode_minus_L=yes 10608 ;; 10609 esac 10610 fi 10611 ;; 10612 10613 irix5* | irix6* | nonstopux*) 10614 if test yes = "$GCC"; then 10615 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' 10616 # Try to use the -exported_symbol ld option, if it does not 10617 # work, assume that -exports_file does not work either and 10618 # implicitly export all symbols. 10619 # This should be the same for all languages, so no per-tag cache variable. 10620 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 10621printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 10622if test ${lt_cv_irix_exported_symbol+y} 10623then : 10624 printf %s "(cached) " >&6 10625else $as_nop 10626 save_LDFLAGS=$LDFLAGS 10627 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" 10628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10629/* end confdefs.h. */ 10630int foo (void) { return 0; } 10631_ACEOF 10632if ac_fn_c_try_link "$LINENO" 10633then : 10634 lt_cv_irix_exported_symbol=yes 10635else $as_nop 10636 lt_cv_irix_exported_symbol=no 10637fi 10638rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10639 conftest$ac_exeext conftest.$ac_ext 10640 LDFLAGS=$save_LDFLAGS 10641fi 10642{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 10643printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; } 10644 if test yes = "$lt_cv_irix_exported_symbol"; then 10645 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' 10646 fi 10647 else 10648 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' 10649 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' 10650 fi 10651 archive_cmds_need_lc='no' 10652 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10653 hardcode_libdir_separator=: 10654 inherit_rpath=yes 10655 link_all_deplibs=yes 10656 ;; 10657 10658 linux*) 10659 case $cc_basename in 10660 tcc*) 10661 # Fabrice Bellard et al's Tiny C Compiler 10662 ld_shlibs=yes 10663 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10664 ;; 10665 esac 10666 ;; 10667 10668 netbsd*) 10669 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10670 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 10671 else 10672 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 10673 fi 10674 hardcode_libdir_flag_spec='-R$libdir' 10675 hardcode_direct=yes 10676 hardcode_shlibpath_var=no 10677 ;; 10678 10679 newsos6) 10680 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10681 hardcode_direct=yes 10682 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10683 hardcode_libdir_separator=: 10684 hardcode_shlibpath_var=no 10685 ;; 10686 10687 *nto* | *qnx*) 10688 ;; 10689 10690 openbsd* | bitrig*) 10691 if test -f /usr/libexec/ld.so; then 10692 hardcode_direct=yes 10693 hardcode_shlibpath_var=no 10694 hardcode_direct_absolute=yes 10695 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 10696 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10697 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' 10698 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 10699 export_dynamic_flag_spec='$wl-E' 10700 else 10701 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10702 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 10703 fi 10704 else 10705 ld_shlibs=no 10706 fi 10707 ;; 10708 10709 os2*) 10710 hardcode_libdir_flag_spec='-L$libdir' 10711 hardcode_minus_L=yes 10712 allow_undefined_flag=unsupported 10713 shrext_cmds=.dll 10714 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10715 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10716 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10717 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10718 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 10719 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10720 emximp -o $lib $output_objdir/$libname.def' 10721 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10722 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10723 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10724 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10725 prefix_cmds="$SED"~ 10726 if test EXPORTS = "`$SED 1q $export_symbols`"; then 10727 prefix_cmds="$prefix_cmds -e 1d"; 10728 fi~ 10729 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 10730 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 10731 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10732 emximp -o $lib $output_objdir/$libname.def' 10733 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 10734 enable_shared_with_static_runtimes=yes 10735 file_list_spec='@' 10736 ;; 10737 10738 osf3*) 10739 if test yes = "$GCC"; then 10740 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 10741 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' 10742 else 10743 allow_undefined_flag=' -expect_unresolved \*' 10744 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' 10745 fi 10746 archive_cmds_need_lc='no' 10747 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10748 hardcode_libdir_separator=: 10749 ;; 10750 10751 osf4* | osf5*) # as osf3* with the addition of -msym flag 10752 if test yes = "$GCC"; then 10753 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 10754 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' 10755 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10756 else 10757 allow_undefined_flag=' -expect_unresolved \*' 10758 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' 10759 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~ 10760 $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' 10761 10762 # Both c and cxx compiler support -rpath directly 10763 hardcode_libdir_flag_spec='-rpath $libdir' 10764 fi 10765 archive_cmds_need_lc='no' 10766 hardcode_libdir_separator=: 10767 ;; 10768 10769 solaris*) 10770 no_undefined_flag=' -z defs' 10771 if test yes = "$GCC"; then 10772 wlarc='$wl' 10773 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 10774 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10775 $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' 10776 else 10777 case `$CC -V 2>&1` in 10778 *"Compilers 5.0"*) 10779 wlarc='' 10780 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' 10781 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10782 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 10783 ;; 10784 *) 10785 wlarc='$wl' 10786 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' 10787 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10788 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 10789 ;; 10790 esac 10791 fi 10792 hardcode_libdir_flag_spec='-R$libdir' 10793 hardcode_shlibpath_var=no 10794 case $host_os in 10795 solaris2.[0-5] | solaris2.[0-5].*) ;; 10796 *) 10797 # The compiler driver will combine and reorder linker options, 10798 # but understands '-z linker_flag'. GCC discards it without '$wl', 10799 # but is careful enough not to reorder. 10800 # Supported since Solaris 2.6 (maybe 2.5.1?) 10801 if test yes = "$GCC"; then 10802 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 10803 else 10804 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 10805 fi 10806 ;; 10807 esac 10808 link_all_deplibs=yes 10809 ;; 10810 10811 sunos4*) 10812 if test sequent = "$host_vendor"; then 10813 # Use $CC to link under sequent, because it throws in some extra .o 10814 # files that make .init and .fini sections work. 10815 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' 10816 else 10817 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 10818 fi 10819 hardcode_libdir_flag_spec='-L$libdir' 10820 hardcode_direct=yes 10821 hardcode_minus_L=yes 10822 hardcode_shlibpath_var=no 10823 ;; 10824 10825 sysv4) 10826 case $host_vendor in 10827 sni) 10828 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10829 hardcode_direct=yes # is this really true??? 10830 ;; 10831 siemens) 10832 ## LD is ld it makes a PLAMLIB 10833 ## CC just makes a GrossModule. 10834 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 10835 reload_cmds='$CC -r -o $output$reload_objs' 10836 hardcode_direct=no 10837 ;; 10838 motorola) 10839 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10840 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 10841 ;; 10842 esac 10843 runpath_var='LD_RUN_PATH' 10844 hardcode_shlibpath_var=no 10845 ;; 10846 10847 sysv4.3*) 10848 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10849 hardcode_shlibpath_var=no 10850 export_dynamic_flag_spec='-Bexport' 10851 ;; 10852 10853 sysv4*MP*) 10854 if test -d /usr/nec; then 10855 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10856 hardcode_shlibpath_var=no 10857 runpath_var=LD_RUN_PATH 10858 hardcode_runpath_var=yes 10859 ld_shlibs=yes 10860 fi 10861 ;; 10862 10863 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 10864 no_undefined_flag='$wl-z,text' 10865 archive_cmds_need_lc=no 10866 hardcode_shlibpath_var=no 10867 runpath_var='LD_RUN_PATH' 10868 10869 if test yes = "$GCC"; then 10870 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10871 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10872 else 10873 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10874 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10875 fi 10876 ;; 10877 10878 sysv5* | sco3.2v5* | sco5v6*) 10879 # Note: We CANNOT use -z defs as we might desire, because we do not 10880 # link with -lc, and that would cause any symbols used from libc to 10881 # always be unresolved, which means just about no library would 10882 # ever link correctly. If we're not using GNU ld we use -z text 10883 # though, which does catch some bad symbols but isn't as heavy-handed 10884 # as -z defs. 10885 no_undefined_flag='$wl-z,text' 10886 allow_undefined_flag='$wl-z,nodefs' 10887 archive_cmds_need_lc=no 10888 hardcode_shlibpath_var=no 10889 hardcode_libdir_flag_spec='$wl-R,$libdir' 10890 hardcode_libdir_separator=':' 10891 link_all_deplibs=yes 10892 export_dynamic_flag_spec='$wl-Bexport' 10893 runpath_var='LD_RUN_PATH' 10894 10895 if test yes = "$GCC"; then 10896 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10897 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10898 else 10899 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10900 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10901 fi 10902 ;; 10903 10904 uts4*) 10905 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10906 hardcode_libdir_flag_spec='-L$libdir' 10907 hardcode_shlibpath_var=no 10908 ;; 10909 10910 *) 10911 ld_shlibs=no 10912 ;; 10913 esac 10914 10915 if test sni = "$host_vendor"; then 10916 case $host in 10917 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 10918 export_dynamic_flag_spec='$wl-Blargedynsym' 10919 ;; 10920 esac 10921 fi 10922 fi 10923 10924{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 10925printf "%s\n" "$ld_shlibs" >&6; } 10926test no = "$ld_shlibs" && can_build_shared=no 10927 10928with_gnu_ld=$with_gnu_ld 10929 10930 10931 10932 10933 10934 10935 10936 10937 10938 10939 10940 10941 10942 10943 10944# 10945# Do we need to explicitly link libc? 10946# 10947case "x$archive_cmds_need_lc" in 10948x|xyes) 10949 # Assume -lc should be added 10950 archive_cmds_need_lc=yes 10951 10952 if test yes,yes = "$GCC,$enable_shared"; then 10953 case $archive_cmds in 10954 *'~'*) 10955 # FIXME: we may have to deal with multi-command sequences. 10956 ;; 10957 '$CC '*) 10958 # Test whether the compiler implicitly links with -lc since on some 10959 # systems, -lgcc has to come before -lc. If gcc already passes -lc 10960 # to ld, don't add -lc before -lgcc. 10961 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 10962printf %s "checking whether -lc should be explicitly linked in... " >&6; } 10963if test ${lt_cv_archive_cmds_need_lc+y} 10964then : 10965 printf %s "(cached) " >&6 10966else $as_nop 10967 $RM conftest* 10968 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10969 10970 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 10971 (eval $ac_compile) 2>&5 10972 ac_status=$? 10973 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10974 test $ac_status = 0; } 2>conftest.err; then 10975 soname=conftest 10976 lib=conftest 10977 libobjs=conftest.$ac_objext 10978 deplibs= 10979 wl=$lt_prog_compiler_wl 10980 pic_flag=$lt_prog_compiler_pic 10981 compiler_flags=-v 10982 linker_flags=-v 10983 verstring= 10984 output_objdir=. 10985 libname=conftest 10986 lt_save_allow_undefined_flag=$allow_undefined_flag 10987 allow_undefined_flag= 10988 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 10989 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 10990 ac_status=$? 10991 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10992 test $ac_status = 0; } 10993 then 10994 lt_cv_archive_cmds_need_lc=no 10995 else 10996 lt_cv_archive_cmds_need_lc=yes 10997 fi 10998 allow_undefined_flag=$lt_save_allow_undefined_flag 10999 else 11000 cat conftest.err 1>&5 11001 fi 11002 $RM conftest* 11003 11004fi 11005{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 11006printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; } 11007 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 11008 ;; 11009 esac 11010 fi 11011 ;; 11012esac 11013 11014 11015 11016 11017 11018 11019 11020 11021 11022 11023 11024 11025 11026 11027 11028 11029 11030 11031 11032 11033 11034 11035 11036 11037 11038 11039 11040 11041 11042 11043 11044 11045 11046 11047 11048 11049 11050 11051 11052 11053 11054 11055 11056 11057 11058 11059 11060 11061 11062 11063 11064 11065 11066 11067 11068 11069 11070 11071 11072 11073 11074 11075 11076 11077 11078 11079 11080 11081 11082 11083 11084 11085 11086 11087 11088 11089 11090 11091 11092 11093 11094 11095 11096 11097 11098 11099 11100 11101 11102 11103 11104 11105 11106 11107 11108 11109 11110 11111 11112 11113 11114 11115 11116 11117 11118 11119 11120 11121 11122 11123 11124 11125 11126 11127 11128 11129 11130 11131 11132 11133 11134 11135 11136 11137 11138 11139 11140 11141 11142 11143 11144 11145 11146 11147 11148 11149 11150 11151 11152 11153 11154 11155 11156 11157 11158 11159 11160 11161 11162 11163 11164 11165 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 11166printf %s "checking dynamic linker characteristics... " >&6; } 11167 11168if test yes = "$GCC"; then 11169 case $host_os in 11170 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; 11171 *) lt_awk_arg='/^libraries:/' ;; 11172 esac 11173 case $host_os in 11174 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;; 11175 *) lt_sed_strip_eq='s|=/|/|g' ;; 11176 esac 11177 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 11178 case $lt_search_path_spec in 11179 *\;*) 11180 # if the path contains ";" then we assume it to be the separator 11181 # otherwise default to the standard path separator (i.e. ":") - it is 11182 # assumed that no part of a normal pathname contains ";" but that should 11183 # okay in the real world where ";" in dirpaths is itself problematic. 11184 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 11185 ;; 11186 *) 11187 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 11188 ;; 11189 esac 11190 # Ok, now we have the path, separated by spaces, we can step through it 11191 # and add multilib dir if necessary... 11192 lt_tmp_lt_search_path_spec= 11193 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 11194 # ...but if some path component already ends with the multilib dir we assume 11195 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). 11196 case "$lt_multi_os_dir; $lt_search_path_spec " in 11197 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) 11198 lt_multi_os_dir= 11199 ;; 11200 esac 11201 for lt_sys_path in $lt_search_path_spec; do 11202 if test -d "$lt_sys_path$lt_multi_os_dir"; then 11203 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" 11204 elif test -n "$lt_multi_os_dir"; then 11205 test -d "$lt_sys_path" && \ 11206 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 11207 fi 11208 done 11209 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 11210BEGIN {RS = " "; FS = "/|\n";} { 11211 lt_foo = ""; 11212 lt_count = 0; 11213 for (lt_i = NF; lt_i > 0; lt_i--) { 11214 if ($lt_i != "" && $lt_i != ".") { 11215 if ($lt_i == "..") { 11216 lt_count++; 11217 } else { 11218 if (lt_count == 0) { 11219 lt_foo = "/" $lt_i lt_foo; 11220 } else { 11221 lt_count--; 11222 } 11223 } 11224 } 11225 } 11226 if (lt_foo != "") { lt_freq[lt_foo]++; } 11227 if (lt_freq[lt_foo] == 1) { print lt_foo; } 11228}'` 11229 # AWK program above erroneously prepends '/' to C:/dos/paths 11230 # for these hosts. 11231 case $host_os in 11232 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 11233 $SED 's|/\([A-Za-z]:\)|\1|g'` ;; 11234 esac 11235 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 11236else 11237 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 11238fi 11239library_names_spec= 11240libname_spec='lib$name' 11241soname_spec= 11242shrext_cmds=.so 11243postinstall_cmds= 11244postuninstall_cmds= 11245finish_cmds= 11246finish_eval= 11247shlibpath_var= 11248shlibpath_overrides_runpath=unknown 11249version_type=none 11250dynamic_linker="$host_os ld.so" 11251sys_lib_dlsearch_path_spec="/lib /usr/lib" 11252need_lib_prefix=unknown 11253hardcode_into_libs=no 11254 11255# when you set need_version to no, make sure it does not cause -set_version 11256# flags to be left without arguments 11257need_version=unknown 11258 11259 11260 11261case $host_os in 11262aix3*) 11263 version_type=linux # correct to gnu/linux during the next big refactor 11264 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 11265 shlibpath_var=LIBPATH 11266 11267 # AIX 3 has no versioning support, so we append a major version to the name. 11268 soname_spec='$libname$release$shared_ext$major' 11269 ;; 11270 11271aix[4-9]*) 11272 version_type=linux # correct to gnu/linux during the next big refactor 11273 need_lib_prefix=no 11274 need_version=no 11275 hardcode_into_libs=yes 11276 if test ia64 = "$host_cpu"; then 11277 # AIX 5 supports IA64 11278 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 11279 shlibpath_var=LD_LIBRARY_PATH 11280 else 11281 # With GCC up to 2.95.x, collect2 would create an import file 11282 # for dependence libraries. The import file would start with 11283 # the line '#! .'. This would cause the generated library to 11284 # depend on '.', always an invalid library. This was fixed in 11285 # development snapshots of GCC prior to 3.0. 11286 case $host_os in 11287 aix4 | aix4.[01] | aix4.[01].*) 11288 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 11289 echo ' yes ' 11290 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 11291 : 11292 else 11293 can_build_shared=no 11294 fi 11295 ;; 11296 esac 11297 # Using Import Files as archive members, it is possible to support 11298 # filename-based versioning of shared library archives on AIX. While 11299 # this would work for both with and without runtime linking, it will 11300 # prevent static linking of such archives. So we do filename-based 11301 # shared library versioning with .so extension only, which is used 11302 # when both runtime linking and shared linking is enabled. 11303 # Unfortunately, runtime linking may impact performance, so we do 11304 # not want this to be the default eventually. Also, we use the 11305 # versioned .so libs for executables only if there is the -brtl 11306 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. 11307 # To allow for filename-based versioning support, we need to create 11308 # libNAME.so.V as an archive file, containing: 11309 # *) an Import File, referring to the versioned filename of the 11310 # archive as well as the shared archive member, telling the 11311 # bitwidth (32 or 64) of that shared object, and providing the 11312 # list of exported symbols of that shared object, eventually 11313 # decorated with the 'weak' keyword 11314 # *) the shared object with the F_LOADONLY flag set, to really avoid 11315 # it being seen by the linker. 11316 # At run time we better use the real file rather than another symlink, 11317 # but for link time we create the symlink libNAME.so -> libNAME.so.V 11318 11319 case $with_aix_soname,$aix_use_runtimelinking in 11320 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 11321 # soname into executable. Probably we can add versioning support to 11322 # collect2, so additional links can be useful in future. 11323 aix,yes) # traditional libtool 11324 dynamic_linker='AIX unversionable lib.so' 11325 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 11326 # instead of lib<name>.a to let people know that these are not 11327 # typical AIX shared libraries. 11328 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11329 ;; 11330 aix,no) # traditional AIX only 11331 dynamic_linker='AIX lib.a(lib.so.V)' 11332 # We preserve .a as extension for shared libraries through AIX4.2 11333 # and later when we are not doing run time linking. 11334 library_names_spec='$libname$release.a $libname.a' 11335 soname_spec='$libname$release$shared_ext$major' 11336 ;; 11337 svr4,*) # full svr4 only 11338 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 11339 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 11340 # We do not specify a path in Import Files, so LIBPATH fires. 11341 shlibpath_overrides_runpath=yes 11342 ;; 11343 *,yes) # both, prefer svr4 11344 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 11345 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 11346 # unpreferred sharedlib libNAME.a needs extra handling 11347 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"' 11348 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"' 11349 # We do not specify a path in Import Files, so LIBPATH fires. 11350 shlibpath_overrides_runpath=yes 11351 ;; 11352 *,no) # both, prefer aix 11353 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 11354 library_names_spec='$libname$release.a $libname.a' 11355 soname_spec='$libname$release$shared_ext$major' 11356 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 11357 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)' 11358 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"' 11359 ;; 11360 esac 11361 shlibpath_var=LIBPATH 11362 fi 11363 ;; 11364 11365amigaos*) 11366 case $host_cpu in 11367 powerpc) 11368 # Since July 2007 AmigaOS4 officially supports .so libraries. 11369 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 11370 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11371 ;; 11372 m68k) 11373 library_names_spec='$libname.ixlibrary $libname.a' 11374 # Create ${libname}_ixlibrary.a entries in /sys/libs. 11375 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' 11376 ;; 11377 esac 11378 ;; 11379 11380beos*) 11381 library_names_spec='$libname$shared_ext' 11382 dynamic_linker="$host_os ld.so" 11383 shlibpath_var=LIBRARY_PATH 11384 ;; 11385 11386bsdi[45]*) 11387 version_type=linux # correct to gnu/linux during the next big refactor 11388 need_version=no 11389 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11390 soname_spec='$libname$release$shared_ext$major' 11391 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 11392 shlibpath_var=LD_LIBRARY_PATH 11393 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 11394 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 11395 # the default ld.so.conf also contains /usr/contrib/lib and 11396 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 11397 # libtool to hard-code these into programs 11398 ;; 11399 11400cygwin* | mingw* | pw32* | cegcc*) 11401 version_type=windows 11402 shrext_cmds=.dll 11403 need_version=no 11404 need_lib_prefix=no 11405 11406 case $GCC,$cc_basename in 11407 yes,*) 11408 # gcc 11409 library_names_spec='$libname.dll.a' 11410 # DLL is installed to $(libdir)/../bin by postinstall_cmds 11411 postinstall_cmds='base_file=`basename \$file`~ 11412 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 11413 dldir=$destdir/`dirname \$dlpath`~ 11414 test -d \$dldir || mkdir -p \$dldir~ 11415 $install_prog $dir/$dlname \$dldir/$dlname~ 11416 chmod a+x \$dldir/$dlname~ 11417 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 11418 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 11419 fi' 11420 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 11421 dlpath=$dir/\$dldll~ 11422 $RM \$dlpath' 11423 shlibpath_overrides_runpath=yes 11424 11425 case $host_os in 11426 cygwin*) 11427 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 11428 soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11429 11430 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 11431 ;; 11432 mingw* | cegcc*) 11433 # MinGW DLLs use traditional 'lib' prefix 11434 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11435 ;; 11436 pw32*) 11437 # pw32 DLLs use 'pw' prefix rather than 'lib' 11438 library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11439 ;; 11440 esac 11441 dynamic_linker='Win32 ld.exe' 11442 ;; 11443 11444 *,cl* | *,icl*) 11445 # Native MSVC or ICC 11446 libname_spec='$name' 11447 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11448 library_names_spec='$libname.dll.lib' 11449 11450 case $build_os in 11451 mingw*) 11452 sys_lib_search_path_spec= 11453 lt_save_ifs=$IFS 11454 IFS=';' 11455 for lt_path in $LIB 11456 do 11457 IFS=$lt_save_ifs 11458 # Let DOS variable expansion print the short 8.3 style file name. 11459 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 11460 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 11461 done 11462 IFS=$lt_save_ifs 11463 # Convert to MSYS style. 11464 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 11465 ;; 11466 cygwin*) 11467 # Convert to unix form, then to dos form, then back to unix form 11468 # but this time dos style (no spaces!) so that the unix form looks 11469 # like /cygdrive/c/PROGRA~1:/cygdr... 11470 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 11471 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 11472 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 11473 ;; 11474 *) 11475 sys_lib_search_path_spec=$LIB 11476 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 11477 # It is most probably a Windows format PATH. 11478 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 11479 else 11480 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 11481 fi 11482 # FIXME: find the short name or the path components, as spaces are 11483 # common. (e.g. "Program Files" -> "PROGRA~1") 11484 ;; 11485 esac 11486 11487 # DLL is installed to $(libdir)/../bin by postinstall_cmds 11488 postinstall_cmds='base_file=`basename \$file`~ 11489 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 11490 dldir=$destdir/`dirname \$dlpath`~ 11491 test -d \$dldir || mkdir -p \$dldir~ 11492 $install_prog $dir/$dlname \$dldir/$dlname' 11493 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 11494 dlpath=$dir/\$dldll~ 11495 $RM \$dlpath' 11496 shlibpath_overrides_runpath=yes 11497 dynamic_linker='Win32 link.exe' 11498 ;; 11499 11500 *) 11501 # Assume MSVC and ICC wrapper 11502 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 11503 dynamic_linker='Win32 ld.exe' 11504 ;; 11505 esac 11506 # FIXME: first we should search . and the directory the executable is in 11507 shlibpath_var=PATH 11508 ;; 11509 11510darwin* | rhapsody*) 11511 dynamic_linker="$host_os dyld" 11512 version_type=darwin 11513 need_lib_prefix=no 11514 need_version=no 11515 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' 11516 soname_spec='$libname$release$major$shared_ext' 11517 shlibpath_overrides_runpath=yes 11518 shlibpath_var=DYLD_LIBRARY_PATH 11519 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 11520 11521 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 11522 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 11523 ;; 11524 11525dgux*) 11526 version_type=linux # correct to gnu/linux during the next big refactor 11527 need_lib_prefix=no 11528 need_version=no 11529 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11530 soname_spec='$libname$release$shared_ext$major' 11531 shlibpath_var=LD_LIBRARY_PATH 11532 ;; 11533 11534freebsd* | dragonfly* | midnightbsd*) 11535 # DragonFly does not have aout. When/if they implement a new 11536 # versioning mechanism, adjust this. 11537 if test -x /usr/bin/objformat; then 11538 objformat=`/usr/bin/objformat` 11539 else 11540 case $host_os in 11541 freebsd[23].*) objformat=aout ;; 11542 *) objformat=elf ;; 11543 esac 11544 fi 11545 version_type=freebsd-$objformat 11546 case $version_type in 11547 freebsd-elf*) 11548 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11549 soname_spec='$libname$release$shared_ext$major' 11550 need_version=no 11551 need_lib_prefix=no 11552 ;; 11553 freebsd-*) 11554 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11555 need_version=yes 11556 ;; 11557 esac 11558 shlibpath_var=LD_LIBRARY_PATH 11559 case $host_os in 11560 freebsd2.*) 11561 shlibpath_overrides_runpath=yes 11562 ;; 11563 freebsd3.[01]* | freebsdelf3.[01]*) 11564 shlibpath_overrides_runpath=yes 11565 hardcode_into_libs=yes 11566 ;; 11567 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 11568 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 11569 shlibpath_overrides_runpath=no 11570 hardcode_into_libs=yes 11571 ;; 11572 *) # from 4.6 on, and DragonFly 11573 shlibpath_overrides_runpath=yes 11574 hardcode_into_libs=yes 11575 ;; 11576 esac 11577 ;; 11578 11579haiku*) 11580 version_type=linux # correct to gnu/linux during the next big refactor 11581 need_lib_prefix=no 11582 need_version=no 11583 dynamic_linker="$host_os runtime_loader" 11584 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11585 soname_spec='$libname$release$shared_ext$major' 11586 shlibpath_var=LIBRARY_PATH 11587 shlibpath_overrides_runpath=no 11588 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 11589 hardcode_into_libs=yes 11590 ;; 11591 11592hpux9* | hpux10* | hpux11*) 11593 # Give a soname corresponding to the major version so that dld.sl refuses to 11594 # link against other versions. 11595 version_type=sunos 11596 need_lib_prefix=no 11597 need_version=no 11598 case $host_cpu in 11599 ia64*) 11600 shrext_cmds='.so' 11601 hardcode_into_libs=yes 11602 dynamic_linker="$host_os dld.so" 11603 shlibpath_var=LD_LIBRARY_PATH 11604 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11605 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11606 soname_spec='$libname$release$shared_ext$major' 11607 if test 32 = "$HPUX_IA64_MODE"; then 11608 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 11609 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 11610 else 11611 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 11612 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 11613 fi 11614 ;; 11615 hppa*64*) 11616 shrext_cmds='.sl' 11617 hardcode_into_libs=yes 11618 dynamic_linker="$host_os dld.sl" 11619 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 11620 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11621 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11622 soname_spec='$libname$release$shared_ext$major' 11623 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 11624 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11625 ;; 11626 *) 11627 shrext_cmds='.sl' 11628 dynamic_linker="$host_os dld.sl" 11629 shlibpath_var=SHLIB_PATH 11630 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 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 ;; 11634 esac 11635 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 11636 postinstall_cmds='chmod 555 $lib' 11637 # or fails outright, so override atomically: 11638 install_override_mode=555 11639 ;; 11640 11641interix[3-9]*) 11642 version_type=linux # correct to gnu/linux during the next big refactor 11643 need_lib_prefix=no 11644 need_version=no 11645 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11646 soname_spec='$libname$release$shared_ext$major' 11647 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 11648 shlibpath_var=LD_LIBRARY_PATH 11649 shlibpath_overrides_runpath=no 11650 hardcode_into_libs=yes 11651 ;; 11652 11653irix5* | irix6* | nonstopux*) 11654 case $host_os in 11655 nonstopux*) version_type=nonstopux ;; 11656 *) 11657 if test yes = "$lt_cv_prog_gnu_ld"; then 11658 version_type=linux # correct to gnu/linux during the next big refactor 11659 else 11660 version_type=irix 11661 fi ;; 11662 esac 11663 need_lib_prefix=no 11664 need_version=no 11665 soname_spec='$libname$release$shared_ext$major' 11666 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 11667 case $host_os in 11668 irix5* | nonstopux*) 11669 libsuff= shlibsuff= 11670 ;; 11671 *) 11672 case $LD in # libtool.m4 will add one of these switches to LD 11673 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 11674 libsuff= shlibsuff= libmagic=32-bit;; 11675 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 11676 libsuff=32 shlibsuff=N32 libmagic=N32;; 11677 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 11678 libsuff=64 shlibsuff=64 libmagic=64-bit;; 11679 *) libsuff= shlibsuff= libmagic=never-match;; 11680 esac 11681 ;; 11682 esac 11683 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 11684 shlibpath_overrides_runpath=no 11685 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 11686 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 11687 hardcode_into_libs=yes 11688 ;; 11689 11690# No shared lib support for Linux oldld, aout, or coff. 11691linux*oldld* | linux*aout* | linux*coff*) 11692 dynamic_linker=no 11693 ;; 11694 11695linux*android*) 11696 version_type=none # Android doesn't support versioned libraries. 11697 need_lib_prefix=no 11698 need_version=no 11699 library_names_spec='$libname$release$shared_ext' 11700 soname_spec='$libname$release$shared_ext' 11701 finish_cmds= 11702 shlibpath_var=LD_LIBRARY_PATH 11703 shlibpath_overrides_runpath=yes 11704 11705 # This implies no fast_install, which is unacceptable. 11706 # Some rework will be needed to allow for fast_install 11707 # before this can be enabled. 11708 hardcode_into_libs=yes 11709 11710 dynamic_linker='Android linker' 11711 # Don't embed -rpath directories since the linker doesn't support them. 11712 hardcode_libdir_flag_spec='-L$libdir' 11713 ;; 11714 11715# This must be glibc/ELF. 11716linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 11717 version_type=linux # correct to gnu/linux during the next big refactor 11718 need_lib_prefix=no 11719 need_version=no 11720 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11721 soname_spec='$libname$release$shared_ext$major' 11722 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 11723 shlibpath_var=LD_LIBRARY_PATH 11724 shlibpath_overrides_runpath=no 11725 11726 # Some binutils ld are patched to set DT_RUNPATH 11727 if test ${lt_cv_shlibpath_overrides_runpath+y} 11728then : 11729 printf %s "(cached) " >&6 11730else $as_nop 11731 lt_cv_shlibpath_overrides_runpath=no 11732 save_LDFLAGS=$LDFLAGS 11733 save_libdir=$libdir 11734 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 11735 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 11736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11737/* end confdefs.h. */ 11738 11739int 11740main (void) 11741{ 11742 11743 ; 11744 return 0; 11745} 11746_ACEOF 11747if ac_fn_c_try_link "$LINENO" 11748then : 11749 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null 11750then : 11751 lt_cv_shlibpath_overrides_runpath=yes 11752fi 11753fi 11754rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11755 conftest$ac_exeext conftest.$ac_ext 11756 LDFLAGS=$save_LDFLAGS 11757 libdir=$save_libdir 11758 11759fi 11760 11761 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 11762 11763 # This implies no fast_install, which is unacceptable. 11764 # Some rework will be needed to allow for fast_install 11765 # before this can be enabled. 11766 hardcode_into_libs=yes 11767 11768 # Add ABI-specific directories to the system library path. 11769 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib" 11770 11771 # Ideally, we could use ldconfig to report *all* directores which are 11772 # searched for libraries, however this is still not possible. Aside from not 11773 # being certain /sbin/ldconfig is available, command 11774 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 11775 # even though it is searched at run-time. Try to do the best guess by 11776 # appending ld.so.conf contents (and includes) to the search path. 11777 if test -f /etc/ld.so.conf; then 11778 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' ' '` 11779 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra" 11780 fi 11781 11782 # We used to test for /lib/ld.so.1 and disable shared libraries on 11783 # powerpc, because MkLinux only supported shared libraries with the 11784 # GNU dynamic linker. Since this was broken with cross compilers, 11785 # most powerpc-linux boxes support dynamic linking these days and 11786 # people can always --disable-shared, the test was removed, and we 11787 # assume the GNU/Linux dynamic linker is in use. 11788 dynamic_linker='GNU/Linux ld.so' 11789 ;; 11790 11791netbsd*) 11792 version_type=sunos 11793 need_lib_prefix=no 11794 need_version=no 11795 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 11796 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11797 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11798 dynamic_linker='NetBSD (a.out) ld.so' 11799 else 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 dynamic_linker='NetBSD ld.elf_so' 11803 fi 11804 shlibpath_var=LD_LIBRARY_PATH 11805 shlibpath_overrides_runpath=yes 11806 hardcode_into_libs=yes 11807 ;; 11808 11809newsos6) 11810 version_type=linux # correct to gnu/linux during the next big refactor 11811 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11812 shlibpath_var=LD_LIBRARY_PATH 11813 shlibpath_overrides_runpath=yes 11814 ;; 11815 11816*nto* | *qnx*) 11817 version_type=qnx 11818 need_lib_prefix=no 11819 need_version=no 11820 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11821 soname_spec='$libname$release$shared_ext$major' 11822 shlibpath_var=LD_LIBRARY_PATH 11823 shlibpath_overrides_runpath=no 11824 hardcode_into_libs=yes 11825 dynamic_linker='ldqnx.so' 11826 ;; 11827 11828openbsd* | bitrig*) 11829 version_type=sunos 11830 sys_lib_dlsearch_path_spec=/usr/lib 11831 need_lib_prefix=no 11832 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 11833 need_version=no 11834 else 11835 need_version=yes 11836 fi 11837 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11838 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11839 shlibpath_var=LD_LIBRARY_PATH 11840 shlibpath_overrides_runpath=yes 11841 ;; 11842 11843os2*) 11844 libname_spec='$name' 11845 version_type=windows 11846 shrext_cmds=.dll 11847 need_version=no 11848 need_lib_prefix=no 11849 # OS/2 can only load a DLL with a base name of 8 characters or less. 11850 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 11851 v=$($ECHO $release$versuffix | tr -d .-); 11852 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 11853 $ECHO $n$v`$shared_ext' 11854 library_names_spec='${libname}_dll.$libext' 11855 dynamic_linker='OS/2 ld.exe' 11856 shlibpath_var=BEGINLIBPATH 11857 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 11858 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11859 postinstall_cmds='base_file=`basename \$file`~ 11860 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 11861 dldir=$destdir/`dirname \$dlpath`~ 11862 test -d \$dldir || mkdir -p \$dldir~ 11863 $install_prog $dir/$dlname \$dldir/$dlname~ 11864 chmod a+x \$dldir/$dlname~ 11865 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 11866 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 11867 fi' 11868 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 11869 dlpath=$dir/\$dldll~ 11870 $RM \$dlpath' 11871 ;; 11872 11873osf3* | osf4* | osf5*) 11874 version_type=osf 11875 need_lib_prefix=no 11876 need_version=no 11877 soname_spec='$libname$release$shared_ext$major' 11878 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11879 shlibpath_var=LD_LIBRARY_PATH 11880 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 11881 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11882 ;; 11883 11884rdos*) 11885 dynamic_linker=no 11886 ;; 11887 11888solaris*) 11889 version_type=linux # correct to gnu/linux during the next big refactor 11890 need_lib_prefix=no 11891 need_version=no 11892 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11893 soname_spec='$libname$release$shared_ext$major' 11894 shlibpath_var=LD_LIBRARY_PATH 11895 shlibpath_overrides_runpath=yes 11896 hardcode_into_libs=yes 11897 # ldd complains unless libraries are executable 11898 postinstall_cmds='chmod +x $lib' 11899 ;; 11900 11901sunos4*) 11902 version_type=sunos 11903 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11904 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 11905 shlibpath_var=LD_LIBRARY_PATH 11906 shlibpath_overrides_runpath=yes 11907 if test yes = "$with_gnu_ld"; then 11908 need_lib_prefix=no 11909 fi 11910 need_version=yes 11911 ;; 11912 11913sysv4 | sysv4.3*) 11914 version_type=linux # correct to gnu/linux during the next big refactor 11915 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11916 soname_spec='$libname$release$shared_ext$major' 11917 shlibpath_var=LD_LIBRARY_PATH 11918 case $host_vendor in 11919 sni) 11920 shlibpath_overrides_runpath=no 11921 need_lib_prefix=no 11922 runpath_var=LD_RUN_PATH 11923 ;; 11924 siemens) 11925 need_lib_prefix=no 11926 ;; 11927 motorola) 11928 need_lib_prefix=no 11929 need_version=no 11930 shlibpath_overrides_runpath=no 11931 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 11932 ;; 11933 esac 11934 ;; 11935 11936sysv4*MP*) 11937 if test -d /usr/nec; then 11938 version_type=linux # correct to gnu/linux during the next big refactor 11939 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 11940 soname_spec='$libname$shared_ext.$major' 11941 shlibpath_var=LD_LIBRARY_PATH 11942 fi 11943 ;; 11944 11945sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 11946 version_type=sco 11947 need_lib_prefix=no 11948 need_version=no 11949 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 11950 soname_spec='$libname$release$shared_ext$major' 11951 shlibpath_var=LD_LIBRARY_PATH 11952 shlibpath_overrides_runpath=yes 11953 hardcode_into_libs=yes 11954 if test yes = "$with_gnu_ld"; then 11955 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 11956 else 11957 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 11958 case $host_os in 11959 sco3.2v5*) 11960 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 11961 ;; 11962 esac 11963 fi 11964 sys_lib_dlsearch_path_spec='/usr/lib' 11965 ;; 11966 11967tpf*) 11968 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 11969 version_type=linux # correct to gnu/linux during the next big refactor 11970 need_lib_prefix=no 11971 need_version=no 11972 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11973 shlibpath_var=LD_LIBRARY_PATH 11974 shlibpath_overrides_runpath=no 11975 hardcode_into_libs=yes 11976 ;; 11977 11978uts4*) 11979 version_type=linux # correct to gnu/linux during the next big refactor 11980 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11981 soname_spec='$libname$release$shared_ext$major' 11982 shlibpath_var=LD_LIBRARY_PATH 11983 ;; 11984 11985*) 11986 dynamic_linker=no 11987 ;; 11988esac 11989{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 11990printf "%s\n" "$dynamic_linker" >&6; } 11991test no = "$dynamic_linker" && can_build_shared=no 11992 11993variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 11994if test yes = "$GCC"; then 11995 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 11996fi 11997 11998if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 11999 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 12000fi 12001 12002if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 12003 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 12004fi 12005 12006# remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 12007configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 12008 12009# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 12010func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 12011 12012# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 12013configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 12014 12015 12016 12017 12018 12019 12020 12021 12022 12023 12024 12025 12026 12027 12028 12029 12030 12031 12032 12033 12034 12035 12036 12037 12038 12039 12040 12041 12042 12043 12044 12045 12046 12047 12048 12049 12050 12051 12052 12053 12054 12055 12056 12057 12058 12059 12060 12061 12062 12063 12064 12065 12066 12067 12068 12069 12070 12071 12072 12073 12074 12075 12076 12077 12078 12079 12080 12081 12082 12083 12084 12085 12086 12087 12088 12089 12090 12091 12092 12093 12094 12095 12096 12097 12098 12099 12100 12101 12102 12103 12104 12105 12106 12107 12108 12109 12110 12111 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 12112printf %s "checking how to hardcode library paths into programs... " >&6; } 12113hardcode_action= 12114if test -n "$hardcode_libdir_flag_spec" || 12115 test -n "$runpath_var" || 12116 test yes = "$hardcode_automatic"; then 12117 12118 # We can hardcode non-existent directories. 12119 if test no != "$hardcode_direct" && 12120 # If the only mechanism to avoid hardcoding is shlibpath_var, we 12121 # have to relink, otherwise we might link with an installed library 12122 # when we should be linking with a yet-to-be-installed one 12123 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" && 12124 test no != "$hardcode_minus_L"; then 12125 # Linking always hardcodes the temporary library directory. 12126 hardcode_action=relink 12127 else 12128 # We can link without hardcoding, and we can hardcode nonexisting dirs. 12129 hardcode_action=immediate 12130 fi 12131else 12132 # We cannot hardcode anything, or else we can only hardcode existing 12133 # directories. 12134 hardcode_action=unsupported 12135fi 12136{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 12137printf "%s\n" "$hardcode_action" >&6; } 12138 12139if test relink = "$hardcode_action" || 12140 test yes = "$inherit_rpath"; then 12141 # Fast installation is not supported 12142 enable_fast_install=no 12143elif test yes = "$shlibpath_overrides_runpath" || 12144 test no = "$enable_shared"; then 12145 # Fast installation is not necessary 12146 enable_fast_install=needless 12147fi 12148 12149 12150 12151 12152 12153 12154 if test yes != "$enable_dlopen"; then 12155 enable_dlopen=unknown 12156 enable_dlopen_self=unknown 12157 enable_dlopen_self_static=unknown 12158else 12159 lt_cv_dlopen=no 12160 lt_cv_dlopen_libs= 12161 12162 case $host_os in 12163 beos*) 12164 lt_cv_dlopen=load_add_on 12165 lt_cv_dlopen_libs= 12166 lt_cv_dlopen_self=yes 12167 ;; 12168 12169 mingw* | pw32* | cegcc*) 12170 lt_cv_dlopen=LoadLibrary 12171 lt_cv_dlopen_libs= 12172 ;; 12173 12174 cygwin*) 12175 lt_cv_dlopen=dlopen 12176 lt_cv_dlopen_libs= 12177 ;; 12178 12179 darwin*) 12180 # if libdl is installed we need to link against it 12181 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 12182printf %s "checking for dlopen in -ldl... " >&6; } 12183if test ${ac_cv_lib_dl_dlopen+y} 12184then : 12185 printf %s "(cached) " >&6 12186else $as_nop 12187 ac_check_lib_save_LIBS=$LIBS 12188LIBS="-ldl $LIBS" 12189cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12190/* end confdefs.h. */ 12191 12192/* Override any GCC internal prototype to avoid an error. 12193 Use char because int might match the return type of a GCC 12194 builtin and then its argument prototype would still apply. */ 12195char dlopen (); 12196int 12197main (void) 12198{ 12199return dlopen (); 12200 ; 12201 return 0; 12202} 12203_ACEOF 12204if ac_fn_c_try_link "$LINENO" 12205then : 12206 ac_cv_lib_dl_dlopen=yes 12207else $as_nop 12208 ac_cv_lib_dl_dlopen=no 12209fi 12210rm -f core conftest.err conftest.$ac_objext conftest.beam \ 12211 conftest$ac_exeext conftest.$ac_ext 12212LIBS=$ac_check_lib_save_LIBS 12213fi 12214{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 12215printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; } 12216if test "x$ac_cv_lib_dl_dlopen" = xyes 12217then : 12218 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 12219else $as_nop 12220 12221 lt_cv_dlopen=dyld 12222 lt_cv_dlopen_libs= 12223 lt_cv_dlopen_self=yes 12224 12225fi 12226 12227 ;; 12228 12229 tpf*) 12230 # Don't try to run any link tests for TPF. We know it's impossible 12231 # because TPF is a cross-compiler, and we know how we open DSOs. 12232 lt_cv_dlopen=dlopen 12233 lt_cv_dlopen_libs= 12234 lt_cv_dlopen_self=no 12235 ;; 12236 12237 *) 12238 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 12239if test "x$ac_cv_func_shl_load" = xyes 12240then : 12241 lt_cv_dlopen=shl_load 12242else $as_nop 12243 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 12244printf %s "checking for shl_load in -ldld... " >&6; } 12245if test ${ac_cv_lib_dld_shl_load+y} 12246then : 12247 printf %s "(cached) " >&6 12248else $as_nop 12249 ac_check_lib_save_LIBS=$LIBS 12250LIBS="-ldld $LIBS" 12251cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12252/* end confdefs.h. */ 12253 12254/* Override any GCC internal prototype to avoid an error. 12255 Use char because int might match the return type of a GCC 12256 builtin and then its argument prototype would still apply. */ 12257char shl_load (); 12258int 12259main (void) 12260{ 12261return shl_load (); 12262 ; 12263 return 0; 12264} 12265_ACEOF 12266if ac_fn_c_try_link "$LINENO" 12267then : 12268 ac_cv_lib_dld_shl_load=yes 12269else $as_nop 12270 ac_cv_lib_dld_shl_load=no 12271fi 12272rm -f core conftest.err conftest.$ac_objext conftest.beam \ 12273 conftest$ac_exeext conftest.$ac_ext 12274LIBS=$ac_check_lib_save_LIBS 12275fi 12276{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 12277printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; } 12278if test "x$ac_cv_lib_dld_shl_load" = xyes 12279then : 12280 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld 12281else $as_nop 12282 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 12283if test "x$ac_cv_func_dlopen" = xyes 12284then : 12285 lt_cv_dlopen=dlopen 12286else $as_nop 12287 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 12288printf %s "checking for dlopen in -ldl... " >&6; } 12289if test ${ac_cv_lib_dl_dlopen+y} 12290then : 12291 printf %s "(cached) " >&6 12292else $as_nop 12293 ac_check_lib_save_LIBS=$LIBS 12294LIBS="-ldl $LIBS" 12295cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12296/* end confdefs.h. */ 12297 12298/* Override any GCC internal prototype to avoid an error. 12299 Use char because int might match the return type of a GCC 12300 builtin and then its argument prototype would still apply. */ 12301char dlopen (); 12302int 12303main (void) 12304{ 12305return dlopen (); 12306 ; 12307 return 0; 12308} 12309_ACEOF 12310if ac_fn_c_try_link "$LINENO" 12311then : 12312 ac_cv_lib_dl_dlopen=yes 12313else $as_nop 12314 ac_cv_lib_dl_dlopen=no 12315fi 12316rm -f core conftest.err conftest.$ac_objext conftest.beam \ 12317 conftest$ac_exeext conftest.$ac_ext 12318LIBS=$ac_check_lib_save_LIBS 12319fi 12320{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 12321printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; } 12322if test "x$ac_cv_lib_dl_dlopen" = xyes 12323then : 12324 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 12325else $as_nop 12326 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 12327printf %s "checking for dlopen in -lsvld... " >&6; } 12328if test ${ac_cv_lib_svld_dlopen+y} 12329then : 12330 printf %s "(cached) " >&6 12331else $as_nop 12332 ac_check_lib_save_LIBS=$LIBS 12333LIBS="-lsvld $LIBS" 12334cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12335/* end confdefs.h. */ 12336 12337/* Override any GCC internal prototype to avoid an error. 12338 Use char because int might match the return type of a GCC 12339 builtin and then its argument prototype would still apply. */ 12340char dlopen (); 12341int 12342main (void) 12343{ 12344return dlopen (); 12345 ; 12346 return 0; 12347} 12348_ACEOF 12349if ac_fn_c_try_link "$LINENO" 12350then : 12351 ac_cv_lib_svld_dlopen=yes 12352else $as_nop 12353 ac_cv_lib_svld_dlopen=no 12354fi 12355rm -f core conftest.err conftest.$ac_objext conftest.beam \ 12356 conftest$ac_exeext conftest.$ac_ext 12357LIBS=$ac_check_lib_save_LIBS 12358fi 12359{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 12360printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; } 12361if test "x$ac_cv_lib_svld_dlopen" = xyes 12362then : 12363 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld 12364else $as_nop 12365 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 12366printf %s "checking for dld_link in -ldld... " >&6; } 12367if test ${ac_cv_lib_dld_dld_link+y} 12368then : 12369 printf %s "(cached) " >&6 12370else $as_nop 12371 ac_check_lib_save_LIBS=$LIBS 12372LIBS="-ldld $LIBS" 12373cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12374/* end confdefs.h. */ 12375 12376/* Override any GCC internal prototype to avoid an error. 12377 Use char because int might match the return type of a GCC 12378 builtin and then its argument prototype would still apply. */ 12379char dld_link (); 12380int 12381main (void) 12382{ 12383return dld_link (); 12384 ; 12385 return 0; 12386} 12387_ACEOF 12388if ac_fn_c_try_link "$LINENO" 12389then : 12390 ac_cv_lib_dld_dld_link=yes 12391else $as_nop 12392 ac_cv_lib_dld_dld_link=no 12393fi 12394rm -f core conftest.err conftest.$ac_objext conftest.beam \ 12395 conftest$ac_exeext conftest.$ac_ext 12396LIBS=$ac_check_lib_save_LIBS 12397fi 12398{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 12399printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; } 12400if test "x$ac_cv_lib_dld_dld_link" = xyes 12401then : 12402 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld 12403fi 12404 12405 12406fi 12407 12408 12409fi 12410 12411 12412fi 12413 12414 12415fi 12416 12417 12418fi 12419 12420 ;; 12421 esac 12422 12423 if test no = "$lt_cv_dlopen"; then 12424 enable_dlopen=no 12425 else 12426 enable_dlopen=yes 12427 fi 12428 12429 case $lt_cv_dlopen in 12430 dlopen) 12431 save_CPPFLAGS=$CPPFLAGS 12432 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 12433 12434 save_LDFLAGS=$LDFLAGS 12435 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 12436 12437 save_LIBS=$LIBS 12438 LIBS="$lt_cv_dlopen_libs $LIBS" 12439 12440 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 12441printf %s "checking whether a program can dlopen itself... " >&6; } 12442if test ${lt_cv_dlopen_self+y} 12443then : 12444 printf %s "(cached) " >&6 12445else $as_nop 12446 if test yes = "$cross_compiling"; then : 12447 lt_cv_dlopen_self=cross 12448else 12449 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 12450 lt_status=$lt_dlunknown 12451 cat > conftest.$ac_ext <<_LT_EOF 12452#line $LINENO "configure" 12453#include "confdefs.h" 12454 12455#if HAVE_DLFCN_H 12456#include <dlfcn.h> 12457#endif 12458 12459#include <stdio.h> 12460 12461#ifdef RTLD_GLOBAL 12462# define LT_DLGLOBAL RTLD_GLOBAL 12463#else 12464# ifdef DL_GLOBAL 12465# define LT_DLGLOBAL DL_GLOBAL 12466# else 12467# define LT_DLGLOBAL 0 12468# endif 12469#endif 12470 12471/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 12472 find out it does not work in some platform. */ 12473#ifndef LT_DLLAZY_OR_NOW 12474# ifdef RTLD_LAZY 12475# define LT_DLLAZY_OR_NOW RTLD_LAZY 12476# else 12477# ifdef DL_LAZY 12478# define LT_DLLAZY_OR_NOW DL_LAZY 12479# else 12480# ifdef RTLD_NOW 12481# define LT_DLLAZY_OR_NOW RTLD_NOW 12482# else 12483# ifdef DL_NOW 12484# define LT_DLLAZY_OR_NOW DL_NOW 12485# else 12486# define LT_DLLAZY_OR_NOW 0 12487# endif 12488# endif 12489# endif 12490# endif 12491#endif 12492 12493/* When -fvisibility=hidden is used, assume the code has been annotated 12494 correspondingly for the symbols needed. */ 12495#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 12496int fnord () __attribute__((visibility("default"))); 12497#endif 12498 12499int fnord () { return 42; } 12500int main () 12501{ 12502 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 12503 int status = $lt_dlunknown; 12504 12505 if (self) 12506 { 12507 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 12508 else 12509 { 12510 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 12511 else puts (dlerror ()); 12512 } 12513 /* dlclose (self); */ 12514 } 12515 else 12516 puts (dlerror ()); 12517 12518 return status; 12519} 12520_LT_EOF 12521 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 12522 (eval $ac_link) 2>&5 12523 ac_status=$? 12524 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12525 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 12526 (./conftest; exit; ) >&5 2>/dev/null 12527 lt_status=$? 12528 case x$lt_status in 12529 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 12530 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 12531 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 12532 esac 12533 else : 12534 # compilation failed 12535 lt_cv_dlopen_self=no 12536 fi 12537fi 12538rm -fr conftest* 12539 12540 12541fi 12542{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 12543printf "%s\n" "$lt_cv_dlopen_self" >&6; } 12544 12545 if test yes = "$lt_cv_dlopen_self"; then 12546 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 12547 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 12548printf %s "checking whether a statically linked program can dlopen itself... " >&6; } 12549if test ${lt_cv_dlopen_self_static+y} 12550then : 12551 printf %s "(cached) " >&6 12552else $as_nop 12553 if test yes = "$cross_compiling"; then : 12554 lt_cv_dlopen_self_static=cross 12555else 12556 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 12557 lt_status=$lt_dlunknown 12558 cat > conftest.$ac_ext <<_LT_EOF 12559#line $LINENO "configure" 12560#include "confdefs.h" 12561 12562#if HAVE_DLFCN_H 12563#include <dlfcn.h> 12564#endif 12565 12566#include <stdio.h> 12567 12568#ifdef RTLD_GLOBAL 12569# define LT_DLGLOBAL RTLD_GLOBAL 12570#else 12571# ifdef DL_GLOBAL 12572# define LT_DLGLOBAL DL_GLOBAL 12573# else 12574# define LT_DLGLOBAL 0 12575# endif 12576#endif 12577 12578/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 12579 find out it does not work in some platform. */ 12580#ifndef LT_DLLAZY_OR_NOW 12581# ifdef RTLD_LAZY 12582# define LT_DLLAZY_OR_NOW RTLD_LAZY 12583# else 12584# ifdef DL_LAZY 12585# define LT_DLLAZY_OR_NOW DL_LAZY 12586# else 12587# ifdef RTLD_NOW 12588# define LT_DLLAZY_OR_NOW RTLD_NOW 12589# else 12590# ifdef DL_NOW 12591# define LT_DLLAZY_OR_NOW DL_NOW 12592# else 12593# define LT_DLLAZY_OR_NOW 0 12594# endif 12595# endif 12596# endif 12597# endif 12598#endif 12599 12600/* When -fvisibility=hidden is used, assume the code has been annotated 12601 correspondingly for the symbols needed. */ 12602#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 12603int fnord () __attribute__((visibility("default"))); 12604#endif 12605 12606int fnord () { return 42; } 12607int main () 12608{ 12609 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 12610 int status = $lt_dlunknown; 12611 12612 if (self) 12613 { 12614 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 12615 else 12616 { 12617 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 12618 else puts (dlerror ()); 12619 } 12620 /* dlclose (self); */ 12621 } 12622 else 12623 puts (dlerror ()); 12624 12625 return status; 12626} 12627_LT_EOF 12628 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 12629 (eval $ac_link) 2>&5 12630 ac_status=$? 12631 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12632 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 12633 (./conftest; exit; ) >&5 2>/dev/null 12634 lt_status=$? 12635 case x$lt_status in 12636 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 12637 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 12638 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 12639 esac 12640 else : 12641 # compilation failed 12642 lt_cv_dlopen_self_static=no 12643 fi 12644fi 12645rm -fr conftest* 12646 12647 12648fi 12649{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 12650printf "%s\n" "$lt_cv_dlopen_self_static" >&6; } 12651 fi 12652 12653 CPPFLAGS=$save_CPPFLAGS 12654 LDFLAGS=$save_LDFLAGS 12655 LIBS=$save_LIBS 12656 ;; 12657 esac 12658 12659 case $lt_cv_dlopen_self in 12660 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 12661 *) enable_dlopen_self=unknown ;; 12662 esac 12663 12664 case $lt_cv_dlopen_self_static in 12665 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 12666 *) enable_dlopen_self_static=unknown ;; 12667 esac 12668fi 12669 12670 12671 12672 12673 12674 12675 12676 12677 12678 12679 12680 12681 12682 12683 12684 12685 12686striplib= 12687old_striplib= 12688{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 12689printf %s "checking whether stripping libraries is possible... " >&6; } 12690if test -z "$STRIP"; then 12691 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12692printf "%s\n" "no" >&6; } 12693else 12694 if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 12695 old_striplib="$STRIP --strip-debug" 12696 striplib="$STRIP --strip-unneeded" 12697 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12698printf "%s\n" "yes" >&6; } 12699 else 12700 case $host_os in 12701 darwin*) 12702 # FIXME - insert some real tests, host_os isn't really good enough 12703 striplib="$STRIP -x" 12704 old_striplib="$STRIP -S" 12705 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12706printf "%s\n" "yes" >&6; } 12707 ;; 12708 freebsd*) 12709 if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then 12710 old_striplib="$STRIP --strip-debug" 12711 striplib="$STRIP --strip-unneeded" 12712 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12713printf "%s\n" "yes" >&6; } 12714 else 12715 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12716printf "%s\n" "no" >&6; } 12717 fi 12718 ;; 12719 *) 12720 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12721printf "%s\n" "no" >&6; } 12722 ;; 12723 esac 12724 fi 12725fi 12726 12727 12728 12729 12730 12731 12732 12733 12734 12735 12736 12737 12738 # Report what library types will actually be built 12739 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 12740printf %s "checking if libtool supports shared libraries... " >&6; } 12741 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 12742printf "%s\n" "$can_build_shared" >&6; } 12743 12744 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 12745printf %s "checking whether to build shared libraries... " >&6; } 12746 test no = "$can_build_shared" && enable_shared=no 12747 12748 # On AIX, shared libraries and static libraries use the same namespace, and 12749 # are all built from PIC. 12750 case $host_os in 12751 aix3*) 12752 test yes = "$enable_shared" && enable_static=no 12753 if test -n "$RANLIB"; then 12754 archive_cmds="$archive_cmds~\$RANLIB \$lib" 12755 postinstall_cmds='$RANLIB $lib' 12756 fi 12757 ;; 12758 12759 aix[4-9]*) 12760 if test ia64 != "$host_cpu"; then 12761 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in 12762 yes,aix,yes) ;; # shared object as lib.so file only 12763 yes,svr4,*) ;; # shared object as lib.so archive member only 12764 yes,*) enable_static=no ;; # shared object in lib.a archive as well 12765 esac 12766 fi 12767 ;; 12768 esac 12769 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 12770printf "%s\n" "$enable_shared" >&6; } 12771 12772 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 12773printf %s "checking whether to build static libraries... " >&6; } 12774 # Make sure either enable_shared or enable_static is yes. 12775 test yes = "$enable_shared" || enable_static=yes 12776 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 12777printf "%s\n" "$enable_static" >&6; } 12778 12779 12780 12781 12782fi 12783ac_ext=c 12784ac_cpp='$CPP $CPPFLAGS' 12785ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12786ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12787ac_compiler_gnu=$ac_cv_c_compiler_gnu 12788 12789CC=$lt_save_CC 12790 12791 12792 12793 12794 12795 12796 12797 12798 12799 12800 12801 12802 12803 12804 12805 ac_config_commands="$ac_config_commands libtool" 12806 12807 12808 12809 12810# Only expand once: 12811 12812 12813 12814# Require xorg-macros minimum of 1.12 for DocBook external references 12815 12816 12817 12818 12819 12820 12821 12822 12823 12824 12825 12826{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5 12827printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; } 12828if test ${ac_cv_c_undeclared_builtin_options+y} 12829then : 12830 printf %s "(cached) " >&6 12831else $as_nop 12832 ac_save_CFLAGS=$CFLAGS 12833 ac_cv_c_undeclared_builtin_options='cannot detect' 12834 for ac_arg in '' -fno-builtin; do 12835 CFLAGS="$ac_save_CFLAGS $ac_arg" 12836 # This test program should *not* compile successfully. 12837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12838/* end confdefs.h. */ 12839 12840int 12841main (void) 12842{ 12843(void) strchr; 12844 ; 12845 return 0; 12846} 12847_ACEOF 12848if ac_fn_c_try_compile "$LINENO" 12849then : 12850 12851else $as_nop 12852 # This test program should compile successfully. 12853 # No library function is consistently available on 12854 # freestanding implementations, so test against a dummy 12855 # declaration. Include always-available headers on the 12856 # off chance that they somehow elicit warnings. 12857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12858/* end confdefs.h. */ 12859#include <float.h> 12860#include <limits.h> 12861#include <stdarg.h> 12862#include <stddef.h> 12863extern void ac_decl (int, char *); 12864 12865int 12866main (void) 12867{ 12868(void) ac_decl (0, (char *) 0); 12869 (void) ac_decl; 12870 12871 ; 12872 return 0; 12873} 12874_ACEOF 12875if ac_fn_c_try_compile "$LINENO" 12876then : 12877 if test x"$ac_arg" = x 12878then : 12879 ac_cv_c_undeclared_builtin_options='none needed' 12880else $as_nop 12881 ac_cv_c_undeclared_builtin_options=$ac_arg 12882fi 12883 break 12884fi 12885rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 12886fi 12887rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 12888 done 12889 CFLAGS=$ac_save_CFLAGS 12890 12891fi 12892{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5 12893printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; } 12894 case $ac_cv_c_undeclared_builtin_options in #( 12895 'cannot detect') : 12896 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 12897printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 12898as_fn_error $? "cannot make $CC report undeclared builtins 12899See \`config.log' for more details" "$LINENO" 5; } ;; #( 12900 'none needed') : 12901 ac_c_undeclared_builtin_options='' ;; #( 12902 *) : 12903 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;; 12904esac 12905 12906 12907 12908 12909 12910ac_fn_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 12911if test "x$ac_cv_have_decl___clang__" = xyes 12912then : 12913 CLANGCC="yes" 12914else $as_nop 12915 CLANGCC="no" 12916fi 12917ac_fn_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 12918if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes 12919then : 12920 INTELCC="yes" 12921else $as_nop 12922 INTELCC="no" 12923fi 12924ac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 12925if test "x$ac_cv_have_decl___SUNPRO_C" = xyes 12926then : 12927 SUNCC="yes" 12928else $as_nop 12929 SUNCC="no" 12930fi 12931 12932 12933 12934 12935 12936 12937 12938 12939if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 12940 if test -n "$ac_tool_prefix"; then 12941 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 12942set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 12943{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12944printf %s "checking for $ac_word... " >&6; } 12945if test ${ac_cv_path_PKG_CONFIG+y} 12946then : 12947 printf %s "(cached) " >&6 12948else $as_nop 12949 case $PKG_CONFIG in 12950 [\\/]* | ?:[\\/]*) 12951 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 12952 ;; 12953 *) 12954 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12955for as_dir in $PATH 12956do 12957 IFS=$as_save_IFS 12958 case $as_dir in #((( 12959 '') as_dir=./ ;; 12960 */) ;; 12961 *) as_dir=$as_dir/ ;; 12962 esac 12963 for ac_exec_ext in '' $ac_executable_extensions; do 12964 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 12965 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 12966 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 12967 break 2 12968 fi 12969done 12970 done 12971IFS=$as_save_IFS 12972 12973 ;; 12974esac 12975fi 12976PKG_CONFIG=$ac_cv_path_PKG_CONFIG 12977if test -n "$PKG_CONFIG"; then 12978 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 12979printf "%s\n" "$PKG_CONFIG" >&6; } 12980else 12981 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12982printf "%s\n" "no" >&6; } 12983fi 12984 12985 12986fi 12987if test -z "$ac_cv_path_PKG_CONFIG"; then 12988 ac_pt_PKG_CONFIG=$PKG_CONFIG 12989 # Extract the first word of "pkg-config", so it can be a program name with args. 12990set dummy pkg-config; ac_word=$2 12991{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12992printf %s "checking for $ac_word... " >&6; } 12993if test ${ac_cv_path_ac_pt_PKG_CONFIG+y} 12994then : 12995 printf %s "(cached) " >&6 12996else $as_nop 12997 case $ac_pt_PKG_CONFIG in 12998 [\\/]* | ?:[\\/]*) 12999 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 13000 ;; 13001 *) 13002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13003for as_dir in $PATH 13004do 13005 IFS=$as_save_IFS 13006 case $as_dir in #((( 13007 '') as_dir=./ ;; 13008 */) ;; 13009 *) as_dir=$as_dir/ ;; 13010 esac 13011 for ac_exec_ext in '' $ac_executable_extensions; do 13012 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 13013 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 13014 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 13015 break 2 13016 fi 13017done 13018 done 13019IFS=$as_save_IFS 13020 13021 ;; 13022esac 13023fi 13024ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 13025if test -n "$ac_pt_PKG_CONFIG"; then 13026 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 13027printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; } 13028else 13029 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13030printf "%s\n" "no" >&6; } 13031fi 13032 13033 if test "x$ac_pt_PKG_CONFIG" = x; then 13034 PKG_CONFIG="" 13035 else 13036 case $cross_compiling:$ac_tool_warned in 13037yes:) 13038{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13039printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13040ac_tool_warned=yes ;; 13041esac 13042 PKG_CONFIG=$ac_pt_PKG_CONFIG 13043 fi 13044else 13045 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 13046fi 13047 13048fi 13049if test -n "$PKG_CONFIG"; then 13050 _pkg_min_version=0.9.0 13051 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 13052printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; } 13053 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 13054 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13055printf "%s\n" "yes" >&6; } 13056 else 13057 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13058printf "%s\n" "no" >&6; } 13059 PKG_CONFIG="" 13060 fi 13061fi 13062 13063 13064 13065 13066 13067# Check whether --enable-selective-werror was given. 13068if test ${enable_selective_werror+y} 13069then : 13070 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval 13071else $as_nop 13072 SELECTIVE_WERROR=yes 13073fi 13074 13075 13076 13077 13078 13079# -v is too short to test reliably with XORG_TESTSET_CFLAG 13080if test "x$SUNCC" = "xyes"; then 13081 BASE_CFLAGS="-v" 13082else 13083 BASE_CFLAGS="" 13084fi 13085 13086# This chunk of warnings were those that existed in the legacy CWARNFLAGS 13087 13088 13089 13090 13091 13092 13093 13094 13095 13096 13097 13098 13099 13100xorg_testset_save_CFLAGS="$CFLAGS" 13101 13102if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13103 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13104 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13105printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13106if test ${xorg_cv_cc_flag_unknown_warning_option+y} 13107then : 13108 printf %s "(cached) " >&6 13109else $as_nop 13110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13111/* end confdefs.h. */ 13112int i; 13113_ACEOF 13114if ac_fn_c_try_compile "$LINENO" 13115then : 13116 xorg_cv_cc_flag_unknown_warning_option=yes 13117else $as_nop 13118 xorg_cv_cc_flag_unknown_warning_option=no 13119fi 13120rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13121fi 13122{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13123printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13124 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13125 CFLAGS="$xorg_testset_save_CFLAGS" 13126fi 13127 13128if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13129 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13130 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13131 fi 13132 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13133 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13134printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13135if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 13136then : 13137 printf %s "(cached) " >&6 13138else $as_nop 13139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13140/* end confdefs.h. */ 13141int i; 13142_ACEOF 13143if ac_fn_c_try_compile "$LINENO" 13144then : 13145 xorg_cv_cc_flag_unused_command_line_argument=yes 13146else $as_nop 13147 xorg_cv_cc_flag_unused_command_line_argument=no 13148fi 13149rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13150fi 13151{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13152printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13153 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13154 CFLAGS="$xorg_testset_save_CFLAGS" 13155fi 13156 13157found="no" 13158 13159 if test $found = "no" ; then 13160 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13161 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13162 fi 13163 13164 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13165 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13166 fi 13167 13168 CFLAGS="$CFLAGS -Wall" 13169 13170 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5 13171printf %s "checking if $CC supports -Wall... " >&6; } 13172 cacheid=xorg_cv_cc_flag__Wall 13173 if eval test \${$cacheid+y} 13174then : 13175 printf %s "(cached) " >&6 13176else $as_nop 13177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13178/* end confdefs.h. */ 13179int i; 13180int 13181main (void) 13182{ 13183 13184 ; 13185 return 0; 13186} 13187_ACEOF 13188if ac_fn_c_try_link "$LINENO" 13189then : 13190 eval $cacheid=yes 13191else $as_nop 13192 eval $cacheid=no 13193fi 13194rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13195 conftest$ac_exeext conftest.$ac_ext 13196fi 13197 13198 13199 CFLAGS="$xorg_testset_save_CFLAGS" 13200 13201 eval supported=\$$cacheid 13202 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13203printf "%s\n" "$supported" >&6; } 13204 if test "$supported" = "yes" ; then 13205 BASE_CFLAGS="$BASE_CFLAGS -Wall" 13206 found="yes" 13207 fi 13208 fi 13209 13210 13211 13212 13213 13214 13215 13216 13217 13218 13219 13220 13221 13222 13223 13224xorg_testset_save_CFLAGS="$CFLAGS" 13225 13226if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13227 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13228 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13229printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13230if test ${xorg_cv_cc_flag_unknown_warning_option+y} 13231then : 13232 printf %s "(cached) " >&6 13233else $as_nop 13234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13235/* end confdefs.h. */ 13236int i; 13237_ACEOF 13238if ac_fn_c_try_compile "$LINENO" 13239then : 13240 xorg_cv_cc_flag_unknown_warning_option=yes 13241else $as_nop 13242 xorg_cv_cc_flag_unknown_warning_option=no 13243fi 13244rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13245fi 13246{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13247printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13248 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13249 CFLAGS="$xorg_testset_save_CFLAGS" 13250fi 13251 13252if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13253 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13254 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13255 fi 13256 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13257 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13258printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13259if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 13260then : 13261 printf %s "(cached) " >&6 13262else $as_nop 13263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13264/* end confdefs.h. */ 13265int i; 13266_ACEOF 13267if ac_fn_c_try_compile "$LINENO" 13268then : 13269 xorg_cv_cc_flag_unused_command_line_argument=yes 13270else $as_nop 13271 xorg_cv_cc_flag_unused_command_line_argument=no 13272fi 13273rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13274fi 13275{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13276printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13277 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13278 CFLAGS="$xorg_testset_save_CFLAGS" 13279fi 13280 13281found="no" 13282 13283 if test $found = "no" ; then 13284 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13285 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13286 fi 13287 13288 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13289 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13290 fi 13291 13292 CFLAGS="$CFLAGS -Wpointer-arith" 13293 13294 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5 13295printf %s "checking if $CC supports -Wpointer-arith... " >&6; } 13296 cacheid=xorg_cv_cc_flag__Wpointer_arith 13297 if eval test \${$cacheid+y} 13298then : 13299 printf %s "(cached) " >&6 13300else $as_nop 13301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13302/* end confdefs.h. */ 13303int i; 13304int 13305main (void) 13306{ 13307 13308 ; 13309 return 0; 13310} 13311_ACEOF 13312if ac_fn_c_try_link "$LINENO" 13313then : 13314 eval $cacheid=yes 13315else $as_nop 13316 eval $cacheid=no 13317fi 13318rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13319 conftest$ac_exeext conftest.$ac_ext 13320fi 13321 13322 13323 CFLAGS="$xorg_testset_save_CFLAGS" 13324 13325 eval supported=\$$cacheid 13326 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13327printf "%s\n" "$supported" >&6; } 13328 if test "$supported" = "yes" ; then 13329 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith" 13330 found="yes" 13331 fi 13332 fi 13333 13334 13335 13336 13337 13338 13339 13340 13341 13342 13343 13344 13345 13346 13347 13348xorg_testset_save_CFLAGS="$CFLAGS" 13349 13350if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13351 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13352 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13353printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13354if test ${xorg_cv_cc_flag_unknown_warning_option+y} 13355then : 13356 printf %s "(cached) " >&6 13357else $as_nop 13358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13359/* end confdefs.h. */ 13360int i; 13361_ACEOF 13362if ac_fn_c_try_compile "$LINENO" 13363then : 13364 xorg_cv_cc_flag_unknown_warning_option=yes 13365else $as_nop 13366 xorg_cv_cc_flag_unknown_warning_option=no 13367fi 13368rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13369fi 13370{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13371printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13372 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13373 CFLAGS="$xorg_testset_save_CFLAGS" 13374fi 13375 13376if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13377 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13378 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13379 fi 13380 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13381 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13382printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13383if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 13384then : 13385 printf %s "(cached) " >&6 13386else $as_nop 13387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13388/* end confdefs.h. */ 13389int i; 13390_ACEOF 13391if ac_fn_c_try_compile "$LINENO" 13392then : 13393 xorg_cv_cc_flag_unused_command_line_argument=yes 13394else $as_nop 13395 xorg_cv_cc_flag_unused_command_line_argument=no 13396fi 13397rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13398fi 13399{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13400printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13401 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13402 CFLAGS="$xorg_testset_save_CFLAGS" 13403fi 13404 13405found="no" 13406 13407 if test $found = "no" ; then 13408 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13409 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13410 fi 13411 13412 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13413 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13414 fi 13415 13416 CFLAGS="$CFLAGS -Wmissing-declarations" 13417 13418 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5 13419printf %s "checking if $CC supports -Wmissing-declarations... " >&6; } 13420 cacheid=xorg_cv_cc_flag__Wmissing_declarations 13421 if eval test \${$cacheid+y} 13422then : 13423 printf %s "(cached) " >&6 13424else $as_nop 13425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13426/* end confdefs.h. */ 13427int i; 13428int 13429main (void) 13430{ 13431 13432 ; 13433 return 0; 13434} 13435_ACEOF 13436if ac_fn_c_try_link "$LINENO" 13437then : 13438 eval $cacheid=yes 13439else $as_nop 13440 eval $cacheid=no 13441fi 13442rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13443 conftest$ac_exeext conftest.$ac_ext 13444fi 13445 13446 13447 CFLAGS="$xorg_testset_save_CFLAGS" 13448 13449 eval supported=\$$cacheid 13450 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13451printf "%s\n" "$supported" >&6; } 13452 if test "$supported" = "yes" ; then 13453 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations" 13454 found="yes" 13455 fi 13456 fi 13457 13458 13459 13460 13461 13462 13463 13464 13465 13466 13467 13468 13469 13470 13471 13472xorg_testset_save_CFLAGS="$CFLAGS" 13473 13474if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13475 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13476 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13477printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13478if test ${xorg_cv_cc_flag_unknown_warning_option+y} 13479then : 13480 printf %s "(cached) " >&6 13481else $as_nop 13482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13483/* end confdefs.h. */ 13484int i; 13485_ACEOF 13486if ac_fn_c_try_compile "$LINENO" 13487then : 13488 xorg_cv_cc_flag_unknown_warning_option=yes 13489else $as_nop 13490 xorg_cv_cc_flag_unknown_warning_option=no 13491fi 13492rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13493fi 13494{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13495printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13496 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13497 CFLAGS="$xorg_testset_save_CFLAGS" 13498fi 13499 13500if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13501 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13502 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13503 fi 13504 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13505 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13506printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13507if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 13508then : 13509 printf %s "(cached) " >&6 13510else $as_nop 13511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13512/* end confdefs.h. */ 13513int i; 13514_ACEOF 13515if ac_fn_c_try_compile "$LINENO" 13516then : 13517 xorg_cv_cc_flag_unused_command_line_argument=yes 13518else $as_nop 13519 xorg_cv_cc_flag_unused_command_line_argument=no 13520fi 13521rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13522fi 13523{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13524printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13525 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13526 CFLAGS="$xorg_testset_save_CFLAGS" 13527fi 13528 13529found="no" 13530 13531 if test $found = "no" ; then 13532 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13533 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13534 fi 13535 13536 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13537 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13538 fi 13539 13540 CFLAGS="$CFLAGS -Wformat=2" 13541 13542 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5 13543printf %s "checking if $CC supports -Wformat=2... " >&6; } 13544 cacheid=xorg_cv_cc_flag__Wformat_2 13545 if eval test \${$cacheid+y} 13546then : 13547 printf %s "(cached) " >&6 13548else $as_nop 13549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13550/* end confdefs.h. */ 13551int i; 13552int 13553main (void) 13554{ 13555 13556 ; 13557 return 0; 13558} 13559_ACEOF 13560if ac_fn_c_try_link "$LINENO" 13561then : 13562 eval $cacheid=yes 13563else $as_nop 13564 eval $cacheid=no 13565fi 13566rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13567 conftest$ac_exeext conftest.$ac_ext 13568fi 13569 13570 13571 CFLAGS="$xorg_testset_save_CFLAGS" 13572 13573 eval supported=\$$cacheid 13574 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13575printf "%s\n" "$supported" >&6; } 13576 if test "$supported" = "yes" ; then 13577 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2" 13578 found="yes" 13579 fi 13580 fi 13581 13582 if test $found = "no" ; then 13583 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13584 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13585 fi 13586 13587 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13588 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13589 fi 13590 13591 CFLAGS="$CFLAGS -Wformat" 13592 13593 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5 13594printf %s "checking if $CC supports -Wformat... " >&6; } 13595 cacheid=xorg_cv_cc_flag__Wformat 13596 if eval test \${$cacheid+y} 13597then : 13598 printf %s "(cached) " >&6 13599else $as_nop 13600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13601/* end confdefs.h. */ 13602int i; 13603int 13604main (void) 13605{ 13606 13607 ; 13608 return 0; 13609} 13610_ACEOF 13611if ac_fn_c_try_link "$LINENO" 13612then : 13613 eval $cacheid=yes 13614else $as_nop 13615 eval $cacheid=no 13616fi 13617rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13618 conftest$ac_exeext conftest.$ac_ext 13619fi 13620 13621 13622 CFLAGS="$xorg_testset_save_CFLAGS" 13623 13624 eval supported=\$$cacheid 13625 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13626printf "%s\n" "$supported" >&6; } 13627 if test "$supported" = "yes" ; then 13628 BASE_CFLAGS="$BASE_CFLAGS -Wformat" 13629 found="yes" 13630 fi 13631 fi 13632 13633 13634 13635 13636 13637 13638 13639 13640 13641 13642 13643 13644 13645 13646 13647 13648 13649xorg_testset_save_CFLAGS="$CFLAGS" 13650 13651if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13652 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13653 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13654printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13655if test ${xorg_cv_cc_flag_unknown_warning_option+y} 13656then : 13657 printf %s "(cached) " >&6 13658else $as_nop 13659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13660/* end confdefs.h. */ 13661int i; 13662_ACEOF 13663if ac_fn_c_try_compile "$LINENO" 13664then : 13665 xorg_cv_cc_flag_unknown_warning_option=yes 13666else $as_nop 13667 xorg_cv_cc_flag_unknown_warning_option=no 13668fi 13669rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13670fi 13671{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13672printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13673 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13674 CFLAGS="$xorg_testset_save_CFLAGS" 13675fi 13676 13677if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13678 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13679 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13680 fi 13681 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13682 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13683printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13684if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 13685then : 13686 printf %s "(cached) " >&6 13687else $as_nop 13688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13689/* end confdefs.h. */ 13690int i; 13691_ACEOF 13692if ac_fn_c_try_compile "$LINENO" 13693then : 13694 xorg_cv_cc_flag_unused_command_line_argument=yes 13695else $as_nop 13696 xorg_cv_cc_flag_unused_command_line_argument=no 13697fi 13698rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13699fi 13700{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13701printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13702 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13703 CFLAGS="$xorg_testset_save_CFLAGS" 13704fi 13705 13706found="no" 13707 13708 if test $found = "no" ; then 13709 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13710 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13711 fi 13712 13713 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13714 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13715 fi 13716 13717 CFLAGS="$CFLAGS -Wstrict-prototypes" 13718 13719 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5 13720printf %s "checking if $CC supports -Wstrict-prototypes... " >&6; } 13721 cacheid=xorg_cv_cc_flag__Wstrict_prototypes 13722 if eval test \${$cacheid+y} 13723then : 13724 printf %s "(cached) " >&6 13725else $as_nop 13726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13727/* end confdefs.h. */ 13728int i; 13729int 13730main (void) 13731{ 13732 13733 ; 13734 return 0; 13735} 13736_ACEOF 13737if ac_fn_c_try_link "$LINENO" 13738then : 13739 eval $cacheid=yes 13740else $as_nop 13741 eval $cacheid=no 13742fi 13743rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13744 conftest$ac_exeext conftest.$ac_ext 13745fi 13746 13747 13748 CFLAGS="$xorg_testset_save_CFLAGS" 13749 13750 eval supported=\$$cacheid 13751 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13752printf "%s\n" "$supported" >&6; } 13753 if test "$supported" = "yes" ; then 13754 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes" 13755 found="yes" 13756 fi 13757 fi 13758 13759 13760 13761 13762 13763 13764 13765 13766 13767 13768 13769 13770 13771 13772 13773xorg_testset_save_CFLAGS="$CFLAGS" 13774 13775if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13776 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13777 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13778printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13779if test ${xorg_cv_cc_flag_unknown_warning_option+y} 13780then : 13781 printf %s "(cached) " >&6 13782else $as_nop 13783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13784/* end confdefs.h. */ 13785int i; 13786_ACEOF 13787if ac_fn_c_try_compile "$LINENO" 13788then : 13789 xorg_cv_cc_flag_unknown_warning_option=yes 13790else $as_nop 13791 xorg_cv_cc_flag_unknown_warning_option=no 13792fi 13793rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13794fi 13795{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13796printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13797 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13798 CFLAGS="$xorg_testset_save_CFLAGS" 13799fi 13800 13801if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13802 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13803 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13804 fi 13805 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13806 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13807printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13808if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 13809then : 13810 printf %s "(cached) " >&6 13811else $as_nop 13812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13813/* end confdefs.h. */ 13814int i; 13815_ACEOF 13816if ac_fn_c_try_compile "$LINENO" 13817then : 13818 xorg_cv_cc_flag_unused_command_line_argument=yes 13819else $as_nop 13820 xorg_cv_cc_flag_unused_command_line_argument=no 13821fi 13822rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13823fi 13824{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13825printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13826 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13827 CFLAGS="$xorg_testset_save_CFLAGS" 13828fi 13829 13830found="no" 13831 13832 if test $found = "no" ; then 13833 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13834 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13835 fi 13836 13837 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13838 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13839 fi 13840 13841 CFLAGS="$CFLAGS -Wmissing-prototypes" 13842 13843 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5 13844printf %s "checking if $CC supports -Wmissing-prototypes... " >&6; } 13845 cacheid=xorg_cv_cc_flag__Wmissing_prototypes 13846 if eval test \${$cacheid+y} 13847then : 13848 printf %s "(cached) " >&6 13849else $as_nop 13850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13851/* end confdefs.h. */ 13852int i; 13853int 13854main (void) 13855{ 13856 13857 ; 13858 return 0; 13859} 13860_ACEOF 13861if ac_fn_c_try_link "$LINENO" 13862then : 13863 eval $cacheid=yes 13864else $as_nop 13865 eval $cacheid=no 13866fi 13867rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13868 conftest$ac_exeext conftest.$ac_ext 13869fi 13870 13871 13872 CFLAGS="$xorg_testset_save_CFLAGS" 13873 13874 eval supported=\$$cacheid 13875 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13876printf "%s\n" "$supported" >&6; } 13877 if test "$supported" = "yes" ; then 13878 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes" 13879 found="yes" 13880 fi 13881 fi 13882 13883 13884 13885 13886 13887 13888 13889 13890 13891 13892 13893 13894 13895 13896 13897xorg_testset_save_CFLAGS="$CFLAGS" 13898 13899if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13900 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13901 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13902printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13903if test ${xorg_cv_cc_flag_unknown_warning_option+y} 13904then : 13905 printf %s "(cached) " >&6 13906else $as_nop 13907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13908/* end confdefs.h. */ 13909int i; 13910_ACEOF 13911if ac_fn_c_try_compile "$LINENO" 13912then : 13913 xorg_cv_cc_flag_unknown_warning_option=yes 13914else $as_nop 13915 xorg_cv_cc_flag_unknown_warning_option=no 13916fi 13917rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13918fi 13919{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13920printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13921 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13922 CFLAGS="$xorg_testset_save_CFLAGS" 13923fi 13924 13925if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13926 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13927 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13928 fi 13929 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13930 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13931printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13932if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 13933then : 13934 printf %s "(cached) " >&6 13935else $as_nop 13936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13937/* end confdefs.h. */ 13938int i; 13939_ACEOF 13940if ac_fn_c_try_compile "$LINENO" 13941then : 13942 xorg_cv_cc_flag_unused_command_line_argument=yes 13943else $as_nop 13944 xorg_cv_cc_flag_unused_command_line_argument=no 13945fi 13946rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13947fi 13948{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13949printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13950 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13951 CFLAGS="$xorg_testset_save_CFLAGS" 13952fi 13953 13954found="no" 13955 13956 if test $found = "no" ; then 13957 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13958 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13959 fi 13960 13961 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13962 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13963 fi 13964 13965 CFLAGS="$CFLAGS -Wnested-externs" 13966 13967 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5 13968printf %s "checking if $CC supports -Wnested-externs... " >&6; } 13969 cacheid=xorg_cv_cc_flag__Wnested_externs 13970 if eval test \${$cacheid+y} 13971then : 13972 printf %s "(cached) " >&6 13973else $as_nop 13974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13975/* end confdefs.h. */ 13976int i; 13977int 13978main (void) 13979{ 13980 13981 ; 13982 return 0; 13983} 13984_ACEOF 13985if ac_fn_c_try_link "$LINENO" 13986then : 13987 eval $cacheid=yes 13988else $as_nop 13989 eval $cacheid=no 13990fi 13991rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13992 conftest$ac_exeext conftest.$ac_ext 13993fi 13994 13995 13996 CFLAGS="$xorg_testset_save_CFLAGS" 13997 13998 eval supported=\$$cacheid 13999 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14000printf "%s\n" "$supported" >&6; } 14001 if test "$supported" = "yes" ; then 14002 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs" 14003 found="yes" 14004 fi 14005 fi 14006 14007 14008 14009 14010 14011 14012 14013 14014 14015 14016 14017 14018 14019 14020 14021xorg_testset_save_CFLAGS="$CFLAGS" 14022 14023if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14024 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14025 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14026printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14027if test ${xorg_cv_cc_flag_unknown_warning_option+y} 14028then : 14029 printf %s "(cached) " >&6 14030else $as_nop 14031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14032/* end confdefs.h. */ 14033int i; 14034_ACEOF 14035if ac_fn_c_try_compile "$LINENO" 14036then : 14037 xorg_cv_cc_flag_unknown_warning_option=yes 14038else $as_nop 14039 xorg_cv_cc_flag_unknown_warning_option=no 14040fi 14041rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14042fi 14043{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14044printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14045 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14046 CFLAGS="$xorg_testset_save_CFLAGS" 14047fi 14048 14049if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14050 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14051 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14052 fi 14053 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14054 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14055printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14056if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 14057then : 14058 printf %s "(cached) " >&6 14059else $as_nop 14060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14061/* end confdefs.h. */ 14062int i; 14063_ACEOF 14064if ac_fn_c_try_compile "$LINENO" 14065then : 14066 xorg_cv_cc_flag_unused_command_line_argument=yes 14067else $as_nop 14068 xorg_cv_cc_flag_unused_command_line_argument=no 14069fi 14070rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14071fi 14072{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14073printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14074 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14075 CFLAGS="$xorg_testset_save_CFLAGS" 14076fi 14077 14078found="no" 14079 14080 if test $found = "no" ; then 14081 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14082 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14083 fi 14084 14085 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14086 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14087 fi 14088 14089 CFLAGS="$CFLAGS -Wbad-function-cast" 14090 14091 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5 14092printf %s "checking if $CC supports -Wbad-function-cast... " >&6; } 14093 cacheid=xorg_cv_cc_flag__Wbad_function_cast 14094 if eval test \${$cacheid+y} 14095then : 14096 printf %s "(cached) " >&6 14097else $as_nop 14098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14099/* end confdefs.h. */ 14100int i; 14101int 14102main (void) 14103{ 14104 14105 ; 14106 return 0; 14107} 14108_ACEOF 14109if ac_fn_c_try_link "$LINENO" 14110then : 14111 eval $cacheid=yes 14112else $as_nop 14113 eval $cacheid=no 14114fi 14115rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14116 conftest$ac_exeext conftest.$ac_ext 14117fi 14118 14119 14120 CFLAGS="$xorg_testset_save_CFLAGS" 14121 14122 eval supported=\$$cacheid 14123 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14124printf "%s\n" "$supported" >&6; } 14125 if test "$supported" = "yes" ; then 14126 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast" 14127 found="yes" 14128 fi 14129 fi 14130 14131 14132 14133 14134 14135 14136 14137 14138 14139 14140 14141 14142 14143 14144 14145xorg_testset_save_CFLAGS="$CFLAGS" 14146 14147if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14148 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14149 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14150printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14151if test ${xorg_cv_cc_flag_unknown_warning_option+y} 14152then : 14153 printf %s "(cached) " >&6 14154else $as_nop 14155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14156/* end confdefs.h. */ 14157int i; 14158_ACEOF 14159if ac_fn_c_try_compile "$LINENO" 14160then : 14161 xorg_cv_cc_flag_unknown_warning_option=yes 14162else $as_nop 14163 xorg_cv_cc_flag_unknown_warning_option=no 14164fi 14165rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14166fi 14167{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14168printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14169 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14170 CFLAGS="$xorg_testset_save_CFLAGS" 14171fi 14172 14173if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14174 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14175 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14176 fi 14177 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14178 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14179printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14180if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 14181then : 14182 printf %s "(cached) " >&6 14183else $as_nop 14184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14185/* end confdefs.h. */ 14186int i; 14187_ACEOF 14188if ac_fn_c_try_compile "$LINENO" 14189then : 14190 xorg_cv_cc_flag_unused_command_line_argument=yes 14191else $as_nop 14192 xorg_cv_cc_flag_unused_command_line_argument=no 14193fi 14194rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14195fi 14196{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14197printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14198 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14199 CFLAGS="$xorg_testset_save_CFLAGS" 14200fi 14201 14202found="no" 14203 14204 if test $found = "no" ; then 14205 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14206 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14207 fi 14208 14209 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14210 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14211 fi 14212 14213 CFLAGS="$CFLAGS -Wold-style-definition" 14214 14215 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5 14216printf %s "checking if $CC supports -Wold-style-definition... " >&6; } 14217 cacheid=xorg_cv_cc_flag__Wold_style_definition 14218 if eval test \${$cacheid+y} 14219then : 14220 printf %s "(cached) " >&6 14221else $as_nop 14222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14223/* end confdefs.h. */ 14224int i; 14225int 14226main (void) 14227{ 14228 14229 ; 14230 return 0; 14231} 14232_ACEOF 14233if ac_fn_c_try_link "$LINENO" 14234then : 14235 eval $cacheid=yes 14236else $as_nop 14237 eval $cacheid=no 14238fi 14239rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14240 conftest$ac_exeext conftest.$ac_ext 14241fi 14242 14243 14244 CFLAGS="$xorg_testset_save_CFLAGS" 14245 14246 eval supported=\$$cacheid 14247 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14248printf "%s\n" "$supported" >&6; } 14249 if test "$supported" = "yes" ; then 14250 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition" 14251 found="yes" 14252 fi 14253 fi 14254 14255 if test $found = "no" ; then 14256 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14257 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14258 fi 14259 14260 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14261 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14262 fi 14263 14264 CFLAGS="$CFLAGS -fd" 14265 14266 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5 14267printf %s "checking if $CC supports -fd... " >&6; } 14268 cacheid=xorg_cv_cc_flag__fd 14269 if eval test \${$cacheid+y} 14270then : 14271 printf %s "(cached) " >&6 14272else $as_nop 14273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14274/* end confdefs.h. */ 14275int i; 14276int 14277main (void) 14278{ 14279 14280 ; 14281 return 0; 14282} 14283_ACEOF 14284if ac_fn_c_try_link "$LINENO" 14285then : 14286 eval $cacheid=yes 14287else $as_nop 14288 eval $cacheid=no 14289fi 14290rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14291 conftest$ac_exeext conftest.$ac_ext 14292fi 14293 14294 14295 CFLAGS="$xorg_testset_save_CFLAGS" 14296 14297 eval supported=\$$cacheid 14298 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14299printf "%s\n" "$supported" >&6; } 14300 if test "$supported" = "yes" ; then 14301 BASE_CFLAGS="$BASE_CFLAGS -fd" 14302 found="yes" 14303 fi 14304 fi 14305 14306 14307 14308 14309 14310 14311 14312 14313 14314 14315 14316 14317 14318 14319 14320xorg_testset_save_CFLAGS="$CFLAGS" 14321 14322if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14323 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14324 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14325printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14326if test ${xorg_cv_cc_flag_unknown_warning_option+y} 14327then : 14328 printf %s "(cached) " >&6 14329else $as_nop 14330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14331/* end confdefs.h. */ 14332int i; 14333_ACEOF 14334if ac_fn_c_try_compile "$LINENO" 14335then : 14336 xorg_cv_cc_flag_unknown_warning_option=yes 14337else $as_nop 14338 xorg_cv_cc_flag_unknown_warning_option=no 14339fi 14340rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14341fi 14342{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14343printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14344 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14345 CFLAGS="$xorg_testset_save_CFLAGS" 14346fi 14347 14348if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14349 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14350 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14351 fi 14352 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14353 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14354printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14355if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 14356then : 14357 printf %s "(cached) " >&6 14358else $as_nop 14359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14360/* end confdefs.h. */ 14361int i; 14362_ACEOF 14363if ac_fn_c_try_compile "$LINENO" 14364then : 14365 xorg_cv_cc_flag_unused_command_line_argument=yes 14366else $as_nop 14367 xorg_cv_cc_flag_unused_command_line_argument=no 14368fi 14369rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14370fi 14371{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14372printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14373 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14374 CFLAGS="$xorg_testset_save_CFLAGS" 14375fi 14376 14377found="no" 14378 14379 if test $found = "no" ; then 14380 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14381 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14382 fi 14383 14384 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14385 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14386 fi 14387 14388 CFLAGS="$CFLAGS -Wdeclaration-after-statement" 14389 14390 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5 14391printf %s "checking if $CC supports -Wdeclaration-after-statement... " >&6; } 14392 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement 14393 if eval test \${$cacheid+y} 14394then : 14395 printf %s "(cached) " >&6 14396else $as_nop 14397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14398/* end confdefs.h. */ 14399int i; 14400int 14401main (void) 14402{ 14403 14404 ; 14405 return 0; 14406} 14407_ACEOF 14408if ac_fn_c_try_link "$LINENO" 14409then : 14410 eval $cacheid=yes 14411else $as_nop 14412 eval $cacheid=no 14413fi 14414rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14415 conftest$ac_exeext conftest.$ac_ext 14416fi 14417 14418 14419 CFLAGS="$xorg_testset_save_CFLAGS" 14420 14421 eval supported=\$$cacheid 14422 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14423printf "%s\n" "$supported" >&6; } 14424 if test "$supported" = "yes" ; then 14425 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement" 14426 found="yes" 14427 fi 14428 fi 14429 14430 14431 14432 14433 14434# This chunk adds additional warnings that could catch undesired effects. 14435 14436 14437 14438 14439 14440 14441 14442 14443 14444 14445 14446 14447 14448xorg_testset_save_CFLAGS="$CFLAGS" 14449 14450if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14451 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14452 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14453printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14454if test ${xorg_cv_cc_flag_unknown_warning_option+y} 14455then : 14456 printf %s "(cached) " >&6 14457else $as_nop 14458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14459/* end confdefs.h. */ 14460int i; 14461_ACEOF 14462if ac_fn_c_try_compile "$LINENO" 14463then : 14464 xorg_cv_cc_flag_unknown_warning_option=yes 14465else $as_nop 14466 xorg_cv_cc_flag_unknown_warning_option=no 14467fi 14468rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14469fi 14470{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14471printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14472 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14473 CFLAGS="$xorg_testset_save_CFLAGS" 14474fi 14475 14476if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14477 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14478 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14479 fi 14480 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14481 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14482printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14483if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 14484then : 14485 printf %s "(cached) " >&6 14486else $as_nop 14487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14488/* end confdefs.h. */ 14489int i; 14490_ACEOF 14491if ac_fn_c_try_compile "$LINENO" 14492then : 14493 xorg_cv_cc_flag_unused_command_line_argument=yes 14494else $as_nop 14495 xorg_cv_cc_flag_unused_command_line_argument=no 14496fi 14497rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14498fi 14499{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14500printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14501 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14502 CFLAGS="$xorg_testset_save_CFLAGS" 14503fi 14504 14505found="no" 14506 14507 if test $found = "no" ; then 14508 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14509 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14510 fi 14511 14512 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14513 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14514 fi 14515 14516 CFLAGS="$CFLAGS -Wunused" 14517 14518 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5 14519printf %s "checking if $CC supports -Wunused... " >&6; } 14520 cacheid=xorg_cv_cc_flag__Wunused 14521 if eval test \${$cacheid+y} 14522then : 14523 printf %s "(cached) " >&6 14524else $as_nop 14525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14526/* end confdefs.h. */ 14527int i; 14528int 14529main (void) 14530{ 14531 14532 ; 14533 return 0; 14534} 14535_ACEOF 14536if ac_fn_c_try_link "$LINENO" 14537then : 14538 eval $cacheid=yes 14539else $as_nop 14540 eval $cacheid=no 14541fi 14542rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14543 conftest$ac_exeext conftest.$ac_ext 14544fi 14545 14546 14547 CFLAGS="$xorg_testset_save_CFLAGS" 14548 14549 eval supported=\$$cacheid 14550 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14551printf "%s\n" "$supported" >&6; } 14552 if test "$supported" = "yes" ; then 14553 BASE_CFLAGS="$BASE_CFLAGS -Wunused" 14554 found="yes" 14555 fi 14556 fi 14557 14558 14559 14560 14561 14562 14563 14564 14565 14566 14567 14568 14569 14570 14571 14572xorg_testset_save_CFLAGS="$CFLAGS" 14573 14574if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14575 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14576 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14577printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14578if test ${xorg_cv_cc_flag_unknown_warning_option+y} 14579then : 14580 printf %s "(cached) " >&6 14581else $as_nop 14582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14583/* end confdefs.h. */ 14584int i; 14585_ACEOF 14586if ac_fn_c_try_compile "$LINENO" 14587then : 14588 xorg_cv_cc_flag_unknown_warning_option=yes 14589else $as_nop 14590 xorg_cv_cc_flag_unknown_warning_option=no 14591fi 14592rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14593fi 14594{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14595printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14596 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14597 CFLAGS="$xorg_testset_save_CFLAGS" 14598fi 14599 14600if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14601 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14602 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14603 fi 14604 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14605 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14606printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14607if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 14608then : 14609 printf %s "(cached) " >&6 14610else $as_nop 14611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14612/* end confdefs.h. */ 14613int i; 14614_ACEOF 14615if ac_fn_c_try_compile "$LINENO" 14616then : 14617 xorg_cv_cc_flag_unused_command_line_argument=yes 14618else $as_nop 14619 xorg_cv_cc_flag_unused_command_line_argument=no 14620fi 14621rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14622fi 14623{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14624printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14625 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14626 CFLAGS="$xorg_testset_save_CFLAGS" 14627fi 14628 14629found="no" 14630 14631 if test $found = "no" ; then 14632 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14633 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14634 fi 14635 14636 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14637 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14638 fi 14639 14640 CFLAGS="$CFLAGS -Wuninitialized" 14641 14642 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5 14643printf %s "checking if $CC supports -Wuninitialized... " >&6; } 14644 cacheid=xorg_cv_cc_flag__Wuninitialized 14645 if eval test \${$cacheid+y} 14646then : 14647 printf %s "(cached) " >&6 14648else $as_nop 14649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14650/* end confdefs.h. */ 14651int i; 14652int 14653main (void) 14654{ 14655 14656 ; 14657 return 0; 14658} 14659_ACEOF 14660if ac_fn_c_try_link "$LINENO" 14661then : 14662 eval $cacheid=yes 14663else $as_nop 14664 eval $cacheid=no 14665fi 14666rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14667 conftest$ac_exeext conftest.$ac_ext 14668fi 14669 14670 14671 CFLAGS="$xorg_testset_save_CFLAGS" 14672 14673 eval supported=\$$cacheid 14674 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14675printf "%s\n" "$supported" >&6; } 14676 if test "$supported" = "yes" ; then 14677 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized" 14678 found="yes" 14679 fi 14680 fi 14681 14682 14683 14684 14685 14686 14687 14688 14689 14690 14691 14692 14693 14694 14695 14696xorg_testset_save_CFLAGS="$CFLAGS" 14697 14698if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14699 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14700 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14701printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14702if test ${xorg_cv_cc_flag_unknown_warning_option+y} 14703then : 14704 printf %s "(cached) " >&6 14705else $as_nop 14706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14707/* end confdefs.h. */ 14708int i; 14709_ACEOF 14710if ac_fn_c_try_compile "$LINENO" 14711then : 14712 xorg_cv_cc_flag_unknown_warning_option=yes 14713else $as_nop 14714 xorg_cv_cc_flag_unknown_warning_option=no 14715fi 14716rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14717fi 14718{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14719printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14720 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14721 CFLAGS="$xorg_testset_save_CFLAGS" 14722fi 14723 14724if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14725 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14726 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14727 fi 14728 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14729 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14730printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14731if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 14732then : 14733 printf %s "(cached) " >&6 14734else $as_nop 14735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14736/* end confdefs.h. */ 14737int i; 14738_ACEOF 14739if ac_fn_c_try_compile "$LINENO" 14740then : 14741 xorg_cv_cc_flag_unused_command_line_argument=yes 14742else $as_nop 14743 xorg_cv_cc_flag_unused_command_line_argument=no 14744fi 14745rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14746fi 14747{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14748printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14749 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14750 CFLAGS="$xorg_testset_save_CFLAGS" 14751fi 14752 14753found="no" 14754 14755 if test $found = "no" ; then 14756 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14757 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14758 fi 14759 14760 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14761 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14762 fi 14763 14764 CFLAGS="$CFLAGS -Wshadow" 14765 14766 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5 14767printf %s "checking if $CC supports -Wshadow... " >&6; } 14768 cacheid=xorg_cv_cc_flag__Wshadow 14769 if eval test \${$cacheid+y} 14770then : 14771 printf %s "(cached) " >&6 14772else $as_nop 14773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14774/* end confdefs.h. */ 14775int i; 14776int 14777main (void) 14778{ 14779 14780 ; 14781 return 0; 14782} 14783_ACEOF 14784if ac_fn_c_try_link "$LINENO" 14785then : 14786 eval $cacheid=yes 14787else $as_nop 14788 eval $cacheid=no 14789fi 14790rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14791 conftest$ac_exeext conftest.$ac_ext 14792fi 14793 14794 14795 CFLAGS="$xorg_testset_save_CFLAGS" 14796 14797 eval supported=\$$cacheid 14798 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14799printf "%s\n" "$supported" >&6; } 14800 if test "$supported" = "yes" ; then 14801 BASE_CFLAGS="$BASE_CFLAGS -Wshadow" 14802 found="yes" 14803 fi 14804 fi 14805 14806 14807 14808 14809 14810 14811 14812 14813 14814 14815 14816 14817 14818 14819 14820xorg_testset_save_CFLAGS="$CFLAGS" 14821 14822if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14823 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14824 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14825printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14826if test ${xorg_cv_cc_flag_unknown_warning_option+y} 14827then : 14828 printf %s "(cached) " >&6 14829else $as_nop 14830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14831/* end confdefs.h. */ 14832int i; 14833_ACEOF 14834if ac_fn_c_try_compile "$LINENO" 14835then : 14836 xorg_cv_cc_flag_unknown_warning_option=yes 14837else $as_nop 14838 xorg_cv_cc_flag_unknown_warning_option=no 14839fi 14840rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14841fi 14842{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14843printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14844 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14845 CFLAGS="$xorg_testset_save_CFLAGS" 14846fi 14847 14848if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14849 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14850 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14851 fi 14852 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14853 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14854printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14855if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 14856then : 14857 printf %s "(cached) " >&6 14858else $as_nop 14859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14860/* end confdefs.h. */ 14861int i; 14862_ACEOF 14863if ac_fn_c_try_compile "$LINENO" 14864then : 14865 xorg_cv_cc_flag_unused_command_line_argument=yes 14866else $as_nop 14867 xorg_cv_cc_flag_unused_command_line_argument=no 14868fi 14869rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14870fi 14871{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14872printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14873 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14874 CFLAGS="$xorg_testset_save_CFLAGS" 14875fi 14876 14877found="no" 14878 14879 if test $found = "no" ; then 14880 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14881 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14882 fi 14883 14884 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14885 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14886 fi 14887 14888 CFLAGS="$CFLAGS -Wmissing-noreturn" 14889 14890 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5 14891printf %s "checking if $CC supports -Wmissing-noreturn... " >&6; } 14892 cacheid=xorg_cv_cc_flag__Wmissing_noreturn 14893 if eval test \${$cacheid+y} 14894then : 14895 printf %s "(cached) " >&6 14896else $as_nop 14897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14898/* end confdefs.h. */ 14899int i; 14900int 14901main (void) 14902{ 14903 14904 ; 14905 return 0; 14906} 14907_ACEOF 14908if ac_fn_c_try_link "$LINENO" 14909then : 14910 eval $cacheid=yes 14911else $as_nop 14912 eval $cacheid=no 14913fi 14914rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14915 conftest$ac_exeext conftest.$ac_ext 14916fi 14917 14918 14919 CFLAGS="$xorg_testset_save_CFLAGS" 14920 14921 eval supported=\$$cacheid 14922 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14923printf "%s\n" "$supported" >&6; } 14924 if test "$supported" = "yes" ; then 14925 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn" 14926 found="yes" 14927 fi 14928 fi 14929 14930 14931 14932 14933 14934 14935 14936 14937 14938 14939 14940 14941 14942 14943 14944xorg_testset_save_CFLAGS="$CFLAGS" 14945 14946if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14947 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14948 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14949printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14950if test ${xorg_cv_cc_flag_unknown_warning_option+y} 14951then : 14952 printf %s "(cached) " >&6 14953else $as_nop 14954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14955/* end confdefs.h. */ 14956int i; 14957_ACEOF 14958if ac_fn_c_try_compile "$LINENO" 14959then : 14960 xorg_cv_cc_flag_unknown_warning_option=yes 14961else $as_nop 14962 xorg_cv_cc_flag_unknown_warning_option=no 14963fi 14964rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14965fi 14966{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14967printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14968 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14969 CFLAGS="$xorg_testset_save_CFLAGS" 14970fi 14971 14972if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14973 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14974 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14975 fi 14976 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14977 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14978printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14979if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 14980then : 14981 printf %s "(cached) " >&6 14982else $as_nop 14983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14984/* end confdefs.h. */ 14985int i; 14986_ACEOF 14987if ac_fn_c_try_compile "$LINENO" 14988then : 14989 xorg_cv_cc_flag_unused_command_line_argument=yes 14990else $as_nop 14991 xorg_cv_cc_flag_unused_command_line_argument=no 14992fi 14993rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14994fi 14995{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14996printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14997 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14998 CFLAGS="$xorg_testset_save_CFLAGS" 14999fi 15000 15001found="no" 15002 15003 if test $found = "no" ; then 15004 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15005 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15006 fi 15007 15008 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15009 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15010 fi 15011 15012 CFLAGS="$CFLAGS -Wmissing-format-attribute" 15013 15014 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5 15015printf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; } 15016 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute 15017 if eval test \${$cacheid+y} 15018then : 15019 printf %s "(cached) " >&6 15020else $as_nop 15021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15022/* end confdefs.h. */ 15023int i; 15024int 15025main (void) 15026{ 15027 15028 ; 15029 return 0; 15030} 15031_ACEOF 15032if ac_fn_c_try_link "$LINENO" 15033then : 15034 eval $cacheid=yes 15035else $as_nop 15036 eval $cacheid=no 15037fi 15038rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15039 conftest$ac_exeext conftest.$ac_ext 15040fi 15041 15042 15043 CFLAGS="$xorg_testset_save_CFLAGS" 15044 15045 eval supported=\$$cacheid 15046 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15047printf "%s\n" "$supported" >&6; } 15048 if test "$supported" = "yes" ; then 15049 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute" 15050 found="yes" 15051 fi 15052 fi 15053 15054 15055 15056 15057 15058 15059 15060 15061 15062 15063 15064 15065 15066 15067 15068xorg_testset_save_CFLAGS="$CFLAGS" 15069 15070if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15071 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15072 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15073printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15074if test ${xorg_cv_cc_flag_unknown_warning_option+y} 15075then : 15076 printf %s "(cached) " >&6 15077else $as_nop 15078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15079/* end confdefs.h. */ 15080int i; 15081_ACEOF 15082if ac_fn_c_try_compile "$LINENO" 15083then : 15084 xorg_cv_cc_flag_unknown_warning_option=yes 15085else $as_nop 15086 xorg_cv_cc_flag_unknown_warning_option=no 15087fi 15088rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15089fi 15090{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15091printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15092 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15093 CFLAGS="$xorg_testset_save_CFLAGS" 15094fi 15095 15096if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15097 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15098 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15099 fi 15100 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15101 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15102printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15103if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 15104then : 15105 printf %s "(cached) " >&6 15106else $as_nop 15107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15108/* end confdefs.h. */ 15109int i; 15110_ACEOF 15111if ac_fn_c_try_compile "$LINENO" 15112then : 15113 xorg_cv_cc_flag_unused_command_line_argument=yes 15114else $as_nop 15115 xorg_cv_cc_flag_unused_command_line_argument=no 15116fi 15117rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15118fi 15119{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15120printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15121 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15122 CFLAGS="$xorg_testset_save_CFLAGS" 15123fi 15124 15125found="no" 15126 15127 if test $found = "no" ; then 15128 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15129 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15130 fi 15131 15132 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15133 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15134 fi 15135 15136 CFLAGS="$CFLAGS -Wredundant-decls" 15137 15138 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5 15139printf %s "checking if $CC supports -Wredundant-decls... " >&6; } 15140 cacheid=xorg_cv_cc_flag__Wredundant_decls 15141 if eval test \${$cacheid+y} 15142then : 15143 printf %s "(cached) " >&6 15144else $as_nop 15145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15146/* end confdefs.h. */ 15147int i; 15148int 15149main (void) 15150{ 15151 15152 ; 15153 return 0; 15154} 15155_ACEOF 15156if ac_fn_c_try_link "$LINENO" 15157then : 15158 eval $cacheid=yes 15159else $as_nop 15160 eval $cacheid=no 15161fi 15162rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15163 conftest$ac_exeext conftest.$ac_ext 15164fi 15165 15166 15167 CFLAGS="$xorg_testset_save_CFLAGS" 15168 15169 eval supported=\$$cacheid 15170 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15171printf "%s\n" "$supported" >&6; } 15172 if test "$supported" = "yes" ; then 15173 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls" 15174 found="yes" 15175 fi 15176 fi 15177 15178 15179 15180 15181 15182 15183 15184 15185 15186 15187 15188 15189 15190 15191 15192xorg_testset_save_CFLAGS="$CFLAGS" 15193 15194if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15195 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15196 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15197printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15198if test ${xorg_cv_cc_flag_unknown_warning_option+y} 15199then : 15200 printf %s "(cached) " >&6 15201else $as_nop 15202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15203/* end confdefs.h. */ 15204int i; 15205_ACEOF 15206if ac_fn_c_try_compile "$LINENO" 15207then : 15208 xorg_cv_cc_flag_unknown_warning_option=yes 15209else $as_nop 15210 xorg_cv_cc_flag_unknown_warning_option=no 15211fi 15212rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15213fi 15214{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15215printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15216 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15217 CFLAGS="$xorg_testset_save_CFLAGS" 15218fi 15219 15220if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15221 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15222 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15223 fi 15224 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15225 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15226printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15227if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 15228then : 15229 printf %s "(cached) " >&6 15230else $as_nop 15231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15232/* end confdefs.h. */ 15233int i; 15234_ACEOF 15235if ac_fn_c_try_compile "$LINENO" 15236then : 15237 xorg_cv_cc_flag_unused_command_line_argument=yes 15238else $as_nop 15239 xorg_cv_cc_flag_unused_command_line_argument=no 15240fi 15241rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15242fi 15243{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15244printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15245 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15246 CFLAGS="$xorg_testset_save_CFLAGS" 15247fi 15248 15249found="no" 15250 15251 if test $found = "no" ; then 15252 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15253 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15254 fi 15255 15256 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15257 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15258 fi 15259 15260 CFLAGS="$CFLAGS -Wlogical-op" 15261 15262 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5 15263printf %s "checking if $CC supports -Wlogical-op... " >&6; } 15264 cacheid=xorg_cv_cc_flag__Wlogical_op 15265 if eval test \${$cacheid+y} 15266then : 15267 printf %s "(cached) " >&6 15268else $as_nop 15269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15270/* end confdefs.h. */ 15271int i; 15272int 15273main (void) 15274{ 15275 15276 ; 15277 return 0; 15278} 15279_ACEOF 15280if ac_fn_c_try_link "$LINENO" 15281then : 15282 eval $cacheid=yes 15283else $as_nop 15284 eval $cacheid=no 15285fi 15286rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15287 conftest$ac_exeext conftest.$ac_ext 15288fi 15289 15290 15291 CFLAGS="$xorg_testset_save_CFLAGS" 15292 15293 eval supported=\$$cacheid 15294 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15295printf "%s\n" "$supported" >&6; } 15296 if test "$supported" = "yes" ; then 15297 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op" 15298 found="yes" 15299 fi 15300 fi 15301 15302 15303 15304# These are currently disabled because they are noisy. They will be enabled 15305# in the future once the codebase is sufficiently modernized to silence 15306# them. For now, I don't want them to drown out the other warnings. 15307# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses]) 15308# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align]) 15309# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual]) 15310 15311# Turn some warnings into errors, so we don't accidentally get successful builds 15312# when there are problems that should be fixed. 15313 15314if test "x$SELECTIVE_WERROR" = "xyes" ; then 15315 15316 15317 15318 15319 15320 15321 15322 15323 15324 15325 15326 15327 15328xorg_testset_save_CFLAGS="$CFLAGS" 15329 15330if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15331 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15332 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15333printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15334if test ${xorg_cv_cc_flag_unknown_warning_option+y} 15335then : 15336 printf %s "(cached) " >&6 15337else $as_nop 15338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15339/* end confdefs.h. */ 15340int i; 15341_ACEOF 15342if ac_fn_c_try_compile "$LINENO" 15343then : 15344 xorg_cv_cc_flag_unknown_warning_option=yes 15345else $as_nop 15346 xorg_cv_cc_flag_unknown_warning_option=no 15347fi 15348rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15349fi 15350{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15351printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15352 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15353 CFLAGS="$xorg_testset_save_CFLAGS" 15354fi 15355 15356if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15357 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15358 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15359 fi 15360 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15361 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15362printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15363if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 15364then : 15365 printf %s "(cached) " >&6 15366else $as_nop 15367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15368/* end confdefs.h. */ 15369int i; 15370_ACEOF 15371if ac_fn_c_try_compile "$LINENO" 15372then : 15373 xorg_cv_cc_flag_unused_command_line_argument=yes 15374else $as_nop 15375 xorg_cv_cc_flag_unused_command_line_argument=no 15376fi 15377rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15378fi 15379{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15380printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15381 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15382 CFLAGS="$xorg_testset_save_CFLAGS" 15383fi 15384 15385found="no" 15386 15387 if test $found = "no" ; then 15388 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15389 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15390 fi 15391 15392 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15393 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15394 fi 15395 15396 CFLAGS="$CFLAGS -Werror=implicit" 15397 15398 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5 15399printf %s "checking if $CC supports -Werror=implicit... " >&6; } 15400 cacheid=xorg_cv_cc_flag__Werror_implicit 15401 if eval test \${$cacheid+y} 15402then : 15403 printf %s "(cached) " >&6 15404else $as_nop 15405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15406/* end confdefs.h. */ 15407int i; 15408int 15409main (void) 15410{ 15411 15412 ; 15413 return 0; 15414} 15415_ACEOF 15416if ac_fn_c_try_link "$LINENO" 15417then : 15418 eval $cacheid=yes 15419else $as_nop 15420 eval $cacheid=no 15421fi 15422rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15423 conftest$ac_exeext conftest.$ac_ext 15424fi 15425 15426 15427 CFLAGS="$xorg_testset_save_CFLAGS" 15428 15429 eval supported=\$$cacheid 15430 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15431printf "%s\n" "$supported" >&6; } 15432 if test "$supported" = "yes" ; then 15433 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit" 15434 found="yes" 15435 fi 15436 fi 15437 15438 if test $found = "no" ; then 15439 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15440 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15441 fi 15442 15443 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15444 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15445 fi 15446 15447 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 15448 15449 { 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 15450printf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; } 15451 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED 15452 if eval test \${$cacheid+y} 15453then : 15454 printf %s "(cached) " >&6 15455else $as_nop 15456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15457/* end confdefs.h. */ 15458int i; 15459int 15460main (void) 15461{ 15462 15463 ; 15464 return 0; 15465} 15466_ACEOF 15467if ac_fn_c_try_link "$LINENO" 15468then : 15469 eval $cacheid=yes 15470else $as_nop 15471 eval $cacheid=no 15472fi 15473rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15474 conftest$ac_exeext conftest.$ac_ext 15475fi 15476 15477 15478 CFLAGS="$xorg_testset_save_CFLAGS" 15479 15480 eval supported=\$$cacheid 15481 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15482printf "%s\n" "$supported" >&6; } 15483 if test "$supported" = "yes" ; then 15484 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 15485 found="yes" 15486 fi 15487 fi 15488 15489 15490 15491 15492 15493 15494 15495 15496 15497 15498 15499 15500 15501 15502 15503xorg_testset_save_CFLAGS="$CFLAGS" 15504 15505if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15506 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15507 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15508printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15509if test ${xorg_cv_cc_flag_unknown_warning_option+y} 15510then : 15511 printf %s "(cached) " >&6 15512else $as_nop 15513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15514/* end confdefs.h. */ 15515int i; 15516_ACEOF 15517if ac_fn_c_try_compile "$LINENO" 15518then : 15519 xorg_cv_cc_flag_unknown_warning_option=yes 15520else $as_nop 15521 xorg_cv_cc_flag_unknown_warning_option=no 15522fi 15523rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15524fi 15525{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15526printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15527 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15528 CFLAGS="$xorg_testset_save_CFLAGS" 15529fi 15530 15531if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15532 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15533 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15534 fi 15535 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15536 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15537printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15538if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 15539then : 15540 printf %s "(cached) " >&6 15541else $as_nop 15542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15543/* end confdefs.h. */ 15544int i; 15545_ACEOF 15546if ac_fn_c_try_compile "$LINENO" 15547then : 15548 xorg_cv_cc_flag_unused_command_line_argument=yes 15549else $as_nop 15550 xorg_cv_cc_flag_unused_command_line_argument=no 15551fi 15552rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15553fi 15554{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15555printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15556 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15557 CFLAGS="$xorg_testset_save_CFLAGS" 15558fi 15559 15560found="no" 15561 15562 if test $found = "no" ; then 15563 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15564 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15565 fi 15566 15567 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15568 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15569 fi 15570 15571 CFLAGS="$CFLAGS -Werror=nonnull" 15572 15573 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5 15574printf %s "checking if $CC supports -Werror=nonnull... " >&6; } 15575 cacheid=xorg_cv_cc_flag__Werror_nonnull 15576 if eval test \${$cacheid+y} 15577then : 15578 printf %s "(cached) " >&6 15579else $as_nop 15580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15581/* end confdefs.h. */ 15582int i; 15583int 15584main (void) 15585{ 15586 15587 ; 15588 return 0; 15589} 15590_ACEOF 15591if ac_fn_c_try_link "$LINENO" 15592then : 15593 eval $cacheid=yes 15594else $as_nop 15595 eval $cacheid=no 15596fi 15597rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15598 conftest$ac_exeext conftest.$ac_ext 15599fi 15600 15601 15602 CFLAGS="$xorg_testset_save_CFLAGS" 15603 15604 eval supported=\$$cacheid 15605 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15606printf "%s\n" "$supported" >&6; } 15607 if test "$supported" = "yes" ; then 15608 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull" 15609 found="yes" 15610 fi 15611 fi 15612 15613 15614 15615 15616 15617 15618 15619 15620 15621 15622 15623 15624 15625 15626 15627xorg_testset_save_CFLAGS="$CFLAGS" 15628 15629if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15630 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15631 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15632printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15633if test ${xorg_cv_cc_flag_unknown_warning_option+y} 15634then : 15635 printf %s "(cached) " >&6 15636else $as_nop 15637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15638/* end confdefs.h. */ 15639int i; 15640_ACEOF 15641if ac_fn_c_try_compile "$LINENO" 15642then : 15643 xorg_cv_cc_flag_unknown_warning_option=yes 15644else $as_nop 15645 xorg_cv_cc_flag_unknown_warning_option=no 15646fi 15647rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15648fi 15649{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15650printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15651 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15652 CFLAGS="$xorg_testset_save_CFLAGS" 15653fi 15654 15655if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15656 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15657 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15658 fi 15659 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15660 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15661printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15662if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 15663then : 15664 printf %s "(cached) " >&6 15665else $as_nop 15666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15667/* end confdefs.h. */ 15668int i; 15669_ACEOF 15670if ac_fn_c_try_compile "$LINENO" 15671then : 15672 xorg_cv_cc_flag_unused_command_line_argument=yes 15673else $as_nop 15674 xorg_cv_cc_flag_unused_command_line_argument=no 15675fi 15676rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15677fi 15678{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15679printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15680 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15681 CFLAGS="$xorg_testset_save_CFLAGS" 15682fi 15683 15684found="no" 15685 15686 if test $found = "no" ; then 15687 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15688 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15689 fi 15690 15691 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15692 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15693 fi 15694 15695 CFLAGS="$CFLAGS -Werror=init-self" 15696 15697 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5 15698printf %s "checking if $CC supports -Werror=init-self... " >&6; } 15699 cacheid=xorg_cv_cc_flag__Werror_init_self 15700 if eval test \${$cacheid+y} 15701then : 15702 printf %s "(cached) " >&6 15703else $as_nop 15704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15705/* end confdefs.h. */ 15706int i; 15707int 15708main (void) 15709{ 15710 15711 ; 15712 return 0; 15713} 15714_ACEOF 15715if ac_fn_c_try_link "$LINENO" 15716then : 15717 eval $cacheid=yes 15718else $as_nop 15719 eval $cacheid=no 15720fi 15721rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15722 conftest$ac_exeext conftest.$ac_ext 15723fi 15724 15725 15726 CFLAGS="$xorg_testset_save_CFLAGS" 15727 15728 eval supported=\$$cacheid 15729 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15730printf "%s\n" "$supported" >&6; } 15731 if test "$supported" = "yes" ; then 15732 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self" 15733 found="yes" 15734 fi 15735 fi 15736 15737 15738 15739 15740 15741 15742 15743 15744 15745 15746 15747 15748 15749 15750 15751xorg_testset_save_CFLAGS="$CFLAGS" 15752 15753if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15754 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15755 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15756printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15757if test ${xorg_cv_cc_flag_unknown_warning_option+y} 15758then : 15759 printf %s "(cached) " >&6 15760else $as_nop 15761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15762/* end confdefs.h. */ 15763int i; 15764_ACEOF 15765if ac_fn_c_try_compile "$LINENO" 15766then : 15767 xorg_cv_cc_flag_unknown_warning_option=yes 15768else $as_nop 15769 xorg_cv_cc_flag_unknown_warning_option=no 15770fi 15771rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15772fi 15773{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15774printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15775 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15776 CFLAGS="$xorg_testset_save_CFLAGS" 15777fi 15778 15779if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15780 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15781 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15782 fi 15783 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15784 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15785printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15786if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 15787then : 15788 printf %s "(cached) " >&6 15789else $as_nop 15790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15791/* end confdefs.h. */ 15792int i; 15793_ACEOF 15794if ac_fn_c_try_compile "$LINENO" 15795then : 15796 xorg_cv_cc_flag_unused_command_line_argument=yes 15797else $as_nop 15798 xorg_cv_cc_flag_unused_command_line_argument=no 15799fi 15800rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15801fi 15802{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15803printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15804 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15805 CFLAGS="$xorg_testset_save_CFLAGS" 15806fi 15807 15808found="no" 15809 15810 if test $found = "no" ; then 15811 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15812 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15813 fi 15814 15815 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15816 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15817 fi 15818 15819 CFLAGS="$CFLAGS -Werror=main" 15820 15821 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5 15822printf %s "checking if $CC supports -Werror=main... " >&6; } 15823 cacheid=xorg_cv_cc_flag__Werror_main 15824 if eval test \${$cacheid+y} 15825then : 15826 printf %s "(cached) " >&6 15827else $as_nop 15828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15829/* end confdefs.h. */ 15830int i; 15831int 15832main (void) 15833{ 15834 15835 ; 15836 return 0; 15837} 15838_ACEOF 15839if ac_fn_c_try_link "$LINENO" 15840then : 15841 eval $cacheid=yes 15842else $as_nop 15843 eval $cacheid=no 15844fi 15845rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15846 conftest$ac_exeext conftest.$ac_ext 15847fi 15848 15849 15850 CFLAGS="$xorg_testset_save_CFLAGS" 15851 15852 eval supported=\$$cacheid 15853 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15854printf "%s\n" "$supported" >&6; } 15855 if test "$supported" = "yes" ; then 15856 BASE_CFLAGS="$BASE_CFLAGS -Werror=main" 15857 found="yes" 15858 fi 15859 fi 15860 15861 15862 15863 15864 15865 15866 15867 15868 15869 15870 15871 15872 15873 15874 15875xorg_testset_save_CFLAGS="$CFLAGS" 15876 15877if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15878 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15879 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15880printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15881if test ${xorg_cv_cc_flag_unknown_warning_option+y} 15882then : 15883 printf %s "(cached) " >&6 15884else $as_nop 15885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15886/* end confdefs.h. */ 15887int i; 15888_ACEOF 15889if ac_fn_c_try_compile "$LINENO" 15890then : 15891 xorg_cv_cc_flag_unknown_warning_option=yes 15892else $as_nop 15893 xorg_cv_cc_flag_unknown_warning_option=no 15894fi 15895rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15896fi 15897{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15898printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15899 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15900 CFLAGS="$xorg_testset_save_CFLAGS" 15901fi 15902 15903if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15904 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15905 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15906 fi 15907 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15908 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15909printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15910if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 15911then : 15912 printf %s "(cached) " >&6 15913else $as_nop 15914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15915/* end confdefs.h. */ 15916int i; 15917_ACEOF 15918if ac_fn_c_try_compile "$LINENO" 15919then : 15920 xorg_cv_cc_flag_unused_command_line_argument=yes 15921else $as_nop 15922 xorg_cv_cc_flag_unused_command_line_argument=no 15923fi 15924rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15925fi 15926{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15927printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15928 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15929 CFLAGS="$xorg_testset_save_CFLAGS" 15930fi 15931 15932found="no" 15933 15934 if test $found = "no" ; then 15935 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15936 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15937 fi 15938 15939 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15940 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15941 fi 15942 15943 CFLAGS="$CFLAGS -Werror=missing-braces" 15944 15945 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5 15946printf %s "checking if $CC supports -Werror=missing-braces... " >&6; } 15947 cacheid=xorg_cv_cc_flag__Werror_missing_braces 15948 if eval test \${$cacheid+y} 15949then : 15950 printf %s "(cached) " >&6 15951else $as_nop 15952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15953/* end confdefs.h. */ 15954int i; 15955int 15956main (void) 15957{ 15958 15959 ; 15960 return 0; 15961} 15962_ACEOF 15963if ac_fn_c_try_link "$LINENO" 15964then : 15965 eval $cacheid=yes 15966else $as_nop 15967 eval $cacheid=no 15968fi 15969rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15970 conftest$ac_exeext conftest.$ac_ext 15971fi 15972 15973 15974 CFLAGS="$xorg_testset_save_CFLAGS" 15975 15976 eval supported=\$$cacheid 15977 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15978printf "%s\n" "$supported" >&6; } 15979 if test "$supported" = "yes" ; then 15980 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces" 15981 found="yes" 15982 fi 15983 fi 15984 15985 15986 15987 15988 15989 15990 15991 15992 15993 15994 15995 15996 15997 15998 15999xorg_testset_save_CFLAGS="$CFLAGS" 16000 16001if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16002 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16003 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16004printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16005if test ${xorg_cv_cc_flag_unknown_warning_option+y} 16006then : 16007 printf %s "(cached) " >&6 16008else $as_nop 16009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16010/* end confdefs.h. */ 16011int i; 16012_ACEOF 16013if ac_fn_c_try_compile "$LINENO" 16014then : 16015 xorg_cv_cc_flag_unknown_warning_option=yes 16016else $as_nop 16017 xorg_cv_cc_flag_unknown_warning_option=no 16018fi 16019rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16020fi 16021{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16022printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16023 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16024 CFLAGS="$xorg_testset_save_CFLAGS" 16025fi 16026 16027if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16028 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16029 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16030 fi 16031 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16032 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16033printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16034if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 16035then : 16036 printf %s "(cached) " >&6 16037else $as_nop 16038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16039/* end confdefs.h. */ 16040int i; 16041_ACEOF 16042if ac_fn_c_try_compile "$LINENO" 16043then : 16044 xorg_cv_cc_flag_unused_command_line_argument=yes 16045else $as_nop 16046 xorg_cv_cc_flag_unused_command_line_argument=no 16047fi 16048rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16049fi 16050{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16051printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16052 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16053 CFLAGS="$xorg_testset_save_CFLAGS" 16054fi 16055 16056found="no" 16057 16058 if test $found = "no" ; then 16059 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16060 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16061 fi 16062 16063 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16064 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16065 fi 16066 16067 CFLAGS="$CFLAGS -Werror=sequence-point" 16068 16069 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5 16070printf %s "checking if $CC supports -Werror=sequence-point... " >&6; } 16071 cacheid=xorg_cv_cc_flag__Werror_sequence_point 16072 if eval test \${$cacheid+y} 16073then : 16074 printf %s "(cached) " >&6 16075else $as_nop 16076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16077/* end confdefs.h. */ 16078int i; 16079int 16080main (void) 16081{ 16082 16083 ; 16084 return 0; 16085} 16086_ACEOF 16087if ac_fn_c_try_link "$LINENO" 16088then : 16089 eval $cacheid=yes 16090else $as_nop 16091 eval $cacheid=no 16092fi 16093rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16094 conftest$ac_exeext conftest.$ac_ext 16095fi 16096 16097 16098 CFLAGS="$xorg_testset_save_CFLAGS" 16099 16100 eval supported=\$$cacheid 16101 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16102printf "%s\n" "$supported" >&6; } 16103 if test "$supported" = "yes" ; then 16104 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point" 16105 found="yes" 16106 fi 16107 fi 16108 16109 16110 16111 16112 16113 16114 16115 16116 16117 16118 16119 16120 16121 16122 16123xorg_testset_save_CFLAGS="$CFLAGS" 16124 16125if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16126 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16127 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16128printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16129if test ${xorg_cv_cc_flag_unknown_warning_option+y} 16130then : 16131 printf %s "(cached) " >&6 16132else $as_nop 16133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16134/* end confdefs.h. */ 16135int i; 16136_ACEOF 16137if ac_fn_c_try_compile "$LINENO" 16138then : 16139 xorg_cv_cc_flag_unknown_warning_option=yes 16140else $as_nop 16141 xorg_cv_cc_flag_unknown_warning_option=no 16142fi 16143rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16144fi 16145{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16146printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16147 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16148 CFLAGS="$xorg_testset_save_CFLAGS" 16149fi 16150 16151if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16152 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16153 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16154 fi 16155 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16156 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16157printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16158if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 16159then : 16160 printf %s "(cached) " >&6 16161else $as_nop 16162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16163/* end confdefs.h. */ 16164int i; 16165_ACEOF 16166if ac_fn_c_try_compile "$LINENO" 16167then : 16168 xorg_cv_cc_flag_unused_command_line_argument=yes 16169else $as_nop 16170 xorg_cv_cc_flag_unused_command_line_argument=no 16171fi 16172rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16173fi 16174{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16175printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16176 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16177 CFLAGS="$xorg_testset_save_CFLAGS" 16178fi 16179 16180found="no" 16181 16182 if test $found = "no" ; then 16183 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16184 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16185 fi 16186 16187 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16188 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16189 fi 16190 16191 CFLAGS="$CFLAGS -Werror=return-type" 16192 16193 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5 16194printf %s "checking if $CC supports -Werror=return-type... " >&6; } 16195 cacheid=xorg_cv_cc_flag__Werror_return_type 16196 if eval test \${$cacheid+y} 16197then : 16198 printf %s "(cached) " >&6 16199else $as_nop 16200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16201/* end confdefs.h. */ 16202int i; 16203int 16204main (void) 16205{ 16206 16207 ; 16208 return 0; 16209} 16210_ACEOF 16211if ac_fn_c_try_link "$LINENO" 16212then : 16213 eval $cacheid=yes 16214else $as_nop 16215 eval $cacheid=no 16216fi 16217rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16218 conftest$ac_exeext conftest.$ac_ext 16219fi 16220 16221 16222 CFLAGS="$xorg_testset_save_CFLAGS" 16223 16224 eval supported=\$$cacheid 16225 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16226printf "%s\n" "$supported" >&6; } 16227 if test "$supported" = "yes" ; then 16228 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type" 16229 found="yes" 16230 fi 16231 fi 16232 16233 if test $found = "no" ; then 16234 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16235 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16236 fi 16237 16238 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16239 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16240 fi 16241 16242 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 16243 16244 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5 16245printf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; } 16246 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT 16247 if eval test \${$cacheid+y} 16248then : 16249 printf %s "(cached) " >&6 16250else $as_nop 16251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16252/* end confdefs.h. */ 16253int i; 16254int 16255main (void) 16256{ 16257 16258 ; 16259 return 0; 16260} 16261_ACEOF 16262if ac_fn_c_try_link "$LINENO" 16263then : 16264 eval $cacheid=yes 16265else $as_nop 16266 eval $cacheid=no 16267fi 16268rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16269 conftest$ac_exeext conftest.$ac_ext 16270fi 16271 16272 16273 CFLAGS="$xorg_testset_save_CFLAGS" 16274 16275 eval supported=\$$cacheid 16276 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16277printf "%s\n" "$supported" >&6; } 16278 if test "$supported" = "yes" ; then 16279 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 16280 found="yes" 16281 fi 16282 fi 16283 16284 16285 16286 16287 16288 16289 16290 16291 16292 16293 16294 16295 16296 16297 16298xorg_testset_save_CFLAGS="$CFLAGS" 16299 16300if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16301 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16302 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16303printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16304if test ${xorg_cv_cc_flag_unknown_warning_option+y} 16305then : 16306 printf %s "(cached) " >&6 16307else $as_nop 16308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16309/* end confdefs.h. */ 16310int i; 16311_ACEOF 16312if ac_fn_c_try_compile "$LINENO" 16313then : 16314 xorg_cv_cc_flag_unknown_warning_option=yes 16315else $as_nop 16316 xorg_cv_cc_flag_unknown_warning_option=no 16317fi 16318rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16319fi 16320{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16321printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16322 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16323 CFLAGS="$xorg_testset_save_CFLAGS" 16324fi 16325 16326if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16327 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16328 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16329 fi 16330 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16331 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16332printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16333if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 16334then : 16335 printf %s "(cached) " >&6 16336else $as_nop 16337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16338/* end confdefs.h. */ 16339int i; 16340_ACEOF 16341if ac_fn_c_try_compile "$LINENO" 16342then : 16343 xorg_cv_cc_flag_unused_command_line_argument=yes 16344else $as_nop 16345 xorg_cv_cc_flag_unused_command_line_argument=no 16346fi 16347rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16348fi 16349{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16350printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16351 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16352 CFLAGS="$xorg_testset_save_CFLAGS" 16353fi 16354 16355found="no" 16356 16357 if test $found = "no" ; then 16358 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16359 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16360 fi 16361 16362 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16363 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16364 fi 16365 16366 CFLAGS="$CFLAGS -Werror=trigraphs" 16367 16368 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5 16369printf %s "checking if $CC supports -Werror=trigraphs... " >&6; } 16370 cacheid=xorg_cv_cc_flag__Werror_trigraphs 16371 if eval test \${$cacheid+y} 16372then : 16373 printf %s "(cached) " >&6 16374else $as_nop 16375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16376/* end confdefs.h. */ 16377int i; 16378int 16379main (void) 16380{ 16381 16382 ; 16383 return 0; 16384} 16385_ACEOF 16386if ac_fn_c_try_link "$LINENO" 16387then : 16388 eval $cacheid=yes 16389else $as_nop 16390 eval $cacheid=no 16391fi 16392rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16393 conftest$ac_exeext conftest.$ac_ext 16394fi 16395 16396 16397 CFLAGS="$xorg_testset_save_CFLAGS" 16398 16399 eval supported=\$$cacheid 16400 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16401printf "%s\n" "$supported" >&6; } 16402 if test "$supported" = "yes" ; then 16403 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs" 16404 found="yes" 16405 fi 16406 fi 16407 16408 16409 16410 16411 16412 16413 16414 16415 16416 16417 16418 16419 16420 16421 16422xorg_testset_save_CFLAGS="$CFLAGS" 16423 16424if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16425 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16426 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16427printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16428if test ${xorg_cv_cc_flag_unknown_warning_option+y} 16429then : 16430 printf %s "(cached) " >&6 16431else $as_nop 16432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16433/* end confdefs.h. */ 16434int i; 16435_ACEOF 16436if ac_fn_c_try_compile "$LINENO" 16437then : 16438 xorg_cv_cc_flag_unknown_warning_option=yes 16439else $as_nop 16440 xorg_cv_cc_flag_unknown_warning_option=no 16441fi 16442rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16443fi 16444{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16445printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16446 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16447 CFLAGS="$xorg_testset_save_CFLAGS" 16448fi 16449 16450if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16451 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16452 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16453 fi 16454 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16455 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16456printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16457if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 16458then : 16459 printf %s "(cached) " >&6 16460else $as_nop 16461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16462/* end confdefs.h. */ 16463int i; 16464_ACEOF 16465if ac_fn_c_try_compile "$LINENO" 16466then : 16467 xorg_cv_cc_flag_unused_command_line_argument=yes 16468else $as_nop 16469 xorg_cv_cc_flag_unused_command_line_argument=no 16470fi 16471rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16472fi 16473{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16474printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16475 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16476 CFLAGS="$xorg_testset_save_CFLAGS" 16477fi 16478 16479found="no" 16480 16481 if test $found = "no" ; then 16482 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16483 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16484 fi 16485 16486 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16487 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16488 fi 16489 16490 CFLAGS="$CFLAGS -Werror=array-bounds" 16491 16492 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5 16493printf %s "checking if $CC supports -Werror=array-bounds... " >&6; } 16494 cacheid=xorg_cv_cc_flag__Werror_array_bounds 16495 if eval test \${$cacheid+y} 16496then : 16497 printf %s "(cached) " >&6 16498else $as_nop 16499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16500/* end confdefs.h. */ 16501int i; 16502int 16503main (void) 16504{ 16505 16506 ; 16507 return 0; 16508} 16509_ACEOF 16510if ac_fn_c_try_link "$LINENO" 16511then : 16512 eval $cacheid=yes 16513else $as_nop 16514 eval $cacheid=no 16515fi 16516rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16517 conftest$ac_exeext conftest.$ac_ext 16518fi 16519 16520 16521 CFLAGS="$xorg_testset_save_CFLAGS" 16522 16523 eval supported=\$$cacheid 16524 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16525printf "%s\n" "$supported" >&6; } 16526 if test "$supported" = "yes" ; then 16527 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds" 16528 found="yes" 16529 fi 16530 fi 16531 16532 16533 16534 16535 16536 16537 16538 16539 16540 16541 16542 16543 16544 16545 16546xorg_testset_save_CFLAGS="$CFLAGS" 16547 16548if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16549 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16550 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16551printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16552if test ${xorg_cv_cc_flag_unknown_warning_option+y} 16553then : 16554 printf %s "(cached) " >&6 16555else $as_nop 16556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16557/* end confdefs.h. */ 16558int i; 16559_ACEOF 16560if ac_fn_c_try_compile "$LINENO" 16561then : 16562 xorg_cv_cc_flag_unknown_warning_option=yes 16563else $as_nop 16564 xorg_cv_cc_flag_unknown_warning_option=no 16565fi 16566rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16567fi 16568{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16569printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16570 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16571 CFLAGS="$xorg_testset_save_CFLAGS" 16572fi 16573 16574if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16575 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16576 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16577 fi 16578 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16579 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16580printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16581if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 16582then : 16583 printf %s "(cached) " >&6 16584else $as_nop 16585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16586/* end confdefs.h. */ 16587int i; 16588_ACEOF 16589if ac_fn_c_try_compile "$LINENO" 16590then : 16591 xorg_cv_cc_flag_unused_command_line_argument=yes 16592else $as_nop 16593 xorg_cv_cc_flag_unused_command_line_argument=no 16594fi 16595rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16596fi 16597{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16598printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16599 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16600 CFLAGS="$xorg_testset_save_CFLAGS" 16601fi 16602 16603found="no" 16604 16605 if test $found = "no" ; then 16606 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16607 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16608 fi 16609 16610 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16611 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16612 fi 16613 16614 CFLAGS="$CFLAGS -Werror=write-strings" 16615 16616 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5 16617printf %s "checking if $CC supports -Werror=write-strings... " >&6; } 16618 cacheid=xorg_cv_cc_flag__Werror_write_strings 16619 if eval test \${$cacheid+y} 16620then : 16621 printf %s "(cached) " >&6 16622else $as_nop 16623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16624/* end confdefs.h. */ 16625int i; 16626int 16627main (void) 16628{ 16629 16630 ; 16631 return 0; 16632} 16633_ACEOF 16634if ac_fn_c_try_link "$LINENO" 16635then : 16636 eval $cacheid=yes 16637else $as_nop 16638 eval $cacheid=no 16639fi 16640rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16641 conftest$ac_exeext conftest.$ac_ext 16642fi 16643 16644 16645 CFLAGS="$xorg_testset_save_CFLAGS" 16646 16647 eval supported=\$$cacheid 16648 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16649printf "%s\n" "$supported" >&6; } 16650 if test "$supported" = "yes" ; then 16651 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings" 16652 found="yes" 16653 fi 16654 fi 16655 16656 16657 16658 16659 16660 16661 16662 16663 16664 16665 16666 16667 16668 16669 16670xorg_testset_save_CFLAGS="$CFLAGS" 16671 16672if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16673 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16674 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16675printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16676if test ${xorg_cv_cc_flag_unknown_warning_option+y} 16677then : 16678 printf %s "(cached) " >&6 16679else $as_nop 16680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16681/* end confdefs.h. */ 16682int i; 16683_ACEOF 16684if ac_fn_c_try_compile "$LINENO" 16685then : 16686 xorg_cv_cc_flag_unknown_warning_option=yes 16687else $as_nop 16688 xorg_cv_cc_flag_unknown_warning_option=no 16689fi 16690rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16691fi 16692{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16693printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16694 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16695 CFLAGS="$xorg_testset_save_CFLAGS" 16696fi 16697 16698if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16699 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16700 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16701 fi 16702 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16703 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16704printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16705if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 16706then : 16707 printf %s "(cached) " >&6 16708else $as_nop 16709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16710/* end confdefs.h. */ 16711int i; 16712_ACEOF 16713if ac_fn_c_try_compile "$LINENO" 16714then : 16715 xorg_cv_cc_flag_unused_command_line_argument=yes 16716else $as_nop 16717 xorg_cv_cc_flag_unused_command_line_argument=no 16718fi 16719rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16720fi 16721{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16722printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16723 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16724 CFLAGS="$xorg_testset_save_CFLAGS" 16725fi 16726 16727found="no" 16728 16729 if test $found = "no" ; then 16730 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16731 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16732 fi 16733 16734 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16735 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16736 fi 16737 16738 CFLAGS="$CFLAGS -Werror=address" 16739 16740 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5 16741printf %s "checking if $CC supports -Werror=address... " >&6; } 16742 cacheid=xorg_cv_cc_flag__Werror_address 16743 if eval test \${$cacheid+y} 16744then : 16745 printf %s "(cached) " >&6 16746else $as_nop 16747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16748/* end confdefs.h. */ 16749int i; 16750int 16751main (void) 16752{ 16753 16754 ; 16755 return 0; 16756} 16757_ACEOF 16758if ac_fn_c_try_link "$LINENO" 16759then : 16760 eval $cacheid=yes 16761else $as_nop 16762 eval $cacheid=no 16763fi 16764rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16765 conftest$ac_exeext conftest.$ac_ext 16766fi 16767 16768 16769 CFLAGS="$xorg_testset_save_CFLAGS" 16770 16771 eval supported=\$$cacheid 16772 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16773printf "%s\n" "$supported" >&6; } 16774 if test "$supported" = "yes" ; then 16775 BASE_CFLAGS="$BASE_CFLAGS -Werror=address" 16776 found="yes" 16777 fi 16778 fi 16779 16780 16781 16782 16783 16784 16785 16786 16787 16788 16789 16790 16791 16792 16793 16794xorg_testset_save_CFLAGS="$CFLAGS" 16795 16796if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16797 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16798 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16799printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16800if test ${xorg_cv_cc_flag_unknown_warning_option+y} 16801then : 16802 printf %s "(cached) " >&6 16803else $as_nop 16804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16805/* end confdefs.h. */ 16806int i; 16807_ACEOF 16808if ac_fn_c_try_compile "$LINENO" 16809then : 16810 xorg_cv_cc_flag_unknown_warning_option=yes 16811else $as_nop 16812 xorg_cv_cc_flag_unknown_warning_option=no 16813fi 16814rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16815fi 16816{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16817printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16818 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16819 CFLAGS="$xorg_testset_save_CFLAGS" 16820fi 16821 16822if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16823 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16824 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16825 fi 16826 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16827 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16828printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16829if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 16830then : 16831 printf %s "(cached) " >&6 16832else $as_nop 16833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16834/* end confdefs.h. */ 16835int i; 16836_ACEOF 16837if ac_fn_c_try_compile "$LINENO" 16838then : 16839 xorg_cv_cc_flag_unused_command_line_argument=yes 16840else $as_nop 16841 xorg_cv_cc_flag_unused_command_line_argument=no 16842fi 16843rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16844fi 16845{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16846printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16847 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16848 CFLAGS="$xorg_testset_save_CFLAGS" 16849fi 16850 16851found="no" 16852 16853 if test $found = "no" ; then 16854 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16855 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16856 fi 16857 16858 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16859 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16860 fi 16861 16862 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast" 16863 16864 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5 16865printf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; } 16866 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast 16867 if eval test \${$cacheid+y} 16868then : 16869 printf %s "(cached) " >&6 16870else $as_nop 16871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16872/* end confdefs.h. */ 16873int i; 16874int 16875main (void) 16876{ 16877 16878 ; 16879 return 0; 16880} 16881_ACEOF 16882if ac_fn_c_try_link "$LINENO" 16883then : 16884 eval $cacheid=yes 16885else $as_nop 16886 eval $cacheid=no 16887fi 16888rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16889 conftest$ac_exeext conftest.$ac_ext 16890fi 16891 16892 16893 CFLAGS="$xorg_testset_save_CFLAGS" 16894 16895 eval supported=\$$cacheid 16896 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16897printf "%s\n" "$supported" >&6; } 16898 if test "$supported" = "yes" ; then 16899 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast" 16900 found="yes" 16901 fi 16902 fi 16903 16904 if test $found = "no" ; then 16905 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16906 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16907 fi 16908 16909 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16910 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16911 fi 16912 16913 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 16914 16915 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5 16916printf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; } 16917 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION 16918 if eval test \${$cacheid+y} 16919then : 16920 printf %s "(cached) " >&6 16921else $as_nop 16922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16923/* end confdefs.h. */ 16924int i; 16925int 16926main (void) 16927{ 16928 16929 ; 16930 return 0; 16931} 16932_ACEOF 16933if ac_fn_c_try_link "$LINENO" 16934then : 16935 eval $cacheid=yes 16936else $as_nop 16937 eval $cacheid=no 16938fi 16939rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16940 conftest$ac_exeext conftest.$ac_ext 16941fi 16942 16943 16944 CFLAGS="$xorg_testset_save_CFLAGS" 16945 16946 eval supported=\$$cacheid 16947 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16948printf "%s\n" "$supported" >&6; } 16949 if test "$supported" = "yes" ; then 16950 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 16951 found="yes" 16952 fi 16953 fi 16954 16955 16956 16957 16958 16959 16960 16961 16962 16963 16964 16965 16966 16967 16968 16969xorg_testset_save_CFLAGS="$CFLAGS" 16970 16971if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16972 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16973 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16974printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16975if test ${xorg_cv_cc_flag_unknown_warning_option+y} 16976then : 16977 printf %s "(cached) " >&6 16978else $as_nop 16979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16980/* end confdefs.h. */ 16981int i; 16982_ACEOF 16983if ac_fn_c_try_compile "$LINENO" 16984then : 16985 xorg_cv_cc_flag_unknown_warning_option=yes 16986else $as_nop 16987 xorg_cv_cc_flag_unknown_warning_option=no 16988fi 16989rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16990fi 16991{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16992printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16993 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16994 CFLAGS="$xorg_testset_save_CFLAGS" 16995fi 16996 16997if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16998 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16999 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17000 fi 17001 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17002 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17003printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17004if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 17005then : 17006 printf %s "(cached) " >&6 17007else $as_nop 17008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17009/* end confdefs.h. */ 17010int i; 17011_ACEOF 17012if ac_fn_c_try_compile "$LINENO" 17013then : 17014 xorg_cv_cc_flag_unused_command_line_argument=yes 17015else $as_nop 17016 xorg_cv_cc_flag_unused_command_line_argument=no 17017fi 17018rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17019fi 17020{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17021printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17022 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17023 CFLAGS="$xorg_testset_save_CFLAGS" 17024fi 17025 17026found="no" 17027 17028 if test $found = "no" ; then 17029 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17030 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17031 fi 17032 17033 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17034 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17035 fi 17036 17037 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast" 17038 17039 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5 17040printf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; } 17041 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast 17042 if eval test \${$cacheid+y} 17043then : 17044 printf %s "(cached) " >&6 17045else $as_nop 17046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17047/* end confdefs.h. */ 17048int i; 17049int 17050main (void) 17051{ 17052 17053 ; 17054 return 0; 17055} 17056_ACEOF 17057if ac_fn_c_try_link "$LINENO" 17058then : 17059 eval $cacheid=yes 17060else $as_nop 17061 eval $cacheid=no 17062fi 17063rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17064 conftest$ac_exeext conftest.$ac_ext 17065fi 17066 17067 17068 CFLAGS="$xorg_testset_save_CFLAGS" 17069 17070 eval supported=\$$cacheid 17071 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17072printf "%s\n" "$supported" >&6; } 17073 if test "$supported" = "yes" ; then 17074 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast" 17075 found="yes" 17076 fi 17077 fi 17078 17079 # Also -errwarn=E_BAD_PTR_INT_COMBINATION 17080else 17081{ 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 17082printf "%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;} 17083 17084 17085 17086 17087 17088 17089 17090 17091 17092 17093 17094 17095 17096xorg_testset_save_CFLAGS="$CFLAGS" 17097 17098if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17099 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17100 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17101printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17102if test ${xorg_cv_cc_flag_unknown_warning_option+y} 17103then : 17104 printf %s "(cached) " >&6 17105else $as_nop 17106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17107/* end confdefs.h. */ 17108int i; 17109_ACEOF 17110if ac_fn_c_try_compile "$LINENO" 17111then : 17112 xorg_cv_cc_flag_unknown_warning_option=yes 17113else $as_nop 17114 xorg_cv_cc_flag_unknown_warning_option=no 17115fi 17116rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17117fi 17118{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17119printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17120 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17121 CFLAGS="$xorg_testset_save_CFLAGS" 17122fi 17123 17124if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17125 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17126 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17127 fi 17128 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17129 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17130printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17131if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 17132then : 17133 printf %s "(cached) " >&6 17134else $as_nop 17135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17136/* end confdefs.h. */ 17137int i; 17138_ACEOF 17139if ac_fn_c_try_compile "$LINENO" 17140then : 17141 xorg_cv_cc_flag_unused_command_line_argument=yes 17142else $as_nop 17143 xorg_cv_cc_flag_unused_command_line_argument=no 17144fi 17145rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17146fi 17147{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17148printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17149 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17150 CFLAGS="$xorg_testset_save_CFLAGS" 17151fi 17152 17153found="no" 17154 17155 if test $found = "no" ; then 17156 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17157 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17158 fi 17159 17160 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17161 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17162 fi 17163 17164 CFLAGS="$CFLAGS -Wimplicit" 17165 17166 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5 17167printf %s "checking if $CC supports -Wimplicit... " >&6; } 17168 cacheid=xorg_cv_cc_flag__Wimplicit 17169 if eval test \${$cacheid+y} 17170then : 17171 printf %s "(cached) " >&6 17172else $as_nop 17173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17174/* end confdefs.h. */ 17175int i; 17176int 17177main (void) 17178{ 17179 17180 ; 17181 return 0; 17182} 17183_ACEOF 17184if ac_fn_c_try_link "$LINENO" 17185then : 17186 eval $cacheid=yes 17187else $as_nop 17188 eval $cacheid=no 17189fi 17190rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17191 conftest$ac_exeext conftest.$ac_ext 17192fi 17193 17194 17195 CFLAGS="$xorg_testset_save_CFLAGS" 17196 17197 eval supported=\$$cacheid 17198 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17199printf "%s\n" "$supported" >&6; } 17200 if test "$supported" = "yes" ; then 17201 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit" 17202 found="yes" 17203 fi 17204 fi 17205 17206 17207 17208 17209 17210 17211 17212 17213 17214 17215 17216 17217 17218 17219 17220xorg_testset_save_CFLAGS="$CFLAGS" 17221 17222if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17223 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17224 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17225printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17226if test ${xorg_cv_cc_flag_unknown_warning_option+y} 17227then : 17228 printf %s "(cached) " >&6 17229else $as_nop 17230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17231/* end confdefs.h. */ 17232int i; 17233_ACEOF 17234if ac_fn_c_try_compile "$LINENO" 17235then : 17236 xorg_cv_cc_flag_unknown_warning_option=yes 17237else $as_nop 17238 xorg_cv_cc_flag_unknown_warning_option=no 17239fi 17240rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17241fi 17242{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17243printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17244 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17245 CFLAGS="$xorg_testset_save_CFLAGS" 17246fi 17247 17248if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17249 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17250 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17251 fi 17252 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17253 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17254printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17255if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 17256then : 17257 printf %s "(cached) " >&6 17258else $as_nop 17259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17260/* end confdefs.h. */ 17261int i; 17262_ACEOF 17263if ac_fn_c_try_compile "$LINENO" 17264then : 17265 xorg_cv_cc_flag_unused_command_line_argument=yes 17266else $as_nop 17267 xorg_cv_cc_flag_unused_command_line_argument=no 17268fi 17269rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17270fi 17271{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17272printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17273 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17274 CFLAGS="$xorg_testset_save_CFLAGS" 17275fi 17276 17277found="no" 17278 17279 if test $found = "no" ; then 17280 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17281 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17282 fi 17283 17284 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17285 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17286 fi 17287 17288 CFLAGS="$CFLAGS -Wnonnull" 17289 17290 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5 17291printf %s "checking if $CC supports -Wnonnull... " >&6; } 17292 cacheid=xorg_cv_cc_flag__Wnonnull 17293 if eval test \${$cacheid+y} 17294then : 17295 printf %s "(cached) " >&6 17296else $as_nop 17297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17298/* end confdefs.h. */ 17299int i; 17300int 17301main (void) 17302{ 17303 17304 ; 17305 return 0; 17306} 17307_ACEOF 17308if ac_fn_c_try_link "$LINENO" 17309then : 17310 eval $cacheid=yes 17311else $as_nop 17312 eval $cacheid=no 17313fi 17314rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17315 conftest$ac_exeext conftest.$ac_ext 17316fi 17317 17318 17319 CFLAGS="$xorg_testset_save_CFLAGS" 17320 17321 eval supported=\$$cacheid 17322 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17323printf "%s\n" "$supported" >&6; } 17324 if test "$supported" = "yes" ; then 17325 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull" 17326 found="yes" 17327 fi 17328 fi 17329 17330 17331 17332 17333 17334 17335 17336 17337 17338 17339 17340 17341 17342 17343 17344xorg_testset_save_CFLAGS="$CFLAGS" 17345 17346if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17347 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17348 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17349printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17350if test ${xorg_cv_cc_flag_unknown_warning_option+y} 17351then : 17352 printf %s "(cached) " >&6 17353else $as_nop 17354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17355/* end confdefs.h. */ 17356int i; 17357_ACEOF 17358if ac_fn_c_try_compile "$LINENO" 17359then : 17360 xorg_cv_cc_flag_unknown_warning_option=yes 17361else $as_nop 17362 xorg_cv_cc_flag_unknown_warning_option=no 17363fi 17364rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17365fi 17366{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17367printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17368 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17369 CFLAGS="$xorg_testset_save_CFLAGS" 17370fi 17371 17372if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17373 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17374 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17375 fi 17376 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17377 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17378printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17379if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 17380then : 17381 printf %s "(cached) " >&6 17382else $as_nop 17383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17384/* end confdefs.h. */ 17385int i; 17386_ACEOF 17387if ac_fn_c_try_compile "$LINENO" 17388then : 17389 xorg_cv_cc_flag_unused_command_line_argument=yes 17390else $as_nop 17391 xorg_cv_cc_flag_unused_command_line_argument=no 17392fi 17393rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17394fi 17395{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17396printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17397 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17398 CFLAGS="$xorg_testset_save_CFLAGS" 17399fi 17400 17401found="no" 17402 17403 if test $found = "no" ; then 17404 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17405 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17406 fi 17407 17408 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17409 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17410 fi 17411 17412 CFLAGS="$CFLAGS -Winit-self" 17413 17414 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5 17415printf %s "checking if $CC supports -Winit-self... " >&6; } 17416 cacheid=xorg_cv_cc_flag__Winit_self 17417 if eval test \${$cacheid+y} 17418then : 17419 printf %s "(cached) " >&6 17420else $as_nop 17421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17422/* end confdefs.h. */ 17423int i; 17424int 17425main (void) 17426{ 17427 17428 ; 17429 return 0; 17430} 17431_ACEOF 17432if ac_fn_c_try_link "$LINENO" 17433then : 17434 eval $cacheid=yes 17435else $as_nop 17436 eval $cacheid=no 17437fi 17438rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17439 conftest$ac_exeext conftest.$ac_ext 17440fi 17441 17442 17443 CFLAGS="$xorg_testset_save_CFLAGS" 17444 17445 eval supported=\$$cacheid 17446 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17447printf "%s\n" "$supported" >&6; } 17448 if test "$supported" = "yes" ; then 17449 BASE_CFLAGS="$BASE_CFLAGS -Winit-self" 17450 found="yes" 17451 fi 17452 fi 17453 17454 17455 17456 17457 17458 17459 17460 17461 17462 17463 17464 17465 17466 17467 17468xorg_testset_save_CFLAGS="$CFLAGS" 17469 17470if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17471 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17472 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17473printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17474if test ${xorg_cv_cc_flag_unknown_warning_option+y} 17475then : 17476 printf %s "(cached) " >&6 17477else $as_nop 17478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17479/* end confdefs.h. */ 17480int i; 17481_ACEOF 17482if ac_fn_c_try_compile "$LINENO" 17483then : 17484 xorg_cv_cc_flag_unknown_warning_option=yes 17485else $as_nop 17486 xorg_cv_cc_flag_unknown_warning_option=no 17487fi 17488rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17489fi 17490{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17491printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17492 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17493 CFLAGS="$xorg_testset_save_CFLAGS" 17494fi 17495 17496if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17497 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17498 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17499 fi 17500 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17501 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17502printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17503if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 17504then : 17505 printf %s "(cached) " >&6 17506else $as_nop 17507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17508/* end confdefs.h. */ 17509int i; 17510_ACEOF 17511if ac_fn_c_try_compile "$LINENO" 17512then : 17513 xorg_cv_cc_flag_unused_command_line_argument=yes 17514else $as_nop 17515 xorg_cv_cc_flag_unused_command_line_argument=no 17516fi 17517rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17518fi 17519{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17520printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17521 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17522 CFLAGS="$xorg_testset_save_CFLAGS" 17523fi 17524 17525found="no" 17526 17527 if test $found = "no" ; then 17528 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17529 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17530 fi 17531 17532 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17533 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17534 fi 17535 17536 CFLAGS="$CFLAGS -Wmain" 17537 17538 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5 17539printf %s "checking if $CC supports -Wmain... " >&6; } 17540 cacheid=xorg_cv_cc_flag__Wmain 17541 if eval test \${$cacheid+y} 17542then : 17543 printf %s "(cached) " >&6 17544else $as_nop 17545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17546/* end confdefs.h. */ 17547int i; 17548int 17549main (void) 17550{ 17551 17552 ; 17553 return 0; 17554} 17555_ACEOF 17556if ac_fn_c_try_link "$LINENO" 17557then : 17558 eval $cacheid=yes 17559else $as_nop 17560 eval $cacheid=no 17561fi 17562rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17563 conftest$ac_exeext conftest.$ac_ext 17564fi 17565 17566 17567 CFLAGS="$xorg_testset_save_CFLAGS" 17568 17569 eval supported=\$$cacheid 17570 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17571printf "%s\n" "$supported" >&6; } 17572 if test "$supported" = "yes" ; then 17573 BASE_CFLAGS="$BASE_CFLAGS -Wmain" 17574 found="yes" 17575 fi 17576 fi 17577 17578 17579 17580 17581 17582 17583 17584 17585 17586 17587 17588 17589 17590 17591 17592xorg_testset_save_CFLAGS="$CFLAGS" 17593 17594if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17595 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17596 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17597printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17598if test ${xorg_cv_cc_flag_unknown_warning_option+y} 17599then : 17600 printf %s "(cached) " >&6 17601else $as_nop 17602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17603/* end confdefs.h. */ 17604int i; 17605_ACEOF 17606if ac_fn_c_try_compile "$LINENO" 17607then : 17608 xorg_cv_cc_flag_unknown_warning_option=yes 17609else $as_nop 17610 xorg_cv_cc_flag_unknown_warning_option=no 17611fi 17612rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17613fi 17614{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17615printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17616 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17617 CFLAGS="$xorg_testset_save_CFLAGS" 17618fi 17619 17620if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17621 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17622 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17623 fi 17624 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17625 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17626printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17627if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 17628then : 17629 printf %s "(cached) " >&6 17630else $as_nop 17631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17632/* end confdefs.h. */ 17633int i; 17634_ACEOF 17635if ac_fn_c_try_compile "$LINENO" 17636then : 17637 xorg_cv_cc_flag_unused_command_line_argument=yes 17638else $as_nop 17639 xorg_cv_cc_flag_unused_command_line_argument=no 17640fi 17641rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17642fi 17643{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17644printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17645 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17646 CFLAGS="$xorg_testset_save_CFLAGS" 17647fi 17648 17649found="no" 17650 17651 if test $found = "no" ; then 17652 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17653 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17654 fi 17655 17656 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17657 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17658 fi 17659 17660 CFLAGS="$CFLAGS -Wmissing-braces" 17661 17662 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5 17663printf %s "checking if $CC supports -Wmissing-braces... " >&6; } 17664 cacheid=xorg_cv_cc_flag__Wmissing_braces 17665 if eval test \${$cacheid+y} 17666then : 17667 printf %s "(cached) " >&6 17668else $as_nop 17669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17670/* end confdefs.h. */ 17671int i; 17672int 17673main (void) 17674{ 17675 17676 ; 17677 return 0; 17678} 17679_ACEOF 17680if ac_fn_c_try_link "$LINENO" 17681then : 17682 eval $cacheid=yes 17683else $as_nop 17684 eval $cacheid=no 17685fi 17686rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17687 conftest$ac_exeext conftest.$ac_ext 17688fi 17689 17690 17691 CFLAGS="$xorg_testset_save_CFLAGS" 17692 17693 eval supported=\$$cacheid 17694 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17695printf "%s\n" "$supported" >&6; } 17696 if test "$supported" = "yes" ; then 17697 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces" 17698 found="yes" 17699 fi 17700 fi 17701 17702 17703 17704 17705 17706 17707 17708 17709 17710 17711 17712 17713 17714 17715 17716xorg_testset_save_CFLAGS="$CFLAGS" 17717 17718if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17719 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17720 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17721printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17722if test ${xorg_cv_cc_flag_unknown_warning_option+y} 17723then : 17724 printf %s "(cached) " >&6 17725else $as_nop 17726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17727/* end confdefs.h. */ 17728int i; 17729_ACEOF 17730if ac_fn_c_try_compile "$LINENO" 17731then : 17732 xorg_cv_cc_flag_unknown_warning_option=yes 17733else $as_nop 17734 xorg_cv_cc_flag_unknown_warning_option=no 17735fi 17736rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17737fi 17738{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17739printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17740 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17741 CFLAGS="$xorg_testset_save_CFLAGS" 17742fi 17743 17744if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17745 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17746 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17747 fi 17748 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17749 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17750printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17751if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 17752then : 17753 printf %s "(cached) " >&6 17754else $as_nop 17755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17756/* end confdefs.h. */ 17757int i; 17758_ACEOF 17759if ac_fn_c_try_compile "$LINENO" 17760then : 17761 xorg_cv_cc_flag_unused_command_line_argument=yes 17762else $as_nop 17763 xorg_cv_cc_flag_unused_command_line_argument=no 17764fi 17765rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17766fi 17767{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17768printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17769 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17770 CFLAGS="$xorg_testset_save_CFLAGS" 17771fi 17772 17773found="no" 17774 17775 if test $found = "no" ; then 17776 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17777 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17778 fi 17779 17780 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17781 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17782 fi 17783 17784 CFLAGS="$CFLAGS -Wsequence-point" 17785 17786 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5 17787printf %s "checking if $CC supports -Wsequence-point... " >&6; } 17788 cacheid=xorg_cv_cc_flag__Wsequence_point 17789 if eval test \${$cacheid+y} 17790then : 17791 printf %s "(cached) " >&6 17792else $as_nop 17793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17794/* end confdefs.h. */ 17795int i; 17796int 17797main (void) 17798{ 17799 17800 ; 17801 return 0; 17802} 17803_ACEOF 17804if ac_fn_c_try_link "$LINENO" 17805then : 17806 eval $cacheid=yes 17807else $as_nop 17808 eval $cacheid=no 17809fi 17810rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17811 conftest$ac_exeext conftest.$ac_ext 17812fi 17813 17814 17815 CFLAGS="$xorg_testset_save_CFLAGS" 17816 17817 eval supported=\$$cacheid 17818 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17819printf "%s\n" "$supported" >&6; } 17820 if test "$supported" = "yes" ; then 17821 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point" 17822 found="yes" 17823 fi 17824 fi 17825 17826 17827 17828 17829 17830 17831 17832 17833 17834 17835 17836 17837 17838 17839 17840xorg_testset_save_CFLAGS="$CFLAGS" 17841 17842if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17843 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17844 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17845printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17846if test ${xorg_cv_cc_flag_unknown_warning_option+y} 17847then : 17848 printf %s "(cached) " >&6 17849else $as_nop 17850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17851/* end confdefs.h. */ 17852int i; 17853_ACEOF 17854if ac_fn_c_try_compile "$LINENO" 17855then : 17856 xorg_cv_cc_flag_unknown_warning_option=yes 17857else $as_nop 17858 xorg_cv_cc_flag_unknown_warning_option=no 17859fi 17860rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17861fi 17862{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17863printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17864 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17865 CFLAGS="$xorg_testset_save_CFLAGS" 17866fi 17867 17868if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17869 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17870 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17871 fi 17872 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17873 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17874printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17875if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 17876then : 17877 printf %s "(cached) " >&6 17878else $as_nop 17879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17880/* end confdefs.h. */ 17881int i; 17882_ACEOF 17883if ac_fn_c_try_compile "$LINENO" 17884then : 17885 xorg_cv_cc_flag_unused_command_line_argument=yes 17886else $as_nop 17887 xorg_cv_cc_flag_unused_command_line_argument=no 17888fi 17889rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17890fi 17891{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17892printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17893 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17894 CFLAGS="$xorg_testset_save_CFLAGS" 17895fi 17896 17897found="no" 17898 17899 if test $found = "no" ; then 17900 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17901 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17902 fi 17903 17904 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17905 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17906 fi 17907 17908 CFLAGS="$CFLAGS -Wreturn-type" 17909 17910 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5 17911printf %s "checking if $CC supports -Wreturn-type... " >&6; } 17912 cacheid=xorg_cv_cc_flag__Wreturn_type 17913 if eval test \${$cacheid+y} 17914then : 17915 printf %s "(cached) " >&6 17916else $as_nop 17917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17918/* end confdefs.h. */ 17919int i; 17920int 17921main (void) 17922{ 17923 17924 ; 17925 return 0; 17926} 17927_ACEOF 17928if ac_fn_c_try_link "$LINENO" 17929then : 17930 eval $cacheid=yes 17931else $as_nop 17932 eval $cacheid=no 17933fi 17934rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17935 conftest$ac_exeext conftest.$ac_ext 17936fi 17937 17938 17939 CFLAGS="$xorg_testset_save_CFLAGS" 17940 17941 eval supported=\$$cacheid 17942 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17943printf "%s\n" "$supported" >&6; } 17944 if test "$supported" = "yes" ; then 17945 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type" 17946 found="yes" 17947 fi 17948 fi 17949 17950 17951 17952 17953 17954 17955 17956 17957 17958 17959 17960 17961 17962 17963 17964xorg_testset_save_CFLAGS="$CFLAGS" 17965 17966if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17967 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17968 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17969printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17970if test ${xorg_cv_cc_flag_unknown_warning_option+y} 17971then : 17972 printf %s "(cached) " >&6 17973else $as_nop 17974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17975/* end confdefs.h. */ 17976int i; 17977_ACEOF 17978if ac_fn_c_try_compile "$LINENO" 17979then : 17980 xorg_cv_cc_flag_unknown_warning_option=yes 17981else $as_nop 17982 xorg_cv_cc_flag_unknown_warning_option=no 17983fi 17984rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17985fi 17986{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17987printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17988 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17989 CFLAGS="$xorg_testset_save_CFLAGS" 17990fi 17991 17992if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17993 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17994 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17995 fi 17996 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17997 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17998printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17999if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 18000then : 18001 printf %s "(cached) " >&6 18002else $as_nop 18003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18004/* end confdefs.h. */ 18005int i; 18006_ACEOF 18007if ac_fn_c_try_compile "$LINENO" 18008then : 18009 xorg_cv_cc_flag_unused_command_line_argument=yes 18010else $as_nop 18011 xorg_cv_cc_flag_unused_command_line_argument=no 18012fi 18013rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18014fi 18015{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18016printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18017 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18018 CFLAGS="$xorg_testset_save_CFLAGS" 18019fi 18020 18021found="no" 18022 18023 if test $found = "no" ; then 18024 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18025 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18026 fi 18027 18028 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18029 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18030 fi 18031 18032 CFLAGS="$CFLAGS -Wtrigraphs" 18033 18034 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5 18035printf %s "checking if $CC supports -Wtrigraphs... " >&6; } 18036 cacheid=xorg_cv_cc_flag__Wtrigraphs 18037 if eval test \${$cacheid+y} 18038then : 18039 printf %s "(cached) " >&6 18040else $as_nop 18041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18042/* end confdefs.h. */ 18043int i; 18044int 18045main (void) 18046{ 18047 18048 ; 18049 return 0; 18050} 18051_ACEOF 18052if ac_fn_c_try_link "$LINENO" 18053then : 18054 eval $cacheid=yes 18055else $as_nop 18056 eval $cacheid=no 18057fi 18058rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18059 conftest$ac_exeext conftest.$ac_ext 18060fi 18061 18062 18063 CFLAGS="$xorg_testset_save_CFLAGS" 18064 18065 eval supported=\$$cacheid 18066 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18067printf "%s\n" "$supported" >&6; } 18068 if test "$supported" = "yes" ; then 18069 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs" 18070 found="yes" 18071 fi 18072 fi 18073 18074 18075 18076 18077 18078 18079 18080 18081 18082 18083 18084 18085 18086 18087 18088xorg_testset_save_CFLAGS="$CFLAGS" 18089 18090if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18091 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18092 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18093printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18094if test ${xorg_cv_cc_flag_unknown_warning_option+y} 18095then : 18096 printf %s "(cached) " >&6 18097else $as_nop 18098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18099/* end confdefs.h. */ 18100int i; 18101_ACEOF 18102if ac_fn_c_try_compile "$LINENO" 18103then : 18104 xorg_cv_cc_flag_unknown_warning_option=yes 18105else $as_nop 18106 xorg_cv_cc_flag_unknown_warning_option=no 18107fi 18108rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18109fi 18110{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18111printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18112 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18113 CFLAGS="$xorg_testset_save_CFLAGS" 18114fi 18115 18116if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18117 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18118 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18119 fi 18120 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18121 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18122printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18123if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 18124then : 18125 printf %s "(cached) " >&6 18126else $as_nop 18127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18128/* end confdefs.h. */ 18129int i; 18130_ACEOF 18131if ac_fn_c_try_compile "$LINENO" 18132then : 18133 xorg_cv_cc_flag_unused_command_line_argument=yes 18134else $as_nop 18135 xorg_cv_cc_flag_unused_command_line_argument=no 18136fi 18137rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18138fi 18139{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18140printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18141 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18142 CFLAGS="$xorg_testset_save_CFLAGS" 18143fi 18144 18145found="no" 18146 18147 if test $found = "no" ; then 18148 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18149 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18150 fi 18151 18152 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18153 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18154 fi 18155 18156 CFLAGS="$CFLAGS -Warray-bounds" 18157 18158 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5 18159printf %s "checking if $CC supports -Warray-bounds... " >&6; } 18160 cacheid=xorg_cv_cc_flag__Warray_bounds 18161 if eval test \${$cacheid+y} 18162then : 18163 printf %s "(cached) " >&6 18164else $as_nop 18165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18166/* end confdefs.h. */ 18167int i; 18168int 18169main (void) 18170{ 18171 18172 ; 18173 return 0; 18174} 18175_ACEOF 18176if ac_fn_c_try_link "$LINENO" 18177then : 18178 eval $cacheid=yes 18179else $as_nop 18180 eval $cacheid=no 18181fi 18182rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18183 conftest$ac_exeext conftest.$ac_ext 18184fi 18185 18186 18187 CFLAGS="$xorg_testset_save_CFLAGS" 18188 18189 eval supported=\$$cacheid 18190 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18191printf "%s\n" "$supported" >&6; } 18192 if test "$supported" = "yes" ; then 18193 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds" 18194 found="yes" 18195 fi 18196 fi 18197 18198 18199 18200 18201 18202 18203 18204 18205 18206 18207 18208 18209 18210 18211 18212xorg_testset_save_CFLAGS="$CFLAGS" 18213 18214if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18215 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18216 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18217printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18218if test ${xorg_cv_cc_flag_unknown_warning_option+y} 18219then : 18220 printf %s "(cached) " >&6 18221else $as_nop 18222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18223/* end confdefs.h. */ 18224int i; 18225_ACEOF 18226if ac_fn_c_try_compile "$LINENO" 18227then : 18228 xorg_cv_cc_flag_unknown_warning_option=yes 18229else $as_nop 18230 xorg_cv_cc_flag_unknown_warning_option=no 18231fi 18232rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18233fi 18234{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18235printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18236 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18237 CFLAGS="$xorg_testset_save_CFLAGS" 18238fi 18239 18240if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18241 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18242 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18243 fi 18244 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18245 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18246printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18247if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 18248then : 18249 printf %s "(cached) " >&6 18250else $as_nop 18251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18252/* end confdefs.h. */ 18253int i; 18254_ACEOF 18255if ac_fn_c_try_compile "$LINENO" 18256then : 18257 xorg_cv_cc_flag_unused_command_line_argument=yes 18258else $as_nop 18259 xorg_cv_cc_flag_unused_command_line_argument=no 18260fi 18261rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18262fi 18263{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18264printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18265 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18266 CFLAGS="$xorg_testset_save_CFLAGS" 18267fi 18268 18269found="no" 18270 18271 if test $found = "no" ; then 18272 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18273 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18274 fi 18275 18276 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18277 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18278 fi 18279 18280 CFLAGS="$CFLAGS -Wwrite-strings" 18281 18282 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5 18283printf %s "checking if $CC supports -Wwrite-strings... " >&6; } 18284 cacheid=xorg_cv_cc_flag__Wwrite_strings 18285 if eval test \${$cacheid+y} 18286then : 18287 printf %s "(cached) " >&6 18288else $as_nop 18289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18290/* end confdefs.h. */ 18291int i; 18292int 18293main (void) 18294{ 18295 18296 ; 18297 return 0; 18298} 18299_ACEOF 18300if ac_fn_c_try_link "$LINENO" 18301then : 18302 eval $cacheid=yes 18303else $as_nop 18304 eval $cacheid=no 18305fi 18306rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18307 conftest$ac_exeext conftest.$ac_ext 18308fi 18309 18310 18311 CFLAGS="$xorg_testset_save_CFLAGS" 18312 18313 eval supported=\$$cacheid 18314 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18315printf "%s\n" "$supported" >&6; } 18316 if test "$supported" = "yes" ; then 18317 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings" 18318 found="yes" 18319 fi 18320 fi 18321 18322 18323 18324 18325 18326 18327 18328 18329 18330 18331 18332 18333 18334 18335 18336xorg_testset_save_CFLAGS="$CFLAGS" 18337 18338if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18339 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18340 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18341printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18342if test ${xorg_cv_cc_flag_unknown_warning_option+y} 18343then : 18344 printf %s "(cached) " >&6 18345else $as_nop 18346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18347/* end confdefs.h. */ 18348int i; 18349_ACEOF 18350if ac_fn_c_try_compile "$LINENO" 18351then : 18352 xorg_cv_cc_flag_unknown_warning_option=yes 18353else $as_nop 18354 xorg_cv_cc_flag_unknown_warning_option=no 18355fi 18356rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18357fi 18358{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18359printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18360 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18361 CFLAGS="$xorg_testset_save_CFLAGS" 18362fi 18363 18364if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18365 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18366 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18367 fi 18368 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18369 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18370printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18371if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 18372then : 18373 printf %s "(cached) " >&6 18374else $as_nop 18375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18376/* end confdefs.h. */ 18377int i; 18378_ACEOF 18379if ac_fn_c_try_compile "$LINENO" 18380then : 18381 xorg_cv_cc_flag_unused_command_line_argument=yes 18382else $as_nop 18383 xorg_cv_cc_flag_unused_command_line_argument=no 18384fi 18385rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18386fi 18387{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18388printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18389 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18390 CFLAGS="$xorg_testset_save_CFLAGS" 18391fi 18392 18393found="no" 18394 18395 if test $found = "no" ; then 18396 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18397 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18398 fi 18399 18400 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18401 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18402 fi 18403 18404 CFLAGS="$CFLAGS -Waddress" 18405 18406 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5 18407printf %s "checking if $CC supports -Waddress... " >&6; } 18408 cacheid=xorg_cv_cc_flag__Waddress 18409 if eval test \${$cacheid+y} 18410then : 18411 printf %s "(cached) " >&6 18412else $as_nop 18413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18414/* end confdefs.h. */ 18415int i; 18416int 18417main (void) 18418{ 18419 18420 ; 18421 return 0; 18422} 18423_ACEOF 18424if ac_fn_c_try_link "$LINENO" 18425then : 18426 eval $cacheid=yes 18427else $as_nop 18428 eval $cacheid=no 18429fi 18430rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18431 conftest$ac_exeext conftest.$ac_ext 18432fi 18433 18434 18435 CFLAGS="$xorg_testset_save_CFLAGS" 18436 18437 eval supported=\$$cacheid 18438 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18439printf "%s\n" "$supported" >&6; } 18440 if test "$supported" = "yes" ; then 18441 BASE_CFLAGS="$BASE_CFLAGS -Waddress" 18442 found="yes" 18443 fi 18444 fi 18445 18446 18447 18448 18449 18450 18451 18452 18453 18454 18455 18456 18457 18458 18459 18460xorg_testset_save_CFLAGS="$CFLAGS" 18461 18462if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18463 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18464 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18465printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18466if test ${xorg_cv_cc_flag_unknown_warning_option+y} 18467then : 18468 printf %s "(cached) " >&6 18469else $as_nop 18470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18471/* end confdefs.h. */ 18472int i; 18473_ACEOF 18474if ac_fn_c_try_compile "$LINENO" 18475then : 18476 xorg_cv_cc_flag_unknown_warning_option=yes 18477else $as_nop 18478 xorg_cv_cc_flag_unknown_warning_option=no 18479fi 18480rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18481fi 18482{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18483printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18484 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18485 CFLAGS="$xorg_testset_save_CFLAGS" 18486fi 18487 18488if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18489 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18490 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18491 fi 18492 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18493 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18494printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18495if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 18496then : 18497 printf %s "(cached) " >&6 18498else $as_nop 18499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18500/* end confdefs.h. */ 18501int i; 18502_ACEOF 18503if ac_fn_c_try_compile "$LINENO" 18504then : 18505 xorg_cv_cc_flag_unused_command_line_argument=yes 18506else $as_nop 18507 xorg_cv_cc_flag_unused_command_line_argument=no 18508fi 18509rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18510fi 18511{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18512printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18513 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18514 CFLAGS="$xorg_testset_save_CFLAGS" 18515fi 18516 18517found="no" 18518 18519 if test $found = "no" ; then 18520 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18521 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18522 fi 18523 18524 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18525 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18526 fi 18527 18528 CFLAGS="$CFLAGS -Wint-to-pointer-cast" 18529 18530 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5 18531printf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; } 18532 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast 18533 if eval test \${$cacheid+y} 18534then : 18535 printf %s "(cached) " >&6 18536else $as_nop 18537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18538/* end confdefs.h. */ 18539int i; 18540int 18541main (void) 18542{ 18543 18544 ; 18545 return 0; 18546} 18547_ACEOF 18548if ac_fn_c_try_link "$LINENO" 18549then : 18550 eval $cacheid=yes 18551else $as_nop 18552 eval $cacheid=no 18553fi 18554rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18555 conftest$ac_exeext conftest.$ac_ext 18556fi 18557 18558 18559 CFLAGS="$xorg_testset_save_CFLAGS" 18560 18561 eval supported=\$$cacheid 18562 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18563printf "%s\n" "$supported" >&6; } 18564 if test "$supported" = "yes" ; then 18565 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast" 18566 found="yes" 18567 fi 18568 fi 18569 18570 18571 18572 18573 18574 18575 18576 18577 18578 18579 18580 18581 18582 18583 18584xorg_testset_save_CFLAGS="$CFLAGS" 18585 18586if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18587 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18588 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18589printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18590if test ${xorg_cv_cc_flag_unknown_warning_option+y} 18591then : 18592 printf %s "(cached) " >&6 18593else $as_nop 18594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18595/* end confdefs.h. */ 18596int i; 18597_ACEOF 18598if ac_fn_c_try_compile "$LINENO" 18599then : 18600 xorg_cv_cc_flag_unknown_warning_option=yes 18601else $as_nop 18602 xorg_cv_cc_flag_unknown_warning_option=no 18603fi 18604rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18605fi 18606{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18607printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18608 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18609 CFLAGS="$xorg_testset_save_CFLAGS" 18610fi 18611 18612if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18613 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18614 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18615 fi 18616 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18617 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18618printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18619if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 18620then : 18621 printf %s "(cached) " >&6 18622else $as_nop 18623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18624/* end confdefs.h. */ 18625int i; 18626_ACEOF 18627if ac_fn_c_try_compile "$LINENO" 18628then : 18629 xorg_cv_cc_flag_unused_command_line_argument=yes 18630else $as_nop 18631 xorg_cv_cc_flag_unused_command_line_argument=no 18632fi 18633rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18634fi 18635{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18636printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18637 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18638 CFLAGS="$xorg_testset_save_CFLAGS" 18639fi 18640 18641found="no" 18642 18643 if test $found = "no" ; then 18644 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18645 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18646 fi 18647 18648 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18649 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18650 fi 18651 18652 CFLAGS="$CFLAGS -Wpointer-to-int-cast" 18653 18654 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5 18655printf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; } 18656 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast 18657 if eval test \${$cacheid+y} 18658then : 18659 printf %s "(cached) " >&6 18660else $as_nop 18661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18662/* end confdefs.h. */ 18663int i; 18664int 18665main (void) 18666{ 18667 18668 ; 18669 return 0; 18670} 18671_ACEOF 18672if ac_fn_c_try_link "$LINENO" 18673then : 18674 eval $cacheid=yes 18675else $as_nop 18676 eval $cacheid=no 18677fi 18678rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18679 conftest$ac_exeext conftest.$ac_ext 18680fi 18681 18682 18683 CFLAGS="$xorg_testset_save_CFLAGS" 18684 18685 eval supported=\$$cacheid 18686 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18687printf "%s\n" "$supported" >&6; } 18688 if test "$supported" = "yes" ; then 18689 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast" 18690 found="yes" 18691 fi 18692 fi 18693 18694 18695fi 18696 18697 18698 18699 18700 18701 18702 18703 CWARNFLAGS="$BASE_CFLAGS" 18704 if test "x$GCC" = xyes ; then 18705 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing" 18706 fi 18707 18708 18709 18710 18711 18712 18713 18714 18715# Check whether --enable-strict-compilation was given. 18716if test ${enable_strict_compilation+y} 18717then : 18718 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 18719else $as_nop 18720 STRICT_COMPILE=no 18721fi 18722 18723 18724 18725 18726 18727 18728STRICT_CFLAGS="" 18729 18730 18731 18732 18733 18734 18735 18736 18737 18738 18739 18740 18741 18742xorg_testset_save_CFLAGS="$CFLAGS" 18743 18744if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18745 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18746 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18747printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18748if test ${xorg_cv_cc_flag_unknown_warning_option+y} 18749then : 18750 printf %s "(cached) " >&6 18751else $as_nop 18752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18753/* end confdefs.h. */ 18754int i; 18755_ACEOF 18756if ac_fn_c_try_compile "$LINENO" 18757then : 18758 xorg_cv_cc_flag_unknown_warning_option=yes 18759else $as_nop 18760 xorg_cv_cc_flag_unknown_warning_option=no 18761fi 18762rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18763fi 18764{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18765printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18766 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18767 CFLAGS="$xorg_testset_save_CFLAGS" 18768fi 18769 18770if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18771 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18772 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18773 fi 18774 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18775 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18776printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18777if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 18778then : 18779 printf %s "(cached) " >&6 18780else $as_nop 18781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18782/* end confdefs.h. */ 18783int i; 18784_ACEOF 18785if ac_fn_c_try_compile "$LINENO" 18786then : 18787 xorg_cv_cc_flag_unused_command_line_argument=yes 18788else $as_nop 18789 xorg_cv_cc_flag_unused_command_line_argument=no 18790fi 18791rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18792fi 18793{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18794printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18795 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18796 CFLAGS="$xorg_testset_save_CFLAGS" 18797fi 18798 18799found="no" 18800 18801 if test $found = "no" ; then 18802 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18803 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18804 fi 18805 18806 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18807 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18808 fi 18809 18810 CFLAGS="$CFLAGS -pedantic" 18811 18812 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5 18813printf %s "checking if $CC supports -pedantic... " >&6; } 18814 cacheid=xorg_cv_cc_flag__pedantic 18815 if eval test \${$cacheid+y} 18816then : 18817 printf %s "(cached) " >&6 18818else $as_nop 18819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18820/* end confdefs.h. */ 18821int i; 18822int 18823main (void) 18824{ 18825 18826 ; 18827 return 0; 18828} 18829_ACEOF 18830if ac_fn_c_try_link "$LINENO" 18831then : 18832 eval $cacheid=yes 18833else $as_nop 18834 eval $cacheid=no 18835fi 18836rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18837 conftest$ac_exeext conftest.$ac_ext 18838fi 18839 18840 18841 CFLAGS="$xorg_testset_save_CFLAGS" 18842 18843 eval supported=\$$cacheid 18844 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18845printf "%s\n" "$supported" >&6; } 18846 if test "$supported" = "yes" ; then 18847 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic" 18848 found="yes" 18849 fi 18850 fi 18851 18852 18853 18854 18855 18856 18857 18858 18859 18860 18861 18862 18863 18864 18865 18866xorg_testset_save_CFLAGS="$CFLAGS" 18867 18868if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18869 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18870 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18871printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18872if test ${xorg_cv_cc_flag_unknown_warning_option+y} 18873then : 18874 printf %s "(cached) " >&6 18875else $as_nop 18876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18877/* end confdefs.h. */ 18878int i; 18879_ACEOF 18880if ac_fn_c_try_compile "$LINENO" 18881then : 18882 xorg_cv_cc_flag_unknown_warning_option=yes 18883else $as_nop 18884 xorg_cv_cc_flag_unknown_warning_option=no 18885fi 18886rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18887fi 18888{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18889printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18890 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18891 CFLAGS="$xorg_testset_save_CFLAGS" 18892fi 18893 18894if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18895 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18896 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18897 fi 18898 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18899 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18900printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18901if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 18902then : 18903 printf %s "(cached) " >&6 18904else $as_nop 18905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18906/* end confdefs.h. */ 18907int i; 18908_ACEOF 18909if ac_fn_c_try_compile "$LINENO" 18910then : 18911 xorg_cv_cc_flag_unused_command_line_argument=yes 18912else $as_nop 18913 xorg_cv_cc_flag_unused_command_line_argument=no 18914fi 18915rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18916fi 18917{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18918printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18919 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18920 CFLAGS="$xorg_testset_save_CFLAGS" 18921fi 18922 18923found="no" 18924 18925 if test $found = "no" ; then 18926 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18927 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18928 fi 18929 18930 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18931 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18932 fi 18933 18934 CFLAGS="$CFLAGS -Werror" 18935 18936 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5 18937printf %s "checking if $CC supports -Werror... " >&6; } 18938 cacheid=xorg_cv_cc_flag__Werror 18939 if eval test \${$cacheid+y} 18940then : 18941 printf %s "(cached) " >&6 18942else $as_nop 18943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18944/* end confdefs.h. */ 18945int i; 18946int 18947main (void) 18948{ 18949 18950 ; 18951 return 0; 18952} 18953_ACEOF 18954if ac_fn_c_try_link "$LINENO" 18955then : 18956 eval $cacheid=yes 18957else $as_nop 18958 eval $cacheid=no 18959fi 18960rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18961 conftest$ac_exeext conftest.$ac_ext 18962fi 18963 18964 18965 CFLAGS="$xorg_testset_save_CFLAGS" 18966 18967 eval supported=\$$cacheid 18968 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18969printf "%s\n" "$supported" >&6; } 18970 if test "$supported" = "yes" ; then 18971 STRICT_CFLAGS="$STRICT_CFLAGS -Werror" 18972 found="yes" 18973 fi 18974 fi 18975 18976 if test $found = "no" ; then 18977 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18978 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18979 fi 18980 18981 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18982 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18983 fi 18984 18985 CFLAGS="$CFLAGS -errwarn" 18986 18987 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5 18988printf %s "checking if $CC supports -errwarn... " >&6; } 18989 cacheid=xorg_cv_cc_flag__errwarn 18990 if eval test \${$cacheid+y} 18991then : 18992 printf %s "(cached) " >&6 18993else $as_nop 18994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18995/* end confdefs.h. */ 18996int i; 18997int 18998main (void) 18999{ 19000 19001 ; 19002 return 0; 19003} 19004_ACEOF 19005if ac_fn_c_try_link "$LINENO" 19006then : 19007 eval $cacheid=yes 19008else $as_nop 19009 eval $cacheid=no 19010fi 19011rm -f core conftest.err conftest.$ac_objext conftest.beam \ 19012 conftest$ac_exeext conftest.$ac_ext 19013fi 19014 19015 19016 CFLAGS="$xorg_testset_save_CFLAGS" 19017 19018 eval supported=\$$cacheid 19019 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 19020printf "%s\n" "$supported" >&6; } 19021 if test "$supported" = "yes" ; then 19022 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn" 19023 found="yes" 19024 fi 19025 fi 19026 19027 19028 19029# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not 19030# activate it with -Werror, so we add it here explicitly. 19031 19032 19033 19034 19035 19036 19037 19038 19039 19040 19041 19042 19043 19044xorg_testset_save_CFLAGS="$CFLAGS" 19045 19046if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 19047 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19048 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 19049printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 19050if test ${xorg_cv_cc_flag_unknown_warning_option+y} 19051then : 19052 printf %s "(cached) " >&6 19053else $as_nop 19054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19055/* end confdefs.h. */ 19056int i; 19057_ACEOF 19058if ac_fn_c_try_compile "$LINENO" 19059then : 19060 xorg_cv_cc_flag_unknown_warning_option=yes 19061else $as_nop 19062 xorg_cv_cc_flag_unknown_warning_option=no 19063fi 19064rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 19065fi 19066{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 19067printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 19068 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 19069 CFLAGS="$xorg_testset_save_CFLAGS" 19070fi 19071 19072if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 19073 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19074 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19075 fi 19076 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19077 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 19078printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 19079if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 19080then : 19081 printf %s "(cached) " >&6 19082else $as_nop 19083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19084/* end confdefs.h. */ 19085int i; 19086_ACEOF 19087if ac_fn_c_try_compile "$LINENO" 19088then : 19089 xorg_cv_cc_flag_unused_command_line_argument=yes 19090else $as_nop 19091 xorg_cv_cc_flag_unused_command_line_argument=no 19092fi 19093rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 19094fi 19095{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 19096printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 19097 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 19098 CFLAGS="$xorg_testset_save_CFLAGS" 19099fi 19100 19101found="no" 19102 19103 if test $found = "no" ; then 19104 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19105 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19106 fi 19107 19108 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 19109 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19110 fi 19111 19112 CFLAGS="$CFLAGS -Werror=attributes" 19113 19114 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5 19115printf %s "checking if $CC supports -Werror=attributes... " >&6; } 19116 cacheid=xorg_cv_cc_flag__Werror_attributes 19117 if eval test \${$cacheid+y} 19118then : 19119 printf %s "(cached) " >&6 19120else $as_nop 19121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19122/* end confdefs.h. */ 19123int i; 19124int 19125main (void) 19126{ 19127 19128 ; 19129 return 0; 19130} 19131_ACEOF 19132if ac_fn_c_try_link "$LINENO" 19133then : 19134 eval $cacheid=yes 19135else $as_nop 19136 eval $cacheid=no 19137fi 19138rm -f core conftest.err conftest.$ac_objext conftest.beam \ 19139 conftest$ac_exeext conftest.$ac_ext 19140fi 19141 19142 19143 CFLAGS="$xorg_testset_save_CFLAGS" 19144 19145 eval supported=\$$cacheid 19146 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 19147printf "%s\n" "$supported" >&6; } 19148 if test "$supported" = "yes" ; then 19149 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes" 19150 found="yes" 19151 fi 19152 fi 19153 19154 19155 19156if test "x$STRICT_COMPILE" = "xyes"; then 19157 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS" 19158 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 19159fi 19160 19161 19162 19163 19164 19165 19166 19167 19168cat >>confdefs.h <<_ACEOF 19169#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 19170_ACEOF 19171 19172 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 19173 if test "x$PVM" = "x"; then 19174 PVM="0" 19175 fi 19176 19177printf "%s\n" "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h 19178 19179 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 19180 if test "x$PVP" = "x"; then 19181 PVP="0" 19182 fi 19183 19184printf "%s\n" "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h 19185 19186 19187 19188CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \ 19189mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 19190|| (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \ 19191touch \$(top_srcdir)/ChangeLog; \ 19192echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))" 19193 19194 19195 19196 19197macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros` 19198INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \ 19199mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \ 19200|| (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \ 19201touch \$(top_srcdir)/INSTALL; \ 19202echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))" 19203 19204 19205 19206 19207 19208 19209case $host_os in 19210 solaris*) 19211 # Solaris 2.0 - 11.3 use SysV man page section numbers, so we 19212 # check for a man page file found in later versions that use 19213 # traditional section numbers instead 19214 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5 19215printf %s "checking for /usr/share/man/man7/attributes.7... " >&6; } 19216if test ${ac_cv_file__usr_share_man_man7_attributes_7+y} 19217then : 19218 printf %s "(cached) " >&6 19219else $as_nop 19220 test "$cross_compiling" = yes && 19221 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 19222if test -r "/usr/share/man/man7/attributes.7"; then 19223 ac_cv_file__usr_share_man_man7_attributes_7=yes 19224else 19225 ac_cv_file__usr_share_man_man7_attributes_7=no 19226fi 19227fi 19228{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5 19229printf "%s\n" "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; } 19230if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes 19231then : 19232 SYSV_MAN_SECTIONS=false 19233else $as_nop 19234 SYSV_MAN_SECTIONS=true 19235fi 19236 19237 ;; 19238 *) SYSV_MAN_SECTIONS=false ;; 19239esac 19240 19241if test x$APP_MAN_SUFFIX = x ; then 19242 APP_MAN_SUFFIX=1 19243fi 19244if test x$APP_MAN_DIR = x ; then 19245 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 19246fi 19247 19248if test x$LIB_MAN_SUFFIX = x ; then 19249 LIB_MAN_SUFFIX=3 19250fi 19251if test x$LIB_MAN_DIR = x ; then 19252 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 19253fi 19254 19255if test x$FILE_MAN_SUFFIX = x ; then 19256 case $SYSV_MAN_SECTIONS in 19257 true) FILE_MAN_SUFFIX=4 ;; 19258 *) FILE_MAN_SUFFIX=5 ;; 19259 esac 19260fi 19261if test x$FILE_MAN_DIR = x ; then 19262 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 19263fi 19264 19265if test x$MISC_MAN_SUFFIX = x ; then 19266 case $SYSV_MAN_SECTIONS in 19267 true) MISC_MAN_SUFFIX=5 ;; 19268 *) MISC_MAN_SUFFIX=7 ;; 19269 esac 19270fi 19271if test x$MISC_MAN_DIR = x ; then 19272 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 19273fi 19274 19275if test x$DRIVER_MAN_SUFFIX = x ; then 19276 case $SYSV_MAN_SECTIONS in 19277 true) DRIVER_MAN_SUFFIX=7 ;; 19278 *) DRIVER_MAN_SUFFIX=4 ;; 19279 esac 19280fi 19281if test x$DRIVER_MAN_DIR = x ; then 19282 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 19283fi 19284 19285if test x$ADMIN_MAN_SUFFIX = x ; then 19286 case $SYSV_MAN_SECTIONS in 19287 true) ADMIN_MAN_SUFFIX=1m ;; 19288 *) ADMIN_MAN_SUFFIX=8 ;; 19289 esac 19290fi 19291if test x$ADMIN_MAN_DIR = x ; then 19292 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 19293fi 19294 19295 19296 19297 19298 19299 19300 19301 19302 19303 19304 19305 19306 19307 19308 19309XORG_MAN_PAGE="X Version 11" 19310 19311MAN_SUBSTS="\ 19312 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 19313 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 19314 -e 's|__xservername__|Xorg|g' \ 19315 -e 's|__xconfigfile__|xorg.conf|g' \ 19316 -e 's|__projectroot__|\$(prefix)|g' \ 19317 -e 's|__apploaddir__|\$(appdefaultdir)|g' \ 19318 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \ 19319 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \ 19320 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \ 19321 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \ 19322 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \ 19323 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'" 19324 19325 19326 19327# Check whether --enable-silent-rules was given. 19328if test ${enable_silent_rules+y} 19329then : 19330 enableval=$enable_silent_rules; 19331fi 19332 19333case $enable_silent_rules in # ((( 19334 yes) AM_DEFAULT_VERBOSITY=0;; 19335 no) AM_DEFAULT_VERBOSITY=1;; 19336 *) AM_DEFAULT_VERBOSITY=0;; 19337esac 19338am_make=${MAKE-make} 19339{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 19340printf %s "checking whether $am_make supports nested variables... " >&6; } 19341if test ${am_cv_make_support_nested_variables+y} 19342then : 19343 printf %s "(cached) " >&6 19344else $as_nop 19345 if printf "%s\n" 'TRUE=$(BAR$(V)) 19346BAR0=false 19347BAR1=true 19348V=1 19349am__doit: 19350 @$(TRUE) 19351.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 19352 am_cv_make_support_nested_variables=yes 19353else 19354 am_cv_make_support_nested_variables=no 19355fi 19356fi 19357{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 19358printf "%s\n" "$am_cv_make_support_nested_variables" >&6; } 19359if test $am_cv_make_support_nested_variables = yes; then 19360 AM_V='$(V)' 19361 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 19362else 19363 AM_V=$AM_DEFAULT_VERBOSITY 19364 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 19365fi 19366AM_BACKSLASH='\' 19367 19368 19369 19370 19371 19372# Check whether --enable-docs was given. 19373if test ${enable_docs+y} 19374then : 19375 enableval=$enable_docs; build_docs=$enableval 19376else $as_nop 19377 build_docs=yes 19378fi 19379 19380 19381 if test x$build_docs = xyes; then 19382 ENABLE_DOCS_TRUE= 19383 ENABLE_DOCS_FALSE='#' 19384else 19385 ENABLE_DOCS_TRUE='#' 19386 ENABLE_DOCS_FALSE= 19387fi 19388 19389{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build documentation" >&5 19390printf %s "checking whether to build documentation... " >&6; } 19391{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $build_docs" >&5 19392printf "%s\n" "$build_docs" >&6; } 19393 19394 19395 19396# Check whether --enable-specs was given. 19397if test ${enable_specs+y} 19398then : 19399 enableval=$enable_specs; build_specs=$enableval 19400else $as_nop 19401 build_specs=yes 19402fi 19403 19404 19405 if test x$build_specs = xyes; then 19406 ENABLE_SPECS_TRUE= 19407 ENABLE_SPECS_FALSE='#' 19408else 19409 ENABLE_SPECS_TRUE='#' 19410 ENABLE_SPECS_FALSE= 19411fi 19412 19413{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build functional specifications" >&5 19414printf %s "checking whether to build functional specifications... " >&6; } 19415{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $build_specs" >&5 19416printf "%s\n" "$build_specs" >&6; } 19417 19418 19419 19420 19421 19422# Check whether --with-xmlto was given. 19423if test ${with_xmlto+y} 19424then : 19425 withval=$with_xmlto; use_xmlto=$withval 19426else $as_nop 19427 use_xmlto=auto 19428fi 19429 19430 19431 19432if test "x$use_xmlto" = x"auto"; then 19433 # Extract the first word of "xmlto", so it can be a program name with args. 19434set dummy xmlto; ac_word=$2 19435{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19436printf %s "checking for $ac_word... " >&6; } 19437if test ${ac_cv_path_XMLTO+y} 19438then : 19439 printf %s "(cached) " >&6 19440else $as_nop 19441 case $XMLTO in 19442 [\\/]* | ?:[\\/]*) 19443 ac_cv_path_XMLTO="$XMLTO" # Let the user override the test with a path. 19444 ;; 19445 *) 19446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19447for as_dir in $PATH 19448do 19449 IFS=$as_save_IFS 19450 case $as_dir in #((( 19451 '') as_dir=./ ;; 19452 */) ;; 19453 *) as_dir=$as_dir/ ;; 19454 esac 19455 for ac_exec_ext in '' $ac_executable_extensions; do 19456 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 19457 ac_cv_path_XMLTO="$as_dir$ac_word$ac_exec_ext" 19458 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 19459 break 2 19460 fi 19461done 19462 done 19463IFS=$as_save_IFS 19464 19465 ;; 19466esac 19467fi 19468XMLTO=$ac_cv_path_XMLTO 19469if test -n "$XMLTO"; then 19470 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XMLTO" >&5 19471printf "%s\n" "$XMLTO" >&6; } 19472else 19473 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 19474printf "%s\n" "no" >&6; } 19475fi 19476 19477 19478 if test "x$XMLTO" = "x"; then 19479 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: xmlto not found - documentation targets will be skipped" >&5 19480printf "%s\n" "$as_me: WARNING: xmlto not found - documentation targets will be skipped" >&2;} 19481 have_xmlto=no 19482 else 19483 have_xmlto=yes 19484 fi 19485elif test "x$use_xmlto" = x"yes" ; then 19486 # Extract the first word of "xmlto", so it can be a program name with args. 19487set dummy xmlto; ac_word=$2 19488{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19489printf %s "checking for $ac_word... " >&6; } 19490if test ${ac_cv_path_XMLTO+y} 19491then : 19492 printf %s "(cached) " >&6 19493else $as_nop 19494 case $XMLTO in 19495 [\\/]* | ?:[\\/]*) 19496 ac_cv_path_XMLTO="$XMLTO" # Let the user override the test with a path. 19497 ;; 19498 *) 19499 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19500for as_dir in $PATH 19501do 19502 IFS=$as_save_IFS 19503 case $as_dir in #((( 19504 '') as_dir=./ ;; 19505 */) ;; 19506 *) as_dir=$as_dir/ ;; 19507 esac 19508 for ac_exec_ext in '' $ac_executable_extensions; do 19509 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 19510 ac_cv_path_XMLTO="$as_dir$ac_word$ac_exec_ext" 19511 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 19512 break 2 19513 fi 19514done 19515 done 19516IFS=$as_save_IFS 19517 19518 ;; 19519esac 19520fi 19521XMLTO=$ac_cv_path_XMLTO 19522if test -n "$XMLTO"; then 19523 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XMLTO" >&5 19524printf "%s\n" "$XMLTO" >&6; } 19525else 19526 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 19527printf "%s\n" "no" >&6; } 19528fi 19529 19530 19531 if test "x$XMLTO" = "x"; then 19532 as_fn_error $? "--with-xmlto=yes specified but xmlto not found in PATH" "$LINENO" 5 19533 fi 19534 have_xmlto=yes 19535elif test "x$use_xmlto" = x"no" ; then 19536 if test "x$XMLTO" != "x"; then 19537 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ignoring XMLTO environment variable since --with-xmlto=no was specified" >&5 19538printf "%s\n" "$as_me: WARNING: ignoring XMLTO environment variable since --with-xmlto=no was specified" >&2;} 19539 fi 19540 have_xmlto=no 19541else 19542 as_fn_error $? "--with-xmlto expects 'yes' or 'no'" "$LINENO" 5 19543fi 19544 19545# Test for a minimum version of xmlto, if provided. 19546if test "$have_xmlto" = yes; then 19547 # scrape the xmlto version 19548 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the xmlto version" >&5 19549printf %s "checking the xmlto version... " >&6; } 19550 xmlto_version=`$XMLTO --version 2>/dev/null | cut -d' ' -f3` 19551 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xmlto_version" >&5 19552printf "%s\n" "$xmlto_version" >&6; } 19553 as_arg_v1=$xmlto_version 19554as_arg_v2=0.0.22 19555awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null 19556case $? in #( 19557 1) : 19558 if test "x$use_xmlto" = xauto; then 19559 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: xmlto version $xmlto_version found, but 0.0.22 needed" >&5 19560printf "%s\n" "$as_me: WARNING: xmlto version $xmlto_version found, but 0.0.22 needed" >&2;} 19561 have_xmlto=no 19562 else 19563 as_fn_error $? "xmlto version $xmlto_version found, but 0.0.22 needed" "$LINENO" 5 19564 fi ;; #( 19565 0) : 19566 ;; #( 19567 2) : 19568 ;; #( 19569 *) : 19570 ;; 19571esac 19572fi 19573 19574# Test for the ability of xmlto to generate a text target 19575# 19576# NOTE: xmlto 0.0.27 or higher return a non-zero return code in the 19577# following test for empty XML docbook files. 19578# For compatibility reasons use the following empty XML docbook file and if 19579# it fails try it again with a non-empty XML file. 19580have_xmlto_text=no 19581cat > conftest.xml << "EOF" 19582EOF 19583if test "$have_xmlto" = yes 19584then : 19585 if $XMLTO --skip-validation txt conftest.xml >/dev/null 2>&1 19586then : 19587 have_xmlto_text=yes 19588else $as_nop 19589 # Try it again with a non-empty XML file. 19590 cat > conftest.xml << "EOF" 19591<x></x> 19592EOF 19593 if $XMLTO --skip-validation txt conftest.xml >/dev/null 2>&1 19594then : 19595 have_xmlto_text=yes 19596else $as_nop 19597 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: xmlto cannot generate text format, this format skipped" >&5 19598printf "%s\n" "$as_me: WARNING: xmlto cannot generate text format, this format skipped" >&2;} 19599fi 19600fi 19601fi 19602rm -f conftest.xml 19603 if test $have_xmlto_text = yes; then 19604 HAVE_XMLTO_TEXT_TRUE= 19605 HAVE_XMLTO_TEXT_FALSE='#' 19606else 19607 HAVE_XMLTO_TEXT_TRUE='#' 19608 HAVE_XMLTO_TEXT_FALSE= 19609fi 19610 19611 if test "$have_xmlto" = yes; then 19612 HAVE_XMLTO_TRUE= 19613 HAVE_XMLTO_FALSE='#' 19614else 19615 HAVE_XMLTO_TRUE='#' 19616 HAVE_XMLTO_FALSE= 19617fi 19618 19619 19620 19621 19622 19623 19624# Check whether --with-fop was given. 19625if test ${with_fop+y} 19626then : 19627 withval=$with_fop; use_fop=$withval 19628else $as_nop 19629 use_fop=auto 19630fi 19631 19632 19633 19634if test "x$use_fop" = x"auto"; then 19635 # Extract the first word of "fop", so it can be a program name with args. 19636set dummy fop; ac_word=$2 19637{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19638printf %s "checking for $ac_word... " >&6; } 19639if test ${ac_cv_path_FOP+y} 19640then : 19641 printf %s "(cached) " >&6 19642else $as_nop 19643 case $FOP in 19644 [\\/]* | ?:[\\/]*) 19645 ac_cv_path_FOP="$FOP" # Let the user override the test with a path. 19646 ;; 19647 *) 19648 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19649for as_dir in $PATH 19650do 19651 IFS=$as_save_IFS 19652 case $as_dir in #((( 19653 '') as_dir=./ ;; 19654 */) ;; 19655 *) as_dir=$as_dir/ ;; 19656 esac 19657 for ac_exec_ext in '' $ac_executable_extensions; do 19658 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 19659 ac_cv_path_FOP="$as_dir$ac_word$ac_exec_ext" 19660 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 19661 break 2 19662 fi 19663done 19664 done 19665IFS=$as_save_IFS 19666 19667 ;; 19668esac 19669fi 19670FOP=$ac_cv_path_FOP 19671if test -n "$FOP"; then 19672 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FOP" >&5 19673printf "%s\n" "$FOP" >&6; } 19674else 19675 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 19676printf "%s\n" "no" >&6; } 19677fi 19678 19679 19680 if test "x$FOP" = "x"; then 19681 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: fop not found - documentation targets will be skipped" >&5 19682printf "%s\n" "$as_me: WARNING: fop not found - documentation targets will be skipped" >&2;} 19683 have_fop=no 19684 else 19685 have_fop=yes 19686 fi 19687elif test "x$use_fop" = x"yes" ; then 19688 # Extract the first word of "fop", so it can be a program name with args. 19689set dummy fop; ac_word=$2 19690{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19691printf %s "checking for $ac_word... " >&6; } 19692if test ${ac_cv_path_FOP+y} 19693then : 19694 printf %s "(cached) " >&6 19695else $as_nop 19696 case $FOP in 19697 [\\/]* | ?:[\\/]*) 19698 ac_cv_path_FOP="$FOP" # Let the user override the test with a path. 19699 ;; 19700 *) 19701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19702for as_dir in $PATH 19703do 19704 IFS=$as_save_IFS 19705 case $as_dir in #((( 19706 '') as_dir=./ ;; 19707 */) ;; 19708 *) as_dir=$as_dir/ ;; 19709 esac 19710 for ac_exec_ext in '' $ac_executable_extensions; do 19711 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 19712 ac_cv_path_FOP="$as_dir$ac_word$ac_exec_ext" 19713 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 19714 break 2 19715 fi 19716done 19717 done 19718IFS=$as_save_IFS 19719 19720 ;; 19721esac 19722fi 19723FOP=$ac_cv_path_FOP 19724if test -n "$FOP"; then 19725 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FOP" >&5 19726printf "%s\n" "$FOP" >&6; } 19727else 19728 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 19729printf "%s\n" "no" >&6; } 19730fi 19731 19732 19733 if test "x$FOP" = "x"; then 19734 as_fn_error $? "--with-fop=yes specified but fop not found in PATH" "$LINENO" 5 19735 fi 19736 have_fop=yes 19737elif test "x$use_fop" = x"no" ; then 19738 if test "x$FOP" != "x"; then 19739 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ignoring FOP environment variable since --with-fop=no was specified" >&5 19740printf "%s\n" "$as_me: WARNING: ignoring FOP environment variable since --with-fop=no was specified" >&2;} 19741 fi 19742 have_fop=no 19743else 19744 as_fn_error $? "--with-fop expects 'yes' or 'no'" "$LINENO" 5 19745fi 19746 19747# Test for a minimum version of fop, if provided. 19748 19749 if test "$have_fop" = yes; then 19750 HAVE_FOP_TRUE= 19751 HAVE_FOP_FALSE='#' 19752else 19753 HAVE_FOP_TRUE='#' 19754 HAVE_FOP_FALSE= 19755fi 19756 19757 19758 19759 19760# Preserves the interface, should it be implemented later 19761 19762 19763 19764# Check whether --with-xsltproc was given. 19765if test ${with_xsltproc+y} 19766then : 19767 withval=$with_xsltproc; use_xsltproc=$withval 19768else $as_nop 19769 use_xsltproc=auto 19770fi 19771 19772 19773 19774if test "x$use_xsltproc" = x"auto"; then 19775 # Extract the first word of "xsltproc", so it can be a program name with args. 19776set dummy xsltproc; ac_word=$2 19777{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19778printf %s "checking for $ac_word... " >&6; } 19779if test ${ac_cv_path_XSLTPROC+y} 19780then : 19781 printf %s "(cached) " >&6 19782else $as_nop 19783 case $XSLTPROC in 19784 [\\/]* | ?:[\\/]*) 19785 ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path. 19786 ;; 19787 *) 19788 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19789for as_dir in $PATH 19790do 19791 IFS=$as_save_IFS 19792 case $as_dir in #((( 19793 '') as_dir=./ ;; 19794 */) ;; 19795 *) as_dir=$as_dir/ ;; 19796 esac 19797 for ac_exec_ext in '' $ac_executable_extensions; do 19798 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 19799 ac_cv_path_XSLTPROC="$as_dir$ac_word$ac_exec_ext" 19800 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 19801 break 2 19802 fi 19803done 19804 done 19805IFS=$as_save_IFS 19806 19807 ;; 19808esac 19809fi 19810XSLTPROC=$ac_cv_path_XSLTPROC 19811if test -n "$XSLTPROC"; then 19812 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5 19813printf "%s\n" "$XSLTPROC" >&6; } 19814else 19815 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 19816printf "%s\n" "no" >&6; } 19817fi 19818 19819 19820 if test "x$XSLTPROC" = "x"; then 19821 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: xsltproc not found - cannot transform XML documents" >&5 19822printf "%s\n" "$as_me: WARNING: xsltproc not found - cannot transform XML documents" >&2;} 19823 have_xsltproc=no 19824 else 19825 have_xsltproc=yes 19826 fi 19827elif test "x$use_xsltproc" = x"yes" ; then 19828 # Extract the first word of "xsltproc", so it can be a program name with args. 19829set dummy xsltproc; ac_word=$2 19830{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19831printf %s "checking for $ac_word... " >&6; } 19832if test ${ac_cv_path_XSLTPROC+y} 19833then : 19834 printf %s "(cached) " >&6 19835else $as_nop 19836 case $XSLTPROC in 19837 [\\/]* | ?:[\\/]*) 19838 ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path. 19839 ;; 19840 *) 19841 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19842for as_dir in $PATH 19843do 19844 IFS=$as_save_IFS 19845 case $as_dir in #((( 19846 '') as_dir=./ ;; 19847 */) ;; 19848 *) as_dir=$as_dir/ ;; 19849 esac 19850 for ac_exec_ext in '' $ac_executable_extensions; do 19851 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 19852 ac_cv_path_XSLTPROC="$as_dir$ac_word$ac_exec_ext" 19853 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 19854 break 2 19855 fi 19856done 19857 done 19858IFS=$as_save_IFS 19859 19860 ;; 19861esac 19862fi 19863XSLTPROC=$ac_cv_path_XSLTPROC 19864if test -n "$XSLTPROC"; then 19865 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5 19866printf "%s\n" "$XSLTPROC" >&6; } 19867else 19868 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 19869printf "%s\n" "no" >&6; } 19870fi 19871 19872 19873 if test "x$XSLTPROC" = "x"; then 19874 as_fn_error $? "--with-xsltproc=yes specified but xsltproc not found in PATH" "$LINENO" 5 19875 fi 19876 have_xsltproc=yes 19877elif test "x$use_xsltproc" = x"no" ; then 19878 if test "x$XSLTPROC" != "x"; then 19879 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ignoring XSLTPROC environment variable since --with-xsltproc=no was specified" >&5 19880printf "%s\n" "$as_me: WARNING: ignoring XSLTPROC environment variable since --with-xsltproc=no was specified" >&2;} 19881 fi 19882 have_xsltproc=no 19883else 19884 as_fn_error $? "--with-xsltproc expects 'yes' or 'no'" "$LINENO" 5 19885fi 19886 19887 if test "$have_xsltproc" = yes; then 19888 HAVE_XSLTPROC_TRUE= 19889 HAVE_XSLTPROC_FALSE='#' 19890else 19891 HAVE_XSLTPROC_TRUE='#' 19892 HAVE_XSLTPROC_FALSE= 19893fi 19894 19895 19896 19897{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for X.Org SGML entities >= 1.8" >&5 19898printf %s "checking for X.Org SGML entities >= 1.8... " >&6; } 19899XORG_SGML_PATH= 19900if test -n "$PKG_CONFIG" && \ 19901 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-sgml-doctools >= 1.8\""; } >&5 19902 ($PKG_CONFIG --exists --print-errors "xorg-sgml-doctools >= 1.8") 2>&5 19903 ac_status=$? 19904 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19905 test $ac_status = 0; }; then 19906 XORG_SGML_PATH=`$PKG_CONFIG --variable=sgmlrootdir xorg-sgml-doctools` 19907else 19908 : 19909 19910fi 19911 19912# Define variables STYLESHEET_SRCDIR and XSL_STYLESHEET containing 19913# the path and the name of the doc stylesheet 19914if test "x$XORG_SGML_PATH" != "x" ; then 19915 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XORG_SGML_PATH" >&5 19916printf "%s\n" "$XORG_SGML_PATH" >&6; } 19917 STYLESHEET_SRCDIR=$XORG_SGML_PATH/X11 19918 XSL_STYLESHEET=$STYLESHEET_SRCDIR/xorg.xsl 19919else 19920 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 19921printf "%s\n" "no" >&6; } 19922fi 19923 19924 19925 19926 19927 if test "x$XSL_STYLESHEET" != "x"; then 19928 HAVE_STYLESHEETS_TRUE= 19929 HAVE_STYLESHEETS_FALSE='#' 19930else 19931 HAVE_STYLESHEETS_TRUE='#' 19932 HAVE_STYLESHEETS_FALSE= 19933fi 19934 19935 19936 19937 19938 19939 19940# Check whether --with-asciidoc was given. 19941if test ${with_asciidoc+y} 19942then : 19943 withval=$with_asciidoc; use_asciidoc=$withval 19944else $as_nop 19945 use_asciidoc=auto 19946fi 19947 19948 19949 19950if test "x$use_asciidoc" = x"auto"; then 19951 # Extract the first word of "asciidoc", so it can be a program name with args. 19952set dummy asciidoc; ac_word=$2 19953{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19954printf %s "checking for $ac_word... " >&6; } 19955if test ${ac_cv_path_ASCIIDOC+y} 19956then : 19957 printf %s "(cached) " >&6 19958else $as_nop 19959 case $ASCIIDOC in 19960 [\\/]* | ?:[\\/]*) 19961 ac_cv_path_ASCIIDOC="$ASCIIDOC" # Let the user override the test with a path. 19962 ;; 19963 *) 19964 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19965for as_dir in $PATH 19966do 19967 IFS=$as_save_IFS 19968 case $as_dir in #((( 19969 '') as_dir=./ ;; 19970 */) ;; 19971 *) as_dir=$as_dir/ ;; 19972 esac 19973 for ac_exec_ext in '' $ac_executable_extensions; do 19974 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 19975 ac_cv_path_ASCIIDOC="$as_dir$ac_word$ac_exec_ext" 19976 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 19977 break 2 19978 fi 19979done 19980 done 19981IFS=$as_save_IFS 19982 19983 ;; 19984esac 19985fi 19986ASCIIDOC=$ac_cv_path_ASCIIDOC 19987if test -n "$ASCIIDOC"; then 19988 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ASCIIDOC" >&5 19989printf "%s\n" "$ASCIIDOC" >&6; } 19990else 19991 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 19992printf "%s\n" "no" >&6; } 19993fi 19994 19995 19996 if test "x$ASCIIDOC" = "x"; then 19997 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: asciidoc not found - documentation targets will be skipped" >&5 19998printf "%s\n" "$as_me: WARNING: asciidoc not found - documentation targets will be skipped" >&2;} 19999 have_asciidoc=no 20000 else 20001 have_asciidoc=yes 20002 fi 20003elif test "x$use_asciidoc" = x"yes" ; then 20004 # Extract the first word of "asciidoc", so it can be a program name with args. 20005set dummy asciidoc; ac_word=$2 20006{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 20007printf %s "checking for $ac_word... " >&6; } 20008if test ${ac_cv_path_ASCIIDOC+y} 20009then : 20010 printf %s "(cached) " >&6 20011else $as_nop 20012 case $ASCIIDOC in 20013 [\\/]* | ?:[\\/]*) 20014 ac_cv_path_ASCIIDOC="$ASCIIDOC" # Let the user override the test with a path. 20015 ;; 20016 *) 20017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20018for as_dir in $PATH 20019do 20020 IFS=$as_save_IFS 20021 case $as_dir in #((( 20022 '') as_dir=./ ;; 20023 */) ;; 20024 *) as_dir=$as_dir/ ;; 20025 esac 20026 for ac_exec_ext in '' $ac_executable_extensions; do 20027 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 20028 ac_cv_path_ASCIIDOC="$as_dir$ac_word$ac_exec_ext" 20029 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 20030 break 2 20031 fi 20032done 20033 done 20034IFS=$as_save_IFS 20035 20036 ;; 20037esac 20038fi 20039ASCIIDOC=$ac_cv_path_ASCIIDOC 20040if test -n "$ASCIIDOC"; then 20041 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ASCIIDOC" >&5 20042printf "%s\n" "$ASCIIDOC" >&6; } 20043else 20044 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 20045printf "%s\n" "no" >&6; } 20046fi 20047 20048 20049 if test "x$ASCIIDOC" = "x"; then 20050 as_fn_error $? "--with-asciidoc=yes specified but asciidoc not found in PATH" "$LINENO" 5 20051 fi 20052 have_asciidoc=yes 20053elif test "x$use_asciidoc" = x"no" ; then 20054 if test "x$ASCIIDOC" != "x"; then 20055 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ignoring ASCIIDOC environment variable since --with-asciidoc=no was specified" >&5 20056printf "%s\n" "$as_me: WARNING: ignoring ASCIIDOC environment variable since --with-asciidoc=no was specified" >&2;} 20057 fi 20058 have_asciidoc=no 20059else 20060 as_fn_error $? "--with-asciidoc expects 'yes' or 'no'" "$LINENO" 5 20061fi 20062if test "$have_asciidoc" = yes; then 20063 # scrape the asciidoc version 20064 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the asciidoc version" >&5 20065printf %s "checking the asciidoc version... " >&6; } 20066 asciidoc_version=`$ASCIIDOC --version 2>/dev/null | cut -d' ' -f2` 20067 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $asciidoc_version" >&5 20068printf "%s\n" "$asciidoc_version" >&6; } 20069 as_arg_v1=$asciidoc_version 20070as_arg_v2=8.4.5 20071awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null 20072case $? in #( 20073 1) : 20074 if test "x$use_asciidoc" = xauto; then 20075 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: asciidoc version $asciidoc_version found, but 8.4.5 needed" >&5 20076printf "%s\n" "$as_me: WARNING: asciidoc version $asciidoc_version found, but 8.4.5 needed" >&2;} 20077 have_asciidoc=no 20078 else 20079 as_fn_error $? "asciidoc version $asciidoc_version found, but 8.4.5 needed" "$LINENO" 5 20080 fi ;; #( 20081 0) : 20082 ;; #( 20083 2) : 20084 ;; #( 20085 *) : 20086 ;; 20087esac 20088fi 20089 if test "$have_asciidoc" = yes; then 20090 HAVE_ASCIIDOC_TRUE= 20091 HAVE_ASCIIDOC_FALSE='#' 20092else 20093 HAVE_ASCIIDOC_TRUE='#' 20094 HAVE_ASCIIDOC_FALSE= 20095fi 20096 20097 20098 20099# Check whether --enable-malloc0returnsnull was given. 20100if test ${enable_malloc0returnsnull+y} 20101then : 20102 enableval=$enable_malloc0returnsnull; MALLOC_ZERO_RETURNS_NULL=$enableval 20103else $as_nop 20104 MALLOC_ZERO_RETURNS_NULL=auto 20105fi 20106 20107 20108{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether malloc(0) returns NULL" >&5 20109printf %s "checking whether malloc(0) returns NULL... " >&6; } 20110if test "x$MALLOC_ZERO_RETURNS_NULL" = xauto; then 20111if test ${xorg_cv_malloc0_returns_null+y} 20112then : 20113 printf %s "(cached) " >&6 20114else $as_nop 20115 if test "$cross_compiling" = yes 20116then : 20117 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 20118printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 20119as_fn_error $? "cannot run test program while cross compiling 20120See \`config.log' for more details" "$LINENO" 5; } 20121else $as_nop 20122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20123/* end confdefs.h. */ 20124 20125#include <stdlib.h> 20126 20127int 20128main (void) 20129{ 20130 20131 char *m0, *r0, *c0, *p; 20132 m0 = malloc(0); 20133 p = malloc(10); 20134 r0 = realloc(p,0); 20135 c0 = calloc(0,10); 20136 exit((m0 == 0 || r0 == 0 || c0 == 0) ? 0 : 1); 20137 20138 ; 20139 return 0; 20140} 20141_ACEOF 20142if ac_fn_c_try_run "$LINENO" 20143then : 20144 xorg_cv_malloc0_returns_null=yes 20145else $as_nop 20146 xorg_cv_malloc0_returns_null=no 20147fi 20148rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 20149 conftest.$ac_objext conftest.beam conftest.$ac_ext 20150fi 20151 20152fi 20153 20154MALLOC_ZERO_RETURNS_NULL=$xorg_cv_malloc0_returns_null 20155fi 20156{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MALLOC_ZERO_RETURNS_NULL" >&5 20157printf "%s\n" "$MALLOC_ZERO_RETURNS_NULL" >&6; } 20158 20159if test "x$MALLOC_ZERO_RETURNS_NULL" = xyes; then 20160 MALLOC_ZERO_CFLAGS="-DMALLOC_0_RETURNS_NULL" 20161 XMALLOC_ZERO_CFLAGS=$MALLOC_ZERO_CFLAGS 20162 XTMALLOC_ZERO_CFLAGS="$MALLOC_ZERO_CFLAGS -DXTMALLOC_BC" 20163else 20164 MALLOC_ZERO_CFLAGS="" 20165 XMALLOC_ZERO_CFLAGS="" 20166 XTMALLOC_ZERO_CFLAGS="" 20167fi 20168 20169 20170 20171 20172 20173 20174# Obtain compiler/linker options for dependencies 20175 20176pkg_failed=no 20177{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for xproto >= 7.0.13 x11 >= 1.6 xextproto >= 7.0.3 xext >= 1.0.99.1 inputproto >= 2.3.99.1" >&5 20178printf %s "checking for xproto >= 7.0.13 x11 >= 1.6 xextproto >= 7.0.3 xext >= 1.0.99.1 inputproto >= 2.3.99.1... " >&6; } 20179 20180if test -n "$XI_CFLAGS"; then 20181 pkg_cv_XI_CFLAGS="$XI_CFLAGS" 20182 elif test -n "$PKG_CONFIG"; then 20183 if test -n "$PKG_CONFIG" && \ 20184 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto >= 7.0.13 x11 >= 1.6 xextproto >= 7.0.3 xext >= 1.0.99.1 inputproto >= 2.3.99.1\""; } >&5 20185 ($PKG_CONFIG --exists --print-errors "xproto >= 7.0.13 x11 >= 1.6 xextproto >= 7.0.3 xext >= 1.0.99.1 inputproto >= 2.3.99.1") 2>&5 20186 ac_status=$? 20187 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 20188 test $ac_status = 0; }; then 20189 pkg_cv_XI_CFLAGS=`$PKG_CONFIG --cflags "xproto >= 7.0.13 x11 >= 1.6 xextproto >= 7.0.3 xext >= 1.0.99.1 inputproto >= 2.3.99.1" 2>/dev/null` 20190 test "x$?" != "x0" && pkg_failed=yes 20191else 20192 pkg_failed=yes 20193fi 20194 else 20195 pkg_failed=untried 20196fi 20197if test -n "$XI_LIBS"; then 20198 pkg_cv_XI_LIBS="$XI_LIBS" 20199 elif test -n "$PKG_CONFIG"; then 20200 if test -n "$PKG_CONFIG" && \ 20201 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto >= 7.0.13 x11 >= 1.6 xextproto >= 7.0.3 xext >= 1.0.99.1 inputproto >= 2.3.99.1\""; } >&5 20202 ($PKG_CONFIG --exists --print-errors "xproto >= 7.0.13 x11 >= 1.6 xextproto >= 7.0.3 xext >= 1.0.99.1 inputproto >= 2.3.99.1") 2>&5 20203 ac_status=$? 20204 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 20205 test $ac_status = 0; }; then 20206 pkg_cv_XI_LIBS=`$PKG_CONFIG --libs "xproto >= 7.0.13 x11 >= 1.6 xextproto >= 7.0.3 xext >= 1.0.99.1 inputproto >= 2.3.99.1" 2>/dev/null` 20207 test "x$?" != "x0" && pkg_failed=yes 20208else 20209 pkg_failed=yes 20210fi 20211 else 20212 pkg_failed=untried 20213fi 20214 20215 20216 20217if test $pkg_failed = yes; then 20218 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 20219printf "%s\n" "no" >&6; } 20220 20221if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 20222 _pkg_short_errors_supported=yes 20223else 20224 _pkg_short_errors_supported=no 20225fi 20226 if test $_pkg_short_errors_supported = yes; then 20227 XI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xproto >= 7.0.13 x11 >= 1.6 xextproto >= 7.0.3 xext >= 1.0.99.1 inputproto >= 2.3.99.1" 2>&1` 20228 else 20229 XI_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xproto >= 7.0.13 x11 >= 1.6 xextproto >= 7.0.3 xext >= 1.0.99.1 inputproto >= 2.3.99.1" 2>&1` 20230 fi 20231 # Put the nasty error message in config.log where it belongs 20232 echo "$XI_PKG_ERRORS" >&5 20233 20234 as_fn_error $? "Package requirements (xproto >= 7.0.13 x11 >= 1.6 xextproto >= 7.0.3 xext >= 1.0.99.1 inputproto >= 2.3.99.1) were not met: 20235 20236$XI_PKG_ERRORS 20237 20238Consider adjusting the PKG_CONFIG_PATH environment variable if you 20239installed software in a non-standard prefix. 20240 20241Alternatively, you may set the environment variables XI_CFLAGS 20242and XI_LIBS to avoid the need to call pkg-config. 20243See the pkg-config man page for more details." "$LINENO" 5 20244elif test $pkg_failed = untried; then 20245 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 20246printf "%s\n" "no" >&6; } 20247 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 20248printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 20249as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 20250is in your PATH or set the PKG_CONFIG environment variable to the full 20251path to pkg-config. 20252 20253Alternatively, you may set the environment variables XI_CFLAGS 20254and XI_LIBS to avoid the need to call pkg-config. 20255See the pkg-config man page for more details. 20256 20257To get pkg-config, see <http://pkg-config.freedesktop.org/>. 20258See \`config.log' for more details" "$LINENO" 5; } 20259else 20260 XI_CFLAGS=$pkg_cv_XI_CFLAGS 20261 XI_LIBS=$pkg_cv_XI_LIBS 20262 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 20263printf "%s\n" "yes" >&6; } 20264 20265fi 20266# CFLAGS only for PointerBarrier typedef 20267 20268pkg_failed=no 20269{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for xfixes >= 5" >&5 20270printf %s "checking for xfixes >= 5... " >&6; } 20271 20272if test -n "$XFIXES_CFLAGS"; then 20273 pkg_cv_XFIXES_CFLAGS="$XFIXES_CFLAGS" 20274 elif test -n "$PKG_CONFIG"; then 20275 if test -n "$PKG_CONFIG" && \ 20276 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xfixes >= 5\""; } >&5 20277 ($PKG_CONFIG --exists --print-errors "xfixes >= 5") 2>&5 20278 ac_status=$? 20279 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 20280 test $ac_status = 0; }; then 20281 pkg_cv_XFIXES_CFLAGS=`$PKG_CONFIG --cflags "xfixes >= 5" 2>/dev/null` 20282 test "x$?" != "x0" && pkg_failed=yes 20283else 20284 pkg_failed=yes 20285fi 20286 else 20287 pkg_failed=untried 20288fi 20289if test -n "$XFIXES_LIBS"; then 20290 pkg_cv_XFIXES_LIBS="$XFIXES_LIBS" 20291 elif test -n "$PKG_CONFIG"; then 20292 if test -n "$PKG_CONFIG" && \ 20293 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xfixes >= 5\""; } >&5 20294 ($PKG_CONFIG --exists --print-errors "xfixes >= 5") 2>&5 20295 ac_status=$? 20296 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 20297 test $ac_status = 0; }; then 20298 pkg_cv_XFIXES_LIBS=`$PKG_CONFIG --libs "xfixes >= 5" 2>/dev/null` 20299 test "x$?" != "x0" && pkg_failed=yes 20300else 20301 pkg_failed=yes 20302fi 20303 else 20304 pkg_failed=untried 20305fi 20306 20307 20308 20309if test $pkg_failed = yes; then 20310 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 20311printf "%s\n" "no" >&6; } 20312 20313if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 20314 _pkg_short_errors_supported=yes 20315else 20316 _pkg_short_errors_supported=no 20317fi 20318 if test $_pkg_short_errors_supported = yes; then 20319 XFIXES_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xfixes >= 5" 2>&1` 20320 else 20321 XFIXES_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xfixes >= 5" 2>&1` 20322 fi 20323 # Put the nasty error message in config.log where it belongs 20324 echo "$XFIXES_PKG_ERRORS" >&5 20325 20326 as_fn_error $? "Package requirements (xfixes >= 5) were not met: 20327 20328$XFIXES_PKG_ERRORS 20329 20330Consider adjusting the PKG_CONFIG_PATH environment variable if you 20331installed software in a non-standard prefix. 20332 20333Alternatively, you may set the environment variables XFIXES_CFLAGS 20334and XFIXES_LIBS to avoid the need to call pkg-config. 20335See the pkg-config man page for more details." "$LINENO" 5 20336elif test $pkg_failed = untried; then 20337 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 20338printf "%s\n" "no" >&6; } 20339 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 20340printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 20341as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 20342is in your PATH or set the PKG_CONFIG environment variable to the full 20343path to pkg-config. 20344 20345Alternatively, you may set the environment variables XFIXES_CFLAGS 20346and XFIXES_LIBS to avoid the need to call pkg-config. 20347See the pkg-config man page for more details. 20348 20349To get pkg-config, see <http://pkg-config.freedesktop.org/>. 20350See \`config.log' for more details" "$LINENO" 5; } 20351else 20352 XFIXES_CFLAGS=$pkg_cv_XFIXES_CFLAGS 20353 XFIXES_LIBS=$pkg_cv_XFIXES_LIBS 20354 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 20355printf "%s\n" "yes" >&6; } 20356 20357fi 20358 20359# Check for xmlto and asciidoc for man page conversion 20360# (only needed by people building tarballs) 20361if test "$have_xmlto" = yes && test "$have_asciidoc" = yes; then 20362 have_doctools=yes 20363else 20364 have_doctools=no 20365fi 20366 if test $have_doctools = yes; then 20367 HAVE_DOCTOOLS_TRUE= 20368 HAVE_DOCTOOLS_FALSE='#' 20369else 20370 HAVE_DOCTOOLS_TRUE='#' 20371 HAVE_DOCTOOLS_FALSE= 20372fi 20373 20374if test $have_doctools = no; then 20375 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: xmlto or asciidoc not found - cannot create man pages without it" >&5 20376printf "%s\n" "$as_me: WARNING: xmlto or asciidoc not found - cannot create man pages without it" >&2;} 20377fi 20378 20379# Determine if the source for man pages is available 20380# It may already be present (tarball) or can be generated using doctools 20381 if test -f "$srcdir/man/XAllowDeviceEvents.man" || \ 20382 test $have_doctools = yes; then 20383 INSTALL_MANPAGES_TRUE= 20384 INSTALL_MANPAGES_FALSE='#' 20385else 20386 INSTALL_MANPAGES_TRUE='#' 20387 INSTALL_MANPAGES_FALSE= 20388fi 20389 20390 20391ac_config_files="$ac_config_files Makefile src/Makefile man/Makefile specs/Makefile xi.pc" 20392 20393cat >confcache <<\_ACEOF 20394# This file is a shell script that caches the results of configure 20395# tests run on this system so they can be shared between configure 20396# scripts and configure runs, see configure's option --config-cache. 20397# It is not useful on other systems. If it contains results you don't 20398# want to keep, you may remove or edit it. 20399# 20400# config.status only pays attention to the cache file if you give it 20401# the --recheck option to rerun configure. 20402# 20403# `ac_cv_env_foo' variables (set or unset) will be overridden when 20404# loading this file, other *unset* `ac_cv_foo' will be assigned the 20405# following values. 20406 20407_ACEOF 20408 20409# The following way of writing the cache mishandles newlines in values, 20410# but we know of no workaround that is simple, portable, and efficient. 20411# So, we kill variables containing newlines. 20412# Ultrix sh set writes to stderr and can't be redirected directly, 20413# and sets the high bit in the cache file unless we assign to the vars. 20414( 20415 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 20416 eval ac_val=\$$ac_var 20417 case $ac_val in #( 20418 *${as_nl}*) 20419 case $ac_var in #( 20420 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 20421printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 20422 esac 20423 case $ac_var in #( 20424 _ | IFS | as_nl) ;; #( 20425 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 20426 *) { eval $ac_var=; unset $ac_var;} ;; 20427 esac ;; 20428 esac 20429 done 20430 20431 (set) 2>&1 | 20432 case $as_nl`(ac_space=' '; set) 2>&1` in #( 20433 *${as_nl}ac_space=\ *) 20434 # `set' does not quote correctly, so add quotes: double-quote 20435 # substitution turns \\\\ into \\, and sed turns \\ into \. 20436 sed -n \ 20437 "s/'/'\\\\''/g; 20438 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 20439 ;; #( 20440 *) 20441 # `set' quotes correctly as required by POSIX, so do not add quotes. 20442 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 20443 ;; 20444 esac | 20445 sort 20446) | 20447 sed ' 20448 /^ac_cv_env_/b end 20449 t clear 20450 :clear 20451 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/ 20452 t end 20453 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 20454 :end' >>confcache 20455if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 20456 if test -w "$cache_file"; then 20457 if test "x$cache_file" != "x/dev/null"; then 20458 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 20459printf "%s\n" "$as_me: updating cache $cache_file" >&6;} 20460 if test ! -f "$cache_file" || test -h "$cache_file"; then 20461 cat confcache >"$cache_file" 20462 else 20463 case $cache_file in #( 20464 */* | ?:*) 20465 mv -f confcache "$cache_file"$$ && 20466 mv -f "$cache_file"$$ "$cache_file" ;; #( 20467 *) 20468 mv -f confcache "$cache_file" ;; 20469 esac 20470 fi 20471 fi 20472 else 20473 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 20474printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;} 20475 fi 20476fi 20477rm -f confcache 20478 20479test "x$prefix" = xNONE && prefix=$ac_default_prefix 20480# Let make expand exec_prefix. 20481test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 20482 20483DEFS=-DHAVE_CONFIG_H 20484 20485ac_libobjs= 20486ac_ltlibobjs= 20487U= 20488for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 20489 # 1. Remove the extension, and $U if already installed. 20490 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 20491 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"` 20492 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 20493 # will be set to the directory where LIBOBJS objects are built. 20494 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 20495 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 20496done 20497LIBOBJS=$ac_libobjs 20498 20499LTLIBOBJS=$ac_ltlibobjs 20500 20501 20502{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 20503printf %s "checking that generated files are newer than configure... " >&6; } 20504 if test -n "$am_sleep_pid"; then 20505 # Hide warnings about reused PIDs. 20506 wait $am_sleep_pid 2>/dev/null 20507 fi 20508 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5 20509printf "%s\n" "done" >&6; } 20510 if test -n "$EXEEXT"; then 20511 am__EXEEXT_TRUE= 20512 am__EXEEXT_FALSE='#' 20513else 20514 am__EXEEXT_TRUE='#' 20515 am__EXEEXT_FALSE= 20516fi 20517 20518if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 20519 as_fn_error $? "conditional \"AMDEP\" was never defined. 20520Usually this means the macro was only invoked conditionally." "$LINENO" 5 20521fi 20522if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 20523 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 20524Usually this means the macro was only invoked conditionally." "$LINENO" 5 20525fi 20526if test -z "${ENABLE_DOCS_TRUE}" && test -z "${ENABLE_DOCS_FALSE}"; then 20527 as_fn_error $? "conditional \"ENABLE_DOCS\" was never defined. 20528Usually this means the macro was only invoked conditionally." "$LINENO" 5 20529fi 20530if test -z "${ENABLE_SPECS_TRUE}" && test -z "${ENABLE_SPECS_FALSE}"; then 20531 as_fn_error $? "conditional \"ENABLE_SPECS\" was never defined. 20532Usually this means the macro was only invoked conditionally." "$LINENO" 5 20533fi 20534if test -z "${HAVE_XMLTO_TEXT_TRUE}" && test -z "${HAVE_XMLTO_TEXT_FALSE}"; then 20535 as_fn_error $? "conditional \"HAVE_XMLTO_TEXT\" was never defined. 20536Usually this means the macro was only invoked conditionally." "$LINENO" 5 20537fi 20538if test -z "${HAVE_XMLTO_TRUE}" && test -z "${HAVE_XMLTO_FALSE}"; then 20539 as_fn_error $? "conditional \"HAVE_XMLTO\" was never defined. 20540Usually this means the macro was only invoked conditionally." "$LINENO" 5 20541fi 20542if test -z "${HAVE_FOP_TRUE}" && test -z "${HAVE_FOP_FALSE}"; then 20543 as_fn_error $? "conditional \"HAVE_FOP\" was never defined. 20544Usually this means the macro was only invoked conditionally." "$LINENO" 5 20545fi 20546if test -z "${HAVE_XSLTPROC_TRUE}" && test -z "${HAVE_XSLTPROC_FALSE}"; then 20547 as_fn_error $? "conditional \"HAVE_XSLTPROC\" was never defined. 20548Usually this means the macro was only invoked conditionally." "$LINENO" 5 20549fi 20550if test -z "${HAVE_STYLESHEETS_TRUE}" && test -z "${HAVE_STYLESHEETS_FALSE}"; then 20551 as_fn_error $? "conditional \"HAVE_STYLESHEETS\" was never defined. 20552Usually this means the macro was only invoked conditionally." "$LINENO" 5 20553fi 20554if test -z "${HAVE_ASCIIDOC_TRUE}" && test -z "${HAVE_ASCIIDOC_FALSE}"; then 20555 as_fn_error $? "conditional \"HAVE_ASCIIDOC\" was never defined. 20556Usually this means the macro was only invoked conditionally." "$LINENO" 5 20557fi 20558if test -z "${HAVE_DOCTOOLS_TRUE}" && test -z "${HAVE_DOCTOOLS_FALSE}"; then 20559 as_fn_error $? "conditional \"HAVE_DOCTOOLS\" was never defined. 20560Usually this means the macro was only invoked conditionally." "$LINENO" 5 20561fi 20562if test -z "${INSTALL_MANPAGES_TRUE}" && test -z "${INSTALL_MANPAGES_FALSE}"; then 20563 as_fn_error $? "conditional \"INSTALL_MANPAGES\" was never defined. 20564Usually this means the macro was only invoked conditionally." "$LINENO" 5 20565fi 20566 20567: "${CONFIG_STATUS=./config.status}" 20568ac_write_fail=0 20569ac_clean_files_save=$ac_clean_files 20570ac_clean_files="$ac_clean_files $CONFIG_STATUS" 20571{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 20572printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;} 20573as_write_fail=0 20574cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 20575#! $SHELL 20576# Generated by $as_me. 20577# Run this file to recreate the current configuration. 20578# Compiler output produced by configure, useful for debugging 20579# configure, is in config.log if it exists. 20580 20581debug=false 20582ac_cs_recheck=false 20583ac_cs_silent=false 20584 20585SHELL=\${CONFIG_SHELL-$SHELL} 20586export SHELL 20587_ASEOF 20588cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 20589## -------------------- ## 20590## M4sh Initialization. ## 20591## -------------------- ## 20592 20593# Be more Bourne compatible 20594DUALCASE=1; export DUALCASE # for MKS sh 20595as_nop=: 20596if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 20597then : 20598 emulate sh 20599 NULLCMD=: 20600 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 20601 # is contrary to our usage. Disable this feature. 20602 alias -g '${1+"$@"}'='"$@"' 20603 setopt NO_GLOB_SUBST 20604else $as_nop 20605 case `(set -o) 2>/dev/null` in #( 20606 *posix*) : 20607 set -o posix ;; #( 20608 *) : 20609 ;; 20610esac 20611fi 20612 20613 20614 20615# Reset variables that may have inherited troublesome values from 20616# the environment. 20617 20618# IFS needs to be set, to space, tab, and newline, in precisely that order. 20619# (If _AS_PATH_WALK were called with IFS unset, it would have the 20620# side effect of setting IFS to empty, thus disabling word splitting.) 20621# Quoting is to prevent editors from complaining about space-tab. 20622as_nl=' 20623' 20624export as_nl 20625IFS=" "" $as_nl" 20626 20627PS1='$ ' 20628PS2='> ' 20629PS4='+ ' 20630 20631# Ensure predictable behavior from utilities with locale-dependent output. 20632LC_ALL=C 20633export LC_ALL 20634LANGUAGE=C 20635export LANGUAGE 20636 20637# We cannot yet rely on "unset" to work, but we need these variables 20638# to be unset--not just set to an empty or harmless value--now, to 20639# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct 20640# also avoids known problems related to "unset" and subshell syntax 20641# in other old shells (e.g. bash 2.01 and pdksh 5.2.14). 20642for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH 20643do eval test \${$as_var+y} \ 20644 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 20645done 20646 20647# Ensure that fds 0, 1, and 2 are open. 20648if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi 20649if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi 20650if (exec 3>&2) ; then :; else exec 2>/dev/null; fi 20651 20652# The user is always right. 20653if ${PATH_SEPARATOR+false} :; then 20654 PATH_SEPARATOR=: 20655 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 20656 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 20657 PATH_SEPARATOR=';' 20658 } 20659fi 20660 20661 20662# Find who we are. Look in the path if we contain no directory separator. 20663as_myself= 20664case $0 in #(( 20665 *[\\/]* ) as_myself=$0 ;; 20666 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20667for as_dir in $PATH 20668do 20669 IFS=$as_save_IFS 20670 case $as_dir in #((( 20671 '') as_dir=./ ;; 20672 */) ;; 20673 *) as_dir=$as_dir/ ;; 20674 esac 20675 test -r "$as_dir$0" && as_myself=$as_dir$0 && break 20676 done 20677IFS=$as_save_IFS 20678 20679 ;; 20680esac 20681# We did not find ourselves, most probably we were run as `sh COMMAND' 20682# in which case we are not to be found in the path. 20683if test "x$as_myself" = x; then 20684 as_myself=$0 20685fi 20686if test ! -f "$as_myself"; then 20687 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 20688 exit 1 20689fi 20690 20691 20692 20693# as_fn_error STATUS ERROR [LINENO LOG_FD] 20694# ---------------------------------------- 20695# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 20696# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 20697# script with STATUS, using 1 if that was 0. 20698as_fn_error () 20699{ 20700 as_status=$1; test $as_status -eq 0 && as_status=1 20701 if test "$4"; then 20702 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 20703 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 20704 fi 20705 printf "%s\n" "$as_me: error: $2" >&2 20706 as_fn_exit $as_status 20707} # as_fn_error 20708 20709 20710 20711# as_fn_set_status STATUS 20712# ----------------------- 20713# Set $? to STATUS, without forking. 20714as_fn_set_status () 20715{ 20716 return $1 20717} # as_fn_set_status 20718 20719# as_fn_exit STATUS 20720# ----------------- 20721# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 20722as_fn_exit () 20723{ 20724 set +e 20725 as_fn_set_status $1 20726 exit $1 20727} # as_fn_exit 20728 20729# as_fn_unset VAR 20730# --------------- 20731# Portably unset VAR. 20732as_fn_unset () 20733{ 20734 { eval $1=; unset $1;} 20735} 20736as_unset=as_fn_unset 20737 20738# as_fn_append VAR VALUE 20739# ---------------------- 20740# Append the text in VALUE to the end of the definition contained in VAR. Take 20741# advantage of any shell optimizations that allow amortized linear growth over 20742# repeated appends, instead of the typical quadratic growth present in naive 20743# implementations. 20744if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null 20745then : 20746 eval 'as_fn_append () 20747 { 20748 eval $1+=\$2 20749 }' 20750else $as_nop 20751 as_fn_append () 20752 { 20753 eval $1=\$$1\$2 20754 } 20755fi # as_fn_append 20756 20757# as_fn_arith ARG... 20758# ------------------ 20759# Perform arithmetic evaluation on the ARGs, and store the result in the 20760# global $as_val. Take advantage of shells that can avoid forks. The arguments 20761# must be portable across $(()) and expr. 20762if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null 20763then : 20764 eval 'as_fn_arith () 20765 { 20766 as_val=$(( $* )) 20767 }' 20768else $as_nop 20769 as_fn_arith () 20770 { 20771 as_val=`expr "$@" || test $? -eq 1` 20772 } 20773fi # as_fn_arith 20774 20775 20776if expr a : '\(a\)' >/dev/null 2>&1 && 20777 test "X`expr 00001 : '.*\(...\)'`" = X001; then 20778 as_expr=expr 20779else 20780 as_expr=false 20781fi 20782 20783if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 20784 as_basename=basename 20785else 20786 as_basename=false 20787fi 20788 20789if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 20790 as_dirname=dirname 20791else 20792 as_dirname=false 20793fi 20794 20795as_me=`$as_basename -- "$0" || 20796$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 20797 X"$0" : 'X\(//\)$' \| \ 20798 X"$0" : 'X\(/\)' \| . 2>/dev/null || 20799printf "%s\n" X/"$0" | 20800 sed '/^.*\/\([^/][^/]*\)\/*$/{ 20801 s//\1/ 20802 q 20803 } 20804 /^X\/\(\/\/\)$/{ 20805 s//\1/ 20806 q 20807 } 20808 /^X\/\(\/\).*/{ 20809 s//\1/ 20810 q 20811 } 20812 s/.*/./; q'` 20813 20814# Avoid depending upon Character Ranges. 20815as_cr_letters='abcdefghijklmnopqrstuvwxyz' 20816as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 20817as_cr_Letters=$as_cr_letters$as_cr_LETTERS 20818as_cr_digits='0123456789' 20819as_cr_alnum=$as_cr_Letters$as_cr_digits 20820 20821 20822# Determine whether it's possible to make 'echo' print without a newline. 20823# These variables are no longer used directly by Autoconf, but are AC_SUBSTed 20824# for compatibility with existing Makefiles. 20825ECHO_C= ECHO_N= ECHO_T= 20826case `echo -n x` in #((((( 20827-n*) 20828 case `echo 'xy\c'` in 20829 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 20830 xy) ECHO_C='\c';; 20831 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 20832 ECHO_T=' ';; 20833 esac;; 20834*) 20835 ECHO_N='-n';; 20836esac 20837 20838# For backward compatibility with old third-party macros, we provide 20839# the shell variables $as_echo and $as_echo_n. New code should use 20840# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. 20841as_echo='printf %s\n' 20842as_echo_n='printf %s' 20843 20844rm -f conf$$ conf$$.exe conf$$.file 20845if test -d conf$$.dir; then 20846 rm -f conf$$.dir/conf$$.file 20847else 20848 rm -f conf$$.dir 20849 mkdir conf$$.dir 2>/dev/null 20850fi 20851if (echo >conf$$.file) 2>/dev/null; then 20852 if ln -s conf$$.file conf$$ 2>/dev/null; then 20853 as_ln_s='ln -s' 20854 # ... but there are two gotchas: 20855 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 20856 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 20857 # In both cases, we have to default to `cp -pR'. 20858 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 20859 as_ln_s='cp -pR' 20860 elif ln conf$$.file conf$$ 2>/dev/null; then 20861 as_ln_s=ln 20862 else 20863 as_ln_s='cp -pR' 20864 fi 20865else 20866 as_ln_s='cp -pR' 20867fi 20868rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 20869rmdir conf$$.dir 2>/dev/null 20870 20871 20872# as_fn_mkdir_p 20873# ------------- 20874# Create "$as_dir" as a directory, including parents if necessary. 20875as_fn_mkdir_p () 20876{ 20877 20878 case $as_dir in #( 20879 -*) as_dir=./$as_dir;; 20880 esac 20881 test -d "$as_dir" || eval $as_mkdir_p || { 20882 as_dirs= 20883 while :; do 20884 case $as_dir in #( 20885 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 20886 *) as_qdir=$as_dir;; 20887 esac 20888 as_dirs="'$as_qdir' $as_dirs" 20889 as_dir=`$as_dirname -- "$as_dir" || 20890$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20891 X"$as_dir" : 'X\(//\)[^/]' \| \ 20892 X"$as_dir" : 'X\(//\)$' \| \ 20893 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 20894printf "%s\n" X"$as_dir" | 20895 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 20896 s//\1/ 20897 q 20898 } 20899 /^X\(\/\/\)[^/].*/{ 20900 s//\1/ 20901 q 20902 } 20903 /^X\(\/\/\)$/{ 20904 s//\1/ 20905 q 20906 } 20907 /^X\(\/\).*/{ 20908 s//\1/ 20909 q 20910 } 20911 s/.*/./; q'` 20912 test -d "$as_dir" && break 20913 done 20914 test -z "$as_dirs" || eval "mkdir $as_dirs" 20915 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 20916 20917 20918} # as_fn_mkdir_p 20919if mkdir -p . 2>/dev/null; then 20920 as_mkdir_p='mkdir -p "$as_dir"' 20921else 20922 test -d ./-p && rmdir ./-p 20923 as_mkdir_p=false 20924fi 20925 20926 20927# as_fn_executable_p FILE 20928# ----------------------- 20929# Test if FILE is an executable regular file. 20930as_fn_executable_p () 20931{ 20932 test -f "$1" && test -x "$1" 20933} # as_fn_executable_p 20934as_test_x='test -x' 20935as_executable_p=as_fn_executable_p 20936 20937# Sed expression to map a string onto a valid CPP name. 20938as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 20939 20940# Sed expression to map a string onto a valid variable name. 20941as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 20942 20943 20944exec 6>&1 20945## ----------------------------------- ## 20946## Main body of $CONFIG_STATUS script. ## 20947## ----------------------------------- ## 20948_ASEOF 20949test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 20950 20951cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20952# Save the log message, to keep $0 and so on meaningful, and to 20953# report actual input values of CONFIG_FILES etc. instead of their 20954# values after options handling. 20955ac_log=" 20956This file was extended by libXi $as_me 1.8.2, which was 20957generated by GNU Autoconf 2.71. Invocation command line was 20958 20959 CONFIG_FILES = $CONFIG_FILES 20960 CONFIG_HEADERS = $CONFIG_HEADERS 20961 CONFIG_LINKS = $CONFIG_LINKS 20962 CONFIG_COMMANDS = $CONFIG_COMMANDS 20963 $ $0 $@ 20964 20965on `(hostname || uname -n) 2>/dev/null | sed 1q` 20966" 20967 20968_ACEOF 20969 20970case $ac_config_files in *" 20971"*) set x $ac_config_files; shift; ac_config_files=$*;; 20972esac 20973 20974case $ac_config_headers in *" 20975"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 20976esac 20977 20978 20979cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20980# Files that config.status was made for. 20981config_files="$ac_config_files" 20982config_headers="$ac_config_headers" 20983config_commands="$ac_config_commands" 20984 20985_ACEOF 20986 20987cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20988ac_cs_usage="\ 20989\`$as_me' instantiates files and other configuration actions 20990from templates according to the current configuration. Unless the files 20991and actions are specified as TAGs, all are instantiated by default. 20992 20993Usage: $0 [OPTION]... [TAG]... 20994 20995 -h, --help print this help, then exit 20996 -V, --version print version number and configuration settings, then exit 20997 --config print configuration, then exit 20998 -q, --quiet, --silent 20999 do not print progress messages 21000 -d, --debug don't remove temporary files 21001 --recheck update $as_me by reconfiguring in the same conditions 21002 --file=FILE[:TEMPLATE] 21003 instantiate the configuration file FILE 21004 --header=FILE[:TEMPLATE] 21005 instantiate the configuration header FILE 21006 21007Configuration files: 21008$config_files 21009 21010Configuration headers: 21011$config_headers 21012 21013Configuration commands: 21014$config_commands 21015 21016Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libXi/issues>." 21017 21018_ACEOF 21019ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"` 21020ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"` 21021cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21022ac_cs_config='$ac_cs_config_escaped' 21023ac_cs_version="\\ 21024libXi config.status 1.8.2 21025configured by $0, generated by GNU Autoconf 2.71, 21026 with options \\"\$ac_cs_config\\" 21027 21028Copyright (C) 2021 Free Software Foundation, Inc. 21029This config.status script is free software; the Free Software Foundation 21030gives unlimited permission to copy, distribute and modify it." 21031 21032ac_pwd='$ac_pwd' 21033srcdir='$srcdir' 21034INSTALL='$INSTALL' 21035MKDIR_P='$MKDIR_P' 21036AWK='$AWK' 21037test -n "\$AWK" || AWK=awk 21038_ACEOF 21039 21040cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21041# The default lists apply if the user does not specify any file. 21042ac_need_defaults=: 21043while test $# != 0 21044do 21045 case $1 in 21046 --*=?*) 21047 ac_option=`expr "X$1" : 'X\([^=]*\)='` 21048 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 21049 ac_shift=: 21050 ;; 21051 --*=) 21052 ac_option=`expr "X$1" : 'X\([^=]*\)='` 21053 ac_optarg= 21054 ac_shift=: 21055 ;; 21056 *) 21057 ac_option=$1 21058 ac_optarg=$2 21059 ac_shift=shift 21060 ;; 21061 esac 21062 21063 case $ac_option in 21064 # Handling of the options. 21065 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 21066 ac_cs_recheck=: ;; 21067 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 21068 printf "%s\n" "$ac_cs_version"; exit ;; 21069 --config | --confi | --conf | --con | --co | --c ) 21070 printf "%s\n" "$ac_cs_config"; exit ;; 21071 --debug | --debu | --deb | --de | --d | -d ) 21072 debug=: ;; 21073 --file | --fil | --fi | --f ) 21074 $ac_shift 21075 case $ac_optarg in 21076 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 21077 '') as_fn_error $? "missing file argument" ;; 21078 esac 21079 as_fn_append CONFIG_FILES " '$ac_optarg'" 21080 ac_need_defaults=false;; 21081 --header | --heade | --head | --hea ) 21082 $ac_shift 21083 case $ac_optarg in 21084 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 21085 esac 21086 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 21087 ac_need_defaults=false;; 21088 --he | --h) 21089 # Conflict between --help and --header 21090 as_fn_error $? "ambiguous option: \`$1' 21091Try \`$0 --help' for more information.";; 21092 --help | --hel | -h ) 21093 printf "%s\n" "$ac_cs_usage"; exit ;; 21094 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 21095 | -silent | --silent | --silen | --sile | --sil | --si | --s) 21096 ac_cs_silent=: ;; 21097 21098 # This is an error. 21099 -*) as_fn_error $? "unrecognized option: \`$1' 21100Try \`$0 --help' for more information." ;; 21101 21102 *) as_fn_append ac_config_targets " $1" 21103 ac_need_defaults=false ;; 21104 21105 esac 21106 shift 21107done 21108 21109ac_configure_extra_args= 21110 21111if $ac_cs_silent; then 21112 exec 6>/dev/null 21113 ac_configure_extra_args="$ac_configure_extra_args --silent" 21114fi 21115 21116_ACEOF 21117cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21118if \$ac_cs_recheck; then 21119 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 21120 shift 21121 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6 21122 CONFIG_SHELL='$SHELL' 21123 export CONFIG_SHELL 21124 exec "\$@" 21125fi 21126 21127_ACEOF 21128cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21129exec 5>>config.log 21130{ 21131 echo 21132 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 21133## Running $as_me. ## 21134_ASBOX 21135 printf "%s\n" "$ac_log" 21136} >&5 21137 21138_ACEOF 21139cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21140# 21141# INIT-COMMANDS 21142# 21143AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}" 21144 21145 21146# The HP-UX ksh and POSIX shell print the target directory to stdout 21147# if CDPATH is set. 21148(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 21149 21150sed_quote_subst='$sed_quote_subst' 21151double_quote_subst='$double_quote_subst' 21152delay_variable_subst='$delay_variable_subst' 21153macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 21154macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 21155enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 21156enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 21157pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 21158enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 21159shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`' 21160SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 21161ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 21162PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 21163host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 21164host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 21165host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 21166build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 21167build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 21168build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 21169SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 21170Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 21171GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 21172EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 21173FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 21174LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 21175NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 21176LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 21177max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 21178ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 21179exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 21180lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 21181lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 21182lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 21183lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 21184lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 21185reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 21186reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 21187FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`' 21188OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 21189deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 21190file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 21191file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 21192want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 21193DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 21194sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 21195AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 21196lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`' 21197AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 21198archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 21199STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 21200RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 21201old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 21202old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 21203old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 21204lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 21205CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 21206CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 21207compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 21208GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 21209lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 21210lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 21211lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`' 21212lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 21213lt_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"`' 21214lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`' 21215nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 21216lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 21217lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`' 21218objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 21219MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 21220lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 21221lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 21222lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 21223lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 21224lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 21225need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 21226MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 21227DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 21228NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 21229LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 21230OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 21231OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 21232libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 21233shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 21234extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 21235archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 21236enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 21237export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 21238whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 21239compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 21240old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 21241old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 21242archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 21243archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 21244module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 21245module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 21246with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 21247allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 21248no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 21249hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 21250hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 21251hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 21252hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 21253hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 21254hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 21255hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 21256inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 21257link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 21258always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 21259export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 21260exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 21261include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 21262prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 21263postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 21264file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 21265variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 21266need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 21267need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 21268version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 21269runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 21270shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 21271shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 21272libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 21273library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 21274soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 21275install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 21276postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 21277postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 21278finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 21279finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 21280hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 21281sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 21282configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`' 21283configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`' 21284hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 21285enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 21286enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 21287enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 21288old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 21289striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 21290 21291LTCC='$LTCC' 21292LTCFLAGS='$LTCFLAGS' 21293compiler='$compiler_DEFAULT' 21294 21295# A function that is used when there is no print builtin or printf. 21296func_fallback_echo () 21297{ 21298 eval 'cat <<_LTECHO_EOF 21299\$1 21300_LTECHO_EOF' 21301} 21302 21303# Quote evaled strings. 21304for var in SHELL \ 21305ECHO \ 21306PATH_SEPARATOR \ 21307SED \ 21308GREP \ 21309EGREP \ 21310FGREP \ 21311LD \ 21312NM \ 21313LN_S \ 21314lt_SP2NL \ 21315lt_NL2SP \ 21316reload_flag \ 21317FILECMD \ 21318OBJDUMP \ 21319deplibs_check_method \ 21320file_magic_cmd \ 21321file_magic_glob \ 21322want_nocaseglob \ 21323DLLTOOL \ 21324sharedlib_from_linklib_cmd \ 21325AR \ 21326archiver_list_spec \ 21327STRIP \ 21328RANLIB \ 21329CC \ 21330CFLAGS \ 21331compiler \ 21332lt_cv_sys_global_symbol_pipe \ 21333lt_cv_sys_global_symbol_to_cdecl \ 21334lt_cv_sys_global_symbol_to_import \ 21335lt_cv_sys_global_symbol_to_c_name_address \ 21336lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 21337lt_cv_nm_interface \ 21338nm_file_list_spec \ 21339lt_cv_truncate_bin \ 21340lt_prog_compiler_no_builtin_flag \ 21341lt_prog_compiler_pic \ 21342lt_prog_compiler_wl \ 21343lt_prog_compiler_static \ 21344lt_cv_prog_compiler_c_o \ 21345need_locks \ 21346MANIFEST_TOOL \ 21347DSYMUTIL \ 21348NMEDIT \ 21349LIPO \ 21350OTOOL \ 21351OTOOL64 \ 21352shrext_cmds \ 21353export_dynamic_flag_spec \ 21354whole_archive_flag_spec \ 21355compiler_needs_object \ 21356with_gnu_ld \ 21357allow_undefined_flag \ 21358no_undefined_flag \ 21359hardcode_libdir_flag_spec \ 21360hardcode_libdir_separator \ 21361exclude_expsyms \ 21362include_expsyms \ 21363file_list_spec \ 21364variables_saved_for_relink \ 21365libname_spec \ 21366library_names_spec \ 21367soname_spec \ 21368install_override_mode \ 21369finish_eval \ 21370old_striplib \ 21371striplib; do 21372 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 21373 *[\\\\\\\`\\"\\\$]*) 21374 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 21375 ;; 21376 *) 21377 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 21378 ;; 21379 esac 21380done 21381 21382# Double-quote double-evaled strings. 21383for var in reload_cmds \ 21384old_postinstall_cmds \ 21385old_postuninstall_cmds \ 21386old_archive_cmds \ 21387extract_expsyms_cmds \ 21388old_archive_from_new_cmds \ 21389old_archive_from_expsyms_cmds \ 21390archive_cmds \ 21391archive_expsym_cmds \ 21392module_cmds \ 21393module_expsym_cmds \ 21394export_symbols_cmds \ 21395prelink_cmds \ 21396postlink_cmds \ 21397postinstall_cmds \ 21398postuninstall_cmds \ 21399finish_cmds \ 21400sys_lib_search_path_spec \ 21401configure_time_dlsearch_path \ 21402configure_time_lt_sys_library_path; do 21403 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 21404 *[\\\\\\\`\\"\\\$]*) 21405 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 21406 ;; 21407 *) 21408 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 21409 ;; 21410 esac 21411done 21412 21413ac_aux_dir='$ac_aux_dir' 21414 21415# See if we are running on zsh, and set the options that allow our 21416# commands through without removal of \ escapes INIT. 21417if test -n "\${ZSH_VERSION+set}"; then 21418 setopt NO_GLOB_SUBST 21419fi 21420 21421 21422 PACKAGE='$PACKAGE' 21423 VERSION='$VERSION' 21424 RM='$RM' 21425 ofile='$ofile' 21426 21427 21428 21429 21430_ACEOF 21431 21432cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21433 21434# Handling of arguments. 21435for ac_config_target in $ac_config_targets 21436do 21437 case $ac_config_target in 21438 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;; 21439 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 21440 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 21441 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 21442 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 21443 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 21444 "specs/Makefile") CONFIG_FILES="$CONFIG_FILES specs/Makefile" ;; 21445 "xi.pc") CONFIG_FILES="$CONFIG_FILES xi.pc" ;; 21446 21447 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 21448 esac 21449done 21450 21451 21452# If the user did not use the arguments to specify the items to instantiate, 21453# then the envvar interface is used. Set only those that are not. 21454# We use the long form for the default assignment because of an extremely 21455# bizarre bug on SunOS 4.1.3. 21456if $ac_need_defaults; then 21457 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files 21458 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers 21459 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands 21460fi 21461 21462# Have a temporary directory for convenience. Make it in the build tree 21463# simply because there is no reason against having it here, and in addition, 21464# creating and moving files from /tmp can sometimes cause problems. 21465# Hook for its removal unless debugging. 21466# Note that there is a small window in which the directory will not be cleaned: 21467# after its creation but before its name has been assigned to `$tmp'. 21468$debug || 21469{ 21470 tmp= ac_tmp= 21471 trap 'exit_status=$? 21472 : "${ac_tmp:=$tmp}" 21473 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 21474' 0 21475 trap 'as_fn_exit 1' 1 2 13 15 21476} 21477# Create a (secure) tmp directory for tmp files. 21478 21479{ 21480 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 21481 test -d "$tmp" 21482} || 21483{ 21484 tmp=./conf$$-$RANDOM 21485 (umask 077 && mkdir "$tmp") 21486} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 21487ac_tmp=$tmp 21488 21489# Set up the scripts for CONFIG_FILES section. 21490# No need to generate them if there are no CONFIG_FILES. 21491# This happens for instance with `./config.status config.h'. 21492if test -n "$CONFIG_FILES"; then 21493 21494 21495ac_cr=`echo X | tr X '\015'` 21496# On cygwin, bash can eat \r inside `` if the user requested igncr. 21497# But we know of no other shell where ac_cr would be empty at this 21498# point, so we can use a bashism as a fallback. 21499if test "x$ac_cr" = x; then 21500 eval ac_cr=\$\'\\r\' 21501fi 21502ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 21503if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 21504 ac_cs_awk_cr='\\r' 21505else 21506 ac_cs_awk_cr=$ac_cr 21507fi 21508 21509echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 21510_ACEOF 21511 21512 21513{ 21514 echo "cat >conf$$subs.awk <<_ACEOF" && 21515 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 21516 echo "_ACEOF" 21517} >conf$$subs.sh || 21518 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 21519ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 21520ac_delim='%!_!# ' 21521for ac_last_try in false false false false false :; do 21522 . ./conf$$subs.sh || 21523 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 21524 21525 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 21526 if test $ac_delim_n = $ac_delim_num; then 21527 break 21528 elif $ac_last_try; then 21529 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 21530 else 21531 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 21532 fi 21533done 21534rm -f conf$$subs.sh 21535 21536cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21537cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 21538_ACEOF 21539sed -n ' 21540h 21541s/^/S["/; s/!.*/"]=/ 21542p 21543g 21544s/^[^!]*!// 21545:repl 21546t repl 21547s/'"$ac_delim"'$// 21548t delim 21549:nl 21550h 21551s/\(.\{148\}\)..*/\1/ 21552t more1 21553s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 21554p 21555n 21556b repl 21557:more1 21558s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 21559p 21560g 21561s/.\{148\}// 21562t nl 21563:delim 21564h 21565s/\(.\{148\}\)..*/\1/ 21566t more2 21567s/["\\]/\\&/g; s/^/"/; s/$/"/ 21568p 21569b 21570:more2 21571s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 21572p 21573g 21574s/.\{148\}// 21575t delim 21576' <conf$$subs.awk | sed ' 21577/^[^""]/{ 21578 N 21579 s/\n// 21580} 21581' >>$CONFIG_STATUS || ac_write_fail=1 21582rm -f conf$$subs.awk 21583cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21584_ACAWK 21585cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 21586 for (key in S) S_is_set[key] = 1 21587 FS = "" 21588 21589} 21590{ 21591 line = $ 0 21592 nfields = split(line, field, "@") 21593 substed = 0 21594 len = length(field[1]) 21595 for (i = 2; i < nfields; i++) { 21596 key = field[i] 21597 keylen = length(key) 21598 if (S_is_set[key]) { 21599 value = S[key] 21600 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 21601 len += length(value) + length(field[++i]) 21602 substed = 1 21603 } else 21604 len += 1 + keylen 21605 } 21606 21607 print line 21608} 21609 21610_ACAWK 21611_ACEOF 21612cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21613if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 21614 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 21615else 21616 cat 21617fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 21618 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 21619_ACEOF 21620 21621# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 21622# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 21623# trailing colons and then remove the whole line if VPATH becomes empty 21624# (actually we leave an empty line to preserve line numbers). 21625if test "x$srcdir" = x.; then 21626 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 21627h 21628s/// 21629s/^/:/ 21630s/[ ]*$/:/ 21631s/:\$(srcdir):/:/g 21632s/:\${srcdir}:/:/g 21633s/:@srcdir@:/:/g 21634s/^:*// 21635s/:*$// 21636x 21637s/\(=[ ]*\).*/\1/ 21638G 21639s/\n// 21640s/^[^=]*=[ ]*$// 21641}' 21642fi 21643 21644cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21645fi # test -n "$CONFIG_FILES" 21646 21647# Set up the scripts for CONFIG_HEADERS section. 21648# No need to generate them if there are no CONFIG_HEADERS. 21649# This happens for instance with `./config.status Makefile'. 21650if test -n "$CONFIG_HEADERS"; then 21651cat >"$ac_tmp/defines.awk" <<\_ACAWK || 21652BEGIN { 21653_ACEOF 21654 21655# Transform confdefs.h into an awk script `defines.awk', embedded as 21656# here-document in config.status, that substitutes the proper values into 21657# config.h.in to produce config.h. 21658 21659# Create a delimiter string that does not exist in confdefs.h, to ease 21660# handling of long lines. 21661ac_delim='%!_!# ' 21662for ac_last_try in false false :; do 21663 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 21664 if test -z "$ac_tt"; then 21665 break 21666 elif $ac_last_try; then 21667 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 21668 else 21669 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 21670 fi 21671done 21672 21673# For the awk script, D is an array of macro values keyed by name, 21674# likewise P contains macro parameters if any. Preserve backslash 21675# newline sequences. 21676 21677ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 21678sed -n ' 21679s/.\{148\}/&'"$ac_delim"'/g 21680t rset 21681:rset 21682s/^[ ]*#[ ]*define[ ][ ]*/ / 21683t def 21684d 21685:def 21686s/\\$// 21687t bsnl 21688s/["\\]/\\&/g 21689s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 21690D["\1"]=" \3"/p 21691s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 21692d 21693:bsnl 21694s/["\\]/\\&/g 21695s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 21696D["\1"]=" \3\\\\\\n"\\/p 21697t cont 21698s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 21699t cont 21700d 21701:cont 21702n 21703s/.\{148\}/&'"$ac_delim"'/g 21704t clear 21705:clear 21706s/\\$// 21707t bsnlc 21708s/["\\]/\\&/g; s/^/"/; s/$/"/p 21709d 21710:bsnlc 21711s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 21712b cont 21713' <confdefs.h | sed ' 21714s/'"$ac_delim"'/"\\\ 21715"/g' >>$CONFIG_STATUS || ac_write_fail=1 21716 21717cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21718 for (key in D) D_is_set[key] = 1 21719 FS = "" 21720} 21721/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 21722 line = \$ 0 21723 split(line, arg, " ") 21724 if (arg[1] == "#") { 21725 defundef = arg[2] 21726 mac1 = arg[3] 21727 } else { 21728 defundef = substr(arg[1], 2) 21729 mac1 = arg[2] 21730 } 21731 split(mac1, mac2, "(") #) 21732 macro = mac2[1] 21733 prefix = substr(line, 1, index(line, defundef) - 1) 21734 if (D_is_set[macro]) { 21735 # Preserve the white space surrounding the "#". 21736 print prefix "define", macro P[macro] D[macro] 21737 next 21738 } else { 21739 # Replace #undef with comments. This is necessary, for example, 21740 # in the case of _POSIX_SOURCE, which is predefined and required 21741 # on some systems where configure will not decide to define it. 21742 if (defundef == "undef") { 21743 print "/*", prefix defundef, macro, "*/" 21744 next 21745 } 21746 } 21747} 21748{ print } 21749_ACAWK 21750_ACEOF 21751cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21752 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 21753fi # test -n "$CONFIG_HEADERS" 21754 21755 21756eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 21757shift 21758for ac_tag 21759do 21760 case $ac_tag in 21761 :[FHLC]) ac_mode=$ac_tag; continue;; 21762 esac 21763 case $ac_mode$ac_tag in 21764 :[FHL]*:*);; 21765 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 21766 :[FH]-) ac_tag=-:-;; 21767 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 21768 esac 21769 ac_save_IFS=$IFS 21770 IFS=: 21771 set x $ac_tag 21772 IFS=$ac_save_IFS 21773 shift 21774 ac_file=$1 21775 shift 21776 21777 case $ac_mode in 21778 :L) ac_source=$1;; 21779 :[FH]) 21780 ac_file_inputs= 21781 for ac_f 21782 do 21783 case $ac_f in 21784 -) ac_f="$ac_tmp/stdin";; 21785 *) # Look for the file first in the build tree, then in the source tree 21786 # (if the path is not absolute). The absolute path cannot be DOS-style, 21787 # because $ac_f cannot contain `:'. 21788 test -f "$ac_f" || 21789 case $ac_f in 21790 [\\/$]*) false;; 21791 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 21792 esac || 21793 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 21794 esac 21795 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 21796 as_fn_append ac_file_inputs " '$ac_f'" 21797 done 21798 21799 # Let's still pretend it is `configure' which instantiates (i.e., don't 21800 # use $as_me), people would be surprised to read: 21801 # /* config.h. Generated by config.status. */ 21802 configure_input='Generated from '` 21803 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 21804 `' by configure.' 21805 if test x"$ac_file" != x-; then 21806 configure_input="$ac_file. $configure_input" 21807 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 21808printf "%s\n" "$as_me: creating $ac_file" >&6;} 21809 fi 21810 # Neutralize special characters interpreted by sed in replacement strings. 21811 case $configure_input in #( 21812 *\&* | *\|* | *\\* ) 21813 ac_sed_conf_input=`printf "%s\n" "$configure_input" | 21814 sed 's/[\\\\&|]/\\\\&/g'`;; #( 21815 *) ac_sed_conf_input=$configure_input;; 21816 esac 21817 21818 case $ac_tag in 21819 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 21820 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 21821 esac 21822 ;; 21823 esac 21824 21825 ac_dir=`$as_dirname -- "$ac_file" || 21826$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21827 X"$ac_file" : 'X\(//\)[^/]' \| \ 21828 X"$ac_file" : 'X\(//\)$' \| \ 21829 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 21830printf "%s\n" X"$ac_file" | 21831 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 21832 s//\1/ 21833 q 21834 } 21835 /^X\(\/\/\)[^/].*/{ 21836 s//\1/ 21837 q 21838 } 21839 /^X\(\/\/\)$/{ 21840 s//\1/ 21841 q 21842 } 21843 /^X\(\/\).*/{ 21844 s//\1/ 21845 q 21846 } 21847 s/.*/./; q'` 21848 as_dir="$ac_dir"; as_fn_mkdir_p 21849 ac_builddir=. 21850 21851case "$ac_dir" in 21852.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 21853*) 21854 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 21855 # A ".." for each directory in $ac_dir_suffix. 21856 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 21857 case $ac_top_builddir_sub in 21858 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 21859 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 21860 esac ;; 21861esac 21862ac_abs_top_builddir=$ac_pwd 21863ac_abs_builddir=$ac_pwd$ac_dir_suffix 21864# for backward compatibility: 21865ac_top_builddir=$ac_top_build_prefix 21866 21867case $srcdir in 21868 .) # We are building in place. 21869 ac_srcdir=. 21870 ac_top_srcdir=$ac_top_builddir_sub 21871 ac_abs_top_srcdir=$ac_pwd ;; 21872 [\\/]* | ?:[\\/]* ) # Absolute name. 21873 ac_srcdir=$srcdir$ac_dir_suffix; 21874 ac_top_srcdir=$srcdir 21875 ac_abs_top_srcdir=$srcdir ;; 21876 *) # Relative name. 21877 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 21878 ac_top_srcdir=$ac_top_build_prefix$srcdir 21879 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 21880esac 21881ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 21882 21883 21884 case $ac_mode in 21885 :F) 21886 # 21887 # CONFIG_FILE 21888 # 21889 21890 case $INSTALL in 21891 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 21892 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 21893 esac 21894 ac_MKDIR_P=$MKDIR_P 21895 case $MKDIR_P in 21896 [\\/$]* | ?:[\\/]* ) ;; 21897 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 21898 esac 21899_ACEOF 21900 21901cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21902# If the template does not know about datarootdir, expand it. 21903# FIXME: This hack should be removed a few years after 2.60. 21904ac_datarootdir_hack=; ac_datarootdir_seen= 21905ac_sed_dataroot=' 21906/datarootdir/ { 21907 p 21908 q 21909} 21910/@datadir@/p 21911/@docdir@/p 21912/@infodir@/p 21913/@localedir@/p 21914/@mandir@/p' 21915case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 21916*datarootdir*) ac_datarootdir_seen=yes;; 21917*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 21918 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 21919printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 21920_ACEOF 21921cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21922 ac_datarootdir_hack=' 21923 s&@datadir@&$datadir&g 21924 s&@docdir@&$docdir&g 21925 s&@infodir@&$infodir&g 21926 s&@localedir@&$localedir&g 21927 s&@mandir@&$mandir&g 21928 s&\\\${datarootdir}&$datarootdir&g' ;; 21929esac 21930_ACEOF 21931 21932# Neutralize VPATH when `$srcdir' = `.'. 21933# Shell code in configure.ac might set extrasub. 21934# FIXME: do we really want to maintain this feature? 21935cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21936ac_sed_extra="$ac_vpsub 21937$extrasub 21938_ACEOF 21939cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21940:t 21941/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 21942s|@configure_input@|$ac_sed_conf_input|;t t 21943s&@top_builddir@&$ac_top_builddir_sub&;t t 21944s&@top_build_prefix@&$ac_top_build_prefix&;t t 21945s&@srcdir@&$ac_srcdir&;t t 21946s&@abs_srcdir@&$ac_abs_srcdir&;t t 21947s&@top_srcdir@&$ac_top_srcdir&;t t 21948s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 21949s&@builddir@&$ac_builddir&;t t 21950s&@abs_builddir@&$ac_abs_builddir&;t t 21951s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 21952s&@INSTALL@&$ac_INSTALL&;t t 21953s&@MKDIR_P@&$ac_MKDIR_P&;t t 21954$ac_datarootdir_hack 21955" 21956eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 21957 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 21958 21959test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 21960 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 21961 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 21962 "$ac_tmp/out"`; test -z "$ac_out"; } && 21963 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 21964which seems to be undefined. Please make sure it is defined" >&5 21965printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 21966which seems to be undefined. Please make sure it is defined" >&2;} 21967 21968 rm -f "$ac_tmp/stdin" 21969 case $ac_file in 21970 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 21971 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 21972 esac \ 21973 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 21974 ;; 21975 :H) 21976 # 21977 # CONFIG_HEADER 21978 # 21979 if test x"$ac_file" != x-; then 21980 { 21981 printf "%s\n" "/* $configure_input */" >&1 \ 21982 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 21983 } >"$ac_tmp/config.h" \ 21984 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 21985 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 21986 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 21987printf "%s\n" "$as_me: $ac_file is unchanged" >&6;} 21988 else 21989 rm -f "$ac_file" 21990 mv "$ac_tmp/config.h" "$ac_file" \ 21991 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 21992 fi 21993 else 21994 printf "%s\n" "/* $configure_input */" >&1 \ 21995 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 21996 || as_fn_error $? "could not create -" "$LINENO" 5 21997 fi 21998# Compute "$ac_file"'s index in $config_headers. 21999_am_arg="$ac_file" 22000_am_stamp_count=1 22001for _am_header in $config_headers :; do 22002 case $_am_header in 22003 $_am_arg | $_am_arg:* ) 22004 break ;; 22005 * ) 22006 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 22007 esac 22008done 22009echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 22010$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22011 X"$_am_arg" : 'X\(//\)[^/]' \| \ 22012 X"$_am_arg" : 'X\(//\)$' \| \ 22013 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 22014printf "%s\n" X"$_am_arg" | 22015 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 22016 s//\1/ 22017 q 22018 } 22019 /^X\(\/\/\)[^/].*/{ 22020 s//\1/ 22021 q 22022 } 22023 /^X\(\/\/\)$/{ 22024 s//\1/ 22025 q 22026 } 22027 /^X\(\/\).*/{ 22028 s//\1/ 22029 q 22030 } 22031 s/.*/./; q'`/stamp-h$_am_stamp_count 22032 ;; 22033 22034 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 22035printf "%s\n" "$as_me: executing $ac_file commands" >&6;} 22036 ;; 22037 esac 22038 22039 22040 case $ac_file$ac_mode in 22041 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 22042 # Older Autoconf quotes --file arguments for eval, but not when files 22043 # are listed without --file. Let's play safe and only enable the eval 22044 # if we detect the quoting. 22045 # TODO: see whether this extra hack can be removed once we start 22046 # requiring Autoconf 2.70 or later. 22047 case $CONFIG_FILES in #( 22048 *\'*) : 22049 eval set x "$CONFIG_FILES" ;; #( 22050 *) : 22051 set x $CONFIG_FILES ;; #( 22052 *) : 22053 ;; 22054esac 22055 shift 22056 # Used to flag and report bootstrapping failures. 22057 am_rc=0 22058 for am_mf 22059 do 22060 # Strip MF so we end up with the name of the file. 22061 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'` 22062 # Check whether this is an Automake generated Makefile which includes 22063 # dependency-tracking related rules and includes. 22064 # Grep'ing the whole file directly is not great: AIX grep has a line 22065 # limit of 2048, but all sed's we know have understand at least 4000. 22066 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \ 22067 || continue 22068 am_dirpart=`$as_dirname -- "$am_mf" || 22069$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22070 X"$am_mf" : 'X\(//\)[^/]' \| \ 22071 X"$am_mf" : 'X\(//\)$' \| \ 22072 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 22073printf "%s\n" X"$am_mf" | 22074 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 22075 s//\1/ 22076 q 22077 } 22078 /^X\(\/\/\)[^/].*/{ 22079 s//\1/ 22080 q 22081 } 22082 /^X\(\/\/\)$/{ 22083 s//\1/ 22084 q 22085 } 22086 /^X\(\/\).*/{ 22087 s//\1/ 22088 q 22089 } 22090 s/.*/./; q'` 22091 am_filepart=`$as_basename -- "$am_mf" || 22092$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \ 22093 X"$am_mf" : 'X\(//\)$' \| \ 22094 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 22095printf "%s\n" X/"$am_mf" | 22096 sed '/^.*\/\([^/][^/]*\)\/*$/{ 22097 s//\1/ 22098 q 22099 } 22100 /^X\/\(\/\/\)$/{ 22101 s//\1/ 22102 q 22103 } 22104 /^X\/\(\/\).*/{ 22105 s//\1/ 22106 q 22107 } 22108 s/.*/./; q'` 22109 { echo "$as_me:$LINENO: cd "$am_dirpart" \ 22110 && sed -e '/# am--include-marker/d' "$am_filepart" \ 22111 | $MAKE -f - am--depfiles" >&5 22112 (cd "$am_dirpart" \ 22113 && sed -e '/# am--include-marker/d' "$am_filepart" \ 22114 | $MAKE -f - am--depfiles) >&5 2>&5 22115 ac_status=$? 22116 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22117 (exit $ac_status); } || am_rc=$? 22118 done 22119 if test $am_rc -ne 0; then 22120 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 22121printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 22122as_fn_error $? "Something went wrong bootstrapping makefile fragments 22123 for automatic dependency tracking. If GNU make was not used, consider 22124 re-running the configure script with MAKE=\"gmake\" (or whatever is 22125 necessary). You can also try re-running configure with the 22126 '--disable-dependency-tracking' option to at least be able to build 22127 the package (albeit without support for automatic dependency tracking). 22128See \`config.log' for more details" "$LINENO" 5; } 22129 fi 22130 { am_dirpart=; unset am_dirpart;} 22131 { am_filepart=; unset am_filepart;} 22132 { am_mf=; unset am_mf;} 22133 { am_rc=; unset am_rc;} 22134 rm -f conftest-deps.mk 22135} 22136 ;; 22137 "libtool":C) 22138 22139 # See if we are running on zsh, and set the options that allow our 22140 # commands through without removal of \ escapes. 22141 if test -n "${ZSH_VERSION+set}"; then 22142 setopt NO_GLOB_SUBST 22143 fi 22144 22145 cfgfile=${ofile}T 22146 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 22147 $RM "$cfgfile" 22148 22149 cat <<_LT_EOF >> "$cfgfile" 22150#! $SHELL 22151# Generated automatically by $as_me ($PACKAGE) $VERSION 22152# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 22153# NOTE: Changes made to this file will be lost: look at ltmain.sh. 22154 22155# Provide generalized library-building support services. 22156# Written by Gordon Matzigkeit, 1996 22157 22158# Copyright (C) 2014 Free Software Foundation, Inc. 22159# This is free software; see the source for copying conditions. There is NO 22160# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 22161 22162# GNU Libtool is free software; you can redistribute it and/or modify 22163# it under the terms of the GNU General Public License as published by 22164# the Free Software Foundation; either version 2 of of the License, or 22165# (at your option) any later version. 22166# 22167# As a special exception to the GNU General Public License, if you 22168# distribute this file as part of a program or library that is built 22169# using GNU Libtool, you may include this file under the same 22170# distribution terms that you use for the rest of that program. 22171# 22172# GNU Libtool is distributed in the hope that it will be useful, but 22173# WITHOUT ANY WARRANTY; without even the implied warranty of 22174# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 22175# GNU General Public License for more details. 22176# 22177# You should have received a copy of the GNU General Public License 22178# along with this program. If not, see <http://www.gnu.org/licenses/>. 22179 22180 22181# The names of the tagged configurations supported by this script. 22182available_tags='' 22183 22184# Configured defaults for sys_lib_dlsearch_path munging. 22185: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} 22186 22187# ### BEGIN LIBTOOL CONFIG 22188 22189# Which release of libtool.m4 was used? 22190macro_version=$macro_version 22191macro_revision=$macro_revision 22192 22193# Whether or not to build shared libraries. 22194build_libtool_libs=$enable_shared 22195 22196# Whether or not to build static libraries. 22197build_old_libs=$enable_static 22198 22199# What type of objects to build. 22200pic_mode=$pic_mode 22201 22202# Whether or not to optimize for fast installation. 22203fast_install=$enable_fast_install 22204 22205# Shared archive member basename,for filename based shared library versioning on AIX. 22206shared_archive_member_spec=$shared_archive_member_spec 22207 22208# Shell to use when invoking shell scripts. 22209SHELL=$lt_SHELL 22210 22211# An echo program that protects backslashes. 22212ECHO=$lt_ECHO 22213 22214# The PATH separator for the build system. 22215PATH_SEPARATOR=$lt_PATH_SEPARATOR 22216 22217# The host system. 22218host_alias=$host_alias 22219host=$host 22220host_os=$host_os 22221 22222# The build system. 22223build_alias=$build_alias 22224build=$build 22225build_os=$build_os 22226 22227# A sed program that does not truncate output. 22228SED=$lt_SED 22229 22230# Sed that helps us avoid accidentally triggering echo(1) options like -n. 22231Xsed="\$SED -e 1s/^X//" 22232 22233# A grep program that handles long lines. 22234GREP=$lt_GREP 22235 22236# An ERE matcher. 22237EGREP=$lt_EGREP 22238 22239# A literal string matcher. 22240FGREP=$lt_FGREP 22241 22242# A BSD- or MS-compatible name lister. 22243NM=$lt_NM 22244 22245# Whether we need soft or hard links. 22246LN_S=$lt_LN_S 22247 22248# What is the maximum length of a command? 22249max_cmd_len=$max_cmd_len 22250 22251# Object file suffix (normally "o"). 22252objext=$ac_objext 22253 22254# Executable file suffix (normally ""). 22255exeext=$exeext 22256 22257# whether the shell understands "unset". 22258lt_unset=$lt_unset 22259 22260# turn spaces into newlines. 22261SP2NL=$lt_lt_SP2NL 22262 22263# turn newlines into spaces. 22264NL2SP=$lt_lt_NL2SP 22265 22266# convert \$build file names to \$host format. 22267to_host_file_cmd=$lt_cv_to_host_file_cmd 22268 22269# convert \$build files to toolchain format. 22270to_tool_file_cmd=$lt_cv_to_tool_file_cmd 22271 22272# A file(cmd) program that detects file types. 22273FILECMD=$lt_FILECMD 22274 22275# An object symbol dumper. 22276OBJDUMP=$lt_OBJDUMP 22277 22278# Method to check whether dependent libraries are shared objects. 22279deplibs_check_method=$lt_deplibs_check_method 22280 22281# Command to use when deplibs_check_method = "file_magic". 22282file_magic_cmd=$lt_file_magic_cmd 22283 22284# How to find potential files when deplibs_check_method = "file_magic". 22285file_magic_glob=$lt_file_magic_glob 22286 22287# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 22288want_nocaseglob=$lt_want_nocaseglob 22289 22290# DLL creation program. 22291DLLTOOL=$lt_DLLTOOL 22292 22293# Command to associate shared and link libraries. 22294sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 22295 22296# The archiver. 22297AR=$lt_AR 22298 22299# Flags to create an archive (by configure). 22300lt_ar_flags=$lt_ar_flags 22301 22302# Flags to create an archive. 22303AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"} 22304 22305# How to feed a file listing to the archiver. 22306archiver_list_spec=$lt_archiver_list_spec 22307 22308# A symbol stripping program. 22309STRIP=$lt_STRIP 22310 22311# Commands used to install an old-style archive. 22312RANLIB=$lt_RANLIB 22313old_postinstall_cmds=$lt_old_postinstall_cmds 22314old_postuninstall_cmds=$lt_old_postuninstall_cmds 22315 22316# Whether to use a lock for old archive extraction. 22317lock_old_archive_extraction=$lock_old_archive_extraction 22318 22319# A C compiler. 22320LTCC=$lt_CC 22321 22322# LTCC compiler flags. 22323LTCFLAGS=$lt_CFLAGS 22324 22325# Take the output of nm and produce a listing of raw symbols and C names. 22326global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 22327 22328# Transform the output of nm in a proper C declaration. 22329global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 22330 22331# Transform the output of nm into a list of symbols to manually relocate. 22332global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import 22333 22334# Transform the output of nm in a C name address pair. 22335global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 22336 22337# Transform the output of nm in a C name address pair when lib prefix is needed. 22338global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 22339 22340# The name lister interface. 22341nm_interface=$lt_lt_cv_nm_interface 22342 22343# Specify filename containing input files for \$NM. 22344nm_file_list_spec=$lt_nm_file_list_spec 22345 22346# The root where to search for dependent libraries,and where our libraries should be installed. 22347lt_sysroot=$lt_sysroot 22348 22349# Command to truncate a binary pipe. 22350lt_truncate_bin=$lt_lt_cv_truncate_bin 22351 22352# The name of the directory that contains temporary libtool files. 22353objdir=$objdir 22354 22355# Used to examine libraries when file_magic_cmd begins with "file". 22356MAGIC_CMD=$MAGIC_CMD 22357 22358# Must we lock files when doing compilation? 22359need_locks=$lt_need_locks 22360 22361# Manifest tool. 22362MANIFEST_TOOL=$lt_MANIFEST_TOOL 22363 22364# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 22365DSYMUTIL=$lt_DSYMUTIL 22366 22367# Tool to change global to local symbols on Mac OS X. 22368NMEDIT=$lt_NMEDIT 22369 22370# Tool to manipulate fat objects and archives on Mac OS X. 22371LIPO=$lt_LIPO 22372 22373# ldd/readelf like tool for Mach-O binaries on Mac OS X. 22374OTOOL=$lt_OTOOL 22375 22376# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 22377OTOOL64=$lt_OTOOL64 22378 22379# Old archive suffix (normally "a"). 22380libext=$libext 22381 22382# Shared library suffix (normally ".so"). 22383shrext_cmds=$lt_shrext_cmds 22384 22385# The commands to extract the exported symbol list from a shared archive. 22386extract_expsyms_cmds=$lt_extract_expsyms_cmds 22387 22388# Variables whose values should be saved in libtool wrapper scripts and 22389# restored at link time. 22390variables_saved_for_relink=$lt_variables_saved_for_relink 22391 22392# Do we need the "lib" prefix for modules? 22393need_lib_prefix=$need_lib_prefix 22394 22395# Do we need a version for libraries? 22396need_version=$need_version 22397 22398# Library versioning type. 22399version_type=$version_type 22400 22401# Shared library runtime path variable. 22402runpath_var=$runpath_var 22403 22404# Shared library path variable. 22405shlibpath_var=$shlibpath_var 22406 22407# Is shlibpath searched before the hard-coded library search path? 22408shlibpath_overrides_runpath=$shlibpath_overrides_runpath 22409 22410# Format of library name prefix. 22411libname_spec=$lt_libname_spec 22412 22413# List of archive names. First name is the real one, the rest are links. 22414# The last name is the one that the linker finds with -lNAME 22415library_names_spec=$lt_library_names_spec 22416 22417# The coded name of the library, if different from the real name. 22418soname_spec=$lt_soname_spec 22419 22420# Permission mode override for installation of shared libraries. 22421install_override_mode=$lt_install_override_mode 22422 22423# Command to use after installation of a shared archive. 22424postinstall_cmds=$lt_postinstall_cmds 22425 22426# Command to use after uninstallation of a shared archive. 22427postuninstall_cmds=$lt_postuninstall_cmds 22428 22429# Commands used to finish a libtool library installation in a directory. 22430finish_cmds=$lt_finish_cmds 22431 22432# As "finish_cmds", except a single script fragment to be evaled but 22433# not shown. 22434finish_eval=$lt_finish_eval 22435 22436# Whether we should hardcode library paths into libraries. 22437hardcode_into_libs=$hardcode_into_libs 22438 22439# Compile-time system search path for libraries. 22440sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 22441 22442# Detected run-time system search path for libraries. 22443sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path 22444 22445# Explicit LT_SYS_LIBRARY_PATH set during ./configure time. 22446configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path 22447 22448# Whether dlopen is supported. 22449dlopen_support=$enable_dlopen 22450 22451# Whether dlopen of programs is supported. 22452dlopen_self=$enable_dlopen_self 22453 22454# Whether dlopen of statically linked programs is supported. 22455dlopen_self_static=$enable_dlopen_self_static 22456 22457# Commands to strip libraries. 22458old_striplib=$lt_old_striplib 22459striplib=$lt_striplib 22460 22461 22462# The linker used to build libraries. 22463LD=$lt_LD 22464 22465# How to create reloadable object files. 22466reload_flag=$lt_reload_flag 22467reload_cmds=$lt_reload_cmds 22468 22469# Commands used to build an old-style archive. 22470old_archive_cmds=$lt_old_archive_cmds 22471 22472# A language specific compiler. 22473CC=$lt_compiler 22474 22475# Is the compiler the GNU compiler? 22476with_gcc=$GCC 22477 22478# Compiler flag to turn off builtin functions. 22479no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 22480 22481# Additional compiler flags for building library objects. 22482pic_flag=$lt_lt_prog_compiler_pic 22483 22484# How to pass a linker flag through the compiler. 22485wl=$lt_lt_prog_compiler_wl 22486 22487# Compiler flag to prevent dynamic linking. 22488link_static_flag=$lt_lt_prog_compiler_static 22489 22490# Does compiler simultaneously support -c and -o options? 22491compiler_c_o=$lt_lt_cv_prog_compiler_c_o 22492 22493# Whether or not to add -lc for building shared libraries. 22494build_libtool_need_lc=$archive_cmds_need_lc 22495 22496# Whether or not to disallow shared libs when runtime libs are static. 22497allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 22498 22499# Compiler flag to allow reflexive dlopens. 22500export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 22501 22502# Compiler flag to generate shared objects directly from archives. 22503whole_archive_flag_spec=$lt_whole_archive_flag_spec 22504 22505# Whether the compiler copes with passing no objects directly. 22506compiler_needs_object=$lt_compiler_needs_object 22507 22508# Create an old-style archive from a shared archive. 22509old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 22510 22511# Create a temporary old-style archive to link instead of a shared archive. 22512old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 22513 22514# Commands used to build a shared archive. 22515archive_cmds=$lt_archive_cmds 22516archive_expsym_cmds=$lt_archive_expsym_cmds 22517 22518# Commands used to build a loadable module if different from building 22519# a shared archive. 22520module_cmds=$lt_module_cmds 22521module_expsym_cmds=$lt_module_expsym_cmds 22522 22523# Whether we are building with GNU ld or not. 22524with_gnu_ld=$lt_with_gnu_ld 22525 22526# Flag that allows shared libraries with undefined symbols to be built. 22527allow_undefined_flag=$lt_allow_undefined_flag 22528 22529# Flag that enforces no undefined symbols. 22530no_undefined_flag=$lt_no_undefined_flag 22531 22532# Flag to hardcode \$libdir into a binary during linking. 22533# This must work even if \$libdir does not exist 22534hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 22535 22536# Whether we need a single "-rpath" flag with a separated argument. 22537hardcode_libdir_separator=$lt_hardcode_libdir_separator 22538 22539# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 22540# DIR into the resulting binary. 22541hardcode_direct=$hardcode_direct 22542 22543# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 22544# DIR into the resulting binary and the resulting library dependency is 22545# "absolute",i.e impossible to change by setting \$shlibpath_var if the 22546# library is relocated. 22547hardcode_direct_absolute=$hardcode_direct_absolute 22548 22549# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 22550# into the resulting binary. 22551hardcode_minus_L=$hardcode_minus_L 22552 22553# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 22554# into the resulting binary. 22555hardcode_shlibpath_var=$hardcode_shlibpath_var 22556 22557# Set to "yes" if building a shared library automatically hardcodes DIR 22558# into the library and all subsequent libraries and executables linked 22559# against it. 22560hardcode_automatic=$hardcode_automatic 22561 22562# Set to yes if linker adds runtime paths of dependent libraries 22563# to runtime path list. 22564inherit_rpath=$inherit_rpath 22565 22566# Whether libtool must link a program against all its dependency libraries. 22567link_all_deplibs=$link_all_deplibs 22568 22569# Set to "yes" if exported symbols are required. 22570always_export_symbols=$always_export_symbols 22571 22572# The commands to list exported symbols. 22573export_symbols_cmds=$lt_export_symbols_cmds 22574 22575# Symbols that should not be listed in the preloaded symbols. 22576exclude_expsyms=$lt_exclude_expsyms 22577 22578# Symbols that must always be exported. 22579include_expsyms=$lt_include_expsyms 22580 22581# Commands necessary for linking programs (against libraries) with templates. 22582prelink_cmds=$lt_prelink_cmds 22583 22584# Commands necessary for finishing linking programs. 22585postlink_cmds=$lt_postlink_cmds 22586 22587# Specify filename containing input files. 22588file_list_spec=$lt_file_list_spec 22589 22590# How to hardcode a shared library path into an executable. 22591hardcode_action=$hardcode_action 22592 22593# ### END LIBTOOL CONFIG 22594 22595_LT_EOF 22596 22597 cat <<'_LT_EOF' >> "$cfgfile" 22598 22599# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE 22600 22601# func_munge_path_list VARIABLE PATH 22602# ----------------------------------- 22603# VARIABLE is name of variable containing _space_ separated list of 22604# directories to be munged by the contents of PATH, which is string 22605# having a format: 22606# "DIR[:DIR]:" 22607# string "DIR[ DIR]" will be prepended to VARIABLE 22608# ":DIR[:DIR]" 22609# string "DIR[ DIR]" will be appended to VARIABLE 22610# "DIRP[:DIRP]::[DIRA:]DIRA" 22611# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 22612# "DIRA[ DIRA]" will be appended to VARIABLE 22613# "DIR[:DIR]" 22614# VARIABLE will be replaced by "DIR[ DIR]" 22615func_munge_path_list () 22616{ 22617 case x$2 in 22618 x) 22619 ;; 22620 *:) 22621 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 22622 ;; 22623 x:*) 22624 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 22625 ;; 22626 *::*) 22627 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 22628 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 22629 ;; 22630 *) 22631 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 22632 ;; 22633 esac 22634} 22635 22636 22637# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 22638func_cc_basename () 22639{ 22640 for cc_temp in $*""; do 22641 case $cc_temp in 22642 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 22643 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 22644 \-*) ;; 22645 *) break;; 22646 esac 22647 done 22648 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 22649} 22650 22651 22652# ### END FUNCTIONS SHARED WITH CONFIGURE 22653 22654_LT_EOF 22655 22656 case $host_os in 22657 aix3*) 22658 cat <<\_LT_EOF >> "$cfgfile" 22659# AIX sometimes has problems with the GCC collect2 program. For some 22660# reason, if we set the COLLECT_NAMES environment variable, the problems 22661# vanish in a puff of smoke. 22662if test set != "${COLLECT_NAMES+set}"; then 22663 COLLECT_NAMES= 22664 export COLLECT_NAMES 22665fi 22666_LT_EOF 22667 ;; 22668 esac 22669 22670 22671 22672ltmain=$ac_aux_dir/ltmain.sh 22673 22674 22675 # We use sed instead of cat because bash on DJGPP gets confused if 22676 # if finds mixed CR/LF and LF-only lines. Since sed operates in 22677 # text mode, it properly converts lines to CR/LF. This bash problem 22678 # is reportedly fixed, but why not run on old versions too? 22679 $SED '$q' "$ltmain" >> "$cfgfile" \ 22680 || (rm -f "$cfgfile"; exit 1) 22681 22682 mv -f "$cfgfile" "$ofile" || 22683 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 22684 chmod +x "$ofile" 22685 22686 ;; 22687 22688 esac 22689done # for ac_tag 22690 22691 22692as_fn_exit 0 22693_ACEOF 22694ac_clean_files=$ac_clean_files_save 22695 22696test $ac_write_fail = 0 || 22697 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 22698 22699 22700# configure is writing to config.log, and then calls config.status. 22701# config.status does its own redirection, appending to config.log. 22702# Unfortunately, on DOS this fails, as config.log is still kept open 22703# by configure, so config.status won't be able to write to it; its 22704# output is simply discarded. So we exec the FD to /dev/null, 22705# effectively closing config.log, so it can be properly (re)opened and 22706# appended to by config.status. When coming back to configure, we 22707# need to make the FD available again. 22708if test "$no_create" != yes; then 22709 ac_cs_success=: 22710 ac_config_status_args= 22711 test "$silent" = yes && 22712 ac_config_status_args="$ac_config_status_args --quiet" 22713 exec 5>/dev/null 22714 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 22715 exec 5>>config.log 22716 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 22717 # would make configure fail if this is the last instruction. 22718 $ac_cs_success || as_fn_exit 1 22719fi 22720if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 22721 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 22722printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 22723fi 22724 22725 22726