configure revision 3bf3b463
1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.72 for libICE 1.1.2. 4# 5# Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libice/-/issues>. 6# 7# 8# Copyright (C) 1992-1996, 1998-2017, 2020-2023 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 20if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 21then : 22 emulate sh 23 NULLCMD=: 24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 25 # is contrary to our usage. Disable this feature. 26 alias -g '${1+"$@"}'='"$@"' 27 setopt NO_GLOB_SUBST 28else case e in #( 29 e) case `(set -o) 2>/dev/null` in #( 30 *posix*) : 31 set -o posix ;; #( 32 *) : 33 ;; 34esac ;; 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="if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 144then : 145 emulate sh 146 NULLCMD=: 147 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 148 # is contrary to our usage. Disable this feature. 149 alias -g '\${1+\"\$@\"}'='\"\$@\"' 150 setopt NO_GLOB_SUBST 151else case e in #( 152 e) case \`(set -o) 2>/dev/null\` in #( 153 *posix*) : 154 set -o posix ;; #( 155 *) : 156 ;; 157esac ;; 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 case e in #( 176 e) exitcode=1; echo positional parameters were not saved. ;; 177esac 178fi 179test x\$exitcode = x0 || exit 1 180blah=\$(echo \$(echo blah)) 181test x\"\$blah\" = xblah || exit 1 182test -x / || exit 1" 183 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 184 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 185 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 186 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 187 188 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( 189 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 190 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 191 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 192 PATH=/empty FPATH=/empty; export PATH FPATH 193 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ 194 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1 195test \$(( 1 + 1 )) = 2 || exit 1" 196 if (eval "$as_required") 2>/dev/null 197then : 198 as_have_required=yes 199else case e in #( 200 e) as_have_required=no ;; 201esac 202fi 203 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null 204then : 205 206else case e in #( 207 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 208as_found=false 209for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 210do 211 IFS=$as_save_IFS 212 case $as_dir in #((( 213 '') as_dir=./ ;; 214 */) ;; 215 *) as_dir=$as_dir/ ;; 216 esac 217 as_found=: 218 case $as_dir in #( 219 /*) 220 for as_base in sh bash ksh sh5; do 221 # Try only shells that exist, to save several forks. 222 as_shell=$as_dir$as_base 223 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 224 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null 225then : 226 CONFIG_SHELL=$as_shell as_have_required=yes 227 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null 228then : 229 break 2 230fi 231fi 232 done;; 233 esac 234 as_found=false 235done 236IFS=$as_save_IFS 237if $as_found 238then : 239 240else case e in #( 241 e) if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 242 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null 243then : 244 CONFIG_SHELL=$SHELL as_have_required=yes 245fi ;; 246esac 247fi 248 249 250 if test "x$CONFIG_SHELL" != x 251then : 252 export CONFIG_SHELL 253 # We cannot yet assume a decent shell, so we have to provide a 254# neutralization value for shells without unset; and this also 255# works around shells that cannot unset nonexistent variables. 256# Preserve -v and -x to the replacement shell. 257BASH_ENV=/dev/null 258ENV=/dev/null 259(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 260case $- in # (((( 261 *v*x* | *x*v* ) as_opts=-vx ;; 262 *v* ) as_opts=-v ;; 263 *x* ) as_opts=-x ;; 264 * ) as_opts= ;; 265esac 266exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 267# Admittedly, this is quite paranoid, since all the known shells bail 268# out after a failed 'exec'. 269printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2 270exit 255 271fi 272 273 if test x$as_have_required = xno 274then : 275 printf "%s\n" "$0: This script requires a shell more modern than all" 276 printf "%s\n" "$0: the shells that I found on your system." 277 if test ${ZSH_VERSION+y} ; then 278 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should" 279 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later." 280 else 281 printf "%s\n" "$0: Please tell bug-autoconf@gnu.org and 282$0: https://gitlab.freedesktop.org/xorg/lib/libice/-/issues 283$0: about your system, including any error possibly output 284$0: before this message. Then install a modern shell, or 285$0: manually run the script under such a shell if you do 286$0: have one." 287 fi 288 exit 1 289fi ;; 290esac 291fi 292fi 293SHELL=${CONFIG_SHELL-/bin/sh} 294export SHELL 295# Unset more variables known to interfere with behavior of common tools. 296CLICOLOR_FORCE= GREP_OPTIONS= 297unset CLICOLOR_FORCE GREP_OPTIONS 298 299## --------------------- ## 300## M4sh Shell Functions. ## 301## --------------------- ## 302# as_fn_unset VAR 303# --------------- 304# Portably unset VAR. 305as_fn_unset () 306{ 307 { eval $1=; unset $1;} 308} 309as_unset=as_fn_unset 310 311 312# as_fn_set_status STATUS 313# ----------------------- 314# Set $? to STATUS, without forking. 315as_fn_set_status () 316{ 317 return $1 318} # as_fn_set_status 319 320# as_fn_exit STATUS 321# ----------------- 322# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 323as_fn_exit () 324{ 325 set +e 326 as_fn_set_status $1 327 exit $1 328} # as_fn_exit 329 330# as_fn_mkdir_p 331# ------------- 332# Create "$as_dir" as a directory, including parents if necessary. 333as_fn_mkdir_p () 334{ 335 336 case $as_dir in #( 337 -*) as_dir=./$as_dir;; 338 esac 339 test -d "$as_dir" || eval $as_mkdir_p || { 340 as_dirs= 341 while :; do 342 case $as_dir in #( 343 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 344 *) as_qdir=$as_dir;; 345 esac 346 as_dirs="'$as_qdir' $as_dirs" 347 as_dir=`$as_dirname -- "$as_dir" || 348$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 349 X"$as_dir" : 'X\(//\)[^/]' \| \ 350 X"$as_dir" : 'X\(//\)$' \| \ 351 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 352printf "%s\n" X"$as_dir" | 353 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 354 s//\1/ 355 q 356 } 357 /^X\(\/\/\)[^/].*/{ 358 s//\1/ 359 q 360 } 361 /^X\(\/\/\)$/{ 362 s//\1/ 363 q 364 } 365 /^X\(\/\).*/{ 366 s//\1/ 367 q 368 } 369 s/.*/./; q'` 370 test -d "$as_dir" && break 371 done 372 test -z "$as_dirs" || eval "mkdir $as_dirs" 373 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 374 375 376} # as_fn_mkdir_p 377 378# as_fn_executable_p FILE 379# ----------------------- 380# Test if FILE is an executable regular file. 381as_fn_executable_p () 382{ 383 test -f "$1" && test -x "$1" 384} # as_fn_executable_p 385# as_fn_append VAR VALUE 386# ---------------------- 387# Append the text in VALUE to the end of the definition contained in VAR. Take 388# advantage of any shell optimizations that allow amortized linear growth over 389# repeated appends, instead of the typical quadratic growth present in naive 390# implementations. 391if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null 392then : 393 eval 'as_fn_append () 394 { 395 eval $1+=\$2 396 }' 397else case e in #( 398 e) as_fn_append () 399 { 400 eval $1=\$$1\$2 401 } ;; 402esac 403fi # as_fn_append 404 405# as_fn_arith ARG... 406# ------------------ 407# Perform arithmetic evaluation on the ARGs, and store the result in the 408# global $as_val. Take advantage of shells that can avoid forks. The arguments 409# must be portable across $(()) and expr. 410if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null 411then : 412 eval 'as_fn_arith () 413 { 414 as_val=$(( $* )) 415 }' 416else case e in #( 417 e) as_fn_arith () 418 { 419 as_val=`expr "$@" || test $? -eq 1` 420 } ;; 421esac 422fi # as_fn_arith 423 424 425# as_fn_error STATUS ERROR [LINENO LOG_FD] 426# ---------------------------------------- 427# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 428# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 429# script with STATUS, using 1 if that was 0. 430as_fn_error () 431{ 432 as_status=$1; test $as_status -eq 0 && as_status=1 433 if test "$4"; then 434 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 435 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 436 fi 437 printf "%s\n" "$as_me: error: $2" >&2 438 as_fn_exit $as_status 439} # as_fn_error 440 441if expr a : '\(a\)' >/dev/null 2>&1 && 442 test "X`expr 00001 : '.*\(...\)'`" = X001; then 443 as_expr=expr 444else 445 as_expr=false 446fi 447 448if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 449 as_basename=basename 450else 451 as_basename=false 452fi 453 454if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 455 as_dirname=dirname 456else 457 as_dirname=false 458fi 459 460as_me=`$as_basename -- "$0" || 461$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 462 X"$0" : 'X\(//\)$' \| \ 463 X"$0" : 'X\(/\)' \| . 2>/dev/null || 464printf "%s\n" X/"$0" | 465 sed '/^.*\/\([^/][^/]*\)\/*$/{ 466 s//\1/ 467 q 468 } 469 /^X\/\(\/\/\)$/{ 470 s//\1/ 471 q 472 } 473 /^X\/\(\/\).*/{ 474 s//\1/ 475 q 476 } 477 s/.*/./; q'` 478 479# Avoid depending upon Character Ranges. 480as_cr_letters='abcdefghijklmnopqrstuvwxyz' 481as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 482as_cr_Letters=$as_cr_letters$as_cr_LETTERS 483as_cr_digits='0123456789' 484as_cr_alnum=$as_cr_Letters$as_cr_digits 485 486 487 as_lineno_1=$LINENO as_lineno_1a=$LINENO 488 as_lineno_2=$LINENO as_lineno_2a=$LINENO 489 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 490 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 491 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 492 sed -n ' 493 p 494 /[$]LINENO/= 495 ' <$as_myself | 496 sed ' 497 t clear 498 :clear 499 s/[$]LINENO.*/&-/ 500 t lineno 501 b 502 :lineno 503 N 504 :loop 505 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 506 t loop 507 s/-\n.*// 508 ' >$as_me.lineno && 509 chmod +x "$as_me.lineno" || 510 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 511 512 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 513 # already done that, so ensure we don't try to do so again and fall 514 # in an infinite loop. This has already happened in practice. 515 _as_can_reexec=no; export _as_can_reexec 516 # Don't try to exec as it changes $[0], causing all sort of problems 517 # (the dirname of $[0] is not the place where we might find the 518 # original and so on. Autoconf is especially sensitive to this). 519 . "./$as_me.lineno" 520 # Exit status is that of the last command. 521 exit 522} 523 524 525# Determine whether it's possible to make 'echo' print without a newline. 526# These variables are no longer used directly by Autoconf, but are AC_SUBSTed 527# for compatibility with existing Makefiles. 528ECHO_C= ECHO_N= ECHO_T= 529case `echo -n x` in #((((( 530-n*) 531 case `echo 'xy\c'` in 532 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 533 xy) ECHO_C='\c';; 534 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 535 ECHO_T=' ';; 536 esac;; 537*) 538 ECHO_N='-n';; 539esac 540 541# For backward compatibility with old third-party macros, we provide 542# the shell variables $as_echo and $as_echo_n. New code should use 543# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. 544as_echo='printf %s\n' 545as_echo_n='printf %s' 546 547rm -f conf$$ conf$$.exe conf$$.file 548if test -d conf$$.dir; then 549 rm -f conf$$.dir/conf$$.file 550else 551 rm -f conf$$.dir 552 mkdir conf$$.dir 2>/dev/null 553fi 554if (echo >conf$$.file) 2>/dev/null; then 555 if ln -s conf$$.file conf$$ 2>/dev/null; then 556 as_ln_s='ln -s' 557 # ... but there are two gotchas: 558 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail. 559 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable. 560 # In both cases, we have to default to 'cp -pR'. 561 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 562 as_ln_s='cp -pR' 563 elif ln conf$$.file conf$$ 2>/dev/null; then 564 as_ln_s=ln 565 else 566 as_ln_s='cp -pR' 567 fi 568else 569 as_ln_s='cp -pR' 570fi 571rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 572rmdir conf$$.dir 2>/dev/null 573 574if mkdir -p . 2>/dev/null; then 575 as_mkdir_p='mkdir -p "$as_dir"' 576else 577 test -d ./-p && rmdir ./-p 578 as_mkdir_p=false 579fi 580 581as_test_x='test -x' 582as_executable_p=as_fn_executable_p 583 584# Sed expression to map a string onto a valid CPP name. 585as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" 586as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated 587 588# Sed expression to map a string onto a valid variable name. 589as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g" 590as_tr_sh="eval sed '$as_sed_sh'" # deprecated 591 592SHELL=${CONFIG_SHELL-/bin/sh} 593 594as_awk_strverscmp=' 595 # Use only awk features that work with 7th edition Unix awk (1978). 596 # My, what an old awk you have, Mr. Solaris! 597 END { 598 while (length(v1) && length(v2)) { 599 # Set d1 to be the next thing to compare from v1, and likewise for d2. 600 # Normally this is a single character, but if v1 and v2 contain digits, 601 # compare them as integers and fractions as strverscmp does. 602 if (v1 ~ /^[0-9]/ && v2 ~ /^[0-9]/) { 603 # Split v1 and v2 into their leading digit string components d1 and d2, 604 # and advance v1 and v2 past the leading digit strings. 605 for (len1 = 1; substr(v1, len1 + 1) ~ /^[0-9]/; len1++) continue 606 for (len2 = 1; substr(v2, len2 + 1) ~ /^[0-9]/; len2++) continue 607 d1 = substr(v1, 1, len1); v1 = substr(v1, len1 + 1) 608 d2 = substr(v2, 1, len2); v2 = substr(v2, len2 + 1) 609 if (d1 ~ /^0/) { 610 if (d2 ~ /^0/) { 611 # Compare two fractions. 612 while (d1 ~ /^0/ && d2 ~ /^0/) { 613 d1 = substr(d1, 2); len1-- 614 d2 = substr(d2, 2); len2-- 615 } 616 if (len1 != len2 && ! (len1 && len2 && substr(d1, 1, 1) == substr(d2, 1, 1))) { 617 # The two components differ in length, and the common prefix 618 # contains only leading zeros. Consider the longer to be less. 619 d1 = -len1 620 d2 = -len2 621 } else { 622 # Otherwise, compare as strings. 623 d1 = "x" d1 624 d2 = "x" d2 625 } 626 } else { 627 # A fraction is less than an integer. 628 exit 1 629 } 630 } else { 631 if (d2 ~ /^0/) { 632 # An integer is greater than a fraction. 633 exit 2 634 } else { 635 # Compare two integers. 636 d1 += 0 637 d2 += 0 638 } 639 } 640 } else { 641 # The normal case, without worrying about digits. 642 d1 = substr(v1, 1, 1); v1 = substr(v1, 2) 643 d2 = substr(v2, 1, 1); v2 = substr(v2, 2) 644 } 645 if (d1 < d2) exit 1 646 if (d1 > d2) exit 2 647 } 648 # Beware Solaris /usr/xgp4/bin/awk (at least through Solaris 10), 649 # which mishandles some comparisons of empty strings to integers. 650 if (length(v2)) exit 1 651 if (length(v1)) exit 2 652 } 653' 654 655test -n "$DJDIR" || exec 7<&0 </dev/null 656exec 6>&1 657 658# Name of the host. 659# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 660# so uname gets run too. 661ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 662 663# 664# Initializations. 665# 666ac_default_prefix=/usr/local 667ac_clean_files= 668ac_config_libobj_dir=. 669LIBOBJS= 670cross_compiling=no 671subdirs= 672MFLAGS= 673MAKEFLAGS= 674 675# Identity of this package. 676PACKAGE_NAME='libICE' 677PACKAGE_TARNAME='libICE' 678PACKAGE_VERSION='1.1.2' 679PACKAGE_STRING='libICE 1.1.2' 680PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/lib/libice/-/issues' 681PACKAGE_URL='' 682 683ac_unique_file="Makefile.am" 684# Factoring default headers for most tests. 685ac_includes_default="\ 686#include <stddef.h> 687#ifdef HAVE_STDIO_H 688# include <stdio.h> 689#endif 690#ifdef HAVE_STDLIB_H 691# include <stdlib.h> 692#endif 693#ifdef HAVE_STRING_H 694# include <string.h> 695#endif 696#ifdef HAVE_INTTYPES_H 697# include <inttypes.h> 698#endif 699#ifdef HAVE_STDINT_H 700# include <stdint.h> 701#endif 702#ifdef HAVE_STRINGS_H 703# include <strings.h> 704#endif 705#ifdef HAVE_SYS_TYPES_H 706# include <sys/types.h> 707#endif 708#ifdef HAVE_SYS_STAT_H 709# include <sys/stat.h> 710#endif 711#ifdef HAVE_UNISTD_H 712# include <unistd.h> 713#endif" 714 715ac_header_c_list= 716enable_year2038=no 717ac_subst_vars='am__EXEEXT_FALSE 718am__EXEEXT_TRUE 719LTLIBOBJS 720LIBOBJS 721MAKE_LINT_LIB_FALSE 722MAKE_LINT_LIB_TRUE 723LINTLIB 724LINT_FALSE 725LINT_TRUE 726LINT_FLAGS 727LINT 728LIBBSD_LIBS 729LIBBSD_CFLAGS 730ICE_LIBS 731ICE_CFLAGS 732HAVE_STYLESHEETS_FALSE 733HAVE_STYLESHEETS_TRUE 734XSL_STYLESHEET 735STYLESHEET_SRCDIR 736XORG_SGML_PATH 737HAVE_XSLTPROC_FALSE 738HAVE_XSLTPROC_TRUE 739XSLTPROC 740HAVE_FOP_FALSE 741HAVE_FOP_TRUE 742FOP 743HAVE_XMLTO_FALSE 744HAVE_XMLTO_TRUE 745HAVE_XMLTO_TEXT_FALSE 746HAVE_XMLTO_TEXT_TRUE 747XMLTO 748ENABLE_SPECS_FALSE 749ENABLE_SPECS_TRUE 750ENABLE_DOCS_FALSE 751ENABLE_DOCS_TRUE 752MAN_SUBSTS 753XORG_MAN_PAGE 754ADMIN_MAN_DIR 755DRIVER_MAN_DIR 756MISC_MAN_DIR 757FILE_MAN_DIR 758LIB_MAN_DIR 759APP_MAN_DIR 760ADMIN_MAN_SUFFIX 761DRIVER_MAN_SUFFIX 762MISC_MAN_SUFFIX 763FILE_MAN_SUFFIX 764LIB_MAN_SUFFIX 765APP_MAN_SUFFIX 766INSTALL_CMD 767PKG_CONFIG_LIBDIR 768PKG_CONFIG_PATH 769PKG_CONFIG 770CHANGELOG_CMD 771STRICT_CFLAGS 772CWARNFLAGS 773BASE_CFLAGS 774LT_SYS_LIBRARY_PATH 775OTOOL64 776OTOOL 777LIPO 778NMEDIT 779DSYMUTIL 780MANIFEST_TOOL 781RANLIB 782ac_ct_AR 783AR 784DLLTOOL 785OBJDUMP 786FILECMD 787LN_S 788NM 789ac_ct_DUMPBIN 790DUMPBIN 791LD 792FGREP 793EGREP 794GREP 795SED 796host_os 797host_vendor 798host_cpu 799host 800build_os 801build_vendor 802build_cpu 803build 804LIBTOOL 805am__xargs_n 806am__rm_f_notfound 807AM_BACKSLASH 808AM_DEFAULT_VERBOSITY 809AM_DEFAULT_V 810AM_V 811CSCOPE 812ETAGS 813CTAGS 814am__fastdepCC_FALSE 815am__fastdepCC_TRUE 816CCDEPMODE 817am__nodep 818AMDEPBACKSLASH 819AMDEP_FALSE 820AMDEP_TRUE 821am__include 822DEPDIR 823am__untar 824am__tar 825AMTAR 826am__leading_dot 827SET_MAKE 828AWK 829mkdir_p 830MKDIR_P 831INSTALL_STRIP_PROGRAM 832STRIP 833install_sh 834MAKEINFO 835AUTOHEADER 836AUTOMAKE 837AUTOCONF 838ACLOCAL 839VERSION 840PACKAGE 841CYGPATH_W 842am__isrc 843INSTALL_DATA 844INSTALL_SCRIPT 845INSTALL_PROGRAM 846OBJEXT 847EXEEXT 848ac_ct_CC 849CPPFLAGS 850LDFLAGS 851CFLAGS 852CC 853target_alias 854host_alias 855build_alias 856LIBS 857ECHO_T 858ECHO_N 859ECHO_C 860DEFS 861mandir 862localedir 863libdir 864psdir 865pdfdir 866dvidir 867htmldir 868infodir 869docdir 870oldincludedir 871includedir 872runstatedir 873localstatedir 874sharedstatedir 875sysconfdir 876datadir 877datarootdir 878libexecdir 879sbindir 880bindir 881program_transform_name 882prefix 883exec_prefix 884PACKAGE_URL 885PACKAGE_BUGREPORT 886PACKAGE_STRING 887PACKAGE_VERSION 888PACKAGE_TARNAME 889PACKAGE_NAME 890PATH_SEPARATOR 891SHELL 892am__quote' 893ac_subst_files='' 894ac_user_opts=' 895enable_option_checking 896enable_dependency_tracking 897enable_silent_rules 898enable_shared 899enable_static 900enable_pic 901with_pic 902enable_fast_install 903enable_aix_soname 904with_aix_soname 905with_gnu_ld 906with_sysroot 907enable_libtool_lock 908enable_selective_werror 909enable_strict_compilation 910enable_docs 911enable_specs 912with_xmlto 913with_fop 914with_xsltproc 915enable_largefile 916enable_unix_transport 917enable_tcp_transport 918enable_ipv6 919enable_local_transport 920with_lint 921enable_lint_library 922enable_year2038 923' 924 ac_precious_vars='build_alias 925host_alias 926target_alias 927CC 928CFLAGS 929LDFLAGS 930LIBS 931CPPFLAGS 932LT_SYS_LIBRARY_PATH 933PKG_CONFIG 934PKG_CONFIG_PATH 935PKG_CONFIG_LIBDIR 936XMLTO 937FOP 938XSLTPROC 939ICE_CFLAGS 940ICE_LIBS 941LIBBSD_CFLAGS 942LIBBSD_LIBS 943LINT 944LINT_FLAGS' 945 946 947# Initialize some variables set by options. 948ac_init_help= 949ac_init_version=false 950ac_unrecognized_opts= 951ac_unrecognized_sep= 952# The variables have the same names as the options, with 953# dashes changed to underlines. 954cache_file=/dev/null 955exec_prefix=NONE 956no_create= 957no_recursion= 958prefix=NONE 959program_prefix=NONE 960program_suffix=NONE 961program_transform_name=s,x,x, 962silent= 963site= 964srcdir= 965verbose= 966x_includes=NONE 967x_libraries=NONE 968 969# Installation directory options. 970# These are left unexpanded so users can "make install exec_prefix=/foo" 971# and all the variables that are supposed to be based on exec_prefix 972# by default will actually change. 973# Use braces instead of parens because sh, perl, etc. also accept them. 974# (The list follows the same order as the GNU Coding Standards.) 975bindir='${exec_prefix}/bin' 976sbindir='${exec_prefix}/sbin' 977libexecdir='${exec_prefix}/libexec' 978datarootdir='${prefix}/share' 979datadir='${datarootdir}' 980sysconfdir='${prefix}/etc' 981sharedstatedir='${prefix}/com' 982localstatedir='${prefix}/var' 983runstatedir='${localstatedir}/run' 984includedir='${prefix}/include' 985oldincludedir='/usr/include' 986docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 987infodir='${datarootdir}/info' 988htmldir='${docdir}' 989dvidir='${docdir}' 990pdfdir='${docdir}' 991psdir='${docdir}' 992libdir='${exec_prefix}/lib' 993localedir='${datarootdir}/locale' 994mandir='${datarootdir}/man' 995 996ac_prev= 997ac_dashdash= 998for ac_option 999do 1000 # If the previous option needs an argument, assign it. 1001 if test -n "$ac_prev"; then 1002 eval $ac_prev=\$ac_option 1003 ac_prev= 1004 continue 1005 fi 1006 1007 case $ac_option in 1008 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 1009 *=) ac_optarg= ;; 1010 *) ac_optarg=yes ;; 1011 esac 1012 1013 case $ac_dashdash$ac_option in 1014 --) 1015 ac_dashdash=yes ;; 1016 1017 -bindir | --bindir | --bindi | --bind | --bin | --bi) 1018 ac_prev=bindir ;; 1019 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 1020 bindir=$ac_optarg ;; 1021 1022 -build | --build | --buil | --bui | --bu) 1023 ac_prev=build_alias ;; 1024 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 1025 build_alias=$ac_optarg ;; 1026 1027 -cache-file | --cache-file | --cache-fil | --cache-fi \ 1028 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 1029 ac_prev=cache_file ;; 1030 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 1031 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 1032 cache_file=$ac_optarg ;; 1033 1034 --config-cache | -C) 1035 cache_file=config.cache ;; 1036 1037 -datadir | --datadir | --datadi | --datad) 1038 ac_prev=datadir ;; 1039 -datadir=* | --datadir=* | --datadi=* | --datad=*) 1040 datadir=$ac_optarg ;; 1041 1042 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 1043 | --dataroo | --dataro | --datar) 1044 ac_prev=datarootdir ;; 1045 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 1046 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 1047 datarootdir=$ac_optarg ;; 1048 1049 -disable-* | --disable-*) 1050 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 1051 # Reject names that are not valid shell variable names. 1052 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1053 as_fn_error $? "invalid feature name: '$ac_useropt'" 1054 ac_useropt_orig=$ac_useropt 1055 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1056 case $ac_user_opts in 1057 *" 1058"enable_$ac_useropt" 1059"*) ;; 1060 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 1061 ac_unrecognized_sep=', ';; 1062 esac 1063 eval enable_$ac_useropt=no ;; 1064 1065 -docdir | --docdir | --docdi | --doc | --do) 1066 ac_prev=docdir ;; 1067 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1068 docdir=$ac_optarg ;; 1069 1070 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1071 ac_prev=dvidir ;; 1072 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1073 dvidir=$ac_optarg ;; 1074 1075 -enable-* | --enable-*) 1076 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1077 # Reject names that are not valid shell variable names. 1078 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1079 as_fn_error $? "invalid feature name: '$ac_useropt'" 1080 ac_useropt_orig=$ac_useropt 1081 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1082 case $ac_user_opts in 1083 *" 1084"enable_$ac_useropt" 1085"*) ;; 1086 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1087 ac_unrecognized_sep=', ';; 1088 esac 1089 eval enable_$ac_useropt=\$ac_optarg ;; 1090 1091 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1092 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1093 | --exec | --exe | --ex) 1094 ac_prev=exec_prefix ;; 1095 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1096 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1097 | --exec=* | --exe=* | --ex=*) 1098 exec_prefix=$ac_optarg ;; 1099 1100 -gas | --gas | --ga | --g) 1101 # Obsolete; use --with-gas. 1102 with_gas=yes ;; 1103 1104 -help | --help | --hel | --he | -h) 1105 ac_init_help=long ;; 1106 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1107 ac_init_help=recursive ;; 1108 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1109 ac_init_help=short ;; 1110 1111 -host | --host | --hos | --ho) 1112 ac_prev=host_alias ;; 1113 -host=* | --host=* | --hos=* | --ho=*) 1114 host_alias=$ac_optarg ;; 1115 1116 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1117 ac_prev=htmldir ;; 1118 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1119 | --ht=*) 1120 htmldir=$ac_optarg ;; 1121 1122 -includedir | --includedir | --includedi | --included | --include \ 1123 | --includ | --inclu | --incl | --inc) 1124 ac_prev=includedir ;; 1125 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1126 | --includ=* | --inclu=* | --incl=* | --inc=*) 1127 includedir=$ac_optarg ;; 1128 1129 -infodir | --infodir | --infodi | --infod | --info | --inf) 1130 ac_prev=infodir ;; 1131 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1132 infodir=$ac_optarg ;; 1133 1134 -libdir | --libdir | --libdi | --libd) 1135 ac_prev=libdir ;; 1136 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1137 libdir=$ac_optarg ;; 1138 1139 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1140 | --libexe | --libex | --libe) 1141 ac_prev=libexecdir ;; 1142 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1143 | --libexe=* | --libex=* | --libe=*) 1144 libexecdir=$ac_optarg ;; 1145 1146 -localedir | --localedir | --localedi | --localed | --locale) 1147 ac_prev=localedir ;; 1148 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1149 localedir=$ac_optarg ;; 1150 1151 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1152 | --localstate | --localstat | --localsta | --localst | --locals) 1153 ac_prev=localstatedir ;; 1154 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1155 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1156 localstatedir=$ac_optarg ;; 1157 1158 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1159 ac_prev=mandir ;; 1160 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1161 mandir=$ac_optarg ;; 1162 1163 -nfp | --nfp | --nf) 1164 # Obsolete; use --without-fp. 1165 with_fp=no ;; 1166 1167 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1168 | --no-cr | --no-c | -n) 1169 no_create=yes ;; 1170 1171 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1172 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1173 no_recursion=yes ;; 1174 1175 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1176 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1177 | --oldin | --oldi | --old | --ol | --o) 1178 ac_prev=oldincludedir ;; 1179 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1180 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1181 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1182 oldincludedir=$ac_optarg ;; 1183 1184 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1185 ac_prev=prefix ;; 1186 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1187 prefix=$ac_optarg ;; 1188 1189 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1190 | --program-pre | --program-pr | --program-p) 1191 ac_prev=program_prefix ;; 1192 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1193 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1194 program_prefix=$ac_optarg ;; 1195 1196 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1197 | --program-suf | --program-su | --program-s) 1198 ac_prev=program_suffix ;; 1199 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1200 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1201 program_suffix=$ac_optarg ;; 1202 1203 -program-transform-name | --program-transform-name \ 1204 | --program-transform-nam | --program-transform-na \ 1205 | --program-transform-n | --program-transform- \ 1206 | --program-transform | --program-transfor \ 1207 | --program-transfo | --program-transf \ 1208 | --program-trans | --program-tran \ 1209 | --progr-tra | --program-tr | --program-t) 1210 ac_prev=program_transform_name ;; 1211 -program-transform-name=* | --program-transform-name=* \ 1212 | --program-transform-nam=* | --program-transform-na=* \ 1213 | --program-transform-n=* | --program-transform-=* \ 1214 | --program-transform=* | --program-transfor=* \ 1215 | --program-transfo=* | --program-transf=* \ 1216 | --program-trans=* | --program-tran=* \ 1217 | --progr-tra=* | --program-tr=* | --program-t=*) 1218 program_transform_name=$ac_optarg ;; 1219 1220 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1221 ac_prev=pdfdir ;; 1222 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1223 pdfdir=$ac_optarg ;; 1224 1225 -psdir | --psdir | --psdi | --psd | --ps) 1226 ac_prev=psdir ;; 1227 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1228 psdir=$ac_optarg ;; 1229 1230 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1231 | -silent | --silent | --silen | --sile | --sil) 1232 silent=yes ;; 1233 1234 -runstatedir | --runstatedir | --runstatedi | --runstated \ 1235 | --runstate | --runstat | --runsta | --runst | --runs \ 1236 | --run | --ru | --r) 1237 ac_prev=runstatedir ;; 1238 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ 1239 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ 1240 | --run=* | --ru=* | --r=*) 1241 runstatedir=$ac_optarg ;; 1242 1243 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1244 ac_prev=sbindir ;; 1245 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1246 | --sbi=* | --sb=*) 1247 sbindir=$ac_optarg ;; 1248 1249 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1250 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1251 | --sharedst | --shareds | --shared | --share | --shar \ 1252 | --sha | --sh) 1253 ac_prev=sharedstatedir ;; 1254 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1255 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1256 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1257 | --sha=* | --sh=*) 1258 sharedstatedir=$ac_optarg ;; 1259 1260 -site | --site | --sit) 1261 ac_prev=site ;; 1262 -site=* | --site=* | --sit=*) 1263 site=$ac_optarg ;; 1264 1265 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1266 ac_prev=srcdir ;; 1267 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1268 srcdir=$ac_optarg ;; 1269 1270 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1271 | --syscon | --sysco | --sysc | --sys | --sy) 1272 ac_prev=sysconfdir ;; 1273 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1274 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1275 sysconfdir=$ac_optarg ;; 1276 1277 -target | --target | --targe | --targ | --tar | --ta | --t) 1278 ac_prev=target_alias ;; 1279 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1280 target_alias=$ac_optarg ;; 1281 1282 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1283 verbose=yes ;; 1284 1285 -version | --version | --versio | --versi | --vers | -V) 1286 ac_init_version=: ;; 1287 1288 -with-* | --with-*) 1289 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1290 # Reject names that are not valid shell variable names. 1291 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1292 as_fn_error $? "invalid package name: '$ac_useropt'" 1293 ac_useropt_orig=$ac_useropt 1294 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1295 case $ac_user_opts in 1296 *" 1297"with_$ac_useropt" 1298"*) ;; 1299 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1300 ac_unrecognized_sep=', ';; 1301 esac 1302 eval with_$ac_useropt=\$ac_optarg ;; 1303 1304 -without-* | --without-*) 1305 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1306 # Reject names that are not valid shell variable names. 1307 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1308 as_fn_error $? "invalid package name: '$ac_useropt'" 1309 ac_useropt_orig=$ac_useropt 1310 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1311 case $ac_user_opts in 1312 *" 1313"with_$ac_useropt" 1314"*) ;; 1315 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1316 ac_unrecognized_sep=', ';; 1317 esac 1318 eval with_$ac_useropt=no ;; 1319 1320 --x) 1321 # Obsolete; use --with-x. 1322 with_x=yes ;; 1323 1324 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1325 | --x-incl | --x-inc | --x-in | --x-i) 1326 ac_prev=x_includes ;; 1327 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1328 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1329 x_includes=$ac_optarg ;; 1330 1331 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1332 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1333 ac_prev=x_libraries ;; 1334 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1335 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1336 x_libraries=$ac_optarg ;; 1337 1338 -*) as_fn_error $? "unrecognized option: '$ac_option' 1339Try '$0 --help' for more information" 1340 ;; 1341 1342 *=*) 1343 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1344 # Reject names that are not valid shell variable names. 1345 case $ac_envvar in #( 1346 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1347 as_fn_error $? "invalid variable name: '$ac_envvar'" ;; 1348 esac 1349 eval $ac_envvar=\$ac_optarg 1350 export $ac_envvar ;; 1351 1352 *) 1353 # FIXME: should be removed in autoconf 3.0. 1354 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2 1355 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1356 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2 1357 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1358 ;; 1359 1360 esac 1361done 1362 1363if test -n "$ac_prev"; then 1364 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1365 as_fn_error $? "missing argument to $ac_option" 1366fi 1367 1368if test -n "$ac_unrecognized_opts"; then 1369 case $enable_option_checking in 1370 no) ;; 1371 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1372 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1373 esac 1374fi 1375 1376# Check all directory arguments for consistency. 1377for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1378 datadir sysconfdir sharedstatedir localstatedir includedir \ 1379 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1380 libdir localedir mandir runstatedir 1381do 1382 eval ac_val=\$$ac_var 1383 # Remove trailing slashes. 1384 case $ac_val in 1385 */ ) 1386 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1387 eval $ac_var=\$ac_val;; 1388 esac 1389 # Be sure to have absolute directory names. 1390 case $ac_val in 1391 [\\/$]* | ?:[\\/]* ) continue;; 1392 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1393 esac 1394 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1395done 1396 1397# There might be people who depend on the old broken behavior: '$host' 1398# used to hold the argument of --host etc. 1399# FIXME: To remove some day. 1400build=$build_alias 1401host=$host_alias 1402target=$target_alias 1403 1404# FIXME: To remove some day. 1405if test "x$host_alias" != x; then 1406 if test "x$build_alias" = x; then 1407 cross_compiling=maybe 1408 elif test "x$build_alias" != "x$host_alias"; then 1409 cross_compiling=yes 1410 fi 1411fi 1412 1413ac_tool_prefix= 1414test -n "$host_alias" && ac_tool_prefix=$host_alias- 1415 1416test "$silent" = yes && exec 6>/dev/null 1417 1418 1419ac_pwd=`pwd` && test -n "$ac_pwd" && 1420ac_ls_di=`ls -di .` && 1421ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1422 as_fn_error $? "working directory cannot be determined" 1423test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1424 as_fn_error $? "pwd does not report name of working directory" 1425 1426 1427# Find the source files, if location was not specified. 1428if test -z "$srcdir"; then 1429 ac_srcdir_defaulted=yes 1430 # Try the directory containing this script, then the parent directory. 1431 ac_confdir=`$as_dirname -- "$as_myself" || 1432$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1433 X"$as_myself" : 'X\(//\)[^/]' \| \ 1434 X"$as_myself" : 'X\(//\)$' \| \ 1435 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1436printf "%s\n" X"$as_myself" | 1437 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1438 s//\1/ 1439 q 1440 } 1441 /^X\(\/\/\)[^/].*/{ 1442 s//\1/ 1443 q 1444 } 1445 /^X\(\/\/\)$/{ 1446 s//\1/ 1447 q 1448 } 1449 /^X\(\/\).*/{ 1450 s//\1/ 1451 q 1452 } 1453 s/.*/./; q'` 1454 srcdir=$ac_confdir 1455 if test ! -r "$srcdir/$ac_unique_file"; then 1456 srcdir=.. 1457 fi 1458else 1459 ac_srcdir_defaulted=no 1460fi 1461if test ! -r "$srcdir/$ac_unique_file"; then 1462 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1463 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1464fi 1465ac_msg="sources are in $srcdir, but 'cd $srcdir' does not work" 1466ac_abs_confdir=`( 1467 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1468 pwd)` 1469# When building in place, set srcdir=. 1470if test "$ac_abs_confdir" = "$ac_pwd"; then 1471 srcdir=. 1472fi 1473# Remove unnecessary trailing slashes from srcdir. 1474# Double slashes in file names in object file debugging info 1475# mess up M-x gdb in Emacs. 1476case $srcdir in 1477*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1478esac 1479for ac_var in $ac_precious_vars; do 1480 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1481 eval ac_env_${ac_var}_value=\$${ac_var} 1482 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1483 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1484done 1485 1486# 1487# Report the --help message. 1488# 1489if test "$ac_init_help" = "long"; then 1490 # Omit some internal or obsolete options to make the list less imposing. 1491 # This message is too long to be a string in the A/UX 3.1 sh. 1492 cat <<_ACEOF 1493'configure' configures libICE 1.1.2 to adapt to many kinds of systems. 1494 1495Usage: $0 [OPTION]... [VAR=VALUE]... 1496 1497To assign environment variables (e.g., CC, CFLAGS...), specify them as 1498VAR=VALUE. See below for descriptions of some of the useful variables. 1499 1500Defaults for the options are specified in brackets. 1501 1502Configuration: 1503 -h, --help display this help and exit 1504 --help=short display options specific to this package 1505 --help=recursive display the short help of all the included packages 1506 -V, --version display version information and exit 1507 -q, --quiet, --silent do not print 'checking ...' messages 1508 --cache-file=FILE cache test results in FILE [disabled] 1509 -C, --config-cache alias for '--cache-file=config.cache' 1510 -n, --no-create do not create output files 1511 --srcdir=DIR find the sources in DIR [configure dir or '..'] 1512 1513Installation directories: 1514 --prefix=PREFIX install architecture-independent files in PREFIX 1515 [$ac_default_prefix] 1516 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1517 [PREFIX] 1518 1519By default, 'make install' will install all the files in 1520'$ac_default_prefix/bin', '$ac_default_prefix/lib' etc. You can specify 1521an installation prefix other than '$ac_default_prefix' using '--prefix', 1522for instance '--prefix=\$HOME'. 1523 1524For better control, use the options below. 1525 1526Fine tuning of the installation directories: 1527 --bindir=DIR user executables [EPREFIX/bin] 1528 --sbindir=DIR system admin executables [EPREFIX/sbin] 1529 --libexecdir=DIR program executables [EPREFIX/libexec] 1530 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1531 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1532 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1533 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] 1534 --libdir=DIR object code libraries [EPREFIX/lib] 1535 --includedir=DIR C header files [PREFIX/include] 1536 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1537 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1538 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1539 --infodir=DIR info documentation [DATAROOTDIR/info] 1540 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1541 --mandir=DIR man documentation [DATAROOTDIR/man] 1542 --docdir=DIR documentation root [DATAROOTDIR/doc/libICE] 1543 --htmldir=DIR html documentation [DOCDIR] 1544 --dvidir=DIR dvi documentation [DOCDIR] 1545 --pdfdir=DIR pdf documentation [DOCDIR] 1546 --psdir=DIR ps documentation [DOCDIR] 1547_ACEOF 1548 1549 cat <<\_ACEOF 1550 1551Program names: 1552 --program-prefix=PREFIX prepend PREFIX to installed program names 1553 --program-suffix=SUFFIX append SUFFIX to installed program names 1554 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1555 1556System types: 1557 --build=BUILD configure for building on BUILD [guessed] 1558 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1559_ACEOF 1560fi 1561 1562if test -n "$ac_init_help"; then 1563 case $ac_init_help in 1564 short | recursive ) echo "Configuration of libICE 1.1.2:";; 1565 esac 1566 cat <<\_ACEOF 1567 1568Optional Features: 1569 --disable-option-checking ignore unrecognized --enable/--with options 1570 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1571 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1572 --enable-dependency-tracking 1573 do not reject slow dependency extractors 1574 --disable-dependency-tracking 1575 speeds up one-time build 1576 --enable-silent-rules less verbose build output (undo: "make V=1") 1577 --disable-silent-rules verbose build output (undo: "make V=0") 1578 --enable-shared[=PKGS] build shared libraries [default=yes] 1579 --enable-static[=PKGS] build static libraries [default=yes] 1580 --enable-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1581 both] 1582 --enable-fast-install[=PKGS] 1583 optimize for fast installation [default=yes] 1584 --enable-aix-soname=aix|svr4|both 1585 shared library versioning (aka "SONAME") variant to 1586 provide on AIX, [default=aix]. 1587 --disable-libtool-lock avoid locking (might break parallel builds) 1588 --disable-selective-werror 1589 Turn off selective compiler errors. (default: 1590 enabled) 1591 --enable-strict-compilation 1592 Enable all warnings from compiler and make them 1593 errors (default: disabled) 1594 --enable-docs Enable building the documentation (default: yes) 1595 --enable-specs Enable building the specs (default: yes) 1596 --disable-largefile omit support for large files 1597 --enable-unix-transport Enable UNIX domain socket transport 1598 --enable-tcp-transport Enable TCP socket transport 1599 --enable-ipv6 Enable IPv6 support 1600 --enable-local-transport 1601 Enable os-specific local transport 1602 --enable-lint-library Create lint library (default: disabled) 1603 --enable-year2038 support timestamps after 2038 1604 1605Optional Packages: 1606 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1607 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1608 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1609 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the 1610 compiler's sysroot if not specified). 1611 --with-xmlto Use xmlto to regenerate documentation (default: 1612 auto) 1613 --with-fop Use fop to regenerate documentation (default: auto) 1614 --with-xsltproc Use xsltproc for the transformation of XML documents 1615 (default: auto) 1616 --with-lint Use a lint-style source code checker (default: 1617 disabled) 1618 1619Some influential environment variables: 1620 CC C compiler command 1621 CFLAGS C compiler flags 1622 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1623 nonstandard directory <lib dir> 1624 LIBS libraries to pass to the linker, e.g. -l<library> 1625 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1626 you have headers in a nonstandard directory <include dir> 1627 LT_SYS_LIBRARY_PATH 1628 User-defined run-time library search path. 1629 PKG_CONFIG path to pkg-config utility 1630 PKG_CONFIG_PATH 1631 directories to add to pkg-config's search path 1632 PKG_CONFIG_LIBDIR 1633 path overriding pkg-config's built-in search path 1634 XMLTO Path to xmlto command 1635 FOP Path to fop command 1636 XSLTPROC Path to xsltproc command 1637 ICE_CFLAGS C compiler flags for ICE, overriding pkg-config 1638 ICE_LIBS linker flags for ICE, overriding pkg-config 1639 LIBBSD_CFLAGS 1640 C compiler flags for LIBBSD, overriding pkg-config 1641 LIBBSD_LIBS linker flags for LIBBSD, overriding pkg-config 1642 LINT Path to a lint-style command 1643 LINT_FLAGS Flags for the lint-style command 1644 1645Use these variables to override the choices made by 'configure' or to help 1646it to find libraries and programs with nonstandard names/locations. 1647 1648Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libice/-/issues>. 1649_ACEOF 1650ac_status=$? 1651fi 1652 1653if test "$ac_init_help" = "recursive"; then 1654 # If there are subdirs, report their specific --help. 1655 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1656 test -d "$ac_dir" || 1657 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1658 continue 1659 ac_builddir=. 1660 1661case "$ac_dir" in 1662.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1663*) 1664 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 1665 # A ".." for each directory in $ac_dir_suffix. 1666 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1667 case $ac_top_builddir_sub in 1668 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1669 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1670 esac ;; 1671esac 1672ac_abs_top_builddir=$ac_pwd 1673ac_abs_builddir=$ac_pwd$ac_dir_suffix 1674# for backward compatibility: 1675ac_top_builddir=$ac_top_build_prefix 1676 1677case $srcdir in 1678 .) # We are building in place. 1679 ac_srcdir=. 1680 ac_top_srcdir=$ac_top_builddir_sub 1681 ac_abs_top_srcdir=$ac_pwd ;; 1682 [\\/]* | ?:[\\/]* ) # Absolute name. 1683 ac_srcdir=$srcdir$ac_dir_suffix; 1684 ac_top_srcdir=$srcdir 1685 ac_abs_top_srcdir=$srcdir ;; 1686 *) # Relative name. 1687 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1688 ac_top_srcdir=$ac_top_build_prefix$srcdir 1689 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1690esac 1691ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1692 1693 cd "$ac_dir" || { ac_status=$?; continue; } 1694 # Check for configure.gnu first; this name is used for a wrapper for 1695 # Metaconfig's "Configure" on case-insensitive file systems. 1696 if test -f "$ac_srcdir/configure.gnu"; then 1697 echo && 1698 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1699 elif test -f "$ac_srcdir/configure"; then 1700 echo && 1701 $SHELL "$ac_srcdir/configure" --help=recursive 1702 else 1703 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1704 fi || ac_status=$? 1705 cd "$ac_pwd" || { ac_status=$?; break; } 1706 done 1707fi 1708 1709test -n "$ac_init_help" && exit $ac_status 1710if $ac_init_version; then 1711 cat <<\_ACEOF 1712libICE configure 1.1.2 1713generated by GNU Autoconf 2.72 1714 1715Copyright (C) 2023 Free Software Foundation, Inc. 1716This configure script is free software; the Free Software Foundation 1717gives unlimited permission to copy, distribute and modify it. 1718_ACEOF 1719 exit 1720fi 1721 1722## ------------------------ ## 1723## Autoconf initialization. ## 1724## ------------------------ ## 1725 1726# ac_fn_c_try_compile LINENO 1727# -------------------------- 1728# Try to compile conftest.$ac_ext, and return whether this succeeded. 1729ac_fn_c_try_compile () 1730{ 1731 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1732 rm -f conftest.$ac_objext conftest.beam 1733 if { { ac_try="$ac_compile" 1734case "(($ac_try" in 1735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1736 *) ac_try_echo=$ac_try;; 1737esac 1738eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1739printf "%s\n" "$ac_try_echo"; } >&5 1740 (eval "$ac_compile") 2>conftest.err 1741 ac_status=$? 1742 if test -s conftest.err; then 1743 grep -v '^ *+' conftest.err >conftest.er1 1744 cat conftest.er1 >&5 1745 mv -f conftest.er1 conftest.err 1746 fi 1747 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1748 test $ac_status = 0; } && { 1749 test -z "$ac_c_werror_flag" || 1750 test ! -s conftest.err 1751 } && test -s conftest.$ac_objext 1752then : 1753 ac_retval=0 1754else case e in #( 1755 e) printf "%s\n" "$as_me: failed program was:" >&5 1756sed 's/^/| /' conftest.$ac_ext >&5 1757 1758 ac_retval=1 ;; 1759esac 1760fi 1761 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1762 as_fn_set_status $ac_retval 1763 1764} # ac_fn_c_try_compile 1765 1766# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1767# ------------------------------------------------------- 1768# Tests whether HEADER exists and can be compiled using the include files in 1769# INCLUDES, setting the cache variable VAR accordingly. 1770ac_fn_c_check_header_compile () 1771{ 1772 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1773 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1774printf %s "checking for $2... " >&6; } 1775if eval test \${$3+y} 1776then : 1777 printf %s "(cached) " >&6 1778else case e in #( 1779 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1780/* end confdefs.h. */ 1781$4 1782#include <$2> 1783_ACEOF 1784if ac_fn_c_try_compile "$LINENO" 1785then : 1786 eval "$3=yes" 1787else case e in #( 1788 e) eval "$3=no" ;; 1789esac 1790fi 1791rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 1792esac 1793fi 1794eval ac_res=\$$3 1795 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1796printf "%s\n" "$ac_res" >&6; } 1797 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1798 1799} # ac_fn_c_check_header_compile 1800 1801# ac_fn_c_try_link LINENO 1802# ----------------------- 1803# Try to link conftest.$ac_ext, and return whether this succeeded. 1804ac_fn_c_try_link () 1805{ 1806 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1807 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext 1808 if { { ac_try="$ac_link" 1809case "(($ac_try" in 1810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1811 *) ac_try_echo=$ac_try;; 1812esac 1813eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1814printf "%s\n" "$ac_try_echo"; } >&5 1815 (eval "$ac_link") 2>conftest.err 1816 ac_status=$? 1817 if test -s conftest.err; then 1818 grep -v '^ *+' conftest.err >conftest.er1 1819 cat conftest.er1 >&5 1820 mv -f conftest.er1 conftest.err 1821 fi 1822 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1823 test $ac_status = 0; } && { 1824 test -z "$ac_c_werror_flag" || 1825 test ! -s conftest.err 1826 } && test -s conftest$ac_exeext && { 1827 test "$cross_compiling" = yes || 1828 test -x conftest$ac_exeext 1829 } 1830then : 1831 ac_retval=0 1832else case e in #( 1833 e) printf "%s\n" "$as_me: failed program was:" >&5 1834sed 's/^/| /' conftest.$ac_ext >&5 1835 1836 ac_retval=1 ;; 1837esac 1838fi 1839 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1840 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1841 # interfere with the next link command; also delete a directory that is 1842 # left behind by Apple's compiler. We do this before executing the actions. 1843 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1844 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1845 as_fn_set_status $ac_retval 1846 1847} # ac_fn_c_try_link 1848 1849# ac_fn_c_check_func LINENO FUNC VAR 1850# ---------------------------------- 1851# Tests whether FUNC exists, setting the cache variable VAR accordingly 1852ac_fn_c_check_func () 1853{ 1854 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1855 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1856printf %s "checking for $2... " >&6; } 1857if eval test \${$3+y} 1858then : 1859 printf %s "(cached) " >&6 1860else case e in #( 1861 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1862/* end confdefs.h. */ 1863/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1864 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1865#define $2 innocuous_$2 1866 1867/* System header to define __stub macros and hopefully few prototypes, 1868 which can conflict with char $2 (void); below. */ 1869 1870#include <limits.h> 1871#undef $2 1872 1873/* Override any GCC internal prototype to avoid an error. 1874 Use char because int might match the return type of a GCC 1875 builtin and then its argument prototype would still apply. */ 1876#ifdef __cplusplus 1877extern "C" 1878#endif 1879char $2 (void); 1880/* The GNU C library defines this for functions which it implements 1881 to always fail with ENOSYS. Some functions are actually named 1882 something starting with __ and the normal name is an alias. */ 1883#if defined __stub_$2 || defined __stub___$2 1884choke me 1885#endif 1886 1887int 1888main (void) 1889{ 1890return $2 (); 1891 ; 1892 return 0; 1893} 1894_ACEOF 1895if ac_fn_c_try_link "$LINENO" 1896then : 1897 eval "$3=yes" 1898else case e in #( 1899 e) eval "$3=no" ;; 1900esac 1901fi 1902rm -f core conftest.err conftest.$ac_objext conftest.beam \ 1903 conftest$ac_exeext conftest.$ac_ext ;; 1904esac 1905fi 1906eval ac_res=\$$3 1907 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1908printf "%s\n" "$ac_res" >&6; } 1909 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1910 1911} # ac_fn_c_check_func 1912 1913# ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR 1914# ------------------------------------------------------------------ 1915# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 1916# accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR. 1917ac_fn_check_decl () 1918{ 1919 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1920 as_decl_name=`echo $2|sed 's/ *(.*//'` 1921 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 1922printf %s "checking whether $as_decl_name is declared... " >&6; } 1923if eval test \${$3+y} 1924then : 1925 printf %s "(cached) " >&6 1926else case e in #( 1927 e) as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 1928 eval ac_save_FLAGS=\$$6 1929 as_fn_append $6 " $5" 1930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1931/* end confdefs.h. */ 1932$4 1933int 1934main (void) 1935{ 1936#ifndef $as_decl_name 1937#ifdef __cplusplus 1938 (void) $as_decl_use; 1939#else 1940 (void) $as_decl_name; 1941#endif 1942#endif 1943 1944 ; 1945 return 0; 1946} 1947_ACEOF 1948if ac_fn_c_try_compile "$LINENO" 1949then : 1950 eval "$3=yes" 1951else case e in #( 1952 e) eval "$3=no" ;; 1953esac 1954fi 1955rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1956 eval $6=\$ac_save_FLAGS 1957 ;; 1958esac 1959fi 1960eval ac_res=\$$3 1961 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1962printf "%s\n" "$ac_res" >&6; } 1963 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1964 1965} # ac_fn_check_decl 1966 1967# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES 1968# ---------------------------------------------------- 1969# Tries to find if the field MEMBER exists in type AGGR, after including 1970# INCLUDES, setting cache variable VAR accordingly. 1971ac_fn_c_check_member () 1972{ 1973 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1974 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 1975printf %s "checking for $2.$3... " >&6; } 1976if eval test \${$4+y} 1977then : 1978 printf %s "(cached) " >&6 1979else case e in #( 1980 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1981/* end confdefs.h. */ 1982$5 1983int 1984main (void) 1985{ 1986static $2 ac_aggr; 1987if (ac_aggr.$3) 1988return 0; 1989 ; 1990 return 0; 1991} 1992_ACEOF 1993if ac_fn_c_try_compile "$LINENO" 1994then : 1995 eval "$4=yes" 1996else case e in #( 1997 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1998/* end confdefs.h. */ 1999$5 2000int 2001main (void) 2002{ 2003static $2 ac_aggr; 2004if (sizeof ac_aggr.$3) 2005return 0; 2006 ; 2007 return 0; 2008} 2009_ACEOF 2010if ac_fn_c_try_compile "$LINENO" 2011then : 2012 eval "$4=yes" 2013else case e in #( 2014 e) eval "$4=no" ;; 2015esac 2016fi 2017rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 2018esac 2019fi 2020rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 2021esac 2022fi 2023eval ac_res=\$$4 2024 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2025printf "%s\n" "$ac_res" >&6; } 2026 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2027 2028} # ac_fn_c_check_member 2029 2030# ac_fn_c_check_type LINENO TYPE VAR INCLUDES 2031# ------------------------------------------- 2032# Tests whether TYPE exists after having included INCLUDES, setting cache 2033# variable VAR accordingly. 2034ac_fn_c_check_type () 2035{ 2036 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2037 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2038printf %s "checking for $2... " >&6; } 2039if eval test \${$3+y} 2040then : 2041 printf %s "(cached) " >&6 2042else case e in #( 2043 e) eval "$3=no" 2044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2045/* end confdefs.h. */ 2046$4 2047int 2048main (void) 2049{ 2050if (sizeof ($2)) 2051 return 0; 2052 ; 2053 return 0; 2054} 2055_ACEOF 2056if ac_fn_c_try_compile "$LINENO" 2057then : 2058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2059/* end confdefs.h. */ 2060$4 2061int 2062main (void) 2063{ 2064if (sizeof (($2))) 2065 return 0; 2066 ; 2067 return 0; 2068} 2069_ACEOF 2070if ac_fn_c_try_compile "$LINENO" 2071then : 2072 2073else case e in #( 2074 e) eval "$3=yes" ;; 2075esac 2076fi 2077rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 2078fi 2079rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 2080esac 2081fi 2082eval ac_res=\$$3 2083 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2084printf "%s\n" "$ac_res" >&6; } 2085 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2086 2087} # ac_fn_c_check_type 2088ac_configure_args_raw= 2089for ac_arg 2090do 2091 case $ac_arg in 2092 *\'*) 2093 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2094 esac 2095 as_fn_append ac_configure_args_raw " '$ac_arg'" 2096done 2097 2098case $ac_configure_args_raw in 2099 *$as_nl*) 2100 ac_safe_unquote= ;; 2101 *) 2102 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab. 2103 ac_unsafe_a="$ac_unsafe_z#~" 2104 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g" 2105 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;; 2106esac 2107 2108cat >config.log <<_ACEOF 2109This file contains any messages produced by compilers while 2110running configure, to aid debugging if configure makes a mistake. 2111 2112It was created by libICE $as_me 1.1.2, which was 2113generated by GNU Autoconf 2.72. Invocation command line was 2114 2115 $ $0$ac_configure_args_raw 2116 2117_ACEOF 2118exec 5>>config.log 2119{ 2120cat <<_ASUNAME 2121## --------- ## 2122## Platform. ## 2123## --------- ## 2124 2125hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2126uname -m = `(uname -m) 2>/dev/null || echo unknown` 2127uname -r = `(uname -r) 2>/dev/null || echo unknown` 2128uname -s = `(uname -s) 2>/dev/null || echo unknown` 2129uname -v = `(uname -v) 2>/dev/null || echo unknown` 2130 2131/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2132/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2133 2134/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2135/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2136/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2137/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2138/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2139/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2140/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2141 2142_ASUNAME 2143 2144as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2145for as_dir in $PATH 2146do 2147 IFS=$as_save_IFS 2148 case $as_dir in #((( 2149 '') as_dir=./ ;; 2150 */) ;; 2151 *) as_dir=$as_dir/ ;; 2152 esac 2153 printf "%s\n" "PATH: $as_dir" 2154 done 2155IFS=$as_save_IFS 2156 2157} >&5 2158 2159cat >&5 <<_ACEOF 2160 2161 2162## ----------- ## 2163## Core tests. ## 2164## ----------- ## 2165 2166_ACEOF 2167 2168 2169# Keep a trace of the command line. 2170# Strip out --no-create and --no-recursion so they do not pile up. 2171# Strip out --silent because we don't want to record it for future runs. 2172# Also quote any args containing shell meta-characters. 2173# Make two passes to allow for proper duplicate-argument suppression. 2174ac_configure_args= 2175ac_configure_args0= 2176ac_configure_args1= 2177ac_must_keep_next=false 2178for ac_pass in 1 2 2179do 2180 for ac_arg 2181 do 2182 case $ac_arg in 2183 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2184 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2185 | -silent | --silent | --silen | --sile | --sil) 2186 continue ;; 2187 *\'*) 2188 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2189 esac 2190 case $ac_pass in 2191 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2192 2) 2193 as_fn_append ac_configure_args1 " '$ac_arg'" 2194 if test $ac_must_keep_next = true; then 2195 ac_must_keep_next=false # Got value, back to normal. 2196 else 2197 case $ac_arg in 2198 *=* | --config-cache | -C | -disable-* | --disable-* \ 2199 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2200 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2201 | -with-* | --with-* | -without-* | --without-* | --x) 2202 case "$ac_configure_args0 " in 2203 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2204 esac 2205 ;; 2206 -* ) ac_must_keep_next=true ;; 2207 esac 2208 fi 2209 as_fn_append ac_configure_args " '$ac_arg'" 2210 ;; 2211 esac 2212 done 2213done 2214{ ac_configure_args0=; unset ac_configure_args0;} 2215{ ac_configure_args1=; unset ac_configure_args1;} 2216 2217# When interrupted or exit'd, cleanup temporary files, and complete 2218# config.log. We remove comments because anyway the quotes in there 2219# would cause problems or look ugly. 2220# WARNING: Use '\'' to represent an apostrophe within the trap. 2221# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2222trap 'exit_status=$? 2223 # Sanitize IFS. 2224 IFS=" "" $as_nl" 2225 # Save into config.log some information that might help in debugging. 2226 { 2227 echo 2228 2229 printf "%s\n" "## ---------------- ## 2230## Cache variables. ## 2231## ---------------- ##" 2232 echo 2233 # The following way of writing the cache mishandles newlines in values, 2234( 2235 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2236 eval ac_val=\$$ac_var 2237 case $ac_val in #( 2238 *${as_nl}*) 2239 case $ac_var in #( 2240 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2241printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2242 esac 2243 case $ac_var in #( 2244 _ | IFS | as_nl) ;; #( 2245 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2246 *) { eval $ac_var=; unset $ac_var;} ;; 2247 esac ;; 2248 esac 2249 done 2250 (set) 2>&1 | 2251 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2252 *${as_nl}ac_space=\ *) 2253 sed -n \ 2254 "s/'\''/'\''\\\\'\'''\''/g; 2255 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2256 ;; #( 2257 *) 2258 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2259 ;; 2260 esac | 2261 sort 2262) 2263 echo 2264 2265 printf "%s\n" "## ----------------- ## 2266## Output variables. ## 2267## ----------------- ##" 2268 echo 2269 for ac_var in $ac_subst_vars 2270 do 2271 eval ac_val=\$$ac_var 2272 case $ac_val in 2273 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2274 esac 2275 printf "%s\n" "$ac_var='\''$ac_val'\''" 2276 done | sort 2277 echo 2278 2279 if test -n "$ac_subst_files"; then 2280 printf "%s\n" "## ------------------- ## 2281## File substitutions. ## 2282## ------------------- ##" 2283 echo 2284 for ac_var in $ac_subst_files 2285 do 2286 eval ac_val=\$$ac_var 2287 case $ac_val in 2288 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2289 esac 2290 printf "%s\n" "$ac_var='\''$ac_val'\''" 2291 done | sort 2292 echo 2293 fi 2294 2295 if test -s confdefs.h; then 2296 printf "%s\n" "## ----------- ## 2297## confdefs.h. ## 2298## ----------- ##" 2299 echo 2300 cat confdefs.h 2301 echo 2302 fi 2303 test "$ac_signal" != 0 && 2304 printf "%s\n" "$as_me: caught signal $ac_signal" 2305 printf "%s\n" "$as_me: exit $exit_status" 2306 } >&5 2307 rm -f core *.core core.conftest.* && 2308 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2309 exit $exit_status 2310' 0 2311for ac_signal in 1 2 13 15; do 2312 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2313done 2314ac_signal=0 2315 2316# confdefs.h avoids OS command line length limits that DEFS can exceed. 2317rm -f -r conftest* confdefs.h 2318 2319printf "%s\n" "/* confdefs.h */" > confdefs.h 2320 2321# Predefined preprocessor variables. 2322 2323printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h 2324 2325printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h 2326 2327printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h 2328 2329printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h 2330 2331printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h 2332 2333printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h 2334 2335 2336# Let the site file select an alternate cache file if it wants to. 2337# Prefer an explicitly selected file to automatically selected ones. 2338if test -n "$CONFIG_SITE"; then 2339 ac_site_files="$CONFIG_SITE" 2340elif test "x$prefix" != xNONE; then 2341 ac_site_files="$prefix/share/config.site $prefix/etc/config.site" 2342else 2343 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 2344fi 2345 2346for ac_site_file in $ac_site_files 2347do 2348 case $ac_site_file in #( 2349 */*) : 2350 ;; #( 2351 *) : 2352 ac_site_file=./$ac_site_file ;; 2353esac 2354 if test -f "$ac_site_file" && test -r "$ac_site_file"; then 2355 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2356printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;} 2357 sed 's/^/| /' "$ac_site_file" >&5 2358 . "$ac_site_file" \ 2359 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 2360printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 2361as_fn_error $? "failed to load site script $ac_site_file 2362See 'config.log' for more details" "$LINENO" 5; } 2363 fi 2364done 2365 2366if test -r "$cache_file"; then 2367 # Some versions of bash will fail to source /dev/null (special files 2368 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2369 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2370 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2371printf "%s\n" "$as_me: loading cache $cache_file" >&6;} 2372 case $cache_file in 2373 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2374 *) . "./$cache_file";; 2375 esac 2376 fi 2377else 2378 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2379printf "%s\n" "$as_me: creating cache $cache_file" >&6;} 2380 >$cache_file 2381fi 2382 2383as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H" 2384# Test code for whether the C compiler supports C89 (global declarations) 2385ac_c_conftest_c89_globals=' 2386/* Does the compiler advertise C89 conformance? 2387 Do not test the value of __STDC__, because some compilers set it to 0 2388 while being otherwise adequately conformant. */ 2389#if !defined __STDC__ 2390# error "Compiler does not advertise C89 conformance" 2391#endif 2392 2393#include <stddef.h> 2394#include <stdarg.h> 2395struct stat; 2396/* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */ 2397struct buf { int x; }; 2398struct buf * (*rcsopen) (struct buf *, struct stat *, int); 2399static char *e (char **p, int i) 2400{ 2401 return p[i]; 2402} 2403static char *f (char * (*g) (char **, int), char **p, ...) 2404{ 2405 char *s; 2406 va_list v; 2407 va_start (v,p); 2408 s = g (p, va_arg (v,int)); 2409 va_end (v); 2410 return s; 2411} 2412 2413/* C89 style stringification. */ 2414#define noexpand_stringify(a) #a 2415const char *stringified = noexpand_stringify(arbitrary+token=sequence); 2416 2417/* C89 style token pasting. Exercises some of the corner cases that 2418 e.g. old MSVC gets wrong, but not very hard. */ 2419#define noexpand_concat(a,b) a##b 2420#define expand_concat(a,b) noexpand_concat(a,b) 2421extern int vA; 2422extern int vbee; 2423#define aye A 2424#define bee B 2425int *pvA = &expand_concat(v,aye); 2426int *pvbee = &noexpand_concat(v,bee); 2427 2428/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 2429 function prototypes and stuff, but not \xHH hex character constants. 2430 These do not provoke an error unfortunately, instead are silently treated 2431 as an "x". The following induces an error, until -std is added to get 2432 proper ANSI mode. Curiously \x00 != x always comes out true, for an 2433 array size at least. It is necessary to write \x00 == 0 to get something 2434 that is true only with -std. */ 2435int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1]; 2436 2437/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 2438 inside strings and character constants. */ 2439#define FOO(x) '\''x'\'' 2440int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1]; 2441 2442int test (int i, double x); 2443struct s1 {int (*f) (int a);}; 2444struct s2 {int (*f) (double a);}; 2445int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int), 2446 int, int);' 2447 2448# Test code for whether the C compiler supports C89 (body of main). 2449ac_c_conftest_c89_main=' 2450ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]); 2451' 2452 2453# Test code for whether the C compiler supports C99 (global declarations) 2454ac_c_conftest_c99_globals=' 2455/* Does the compiler advertise C99 conformance? */ 2456#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L 2457# error "Compiler does not advertise C99 conformance" 2458#endif 2459 2460// See if C++-style comments work. 2461 2462#include <stdbool.h> 2463extern int puts (const char *); 2464extern int printf (const char *, ...); 2465extern int dprintf (int, const char *, ...); 2466extern void *malloc (size_t); 2467extern void free (void *); 2468 2469// Check varargs macros. These examples are taken from C99 6.10.3.5. 2470// dprintf is used instead of fprintf to avoid needing to declare 2471// FILE and stderr. 2472#define debug(...) dprintf (2, __VA_ARGS__) 2473#define showlist(...) puts (#__VA_ARGS__) 2474#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 2475static void 2476test_varargs_macros (void) 2477{ 2478 int x = 1234; 2479 int y = 5678; 2480 debug ("Flag"); 2481 debug ("X = %d\n", x); 2482 showlist (The first, second, and third items.); 2483 report (x>y, "x is %d but y is %d", x, y); 2484} 2485 2486// Check long long types. 2487#define BIG64 18446744073709551615ull 2488#define BIG32 4294967295ul 2489#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 2490#if !BIG_OK 2491 #error "your preprocessor is broken" 2492#endif 2493#if BIG_OK 2494#else 2495 #error "your preprocessor is broken" 2496#endif 2497static long long int bignum = -9223372036854775807LL; 2498static unsigned long long int ubignum = BIG64; 2499 2500struct incomplete_array 2501{ 2502 int datasize; 2503 double data[]; 2504}; 2505 2506struct named_init { 2507 int number; 2508 const wchar_t *name; 2509 double average; 2510}; 2511 2512typedef const char *ccp; 2513 2514static inline int 2515test_restrict (ccp restrict text) 2516{ 2517 // Iterate through items via the restricted pointer. 2518 // Also check for declarations in for loops. 2519 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i) 2520 continue; 2521 return 0; 2522} 2523 2524// Check varargs and va_copy. 2525static bool 2526test_varargs (const char *format, ...) 2527{ 2528 va_list args; 2529 va_start (args, format); 2530 va_list args_copy; 2531 va_copy (args_copy, args); 2532 2533 const char *str = ""; 2534 int number = 0; 2535 float fnumber = 0; 2536 2537 while (*format) 2538 { 2539 switch (*format++) 2540 { 2541 case '\''s'\'': // string 2542 str = va_arg (args_copy, const char *); 2543 break; 2544 case '\''d'\'': // int 2545 number = va_arg (args_copy, int); 2546 break; 2547 case '\''f'\'': // float 2548 fnumber = va_arg (args_copy, double); 2549 break; 2550 default: 2551 break; 2552 } 2553 } 2554 va_end (args_copy); 2555 va_end (args); 2556 2557 return *str && number && fnumber; 2558} 2559' 2560 2561# Test code for whether the C compiler supports C99 (body of main). 2562ac_c_conftest_c99_main=' 2563 // Check bool. 2564 _Bool success = false; 2565 success |= (argc != 0); 2566 2567 // Check restrict. 2568 if (test_restrict ("String literal") == 0) 2569 success = true; 2570 char *restrict newvar = "Another string"; 2571 2572 // Check varargs. 2573 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234); 2574 test_varargs_macros (); 2575 2576 // Check flexible array members. 2577 struct incomplete_array *ia = 2578 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 2579 ia->datasize = 10; 2580 for (int i = 0; i < ia->datasize; ++i) 2581 ia->data[i] = i * 1.234; 2582 // Work around memory leak warnings. 2583 free (ia); 2584 2585 // Check named initializers. 2586 struct named_init ni = { 2587 .number = 34, 2588 .name = L"Test wide string", 2589 .average = 543.34343, 2590 }; 2591 2592 ni.number = 58; 2593 2594 int dynamic_array[ni.number]; 2595 dynamic_array[0] = argv[0][0]; 2596 dynamic_array[ni.number - 1] = 543; 2597 2598 // work around unused variable warnings 2599 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\'' 2600 || dynamic_array[ni.number - 1] != 543); 2601' 2602 2603# Test code for whether the C compiler supports C11 (global declarations) 2604ac_c_conftest_c11_globals=' 2605/* Does the compiler advertise C11 conformance? */ 2606#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L 2607# error "Compiler does not advertise C11 conformance" 2608#endif 2609 2610// Check _Alignas. 2611char _Alignas (double) aligned_as_double; 2612char _Alignas (0) no_special_alignment; 2613extern char aligned_as_int; 2614char _Alignas (0) _Alignas (int) aligned_as_int; 2615 2616// Check _Alignof. 2617enum 2618{ 2619 int_alignment = _Alignof (int), 2620 int_array_alignment = _Alignof (int[100]), 2621 char_alignment = _Alignof (char) 2622}; 2623_Static_assert (0 < -_Alignof (int), "_Alignof is signed"); 2624 2625// Check _Noreturn. 2626int _Noreturn does_not_return (void) { for (;;) continue; } 2627 2628// Check _Static_assert. 2629struct test_static_assert 2630{ 2631 int x; 2632 _Static_assert (sizeof (int) <= sizeof (long int), 2633 "_Static_assert does not work in struct"); 2634 long int y; 2635}; 2636 2637// Check UTF-8 literals. 2638#define u8 syntax error! 2639char const utf8_literal[] = u8"happens to be ASCII" "another string"; 2640 2641// Check duplicate typedefs. 2642typedef long *long_ptr; 2643typedef long int *long_ptr; 2644typedef long_ptr long_ptr; 2645 2646// Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1. 2647struct anonymous 2648{ 2649 union { 2650 struct { int i; int j; }; 2651 struct { int k; long int l; } w; 2652 }; 2653 int m; 2654} v1; 2655' 2656 2657# Test code for whether the C compiler supports C11 (body of main). 2658ac_c_conftest_c11_main=' 2659 _Static_assert ((offsetof (struct anonymous, i) 2660 == offsetof (struct anonymous, w.k)), 2661 "Anonymous union alignment botch"); 2662 v1.i = 2; 2663 v1.w.k = 5; 2664 ok |= v1.i != 5; 2665' 2666 2667# Test code for whether the C compiler supports C11 (complete). 2668ac_c_conftest_c11_program="${ac_c_conftest_c89_globals} 2669${ac_c_conftest_c99_globals} 2670${ac_c_conftest_c11_globals} 2671 2672int 2673main (int argc, char **argv) 2674{ 2675 int ok = 0; 2676 ${ac_c_conftest_c89_main} 2677 ${ac_c_conftest_c99_main} 2678 ${ac_c_conftest_c11_main} 2679 return ok; 2680} 2681" 2682 2683# Test code for whether the C compiler supports C99 (complete). 2684ac_c_conftest_c99_program="${ac_c_conftest_c89_globals} 2685${ac_c_conftest_c99_globals} 2686 2687int 2688main (int argc, char **argv) 2689{ 2690 int ok = 0; 2691 ${ac_c_conftest_c89_main} 2692 ${ac_c_conftest_c99_main} 2693 return ok; 2694} 2695" 2696 2697# Test code for whether the C compiler supports C89 (complete). 2698ac_c_conftest_c89_program="${ac_c_conftest_c89_globals} 2699 2700int 2701main (int argc, char **argv) 2702{ 2703 int ok = 0; 2704 ${ac_c_conftest_c89_main} 2705 return ok; 2706} 2707" 2708 2709as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H" 2710as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H" 2711as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H" 2712as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H" 2713as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H" 2714as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H" 2715as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H" 2716as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H" 2717as_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H" 2718as_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H" 2719 2720# Auxiliary files required by this configure script. 2721ac_aux_files="config.guess config.sub ltmain.sh missing install-sh compile" 2722 2723# Locations in which to look for auxiliary files. 2724ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.." 2725 2726# Search for a directory containing all of the required auxiliary files, 2727# $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates. 2728# If we don't find one directory that contains all the files we need, 2729# we report the set of missing files from the *first* directory in 2730# $ac_aux_dir_candidates and give up. 2731ac_missing_aux_files="" 2732ac_first_candidate=: 2733printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5 2734as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2735as_found=false 2736for as_dir in $ac_aux_dir_candidates 2737do 2738 IFS=$as_save_IFS 2739 case $as_dir in #((( 2740 '') as_dir=./ ;; 2741 */) ;; 2742 *) as_dir=$as_dir/ ;; 2743 esac 2744 as_found=: 2745 2746 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5 2747 ac_aux_dir_found=yes 2748 ac_install_sh= 2749 for ac_aux in $ac_aux_files 2750 do 2751 # As a special case, if "install-sh" is required, that requirement 2752 # can be satisfied by any of "install-sh", "install.sh", or "shtool", 2753 # and $ac_install_sh is set appropriately for whichever one is found. 2754 if test x"$ac_aux" = x"install-sh" 2755 then 2756 if test -f "${as_dir}install-sh"; then 2757 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5 2758 ac_install_sh="${as_dir}install-sh -c" 2759 elif test -f "${as_dir}install.sh"; then 2760 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5 2761 ac_install_sh="${as_dir}install.sh -c" 2762 elif test -f "${as_dir}shtool"; then 2763 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5 2764 ac_install_sh="${as_dir}shtool install -c" 2765 else 2766 ac_aux_dir_found=no 2767 if $ac_first_candidate; then 2768 ac_missing_aux_files="${ac_missing_aux_files} install-sh" 2769 else 2770 break 2771 fi 2772 fi 2773 else 2774 if test -f "${as_dir}${ac_aux}"; then 2775 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5 2776 else 2777 ac_aux_dir_found=no 2778 if $ac_first_candidate; then 2779 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}" 2780 else 2781 break 2782 fi 2783 fi 2784 fi 2785 done 2786 if test "$ac_aux_dir_found" = yes; then 2787 ac_aux_dir="$as_dir" 2788 break 2789 fi 2790 ac_first_candidate=false 2791 2792 as_found=false 2793done 2794IFS=$as_save_IFS 2795if $as_found 2796then : 2797 2798else case e in #( 2799 e) as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 ;; 2800esac 2801fi 2802 2803 2804# These three variables are undocumented and unsupported, 2805# and are intended to be withdrawn in a future Autoconf release. 2806# They can cause serious problems if a builder's source tree is in a directory 2807# whose full name contains unusual characters. 2808if test -f "${ac_aux_dir}config.guess"; then 2809 ac_config_guess="$SHELL ${ac_aux_dir}config.guess" 2810fi 2811if test -f "${ac_aux_dir}config.sub"; then 2812 ac_config_sub="$SHELL ${ac_aux_dir}config.sub" 2813fi 2814if test -f "$ac_aux_dir/configure"; then 2815 ac_configure="$SHELL ${ac_aux_dir}configure" 2816fi 2817 2818# Check that the precious variables saved in the cache have kept the same 2819# value. 2820ac_cache_corrupted=false 2821for ac_var in $ac_precious_vars; do 2822 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2823 eval ac_new_set=\$ac_env_${ac_var}_set 2824 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2825 eval ac_new_val=\$ac_env_${ac_var}_value 2826 case $ac_old_set,$ac_new_set in 2827 set,) 2828 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&5 2829printf "%s\n" "$as_me: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&2;} 2830 ac_cache_corrupted=: ;; 2831 ,set) 2832 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was not set in the previous run" >&5 2833printf "%s\n" "$as_me: error: '$ac_var' was not set in the previous run" >&2;} 2834 ac_cache_corrupted=: ;; 2835 ,);; 2836 *) 2837 if test "x$ac_old_val" != "x$ac_new_val"; then 2838 # differences in whitespace do not lead to failure. 2839 ac_old_val_w=`echo x $ac_old_val` 2840 ac_new_val_w=`echo x $ac_new_val` 2841 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2842 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' has changed since the previous run:" >&5 2843printf "%s\n" "$as_me: error: '$ac_var' has changed since the previous run:" >&2;} 2844 ac_cache_corrupted=: 2845 else 2846 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&5 2847printf "%s\n" "$as_me: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&2;} 2848 eval $ac_var=\$ac_old_val 2849 fi 2850 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: '$ac_old_val'" >&5 2851printf "%s\n" "$as_me: former value: '$ac_old_val'" >&2;} 2852 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: '$ac_new_val'" >&5 2853printf "%s\n" "$as_me: current value: '$ac_new_val'" >&2;} 2854 fi;; 2855 esac 2856 # Pass precious variables to config.status. 2857 if test "$ac_new_set" = set; then 2858 case $ac_new_val in 2859 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2860 *) ac_arg=$ac_var=$ac_new_val ;; 2861 esac 2862 case " $ac_configure_args " in 2863 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2864 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2865 esac 2866 fi 2867done 2868if $ac_cache_corrupted; then 2869 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 2870printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 2871 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2872printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;} 2873 as_fn_error $? "run '${MAKE-make} distclean' and/or 'rm $cache_file' 2874 and start over" "$LINENO" 5 2875fi 2876## -------------------- ## 2877## Main body of script. ## 2878## -------------------- ## 2879 2880ac_ext=c 2881ac_cpp='$CPP $CPPFLAGS' 2882ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2883ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2884ac_compiler_gnu=$ac_cv_c_compiler_gnu 2885 2886 2887 2888ac_config_headers="$ac_config_headers config.h" 2889 2890 2891 2892# Set common system defines for POSIX extensions, such as _GNU_SOURCE 2893# Must be called before any macros that run the compiler (like 2894# LT_INIT or XORG_DEFAULT_OPTIONS) to avoid autoconf errors. 2895 2896 2897 2898 2899 2900 2901 2902 2903 2904 2905 2906# Expand $ac_aux_dir to an absolute path. 2907am_aux_dir=`cd "$ac_aux_dir" && pwd` 2908 2909ac_ext=c 2910ac_cpp='$CPP $CPPFLAGS' 2911ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2912ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2913ac_compiler_gnu=$ac_cv_c_compiler_gnu 2914if test -n "$ac_tool_prefix"; then 2915 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2916set dummy ${ac_tool_prefix}gcc; ac_word=$2 2917{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2918printf %s "checking for $ac_word... " >&6; } 2919if test ${ac_cv_prog_CC+y} 2920then : 2921 printf %s "(cached) " >&6 2922else case e in #( 2923 e) if test -n "$CC"; then 2924 ac_cv_prog_CC="$CC" # Let the user override the test. 2925else 2926as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2927for as_dir in $PATH 2928do 2929 IFS=$as_save_IFS 2930 case $as_dir in #((( 2931 '') as_dir=./ ;; 2932 */) ;; 2933 *) as_dir=$as_dir/ ;; 2934 esac 2935 for ac_exec_ext in '' $ac_executable_extensions; do 2936 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2937 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2938 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2939 break 2 2940 fi 2941done 2942 done 2943IFS=$as_save_IFS 2944 2945fi ;; 2946esac 2947fi 2948CC=$ac_cv_prog_CC 2949if test -n "$CC"; then 2950 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2951printf "%s\n" "$CC" >&6; } 2952else 2953 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2954printf "%s\n" "no" >&6; } 2955fi 2956 2957 2958fi 2959if test -z "$ac_cv_prog_CC"; then 2960 ac_ct_CC=$CC 2961 # Extract the first word of "gcc", so it can be a program name with args. 2962set dummy gcc; ac_word=$2 2963{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2964printf %s "checking for $ac_word... " >&6; } 2965if test ${ac_cv_prog_ac_ct_CC+y} 2966then : 2967 printf %s "(cached) " >&6 2968else case e in #( 2969 e) if test -n "$ac_ct_CC"; then 2970 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2971else 2972as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2973for as_dir in $PATH 2974do 2975 IFS=$as_save_IFS 2976 case $as_dir in #((( 2977 '') as_dir=./ ;; 2978 */) ;; 2979 *) as_dir=$as_dir/ ;; 2980 esac 2981 for ac_exec_ext in '' $ac_executable_extensions; do 2982 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2983 ac_cv_prog_ac_ct_CC="gcc" 2984 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2985 break 2 2986 fi 2987done 2988 done 2989IFS=$as_save_IFS 2990 2991fi ;; 2992esac 2993fi 2994ac_ct_CC=$ac_cv_prog_ac_ct_CC 2995if test -n "$ac_ct_CC"; then 2996 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2997printf "%s\n" "$ac_ct_CC" >&6; } 2998else 2999 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3000printf "%s\n" "no" >&6; } 3001fi 3002 3003 if test "x$ac_ct_CC" = x; then 3004 CC="" 3005 else 3006 case $cross_compiling:$ac_tool_warned in 3007yes:) 3008{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3009printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3010ac_tool_warned=yes ;; 3011esac 3012 CC=$ac_ct_CC 3013 fi 3014else 3015 CC="$ac_cv_prog_CC" 3016fi 3017 3018if test -z "$CC"; then 3019 if test -n "$ac_tool_prefix"; then 3020 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3021set dummy ${ac_tool_prefix}cc; ac_word=$2 3022{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3023printf %s "checking for $ac_word... " >&6; } 3024if test ${ac_cv_prog_CC+y} 3025then : 3026 printf %s "(cached) " >&6 3027else case e in #( 3028 e) if test -n "$CC"; then 3029 ac_cv_prog_CC="$CC" # Let the user override the test. 3030else 3031as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3032for as_dir in $PATH 3033do 3034 IFS=$as_save_IFS 3035 case $as_dir in #((( 3036 '') as_dir=./ ;; 3037 */) ;; 3038 *) as_dir=$as_dir/ ;; 3039 esac 3040 for ac_exec_ext in '' $ac_executable_extensions; do 3041 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3042 ac_cv_prog_CC="${ac_tool_prefix}cc" 3043 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3044 break 2 3045 fi 3046done 3047 done 3048IFS=$as_save_IFS 3049 3050fi ;; 3051esac 3052fi 3053CC=$ac_cv_prog_CC 3054if test -n "$CC"; then 3055 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3056printf "%s\n" "$CC" >&6; } 3057else 3058 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3059printf "%s\n" "no" >&6; } 3060fi 3061 3062 3063 fi 3064fi 3065if test -z "$CC"; then 3066 # Extract the first word of "cc", so it can be a program name with args. 3067set dummy cc; ac_word=$2 3068{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3069printf %s "checking for $ac_word... " >&6; } 3070if test ${ac_cv_prog_CC+y} 3071then : 3072 printf %s "(cached) " >&6 3073else case e in #( 3074 e) if test -n "$CC"; then 3075 ac_cv_prog_CC="$CC" # Let the user override the test. 3076else 3077 ac_prog_rejected=no 3078as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3079for as_dir in $PATH 3080do 3081 IFS=$as_save_IFS 3082 case $as_dir in #((( 3083 '') as_dir=./ ;; 3084 */) ;; 3085 *) as_dir=$as_dir/ ;; 3086 esac 3087 for ac_exec_ext in '' $ac_executable_extensions; do 3088 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3089 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3090 ac_prog_rejected=yes 3091 continue 3092 fi 3093 ac_cv_prog_CC="cc" 3094 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3095 break 2 3096 fi 3097done 3098 done 3099IFS=$as_save_IFS 3100 3101if test $ac_prog_rejected = yes; then 3102 # We found a bogon in the path, so make sure we never use it. 3103 set dummy $ac_cv_prog_CC 3104 shift 3105 if test $# != 0; then 3106 # We chose a different compiler from the bogus one. 3107 # However, it has the same basename, so the bogon will be chosen 3108 # first if we set CC to just the basename; use the full file name. 3109 shift 3110 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@" 3111 fi 3112fi 3113fi ;; 3114esac 3115fi 3116CC=$ac_cv_prog_CC 3117if test -n "$CC"; then 3118 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3119printf "%s\n" "$CC" >&6; } 3120else 3121 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3122printf "%s\n" "no" >&6; } 3123fi 3124 3125 3126fi 3127if test -z "$CC"; then 3128 if test -n "$ac_tool_prefix"; then 3129 for ac_prog in cl.exe 3130 do 3131 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3132set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3133{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3134printf %s "checking for $ac_word... " >&6; } 3135if test ${ac_cv_prog_CC+y} 3136then : 3137 printf %s "(cached) " >&6 3138else case e in #( 3139 e) if test -n "$CC"; then 3140 ac_cv_prog_CC="$CC" # Let the user override the test. 3141else 3142as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3143for as_dir in $PATH 3144do 3145 IFS=$as_save_IFS 3146 case $as_dir in #((( 3147 '') as_dir=./ ;; 3148 */) ;; 3149 *) as_dir=$as_dir/ ;; 3150 esac 3151 for ac_exec_ext in '' $ac_executable_extensions; do 3152 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3153 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3154 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3155 break 2 3156 fi 3157done 3158 done 3159IFS=$as_save_IFS 3160 3161fi ;; 3162esac 3163fi 3164CC=$ac_cv_prog_CC 3165if test -n "$CC"; then 3166 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3167printf "%s\n" "$CC" >&6; } 3168else 3169 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3170printf "%s\n" "no" >&6; } 3171fi 3172 3173 3174 test -n "$CC" && break 3175 done 3176fi 3177if test -z "$CC"; then 3178 ac_ct_CC=$CC 3179 for ac_prog in cl.exe 3180do 3181 # Extract the first word of "$ac_prog", so it can be a program name with args. 3182set dummy $ac_prog; ac_word=$2 3183{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3184printf %s "checking for $ac_word... " >&6; } 3185if test ${ac_cv_prog_ac_ct_CC+y} 3186then : 3187 printf %s "(cached) " >&6 3188else case e in #( 3189 e) if test -n "$ac_ct_CC"; then 3190 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3191else 3192as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3193for as_dir in $PATH 3194do 3195 IFS=$as_save_IFS 3196 case $as_dir in #((( 3197 '') as_dir=./ ;; 3198 */) ;; 3199 *) as_dir=$as_dir/ ;; 3200 esac 3201 for ac_exec_ext in '' $ac_executable_extensions; do 3202 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3203 ac_cv_prog_ac_ct_CC="$ac_prog" 3204 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3205 break 2 3206 fi 3207done 3208 done 3209IFS=$as_save_IFS 3210 3211fi ;; 3212esac 3213fi 3214ac_ct_CC=$ac_cv_prog_ac_ct_CC 3215if test -n "$ac_ct_CC"; then 3216 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3217printf "%s\n" "$ac_ct_CC" >&6; } 3218else 3219 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3220printf "%s\n" "no" >&6; } 3221fi 3222 3223 3224 test -n "$ac_ct_CC" && break 3225done 3226 3227 if test "x$ac_ct_CC" = x; then 3228 CC="" 3229 else 3230 case $cross_compiling:$ac_tool_warned in 3231yes:) 3232{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3233printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3234ac_tool_warned=yes ;; 3235esac 3236 CC=$ac_ct_CC 3237 fi 3238fi 3239 3240fi 3241if test -z "$CC"; then 3242 if test -n "$ac_tool_prefix"; then 3243 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args. 3244set dummy ${ac_tool_prefix}clang; ac_word=$2 3245{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3246printf %s "checking for $ac_word... " >&6; } 3247if test ${ac_cv_prog_CC+y} 3248then : 3249 printf %s "(cached) " >&6 3250else case e in #( 3251 e) if test -n "$CC"; then 3252 ac_cv_prog_CC="$CC" # Let the user override the test. 3253else 3254as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3255for as_dir in $PATH 3256do 3257 IFS=$as_save_IFS 3258 case $as_dir in #((( 3259 '') as_dir=./ ;; 3260 */) ;; 3261 *) as_dir=$as_dir/ ;; 3262 esac 3263 for ac_exec_ext in '' $ac_executable_extensions; do 3264 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3265 ac_cv_prog_CC="${ac_tool_prefix}clang" 3266 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3267 break 2 3268 fi 3269done 3270 done 3271IFS=$as_save_IFS 3272 3273fi ;; 3274esac 3275fi 3276CC=$ac_cv_prog_CC 3277if test -n "$CC"; then 3278 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3279printf "%s\n" "$CC" >&6; } 3280else 3281 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3282printf "%s\n" "no" >&6; } 3283fi 3284 3285 3286fi 3287if test -z "$ac_cv_prog_CC"; then 3288 ac_ct_CC=$CC 3289 # Extract the first word of "clang", so it can be a program name with args. 3290set dummy clang; ac_word=$2 3291{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3292printf %s "checking for $ac_word... " >&6; } 3293if test ${ac_cv_prog_ac_ct_CC+y} 3294then : 3295 printf %s "(cached) " >&6 3296else case e in #( 3297 e) if test -n "$ac_ct_CC"; then 3298 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3299else 3300as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3301for as_dir in $PATH 3302do 3303 IFS=$as_save_IFS 3304 case $as_dir in #((( 3305 '') as_dir=./ ;; 3306 */) ;; 3307 *) as_dir=$as_dir/ ;; 3308 esac 3309 for ac_exec_ext in '' $ac_executable_extensions; do 3310 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3311 ac_cv_prog_ac_ct_CC="clang" 3312 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3313 break 2 3314 fi 3315done 3316 done 3317IFS=$as_save_IFS 3318 3319fi ;; 3320esac 3321fi 3322ac_ct_CC=$ac_cv_prog_ac_ct_CC 3323if test -n "$ac_ct_CC"; then 3324 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3325printf "%s\n" "$ac_ct_CC" >&6; } 3326else 3327 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3328printf "%s\n" "no" >&6; } 3329fi 3330 3331 if test "x$ac_ct_CC" = x; then 3332 CC="" 3333 else 3334 case $cross_compiling:$ac_tool_warned in 3335yes:) 3336{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3337printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3338ac_tool_warned=yes ;; 3339esac 3340 CC=$ac_ct_CC 3341 fi 3342else 3343 CC="$ac_cv_prog_CC" 3344fi 3345 3346fi 3347 3348 3349test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 3350printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 3351as_fn_error $? "no acceptable C compiler found in \$PATH 3352See 'config.log' for more details" "$LINENO" 5; } 3353 3354# Provide some information about the compiler. 3355printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3356set X $ac_compile 3357ac_compiler=$2 3358for ac_option in --version -v -V -qversion -version; do 3359 { { ac_try="$ac_compiler $ac_option >&5" 3360case "(($ac_try" in 3361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3362 *) ac_try_echo=$ac_try;; 3363esac 3364eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3365printf "%s\n" "$ac_try_echo"; } >&5 3366 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3367 ac_status=$? 3368 if test -s conftest.err; then 3369 sed '10a\ 3370... rest of stderr output deleted ... 3371 10q' conftest.err >conftest.er1 3372 cat conftest.er1 >&5 3373 fi 3374 rm -f conftest.er1 conftest.err 3375 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3376 test $ac_status = 0; } 3377done 3378 3379cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3380/* end confdefs.h. */ 3381 3382int 3383main (void) 3384{ 3385 3386 ; 3387 return 0; 3388} 3389_ACEOF 3390ac_clean_files_save=$ac_clean_files 3391ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3392# Try to create an executable without -o first, disregard a.out. 3393# It will help us diagnose broken compilers, and finding out an intuition 3394# of exeext. 3395{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3396printf %s "checking whether the C compiler works... " >&6; } 3397ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3398 3399# The possible output files: 3400ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3401 3402ac_rmfiles= 3403for ac_file in $ac_files 3404do 3405 case $ac_file in 3406 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3407 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3408 esac 3409done 3410rm -f $ac_rmfiles 3411 3412if { { ac_try="$ac_link_default" 3413case "(($ac_try" in 3414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3415 *) ac_try_echo=$ac_try;; 3416esac 3417eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3418printf "%s\n" "$ac_try_echo"; } >&5 3419 (eval "$ac_link_default") 2>&5 3420 ac_status=$? 3421 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3422 test $ac_status = 0; } 3423then : 3424 # Autoconf-2.13 could set the ac_cv_exeext variable to 'no'. 3425# So ignore a value of 'no', otherwise this would lead to 'EXEEXT = no' 3426# in a Makefile. We should not override ac_cv_exeext if it was cached, 3427# so that the user can short-circuit this test for compilers unknown to 3428# Autoconf. 3429for ac_file in $ac_files '' 3430do 3431 test -f "$ac_file" || continue 3432 case $ac_file in 3433 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3434 ;; 3435 [ab].out ) 3436 # We found the default executable, but exeext='' is most 3437 # certainly right. 3438 break;; 3439 *.* ) 3440 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no; 3441 then :; else 3442 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3443 fi 3444 # We set ac_cv_exeext here because the later test for it is not 3445 # safe: cross compilers may not add the suffix if given an '-o' 3446 # argument, so we may need to know it at that point already. 3447 # Even if this section looks crufty: it has the advantage of 3448 # actually working. 3449 break;; 3450 * ) 3451 break;; 3452 esac 3453done 3454test "$ac_cv_exeext" = no && ac_cv_exeext= 3455 3456else case e in #( 3457 e) ac_file='' ;; 3458esac 3459fi 3460if test -z "$ac_file" 3461then : 3462 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3463printf "%s\n" "no" >&6; } 3464printf "%s\n" "$as_me: failed program was:" >&5 3465sed 's/^/| /' conftest.$ac_ext >&5 3466 3467{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 3468printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 3469as_fn_error 77 "C compiler cannot create executables 3470See 'config.log' for more details" "$LINENO" 5; } 3471else case e in #( 3472 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3473printf "%s\n" "yes" >&6; } ;; 3474esac 3475fi 3476{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3477printf %s "checking for C compiler default output file name... " >&6; } 3478{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3479printf "%s\n" "$ac_file" >&6; } 3480ac_exeext=$ac_cv_exeext 3481 3482rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3483ac_clean_files=$ac_clean_files_save 3484{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3485printf %s "checking for suffix of executables... " >&6; } 3486if { { ac_try="$ac_link" 3487case "(($ac_try" in 3488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3489 *) ac_try_echo=$ac_try;; 3490esac 3491eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3492printf "%s\n" "$ac_try_echo"; } >&5 3493 (eval "$ac_link") 2>&5 3494 ac_status=$? 3495 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3496 test $ac_status = 0; } 3497then : 3498 # If both 'conftest.exe' and 'conftest' are 'present' (well, observable) 3499# catch 'conftest.exe'. For instance with Cygwin, 'ls conftest' will 3500# work properly (i.e., refer to 'conftest.exe'), while it won't with 3501# 'rm'. 3502for ac_file in conftest.exe conftest conftest.*; do 3503 test -f "$ac_file" || continue 3504 case $ac_file in 3505 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3506 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3507 break;; 3508 * ) break;; 3509 esac 3510done 3511else case e in #( 3512 e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 3513printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 3514as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3515See 'config.log' for more details" "$LINENO" 5; } ;; 3516esac 3517fi 3518rm -f conftest conftest$ac_cv_exeext 3519{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3520printf "%s\n" "$ac_cv_exeext" >&6; } 3521 3522rm -f conftest.$ac_ext 3523EXEEXT=$ac_cv_exeext 3524ac_exeext=$EXEEXT 3525cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3526/* end confdefs.h. */ 3527#include <stdio.h> 3528int 3529main (void) 3530{ 3531FILE *f = fopen ("conftest.out", "w"); 3532 if (!f) 3533 return 1; 3534 return ferror (f) || fclose (f) != 0; 3535 3536 ; 3537 return 0; 3538} 3539_ACEOF 3540ac_clean_files="$ac_clean_files conftest.out" 3541# Check that the compiler produces executables we can run. If not, either 3542# the compiler is broken, or we cross compile. 3543{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3544printf %s "checking whether we are cross compiling... " >&6; } 3545if test "$cross_compiling" != yes; then 3546 { { ac_try="$ac_link" 3547case "(($ac_try" in 3548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3549 *) ac_try_echo=$ac_try;; 3550esac 3551eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3552printf "%s\n" "$ac_try_echo"; } >&5 3553 (eval "$ac_link") 2>&5 3554 ac_status=$? 3555 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3556 test $ac_status = 0; } 3557 if { ac_try='./conftest$ac_cv_exeext' 3558 { { case "(($ac_try" in 3559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3560 *) ac_try_echo=$ac_try;; 3561esac 3562eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3563printf "%s\n" "$ac_try_echo"; } >&5 3564 (eval "$ac_try") 2>&5 3565 ac_status=$? 3566 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3567 test $ac_status = 0; }; }; then 3568 cross_compiling=no 3569 else 3570 if test "$cross_compiling" = maybe; then 3571 cross_compiling=yes 3572 else 3573 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 3574printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 3575as_fn_error 77 "cannot run C compiled programs. 3576If you meant to cross compile, use '--host'. 3577See 'config.log' for more details" "$LINENO" 5; } 3578 fi 3579 fi 3580fi 3581{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3582printf "%s\n" "$cross_compiling" >&6; } 3583 3584rm -f conftest.$ac_ext conftest$ac_cv_exeext \ 3585 conftest.o conftest.obj conftest.out 3586ac_clean_files=$ac_clean_files_save 3587{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3588printf %s "checking for suffix of object files... " >&6; } 3589if test ${ac_cv_objext+y} 3590then : 3591 printf %s "(cached) " >&6 3592else case e in #( 3593 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3594/* end confdefs.h. */ 3595 3596int 3597main (void) 3598{ 3599 3600 ; 3601 return 0; 3602} 3603_ACEOF 3604rm -f conftest.o conftest.obj 3605if { { ac_try="$ac_compile" 3606case "(($ac_try" in 3607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3608 *) ac_try_echo=$ac_try;; 3609esac 3610eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3611printf "%s\n" "$ac_try_echo"; } >&5 3612 (eval "$ac_compile") 2>&5 3613 ac_status=$? 3614 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3615 test $ac_status = 0; } 3616then : 3617 for ac_file in conftest.o conftest.obj conftest.*; do 3618 test -f "$ac_file" || continue; 3619 case $ac_file in 3620 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3621 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3622 break;; 3623 esac 3624done 3625else case e in #( 3626 e) printf "%s\n" "$as_me: failed program was:" >&5 3627sed 's/^/| /' conftest.$ac_ext >&5 3628 3629{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 3630printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 3631as_fn_error $? "cannot compute suffix of object files: cannot compile 3632See 'config.log' for more details" "$LINENO" 5; } ;; 3633esac 3634fi 3635rm -f conftest.$ac_cv_objext conftest.$ac_ext ;; 3636esac 3637fi 3638{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3639printf "%s\n" "$ac_cv_objext" >&6; } 3640OBJEXT=$ac_cv_objext 3641ac_objext=$OBJEXT 3642{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5 3643printf %s "checking whether the compiler supports GNU C... " >&6; } 3644if test ${ac_cv_c_compiler_gnu+y} 3645then : 3646 printf %s "(cached) " >&6 3647else case e in #( 3648 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3649/* end confdefs.h. */ 3650 3651int 3652main (void) 3653{ 3654#ifndef __GNUC__ 3655 choke me 3656#endif 3657 3658 ; 3659 return 0; 3660} 3661_ACEOF 3662if ac_fn_c_try_compile "$LINENO" 3663then : 3664 ac_compiler_gnu=yes 3665else case e in #( 3666 e) ac_compiler_gnu=no ;; 3667esac 3668fi 3669rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 3670ac_cv_c_compiler_gnu=$ac_compiler_gnu 3671 ;; 3672esac 3673fi 3674{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3675printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; } 3676ac_compiler_gnu=$ac_cv_c_compiler_gnu 3677 3678if test $ac_compiler_gnu = yes; then 3679 GCC=yes 3680else 3681 GCC= 3682fi 3683ac_test_CFLAGS=${CFLAGS+y} 3684ac_save_CFLAGS=$CFLAGS 3685{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3686printf %s "checking whether $CC accepts -g... " >&6; } 3687if test ${ac_cv_prog_cc_g+y} 3688then : 3689 printf %s "(cached) " >&6 3690else case e in #( 3691 e) ac_save_c_werror_flag=$ac_c_werror_flag 3692 ac_c_werror_flag=yes 3693 ac_cv_prog_cc_g=no 3694 CFLAGS="-g" 3695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3696/* end confdefs.h. */ 3697 3698int 3699main (void) 3700{ 3701 3702 ; 3703 return 0; 3704} 3705_ACEOF 3706if ac_fn_c_try_compile "$LINENO" 3707then : 3708 ac_cv_prog_cc_g=yes 3709else case e in #( 3710 e) CFLAGS="" 3711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3712/* end confdefs.h. */ 3713 3714int 3715main (void) 3716{ 3717 3718 ; 3719 return 0; 3720} 3721_ACEOF 3722if ac_fn_c_try_compile "$LINENO" 3723then : 3724 3725else case e in #( 3726 e) ac_c_werror_flag=$ac_save_c_werror_flag 3727 CFLAGS="-g" 3728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3729/* end confdefs.h. */ 3730 3731int 3732main (void) 3733{ 3734 3735 ; 3736 return 0; 3737} 3738_ACEOF 3739if ac_fn_c_try_compile "$LINENO" 3740then : 3741 ac_cv_prog_cc_g=yes 3742fi 3743rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 3744esac 3745fi 3746rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 3747esac 3748fi 3749rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 3750 ac_c_werror_flag=$ac_save_c_werror_flag ;; 3751esac 3752fi 3753{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3754printf "%s\n" "$ac_cv_prog_cc_g" >&6; } 3755if test $ac_test_CFLAGS; then 3756 CFLAGS=$ac_save_CFLAGS 3757elif test $ac_cv_prog_cc_g = yes; then 3758 if test "$GCC" = yes; then 3759 CFLAGS="-g -O2" 3760 else 3761 CFLAGS="-g" 3762 fi 3763else 3764 if test "$GCC" = yes; then 3765 CFLAGS="-O2" 3766 else 3767 CFLAGS= 3768 fi 3769fi 3770ac_prog_cc_stdc=no 3771if test x$ac_prog_cc_stdc = xno 3772then : 3773 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5 3774printf %s "checking for $CC option to enable C11 features... " >&6; } 3775if test ${ac_cv_prog_cc_c11+y} 3776then : 3777 printf %s "(cached) " >&6 3778else case e in #( 3779 e) ac_cv_prog_cc_c11=no 3780ac_save_CC=$CC 3781cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3782/* end confdefs.h. */ 3783$ac_c_conftest_c11_program 3784_ACEOF 3785for ac_arg in '' -std=gnu11 3786do 3787 CC="$ac_save_CC $ac_arg" 3788 if ac_fn_c_try_compile "$LINENO" 3789then : 3790 ac_cv_prog_cc_c11=$ac_arg 3791fi 3792rm -f core conftest.err conftest.$ac_objext conftest.beam 3793 test "x$ac_cv_prog_cc_c11" != "xno" && break 3794done 3795rm -f conftest.$ac_ext 3796CC=$ac_save_CC ;; 3797esac 3798fi 3799 3800if test "x$ac_cv_prog_cc_c11" = xno 3801then : 3802 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3803printf "%s\n" "unsupported" >&6; } 3804else case e in #( 3805 e) if test "x$ac_cv_prog_cc_c11" = x 3806then : 3807 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3808printf "%s\n" "none needed" >&6; } 3809else case e in #( 3810 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5 3811printf "%s\n" "$ac_cv_prog_cc_c11" >&6; } 3812 CC="$CC $ac_cv_prog_cc_c11" ;; 3813esac 3814fi 3815 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11 3816 ac_prog_cc_stdc=c11 ;; 3817esac 3818fi 3819fi 3820if test x$ac_prog_cc_stdc = xno 3821then : 3822 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5 3823printf %s "checking for $CC option to enable C99 features... " >&6; } 3824if test ${ac_cv_prog_cc_c99+y} 3825then : 3826 printf %s "(cached) " >&6 3827else case e in #( 3828 e) ac_cv_prog_cc_c99=no 3829ac_save_CC=$CC 3830cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3831/* end confdefs.h. */ 3832$ac_c_conftest_c99_program 3833_ACEOF 3834for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99= 3835do 3836 CC="$ac_save_CC $ac_arg" 3837 if ac_fn_c_try_compile "$LINENO" 3838then : 3839 ac_cv_prog_cc_c99=$ac_arg 3840fi 3841rm -f core conftest.err conftest.$ac_objext conftest.beam 3842 test "x$ac_cv_prog_cc_c99" != "xno" && break 3843done 3844rm -f conftest.$ac_ext 3845CC=$ac_save_CC ;; 3846esac 3847fi 3848 3849if test "x$ac_cv_prog_cc_c99" = xno 3850then : 3851 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3852printf "%s\n" "unsupported" >&6; } 3853else case e in #( 3854 e) if test "x$ac_cv_prog_cc_c99" = x 3855then : 3856 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3857printf "%s\n" "none needed" >&6; } 3858else case e in #( 3859 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 3860printf "%s\n" "$ac_cv_prog_cc_c99" >&6; } 3861 CC="$CC $ac_cv_prog_cc_c99" ;; 3862esac 3863fi 3864 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 3865 ac_prog_cc_stdc=c99 ;; 3866esac 3867fi 3868fi 3869if test x$ac_prog_cc_stdc = xno 3870then : 3871 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5 3872printf %s "checking for $CC option to enable C89 features... " >&6; } 3873if test ${ac_cv_prog_cc_c89+y} 3874then : 3875 printf %s "(cached) " >&6 3876else case e in #( 3877 e) ac_cv_prog_cc_c89=no 3878ac_save_CC=$CC 3879cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3880/* end confdefs.h. */ 3881$ac_c_conftest_c89_program 3882_ACEOF 3883for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3884do 3885 CC="$ac_save_CC $ac_arg" 3886 if ac_fn_c_try_compile "$LINENO" 3887then : 3888 ac_cv_prog_cc_c89=$ac_arg 3889fi 3890rm -f core conftest.err conftest.$ac_objext conftest.beam 3891 test "x$ac_cv_prog_cc_c89" != "xno" && break 3892done 3893rm -f conftest.$ac_ext 3894CC=$ac_save_CC ;; 3895esac 3896fi 3897 3898if test "x$ac_cv_prog_cc_c89" = xno 3899then : 3900 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3901printf "%s\n" "unsupported" >&6; } 3902else case e in #( 3903 e) if test "x$ac_cv_prog_cc_c89" = x 3904then : 3905 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3906printf "%s\n" "none needed" >&6; } 3907else case e in #( 3908 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3909printf "%s\n" "$ac_cv_prog_cc_c89" >&6; } 3910 CC="$CC $ac_cv_prog_cc_c89" ;; 3911esac 3912fi 3913 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 3914 ac_prog_cc_stdc=c89 ;; 3915esac 3916fi 3917fi 3918 3919ac_ext=c 3920ac_cpp='$CPP $CPPFLAGS' 3921ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3922ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3923ac_compiler_gnu=$ac_cv_c_compiler_gnu 3924 3925 3926 ac_ext=c 3927ac_cpp='$CPP $CPPFLAGS' 3928ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3929ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3930ac_compiler_gnu=$ac_cv_c_compiler_gnu 3931{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 3932printf %s "checking whether $CC understands -c and -o together... " >&6; } 3933if test ${am_cv_prog_cc_c_o+y} 3934then : 3935 printf %s "(cached) " >&6 3936else case e in #( 3937 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3938/* end confdefs.h. */ 3939 3940int 3941main (void) 3942{ 3943 3944 ; 3945 return 0; 3946} 3947_ACEOF 3948 # Make sure it works both with $CC and with simple cc. 3949 # Following AC_PROG_CC_C_O, we do the test twice because some 3950 # compilers refuse to overwrite an existing .o file with -o, 3951 # though they will create one. 3952 am_cv_prog_cc_c_o=yes 3953 for am_i in 1 2; do 3954 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 3955 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 3956 ac_status=$? 3957 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3958 (exit $ac_status); } \ 3959 && test -f conftest2.$ac_objext; then 3960 : OK 3961 else 3962 am_cv_prog_cc_c_o=no 3963 break 3964 fi 3965 done 3966 rm -f core conftest* 3967 unset am_i ;; 3968esac 3969fi 3970{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 3971printf "%s\n" "$am_cv_prog_cc_c_o" >&6; } 3972if test "$am_cv_prog_cc_c_o" != yes; then 3973 # Losing compiler, so override with the script. 3974 # FIXME: It is wrong to rewrite CC. 3975 # But if we don't then we get into trouble of one sort or another. 3976 # A longer-term fix would be to have automake use am__CC in this case, 3977 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 3978 CC="$am_aux_dir/compile $CC" 3979fi 3980ac_ext=c 3981ac_cpp='$CPP $CPPFLAGS' 3982ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3983ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3984ac_compiler_gnu=$ac_cv_c_compiler_gnu 3985 3986 3987 3988ac_header= ac_cache= 3989for ac_item in $ac_header_c_list 3990do 3991 if test $ac_cache; then 3992 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default" 3993 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then 3994 printf "%s\n" "#define $ac_item 1" >> confdefs.h 3995 fi 3996 ac_header= ac_cache= 3997 elif test $ac_header; then 3998 ac_cache=$ac_item 3999 else 4000 ac_header=$ac_item 4001 fi 4002done 4003 4004 4005 4006 4007 4008 4009 4010 4011if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes 4012then : 4013 4014printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h 4015 4016fi 4017 4018 4019 4020 4021 4022 4023 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 4024printf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; } 4025if test ${ac_cv_safe_to_define___extensions__+y} 4026then : 4027 printf %s "(cached) " >&6 4028else case e in #( 4029 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4030/* end confdefs.h. */ 4031 4032# define __EXTENSIONS__ 1 4033 $ac_includes_default 4034int 4035main (void) 4036{ 4037 4038 ; 4039 return 0; 4040} 4041_ACEOF 4042if ac_fn_c_try_compile "$LINENO" 4043then : 4044 ac_cv_safe_to_define___extensions__=yes 4045else case e in #( 4046 e) ac_cv_safe_to_define___extensions__=no ;; 4047esac 4048fi 4049rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 4050esac 4051fi 4052{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 4053printf "%s\n" "$ac_cv_safe_to_define___extensions__" >&6; } 4054 4055 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5 4056printf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; } 4057if test ${ac_cv_should_define__xopen_source+y} 4058then : 4059 printf %s "(cached) " >&6 4060else case e in #( 4061 e) ac_cv_should_define__xopen_source=no 4062 if test $ac_cv_header_wchar_h = yes 4063then : 4064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4065/* end confdefs.h. */ 4066 4067 #include <wchar.h> 4068 mbstate_t x; 4069int 4070main (void) 4071{ 4072 4073 ; 4074 return 0; 4075} 4076_ACEOF 4077if ac_fn_c_try_compile "$LINENO" 4078then : 4079 4080else case e in #( 4081 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4082/* end confdefs.h. */ 4083 4084 #define _XOPEN_SOURCE 500 4085 #include <wchar.h> 4086 mbstate_t x; 4087int 4088main (void) 4089{ 4090 4091 ; 4092 return 0; 4093} 4094_ACEOF 4095if ac_fn_c_try_compile "$LINENO" 4096then : 4097 ac_cv_should_define__xopen_source=yes 4098fi 4099rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 4100esac 4101fi 4102rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4103fi ;; 4104esac 4105fi 4106{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5 4107printf "%s\n" "$ac_cv_should_define__xopen_source" >&6; } 4108 4109 printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h 4110 4111 printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h 4112 4113 printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h 4114 4115 printf "%s\n" "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h 4116 4117 printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h 4118 4119 printf "%s\n" "#define _OPENBSD_SOURCE 1" >>confdefs.h 4120 4121 printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h 4122 4123 printf "%s\n" "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h 4124 4125 printf "%s\n" "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h 4126 4127 printf "%s\n" "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h 4128 4129 printf "%s\n" "#define __STDC_WANT_IEC_60559_EXT__ 1" >>confdefs.h 4130 4131 printf "%s\n" "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h 4132 4133 printf "%s\n" "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h 4134 4135 printf "%s\n" "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h 4136 4137 printf "%s\n" "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h 4138 4139 printf "%s\n" "#define _TANDEM_SOURCE 1" >>confdefs.h 4140 4141 if test $ac_cv_header_minix_config_h = yes 4142then : 4143 MINIX=yes 4144 printf "%s\n" "#define _MINIX 1" >>confdefs.h 4145 4146 printf "%s\n" "#define _POSIX_SOURCE 1" >>confdefs.h 4147 4148 printf "%s\n" "#define _POSIX_1_SOURCE 2" >>confdefs.h 4149 4150else case e in #( 4151 e) MINIX= ;; 4152esac 4153fi 4154 if test $ac_cv_safe_to_define___extensions__ = yes 4155then : 4156 printf "%s\n" "#define __EXTENSIONS__ 1" >>confdefs.h 4157 4158fi 4159 if test $ac_cv_should_define__xopen_source = yes 4160then : 4161 printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h 4162 4163fi 4164 4165 4166# Initialize Automake 4167am__api_version='1.17' 4168 4169 4170 # Find a good install program. We prefer a C program (faster), 4171# so one script is as good as another. But avoid the broken or 4172# incompatible versions: 4173# SysV /etc/install, /usr/sbin/install 4174# SunOS /usr/etc/install 4175# IRIX /sbin/install 4176# AIX /bin/install 4177# AmigaOS /C/install, which installs bootblocks on floppy discs 4178# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 4179# AFS /usr/afsws/bin/install, which mishandles nonexistent args 4180# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 4181# OS/2's system install, which has a completely different semantic 4182# ./install, which can be erroneously created by make from ./install.sh. 4183# Reject install programs that cannot install multiple files. 4184{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 4185printf %s "checking for a BSD-compatible install... " >&6; } 4186if test -z "$INSTALL"; then 4187if test ${ac_cv_path_install+y} 4188then : 4189 printf %s "(cached) " >&6 4190else case e in #( 4191 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4192for as_dir in $PATH 4193do 4194 IFS=$as_save_IFS 4195 case $as_dir in #((( 4196 '') as_dir=./ ;; 4197 */) ;; 4198 *) as_dir=$as_dir/ ;; 4199 esac 4200 # Account for fact that we put trailing slashes in our PATH walk. 4201case $as_dir in #(( 4202 ./ | /[cC]/* | \ 4203 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 4204 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 4205 /usr/ucb/* ) ;; 4206 *) 4207 # OSF1 and SCO ODT 3.0 have their own names for install. 4208 # Don't use installbsd from OSF since it installs stuff as root 4209 # by default. 4210 for ac_prog in ginstall scoinst install; do 4211 for ac_exec_ext in '' $ac_executable_extensions; do 4212 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then 4213 if test $ac_prog = install && 4214 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 4215 # AIX install. It has an incompatible calling convention. 4216 : 4217 elif test $ac_prog = install && 4218 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 4219 # program-specific install script used by HP pwplus--don't use. 4220 : 4221 else 4222 rm -rf conftest.one conftest.two conftest.dir 4223 echo one > conftest.one 4224 echo two > conftest.two 4225 mkdir conftest.dir 4226 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" && 4227 test -s conftest.one && test -s conftest.two && 4228 test -s conftest.dir/conftest.one && 4229 test -s conftest.dir/conftest.two 4230 then 4231 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c" 4232 break 3 4233 fi 4234 fi 4235 fi 4236 done 4237 done 4238 ;; 4239esac 4240 4241 done 4242IFS=$as_save_IFS 4243 4244rm -rf conftest.one conftest.two conftest.dir 4245 ;; 4246esac 4247fi 4248 if test ${ac_cv_path_install+y}; then 4249 INSTALL=$ac_cv_path_install 4250 else 4251 # As a last resort, use the slow shell script. Don't cache a 4252 # value for INSTALL within a source directory, because that will 4253 # break other packages using the cache if that directory is 4254 # removed, or if the value is a relative name. 4255 INSTALL=$ac_install_sh 4256 fi 4257fi 4258{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 4259printf "%s\n" "$INSTALL" >&6; } 4260 4261# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 4262# It thinks the first close brace ends the variable substitution. 4263test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 4264 4265test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 4266 4267test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 4268 4269{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether sleep supports fractional seconds" >&5 4270printf %s "checking whether sleep supports fractional seconds... " >&6; } 4271if test ${am_cv_sleep_fractional_seconds+y} 4272then : 4273 printf %s "(cached) " >&6 4274else case e in #( 4275 e) if sleep 0.001 2>/dev/null 4276then : 4277 am_cv_sleep_fractional_seconds=yes 4278else case e in #( 4279 e) am_cv_sleep_fractional_seconds=no ;; 4280esac 4281fi 4282 ;; 4283esac 4284fi 4285{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_sleep_fractional_seconds" >&5 4286printf "%s\n" "$am_cv_sleep_fractional_seconds" >&6; } 4287 4288{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking filesystem timestamp resolution" >&5 4289printf %s "checking filesystem timestamp resolution... " >&6; } 4290if test ${am_cv_filesystem_timestamp_resolution+y} 4291then : 4292 printf %s "(cached) " >&6 4293else case e in #( 4294 e) # Default to the worst case. 4295am_cv_filesystem_timestamp_resolution=2 4296 4297# Only try to go finer than 1 sec if sleep can do it. 4298# Don't try 1 sec, because if 0.01 sec and 0.1 sec don't work, 4299# - 1 sec is not much of a win compared to 2 sec, and 4300# - it takes 2 seconds to perform the test whether 1 sec works. 4301# 4302# Instead, just use the default 2s on platforms that have 1s resolution, 4303# accept the extra 1s delay when using $sleep in the Automake tests, in 4304# exchange for not incurring the 2s delay for running the test for all 4305# packages. 4306# 4307am_try_resolutions= 4308if test "$am_cv_sleep_fractional_seconds" = yes; then 4309 # Even a millisecond often causes a bunch of false positives, 4310 # so just try a hundredth of a second. The time saved between .001 and 4311 # .01 is not terribly consequential. 4312 am_try_resolutions="0.01 0.1 $am_try_resolutions" 4313fi 4314 4315# In order to catch current-generation FAT out, we must *modify* files 4316# that already exist; the *creation* timestamp is finer. Use names 4317# that make ls -t sort them differently when they have equal 4318# timestamps than when they have distinct timestamps, keeping 4319# in mind that ls -t prints the *newest* file first. 4320rm -f conftest.ts? 4321: > conftest.ts1 4322: > conftest.ts2 4323: > conftest.ts3 4324 4325# Make sure ls -t actually works. Do 'set' in a subshell so we don't 4326# clobber the current shell's arguments. (Outer-level square brackets 4327# are removed by m4; they're present so that m4 does not expand 4328# <dollar><star>; be careful, easy to get confused.) 4329if ( 4330 set X `ls -t conftest.ts[12]` && 4331 { 4332 test "$*" != "X conftest.ts1 conftest.ts2" || 4333 test "$*" != "X conftest.ts2 conftest.ts1"; 4334 } 4335); then :; else 4336 # If neither matched, then we have a broken ls. This can happen 4337 # if, for instance, CONFIG_SHELL is bash and it inherits a 4338 # broken ls alias from the environment. This has actually 4339 # happened. Such a system could not be considered "sane". 4340 printf "%s\n" ""Bad output from ls -t: \"`ls -t conftest.ts[12]`\""" >&5 4341 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 4342printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 4343as_fn_error $? "ls -t produces unexpected output. 4344Make sure there is not a broken ls alias in your environment. 4345See 'config.log' for more details" "$LINENO" 5; } 4346fi 4347 4348for am_try_res in $am_try_resolutions; do 4349 # Any one fine-grained sleep might happen to cross the boundary 4350 # between two values of a coarser actual resolution, but if we do 4351 # two fine-grained sleeps in a row, at least one of them will fall 4352 # entirely within a coarse interval. 4353 echo alpha > conftest.ts1 4354 sleep $am_try_res 4355 echo beta > conftest.ts2 4356 sleep $am_try_res 4357 echo gamma > conftest.ts3 4358 4359 # We assume that 'ls -t' will make use of high-resolution 4360 # timestamps if the operating system supports them at all. 4361 if (set X `ls -t conftest.ts?` && 4362 test "$2" = conftest.ts3 && 4363 test "$3" = conftest.ts2 && 4364 test "$4" = conftest.ts1); then 4365 # 4366 # Ok, ls -t worked. If we're at a resolution of 1 second, we're done, 4367 # because we don't need to test make. 4368 make_ok=true 4369 if test $am_try_res != 1; then 4370 # But if we've succeeded so far with a subsecond resolution, we 4371 # have one more thing to check: make. It can happen that 4372 # everything else supports the subsecond mtimes, but make doesn't; 4373 # notably on macOS, which ships make 3.81 from 2006 (the last one 4374 # released under GPLv2). https://bugs.gnu.org/68808 4375 # 4376 # We test $MAKE if it is defined in the environment, else "make". 4377 # It might get overridden later, but our hope is that in practice 4378 # it does not matter: it is the system "make" which is (by far) 4379 # the most likely to be broken, whereas if the user overrides it, 4380 # probably they did so with a better, or at least not worse, make. 4381 # https://lists.gnu.org/archive/html/automake/2024-06/msg00051.html 4382 # 4383 # Create a Makefile (real tab character here): 4384 rm -f conftest.mk 4385 echo 'conftest.ts1: conftest.ts2' >conftest.mk 4386 echo ' touch conftest.ts2' >>conftest.mk 4387 # 4388 # Now, running 4389 # touch conftest.ts1; touch conftest.ts2; make 4390 # should touch ts1 because ts2 is newer. This could happen by luck, 4391 # but most often, it will fail if make's support is insufficient. So 4392 # test for several consecutive successes. 4393 # 4394 # (We reuse conftest.ts[12] because we still want to modify existing 4395 # files, not create new ones, per above.) 4396 n=0 4397 make=${MAKE-make} 4398 until test $n -eq 3; do 4399 echo one > conftest.ts1 4400 sleep $am_try_res 4401 echo two > conftest.ts2 # ts2 should now be newer than ts1 4402 if $make -f conftest.mk | grep 'up to date' >/dev/null; then 4403 make_ok=false 4404 break # out of $n loop 4405 fi 4406 n=`expr $n + 1` 4407 done 4408 fi 4409 # 4410 if $make_ok; then 4411 # Everything we know to check worked out, so call this resolution good. 4412 am_cv_filesystem_timestamp_resolution=$am_try_res 4413 break # out of $am_try_res loop 4414 fi 4415 # Otherwise, we'll go on to check the next resolution. 4416 fi 4417done 4418rm -f conftest.ts? 4419# (end _am_filesystem_timestamp_resolution) 4420 ;; 4421esac 4422fi 4423{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_filesystem_timestamp_resolution" >&5 4424printf "%s\n" "$am_cv_filesystem_timestamp_resolution" >&6; } 4425 4426# This check should not be cached, as it may vary across builds of 4427# different projects. 4428{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 4429printf %s "checking whether build environment is sane... " >&6; } 4430# Reject unsafe characters in $srcdir or the absolute working directory 4431# name. Accept space and tab only in the latter. 4432am_lf=' 4433' 4434case `pwd` in 4435 *[\\\"\#\$\&\'\`$am_lf]*) 4436 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 4437esac 4438case $srcdir in 4439 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 4440 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 4441esac 4442 4443# Do 'set' in a subshell so we don't clobber the current shell's 4444# arguments. Must try -L first in case configure is actually a 4445# symlink; some systems play weird games with the mod time of symlinks 4446# (eg FreeBSD returns the mod time of the symlink's containing 4447# directory). 4448am_build_env_is_sane=no 4449am_has_slept=no 4450rm -f conftest.file 4451for am_try in 1 2; do 4452 echo "timestamp, slept: $am_has_slept" > conftest.file 4453 if ( 4454 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 4455 if test "$*" = "X"; then 4456 # -L didn't work. 4457 set X `ls -t "$srcdir/configure" conftest.file` 4458 fi 4459 test "$2" = conftest.file 4460 ); then 4461 am_build_env_is_sane=yes 4462 break 4463 fi 4464 # Just in case. 4465 sleep "$am_cv_filesystem_timestamp_resolution" 4466 am_has_slept=yes 4467done 4468 4469{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_build_env_is_sane" >&5 4470printf "%s\n" "$am_build_env_is_sane" >&6; } 4471if test "$am_build_env_is_sane" = no; then 4472 as_fn_error $? "newly created file is older than distributed files! 4473Check your system clock" "$LINENO" 5 4474fi 4475 4476# If we didn't sleep, we still need to ensure time stamps of config.status and 4477# generated files are strictly newer. 4478am_sleep_pid= 4479if test -e conftest.file || grep 'slept: no' conftest.file >/dev/null 2>&1 4480then : 4481 4482else case e in #( 4483 e) ( sleep "$am_cv_filesystem_timestamp_resolution" ) & 4484 am_sleep_pid=$! 4485 ;; 4486esac 4487fi 4488 4489rm -f conftest.file 4490 4491test "$program_prefix" != NONE && 4492 program_transform_name="s&^&$program_prefix&;$program_transform_name" 4493# Use a double $ so make ignores it. 4494test "$program_suffix" != NONE && 4495 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 4496# Double any \ or $. 4497# By default was 's,x,x', remove it if useless. 4498ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 4499program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"` 4500 4501 4502 if test x"${MISSING+set}" != xset; then 4503 MISSING="\${SHELL} '$am_aux_dir/missing'" 4504fi 4505# Use eval to expand $SHELL 4506if eval "$MISSING --is-lightweight"; then 4507 am_missing_run="$MISSING " 4508else 4509 am_missing_run= 4510 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 4511printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 4512fi 4513 4514if test x"${install_sh+set}" != xset; then 4515 case $am_aux_dir in 4516 *\ * | *\ *) 4517 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 4518 *) 4519 install_sh="\${SHELL} $am_aux_dir/install-sh" 4520 esac 4521fi 4522 4523# Installed binaries are usually stripped using 'strip' when the user 4524# run "make install-strip". However 'strip' might not be the right 4525# tool to use in cross-compilation environments, therefore Automake 4526# will honor the 'STRIP' environment variable to overrule this program. 4527if test "$cross_compiling" != no; then 4528 if test -n "$ac_tool_prefix"; then 4529 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 4530set dummy ${ac_tool_prefix}strip; ac_word=$2 4531{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4532printf %s "checking for $ac_word... " >&6; } 4533if test ${ac_cv_prog_STRIP+y} 4534then : 4535 printf %s "(cached) " >&6 4536else case e in #( 4537 e) if test -n "$STRIP"; then 4538 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 4539else 4540as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4541for as_dir in $PATH 4542do 4543 IFS=$as_save_IFS 4544 case $as_dir in #((( 4545 '') as_dir=./ ;; 4546 */) ;; 4547 *) as_dir=$as_dir/ ;; 4548 esac 4549 for ac_exec_ext in '' $ac_executable_extensions; do 4550 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4551 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 4552 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4553 break 2 4554 fi 4555done 4556 done 4557IFS=$as_save_IFS 4558 4559fi ;; 4560esac 4561fi 4562STRIP=$ac_cv_prog_STRIP 4563if test -n "$STRIP"; then 4564 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 4565printf "%s\n" "$STRIP" >&6; } 4566else 4567 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4568printf "%s\n" "no" >&6; } 4569fi 4570 4571 4572fi 4573if test -z "$ac_cv_prog_STRIP"; then 4574 ac_ct_STRIP=$STRIP 4575 # Extract the first word of "strip", so it can be a program name with args. 4576set dummy strip; ac_word=$2 4577{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4578printf %s "checking for $ac_word... " >&6; } 4579if test ${ac_cv_prog_ac_ct_STRIP+y} 4580then : 4581 printf %s "(cached) " >&6 4582else case e in #( 4583 e) if test -n "$ac_ct_STRIP"; then 4584 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 4585else 4586as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4587for as_dir in $PATH 4588do 4589 IFS=$as_save_IFS 4590 case $as_dir in #((( 4591 '') as_dir=./ ;; 4592 */) ;; 4593 *) as_dir=$as_dir/ ;; 4594 esac 4595 for ac_exec_ext in '' $ac_executable_extensions; do 4596 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4597 ac_cv_prog_ac_ct_STRIP="strip" 4598 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4599 break 2 4600 fi 4601done 4602 done 4603IFS=$as_save_IFS 4604 4605fi ;; 4606esac 4607fi 4608ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 4609if test -n "$ac_ct_STRIP"; then 4610 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 4611printf "%s\n" "$ac_ct_STRIP" >&6; } 4612else 4613 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4614printf "%s\n" "no" >&6; } 4615fi 4616 4617 if test "x$ac_ct_STRIP" = x; then 4618 STRIP=":" 4619 else 4620 case $cross_compiling:$ac_tool_warned in 4621yes:) 4622{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4623printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4624ac_tool_warned=yes ;; 4625esac 4626 STRIP=$ac_ct_STRIP 4627 fi 4628else 4629 STRIP="$ac_cv_prog_STRIP" 4630fi 4631 4632fi 4633INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 4634 4635 4636 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5 4637printf %s "checking for a race-free mkdir -p... " >&6; } 4638if test -z "$MKDIR_P"; then 4639 if test ${ac_cv_path_mkdir+y} 4640then : 4641 printf %s "(cached) " >&6 4642else case e in #( 4643 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4644for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 4645do 4646 IFS=$as_save_IFS 4647 case $as_dir in #((( 4648 '') as_dir=./ ;; 4649 */) ;; 4650 *) as_dir=$as_dir/ ;; 4651 esac 4652 for ac_prog in mkdir gmkdir; do 4653 for ac_exec_ext in '' $ac_executable_extensions; do 4654 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue 4655 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #( 4656 'mkdir ('*'coreutils) '* | \ 4657 *'BusyBox '* | \ 4658 'mkdir (fileutils) '4.1*) 4659 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext 4660 break 3;; 4661 esac 4662 done 4663 done 4664 done 4665IFS=$as_save_IFS 4666 ;; 4667esac 4668fi 4669 4670 test -d ./--version && rmdir ./--version 4671 if test ${ac_cv_path_mkdir+y}; then 4672 MKDIR_P="$ac_cv_path_mkdir -p" 4673 else 4674 # As a last resort, use plain mkdir -p, 4675 # in the hope it doesn't have the bugs of ancient mkdir. 4676 MKDIR_P='mkdir -p' 4677 fi 4678fi 4679{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 4680printf "%s\n" "$MKDIR_P" >&6; } 4681 4682for ac_prog in gawk mawk nawk awk 4683do 4684 # Extract the first word of "$ac_prog", so it can be a program name with args. 4685set dummy $ac_prog; ac_word=$2 4686{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4687printf %s "checking for $ac_word... " >&6; } 4688if test ${ac_cv_prog_AWK+y} 4689then : 4690 printf %s "(cached) " >&6 4691else case e in #( 4692 e) if test -n "$AWK"; then 4693 ac_cv_prog_AWK="$AWK" # Let the user override the test. 4694else 4695as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4696for as_dir in $PATH 4697do 4698 IFS=$as_save_IFS 4699 case $as_dir in #((( 4700 '') as_dir=./ ;; 4701 */) ;; 4702 *) as_dir=$as_dir/ ;; 4703 esac 4704 for ac_exec_ext in '' $ac_executable_extensions; do 4705 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4706 ac_cv_prog_AWK="$ac_prog" 4707 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4708 break 2 4709 fi 4710done 4711 done 4712IFS=$as_save_IFS 4713 4714fi ;; 4715esac 4716fi 4717AWK=$ac_cv_prog_AWK 4718if test -n "$AWK"; then 4719 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 4720printf "%s\n" "$AWK" >&6; } 4721else 4722 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4723printf "%s\n" "no" >&6; } 4724fi 4725 4726 4727 test -n "$AWK" && break 4728done 4729 4730{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 4731printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 4732set x ${MAKE-make} 4733ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 4734if eval test \${ac_cv_prog_make_${ac_make}_set+y} 4735then : 4736 printf %s "(cached) " >&6 4737else case e in #( 4738 e) cat >conftest.make <<\_ACEOF 4739SHELL = /bin/sh 4740all: 4741 @echo '@@@%%%=$(MAKE)=@@@%%%' 4742_ACEOF 4743# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 4744case `${MAKE-make} -f conftest.make 2>/dev/null` in 4745 *@@@%%%=?*=@@@%%%*) 4746 eval ac_cv_prog_make_${ac_make}_set=yes;; 4747 *) 4748 eval ac_cv_prog_make_${ac_make}_set=no;; 4749esac 4750rm -f conftest.make ;; 4751esac 4752fi 4753if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 4754 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4755printf "%s\n" "yes" >&6; } 4756 SET_MAKE= 4757else 4758 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4759printf "%s\n" "no" >&6; } 4760 SET_MAKE="MAKE=${MAKE-make}" 4761fi 4762 4763rm -rf .tst 2>/dev/null 4764mkdir .tst 2>/dev/null 4765if test -d .tst; then 4766 am__leading_dot=. 4767else 4768 am__leading_dot=_ 4769fi 4770rmdir .tst 2>/dev/null 4771 4772DEPDIR="${am__leading_dot}deps" 4773 4774ac_config_commands="$ac_config_commands depfiles" 4775 4776{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5 4777printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; } 4778cat > confinc.mk << 'END' 4779am__doit: 4780 @echo this is the am__doit target >confinc.out 4781.PHONY: am__doit 4782END 4783am__include="#" 4784am__quote= 4785# BSD make does it like this. 4786echo '.include "confinc.mk" # ignored' > confmf.BSD 4787# Other make implementations (GNU, Solaris 10, AIX) do it like this. 4788echo 'include confinc.mk # ignored' > confmf.GNU 4789_am_result=no 4790for s in GNU BSD; do 4791 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5 4792 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5 4793 ac_status=$? 4794 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4795 (exit $ac_status); } 4796 case $?:`cat confinc.out 2>/dev/null` in #( 4797 '0:this is the am__doit target') : 4798 case $s in #( 4799 BSD) : 4800 am__include='.include' am__quote='"' ;; #( 4801 *) : 4802 am__include='include' am__quote='' ;; 4803esac ;; #( 4804 *) : 4805 ;; 4806esac 4807 if test "$am__include" != "#"; then 4808 _am_result="yes ($s style)" 4809 break 4810 fi 4811done 4812rm -f confinc.* confmf.* 4813{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5 4814printf "%s\n" "${_am_result}" >&6; } 4815 4816# Check whether --enable-dependency-tracking was given. 4817if test ${enable_dependency_tracking+y} 4818then : 4819 enableval=$enable_dependency_tracking; 4820fi 4821 4822if test "x$enable_dependency_tracking" != xno; then 4823 am_depcomp="$ac_aux_dir/depcomp" 4824 AMDEPBACKSLASH='\' 4825 am__nodep='_no' 4826fi 4827 if test "x$enable_dependency_tracking" != xno; then 4828 AMDEP_TRUE= 4829 AMDEP_FALSE='#' 4830else 4831 AMDEP_TRUE='#' 4832 AMDEP_FALSE= 4833fi 4834 4835 4836AM_DEFAULT_VERBOSITY=1 4837# Check whether --enable-silent-rules was given. 4838if test ${enable_silent_rules+y} 4839then : 4840 enableval=$enable_silent_rules; 4841fi 4842 4843am_make=${MAKE-make} 4844{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 4845printf %s "checking whether $am_make supports nested variables... " >&6; } 4846if test ${am_cv_make_support_nested_variables+y} 4847then : 4848 printf %s "(cached) " >&6 4849else case e in #( 4850 e) if printf "%s\n" 'TRUE=$(BAR$(V)) 4851BAR0=false 4852BAR1=true 4853V=1 4854am__doit: 4855 @$(TRUE) 4856.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 4857 am_cv_make_support_nested_variables=yes 4858else 4859 am_cv_make_support_nested_variables=no 4860fi ;; 4861esac 4862fi 4863{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 4864printf "%s\n" "$am_cv_make_support_nested_variables" >&6; } 4865AM_BACKSLASH='\' 4866 4867am__rm_f_notfound= 4868if (rm -f && rm -fr && rm -rf) 2>/dev/null 4869then : 4870 4871else case e in #( 4872 e) am__rm_f_notfound='""' ;; 4873esac 4874fi 4875 4876 4877{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking xargs -n works" >&5 4878printf %s "checking xargs -n works... " >&6; } 4879if test ${am_cv_xargs_n_works+y} 4880then : 4881 printf %s "(cached) " >&6 4882else case e in #( 4883 e) if test "`echo 1 2 3 | xargs -n2 echo`" = "1 2 48843" 4885then : 4886 am_cv_xargs_n_works=yes 4887else case e in #( 4888 e) am_cv_xargs_n_works=no ;; 4889esac 4890fi ;; 4891esac 4892fi 4893{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_xargs_n_works" >&5 4894printf "%s\n" "$am_cv_xargs_n_works" >&6; } 4895if test "$am_cv_xargs_n_works" = yes 4896then : 4897 am__xargs_n='xargs -n' 4898else case e in #( 4899 e) am__xargs_n='am__xargs_n () { shift; sed "s/ /\\n/g" | while read am__xargs_n_arg; do "" "$am__xargs_n_arg"; done; }' 4900 ;; 4901esac 4902fi 4903 4904if test "`cd $srcdir && pwd`" != "`pwd`"; then 4905 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 4906 # is not polluted with repeated "-I." 4907 am__isrc=' -I$(srcdir)' 4908 # test to see if srcdir already configured 4909 if test -f $srcdir/config.status; then 4910 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 4911 fi 4912fi 4913 4914# test whether we have cygpath 4915if test -z "$CYGPATH_W"; then 4916 if (cygpath --version) >/dev/null 2>/dev/null; then 4917 CYGPATH_W='cygpath -w' 4918 else 4919 CYGPATH_W=echo 4920 fi 4921fi 4922 4923 4924# Define the identity of the package. 4925 PACKAGE='libICE' 4926 VERSION='1.1.2' 4927 4928 4929printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h 4930 4931 4932printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h 4933 4934# Some tools Automake needs. 4935 4936ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 4937 4938 4939AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 4940 4941 4942AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 4943 4944 4945AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 4946 4947 4948MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 4949 4950# For better backward compatibility. To be removed once Automake 1.9.x 4951# dies out for good. For more background, see: 4952# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 4953# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 4954mkdir_p='$(MKDIR_P)' 4955 4956# We need awk for the "check" target (and possibly the TAP driver). The 4957# system "awk" is bad on some platforms. 4958# Always define AMTAR for backward compatibility. Yes, it's still used 4959# in the wild :-( We should find a proper way to deprecate it ... 4960AMTAR='$${TAR-tar}' 4961 4962 4963# We'll loop over all known methods to create a tar archive until one works. 4964_am_tools='gnutar pax cpio none' 4965 4966am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 4967 4968 4969 4970 4971 4972depcc="$CC" am_compiler_list= 4973 4974{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4975printf %s "checking dependency style of $depcc... " >&6; } 4976if test ${am_cv_CC_dependencies_compiler_type+y} 4977then : 4978 printf %s "(cached) " >&6 4979else case e in #( 4980 e) if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4981 # We make a subdir and do the tests there. Otherwise we can end up 4982 # making bogus files that we don't know about and never remove. For 4983 # instance it was reported that on HP-UX the gcc test will end up 4984 # making a dummy file named 'D' -- because '-MD' means "put the output 4985 # in D". 4986 rm -rf conftest.dir 4987 mkdir conftest.dir 4988 # Copy depcomp to subdir because otherwise we won't find it if we're 4989 # using a relative directory. 4990 cp "$am_depcomp" conftest.dir 4991 cd conftest.dir 4992 # We will build objects and dependencies in a subdirectory because 4993 # it helps to detect inapplicable dependency modes. For instance 4994 # both Tru64's cc and ICC support -MD to output dependencies as a 4995 # side effect of compilation, but ICC will put the dependencies in 4996 # the current directory while Tru64 will put them in the object 4997 # directory. 4998 mkdir sub 4999 5000 am_cv_CC_dependencies_compiler_type=none 5001 if test "$am_compiler_list" = ""; then 5002 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 5003 fi 5004 am__universal=false 5005 case " $depcc " in #( 5006 *\ -arch\ *\ -arch\ *) am__universal=true ;; 5007 esac 5008 5009 for depmode in $am_compiler_list; do 5010 # Setup a source with many dependencies, because some compilers 5011 # like to wrap large dependency lists on column 80 (with \), and 5012 # we should not choose a depcomp mode which is confused by this. 5013 # 5014 # We need to recreate these files for each test, as the compiler may 5015 # overwrite some of them when testing with obscure command lines. 5016 # This happens at least with the AIX C compiler. 5017 : > sub/conftest.c 5018 for i in 1 2 3 4 5 6; do 5019 echo '#include "conftst'$i'.h"' >> sub/conftest.c 5020 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 5021 # Solaris 10 /bin/sh. 5022 echo '/* dummy */' > sub/conftst$i.h 5023 done 5024 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 5025 5026 # We check with '-c' and '-o' for the sake of the "dashmstdout" 5027 # mode. It turns out that the SunPro C++ compiler does not properly 5028 # handle '-M -o', and we need to detect this. Also, some Intel 5029 # versions had trouble with output in subdirs. 5030 am__obj=sub/conftest.${OBJEXT-o} 5031 am__minus_obj="-o $am__obj" 5032 case $depmode in 5033 gcc) 5034 # This depmode causes a compiler race in universal mode. 5035 test "$am__universal" = false || continue 5036 ;; 5037 nosideeffect) 5038 # After this tag, mechanisms are not by side-effect, so they'll 5039 # only be used when explicitly requested. 5040 if test "x$enable_dependency_tracking" = xyes; then 5041 continue 5042 else 5043 break 5044 fi 5045 ;; 5046 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 5047 # This compiler won't grok '-c -o', but also, the minuso test has 5048 # not run yet. These depmodes are late enough in the game, and 5049 # so weak that their functioning should not be impacted. 5050 am__obj=conftest.${OBJEXT-o} 5051 am__minus_obj= 5052 ;; 5053 none) break ;; 5054 esac 5055 if depmode=$depmode \ 5056 source=sub/conftest.c object=$am__obj \ 5057 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 5058 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 5059 >/dev/null 2>conftest.err && 5060 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 5061 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 5062 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 5063 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 5064 # icc doesn't choke on unknown options, it will just issue warnings 5065 # or remarks (even with -Werror). So we grep stderr for any message 5066 # that says an option was ignored or not supported. 5067 # When given -MP, icc 7.0 and 7.1 complain thus: 5068 # icc: Command line warning: ignoring option '-M'; no argument required 5069 # The diagnosis changed in icc 8.0: 5070 # icc: Command line remark: option '-MP' not supported 5071 if (grep 'ignoring option' conftest.err || 5072 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 5073 am_cv_CC_dependencies_compiler_type=$depmode 5074 break 5075 fi 5076 fi 5077 done 5078 5079 cd .. 5080 rm -rf conftest.dir 5081else 5082 am_cv_CC_dependencies_compiler_type=none 5083fi 5084 ;; 5085esac 5086fi 5087{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 5088printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; } 5089CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 5090 5091 if 5092 test "x$enable_dependency_tracking" != xno \ 5093 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 5094 am__fastdepCC_TRUE= 5095 am__fastdepCC_FALSE='#' 5096else 5097 am__fastdepCC_TRUE='#' 5098 am__fastdepCC_FALSE= 5099fi 5100 5101 5102# Variables for tags utilities; see am/tags.am 5103if test -z "$CTAGS"; then 5104 CTAGS=ctags 5105fi 5106 5107if test -z "$ETAGS"; then 5108 ETAGS=etags 5109fi 5110 5111if test -z "$CSCOPE"; then 5112 CSCOPE=cscope 5113fi 5114 5115 5116 5117 5118 5119 5120 5121 5122# Initialize libtool 5123case `pwd` in 5124 *\ * | *\ *) 5125 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 5126printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 5127esac 5128 5129 5130 5131macro_version='2.5.4' 5132macro_revision='2.5.4' 5133 5134 5135 5136 5137 5138 5139 5140 5141 5142 5143 5144 5145 5146 5147ltmain=$ac_aux_dir/ltmain.sh 5148 5149 5150 5151 # Make sure we can run config.sub. 5152$SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 || 5153 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5 5154 5155{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 5156printf %s "checking build system type... " >&6; } 5157if test ${ac_cv_build+y} 5158then : 5159 printf %s "(cached) " >&6 5160else case e in #( 5161 e) ac_build_alias=$build_alias 5162test "x$ac_build_alias" = x && 5163 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"` 5164test "x$ac_build_alias" = x && 5165 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 5166ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` || 5167 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5 5168 ;; 5169esac 5170fi 5171{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 5172printf "%s\n" "$ac_cv_build" >&6; } 5173case $ac_cv_build in 5174*-*-*) ;; 5175*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 5176esac 5177build=$ac_cv_build 5178ac_save_IFS=$IFS; IFS='-' 5179set x $ac_cv_build 5180shift 5181build_cpu=$1 5182build_vendor=$2 5183shift; shift 5184# Remember, the first character of IFS is used to create $*, 5185# except with old shells: 5186build_os=$* 5187IFS=$ac_save_IFS 5188case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 5189 5190 5191{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 5192printf %s "checking host system type... " >&6; } 5193if test ${ac_cv_host+y} 5194then : 5195 printf %s "(cached) " >&6 5196else case e in #( 5197 e) if test "x$host_alias" = x; then 5198 ac_cv_host=$ac_cv_build 5199else 5200 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` || 5201 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5 5202fi 5203 ;; 5204esac 5205fi 5206{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 5207printf "%s\n" "$ac_cv_host" >&6; } 5208case $ac_cv_host in 5209*-*-*) ;; 5210*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 5211esac 5212host=$ac_cv_host 5213ac_save_IFS=$IFS; IFS='-' 5214set x $ac_cv_host 5215shift 5216host_cpu=$1 5217host_vendor=$2 5218shift; shift 5219# Remember, the first character of IFS is used to create $*, 5220# except with old shells: 5221host_os=$* 5222IFS=$ac_save_IFS 5223case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 5224 5225 5226# Backslashify metacharacters that are still active within 5227# double-quoted strings. 5228sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 5229 5230# Same as above, but do not quote variable references. 5231double_quote_subst='s/\(["`\\]\)/\\\1/g' 5232 5233# Sed substitution to delay expansion of an escaped shell variable in a 5234# double_quote_subst'ed string. 5235delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 5236 5237# Sed substitution to delay expansion of an escaped single quote. 5238delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 5239 5240# Sed substitution to avoid accidental globbing in evaled expressions 5241no_glob_subst='s/\*/\\\*/g' 5242 5243ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 5244ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 5245ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 5246 5247{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 5248printf %s "checking how to print strings... " >&6; } 5249# Test print first, because it will be a builtin if present. 5250if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 5251 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 5252 ECHO='print -r --' 5253elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 5254 ECHO='printf %s\n' 5255else 5256 # Use this function as a fallback that always works. 5257 func_fallback_echo () 5258 { 5259 eval 'cat <<_LTECHO_EOF 5260$1 5261_LTECHO_EOF' 5262 } 5263 ECHO='func_fallback_echo' 5264fi 5265 5266# func_echo_all arg... 5267# Invoke $ECHO with all args, space-separated. 5268func_echo_all () 5269{ 5270 $ECHO "" 5271} 5272 5273case $ECHO in 5274 printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5 5275printf "%s\n" "printf" >&6; } ;; 5276 print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 5277printf "%s\n" "print -r" >&6; } ;; 5278 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5 5279printf "%s\n" "cat" >&6; } ;; 5280esac 5281 5282 5283 5284 5285 5286 5287 5288 5289 5290 5291 5292 5293 5294 5295{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 5296printf %s "checking for a sed that does not truncate output... " >&6; } 5297if test ${ac_cv_path_SED+y} 5298then : 5299 printf %s "(cached) " >&6 5300else case e in #( 5301 e) ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 5302 for ac_i in 1 2 3 4 5 6 7; do 5303 ac_script="$ac_script$as_nl$ac_script" 5304 done 5305 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 5306 { ac_script=; unset ac_script;} 5307 if test -z "$SED"; then 5308 ac_path_SED_found=false 5309 # Loop through the user's path and test for each of PROGNAME-LIST 5310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5311for as_dir in $PATH 5312do 5313 IFS=$as_save_IFS 5314 case $as_dir in #((( 5315 '') as_dir=./ ;; 5316 */) ;; 5317 *) as_dir=$as_dir/ ;; 5318 esac 5319 for ac_prog in sed gsed 5320 do 5321 for ac_exec_ext in '' $ac_executable_extensions; do 5322 ac_path_SED="$as_dir$ac_prog$ac_exec_ext" 5323 as_fn_executable_p "$ac_path_SED" || continue 5324# Check for GNU ac_path_SED and select it if it is found. 5325 # Check for GNU $ac_path_SED 5326case `"$ac_path_SED" --version 2>&1` in #( 5327*GNU*) 5328 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 5329#( 5330*) 5331 ac_count=0 5332 printf %s 0123456789 >"conftest.in" 5333 while : 5334 do 5335 cat "conftest.in" "conftest.in" >"conftest.tmp" 5336 mv "conftest.tmp" "conftest.in" 5337 cp "conftest.in" "conftest.nl" 5338 printf "%s\n" '' >> "conftest.nl" 5339 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 5340 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5341 as_fn_arith $ac_count + 1 && ac_count=$as_val 5342 if test $ac_count -gt ${ac_path_SED_max-0}; then 5343 # Best one so far, save it but keep looking for a better one 5344 ac_cv_path_SED="$ac_path_SED" 5345 ac_path_SED_max=$ac_count 5346 fi 5347 # 10*(2^10) chars as input seems more than enough 5348 test $ac_count -gt 10 && break 5349 done 5350 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5351esac 5352 5353 $ac_path_SED_found && break 3 5354 done 5355 done 5356 done 5357IFS=$as_save_IFS 5358 if test -z "$ac_cv_path_SED"; then 5359 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 5360 fi 5361else 5362 ac_cv_path_SED=$SED 5363fi 5364 ;; 5365esac 5366fi 5367{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 5368printf "%s\n" "$ac_cv_path_SED" >&6; } 5369 SED="$ac_cv_path_SED" 5370 rm -f conftest.sed 5371 5372test -z "$SED" && SED=sed 5373Xsed="$SED -e 1s/^X//" 5374 5375 5376 5377 5378 5379 5380 5381 5382 5383 5384 5385{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 5386printf %s "checking for grep that handles long lines and -e... " >&6; } 5387if test ${ac_cv_path_GREP+y} 5388then : 5389 printf %s "(cached) " >&6 5390else case e in #( 5391 e) if test -z "$GREP"; then 5392 ac_path_GREP_found=false 5393 # Loop through the user's path and test for each of PROGNAME-LIST 5394 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5395for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5396do 5397 IFS=$as_save_IFS 5398 case $as_dir in #((( 5399 '') as_dir=./ ;; 5400 */) ;; 5401 *) as_dir=$as_dir/ ;; 5402 esac 5403 for ac_prog in grep ggrep 5404 do 5405 for ac_exec_ext in '' $ac_executable_extensions; do 5406 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext" 5407 as_fn_executable_p "$ac_path_GREP" || continue 5408# Check for GNU ac_path_GREP and select it if it is found. 5409 # Check for GNU $ac_path_GREP 5410case `"$ac_path_GREP" --version 2>&1` in #( 5411*GNU*) 5412 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 5413#( 5414*) 5415 ac_count=0 5416 printf %s 0123456789 >"conftest.in" 5417 while : 5418 do 5419 cat "conftest.in" "conftest.in" >"conftest.tmp" 5420 mv "conftest.tmp" "conftest.in" 5421 cp "conftest.in" "conftest.nl" 5422 printf "%s\n" 'GREP' >> "conftest.nl" 5423 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 5424 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5425 as_fn_arith $ac_count + 1 && ac_count=$as_val 5426 if test $ac_count -gt ${ac_path_GREP_max-0}; then 5427 # Best one so far, save it but keep looking for a better one 5428 ac_cv_path_GREP="$ac_path_GREP" 5429 ac_path_GREP_max=$ac_count 5430 fi 5431 # 10*(2^10) chars as input seems more than enough 5432 test $ac_count -gt 10 && break 5433 done 5434 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5435esac 5436 5437 $ac_path_GREP_found && break 3 5438 done 5439 done 5440 done 5441IFS=$as_save_IFS 5442 if test -z "$ac_cv_path_GREP"; then 5443 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5444 fi 5445else 5446 ac_cv_path_GREP=$GREP 5447fi 5448 ;; 5449esac 5450fi 5451{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 5452printf "%s\n" "$ac_cv_path_GREP" >&6; } 5453 GREP="$ac_cv_path_GREP" 5454 5455 5456{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 5457printf %s "checking for egrep... " >&6; } 5458if test ${ac_cv_path_EGREP+y} 5459then : 5460 printf %s "(cached) " >&6 5461else case e in #( 5462 e) if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 5463 then ac_cv_path_EGREP="$GREP -E" 5464 else 5465 if test -z "$EGREP"; then 5466 ac_path_EGREP_found=false 5467 # Loop through the user's path and test for each of PROGNAME-LIST 5468 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5469for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5470do 5471 IFS=$as_save_IFS 5472 case $as_dir in #((( 5473 '') as_dir=./ ;; 5474 */) ;; 5475 *) as_dir=$as_dir/ ;; 5476 esac 5477 for ac_prog in egrep 5478 do 5479 for ac_exec_ext in '' $ac_executable_extensions; do 5480 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext" 5481 as_fn_executable_p "$ac_path_EGREP" || continue 5482# Check for GNU ac_path_EGREP and select it if it is found. 5483 # Check for GNU $ac_path_EGREP 5484case `"$ac_path_EGREP" --version 2>&1` in #( 5485*GNU*) 5486 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 5487#( 5488*) 5489 ac_count=0 5490 printf %s 0123456789 >"conftest.in" 5491 while : 5492 do 5493 cat "conftest.in" "conftest.in" >"conftest.tmp" 5494 mv "conftest.tmp" "conftest.in" 5495 cp "conftest.in" "conftest.nl" 5496 printf "%s\n" 'EGREP' >> "conftest.nl" 5497 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 5498 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5499 as_fn_arith $ac_count + 1 && ac_count=$as_val 5500 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 5501 # Best one so far, save it but keep looking for a better one 5502 ac_cv_path_EGREP="$ac_path_EGREP" 5503 ac_path_EGREP_max=$ac_count 5504 fi 5505 # 10*(2^10) chars as input seems more than enough 5506 test $ac_count -gt 10 && break 5507 done 5508 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5509esac 5510 5511 $ac_path_EGREP_found && break 3 5512 done 5513 done 5514 done 5515IFS=$as_save_IFS 5516 if test -z "$ac_cv_path_EGREP"; then 5517 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5518 fi 5519else 5520 ac_cv_path_EGREP=$EGREP 5521fi 5522 5523 fi ;; 5524esac 5525fi 5526{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 5527printf "%s\n" "$ac_cv_path_EGREP" >&6; } 5528 EGREP="$ac_cv_path_EGREP" 5529 5530 EGREP_TRADITIONAL=$EGREP 5531 ac_cv_path_EGREP_TRADITIONAL=$EGREP 5532 5533{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 5534printf %s "checking for fgrep... " >&6; } 5535if test ${ac_cv_path_FGREP+y} 5536then : 5537 printf %s "(cached) " >&6 5538else case e in #( 5539 e) if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 5540 then ac_cv_path_FGREP="$GREP -F" 5541 else 5542 if test -z "$FGREP"; then 5543 ac_path_FGREP_found=false 5544 # Loop through the user's path and test for each of PROGNAME-LIST 5545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5546for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5547do 5548 IFS=$as_save_IFS 5549 case $as_dir in #((( 5550 '') as_dir=./ ;; 5551 */) ;; 5552 *) as_dir=$as_dir/ ;; 5553 esac 5554 for ac_prog in fgrep 5555 do 5556 for ac_exec_ext in '' $ac_executable_extensions; do 5557 ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext" 5558 as_fn_executable_p "$ac_path_FGREP" || continue 5559# Check for GNU ac_path_FGREP and select it if it is found. 5560 # Check for GNU $ac_path_FGREP 5561case `"$ac_path_FGREP" --version 2>&1` in #( 5562*GNU*) 5563 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 5564#( 5565*) 5566 ac_count=0 5567 printf %s 0123456789 >"conftest.in" 5568 while : 5569 do 5570 cat "conftest.in" "conftest.in" >"conftest.tmp" 5571 mv "conftest.tmp" "conftest.in" 5572 cp "conftest.in" "conftest.nl" 5573 printf "%s\n" 'FGREP' >> "conftest.nl" 5574 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 5575 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5576 as_fn_arith $ac_count + 1 && ac_count=$as_val 5577 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 5578 # Best one so far, save it but keep looking for a better one 5579 ac_cv_path_FGREP="$ac_path_FGREP" 5580 ac_path_FGREP_max=$ac_count 5581 fi 5582 # 10*(2^10) chars as input seems more than enough 5583 test $ac_count -gt 10 && break 5584 done 5585 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5586esac 5587 5588 $ac_path_FGREP_found && break 3 5589 done 5590 done 5591 done 5592IFS=$as_save_IFS 5593 if test -z "$ac_cv_path_FGREP"; then 5594 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5595 fi 5596else 5597 ac_cv_path_FGREP=$FGREP 5598fi 5599 5600 fi ;; 5601esac 5602fi 5603{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 5604printf "%s\n" "$ac_cv_path_FGREP" >&6; } 5605 FGREP="$ac_cv_path_FGREP" 5606 5607 5608test -z "$GREP" && GREP=grep 5609 5610 5611 5612 5613 5614 5615 5616 5617 5618 5619 5620 5621 5622 5623 5624 5625 5626 5627 5628# Check whether --with-gnu-ld was given. 5629if test ${with_gnu_ld+y} 5630then : 5631 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 5632else case e in #( 5633 e) with_gnu_ld=no ;; 5634esac 5635fi 5636 5637ac_prog=ld 5638if test yes = "$GCC"; then 5639 # Check if gcc -print-prog-name=ld gives a path. 5640 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 5641printf %s "checking for ld used by $CC... " >&6; } 5642 case $host in 5643 *-*-mingw* | *-*-windows*) 5644 # gcc leaves a trailing carriage return, which upsets mingw 5645 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 5646 *) 5647 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 5648 esac 5649 case $ac_prog in 5650 # Accept absolute paths. 5651 [\\/]* | ?:[\\/]*) 5652 re_direlt='/[^/][^/]*/\.\./' 5653 # Canonicalize the pathname of ld 5654 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 5655 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 5656 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 5657 done 5658 test -z "$LD" && LD=$ac_prog 5659 ;; 5660 "") 5661 # If it fails, then pretend we aren't using GCC. 5662 ac_prog=ld 5663 ;; 5664 *) 5665 # If it is relative, then search for the first ld in PATH. 5666 with_gnu_ld=unknown 5667 ;; 5668 esac 5669elif test yes = "$with_gnu_ld"; then 5670 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 5671printf %s "checking for GNU ld... " >&6; } 5672else 5673 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 5674printf %s "checking for non-GNU ld... " >&6; } 5675fi 5676if test ${lt_cv_path_LD+y} 5677then : 5678 printf %s "(cached) " >&6 5679else case e in #( 5680 e) if test -z "$LD"; then 5681 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 5682 for ac_dir in $PATH; do 5683 IFS=$lt_save_ifs 5684 test -z "$ac_dir" && ac_dir=. 5685 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 5686 lt_cv_path_LD=$ac_dir/$ac_prog 5687 # Check to see if the program is GNU ld. I'd rather use --version, 5688 # but apparently some variants of GNU ld only accept -v. 5689 # Break only if it was the GNU/non-GNU ld that we prefer. 5690 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 5691 *GNU* | *'with BFD'*) 5692 test no != "$with_gnu_ld" && break 5693 ;; 5694 *) 5695 test yes != "$with_gnu_ld" && break 5696 ;; 5697 esac 5698 fi 5699 done 5700 IFS=$lt_save_ifs 5701else 5702 lt_cv_path_LD=$LD # Let the user override the test with a path. 5703fi ;; 5704esac 5705fi 5706 5707LD=$lt_cv_path_LD 5708if test -n "$LD"; then 5709 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 5710printf "%s\n" "$LD" >&6; } 5711else 5712 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5713printf "%s\n" "no" >&6; } 5714fi 5715test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 5716{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 5717printf %s "checking if the linker ($LD) is GNU ld... " >&6; } 5718if test ${lt_cv_prog_gnu_ld+y} 5719then : 5720 printf %s "(cached) " >&6 5721else case e in #( 5722 e) # I'd rather use --version here, but apparently some GNU lds only accept -v. 5723case `$LD -v 2>&1 </dev/null` in 5724*GNU* | *'with BFD'*) 5725 lt_cv_prog_gnu_ld=yes 5726 ;; 5727*) 5728 lt_cv_prog_gnu_ld=no 5729 ;; 5730esac ;; 5731esac 5732fi 5733{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 5734printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; } 5735with_gnu_ld=$lt_cv_prog_gnu_ld 5736 5737 5738 5739 5740 5741 5742 5743 5744 5745{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 5746printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 5747if test ${lt_cv_path_NM+y} 5748then : 5749 printf %s "(cached) " >&6 5750else case e in #( 5751 e) if test -n "$NM"; then 5752 # Let the user override the test. 5753 lt_cv_path_NM=$NM 5754else 5755 lt_nm_to_check=${ac_tool_prefix}nm 5756 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 5757 lt_nm_to_check="$lt_nm_to_check nm" 5758 fi 5759 for lt_tmp_nm in $lt_nm_to_check; do 5760 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 5761 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 5762 IFS=$lt_save_ifs 5763 test -z "$ac_dir" && ac_dir=. 5764 tmp_nm=$ac_dir/$lt_tmp_nm 5765 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then 5766 # Check to see if the nm accepts a BSD-compat flag. 5767 # Adding the 'sed 1q' prevents false positives on HP-UX, which says: 5768 # nm: unknown option "B" ignored 5769 # Tru64's nm complains that /dev/null is an invalid object file 5770 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty 5771 case $build_os in 5772 mingw* | windows*) lt_bad_file=conftest.nm/nofile ;; 5773 *) lt_bad_file=/dev/null ;; 5774 esac 5775 case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in 5776 *$lt_bad_file* | *'Invalid file or object type'*) 5777 lt_cv_path_NM="$tmp_nm -B" 5778 break 2 5779 ;; 5780 *) 5781 case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in 5782 */dev/null*) 5783 lt_cv_path_NM="$tmp_nm -p" 5784 break 2 5785 ;; 5786 *) 5787 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 5788 continue # so that we can try to find one that supports BSD flags 5789 ;; 5790 esac 5791 ;; 5792 esac 5793 fi 5794 done 5795 IFS=$lt_save_ifs 5796 done 5797 : ${lt_cv_path_NM=no} 5798fi ;; 5799esac 5800fi 5801{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 5802printf "%s\n" "$lt_cv_path_NM" >&6; } 5803if test no != "$lt_cv_path_NM"; then 5804 NM=$lt_cv_path_NM 5805else 5806 # Didn't find any BSD compatible name lister, look for dumpbin. 5807 if test -n "$DUMPBIN"; then : 5808 # Let the user override the test. 5809 else 5810 if test -n "$ac_tool_prefix"; then 5811 for ac_prog in dumpbin "link -dump" 5812 do 5813 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5814set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5815{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5816printf %s "checking for $ac_word... " >&6; } 5817if test ${ac_cv_prog_DUMPBIN+y} 5818then : 5819 printf %s "(cached) " >&6 5820else case e in #( 5821 e) if test -n "$DUMPBIN"; then 5822 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 5823else 5824as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5825for as_dir in $PATH 5826do 5827 IFS=$as_save_IFS 5828 case $as_dir in #((( 5829 '') as_dir=./ ;; 5830 */) ;; 5831 *) as_dir=$as_dir/ ;; 5832 esac 5833 for ac_exec_ext in '' $ac_executable_extensions; do 5834 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5835 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 5836 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5837 break 2 5838 fi 5839done 5840 done 5841IFS=$as_save_IFS 5842 5843fi ;; 5844esac 5845fi 5846DUMPBIN=$ac_cv_prog_DUMPBIN 5847if test -n "$DUMPBIN"; then 5848 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 5849printf "%s\n" "$DUMPBIN" >&6; } 5850else 5851 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5852printf "%s\n" "no" >&6; } 5853fi 5854 5855 5856 test -n "$DUMPBIN" && break 5857 done 5858fi 5859if test -z "$DUMPBIN"; then 5860 ac_ct_DUMPBIN=$DUMPBIN 5861 for ac_prog in dumpbin "link -dump" 5862do 5863 # Extract the first word of "$ac_prog", so it can be a program name with args. 5864set dummy $ac_prog; ac_word=$2 5865{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5866printf %s "checking for $ac_word... " >&6; } 5867if test ${ac_cv_prog_ac_ct_DUMPBIN+y} 5868then : 5869 printf %s "(cached) " >&6 5870else case e in #( 5871 e) if test -n "$ac_ct_DUMPBIN"; then 5872 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 5873else 5874as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5875for as_dir in $PATH 5876do 5877 IFS=$as_save_IFS 5878 case $as_dir in #((( 5879 '') as_dir=./ ;; 5880 */) ;; 5881 *) as_dir=$as_dir/ ;; 5882 esac 5883 for ac_exec_ext in '' $ac_executable_extensions; do 5884 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5885 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 5886 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5887 break 2 5888 fi 5889done 5890 done 5891IFS=$as_save_IFS 5892 5893fi ;; 5894esac 5895fi 5896ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 5897if test -n "$ac_ct_DUMPBIN"; then 5898 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 5899printf "%s\n" "$ac_ct_DUMPBIN" >&6; } 5900else 5901 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5902printf "%s\n" "no" >&6; } 5903fi 5904 5905 5906 test -n "$ac_ct_DUMPBIN" && break 5907done 5908 5909 if test "x$ac_ct_DUMPBIN" = x; then 5910 DUMPBIN=":" 5911 else 5912 case $cross_compiling:$ac_tool_warned in 5913yes:) 5914{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5915printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5916ac_tool_warned=yes ;; 5917esac 5918 DUMPBIN=$ac_ct_DUMPBIN 5919 fi 5920fi 5921 5922 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in 5923 *COFF*) 5924 DUMPBIN="$DUMPBIN -symbols -headers" 5925 ;; 5926 *) 5927 DUMPBIN=: 5928 ;; 5929 esac 5930 fi 5931 5932 if test : != "$DUMPBIN"; then 5933 NM=$DUMPBIN 5934 fi 5935fi 5936test -z "$NM" && NM=nm 5937 5938 5939 5940 5941 5942 5943{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 5944printf %s "checking the name lister ($NM) interface... " >&6; } 5945if test ${lt_cv_nm_interface+y} 5946then : 5947 printf %s "(cached) " >&6 5948else case e in #( 5949 e) lt_cv_nm_interface="BSD nm" 5950 echo "int some_variable = 0;" > conftest.$ac_ext 5951 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 5952 (eval "$ac_compile" 2>conftest.err) 5953 cat conftest.err >&5 5954 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 5955 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 5956 cat conftest.err >&5 5957 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 5958 cat conftest.out >&5 5959 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 5960 lt_cv_nm_interface="MS dumpbin" 5961 fi 5962 rm -f conftest* ;; 5963esac 5964fi 5965{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 5966printf "%s\n" "$lt_cv_nm_interface" >&6; } 5967 5968{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 5969printf %s "checking whether ln -s works... " >&6; } 5970LN_S=$as_ln_s 5971if test "$LN_S" = "ln -s"; then 5972 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5973printf "%s\n" "yes" >&6; } 5974else 5975 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 5976printf "%s\n" "no, using $LN_S" >&6; } 5977fi 5978 5979# find the maximum length of command line arguments 5980{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 5981printf %s "checking the maximum length of command line arguments... " >&6; } 5982if test ${lt_cv_sys_max_cmd_len+y} 5983then : 5984 printf %s "(cached) " >&6 5985else case e in #( 5986 e) i=0 5987 teststring=ABCD 5988 5989 case $build_os in 5990 msdosdjgpp*) 5991 # On DJGPP, this test can blow up pretty badly due to problems in libc 5992 # (any single argument exceeding 2000 bytes causes a buffer overrun 5993 # during glob expansion). Even if it were fixed, the result of this 5994 # check would be larger than it should be. 5995 lt_cv_sys_max_cmd_len=12288; # 12K is about right 5996 ;; 5997 5998 gnu* | ironclad*) 5999 # Under GNU Hurd and Ironclad, this test is not required because there 6000 # is no limit to the length of command line arguments. 6001 # Libtool will interpret -1 as no limit whatsoever 6002 lt_cv_sys_max_cmd_len=-1; 6003 ;; 6004 6005 cygwin* | mingw* | windows* | cegcc*) 6006 # On Win9x/ME, this test blows up -- it succeeds, but takes 6007 # about 5 minutes as the teststring grows exponentially. 6008 # Worse, since 9x/ME are not pre-emptively multitasking, 6009 # you end up with a "frozen" computer, even though with patience 6010 # the test eventually succeeds (with a max line length of 256k). 6011 # Instead, let's just punt: use the minimum linelength reported by 6012 # all of the supported platforms: 8192 (on NT/2K/XP). 6013 lt_cv_sys_max_cmd_len=8192; 6014 ;; 6015 6016 mint*) 6017 # On MiNT this can take a long time and run out of memory. 6018 lt_cv_sys_max_cmd_len=8192; 6019 ;; 6020 6021 amigaos*) 6022 # On AmigaOS with pdksh, this test takes hours, literally. 6023 # So we just punt and use a minimum line length of 8192. 6024 lt_cv_sys_max_cmd_len=8192; 6025 ;; 6026 6027 darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*) 6028 # This has been around since 386BSD, at least. Likely further. 6029 if test -x /sbin/sysctl; then 6030 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 6031 elif test -x /usr/sbin/sysctl; then 6032 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 6033 else 6034 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 6035 fi 6036 # And add a safety zone 6037 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 6038 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 6039 ;; 6040 6041 interix*) 6042 # We know the value 262144 and hardcode it with a safety zone (like BSD) 6043 lt_cv_sys_max_cmd_len=196608 6044 ;; 6045 6046 os2*) 6047 # The test takes a long time on OS/2. 6048 lt_cv_sys_max_cmd_len=8192 6049 ;; 6050 6051 osf*) 6052 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 6053 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 6054 # nice to cause kernel panics so lets avoid the loop below. 6055 # First set a reasonable default. 6056 lt_cv_sys_max_cmd_len=16384 6057 # 6058 if test -x /sbin/sysconfig; then 6059 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 6060 *1*) lt_cv_sys_max_cmd_len=-1 ;; 6061 esac 6062 fi 6063 ;; 6064 sco3.2v5*) 6065 lt_cv_sys_max_cmd_len=102400 6066 ;; 6067 sysv5* | sco5v6* | sysv4.2uw2*) 6068 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 6069 if test -n "$kargmax"; then 6070 lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[ ]//'` 6071 else 6072 lt_cv_sys_max_cmd_len=32768 6073 fi 6074 ;; 6075 *) 6076 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 6077 if test -n "$lt_cv_sys_max_cmd_len" && \ 6078 test undefined != "$lt_cv_sys_max_cmd_len"; then 6079 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 6080 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 6081 else 6082 # Make teststring a little bigger before we do anything with it. 6083 # a 1K string should be a reasonable start. 6084 for i in 1 2 3 4 5 6 7 8; do 6085 teststring=$teststring$teststring 6086 done 6087 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 6088 # If test is not a shell built-in, we'll probably end up computing a 6089 # maximum length that is only half of the actual maximum length, but 6090 # we can't tell. 6091 while { test X`env echo "$teststring$teststring" 2>/dev/null` \ 6092 = "X$teststring$teststring"; } >/dev/null 2>&1 && 6093 test 17 != "$i" # 1/2 MB should be enough 6094 do 6095 i=`expr $i + 1` 6096 teststring=$teststring$teststring 6097 done 6098 # Only check the string length outside the loop. 6099 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 6100 teststring= 6101 # Add a significant safety factor because C++ compilers can tack on 6102 # massive amounts of additional arguments before passing them to the 6103 # linker. It appears as though 1/2 is a usable value. 6104 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 6105 fi 6106 ;; 6107 esac 6108 ;; 6109esac 6110fi 6111 6112if test -n "$lt_cv_sys_max_cmd_len"; then 6113 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 6114printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; } 6115else 6116 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5 6117printf "%s\n" "none" >&6; } 6118fi 6119max_cmd_len=$lt_cv_sys_max_cmd_len 6120 6121 6122 6123 6124 6125 6126: ${CP="cp -f"} 6127: ${MV="mv -f"} 6128: ${RM="rm -f"} 6129 6130if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 6131 lt_unset=unset 6132else 6133 lt_unset=false 6134fi 6135 6136 6137 6138 6139 6140# test EBCDIC or ASCII 6141case `echo X|tr X '\101'` in 6142 A) # ASCII based system 6143 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 6144 lt_SP2NL='tr \040 \012' 6145 lt_NL2SP='tr \015\012 \040\040' 6146 ;; 6147 *) # EBCDIC based system 6148 lt_SP2NL='tr \100 \n' 6149 lt_NL2SP='tr \r\n \100\100' 6150 ;; 6151esac 6152 6153 6154 6155 6156 6157 6158 6159 6160 6161{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 6162printf %s "checking how to convert $build file names to $host format... " >&6; } 6163if test ${lt_cv_to_host_file_cmd+y} 6164then : 6165 printf %s "(cached) " >&6 6166else case e in #( 6167 e) case $host in 6168 *-*-mingw* ) 6169 case $build in 6170 *-*-mingw* | *-*-windows* ) # actually msys 6171 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 6172 ;; 6173 *-*-cygwin* ) 6174 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 6175 ;; 6176 * ) # otherwise, assume *nix 6177 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 6178 ;; 6179 esac 6180 ;; 6181 *-*-cygwin* ) 6182 case $build in 6183 *-*-mingw* | *-*-windows* ) # actually msys 6184 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 6185 ;; 6186 *-*-cygwin* ) 6187 lt_cv_to_host_file_cmd=func_convert_file_noop 6188 ;; 6189 * ) # otherwise, assume *nix 6190 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 6191 ;; 6192 esac 6193 ;; 6194 * ) # unhandled hosts (and "normal" native builds) 6195 lt_cv_to_host_file_cmd=func_convert_file_noop 6196 ;; 6197esac 6198 ;; 6199esac 6200fi 6201 6202to_host_file_cmd=$lt_cv_to_host_file_cmd 6203{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 6204printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; } 6205 6206 6207 6208 6209 6210{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 6211printf %s "checking how to convert $build file names to toolchain format... " >&6; } 6212if test ${lt_cv_to_tool_file_cmd+y} 6213then : 6214 printf %s "(cached) " >&6 6215else case e in #( 6216 e) #assume ordinary cross tools, or native build. 6217lt_cv_to_tool_file_cmd=func_convert_file_noop 6218case $host in 6219 *-*-mingw* | *-*-windows* ) 6220 case $build in 6221 *-*-mingw* | *-*-windows* ) # actually msys 6222 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 6223 ;; 6224 esac 6225 ;; 6226esac 6227 ;; 6228esac 6229fi 6230 6231to_tool_file_cmd=$lt_cv_to_tool_file_cmd 6232{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 6233printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; } 6234 6235 6236 6237 6238 6239{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 6240printf %s "checking for $LD option to reload object files... " >&6; } 6241if test ${lt_cv_ld_reload_flag+y} 6242then : 6243 printf %s "(cached) " >&6 6244else case e in #( 6245 e) lt_cv_ld_reload_flag='-r' ;; 6246esac 6247fi 6248{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 6249printf "%s\n" "$lt_cv_ld_reload_flag" >&6; } 6250reload_flag=$lt_cv_ld_reload_flag 6251case $reload_flag in 6252"" | " "*) ;; 6253*) reload_flag=" $reload_flag" ;; 6254esac 6255reload_cmds='$LD$reload_flag -o $output$reload_objs' 6256case $host_os in 6257 cygwin* | mingw* | windows* | pw32* | cegcc*) 6258 if test yes != "$GCC"; then 6259 reload_cmds=false 6260 fi 6261 ;; 6262 darwin*) 6263 if test yes = "$GCC"; then 6264 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' 6265 else 6266 reload_cmds='$LD$reload_flag -o $output$reload_objs' 6267 fi 6268 ;; 6269esac 6270 6271 6272 6273 6274 6275 6276 6277 6278 6279# Extract the first word of "file", so it can be a program name with args. 6280set dummy file; ac_word=$2 6281{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6282printf %s "checking for $ac_word... " >&6; } 6283if test ${ac_cv_prog_FILECMD+y} 6284then : 6285 printf %s "(cached) " >&6 6286else case e in #( 6287 e) if test -n "$FILECMD"; then 6288 ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test. 6289else 6290as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6291for as_dir in $PATH 6292do 6293 IFS=$as_save_IFS 6294 case $as_dir in #((( 6295 '') as_dir=./ ;; 6296 */) ;; 6297 *) as_dir=$as_dir/ ;; 6298 esac 6299 for ac_exec_ext in '' $ac_executable_extensions; do 6300 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6301 ac_cv_prog_FILECMD="file" 6302 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6303 break 2 6304 fi 6305done 6306 done 6307IFS=$as_save_IFS 6308 6309 test -z "$ac_cv_prog_FILECMD" && ac_cv_prog_FILECMD=":" 6310fi ;; 6311esac 6312fi 6313FILECMD=$ac_cv_prog_FILECMD 6314if test -n "$FILECMD"; then 6315 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5 6316printf "%s\n" "$FILECMD" >&6; } 6317else 6318 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6319printf "%s\n" "no" >&6; } 6320fi 6321 6322 6323 6324 6325 6326 6327 6328 6329if test -n "$ac_tool_prefix"; then 6330 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 6331set dummy ${ac_tool_prefix}objdump; ac_word=$2 6332{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6333printf %s "checking for $ac_word... " >&6; } 6334if test ${ac_cv_prog_OBJDUMP+y} 6335then : 6336 printf %s "(cached) " >&6 6337else case e in #( 6338 e) if test -n "$OBJDUMP"; then 6339 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 6340else 6341as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6342for as_dir in $PATH 6343do 6344 IFS=$as_save_IFS 6345 case $as_dir in #((( 6346 '') as_dir=./ ;; 6347 */) ;; 6348 *) as_dir=$as_dir/ ;; 6349 esac 6350 for ac_exec_ext in '' $ac_executable_extensions; do 6351 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6352 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 6353 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6354 break 2 6355 fi 6356done 6357 done 6358IFS=$as_save_IFS 6359 6360fi ;; 6361esac 6362fi 6363OBJDUMP=$ac_cv_prog_OBJDUMP 6364if test -n "$OBJDUMP"; then 6365 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 6366printf "%s\n" "$OBJDUMP" >&6; } 6367else 6368 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6369printf "%s\n" "no" >&6; } 6370fi 6371 6372 6373fi 6374if test -z "$ac_cv_prog_OBJDUMP"; then 6375 ac_ct_OBJDUMP=$OBJDUMP 6376 # Extract the first word of "objdump", so it can be a program name with args. 6377set dummy objdump; ac_word=$2 6378{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6379printf %s "checking for $ac_word... " >&6; } 6380if test ${ac_cv_prog_ac_ct_OBJDUMP+y} 6381then : 6382 printf %s "(cached) " >&6 6383else case e in #( 6384 e) if test -n "$ac_ct_OBJDUMP"; then 6385 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 6386else 6387as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6388for as_dir in $PATH 6389do 6390 IFS=$as_save_IFS 6391 case $as_dir in #((( 6392 '') as_dir=./ ;; 6393 */) ;; 6394 *) as_dir=$as_dir/ ;; 6395 esac 6396 for ac_exec_ext in '' $ac_executable_extensions; do 6397 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6398 ac_cv_prog_ac_ct_OBJDUMP="objdump" 6399 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6400 break 2 6401 fi 6402done 6403 done 6404IFS=$as_save_IFS 6405 6406fi ;; 6407esac 6408fi 6409ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 6410if test -n "$ac_ct_OBJDUMP"; then 6411 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 6412printf "%s\n" "$ac_ct_OBJDUMP" >&6; } 6413else 6414 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6415printf "%s\n" "no" >&6; } 6416fi 6417 6418 if test "x$ac_ct_OBJDUMP" = x; then 6419 OBJDUMP="false" 6420 else 6421 case $cross_compiling:$ac_tool_warned in 6422yes:) 6423{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6424printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6425ac_tool_warned=yes ;; 6426esac 6427 OBJDUMP=$ac_ct_OBJDUMP 6428 fi 6429else 6430 OBJDUMP="$ac_cv_prog_OBJDUMP" 6431fi 6432 6433test -z "$OBJDUMP" && OBJDUMP=objdump 6434 6435 6436 6437 6438 6439 6440 6441 6442 6443{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 6444printf %s "checking how to recognize dependent libraries... " >&6; } 6445if test ${lt_cv_deplibs_check_method+y} 6446then : 6447 printf %s "(cached) " >&6 6448else case e in #( 6449 e) lt_cv_file_magic_cmd='$MAGIC_CMD' 6450lt_cv_file_magic_test_file= 6451lt_cv_deplibs_check_method='unknown' 6452# Need to set the preceding variable on all platforms that support 6453# interlibrary dependencies. 6454# 'none' -- dependencies not supported. 6455# 'unknown' -- same as none, but documents that we really don't know. 6456# 'pass_all' -- all dependencies passed with no checks. 6457# 'file_magic [[regex]]' -- check by looking for files in library path 6458# that responds to the $file_magic_cmd with a given extended regex. 6459# If you have 'file' or equivalent on your system and you're not sure 6460# whether 'pass_all' will *always* work, you probably want this one. 6461 6462case $host_os in 6463aix[4-9]*) 6464 lt_cv_deplibs_check_method=pass_all 6465 ;; 6466 6467beos*) 6468 lt_cv_deplibs_check_method=pass_all 6469 ;; 6470 6471bsdi[45]*) 6472 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 6473 lt_cv_file_magic_cmd='$FILECMD -L' 6474 lt_cv_file_magic_test_file=/shlib/libc.so 6475 ;; 6476 6477cygwin*) 6478 # func_win32_libid is a shell function defined in ltmain.sh 6479 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 6480 lt_cv_file_magic_cmd='func_win32_libid' 6481 ;; 6482 6483mingw* | windows* | pw32*) 6484 # Base MSYS/MinGW do not provide the 'file' command needed by 6485 # func_win32_libid shell function, so use a weaker test based on 'objdump', 6486 # unless we find 'file', for example because we are cross-compiling. 6487 if ( file / ) >/dev/null 2>&1; then 6488 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 6489 lt_cv_file_magic_cmd='func_win32_libid' 6490 else 6491 # Keep this pattern in sync with the one in func_win32_libid. 6492 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64|pe-aarch64)' 6493 lt_cv_file_magic_cmd='$OBJDUMP -f' 6494 fi 6495 ;; 6496 6497cegcc*) 6498 # use the weaker test based on 'objdump'. See mingw*. 6499 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 6500 lt_cv_file_magic_cmd='$OBJDUMP -f' 6501 ;; 6502 6503darwin* | rhapsody*) 6504 lt_cv_deplibs_check_method=pass_all 6505 ;; 6506 6507freebsd* | dragonfly* | midnightbsd*) 6508 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 6509 case $host_cpu in 6510 i*86 ) 6511 # Not sure whether the presence of OpenBSD here was a mistake. 6512 # Let's accept both of them until this is cleared up. 6513 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 6514 lt_cv_file_magic_cmd=$FILECMD 6515 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 6516 ;; 6517 esac 6518 else 6519 lt_cv_deplibs_check_method=pass_all 6520 fi 6521 ;; 6522 6523haiku*) 6524 lt_cv_deplibs_check_method=pass_all 6525 ;; 6526 6527hpux10.20* | hpux11*) 6528 lt_cv_file_magic_cmd=$FILECMD 6529 case $host_cpu in 6530 ia64*) 6531 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 6532 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 6533 ;; 6534 hppa*64*) 6535 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]' 6536 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 6537 ;; 6538 *) 6539 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 6540 lt_cv_file_magic_test_file=/usr/lib/libc.sl 6541 ;; 6542 esac 6543 ;; 6544 6545interix[3-9]*) 6546 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 6547 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 6548 ;; 6549 6550irix5* | irix6* | nonstopux*) 6551 case $LD in 6552 *-32|*"-32 ") libmagic=32-bit;; 6553 *-n32|*"-n32 ") libmagic=N32;; 6554 *-64|*"-64 ") libmagic=64-bit;; 6555 *) libmagic=never-match;; 6556 esac 6557 lt_cv_deplibs_check_method=pass_all 6558 ;; 6559 6560# This must be glibc/ELF. 6561linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 6562 lt_cv_deplibs_check_method=pass_all 6563 ;; 6564 6565*-mlibc) 6566 lt_cv_deplibs_check_method=pass_all 6567 ;; 6568 6569netbsd* | netbsdelf*-gnu) 6570 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 6571 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6572 else 6573 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 6574 fi 6575 ;; 6576 6577newos6*) 6578 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 6579 lt_cv_file_magic_cmd=$FILECMD 6580 lt_cv_file_magic_test_file=/usr/lib/libnls.so 6581 ;; 6582 6583*nto* | *qnx*) 6584 lt_cv_deplibs_check_method=pass_all 6585 ;; 6586 6587openbsd*) 6588 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 6589 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 6590 else 6591 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6592 fi 6593 ;; 6594 6595osf3* | osf4* | osf5*) 6596 lt_cv_deplibs_check_method=pass_all 6597 ;; 6598 6599rdos*) 6600 lt_cv_deplibs_check_method=pass_all 6601 ;; 6602 6603serenity*) 6604 lt_cv_deplibs_check_method=pass_all 6605 ;; 6606 6607solaris*) 6608 lt_cv_deplibs_check_method=pass_all 6609 ;; 6610 6611sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 6612 lt_cv_deplibs_check_method=pass_all 6613 ;; 6614 6615sysv4 | sysv4.3*) 6616 case $host_vendor in 6617 motorola) 6618 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]' 6619 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 6620 ;; 6621 ncr) 6622 lt_cv_deplibs_check_method=pass_all 6623 ;; 6624 sequent) 6625 lt_cv_file_magic_cmd='/bin/file' 6626 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 6627 ;; 6628 sni) 6629 lt_cv_file_magic_cmd='/bin/file' 6630 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 6631 lt_cv_file_magic_test_file=/lib/libc.so 6632 ;; 6633 siemens) 6634 lt_cv_deplibs_check_method=pass_all 6635 ;; 6636 pc) 6637 lt_cv_deplibs_check_method=pass_all 6638 ;; 6639 esac 6640 ;; 6641 6642tpf*) 6643 lt_cv_deplibs_check_method=pass_all 6644 ;; 6645os2*) 6646 lt_cv_deplibs_check_method=pass_all 6647 ;; 6648esac 6649 ;; 6650esac 6651fi 6652{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 6653printf "%s\n" "$lt_cv_deplibs_check_method" >&6; } 6654 6655file_magic_glob= 6656want_nocaseglob=no 6657if test "$build" = "$host"; then 6658 case $host_os in 6659 mingw* | windows* | pw32*) 6660 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 6661 want_nocaseglob=yes 6662 else 6663 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 6664 fi 6665 ;; 6666 esac 6667fi 6668 6669file_magic_cmd=$lt_cv_file_magic_cmd 6670deplibs_check_method=$lt_cv_deplibs_check_method 6671test -z "$deplibs_check_method" && deplibs_check_method=unknown 6672 6673 6674 6675 6676 6677 6678 6679 6680 6681 6682 6683 6684 6685 6686 6687 6688 6689 6690 6691 6692 6693 6694if test -n "$ac_tool_prefix"; then 6695 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 6696set dummy ${ac_tool_prefix}dlltool; ac_word=$2 6697{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6698printf %s "checking for $ac_word... " >&6; } 6699if test ${ac_cv_prog_DLLTOOL+y} 6700then : 6701 printf %s "(cached) " >&6 6702else case e in #( 6703 e) if test -n "$DLLTOOL"; then 6704 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 6705else 6706as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6707for as_dir in $PATH 6708do 6709 IFS=$as_save_IFS 6710 case $as_dir in #((( 6711 '') as_dir=./ ;; 6712 */) ;; 6713 *) as_dir=$as_dir/ ;; 6714 esac 6715 for ac_exec_ext in '' $ac_executable_extensions; do 6716 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6717 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 6718 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6719 break 2 6720 fi 6721done 6722 done 6723IFS=$as_save_IFS 6724 6725fi ;; 6726esac 6727fi 6728DLLTOOL=$ac_cv_prog_DLLTOOL 6729if test -n "$DLLTOOL"; then 6730 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 6731printf "%s\n" "$DLLTOOL" >&6; } 6732else 6733 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6734printf "%s\n" "no" >&6; } 6735fi 6736 6737 6738fi 6739if test -z "$ac_cv_prog_DLLTOOL"; then 6740 ac_ct_DLLTOOL=$DLLTOOL 6741 # Extract the first word of "dlltool", so it can be a program name with args. 6742set dummy dlltool; ac_word=$2 6743{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6744printf %s "checking for $ac_word... " >&6; } 6745if test ${ac_cv_prog_ac_ct_DLLTOOL+y} 6746then : 6747 printf %s "(cached) " >&6 6748else case e in #( 6749 e) if test -n "$ac_ct_DLLTOOL"; then 6750 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 6751else 6752as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6753for as_dir in $PATH 6754do 6755 IFS=$as_save_IFS 6756 case $as_dir in #((( 6757 '') as_dir=./ ;; 6758 */) ;; 6759 *) as_dir=$as_dir/ ;; 6760 esac 6761 for ac_exec_ext in '' $ac_executable_extensions; do 6762 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6763 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 6764 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6765 break 2 6766 fi 6767done 6768 done 6769IFS=$as_save_IFS 6770 6771fi ;; 6772esac 6773fi 6774ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 6775if test -n "$ac_ct_DLLTOOL"; then 6776 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 6777printf "%s\n" "$ac_ct_DLLTOOL" >&6; } 6778else 6779 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6780printf "%s\n" "no" >&6; } 6781fi 6782 6783 if test "x$ac_ct_DLLTOOL" = x; then 6784 DLLTOOL="false" 6785 else 6786 case $cross_compiling:$ac_tool_warned in 6787yes:) 6788{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6789printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6790ac_tool_warned=yes ;; 6791esac 6792 DLLTOOL=$ac_ct_DLLTOOL 6793 fi 6794else 6795 DLLTOOL="$ac_cv_prog_DLLTOOL" 6796fi 6797 6798test -z "$DLLTOOL" && DLLTOOL=dlltool 6799 6800 6801 6802 6803 6804 6805 6806 6807 6808 6809{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 6810printf %s "checking how to associate runtime and link libraries... " >&6; } 6811if test ${lt_cv_sharedlib_from_linklib_cmd+y} 6812then : 6813 printf %s "(cached) " >&6 6814else case e in #( 6815 e) lt_cv_sharedlib_from_linklib_cmd='unknown' 6816 6817case $host_os in 6818cygwin* | mingw* | windows* | pw32* | cegcc*) 6819 # two different shell functions defined in ltmain.sh; 6820 # decide which one to use based on capabilities of $DLLTOOL 6821 case `$DLLTOOL --help 2>&1` in 6822 *--identify-strict*) 6823 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 6824 ;; 6825 *) 6826 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 6827 ;; 6828 esac 6829 ;; 6830*) 6831 # fallback: assume linklib IS sharedlib 6832 lt_cv_sharedlib_from_linklib_cmd=$ECHO 6833 ;; 6834esac 6835 ;; 6836esac 6837fi 6838{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 6839printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 6840sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 6841test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 6842 6843 6844 6845 6846 6847 6848 6849if test -n "$ac_tool_prefix"; then 6850 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 6851set dummy ${ac_tool_prefix}ranlib; ac_word=$2 6852{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6853printf %s "checking for $ac_word... " >&6; } 6854if test ${ac_cv_prog_RANLIB+y} 6855then : 6856 printf %s "(cached) " >&6 6857else case e in #( 6858 e) if test -n "$RANLIB"; then 6859 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 6860else 6861as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6862for as_dir in $PATH 6863do 6864 IFS=$as_save_IFS 6865 case $as_dir in #((( 6866 '') as_dir=./ ;; 6867 */) ;; 6868 *) as_dir=$as_dir/ ;; 6869 esac 6870 for ac_exec_ext in '' $ac_executable_extensions; do 6871 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6872 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 6873 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6874 break 2 6875 fi 6876done 6877 done 6878IFS=$as_save_IFS 6879 6880fi ;; 6881esac 6882fi 6883RANLIB=$ac_cv_prog_RANLIB 6884if test -n "$RANLIB"; then 6885 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 6886printf "%s\n" "$RANLIB" >&6; } 6887else 6888 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6889printf "%s\n" "no" >&6; } 6890fi 6891 6892 6893fi 6894if test -z "$ac_cv_prog_RANLIB"; then 6895 ac_ct_RANLIB=$RANLIB 6896 # Extract the first word of "ranlib", so it can be a program name with args. 6897set dummy ranlib; ac_word=$2 6898{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6899printf %s "checking for $ac_word... " >&6; } 6900if test ${ac_cv_prog_ac_ct_RANLIB+y} 6901then : 6902 printf %s "(cached) " >&6 6903else case e in #( 6904 e) if test -n "$ac_ct_RANLIB"; then 6905 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 6906else 6907as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6908for as_dir in $PATH 6909do 6910 IFS=$as_save_IFS 6911 case $as_dir in #((( 6912 '') as_dir=./ ;; 6913 */) ;; 6914 *) as_dir=$as_dir/ ;; 6915 esac 6916 for ac_exec_ext in '' $ac_executable_extensions; do 6917 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6918 ac_cv_prog_ac_ct_RANLIB="ranlib" 6919 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6920 break 2 6921 fi 6922done 6923 done 6924IFS=$as_save_IFS 6925 6926fi ;; 6927esac 6928fi 6929ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 6930if test -n "$ac_ct_RANLIB"; then 6931 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 6932printf "%s\n" "$ac_ct_RANLIB" >&6; } 6933else 6934 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6935printf "%s\n" "no" >&6; } 6936fi 6937 6938 if test "x$ac_ct_RANLIB" = x; then 6939 RANLIB=":" 6940 else 6941 case $cross_compiling:$ac_tool_warned in 6942yes:) 6943{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6944printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6945ac_tool_warned=yes ;; 6946esac 6947 RANLIB=$ac_ct_RANLIB 6948 fi 6949else 6950 RANLIB="$ac_cv_prog_RANLIB" 6951fi 6952 6953if test -n "$ac_tool_prefix"; then 6954 for ac_prog in ar 6955 do 6956 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 6957set dummy $ac_tool_prefix$ac_prog; ac_word=$2 6958{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6959printf %s "checking for $ac_word... " >&6; } 6960if test ${ac_cv_prog_AR+y} 6961then : 6962 printf %s "(cached) " >&6 6963else case e in #( 6964 e) if test -n "$AR"; then 6965 ac_cv_prog_AR="$AR" # Let the user override the test. 6966else 6967as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6968for as_dir in $PATH 6969do 6970 IFS=$as_save_IFS 6971 case $as_dir in #((( 6972 '') as_dir=./ ;; 6973 */) ;; 6974 *) as_dir=$as_dir/ ;; 6975 esac 6976 for ac_exec_ext in '' $ac_executable_extensions; do 6977 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6978 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 6979 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6980 break 2 6981 fi 6982done 6983 done 6984IFS=$as_save_IFS 6985 6986fi ;; 6987esac 6988fi 6989AR=$ac_cv_prog_AR 6990if test -n "$AR"; then 6991 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 6992printf "%s\n" "$AR" >&6; } 6993else 6994 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6995printf "%s\n" "no" >&6; } 6996fi 6997 6998 6999 test -n "$AR" && break 7000 done 7001fi 7002if test -z "$AR"; then 7003 ac_ct_AR=$AR 7004 for ac_prog in ar 7005do 7006 # Extract the first word of "$ac_prog", so it can be a program name with args. 7007set dummy $ac_prog; ac_word=$2 7008{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7009printf %s "checking for $ac_word... " >&6; } 7010if test ${ac_cv_prog_ac_ct_AR+y} 7011then : 7012 printf %s "(cached) " >&6 7013else case e in #( 7014 e) if test -n "$ac_ct_AR"; then 7015 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 7016else 7017as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7018for as_dir in $PATH 7019do 7020 IFS=$as_save_IFS 7021 case $as_dir in #((( 7022 '') as_dir=./ ;; 7023 */) ;; 7024 *) as_dir=$as_dir/ ;; 7025 esac 7026 for ac_exec_ext in '' $ac_executable_extensions; do 7027 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7028 ac_cv_prog_ac_ct_AR="$ac_prog" 7029 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7030 break 2 7031 fi 7032done 7033 done 7034IFS=$as_save_IFS 7035 7036fi ;; 7037esac 7038fi 7039ac_ct_AR=$ac_cv_prog_ac_ct_AR 7040if test -n "$ac_ct_AR"; then 7041 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 7042printf "%s\n" "$ac_ct_AR" >&6; } 7043else 7044 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7045printf "%s\n" "no" >&6; } 7046fi 7047 7048 7049 test -n "$ac_ct_AR" && break 7050done 7051 7052 if test "x$ac_ct_AR" = x; then 7053 AR="false" 7054 else 7055 case $cross_compiling:$ac_tool_warned in 7056yes:) 7057{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7058printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7059ac_tool_warned=yes ;; 7060esac 7061 AR=$ac_ct_AR 7062 fi 7063fi 7064 7065: ${AR=ar} 7066 7067 7068 7069 7070 7071 7072# Use ARFLAGS variable as AR's operation code to sync the variable naming with 7073# Automake. If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have 7074# higher priority because that's what people were doing historically (setting 7075# ARFLAGS for automake and AR_FLAGS for libtool). FIXME: Make the AR_FLAGS 7076# variable obsoleted/removed. 7077 7078test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr} 7079lt_ar_flags=$AR_FLAGS 7080 7081 7082 7083 7084 7085 7086# Make AR_FLAGS overridable by 'make ARFLAGS='. Don't try to run-time override 7087# by AR_FLAGS because that was never working and AR_FLAGS is about to die. 7088 7089 7090 7091 7092 7093 7094{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 7095printf %s "checking for archiver @FILE support... " >&6; } 7096if test ${lt_cv_ar_at_file+y} 7097then : 7098 printf %s "(cached) " >&6 7099else case e in #( 7100 e) lt_cv_ar_at_file=no 7101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7102/* end confdefs.h. */ 7103 7104int 7105main (void) 7106{ 7107 7108 ; 7109 return 0; 7110} 7111_ACEOF 7112if ac_fn_c_try_compile "$LINENO" 7113then : 7114 echo conftest.$ac_objext > conftest.lst 7115 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 7116 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 7117 (eval $lt_ar_try) 2>&5 7118 ac_status=$? 7119 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7120 test $ac_status = 0; } 7121 if test 0 -eq "$ac_status"; then 7122 # Ensure the archiver fails upon bogus file names. 7123 rm -f conftest.$ac_objext libconftest.a 7124 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 7125 (eval $lt_ar_try) 2>&5 7126 ac_status=$? 7127 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7128 test $ac_status = 0; } 7129 if test 0 -ne "$ac_status"; then 7130 lt_cv_ar_at_file=@ 7131 fi 7132 fi 7133 rm -f conftest.* libconftest.a 7134 7135fi 7136rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7137 ;; 7138esac 7139fi 7140{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 7141printf "%s\n" "$lt_cv_ar_at_file" >&6; } 7142 7143if test no = "$lt_cv_ar_at_file"; then 7144 archiver_list_spec= 7145else 7146 archiver_list_spec=$lt_cv_ar_at_file 7147fi 7148 7149 7150 7151 7152 7153 7154 7155if test -n "$ac_tool_prefix"; then 7156 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 7157set dummy ${ac_tool_prefix}strip; ac_word=$2 7158{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7159printf %s "checking for $ac_word... " >&6; } 7160if test ${ac_cv_prog_STRIP+y} 7161then : 7162 printf %s "(cached) " >&6 7163else case e in #( 7164 e) if test -n "$STRIP"; then 7165 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 7166else 7167as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7168for as_dir in $PATH 7169do 7170 IFS=$as_save_IFS 7171 case $as_dir in #((( 7172 '') as_dir=./ ;; 7173 */) ;; 7174 *) as_dir=$as_dir/ ;; 7175 esac 7176 for ac_exec_ext in '' $ac_executable_extensions; do 7177 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7178 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 7179 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7180 break 2 7181 fi 7182done 7183 done 7184IFS=$as_save_IFS 7185 7186fi ;; 7187esac 7188fi 7189STRIP=$ac_cv_prog_STRIP 7190if test -n "$STRIP"; then 7191 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 7192printf "%s\n" "$STRIP" >&6; } 7193else 7194 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7195printf "%s\n" "no" >&6; } 7196fi 7197 7198 7199fi 7200if test -z "$ac_cv_prog_STRIP"; then 7201 ac_ct_STRIP=$STRIP 7202 # Extract the first word of "strip", so it can be a program name with args. 7203set dummy strip; ac_word=$2 7204{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7205printf %s "checking for $ac_word... " >&6; } 7206if test ${ac_cv_prog_ac_ct_STRIP+y} 7207then : 7208 printf %s "(cached) " >&6 7209else case e in #( 7210 e) if test -n "$ac_ct_STRIP"; then 7211 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 7212else 7213as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7214for as_dir in $PATH 7215do 7216 IFS=$as_save_IFS 7217 case $as_dir in #((( 7218 '') as_dir=./ ;; 7219 */) ;; 7220 *) as_dir=$as_dir/ ;; 7221 esac 7222 for ac_exec_ext in '' $ac_executable_extensions; do 7223 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7224 ac_cv_prog_ac_ct_STRIP="strip" 7225 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7226 break 2 7227 fi 7228done 7229 done 7230IFS=$as_save_IFS 7231 7232fi ;; 7233esac 7234fi 7235ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 7236if test -n "$ac_ct_STRIP"; then 7237 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 7238printf "%s\n" "$ac_ct_STRIP" >&6; } 7239else 7240 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7241printf "%s\n" "no" >&6; } 7242fi 7243 7244 if test "x$ac_ct_STRIP" = x; then 7245 STRIP=":" 7246 else 7247 case $cross_compiling:$ac_tool_warned in 7248yes:) 7249{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7250printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7251ac_tool_warned=yes ;; 7252esac 7253 STRIP=$ac_ct_STRIP 7254 fi 7255else 7256 STRIP="$ac_cv_prog_STRIP" 7257fi 7258 7259test -z "$STRIP" && STRIP=: 7260 7261 7262 7263 7264 7265 7266 7267test -z "$RANLIB" && RANLIB=: 7268 7269 7270 7271 7272 7273 7274# Determine commands to create old-style static archives. 7275old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 7276old_postinstall_cmds='chmod 644 $oldlib' 7277old_postuninstall_cmds= 7278 7279if test -n "$RANLIB"; then 7280 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 7281 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 7282fi 7283 7284case $host_os in 7285 darwin*) 7286 lock_old_archive_extraction=yes ;; 7287 *) 7288 lock_old_archive_extraction=no ;; 7289esac 7290 7291 7292 7293 7294 7295 7296 7297 7298 7299 7300 7301 7302 7303 7304 7305 7306 7307 7308 7309 7310 7311 7312 7313 7314 7315 7316 7317 7318 7319 7320 7321 7322 7323 7324 7325 7326 7327 7328 7329# If no C compiler was specified, use CC. 7330LTCC=${LTCC-"$CC"} 7331 7332# If no C compiler flags were specified, use CFLAGS. 7333LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 7334 7335# Allow CC to be a program name with arguments. 7336compiler=$CC 7337 7338 7339# Check for command to grab the raw symbol name followed by C symbol from nm. 7340{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 7341printf %s "checking command to parse $NM output from $compiler object... " >&6; } 7342if test ${lt_cv_sys_global_symbol_pipe+y} 7343then : 7344 printf %s "(cached) " >&6 7345else case e in #( 7346 e) 7347# These are sane defaults that work on at least a few old systems. 7348# [They come from Ultrix. What could be older than Ultrix?!! ;)] 7349 7350# Character class describing NM global symbol codes. 7351symcode='[BCDEGRST]' 7352 7353# Regexp to match symbols that can be accessed directly from C. 7354sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 7355 7356# Define system-specific variables. 7357case $host_os in 7358aix*) 7359 symcode='[BCDT]' 7360 ;; 7361cygwin* | mingw* | windows* | pw32* | cegcc*) 7362 symcode='[ABCDGISTW]' 7363 ;; 7364hpux*) 7365 if test ia64 = "$host_cpu"; then 7366 symcode='[ABCDEGRST]' 7367 fi 7368 ;; 7369irix* | nonstopux*) 7370 symcode='[BCDEGRST]' 7371 ;; 7372osf*) 7373 symcode='[BCDEGQRST]' 7374 ;; 7375solaris*) 7376 symcode='[BCDRT]' 7377 ;; 7378sco3.2v5*) 7379 symcode='[DT]' 7380 ;; 7381sysv4.2uw2*) 7382 symcode='[DT]' 7383 ;; 7384sysv5* | sco5v6* | unixware* | OpenUNIX*) 7385 symcode='[ABDT]' 7386 ;; 7387sysv4) 7388 symcode='[DFNSTU]' 7389 ;; 7390esac 7391 7392# If we're using GNU nm, then use its standard symbol codes. 7393case `$NM -V 2>&1` in 7394*GNU* | *'with BFD'*) 7395 symcode='[ABCDGIRSTW]' ;; 7396esac 7397 7398if test "$lt_cv_nm_interface" = "MS dumpbin"; then 7399 # Gets list of data symbols to import. 7400 lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'" 7401 # Adjust the below global symbol transforms to fixup imported variables. 7402 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" 7403 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" 7404 lt_c_name_lib_hook="\ 7405 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ 7406 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" 7407else 7408 # Disable hooks by default. 7409 lt_cv_sys_global_symbol_to_import= 7410 lt_cdecl_hook= 7411 lt_c_name_hook= 7412 lt_c_name_lib_hook= 7413fi 7414 7415# Transform an extracted symbol line into a proper C declaration. 7416# Some systems (esp. on ia64) link data and code symbols differently, 7417# so use this general approach. 7418lt_cv_sys_global_symbol_to_cdecl="$SED -n"\ 7419$lt_cdecl_hook\ 7420" -e 's/^T .* \(.*\)$/extern int \1();/p'"\ 7421" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" 7422 7423# Transform an extracted symbol line into symbol name and symbol address 7424lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\ 7425$lt_c_name_hook\ 7426" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 7427" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" 7428 7429# Transform an extracted symbol line into symbol name with lib prefix and 7430# symbol address. 7431lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\ 7432$lt_c_name_lib_hook\ 7433" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 7434" -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ 7435" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" 7436 7437# Handle CRLF in mingw tool chain 7438opt_cr= 7439case $build_os in 7440mingw* | windows*) 7441 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 7442 ;; 7443esac 7444 7445# Try without a prefix underscore, then with it. 7446for ac_symprfx in "" "_"; do 7447 7448 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 7449 symxfrm="\\1 $ac_symprfx\\2 \\2" 7450 7451 # Write the raw and C identifiers. 7452 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 7453 # Fake it for dumpbin and say T for any non-static function, 7454 # D for any global variable and I for any imported variable. 7455 # Also find C++ and __fastcall symbols from MSVC++ or ICC, 7456 # which start with @ or ?. 7457 lt_cv_sys_global_symbol_pipe="$AWK '"\ 7458" {last_section=section; section=\$ 3};"\ 7459" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 7460" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 7461" /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ 7462" /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ 7463" /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ 7464" \$ 0!~/External *\|/{next};"\ 7465" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 7466" {if(hide[section]) next};"\ 7467" {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ 7468" {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ 7469" s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ 7470" s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ 7471" ' prfx=^$ac_symprfx" 7472 else 7473 lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 7474 fi 7475 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'" 7476 7477 # Check to see that the pipe works correctly. 7478 pipe_works=no 7479 7480 rm -f conftest* 7481 cat > conftest.$ac_ext <<_LT_EOF 7482#ifdef __cplusplus 7483extern "C" { 7484#endif 7485char nm_test_var; 7486void nm_test_func(void); 7487void nm_test_func(void){} 7488#ifdef __cplusplus 7489} 7490#endif 7491int main(void){nm_test_var='a';nm_test_func();return(0);} 7492_LT_EOF 7493 7494 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7495 (eval $ac_compile) 2>&5 7496 ac_status=$? 7497 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7498 test $ac_status = 0; }; then 7499 # Now try to grab the symbols. 7500 nlist=conftest.nm 7501 $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5 7502 if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then 7503 # Try sorting and uniquifying the output. 7504 if sort "$nlist" | uniq > "$nlist"T; then 7505 mv -f "$nlist"T "$nlist" 7506 else 7507 rm -f "$nlist"T 7508 fi 7509 7510 # Make sure that we snagged all the symbols we need. 7511 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 7512 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 7513 cat <<_LT_EOF > conftest.$ac_ext 7514/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 7515#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE 7516/* DATA imports from DLLs on WIN32 can't be const, because runtime 7517 relocations are performed -- see ld's documentation on pseudo-relocs. */ 7518# define LT_DLSYM_CONST 7519#elif defined __osf__ 7520/* This system does not cope well with relocations in const data. */ 7521# define LT_DLSYM_CONST 7522#else 7523# define LT_DLSYM_CONST const 7524#endif 7525 7526#ifdef __cplusplus 7527extern "C" { 7528#endif 7529 7530_LT_EOF 7531 # Now generate the symbol file. 7532 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 7533 7534 cat <<_LT_EOF >> conftest.$ac_ext 7535 7536/* The mapping between symbol names and symbols. */ 7537LT_DLSYM_CONST struct { 7538 const char *name; 7539 void *address; 7540} 7541lt__PROGRAM__LTX_preloaded_symbols[] = 7542{ 7543 { "@PROGRAM@", (void *) 0 }, 7544_LT_EOF 7545 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 7546 cat <<\_LT_EOF >> conftest.$ac_ext 7547 {0, (void *) 0} 7548}; 7549 7550/* This works around a problem in FreeBSD linker */ 7551#ifdef FREEBSD_WORKAROUND 7552static const void *lt_preloaded_setup() { 7553 return lt__PROGRAM__LTX_preloaded_symbols; 7554} 7555#endif 7556 7557#ifdef __cplusplus 7558} 7559#endif 7560_LT_EOF 7561 # Now try linking the two files. 7562 mv conftest.$ac_objext conftstm.$ac_objext 7563 lt_globsym_save_LIBS=$LIBS 7564 lt_globsym_save_CFLAGS=$CFLAGS 7565 LIBS=conftstm.$ac_objext 7566 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 7567 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 7568 (eval $ac_link) 2>&5 7569 ac_status=$? 7570 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7571 test $ac_status = 0; } && test -s conftest$ac_exeext; then 7572 pipe_works=yes 7573 fi 7574 LIBS=$lt_globsym_save_LIBS 7575 CFLAGS=$lt_globsym_save_CFLAGS 7576 else 7577 echo "cannot find nm_test_func in $nlist" >&5 7578 fi 7579 else 7580 echo "cannot find nm_test_var in $nlist" >&5 7581 fi 7582 else 7583 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 7584 fi 7585 else 7586 echo "$progname: failed program was:" >&5 7587 cat conftest.$ac_ext >&5 7588 fi 7589 rm -rf conftest* conftst* 7590 7591 # Do not use the global_symbol_pipe unless it works. 7592 if test yes = "$pipe_works"; then 7593 break 7594 else 7595 lt_cv_sys_global_symbol_pipe= 7596 fi 7597done 7598 ;; 7599esac 7600fi 7601 7602if test -z "$lt_cv_sys_global_symbol_pipe"; then 7603 lt_cv_sys_global_symbol_to_cdecl= 7604fi 7605if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 7606 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5 7607printf "%s\n" "failed" >&6; } 7608else 7609 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5 7610printf "%s\n" "ok" >&6; } 7611fi 7612 7613# Response file support. 7614if test "$lt_cv_nm_interface" = "MS dumpbin"; then 7615 nm_file_list_spec='@' 7616elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 7617 nm_file_list_spec='@' 7618fi 7619 7620 7621 7622 7623 7624 7625 7626 7627 7628 7629 7630 7631 7632 7633 7634 7635 7636 7637 7638 7639 7640 7641 7642 7643 7644 7645 7646 7647 7648 7649 7650 7651 7652 7653 7654 7655 7656{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 7657printf %s "checking for sysroot... " >&6; } 7658 7659# Check whether --with-sysroot was given. 7660if test ${with_sysroot+y} 7661then : 7662 withval=$with_sysroot; 7663else case e in #( 7664 e) with_sysroot=no ;; 7665esac 7666fi 7667 7668 7669lt_sysroot= 7670case $with_sysroot in #( 7671 yes) 7672 if test yes = "$GCC"; then 7673 # Trim trailing / since we'll always append absolute paths and we want 7674 # to avoid //, if only for less confusing output for the user. 7675 lt_sysroot=`$CC --print-sysroot 2>/dev/null | $SED 's:/\+$::'` 7676 fi 7677 ;; #( 7678 /*) 7679 lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"` 7680 ;; #( 7681 no|'') 7682 ;; #( 7683 *) 7684 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5 7685printf "%s\n" "$with_sysroot" >&6; } 7686 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 7687 ;; 7688esac 7689 7690 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 7691printf "%s\n" "${lt_sysroot:-no}" >&6; } 7692 7693 7694 7695 7696 7697{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5 7698printf %s "checking for a working dd... " >&6; } 7699if test ${ac_cv_path_lt_DD+y} 7700then : 7701 printf %s "(cached) " >&6 7702else case e in #( 7703 e) printf 0123456789abcdef0123456789abcdef >conftest.i 7704cat conftest.i conftest.i >conftest2.i 7705: ${lt_DD:=$DD} 7706if test -z "$lt_DD"; then 7707 ac_path_lt_DD_found=false 7708 # Loop through the user's path and test for each of PROGNAME-LIST 7709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7710for as_dir in $PATH 7711do 7712 IFS=$as_save_IFS 7713 case $as_dir in #((( 7714 '') as_dir=./ ;; 7715 */) ;; 7716 *) as_dir=$as_dir/ ;; 7717 esac 7718 for ac_prog in dd 7719 do 7720 for ac_exec_ext in '' $ac_executable_extensions; do 7721 ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext" 7722 as_fn_executable_p "$ac_path_lt_DD" || continue 7723if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 7724 cmp -s conftest.i conftest.out \ 7725 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: 7726fi 7727 $ac_path_lt_DD_found && break 3 7728 done 7729 done 7730 done 7731IFS=$as_save_IFS 7732 if test -z "$ac_cv_path_lt_DD"; then 7733 : 7734 fi 7735else 7736 ac_cv_path_lt_DD=$lt_DD 7737fi 7738 7739rm -f conftest.i conftest2.i conftest.out ;; 7740esac 7741fi 7742{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 7743printf "%s\n" "$ac_cv_path_lt_DD" >&6; } 7744 7745 7746{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5 7747printf %s "checking how to truncate binary pipes... " >&6; } 7748if test ${lt_cv_truncate_bin+y} 7749then : 7750 printf %s "(cached) " >&6 7751else case e in #( 7752 e) printf 0123456789abcdef0123456789abcdef >conftest.i 7753cat conftest.i conftest.i >conftest2.i 7754lt_cv_truncate_bin= 7755if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 7756 cmp -s conftest.i conftest.out \ 7757 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" 7758fi 7759rm -f conftest.i conftest2.i conftest.out 7760test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" ;; 7761esac 7762fi 7763{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 7764printf "%s\n" "$lt_cv_truncate_bin" >&6; } 7765 7766 7767 7768 7769 7770 7771 7772# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 7773func_cc_basename () 7774{ 7775 for cc_temp in $*""; do 7776 case $cc_temp in 7777 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 7778 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 7779 \-*) ;; 7780 *) break;; 7781 esac 7782 done 7783 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 7784} 7785 7786# Check whether --enable-libtool-lock was given. 7787if test ${enable_libtool_lock+y} 7788then : 7789 enableval=$enable_libtool_lock; 7790fi 7791 7792test no = "$enable_libtool_lock" || enable_libtool_lock=yes 7793 7794# Some flags need to be propagated to the compiler or linker for good 7795# libtool support. 7796case $host in 7797ia64-*-hpux*) 7798 # Find out what ABI is being produced by ac_compile, and set mode 7799 # options accordingly. 7800 echo 'int i;' > conftest.$ac_ext 7801 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7802 (eval $ac_compile) 2>&5 7803 ac_status=$? 7804 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7805 test $ac_status = 0; }; then 7806 case `$FILECMD conftest.$ac_objext` in 7807 *ELF-32*) 7808 HPUX_IA64_MODE=32 7809 ;; 7810 *ELF-64*) 7811 HPUX_IA64_MODE=64 7812 ;; 7813 esac 7814 fi 7815 rm -rf conftest* 7816 ;; 7817*-*-irix6*) 7818 # Find out what ABI is being produced by ac_compile, and set linker 7819 # options accordingly. 7820 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 7821 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7822 (eval $ac_compile) 2>&5 7823 ac_status=$? 7824 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7825 test $ac_status = 0; }; then 7826 if test yes = "$lt_cv_prog_gnu_ld"; then 7827 case `$FILECMD conftest.$ac_objext` in 7828 *32-bit*) 7829 LD="${LD-ld} -melf32bsmip" 7830 ;; 7831 *N32*) 7832 LD="${LD-ld} -melf32bmipn32" 7833 ;; 7834 *64-bit*) 7835 LD="${LD-ld} -melf64bmip" 7836 ;; 7837 esac 7838 else 7839 case `$FILECMD conftest.$ac_objext` in 7840 *32-bit*) 7841 LD="${LD-ld} -32" 7842 ;; 7843 *N32*) 7844 LD="${LD-ld} -n32" 7845 ;; 7846 *64-bit*) 7847 LD="${LD-ld} -64" 7848 ;; 7849 esac 7850 fi 7851 fi 7852 rm -rf conftest* 7853 ;; 7854 7855mips64*-*linux*) 7856 # Find out what ABI is being produced by ac_compile, and set linker 7857 # options accordingly. 7858 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 7859 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7860 (eval $ac_compile) 2>&5 7861 ac_status=$? 7862 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7863 test $ac_status = 0; }; then 7864 emul=elf 7865 case `$FILECMD conftest.$ac_objext` in 7866 *32-bit*) 7867 emul="${emul}32" 7868 ;; 7869 *64-bit*) 7870 emul="${emul}64" 7871 ;; 7872 esac 7873 case `$FILECMD conftest.$ac_objext` in 7874 *MSB*) 7875 emul="${emul}btsmip" 7876 ;; 7877 *LSB*) 7878 emul="${emul}ltsmip" 7879 ;; 7880 esac 7881 case `$FILECMD conftest.$ac_objext` in 7882 *N32*) 7883 emul="${emul}n32" 7884 ;; 7885 esac 7886 LD="${LD-ld} -m $emul" 7887 fi 7888 rm -rf conftest* 7889 ;; 7890 7891x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 7892s390*-*linux*|s390*-*tpf*|sparc*-*linux*|x86_64-gnu*) 7893 # Find out what ABI is being produced by ac_compile, and set linker 7894 # options accordingly. Note that the listed cases only cover the 7895 # situations where additional linker options are needed (such as when 7896 # doing 32-bit compilation for a host where ld defaults to 64-bit, or 7897 # vice versa); the common cases where no linker options are needed do 7898 # not appear in the list. 7899 echo 'int i;' > conftest.$ac_ext 7900 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7901 (eval $ac_compile) 2>&5 7902 ac_status=$? 7903 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7904 test $ac_status = 0; }; then 7905 case `$FILECMD conftest.o` in 7906 *32-bit*) 7907 case $host in 7908 x86_64-*kfreebsd*-gnu) 7909 LD="${LD-ld} -m elf_i386_fbsd" 7910 ;; 7911 x86_64-*linux*|x86_64-gnu*) 7912 case `$FILECMD conftest.o` in 7913 *x86-64*) 7914 LD="${LD-ld} -m elf32_x86_64" 7915 ;; 7916 *) 7917 LD="${LD-ld} -m elf_i386" 7918 ;; 7919 esac 7920 ;; 7921 powerpc64le-*linux*) 7922 LD="${LD-ld} -m elf32lppclinux" 7923 ;; 7924 powerpc64-*linux*) 7925 LD="${LD-ld} -m elf32ppclinux" 7926 ;; 7927 s390x-*linux*) 7928 LD="${LD-ld} -m elf_s390" 7929 ;; 7930 sparc64-*linux*) 7931 LD="${LD-ld} -m elf32_sparc" 7932 ;; 7933 esac 7934 ;; 7935 *64-bit*) 7936 case $host in 7937 x86_64-*kfreebsd*-gnu) 7938 LD="${LD-ld} -m elf_x86_64_fbsd" 7939 ;; 7940 x86_64-*linux*|x86_64-gnu*) 7941 LD="${LD-ld} -m elf_x86_64" 7942 ;; 7943 powerpcle-*linux*) 7944 LD="${LD-ld} -m elf64lppc" 7945 ;; 7946 powerpc-*linux*) 7947 LD="${LD-ld} -m elf64ppc" 7948 ;; 7949 s390*-*linux*|s390*-*tpf*) 7950 LD="${LD-ld} -m elf64_s390" 7951 ;; 7952 sparc*-*linux*) 7953 LD="${LD-ld} -m elf64_sparc" 7954 ;; 7955 esac 7956 ;; 7957 esac 7958 fi 7959 rm -rf conftest* 7960 ;; 7961 7962*-*-sco3.2v5*) 7963 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 7964 SAVE_CFLAGS=$CFLAGS 7965 CFLAGS="$CFLAGS -belf" 7966 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 7967printf %s "checking whether the C compiler needs -belf... " >&6; } 7968if test ${lt_cv_cc_needs_belf+y} 7969then : 7970 printf %s "(cached) " >&6 7971else case e in #( 7972 e) ac_ext=c 7973ac_cpp='$CPP $CPPFLAGS' 7974ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7975ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7976ac_compiler_gnu=$ac_cv_c_compiler_gnu 7977 7978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7979/* end confdefs.h. */ 7980 7981int 7982main (void) 7983{ 7984 7985 ; 7986 return 0; 7987} 7988_ACEOF 7989if ac_fn_c_try_link "$LINENO" 7990then : 7991 lt_cv_cc_needs_belf=yes 7992else case e in #( 7993 e) lt_cv_cc_needs_belf=no ;; 7994esac 7995fi 7996rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7997 conftest$ac_exeext conftest.$ac_ext 7998 ac_ext=c 7999ac_cpp='$CPP $CPPFLAGS' 8000ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8001ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8002ac_compiler_gnu=$ac_cv_c_compiler_gnu 8003 ;; 8004esac 8005fi 8006{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 8007printf "%s\n" "$lt_cv_cc_needs_belf" >&6; } 8008 if test yes != "$lt_cv_cc_needs_belf"; then 8009 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 8010 CFLAGS=$SAVE_CFLAGS 8011 fi 8012 ;; 8013*-*solaris*) 8014 # Find out what ABI is being produced by ac_compile, and set linker 8015 # options accordingly. 8016 echo 'int i;' > conftest.$ac_ext 8017 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 8018 (eval $ac_compile) 2>&5 8019 ac_status=$? 8020 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8021 test $ac_status = 0; }; then 8022 case `$FILECMD conftest.o` in 8023 *64-bit*) 8024 case $lt_cv_prog_gnu_ld in 8025 yes*) 8026 case $host in 8027 i?86-*-solaris*|x86_64-*-solaris*) 8028 LD="${LD-ld} -m elf_x86_64" 8029 ;; 8030 sparc*-*-solaris*) 8031 LD="${LD-ld} -m elf64_sparc" 8032 ;; 8033 esac 8034 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 8035 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 8036 LD=${LD-ld}_sol2 8037 fi 8038 ;; 8039 *) 8040 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 8041 LD="${LD-ld} -64" 8042 fi 8043 ;; 8044 esac 8045 ;; 8046 esac 8047 fi 8048 rm -rf conftest* 8049 ;; 8050esac 8051 8052need_locks=$enable_libtool_lock 8053 8054if test -n "$ac_tool_prefix"; then 8055 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 8056set dummy ${ac_tool_prefix}mt; ac_word=$2 8057{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8058printf %s "checking for $ac_word... " >&6; } 8059if test ${ac_cv_prog_MANIFEST_TOOL+y} 8060then : 8061 printf %s "(cached) " >&6 8062else case e in #( 8063 e) if test -n "$MANIFEST_TOOL"; then 8064 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 8065else 8066as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8067for as_dir in $PATH 8068do 8069 IFS=$as_save_IFS 8070 case $as_dir in #((( 8071 '') as_dir=./ ;; 8072 */) ;; 8073 *) as_dir=$as_dir/ ;; 8074 esac 8075 for ac_exec_ext in '' $ac_executable_extensions; do 8076 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8077 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 8078 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8079 break 2 8080 fi 8081done 8082 done 8083IFS=$as_save_IFS 8084 8085fi ;; 8086esac 8087fi 8088MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 8089if test -n "$MANIFEST_TOOL"; then 8090 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 8091printf "%s\n" "$MANIFEST_TOOL" >&6; } 8092else 8093 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8094printf "%s\n" "no" >&6; } 8095fi 8096 8097 8098fi 8099if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 8100 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 8101 # Extract the first word of "mt", so it can be a program name with args. 8102set dummy mt; ac_word=$2 8103{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8104printf %s "checking for $ac_word... " >&6; } 8105if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y} 8106then : 8107 printf %s "(cached) " >&6 8108else case e in #( 8109 e) if test -n "$ac_ct_MANIFEST_TOOL"; then 8110 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 8111else 8112as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8113for as_dir in $PATH 8114do 8115 IFS=$as_save_IFS 8116 case $as_dir in #((( 8117 '') as_dir=./ ;; 8118 */) ;; 8119 *) as_dir=$as_dir/ ;; 8120 esac 8121 for ac_exec_ext in '' $ac_executable_extensions; do 8122 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8123 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 8124 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8125 break 2 8126 fi 8127done 8128 done 8129IFS=$as_save_IFS 8130 8131fi ;; 8132esac 8133fi 8134ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 8135if test -n "$ac_ct_MANIFEST_TOOL"; then 8136 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 8137printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; } 8138else 8139 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8140printf "%s\n" "no" >&6; } 8141fi 8142 8143 if test "x$ac_ct_MANIFEST_TOOL" = x; then 8144 MANIFEST_TOOL=":" 8145 else 8146 case $cross_compiling:$ac_tool_warned in 8147yes:) 8148{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8149printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8150ac_tool_warned=yes ;; 8151esac 8152 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 8153 fi 8154else 8155 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 8156fi 8157 8158test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 8159{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 8160printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 8161if test ${lt_cv_path_manifest_tool+y} 8162then : 8163 printf %s "(cached) " >&6 8164else case e in #( 8165 e) lt_cv_path_manifest_tool=no 8166 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 8167 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 8168 cat conftest.err >&5 8169 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 8170 lt_cv_path_manifest_tool=yes 8171 fi 8172 rm -f conftest* ;; 8173esac 8174fi 8175{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_manifest_tool" >&5 8176printf "%s\n" "$lt_cv_path_manifest_tool" >&6; } 8177if test yes != "$lt_cv_path_manifest_tool"; then 8178 MANIFEST_TOOL=: 8179fi 8180 8181 8182 8183 8184 8185 8186 case $host_os in 8187 rhapsody* | darwin*) 8188 if test -n "$ac_tool_prefix"; then 8189 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 8190set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 8191{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8192printf %s "checking for $ac_word... " >&6; } 8193if test ${ac_cv_prog_DSYMUTIL+y} 8194then : 8195 printf %s "(cached) " >&6 8196else case e in #( 8197 e) if test -n "$DSYMUTIL"; then 8198 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 8199else 8200as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8201for as_dir in $PATH 8202do 8203 IFS=$as_save_IFS 8204 case $as_dir in #((( 8205 '') as_dir=./ ;; 8206 */) ;; 8207 *) as_dir=$as_dir/ ;; 8208 esac 8209 for ac_exec_ext in '' $ac_executable_extensions; do 8210 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8211 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 8212 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8213 break 2 8214 fi 8215done 8216 done 8217IFS=$as_save_IFS 8218 8219fi ;; 8220esac 8221fi 8222DSYMUTIL=$ac_cv_prog_DSYMUTIL 8223if test -n "$DSYMUTIL"; then 8224 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 8225printf "%s\n" "$DSYMUTIL" >&6; } 8226else 8227 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8228printf "%s\n" "no" >&6; } 8229fi 8230 8231 8232fi 8233if test -z "$ac_cv_prog_DSYMUTIL"; then 8234 ac_ct_DSYMUTIL=$DSYMUTIL 8235 # Extract the first word of "dsymutil", so it can be a program name with args. 8236set dummy dsymutil; ac_word=$2 8237{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8238printf %s "checking for $ac_word... " >&6; } 8239if test ${ac_cv_prog_ac_ct_DSYMUTIL+y} 8240then : 8241 printf %s "(cached) " >&6 8242else case e in #( 8243 e) if test -n "$ac_ct_DSYMUTIL"; then 8244 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 8245else 8246as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8247for as_dir in $PATH 8248do 8249 IFS=$as_save_IFS 8250 case $as_dir in #((( 8251 '') as_dir=./ ;; 8252 */) ;; 8253 *) as_dir=$as_dir/ ;; 8254 esac 8255 for ac_exec_ext in '' $ac_executable_extensions; do 8256 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8257 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 8258 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8259 break 2 8260 fi 8261done 8262 done 8263IFS=$as_save_IFS 8264 8265fi ;; 8266esac 8267fi 8268ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 8269if test -n "$ac_ct_DSYMUTIL"; then 8270 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 8271printf "%s\n" "$ac_ct_DSYMUTIL" >&6; } 8272else 8273 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8274printf "%s\n" "no" >&6; } 8275fi 8276 8277 if test "x$ac_ct_DSYMUTIL" = x; then 8278 DSYMUTIL=":" 8279 else 8280 case $cross_compiling:$ac_tool_warned in 8281yes:) 8282{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8283printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8284ac_tool_warned=yes ;; 8285esac 8286 DSYMUTIL=$ac_ct_DSYMUTIL 8287 fi 8288else 8289 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 8290fi 8291 8292 if test -n "$ac_tool_prefix"; then 8293 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 8294set dummy ${ac_tool_prefix}nmedit; ac_word=$2 8295{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8296printf %s "checking for $ac_word... " >&6; } 8297if test ${ac_cv_prog_NMEDIT+y} 8298then : 8299 printf %s "(cached) " >&6 8300else case e in #( 8301 e) if test -n "$NMEDIT"; then 8302 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 8303else 8304as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8305for as_dir in $PATH 8306do 8307 IFS=$as_save_IFS 8308 case $as_dir in #((( 8309 '') as_dir=./ ;; 8310 */) ;; 8311 *) as_dir=$as_dir/ ;; 8312 esac 8313 for ac_exec_ext in '' $ac_executable_extensions; do 8314 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8315 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 8316 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8317 break 2 8318 fi 8319done 8320 done 8321IFS=$as_save_IFS 8322 8323fi ;; 8324esac 8325fi 8326NMEDIT=$ac_cv_prog_NMEDIT 8327if test -n "$NMEDIT"; then 8328 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 8329printf "%s\n" "$NMEDIT" >&6; } 8330else 8331 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8332printf "%s\n" "no" >&6; } 8333fi 8334 8335 8336fi 8337if test -z "$ac_cv_prog_NMEDIT"; then 8338 ac_ct_NMEDIT=$NMEDIT 8339 # Extract the first word of "nmedit", so it can be a program name with args. 8340set dummy nmedit; ac_word=$2 8341{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8342printf %s "checking for $ac_word... " >&6; } 8343if test ${ac_cv_prog_ac_ct_NMEDIT+y} 8344then : 8345 printf %s "(cached) " >&6 8346else case e in #( 8347 e) if test -n "$ac_ct_NMEDIT"; then 8348 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 8349else 8350as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8351for as_dir in $PATH 8352do 8353 IFS=$as_save_IFS 8354 case $as_dir in #((( 8355 '') as_dir=./ ;; 8356 */) ;; 8357 *) as_dir=$as_dir/ ;; 8358 esac 8359 for ac_exec_ext in '' $ac_executable_extensions; do 8360 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8361 ac_cv_prog_ac_ct_NMEDIT="nmedit" 8362 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8363 break 2 8364 fi 8365done 8366 done 8367IFS=$as_save_IFS 8368 8369fi ;; 8370esac 8371fi 8372ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 8373if test -n "$ac_ct_NMEDIT"; then 8374 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 8375printf "%s\n" "$ac_ct_NMEDIT" >&6; } 8376else 8377 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8378printf "%s\n" "no" >&6; } 8379fi 8380 8381 if test "x$ac_ct_NMEDIT" = x; then 8382 NMEDIT=":" 8383 else 8384 case $cross_compiling:$ac_tool_warned in 8385yes:) 8386{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8387printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8388ac_tool_warned=yes ;; 8389esac 8390 NMEDIT=$ac_ct_NMEDIT 8391 fi 8392else 8393 NMEDIT="$ac_cv_prog_NMEDIT" 8394fi 8395 8396 if test -n "$ac_tool_prefix"; then 8397 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 8398set dummy ${ac_tool_prefix}lipo; ac_word=$2 8399{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8400printf %s "checking for $ac_word... " >&6; } 8401if test ${ac_cv_prog_LIPO+y} 8402then : 8403 printf %s "(cached) " >&6 8404else case e in #( 8405 e) if test -n "$LIPO"; then 8406 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 8407else 8408as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8409for as_dir in $PATH 8410do 8411 IFS=$as_save_IFS 8412 case $as_dir in #((( 8413 '') as_dir=./ ;; 8414 */) ;; 8415 *) as_dir=$as_dir/ ;; 8416 esac 8417 for ac_exec_ext in '' $ac_executable_extensions; do 8418 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8419 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 8420 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8421 break 2 8422 fi 8423done 8424 done 8425IFS=$as_save_IFS 8426 8427fi ;; 8428esac 8429fi 8430LIPO=$ac_cv_prog_LIPO 8431if test -n "$LIPO"; then 8432 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 8433printf "%s\n" "$LIPO" >&6; } 8434else 8435 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8436printf "%s\n" "no" >&6; } 8437fi 8438 8439 8440fi 8441if test -z "$ac_cv_prog_LIPO"; then 8442 ac_ct_LIPO=$LIPO 8443 # Extract the first word of "lipo", so it can be a program name with args. 8444set dummy lipo; ac_word=$2 8445{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8446printf %s "checking for $ac_word... " >&6; } 8447if test ${ac_cv_prog_ac_ct_LIPO+y} 8448then : 8449 printf %s "(cached) " >&6 8450else case e in #( 8451 e) if test -n "$ac_ct_LIPO"; then 8452 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 8453else 8454as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8455for as_dir in $PATH 8456do 8457 IFS=$as_save_IFS 8458 case $as_dir in #((( 8459 '') as_dir=./ ;; 8460 */) ;; 8461 *) as_dir=$as_dir/ ;; 8462 esac 8463 for ac_exec_ext in '' $ac_executable_extensions; do 8464 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8465 ac_cv_prog_ac_ct_LIPO="lipo" 8466 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8467 break 2 8468 fi 8469done 8470 done 8471IFS=$as_save_IFS 8472 8473fi ;; 8474esac 8475fi 8476ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 8477if test -n "$ac_ct_LIPO"; then 8478 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 8479printf "%s\n" "$ac_ct_LIPO" >&6; } 8480else 8481 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8482printf "%s\n" "no" >&6; } 8483fi 8484 8485 if test "x$ac_ct_LIPO" = x; then 8486 LIPO=":" 8487 else 8488 case $cross_compiling:$ac_tool_warned in 8489yes:) 8490{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8491printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8492ac_tool_warned=yes ;; 8493esac 8494 LIPO=$ac_ct_LIPO 8495 fi 8496else 8497 LIPO="$ac_cv_prog_LIPO" 8498fi 8499 8500 if test -n "$ac_tool_prefix"; then 8501 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 8502set dummy ${ac_tool_prefix}otool; ac_word=$2 8503{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8504printf %s "checking for $ac_word... " >&6; } 8505if test ${ac_cv_prog_OTOOL+y} 8506then : 8507 printf %s "(cached) " >&6 8508else case e in #( 8509 e) if test -n "$OTOOL"; then 8510 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 8511else 8512as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8513for as_dir in $PATH 8514do 8515 IFS=$as_save_IFS 8516 case $as_dir in #((( 8517 '') as_dir=./ ;; 8518 */) ;; 8519 *) as_dir=$as_dir/ ;; 8520 esac 8521 for ac_exec_ext in '' $ac_executable_extensions; do 8522 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8523 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 8524 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8525 break 2 8526 fi 8527done 8528 done 8529IFS=$as_save_IFS 8530 8531fi ;; 8532esac 8533fi 8534OTOOL=$ac_cv_prog_OTOOL 8535if test -n "$OTOOL"; then 8536 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 8537printf "%s\n" "$OTOOL" >&6; } 8538else 8539 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8540printf "%s\n" "no" >&6; } 8541fi 8542 8543 8544fi 8545if test -z "$ac_cv_prog_OTOOL"; then 8546 ac_ct_OTOOL=$OTOOL 8547 # Extract the first word of "otool", so it can be a program name with args. 8548set dummy otool; ac_word=$2 8549{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8550printf %s "checking for $ac_word... " >&6; } 8551if test ${ac_cv_prog_ac_ct_OTOOL+y} 8552then : 8553 printf %s "(cached) " >&6 8554else case e in #( 8555 e) if test -n "$ac_ct_OTOOL"; then 8556 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 8557else 8558as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8559for as_dir in $PATH 8560do 8561 IFS=$as_save_IFS 8562 case $as_dir in #((( 8563 '') as_dir=./ ;; 8564 */) ;; 8565 *) as_dir=$as_dir/ ;; 8566 esac 8567 for ac_exec_ext in '' $ac_executable_extensions; do 8568 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8569 ac_cv_prog_ac_ct_OTOOL="otool" 8570 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8571 break 2 8572 fi 8573done 8574 done 8575IFS=$as_save_IFS 8576 8577fi ;; 8578esac 8579fi 8580ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 8581if test -n "$ac_ct_OTOOL"; then 8582 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 8583printf "%s\n" "$ac_ct_OTOOL" >&6; } 8584else 8585 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8586printf "%s\n" "no" >&6; } 8587fi 8588 8589 if test "x$ac_ct_OTOOL" = x; then 8590 OTOOL=":" 8591 else 8592 case $cross_compiling:$ac_tool_warned in 8593yes:) 8594{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8595printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8596ac_tool_warned=yes ;; 8597esac 8598 OTOOL=$ac_ct_OTOOL 8599 fi 8600else 8601 OTOOL="$ac_cv_prog_OTOOL" 8602fi 8603 8604 if test -n "$ac_tool_prefix"; then 8605 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 8606set dummy ${ac_tool_prefix}otool64; ac_word=$2 8607{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8608printf %s "checking for $ac_word... " >&6; } 8609if test ${ac_cv_prog_OTOOL64+y} 8610then : 8611 printf %s "(cached) " >&6 8612else case e in #( 8613 e) if test -n "$OTOOL64"; then 8614 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 8615else 8616as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8617for as_dir in $PATH 8618do 8619 IFS=$as_save_IFS 8620 case $as_dir in #((( 8621 '') as_dir=./ ;; 8622 */) ;; 8623 *) as_dir=$as_dir/ ;; 8624 esac 8625 for ac_exec_ext in '' $ac_executable_extensions; do 8626 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8627 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 8628 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8629 break 2 8630 fi 8631done 8632 done 8633IFS=$as_save_IFS 8634 8635fi ;; 8636esac 8637fi 8638OTOOL64=$ac_cv_prog_OTOOL64 8639if test -n "$OTOOL64"; then 8640 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 8641printf "%s\n" "$OTOOL64" >&6; } 8642else 8643 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8644printf "%s\n" "no" >&6; } 8645fi 8646 8647 8648fi 8649if test -z "$ac_cv_prog_OTOOL64"; then 8650 ac_ct_OTOOL64=$OTOOL64 8651 # Extract the first word of "otool64", so it can be a program name with args. 8652set dummy otool64; ac_word=$2 8653{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8654printf %s "checking for $ac_word... " >&6; } 8655if test ${ac_cv_prog_ac_ct_OTOOL64+y} 8656then : 8657 printf %s "(cached) " >&6 8658else case e in #( 8659 e) if test -n "$ac_ct_OTOOL64"; then 8660 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 8661else 8662as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8663for as_dir in $PATH 8664do 8665 IFS=$as_save_IFS 8666 case $as_dir in #((( 8667 '') as_dir=./ ;; 8668 */) ;; 8669 *) as_dir=$as_dir/ ;; 8670 esac 8671 for ac_exec_ext in '' $ac_executable_extensions; do 8672 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8673 ac_cv_prog_ac_ct_OTOOL64="otool64" 8674 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8675 break 2 8676 fi 8677done 8678 done 8679IFS=$as_save_IFS 8680 8681fi ;; 8682esac 8683fi 8684ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 8685if test -n "$ac_ct_OTOOL64"; then 8686 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 8687printf "%s\n" "$ac_ct_OTOOL64" >&6; } 8688else 8689 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8690printf "%s\n" "no" >&6; } 8691fi 8692 8693 if test "x$ac_ct_OTOOL64" = x; then 8694 OTOOL64=":" 8695 else 8696 case $cross_compiling:$ac_tool_warned in 8697yes:) 8698{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8699printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8700ac_tool_warned=yes ;; 8701esac 8702 OTOOL64=$ac_ct_OTOOL64 8703 fi 8704else 8705 OTOOL64="$ac_cv_prog_OTOOL64" 8706fi 8707 8708 8709 8710 8711 8712 8713 8714 8715 8716 8717 8718 8719 8720 8721 8722 8723 8724 8725 8726 8727 8728 8729 8730 8731 8732 8733 8734 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 8735printf %s "checking for -single_module linker flag... " >&6; } 8736if test ${lt_cv_apple_cc_single_mod+y} 8737then : 8738 printf %s "(cached) " >&6 8739else case e in #( 8740 e) lt_cv_apple_cc_single_mod=no 8741 if test -z "$LT_MULTI_MODULE"; then 8742 # By default we will add the -single_module flag. You can override 8743 # by either setting the environment variable LT_MULTI_MODULE 8744 # non-empty at configure time, or by adding -multi_module to the 8745 # link flags. 8746 rm -rf libconftest.dylib* 8747 echo "int foo(void){return 1;}" > conftest.c 8748 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 8749-dynamiclib -Wl,-single_module conftest.c" >&5 8750 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 8751 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 8752 _lt_result=$? 8753 # If there is a non-empty error log, and "single_module" 8754 # appears in it, assume the flag caused a linker warning 8755 if test -s conftest.err && $GREP single_module conftest.err; then 8756 cat conftest.err >&5 8757 # Otherwise, if the output was created with a 0 exit code from 8758 # the compiler, it worked. 8759 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then 8760 lt_cv_apple_cc_single_mod=yes 8761 else 8762 cat conftest.err >&5 8763 fi 8764 rm -rf libconftest.dylib* 8765 rm -f conftest.* 8766 fi ;; 8767esac 8768fi 8769{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 8770printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; } 8771 8772 # Feature test to disable chained fixups since it is not 8773 # compatible with '-undefined dynamic_lookup' 8774 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -no_fixup_chains linker flag" >&5 8775printf %s "checking for -no_fixup_chains linker flag... " >&6; } 8776if test ${lt_cv_support_no_fixup_chains+y} 8777then : 8778 printf %s "(cached) " >&6 8779else case e in #( 8780 e) save_LDFLAGS=$LDFLAGS 8781 LDFLAGS="$LDFLAGS -Wl,-no_fixup_chains" 8782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8783/* end confdefs.h. */ 8784 8785int 8786main (void) 8787{ 8788 8789 ; 8790 return 0; 8791} 8792_ACEOF 8793if ac_fn_c_try_link "$LINENO" 8794then : 8795 lt_cv_support_no_fixup_chains=yes 8796else case e in #( 8797 e) lt_cv_support_no_fixup_chains=no 8798 ;; 8799esac 8800fi 8801rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8802 conftest$ac_exeext conftest.$ac_ext 8803 LDFLAGS=$save_LDFLAGS 8804 8805 ;; 8806esac 8807fi 8808{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_support_no_fixup_chains" >&5 8809printf "%s\n" "$lt_cv_support_no_fixup_chains" >&6; } 8810 8811 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 8812printf %s "checking for -exported_symbols_list linker flag... " >&6; } 8813if test ${lt_cv_ld_exported_symbols_list+y} 8814then : 8815 printf %s "(cached) " >&6 8816else case e in #( 8817 e) lt_cv_ld_exported_symbols_list=no 8818 save_LDFLAGS=$LDFLAGS 8819 echo "_main" > conftest.sym 8820 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 8821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8822/* end confdefs.h. */ 8823 8824int 8825main (void) 8826{ 8827 8828 ; 8829 return 0; 8830} 8831_ACEOF 8832if ac_fn_c_try_link "$LINENO" 8833then : 8834 lt_cv_ld_exported_symbols_list=yes 8835else case e in #( 8836 e) lt_cv_ld_exported_symbols_list=no ;; 8837esac 8838fi 8839rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8840 conftest$ac_exeext conftest.$ac_ext 8841 LDFLAGS=$save_LDFLAGS 8842 ;; 8843esac 8844fi 8845{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 8846printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; } 8847 8848 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 8849printf %s "checking for -force_load linker flag... " >&6; } 8850if test ${lt_cv_ld_force_load+y} 8851then : 8852 printf %s "(cached) " >&6 8853else case e in #( 8854 e) lt_cv_ld_force_load=no 8855 cat > conftest.c << _LT_EOF 8856int forced_loaded() { return 2;} 8857_LT_EOF 8858 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 8859 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 8860 echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5 8861 $AR $AR_FLAGS libconftest.a conftest.o 2>&5 8862 echo "$RANLIB libconftest.a" >&5 8863 $RANLIB libconftest.a 2>&5 8864 cat > conftest.c << _LT_EOF 8865int main(void) { return 0;} 8866_LT_EOF 8867 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 8868 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 8869 _lt_result=$? 8870 if test -s conftest.err && $GREP force_load conftest.err; then 8871 cat conftest.err >&5 8872 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then 8873 lt_cv_ld_force_load=yes 8874 else 8875 cat conftest.err >&5 8876 fi 8877 rm -f conftest.err libconftest.a conftest conftest.c 8878 rm -rf conftest.dSYM 8879 ;; 8880esac 8881fi 8882{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 8883printf "%s\n" "$lt_cv_ld_force_load" >&6; } 8884 case $host_os in 8885 rhapsody* | darwin1.[012]) 8886 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; 8887 darwin1.*) 8888 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 8889 darwin*) 8890 case $MACOSX_DEPLOYMENT_TARGET,$host in 8891 10.[012],*|,*powerpc*-darwin[5-8]*) 8892 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 8893 *) 8894 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' 8895 if test yes = "$lt_cv_support_no_fixup_chains"; then 8896 as_fn_append _lt_dar_allow_undefined ' $wl-no_fixup_chains' 8897 fi 8898 ;; 8899 esac 8900 ;; 8901 esac 8902 if test yes = "$lt_cv_apple_cc_single_mod"; then 8903 _lt_dar_single_mod='$single_module' 8904 fi 8905 _lt_dar_needs_single_mod=no 8906 case $host_os in 8907 rhapsody* | darwin1.*) 8908 _lt_dar_needs_single_mod=yes ;; 8909 darwin*) 8910 # When targeting Mac OS X 10.4 (darwin 8) or later, 8911 # -single_module is the default and -multi_module is unsupported. 8912 # The toolchain on macOS 10.14 (darwin 18) and later cannot 8913 # target any OS version that needs -single_module. 8914 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 8915 10.0,*-darwin[567].*|10.[0-3],*-darwin[5-9].*|10.[0-3],*-darwin1[0-7].*) 8916 _lt_dar_needs_single_mod=yes ;; 8917 esac 8918 ;; 8919 esac 8920 if test yes = "$lt_cv_ld_exported_symbols_list"; then 8921 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' 8922 else 8923 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' 8924 fi 8925 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then 8926 _lt_dsymutil='~$DSYMUTIL $lib || :' 8927 else 8928 _lt_dsymutil= 8929 fi 8930 ;; 8931 esac 8932 8933# func_munge_path_list VARIABLE PATH 8934# ----------------------------------- 8935# VARIABLE is name of variable containing _space_ separated list of 8936# directories to be munged by the contents of PATH, which is string 8937# having a format: 8938# "DIR[:DIR]:" 8939# string "DIR[ DIR]" will be prepended to VARIABLE 8940# ":DIR[:DIR]" 8941# string "DIR[ DIR]" will be appended to VARIABLE 8942# "DIRP[:DIRP]::[DIRA:]DIRA" 8943# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 8944# "DIRA[ DIRA]" will be appended to VARIABLE 8945# "DIR[:DIR]" 8946# VARIABLE will be replaced by "DIR[ DIR]" 8947func_munge_path_list () 8948{ 8949 case x$2 in 8950 x) 8951 ;; 8952 *:) 8953 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 8954 ;; 8955 x:*) 8956 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 8957 ;; 8958 *::*) 8959 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 8960 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 8961 ;; 8962 *) 8963 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 8964 ;; 8965 esac 8966} 8967 8968ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 8969" 8970if test "x$ac_cv_header_dlfcn_h" = xyes 8971then : 8972 printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h 8973 8974fi 8975 8976 8977 8978 8979 8980# Set options 8981 8982 8983 8984 enable_dlopen=no 8985 8986 8987 enable_win32_dll=no 8988 8989 8990 # Check whether --enable-shared was given. 8991if test ${enable_shared+y} 8992then : 8993 enableval=$enable_shared; p=${PACKAGE-default} 8994 case $enableval in 8995 yes) enable_shared=yes ;; 8996 no) enable_shared=no ;; 8997 *) 8998 enable_shared=no 8999 # Look at the argument we got. We use all the common list separators. 9000 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 9001 for pkg in $enableval; do 9002 IFS=$lt_save_ifs 9003 if test "X$pkg" = "X$p"; then 9004 enable_shared=yes 9005 fi 9006 done 9007 IFS=$lt_save_ifs 9008 ;; 9009 esac 9010else case e in #( 9011 e) enable_shared=yes ;; 9012esac 9013fi 9014 9015 9016 9017 9018 9019 9020 9021 9022 9023 # Check whether --enable-static was given. 9024if test ${enable_static+y} 9025then : 9026 enableval=$enable_static; p=${PACKAGE-default} 9027 case $enableval in 9028 yes) enable_static=yes ;; 9029 no) enable_static=no ;; 9030 *) 9031 enable_static=no 9032 # Look at the argument we got. We use all the common list separators. 9033 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 9034 for pkg in $enableval; do 9035 IFS=$lt_save_ifs 9036 if test "X$pkg" = "X$p"; then 9037 enable_static=yes 9038 fi 9039 done 9040 IFS=$lt_save_ifs 9041 ;; 9042 esac 9043else case e in #( 9044 e) enable_static=yes ;; 9045esac 9046fi 9047 9048 9049 9050 9051 9052 9053 9054 9055 9056 # Check whether --enable-pic was given. 9057if test ${enable_pic+y} 9058then : 9059 enableval=$enable_pic; lt_p=${PACKAGE-default} 9060 case $enableval in 9061 yes|no) pic_mode=$enableval ;; 9062 *) 9063 pic_mode=default 9064 # Look at the argument we got. We use all the common list separators. 9065 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 9066 for lt_pkg in $enableval; do 9067 IFS=$lt_save_ifs 9068 if test "X$lt_pkg" = "X$lt_p"; then 9069 pic_mode=yes 9070 fi 9071 done 9072 IFS=$lt_save_ifs 9073 ;; 9074 esac 9075else case e in #( 9076 e) # Check whether --with-pic was given. 9077if test ${with_pic+y} 9078then : 9079 withval=$with_pic; lt_p=${PACKAGE-default} 9080 case $withval in 9081 yes|no) pic_mode=$withval ;; 9082 *) 9083 pic_mode=default 9084 # Look at the argument we got. We use all the common list separators. 9085 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 9086 for lt_pkg in $withval; do 9087 IFS=$lt_save_ifs 9088 if test "X$lt_pkg" = "X$lt_p"; then 9089 pic_mode=yes 9090 fi 9091 done 9092 IFS=$lt_save_ifs 9093 ;; 9094 esac 9095else case e in #( 9096 e) pic_mode=default ;; 9097esac 9098fi 9099 9100 ;; 9101esac 9102fi 9103 9104 9105 9106 9107 9108 9109 9110 9111 # Check whether --enable-fast-install was given. 9112if test ${enable_fast_install+y} 9113then : 9114 enableval=$enable_fast_install; p=${PACKAGE-default} 9115 case $enableval in 9116 yes) enable_fast_install=yes ;; 9117 no) enable_fast_install=no ;; 9118 *) 9119 enable_fast_install=no 9120 # Look at the argument we got. We use all the common list separators. 9121 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 9122 for pkg in $enableval; do 9123 IFS=$lt_save_ifs 9124 if test "X$pkg" = "X$p"; then 9125 enable_fast_install=yes 9126 fi 9127 done 9128 IFS=$lt_save_ifs 9129 ;; 9130 esac 9131else case e in #( 9132 e) enable_fast_install=yes ;; 9133esac 9134fi 9135 9136 9137 9138 9139 9140 9141 9142 9143 shared_archive_member_spec= 9144case $host,$enable_shared in 9145power*-*-aix[5-9]*,yes) 9146 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 9147printf %s "checking which variant of shared library versioning to provide... " >&6; } 9148 # Check whether --enable-aix-soname was given. 9149if test ${enable_aix_soname+y} 9150then : 9151 enableval=$enable_aix_soname; case $enableval in 9152 aix|svr4|both) 9153 ;; 9154 *) 9155 as_fn_error $? "Unknown argument to --enable-aix-soname" "$LINENO" 5 9156 ;; 9157 esac 9158 lt_cv_with_aix_soname=$enable_aix_soname 9159else case e in #( 9160 e) # Check whether --with-aix-soname was given. 9161if test ${with_aix_soname+y} 9162then : 9163 withval=$with_aix_soname; case $withval in 9164 aix|svr4|both) 9165 ;; 9166 *) 9167 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5 9168 ;; 9169 esac 9170 lt_cv_with_aix_soname=$with_aix_soname 9171else case e in #( 9172 e) if test ${lt_cv_with_aix_soname+y} 9173then : 9174 printf %s "(cached) " >&6 9175else case e in #( 9176 e) lt_cv_with_aix_soname=aix ;; 9177esac 9178fi 9179 ;; 9180esac 9181fi 9182 9183 enable_aix_soname=$lt_cv_with_aix_soname ;; 9184esac 9185fi 9186 9187 with_aix_soname=$enable_aix_soname 9188 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 9189printf "%s\n" "$with_aix_soname" >&6; } 9190 if test aix != "$with_aix_soname"; then 9191 # For the AIX way of multilib, we name the shared archive member 9192 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', 9193 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. 9194 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, 9195 # the AIX toolchain works better with OBJECT_MODE set (default 32). 9196 if test 64 = "${OBJECT_MODE-32}"; then 9197 shared_archive_member_spec=shr_64 9198 else 9199 shared_archive_member_spec=shr 9200 fi 9201 fi 9202 ;; 9203*) 9204 with_aix_soname=aix 9205 ;; 9206esac 9207 9208 9209 9210 9211 9212 9213 9214 9215 9216 9217# This can be used to rebuild libtool when needed 9218LIBTOOL_DEPS=$ltmain 9219 9220# Always use our own libtool. 9221LIBTOOL='$(SHELL) $(top_builddir)/libtool' 9222 9223 9224 9225 9226 9227 9228 9229 9230 9231 9232 9233 9234 9235 9236 9237 9238 9239 9240 9241 9242 9243 9244 9245 9246 9247 9248 9249 9250 9251 9252test -z "$LN_S" && LN_S="ln -s" 9253 9254 9255 9256 9257 9258 9259 9260 9261 9262 9263 9264 9265 9266 9267if test -n "${ZSH_VERSION+set}"; then 9268 setopt NO_GLOB_SUBST 9269fi 9270 9271{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 9272printf %s "checking for objdir... " >&6; } 9273if test ${lt_cv_objdir+y} 9274then : 9275 printf %s "(cached) " >&6 9276else case e in #( 9277 e) rm -f .libs 2>/dev/null 9278mkdir .libs 2>/dev/null 9279if test -d .libs; then 9280 lt_cv_objdir=.libs 9281else 9282 # MS-DOS does not allow filenames that begin with a dot. 9283 lt_cv_objdir=_libs 9284fi 9285rmdir .libs 2>/dev/null ;; 9286esac 9287fi 9288{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 9289printf "%s\n" "$lt_cv_objdir" >&6; } 9290objdir=$lt_cv_objdir 9291 9292 9293 9294 9295 9296printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h 9297 9298 9299 9300 9301case $host_os in 9302aix3*) 9303 # AIX sometimes has problems with the GCC collect2 program. For some 9304 # reason, if we set the COLLECT_NAMES environment variable, the problems 9305 # vanish in a puff of smoke. 9306 if test set != "${COLLECT_NAMES+set}"; then 9307 COLLECT_NAMES= 9308 export COLLECT_NAMES 9309 fi 9310 ;; 9311esac 9312 9313# Global variables: 9314ofile=libtool 9315can_build_shared=yes 9316 9317# All known linkers require a '.a' archive for static linking (except MSVC and 9318# ICC, which need '.lib'). 9319libext=a 9320 9321with_gnu_ld=$lt_cv_prog_gnu_ld 9322 9323old_CC=$CC 9324old_CFLAGS=$CFLAGS 9325 9326# Set sane defaults for various variables 9327test -z "$CC" && CC=cc 9328test -z "$LTCC" && LTCC=$CC 9329test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 9330test -z "$LD" && LD=ld 9331test -z "$ac_objext" && ac_objext=o 9332 9333func_cc_basename $compiler 9334cc_basename=$func_cc_basename_result 9335 9336 9337# Only perform the check for file, if the check method requires it 9338test -z "$MAGIC_CMD" && MAGIC_CMD=file 9339case $deplibs_check_method in 9340file_magic*) 9341 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 9342 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 9343printf %s "checking for ${ac_tool_prefix}file... " >&6; } 9344if test ${lt_cv_path_MAGIC_CMD+y} 9345then : 9346 printf %s "(cached) " >&6 9347else case e in #( 9348 e) case $MAGIC_CMD in 9349[\\/*] | ?:[\\/]*) 9350 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 9351 ;; 9352*) 9353 lt_save_MAGIC_CMD=$MAGIC_CMD 9354 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 9355 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 9356 for ac_dir in $ac_dummy; do 9357 IFS=$lt_save_ifs 9358 test -z "$ac_dir" && ac_dir=. 9359 if test -f "$ac_dir/${ac_tool_prefix}file"; then 9360 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file" 9361 if test -n "$file_magic_test_file"; then 9362 case $deplibs_check_method in 9363 "file_magic "*) 9364 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 9365 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 9366 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 9367 $EGREP "$file_magic_regex" > /dev/null; then 9368 : 9369 else 9370 cat <<_LT_EOF 1>&2 9371 9372*** Warning: the command libtool uses to detect shared libraries, 9373*** $file_magic_cmd, produces output that libtool cannot recognize. 9374*** The result is that libtool may fail to recognize shared libraries 9375*** as such. This will affect the creation of libtool libraries that 9376*** depend on shared libraries, but programs linked with such libtool 9377*** libraries will work regardless of this problem. Nevertheless, you 9378*** may want to report the problem to your system manager and/or to 9379*** bug-libtool@gnu.org 9380 9381_LT_EOF 9382 fi ;; 9383 esac 9384 fi 9385 break 9386 fi 9387 done 9388 IFS=$lt_save_ifs 9389 MAGIC_CMD=$lt_save_MAGIC_CMD 9390 ;; 9391esac ;; 9392esac 9393fi 9394 9395MAGIC_CMD=$lt_cv_path_MAGIC_CMD 9396if test -n "$MAGIC_CMD"; then 9397 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 9398printf "%s\n" "$MAGIC_CMD" >&6; } 9399else 9400 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 9401printf "%s\n" "no" >&6; } 9402fi 9403 9404 9405 9406 9407 9408if test -z "$lt_cv_path_MAGIC_CMD"; then 9409 if test -n "$ac_tool_prefix"; then 9410 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5 9411printf %s "checking for file... " >&6; } 9412if test ${lt_cv_path_MAGIC_CMD+y} 9413then : 9414 printf %s "(cached) " >&6 9415else case e in #( 9416 e) case $MAGIC_CMD in 9417[\\/*] | ?:[\\/]*) 9418 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 9419 ;; 9420*) 9421 lt_save_MAGIC_CMD=$MAGIC_CMD 9422 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 9423 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 9424 for ac_dir in $ac_dummy; do 9425 IFS=$lt_save_ifs 9426 test -z "$ac_dir" && ac_dir=. 9427 if test -f "$ac_dir/file"; then 9428 lt_cv_path_MAGIC_CMD=$ac_dir/"file" 9429 if test -n "$file_magic_test_file"; then 9430 case $deplibs_check_method in 9431 "file_magic "*) 9432 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 9433 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 9434 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 9435 $EGREP "$file_magic_regex" > /dev/null; then 9436 : 9437 else 9438 cat <<_LT_EOF 1>&2 9439 9440*** Warning: the command libtool uses to detect shared libraries, 9441*** $file_magic_cmd, produces output that libtool cannot recognize. 9442*** The result is that libtool may fail to recognize shared libraries 9443*** as such. This will affect the creation of libtool libraries that 9444*** depend on shared libraries, but programs linked with such libtool 9445*** libraries will work regardless of this problem. Nevertheless, you 9446*** may want to report the problem to your system manager and/or to 9447*** bug-libtool@gnu.org 9448 9449_LT_EOF 9450 fi ;; 9451 esac 9452 fi 9453 break 9454 fi 9455 done 9456 IFS=$lt_save_ifs 9457 MAGIC_CMD=$lt_save_MAGIC_CMD 9458 ;; 9459esac ;; 9460esac 9461fi 9462 9463MAGIC_CMD=$lt_cv_path_MAGIC_CMD 9464if test -n "$MAGIC_CMD"; then 9465 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 9466printf "%s\n" "$MAGIC_CMD" >&6; } 9467else 9468 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 9469printf "%s\n" "no" >&6; } 9470fi 9471 9472 9473 else 9474 MAGIC_CMD=: 9475 fi 9476fi 9477 9478 fi 9479 ;; 9480esac 9481 9482# Use C for the default configuration in the libtool script 9483 9484lt_save_CC=$CC 9485ac_ext=c 9486ac_cpp='$CPP $CPPFLAGS' 9487ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9488ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9489ac_compiler_gnu=$ac_cv_c_compiler_gnu 9490 9491 9492# Source file extension for C test sources. 9493ac_ext=c 9494 9495# Object file extension for compiled C test sources. 9496objext=o 9497objext=$objext 9498 9499# Code to be used in simple compile tests 9500lt_simple_compile_test_code="int some_variable = 0;" 9501 9502# Code to be used in simple link tests 9503lt_simple_link_test_code='int main(void){return(0);}' 9504 9505 9506 9507 9508 9509 9510 9511# If no C compiler was specified, use CC. 9512LTCC=${LTCC-"$CC"} 9513 9514# If no C compiler flags were specified, use CFLAGS. 9515LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 9516 9517# Allow CC to be a program name with arguments. 9518compiler=$CC 9519 9520# Save the default compiler, since it gets overwritten when the other 9521# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 9522compiler_DEFAULT=$CC 9523 9524# save warnings/boilerplate of simple test code 9525ac_outfile=conftest.$ac_objext 9526echo "$lt_simple_compile_test_code" >conftest.$ac_ext 9527eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 9528_lt_compiler_boilerplate=`cat conftest.err` 9529$RM conftest* 9530 9531ac_outfile=conftest.$ac_objext 9532echo "$lt_simple_link_test_code" >conftest.$ac_ext 9533eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 9534_lt_linker_boilerplate=`cat conftest.err` 9535$RM -r conftest* 9536 9537 9538## CAVEAT EMPTOR: 9539## There is no encapsulation within the following macros, do not change 9540## the running order or otherwise move them around unless you know exactly 9541## what you are doing... 9542if test -n "$compiler"; then 9543 9544lt_prog_compiler_no_builtin_flag= 9545 9546if test yes = "$GCC"; then 9547 case $cc_basename in 9548 nvcc*) 9549 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 9550 *) 9551 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 9552 esac 9553 9554 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 9555printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 9556if test ${lt_cv_prog_compiler_rtti_exceptions+y} 9557then : 9558 printf %s "(cached) " >&6 9559else case e in #( 9560 e) lt_cv_prog_compiler_rtti_exceptions=no 9561 ac_outfile=conftest.$ac_objext 9562 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9563 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment 9564 # Insert the option either (1) after the last *FLAGS variable, or 9565 # (2) before a word containing "conftest.", or (3) at the end. 9566 # Note that $ac_compile itself does not contain backslashes and begins 9567 # with a dollar sign (not a hyphen), so the echo should work correctly. 9568 # The option is referenced via a variable to avoid confusing sed. 9569 lt_compile=`echo "$ac_compile" | $SED \ 9570 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9571 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9572 -e 's:$: $lt_compiler_flag:'` 9573 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9574 (eval "$lt_compile" 2>conftest.err) 9575 ac_status=$? 9576 cat conftest.err >&5 9577 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9578 if (exit $ac_status) && test -s "$ac_outfile"; then 9579 # The compiler can only warn and ignore the option if not recognized 9580 # So say no if there are warnings other than the usual output. 9581 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 9582 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9583 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 9584 lt_cv_prog_compiler_rtti_exceptions=yes 9585 fi 9586 fi 9587 $RM conftest* 9588 ;; 9589esac 9590fi 9591{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 9592printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 9593 9594if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then 9595 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 9596else 9597 : 9598fi 9599 9600fi 9601 9602 9603 9604 9605 9606 9607 lt_prog_compiler_wl= 9608lt_prog_compiler_pic= 9609lt_prog_compiler_static= 9610 9611 9612 if test yes = "$GCC"; then 9613 lt_prog_compiler_wl='-Wl,' 9614 lt_prog_compiler_static='-static' 9615 9616 case $host_os in 9617 aix*) 9618 # All AIX code is PIC. 9619 if test ia64 = "$host_cpu"; then 9620 # AIX 5 now supports IA64 processor 9621 lt_prog_compiler_static='-Bstatic' 9622 fi 9623 lt_prog_compiler_pic='-fPIC' 9624 ;; 9625 9626 amigaos*) 9627 case $host_cpu in 9628 powerpc) 9629 # see comment about AmigaOS4 .so support 9630 lt_prog_compiler_pic='-fPIC' 9631 ;; 9632 m68k) 9633 # FIXME: we need at least 68020 code to build shared libraries, but 9634 # adding the '-m68020' flag to GCC prevents building anything better, 9635 # like '-m68040'. 9636 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 9637 ;; 9638 esac 9639 ;; 9640 9641 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 9642 # PIC is the default for these OSes. 9643 ;; 9644 9645 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*) 9646 # This hack is so that the source file can tell whether it is being 9647 # built for inclusion in a dll (and should export symbols for example). 9648 # Although the cygwin gcc ignores -fPIC, still need this for old-style 9649 # (--disable-auto-import) libraries 9650 lt_prog_compiler_pic='-DDLL_EXPORT' 9651 case $host_os in 9652 os2*) 9653 lt_prog_compiler_static='$wl-static' 9654 ;; 9655 esac 9656 ;; 9657 9658 darwin* | rhapsody*) 9659 # PIC is the default on this platform 9660 # Common symbols not allowed in MH_DYLIB files 9661 lt_prog_compiler_pic='-fno-common' 9662 ;; 9663 9664 haiku*) 9665 # PIC is the default for Haiku. 9666 # The "-static" flag exists, but is broken. 9667 lt_prog_compiler_static= 9668 ;; 9669 9670 hpux*) 9671 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 9672 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 9673 # sets the default TLS model and affects inlining. 9674 case $host_cpu in 9675 hppa*64*) 9676 # +Z the default 9677 ;; 9678 *) 9679 lt_prog_compiler_pic='-fPIC' 9680 ;; 9681 esac 9682 ;; 9683 9684 interix[3-9]*) 9685 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 9686 # Instead, we relocate shared libraries at runtime. 9687 ;; 9688 9689 msdosdjgpp*) 9690 # Just because we use GCC doesn't mean we suddenly get shared libraries 9691 # on systems that don't support them. 9692 lt_prog_compiler_can_build_shared=no 9693 enable_shared=no 9694 ;; 9695 9696 *nto* | *qnx*) 9697 # QNX uses GNU C++, but need to define -shared option too, otherwise 9698 # it will coredump. 9699 lt_prog_compiler_pic='-fPIC -shared' 9700 ;; 9701 9702 sysv4*MP*) 9703 if test -d /usr/nec; then 9704 lt_prog_compiler_pic=-Kconform_pic 9705 fi 9706 ;; 9707 9708 *) 9709 lt_prog_compiler_pic='-fPIC' 9710 ;; 9711 esac 9712 9713 case $cc_basename in 9714 nvcc*) # Cuda Compiler Driver 2.2 9715 lt_prog_compiler_wl='-Xlinker ' 9716 if test -n "$lt_prog_compiler_pic"; then 9717 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 9718 fi 9719 ;; 9720 esac 9721 else 9722 # PORTME Check for flag to pass linker flags through the system compiler. 9723 case $host_os in 9724 aix*) 9725 lt_prog_compiler_wl='-Wl,' 9726 if test ia64 = "$host_cpu"; then 9727 # AIX 5 now supports IA64 processor 9728 lt_prog_compiler_static='-Bstatic' 9729 else 9730 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 9731 fi 9732 ;; 9733 9734 darwin* | rhapsody*) 9735 # PIC is the default on this platform 9736 # Common symbols not allowed in MH_DYLIB files 9737 lt_prog_compiler_pic='-fno-common' 9738 case $cc_basename in 9739 nagfor*) 9740 # NAG Fortran compiler 9741 lt_prog_compiler_wl='-Wl,-Wl,,' 9742 lt_prog_compiler_pic='-PIC' 9743 lt_prog_compiler_static='-Bstatic' 9744 ;; 9745 esac 9746 ;; 9747 9748 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*) 9749 # This hack is so that the source file can tell whether it is being 9750 # built for inclusion in a dll (and should export symbols for example). 9751 lt_prog_compiler_pic='-DDLL_EXPORT' 9752 case $host_os in 9753 os2*) 9754 lt_prog_compiler_static='$wl-static' 9755 ;; 9756 esac 9757 ;; 9758 9759 hpux9* | hpux10* | hpux11*) 9760 lt_prog_compiler_wl='-Wl,' 9761 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 9762 # not for PA HP-UX. 9763 case $host_cpu in 9764 hppa*64*|ia64*) 9765 # +Z the default 9766 ;; 9767 *) 9768 lt_prog_compiler_pic='+Z' 9769 ;; 9770 esac 9771 # Is there a better lt_prog_compiler_static that works with the bundled CC? 9772 lt_prog_compiler_static='$wl-a ${wl}archive' 9773 ;; 9774 9775 irix5* | irix6* | nonstopux*) 9776 lt_prog_compiler_wl='-Wl,' 9777 # PIC (with -KPIC) is the default. 9778 lt_prog_compiler_static='-non_shared' 9779 ;; 9780 9781 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 9782 case $cc_basename in 9783 # old Intel for x86_64, which still supported -KPIC. 9784 ecc*) 9785 lt_prog_compiler_wl='-Wl,' 9786 lt_prog_compiler_pic='-KPIC' 9787 lt_prog_compiler_static='-static' 9788 ;; 9789 *flang* | ftn | f18* | f95*) 9790 # Flang compiler. 9791 lt_prog_compiler_wl='-Wl,' 9792 lt_prog_compiler_pic='-fPIC' 9793 lt_prog_compiler_static='-static' 9794 ;; 9795 # icc used to be incompatible with GCC. 9796 # ICC 10 doesn't accept -KPIC any more. 9797 icc* | ifort*) 9798 lt_prog_compiler_wl='-Wl,' 9799 lt_prog_compiler_pic='-fPIC' 9800 lt_prog_compiler_static='-static' 9801 ;; 9802 # Lahey Fortran 8.1. 9803 lf95*) 9804 lt_prog_compiler_wl='-Wl,' 9805 lt_prog_compiler_pic='--shared' 9806 lt_prog_compiler_static='--static' 9807 ;; 9808 nagfor*) 9809 # NAG Fortran compiler 9810 lt_prog_compiler_wl='-Wl,-Wl,,' 9811 lt_prog_compiler_pic='-PIC' 9812 lt_prog_compiler_static='-Bstatic' 9813 ;; 9814 tcc*) 9815 # Fabrice Bellard et al's Tiny C Compiler 9816 lt_prog_compiler_wl='-Wl,' 9817 lt_prog_compiler_pic='-fPIC' 9818 lt_prog_compiler_static='-static' 9819 ;; 9820 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 9821 # Portland Group compilers (*not* the Pentium gcc compiler, 9822 # which looks to be a dead project) 9823 lt_prog_compiler_wl='-Wl,' 9824 lt_prog_compiler_pic='-fpic' 9825 lt_prog_compiler_static='-Bstatic' 9826 ;; 9827 ccc*) 9828 lt_prog_compiler_wl='-Wl,' 9829 # All Alpha code is PIC. 9830 lt_prog_compiler_static='-non_shared' 9831 ;; 9832 xl* | bgxl* | bgf* | mpixl*) 9833 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 9834 lt_prog_compiler_wl='-Wl,' 9835 lt_prog_compiler_pic='-qpic' 9836 lt_prog_compiler_static='-qstaticlink' 9837 ;; 9838 *) 9839 case `$CC -V 2>&1 | $SED 5q` in 9840 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 9841 # Sun Fortran 8.3 passes all unrecognized flags to the linker 9842 lt_prog_compiler_pic='-KPIC' 9843 lt_prog_compiler_static='-Bstatic' 9844 lt_prog_compiler_wl='' 9845 ;; 9846 *Sun\ F* | *Sun*Fortran*) 9847 lt_prog_compiler_pic='-KPIC' 9848 lt_prog_compiler_static='-Bstatic' 9849 lt_prog_compiler_wl='-Qoption ld ' 9850 ;; 9851 *Sun\ C*) 9852 # Sun C 5.9 9853 lt_prog_compiler_pic='-KPIC' 9854 lt_prog_compiler_static='-Bstatic' 9855 lt_prog_compiler_wl='-Wl,' 9856 ;; 9857 *Intel*\ [CF]*Compiler*) 9858 lt_prog_compiler_wl='-Wl,' 9859 lt_prog_compiler_pic='-fPIC' 9860 lt_prog_compiler_static='-static' 9861 ;; 9862 *Portland\ Group*) 9863 lt_prog_compiler_wl='-Wl,' 9864 lt_prog_compiler_pic='-fpic' 9865 lt_prog_compiler_static='-Bstatic' 9866 ;; 9867 esac 9868 ;; 9869 esac 9870 ;; 9871 9872 newsos6) 9873 lt_prog_compiler_pic='-KPIC' 9874 lt_prog_compiler_static='-Bstatic' 9875 ;; 9876 9877 *-mlibc) 9878 lt_prog_compiler_wl='-Wl,' 9879 lt_prog_compiler_pic='-fPIC' 9880 lt_prog_compiler_static='-static' 9881 ;; 9882 9883 *nto* | *qnx*) 9884 # QNX uses GNU C++, but need to define -shared option too, otherwise 9885 # it will coredump. 9886 lt_prog_compiler_pic='-fPIC -shared' 9887 ;; 9888 9889 osf3* | osf4* | osf5*) 9890 lt_prog_compiler_wl='-Wl,' 9891 # All OSF/1 code is PIC. 9892 lt_prog_compiler_static='-non_shared' 9893 ;; 9894 9895 rdos*) 9896 lt_prog_compiler_static='-non_shared' 9897 ;; 9898 9899 serenity*) 9900 ;; 9901 9902 solaris*) 9903 lt_prog_compiler_pic='-KPIC' 9904 lt_prog_compiler_static='-Bstatic' 9905 case $cc_basename in 9906 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 9907 lt_prog_compiler_wl='-Qoption ld ';; 9908 *) 9909 lt_prog_compiler_wl='-Wl,';; 9910 esac 9911 ;; 9912 9913 sunos4*) 9914 lt_prog_compiler_wl='-Qoption ld ' 9915 lt_prog_compiler_pic='-PIC' 9916 lt_prog_compiler_static='-Bstatic' 9917 ;; 9918 9919 sysv4 | sysv4.2uw2* | sysv4.3*) 9920 lt_prog_compiler_wl='-Wl,' 9921 lt_prog_compiler_pic='-KPIC' 9922 lt_prog_compiler_static='-Bstatic' 9923 ;; 9924 9925 sysv4*MP*) 9926 if test -d /usr/nec; then 9927 lt_prog_compiler_pic='-Kconform_pic' 9928 lt_prog_compiler_static='-Bstatic' 9929 fi 9930 ;; 9931 9932 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 9933 lt_prog_compiler_wl='-Wl,' 9934 lt_prog_compiler_pic='-KPIC' 9935 lt_prog_compiler_static='-Bstatic' 9936 ;; 9937 9938 unicos*) 9939 lt_prog_compiler_wl='-Wl,' 9940 lt_prog_compiler_can_build_shared=no 9941 ;; 9942 9943 uts4*) 9944 lt_prog_compiler_pic='-pic' 9945 lt_prog_compiler_static='-Bstatic' 9946 ;; 9947 9948 *) 9949 lt_prog_compiler_can_build_shared=no 9950 ;; 9951 esac 9952 fi 9953 9954case $host_os in 9955 # For platforms that do not support PIC, -DPIC is meaningless: 9956 *djgpp*) 9957 lt_prog_compiler_pic= 9958 ;; 9959 *) 9960 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 9961 ;; 9962esac 9963 9964{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 9965printf %s "checking for $compiler option to produce PIC... " >&6; } 9966if test ${lt_cv_prog_compiler_pic+y} 9967then : 9968 printf %s "(cached) " >&6 9969else case e in #( 9970 e) lt_cv_prog_compiler_pic=$lt_prog_compiler_pic ;; 9971esac 9972fi 9973{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 9974printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; } 9975lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 9976 9977# 9978# Check to make sure the PIC flag actually works. 9979# 9980if test -n "$lt_prog_compiler_pic"; then 9981 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 9982printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 9983if test ${lt_cv_prog_compiler_pic_works+y} 9984then : 9985 printf %s "(cached) " >&6 9986else case e in #( 9987 e) lt_cv_prog_compiler_pic_works=no 9988 ac_outfile=conftest.$ac_objext 9989 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9990 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment 9991 # Insert the option either (1) after the last *FLAGS variable, or 9992 # (2) before a word containing "conftest.", or (3) at the end. 9993 # Note that $ac_compile itself does not contain backslashes and begins 9994 # with a dollar sign (not a hyphen), so the echo should work correctly. 9995 # The option is referenced via a variable to avoid confusing sed. 9996 lt_compile=`echo "$ac_compile" | $SED \ 9997 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9998 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9999 -e 's:$: $lt_compiler_flag:'` 10000 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 10001 (eval "$lt_compile" 2>conftest.err) 10002 ac_status=$? 10003 cat conftest.err >&5 10004 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10005 if (exit $ac_status) && test -s "$ac_outfile"; then 10006 # The compiler can only warn and ignore the option if not recognized 10007 # So say no if there are warnings other than the usual output. 10008 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 10009 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 10010 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 10011 lt_cv_prog_compiler_pic_works=yes 10012 fi 10013 fi 10014 $RM conftest* 10015 ;; 10016esac 10017fi 10018{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 10019printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; } 10020 10021if test yes = "$lt_cv_prog_compiler_pic_works"; then 10022 case $lt_prog_compiler_pic in 10023 "" | " "*) ;; 10024 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 10025 esac 10026else 10027 lt_prog_compiler_pic= 10028 lt_prog_compiler_can_build_shared=no 10029fi 10030 10031fi 10032 10033 10034 10035 10036 10037 10038 10039 10040 10041 10042 10043# 10044# Check to make sure the static flag actually works. 10045# 10046wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 10047{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 10048printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 10049if test ${lt_cv_prog_compiler_static_works+y} 10050then : 10051 printf %s "(cached) " >&6 10052else case e in #( 10053 e) lt_cv_prog_compiler_static_works=no 10054 save_LDFLAGS=$LDFLAGS 10055 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 10056 echo "$lt_simple_link_test_code" > conftest.$ac_ext 10057 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 10058 # The linker can only warn and ignore the option if not recognized 10059 # So say no if there are warnings 10060 if test -s conftest.err; then 10061 # Append any errors to the config.log. 10062 cat conftest.err 1>&5 10063 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 10064 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 10065 if diff conftest.exp conftest.er2 >/dev/null; then 10066 lt_cv_prog_compiler_static_works=yes 10067 fi 10068 else 10069 lt_cv_prog_compiler_static_works=yes 10070 fi 10071 fi 10072 $RM -r conftest* 10073 LDFLAGS=$save_LDFLAGS 10074 ;; 10075esac 10076fi 10077{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 10078printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; } 10079 10080if test yes = "$lt_cv_prog_compiler_static_works"; then 10081 : 10082else 10083 lt_prog_compiler_static= 10084fi 10085 10086 10087 10088 10089 10090 10091 10092 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 10093printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 10094if test ${lt_cv_prog_compiler_c_o+y} 10095then : 10096 printf %s "(cached) " >&6 10097else case e in #( 10098 e) lt_cv_prog_compiler_c_o=no 10099 $RM -r conftest 2>/dev/null 10100 mkdir conftest 10101 cd conftest 10102 mkdir out 10103 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10104 10105 lt_compiler_flag="-o out/conftest2.$ac_objext" 10106 # Insert the option either (1) after the last *FLAGS variable, or 10107 # (2) before a word containing "conftest.", or (3) at the end. 10108 # Note that $ac_compile itself does not contain backslashes and begins 10109 # with a dollar sign (not a hyphen), so the echo should work correctly. 10110 lt_compile=`echo "$ac_compile" | $SED \ 10111 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 10112 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 10113 -e 's:$: $lt_compiler_flag:'` 10114 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 10115 (eval "$lt_compile" 2>out/conftest.err) 10116 ac_status=$? 10117 cat out/conftest.err >&5 10118 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10119 if (exit $ac_status) && test -s out/conftest2.$ac_objext 10120 then 10121 # The compiler can only warn and ignore the option if not recognized 10122 # So say no if there are warnings 10123 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 10124 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 10125 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 10126 lt_cv_prog_compiler_c_o=yes 10127 fi 10128 fi 10129 chmod u+w . 2>&5 10130 $RM conftest* 10131 # SGI C++ compiler will create directory out/ii_files/ for 10132 # template instantiation 10133 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 10134 $RM out/* && rmdir out 10135 cd .. 10136 $RM -r conftest 10137 $RM conftest* 10138 ;; 10139esac 10140fi 10141{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 10142printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; } 10143 10144 10145 10146 10147 10148 10149 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 10150printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 10151if test ${lt_cv_prog_compiler_c_o+y} 10152then : 10153 printf %s "(cached) " >&6 10154else case e in #( 10155 e) lt_cv_prog_compiler_c_o=no 10156 $RM -r conftest 2>/dev/null 10157 mkdir conftest 10158 cd conftest 10159 mkdir out 10160 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10161 10162 lt_compiler_flag="-o out/conftest2.$ac_objext" 10163 # Insert the option either (1) after the last *FLAGS variable, or 10164 # (2) before a word containing "conftest.", or (3) at the end. 10165 # Note that $ac_compile itself does not contain backslashes and begins 10166 # with a dollar sign (not a hyphen), so the echo should work correctly. 10167 lt_compile=`echo "$ac_compile" | $SED \ 10168 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 10169 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 10170 -e 's:$: $lt_compiler_flag:'` 10171 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 10172 (eval "$lt_compile" 2>out/conftest.err) 10173 ac_status=$? 10174 cat out/conftest.err >&5 10175 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10176 if (exit $ac_status) && test -s out/conftest2.$ac_objext 10177 then 10178 # The compiler can only warn and ignore the option if not recognized 10179 # So say no if there are warnings 10180 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 10181 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 10182 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 10183 lt_cv_prog_compiler_c_o=yes 10184 fi 10185 fi 10186 chmod u+w . 2>&5 10187 $RM conftest* 10188 # SGI C++ compiler will create directory out/ii_files/ for 10189 # template instantiation 10190 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 10191 $RM out/* && rmdir out 10192 cd .. 10193 $RM -r conftest 10194 $RM conftest* 10195 ;; 10196esac 10197fi 10198{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 10199printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; } 10200 10201 10202 10203 10204hard_links=nottested 10205if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then 10206 # do not overwrite the value of need_locks provided by the user 10207 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 10208printf %s "checking if we can lock with hard links... " >&6; } 10209 hard_links=yes 10210 $RM conftest* 10211 ln conftest.a conftest.b 2>/dev/null && hard_links=no 10212 touch conftest.a 10213 ln conftest.a conftest.b 2>&5 || hard_links=no 10214 ln conftest.a conftest.b 2>/dev/null && hard_links=no 10215 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 10216printf "%s\n" "$hard_links" >&6; } 10217 if test no = "$hard_links"; then 10218 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 10219printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 10220 need_locks=warn 10221 fi 10222else 10223 need_locks=no 10224fi 10225 10226 10227 10228 10229 10230 10231 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 10232printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 10233 10234 runpath_var= 10235 allow_undefined_flag= 10236 always_export_symbols=no 10237 archive_cmds= 10238 archive_expsym_cmds= 10239 compiler_needs_object=no 10240 enable_shared_with_static_runtimes=no 10241 export_dynamic_flag_spec= 10242 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 10243 hardcode_automatic=no 10244 hardcode_direct=no 10245 hardcode_direct_absolute=no 10246 hardcode_libdir_flag_spec= 10247 hardcode_libdir_separator= 10248 hardcode_minus_L=no 10249 hardcode_shlibpath_var=unsupported 10250 inherit_rpath=no 10251 link_all_deplibs=unknown 10252 module_cmds= 10253 module_expsym_cmds= 10254 old_archive_from_new_cmds= 10255 old_archive_from_expsyms_cmds= 10256 thread_safe_flag_spec= 10257 whole_archive_flag_spec= 10258 # include_expsyms should be a list of space-separated symbols to be *always* 10259 # included in the symbol list 10260 include_expsyms= 10261 # exclude_expsyms can be an extended regexp of symbols to exclude 10262 # it will be wrapped by ' (' and ')$', so one must not match beginning or 10263 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', 10264 # as well as any symbol that contains 'd'. 10265 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 10266 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 10267 # platforms (ab)use it in PIC code, but their linkers get confused if 10268 # the symbol is explicitly referenced. Since portable code cannot 10269 # rely on this symbol name, it's probably fine to never include it in 10270 # preloaded symbol tables. 10271 # Exclude shared library initialization/finalization symbols. 10272 extract_expsyms_cmds= 10273 10274 case $host_os in 10275 cygwin* | mingw* | windows* | pw32* | cegcc*) 10276 # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time 10277 # When not using gcc, we currently assume that we are using 10278 # Microsoft Visual C++ or Intel C++ Compiler. 10279 if test yes != "$GCC"; then 10280 with_gnu_ld=no 10281 fi 10282 ;; 10283 interix*) 10284 # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC) 10285 with_gnu_ld=yes 10286 ;; 10287 esac 10288 10289 ld_shlibs=yes 10290 10291 # On some targets, GNU ld is compatible enough with the native linker 10292 # that we're better off using the native interface for both. 10293 lt_use_gnu_ld_interface=no 10294 if test yes = "$with_gnu_ld"; then 10295 case $host_os in 10296 aix*) 10297 # The AIX port of GNU ld has always aspired to compatibility 10298 # with the native linker. However, as the warning in the GNU ld 10299 # block says, versions before 2.19.5* couldn't really create working 10300 # shared libraries, regardless of the interface used. 10301 case `$LD -v 2>&1` in 10302 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 10303 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 10304 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 10305 *) 10306 lt_use_gnu_ld_interface=yes 10307 ;; 10308 esac 10309 ;; 10310 *) 10311 lt_use_gnu_ld_interface=yes 10312 ;; 10313 esac 10314 fi 10315 10316 if test yes = "$lt_use_gnu_ld_interface"; then 10317 # If archive_cmds runs LD, not CC, wlarc should be empty 10318 wlarc='$wl' 10319 10320 # Set some defaults for GNU ld with shared library support. These 10321 # are reset later if shared libraries are not supported. Putting them 10322 # here allows them to be overridden if necessary. 10323 runpath_var=LD_RUN_PATH 10324 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10325 export_dynamic_flag_spec='$wl--export-dynamic' 10326 # ancient GNU ld didn't support --whole-archive et. al. 10327 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 10328 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 10329 else 10330 whole_archive_flag_spec= 10331 fi 10332 supports_anon_versioning=no 10333 case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in 10334 *GNU\ gold*) supports_anon_versioning=yes ;; 10335 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 10336 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 10337 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 10338 *\ 2.11.*) ;; # other 2.11 versions 10339 *) supports_anon_versioning=yes ;; 10340 esac 10341 10342 # See if GNU ld supports shared libraries. 10343 case $host_os in 10344 aix[3-9]*) 10345 # On AIX/PPC, the GNU linker is very broken 10346 if test ia64 != "$host_cpu"; then 10347 ld_shlibs=no 10348 cat <<_LT_EOF 1>&2 10349 10350*** Warning: the GNU linker, at least up to release 2.19, is reported 10351*** to be unable to reliably create shared libraries on AIX. 10352*** Therefore, libtool is disabling shared libraries support. If you 10353*** really care for shared libraries, you may want to install binutils 10354*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 10355*** You will then need to restart the configuration process. 10356 10357_LT_EOF 10358 fi 10359 ;; 10360 10361 amigaos*) 10362 case $host_cpu in 10363 powerpc) 10364 # see comment about AmigaOS4 .so support 10365 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10366 archive_expsym_cmds='' 10367 ;; 10368 m68k) 10369 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)' 10370 hardcode_libdir_flag_spec='-L$libdir' 10371 hardcode_minus_L=yes 10372 ;; 10373 esac 10374 ;; 10375 10376 beos*) 10377 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10378 allow_undefined_flag=unsupported 10379 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 10380 # support --undefined. This deserves some investigation. FIXME 10381 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10382 else 10383 ld_shlibs=no 10384 fi 10385 ;; 10386 10387 cygwin* | mingw* | windows* | pw32* | cegcc*) 10388 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 10389 # as there is no search path for DLLs. 10390 hardcode_libdir_flag_spec='-L$libdir' 10391 export_dynamic_flag_spec='$wl--export-all-symbols' 10392 allow_undefined_flag=unsupported 10393 always_export_symbols=no 10394 enable_shared_with_static_runtimes=yes 10395 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' 10396 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 10397 file_list_spec='@' 10398 10399 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 10400 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 10401 # If the export-symbols file already is a .def file, use it as 10402 # is; otherwise, prepend EXPORTS... 10403 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 10404 cp $export_symbols $output_objdir/$soname.def; 10405 else 10406 echo EXPORTS > $output_objdir/$soname.def; 10407 cat $export_symbols >> $output_objdir/$soname.def; 10408 fi~ 10409 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 10410 else 10411 ld_shlibs=no 10412 fi 10413 ;; 10414 10415 haiku*) 10416 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10417 link_all_deplibs=no 10418 ;; 10419 10420 os2*) 10421 hardcode_libdir_flag_spec='-L$libdir' 10422 hardcode_minus_L=yes 10423 allow_undefined_flag=unsupported 10424 shrext_cmds=.dll 10425 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10426 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10427 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10428 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10429 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 10430 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10431 emximp -o $lib $output_objdir/$libname.def' 10432 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10433 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10434 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10435 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10436 prefix_cmds="$SED"~ 10437 if test EXPORTS = "`$SED 1q $export_symbols`"; then 10438 prefix_cmds="$prefix_cmds -e 1d"; 10439 fi~ 10440 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 10441 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 10442 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10443 emximp -o $lib $output_objdir/$libname.def' 10444 old_archive_from_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 10445 enable_shared_with_static_runtimes=yes 10446 file_list_spec='@' 10447 ;; 10448 10449 interix[3-9]*) 10450 hardcode_direct=no 10451 hardcode_shlibpath_var=no 10452 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 10453 export_dynamic_flag_spec='$wl-E' 10454 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 10455 # Instead, shared libraries are loaded at an image base (0x10000000 by 10456 # default) and relocated if they conflict, which is a slow very memory 10457 # consuming and fragmenting process. To avoid this, we pick a random, 10458 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 10459 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 10460 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 10461 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' 10462 ;; 10463 10464 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 10465 tmp_diet=no 10466 if test linux-dietlibc = "$host_os"; then 10467 case $cc_basename in 10468 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 10469 esac 10470 fi 10471 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 10472 && test no = "$tmp_diet" 10473 then 10474 tmp_addflag=' $pic_flag' 10475 tmp_sharedflag='-shared' 10476 case $cc_basename,$host_cpu in 10477 pgcc*) # Portland Group C compiler 10478 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' 10479 tmp_addflag=' $pic_flag' 10480 ;; 10481 pgf77* | pgf90* | pgf95* | pgfortran*) 10482 # Portland Group f77 and f90 compilers 10483 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' 10484 tmp_addflag=' $pic_flag -Mnomain' ;; 10485 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 10486 tmp_addflag=' -i_dynamic' ;; 10487 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 10488 tmp_addflag=' -i_dynamic -nofor_main' ;; 10489 ifc* | ifort*) # Intel Fortran compiler 10490 tmp_addflag=' -nofor_main' ;; 10491 lf95*) # Lahey Fortran 8.1 10492 whole_archive_flag_spec= 10493 tmp_sharedflag='--shared' ;; 10494 nagfor*) # NAGFOR 5.3 10495 tmp_sharedflag='-Wl,-shared' ;; 10496 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 10497 tmp_sharedflag='-qmkshrobj' 10498 tmp_addflag= ;; 10499 nvcc*) # Cuda Compiler Driver 2.2 10500 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' 10501 compiler_needs_object=yes 10502 ;; 10503 esac 10504 case `$CC -V 2>&1 | $SED 5q` in 10505 *Sun\ C*) # Sun C 5.9 10506 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' 10507 compiler_needs_object=yes 10508 tmp_sharedflag='-G' ;; 10509 *Sun\ F*) # Sun Fortran 8.3 10510 tmp_sharedflag='-G' ;; 10511 esac 10512 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10513 10514 if test yes = "$supports_anon_versioning"; then 10515 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 10516 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 10517 echo "local: *; };" >> $output_objdir/$libname.ver~ 10518 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 10519 fi 10520 10521 case $cc_basename in 10522 tcc*) 10523 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10524 export_dynamic_flag_spec='-rdynamic' 10525 ;; 10526 xlf* | bgf* | bgxlf* | mpixlf*) 10527 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 10528 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 10529 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10530 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 10531 if test yes = "$supports_anon_versioning"; then 10532 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 10533 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 10534 echo "local: *; };" >> $output_objdir/$libname.ver~ 10535 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 10536 fi 10537 ;; 10538 esac 10539 else 10540 ld_shlibs=no 10541 fi 10542 ;; 10543 10544 *-mlibc) 10545 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10546 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10547 ;; 10548 10549 netbsd* | netbsdelf*-gnu) 10550 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10551 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 10552 wlarc= 10553 else 10554 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10555 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10556 fi 10557 ;; 10558 10559 solaris*) 10560 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 10561 ld_shlibs=no 10562 cat <<_LT_EOF 1>&2 10563 10564*** Warning: The releases 2.8.* of the GNU linker cannot reliably 10565*** create shared libraries on Solaris systems. Therefore, libtool 10566*** is disabling shared libraries support. We urge you to upgrade GNU 10567*** binutils to release 2.9.1 or newer. Another option is to modify 10568*** your PATH or compiler configuration so that the native linker is 10569*** used, and then restart. 10570 10571_LT_EOF 10572 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10573 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10574 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10575 else 10576 ld_shlibs=no 10577 fi 10578 ;; 10579 10580 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 10581 case `$LD -v 2>&1` in 10582 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 10583 ld_shlibs=no 10584 cat <<_LT_EOF 1>&2 10585 10586*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot 10587*** reliably create shared libraries on SCO systems. Therefore, libtool 10588*** is disabling shared libraries support. We urge you to upgrade GNU 10589*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 10590*** your PATH or compiler configuration so that the native linker is 10591*** used, and then restart. 10592 10593_LT_EOF 10594 ;; 10595 *) 10596 # For security reasons, it is highly recommended that you always 10597 # use absolute paths for naming shared libraries, and exclude the 10598 # DT_RUNPATH tag from executables and libraries. But doing so 10599 # requires that you compile everything twice, which is a pain. 10600 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10601 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10602 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10603 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10604 else 10605 ld_shlibs=no 10606 fi 10607 ;; 10608 esac 10609 ;; 10610 10611 sunos4*) 10612 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 10613 wlarc= 10614 hardcode_direct=yes 10615 hardcode_shlibpath_var=no 10616 ;; 10617 10618 *) 10619 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10620 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10621 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10622 else 10623 ld_shlibs=no 10624 fi 10625 ;; 10626 esac 10627 10628 if test no = "$ld_shlibs"; then 10629 runpath_var= 10630 hardcode_libdir_flag_spec= 10631 export_dynamic_flag_spec= 10632 whole_archive_flag_spec= 10633 fi 10634 else 10635 # PORTME fill in a description of your system's linker (not GNU ld) 10636 case $host_os in 10637 aix3*) 10638 allow_undefined_flag=unsupported 10639 always_export_symbols=yes 10640 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' 10641 # Note: this linker hardcodes the directories in LIBPATH if there 10642 # are no directories specified by -L. 10643 hardcode_minus_L=yes 10644 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then 10645 # Neither direct hardcoding nor static linking is supported with a 10646 # broken collect2. 10647 hardcode_direct=unsupported 10648 fi 10649 ;; 10650 10651 aix[4-9]*) 10652 if test ia64 = "$host_cpu"; then 10653 # On IA64, the linker does run time linking by default, so we don't 10654 # have to do anything special. 10655 aix_use_runtimelinking=no 10656 exp_sym_flag='-Bexport' 10657 no_entry_flag= 10658 else 10659 # If we're using GNU nm, then we don't want the "-C" option. 10660 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 10661 # Without the "-l" option, or with the "-B" option, AIX nm treats 10662 # weak defined symbols like other global defined symbols, whereas 10663 # GNU nm marks them as "W". 10664 # While the 'weak' keyword is ignored in the Export File, we need 10665 # it in the Import File for the 'aix-soname' feature, so we have 10666 # to replace the "-B" option with "-P" for AIX nm. 10667 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 10668 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' 10669 else 10670 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' 10671 fi 10672 aix_use_runtimelinking=no 10673 10674 # Test if we are trying to use run time linking or normal 10675 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 10676 # have runtime linking enabled, and use it for executables. 10677 # For shared libraries, we enable/disable runtime linking 10678 # depending on the kind of the shared library created - 10679 # when "with_aix_soname,aix_use_runtimelinking" is: 10680 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 10681 # "aix,yes" lib.so shared, rtl:yes, for executables 10682 # lib.a static archive 10683 # "both,no" lib.so.V(shr.o) shared, rtl:yes 10684 # lib.a(lib.so.V) shared, rtl:no, for executables 10685 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 10686 # lib.a(lib.so.V) shared, rtl:no 10687 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 10688 # lib.a static archive 10689 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 10690 for ld_flag in $LDFLAGS; do 10691 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then 10692 aix_use_runtimelinking=yes 10693 break 10694 fi 10695 done 10696 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 10697 # With aix-soname=svr4, we create the lib.so.V shared archives only, 10698 # so we don't have lib.a shared libs to link our executables. 10699 # We have to force runtime linking in this case. 10700 aix_use_runtimelinking=yes 10701 LDFLAGS="$LDFLAGS -Wl,-brtl" 10702 fi 10703 ;; 10704 esac 10705 10706 exp_sym_flag='-bexport' 10707 no_entry_flag='-bnoentry' 10708 fi 10709 10710 # When large executables or shared objects are built, AIX ld can 10711 # have problems creating the table of contents. If linking a library 10712 # or program results in "error TOC overflow" add -mminimal-toc to 10713 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 10714 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 10715 10716 archive_cmds='' 10717 hardcode_direct=yes 10718 hardcode_direct_absolute=yes 10719 hardcode_libdir_separator=':' 10720 link_all_deplibs=yes 10721 file_list_spec='$wl-f,' 10722 case $with_aix_soname,$aix_use_runtimelinking in 10723 aix,*) ;; # traditional, no import file 10724 svr4,* | *,yes) # use import file 10725 # The Import File defines what to hardcode. 10726 hardcode_direct=no 10727 hardcode_direct_absolute=no 10728 ;; 10729 esac 10730 10731 if test yes = "$GCC"; then 10732 case $host_os in aix4.[012]|aix4.[012].*) 10733 # We only want to do this on AIX 4.2 and lower, the check 10734 # below for broken collect2 doesn't work under 4.3+ 10735 collect2name=`$CC -print-prog-name=collect2` 10736 if test -f "$collect2name" && 10737 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 10738 then 10739 # We have reworked collect2 10740 : 10741 else 10742 # We have old collect2 10743 hardcode_direct=unsupported 10744 # It fails to find uninstalled libraries when the uninstalled 10745 # path is not listed in the libpath. Setting hardcode_minus_L 10746 # to unsupported forces relinking 10747 hardcode_minus_L=yes 10748 hardcode_libdir_flag_spec='-L$libdir' 10749 hardcode_libdir_separator= 10750 fi 10751 ;; 10752 esac 10753 shared_flag='-shared' 10754 if test yes = "$aix_use_runtimelinking"; then 10755 shared_flag="$shared_flag "'$wl-G' 10756 fi 10757 # Need to ensure runtime linking is disabled for the traditional 10758 # shared library, or the linker may eventually find shared libraries 10759 # /with/ Import File - we do not want to mix them. 10760 shared_flag_aix='-shared' 10761 shared_flag_svr4='-shared $wl-G' 10762 else 10763 # not using gcc 10764 if test ia64 = "$host_cpu"; then 10765 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 10766 # chokes on -Wl,-G. The following line is correct: 10767 shared_flag='-G' 10768 else 10769 if test yes = "$aix_use_runtimelinking"; then 10770 shared_flag='$wl-G' 10771 else 10772 shared_flag='$wl-bM:SRE' 10773 fi 10774 shared_flag_aix='$wl-bM:SRE' 10775 shared_flag_svr4='$wl-G' 10776 fi 10777 fi 10778 10779 export_dynamic_flag_spec='$wl-bexpall' 10780 # It seems that -bexpall does not export symbols beginning with 10781 # underscore (_), so it is better to generate a list of symbols to export. 10782 always_export_symbols=yes 10783 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 10784 # Warning - without using the other runtime loading flags (-brtl), 10785 # -berok will link without error, but may produce a broken library. 10786 allow_undefined_flag='-berok' 10787 # Determine the default libpath from the value encoded in an 10788 # empty executable. 10789 if test set = "${lt_cv_aix_libpath+set}"; then 10790 aix_libpath=$lt_cv_aix_libpath 10791else 10792 if test ${lt_cv_aix_libpath_+y} 10793then : 10794 printf %s "(cached) " >&6 10795else case e in #( 10796 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10797/* end confdefs.h. */ 10798 10799int 10800main (void) 10801{ 10802 10803 ; 10804 return 0; 10805} 10806_ACEOF 10807if ac_fn_c_try_link "$LINENO" 10808then : 10809 10810 lt_aix_libpath_sed=' 10811 /Import File Strings/,/^$/ { 10812 /^0/ { 10813 s/^0 *\([^ ]*\) *$/\1/ 10814 p 10815 } 10816 }' 10817 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10818 # Check for a 64-bit object if we didn't find anything. 10819 if test -z "$lt_cv_aix_libpath_"; then 10820 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10821 fi 10822fi 10823rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10824 conftest$ac_exeext conftest.$ac_ext 10825 if test -z "$lt_cv_aix_libpath_"; then 10826 lt_cv_aix_libpath_=/usr/lib:/lib 10827 fi 10828 ;; 10829esac 10830fi 10831 10832 aix_libpath=$lt_cv_aix_libpath_ 10833fi 10834 10835 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 10836 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 10837 else 10838 if test ia64 = "$host_cpu"; then 10839 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib' 10840 allow_undefined_flag="-z nodefs" 10841 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" 10842 else 10843 # Determine the default libpath from the value encoded in an 10844 # empty executable. 10845 if test set = "${lt_cv_aix_libpath+set}"; then 10846 aix_libpath=$lt_cv_aix_libpath 10847else 10848 if test ${lt_cv_aix_libpath_+y} 10849then : 10850 printf %s "(cached) " >&6 10851else case e in #( 10852 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10853/* end confdefs.h. */ 10854 10855int 10856main (void) 10857{ 10858 10859 ; 10860 return 0; 10861} 10862_ACEOF 10863if ac_fn_c_try_link "$LINENO" 10864then : 10865 10866 lt_aix_libpath_sed=' 10867 /Import File Strings/,/^$/ { 10868 /^0/ { 10869 s/^0 *\([^ ]*\) *$/\1/ 10870 p 10871 } 10872 }' 10873 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10874 # Check for a 64-bit object if we didn't find anything. 10875 if test -z "$lt_cv_aix_libpath_"; then 10876 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10877 fi 10878fi 10879rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10880 conftest$ac_exeext conftest.$ac_ext 10881 if test -z "$lt_cv_aix_libpath_"; then 10882 lt_cv_aix_libpath_=/usr/lib:/lib 10883 fi 10884 ;; 10885esac 10886fi 10887 10888 aix_libpath=$lt_cv_aix_libpath_ 10889fi 10890 10891 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 10892 # Warning - without using the other run time loading flags, 10893 # -berok will link without error, but may produce a broken library. 10894 no_undefined_flag=' $wl-bernotok' 10895 allow_undefined_flag=' $wl-berok' 10896 if test yes = "$with_gnu_ld"; then 10897 # We only use this code for GNU lds that support --whole-archive. 10898 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive' 10899 else 10900 # Exported symbols can be pulled into shared objects from archives 10901 whole_archive_flag_spec='$convenience' 10902 fi 10903 archive_cmds_need_lc=yes 10904 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 10905 # -brtl affects multiple linker settings, -berok does not and is overridden later 10906 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 10907 if test svr4 != "$with_aix_soname"; then 10908 # This is similar to how AIX traditionally builds its shared libraries. 10909 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' 10910 fi 10911 if test aix != "$with_aix_soname"; then 10912 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' 10913 else 10914 # used by -dlpreopen to get the symbols 10915 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 10916 fi 10917 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d' 10918 fi 10919 fi 10920 ;; 10921 10922 amigaos*) 10923 case $host_cpu in 10924 powerpc) 10925 # see comment about AmigaOS4 .so support 10926 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10927 archive_expsym_cmds='' 10928 ;; 10929 m68k) 10930 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)' 10931 hardcode_libdir_flag_spec='-L$libdir' 10932 hardcode_minus_L=yes 10933 ;; 10934 esac 10935 ;; 10936 10937 bsdi[45]*) 10938 export_dynamic_flag_spec=-rdynamic 10939 ;; 10940 10941 cygwin* | mingw* | windows* | pw32* | cegcc*) 10942 # When not using gcc, we currently assume that we are using 10943 # Microsoft Visual C++ or Intel C++ Compiler. 10944 # hardcode_libdir_flag_spec is actually meaningless, as there is 10945 # no search path for DLLs. 10946 case $cc_basename in 10947 cl* | icl*) 10948 # Native MSVC or ICC 10949 hardcode_libdir_flag_spec=' ' 10950 allow_undefined_flag=unsupported 10951 always_export_symbols=yes 10952 file_list_spec='@' 10953 # Tell ltmain to make .lib files, not .a files. 10954 libext=lib 10955 # Tell ltmain to make .dll files, not .so files. 10956 shrext_cmds=.dll 10957 # FIXME: Setting linknames here is a bad hack. 10958 archive_cmds='$CC -Fe$output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 10959 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 10960 cp "$export_symbols" "$output_objdir/$soname.def"; 10961 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 10962 else 10963 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 10964 fi~ 10965 $CC -Fe$tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 10966 linknames=' 10967 # The linker will not automatically build a static lib if we build a DLL. 10968 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 10969 enable_shared_with_static_runtimes=yes 10970 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 10971 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 10972 # Don't use ranlib 10973 old_postinstall_cmds='chmod 644 $oldlib' 10974 postlink_cmds='lt_outputfile="@OUTPUT@"~ 10975 lt_tool_outputfile="@TOOL_OUTPUT@"~ 10976 case $lt_outputfile in 10977 *.exe|*.EXE) ;; 10978 *) 10979 lt_outputfile=$lt_outputfile.exe 10980 lt_tool_outputfile=$lt_tool_outputfile.exe 10981 ;; 10982 esac~ 10983 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 10984 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 10985 $RM "$lt_outputfile.manifest"; 10986 fi' 10987 ;; 10988 *) 10989 # Assume MSVC and ICC wrapper 10990 hardcode_libdir_flag_spec=' ' 10991 allow_undefined_flag=unsupported 10992 # Tell ltmain to make .lib files, not .a files. 10993 libext=lib 10994 # Tell ltmain to make .dll files, not .so files. 10995 shrext_cmds=.dll 10996 # FIXME: Setting linknames here is a bad hack. 10997 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 10998 # The linker will automatically build a .lib file if we build a DLL. 10999 old_archive_from_new_cmds='true' 11000 # FIXME: Should let the user specify the lib program. 11001 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 11002 enable_shared_with_static_runtimes=yes 11003 ;; 11004 esac 11005 ;; 11006 11007 darwin* | rhapsody*) 11008 11009 11010 archive_cmds_need_lc=no 11011 hardcode_direct=no 11012 hardcode_automatic=yes 11013 hardcode_shlibpath_var=unsupported 11014 if test yes = "$lt_cv_ld_force_load"; then 11015 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\"`' 11016 11017 else 11018 whole_archive_flag_spec='' 11019 fi 11020 link_all_deplibs=yes 11021 allow_undefined_flag=$_lt_dar_allow_undefined 11022 case $cc_basename in 11023 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 11024 *) _lt_dar_can_shared=$GCC ;; 11025 esac 11026 if test yes = "$_lt_dar_can_shared"; then 11027 output_verbose_link_cmd=func_echo_all 11028 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" 11029 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 11030 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" 11031 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" 11032 11033 else 11034 ld_shlibs=no 11035 fi 11036 11037 ;; 11038 11039 dgux*) 11040 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11041 hardcode_libdir_flag_spec='-L$libdir' 11042 hardcode_shlibpath_var=no 11043 ;; 11044 11045 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 11046 # support. Future versions do this automatically, but an explicit c++rt0.o 11047 # does not break anything, and helps significantly (at the cost of a little 11048 # extra space). 11049 freebsd2.2*) 11050 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 11051 hardcode_libdir_flag_spec='-R$libdir' 11052 hardcode_direct=yes 11053 hardcode_shlibpath_var=no 11054 ;; 11055 11056 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 11057 freebsd2.*) 11058 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 11059 hardcode_direct=yes 11060 hardcode_minus_L=yes 11061 hardcode_shlibpath_var=no 11062 ;; 11063 11064 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 11065 freebsd* | dragonfly* | midnightbsd*) 11066 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 11067 hardcode_libdir_flag_spec='-R$libdir' 11068 hardcode_direct=yes 11069 hardcode_shlibpath_var=no 11070 ;; 11071 11072 hpux9*) 11073 if test yes = "$GCC"; then 11074 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' 11075 else 11076 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' 11077 fi 11078 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 11079 hardcode_libdir_separator=: 11080 hardcode_direct=yes 11081 11082 # hardcode_minus_L: Not really in the search PATH, 11083 # but as the default location of the library. 11084 hardcode_minus_L=yes 11085 export_dynamic_flag_spec='$wl-E' 11086 ;; 11087 11088 hpux10*) 11089 if test yes,no = "$GCC,$with_gnu_ld"; then 11090 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 11091 else 11092 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 11093 fi 11094 if test no = "$with_gnu_ld"; then 11095 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 11096 hardcode_libdir_separator=: 11097 hardcode_direct=yes 11098 hardcode_direct_absolute=yes 11099 export_dynamic_flag_spec='$wl-E' 11100 # hardcode_minus_L: Not really in the search PATH, 11101 # but as the default location of the library. 11102 hardcode_minus_L=yes 11103 fi 11104 ;; 11105 11106 hpux11*) 11107 if test yes,no = "$GCC,$with_gnu_ld"; then 11108 case $host_cpu in 11109 hppa*64*) 11110 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 11111 ;; 11112 ia64*) 11113 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 11114 ;; 11115 *) 11116 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 11117 ;; 11118 esac 11119 else 11120 case $host_cpu in 11121 hppa*64*) 11122 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 11123 ;; 11124 ia64*) 11125 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 11126 ;; 11127 *) 11128 11129 # Older versions of the 11.00 compiler do not understand -b yet 11130 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 11131 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 11132printf %s "checking if $CC understands -b... " >&6; } 11133if test ${lt_cv_prog_compiler__b+y} 11134then : 11135 printf %s "(cached) " >&6 11136else case e in #( 11137 e) lt_cv_prog_compiler__b=no 11138 save_LDFLAGS=$LDFLAGS 11139 LDFLAGS="$LDFLAGS -b" 11140 echo "$lt_simple_link_test_code" > conftest.$ac_ext 11141 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 11142 # The linker can only warn and ignore the option if not recognized 11143 # So say no if there are warnings 11144 if test -s conftest.err; then 11145 # Append any errors to the config.log. 11146 cat conftest.err 1>&5 11147 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 11148 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 11149 if diff conftest.exp conftest.er2 >/dev/null; then 11150 lt_cv_prog_compiler__b=yes 11151 fi 11152 else 11153 lt_cv_prog_compiler__b=yes 11154 fi 11155 fi 11156 $RM -r conftest* 11157 LDFLAGS=$save_LDFLAGS 11158 ;; 11159esac 11160fi 11161{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 11162printf "%s\n" "$lt_cv_prog_compiler__b" >&6; } 11163 11164if test yes = "$lt_cv_prog_compiler__b"; then 11165 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 11166else 11167 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 11168fi 11169 11170 ;; 11171 esac 11172 fi 11173 if test no = "$with_gnu_ld"; then 11174 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 11175 hardcode_libdir_separator=: 11176 11177 case $host_cpu in 11178 hppa*64*|ia64*) 11179 hardcode_direct=no 11180 hardcode_shlibpath_var=no 11181 ;; 11182 *) 11183 hardcode_direct=yes 11184 hardcode_direct_absolute=yes 11185 export_dynamic_flag_spec='$wl-E' 11186 11187 # hardcode_minus_L: Not really in the search PATH, 11188 # but as the default location of the library. 11189 hardcode_minus_L=yes 11190 ;; 11191 esac 11192 fi 11193 ;; 11194 11195 irix5* | irix6* | nonstopux*) 11196 if test yes = "$GCC"; then 11197 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' 11198 # Try to use the -exported_symbol ld option, if it does not 11199 # work, assume that -exports_file does not work either and 11200 # implicitly export all symbols. 11201 # This should be the same for all languages, so no per-tag cache variable. 11202 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 11203printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 11204if test ${lt_cv_irix_exported_symbol+y} 11205then : 11206 printf %s "(cached) " >&6 11207else case e in #( 11208 e) save_LDFLAGS=$LDFLAGS 11209 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" 11210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11211/* end confdefs.h. */ 11212int foo (void) { return 0; } 11213_ACEOF 11214if ac_fn_c_try_link "$LINENO" 11215then : 11216 lt_cv_irix_exported_symbol=yes 11217else case e in #( 11218 e) lt_cv_irix_exported_symbol=no ;; 11219esac 11220fi 11221rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11222 conftest$ac_exeext conftest.$ac_ext 11223 LDFLAGS=$save_LDFLAGS ;; 11224esac 11225fi 11226{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 11227printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; } 11228 if test yes = "$lt_cv_irix_exported_symbol"; then 11229 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' 11230 fi 11231 else 11232 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' 11233 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' 11234 fi 11235 archive_cmds_need_lc='no' 11236 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 11237 hardcode_libdir_separator=: 11238 inherit_rpath=yes 11239 link_all_deplibs=yes 11240 ;; 11241 11242 linux*) 11243 case $cc_basename in 11244 tcc*) 11245 # Fabrice Bellard et al's Tiny C Compiler 11246 ld_shlibs=yes 11247 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 11248 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 11249 ;; 11250 esac 11251 ;; 11252 11253 *-mlibc) 11254 ;; 11255 11256 netbsd* | netbsdelf*-gnu) 11257 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 11258 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 11259 else 11260 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 11261 fi 11262 hardcode_libdir_flag_spec='-R$libdir' 11263 hardcode_direct=yes 11264 hardcode_shlibpath_var=no 11265 ;; 11266 11267 newsos6) 11268 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11269 hardcode_direct=yes 11270 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 11271 hardcode_libdir_separator=: 11272 hardcode_shlibpath_var=no 11273 ;; 11274 11275 *nto* | *qnx*) 11276 ;; 11277 11278 openbsd*) 11279 if test -f /usr/libexec/ld.so; then 11280 hardcode_direct=yes 11281 hardcode_shlibpath_var=no 11282 hardcode_direct_absolute=yes 11283 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 11284 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 11285 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' 11286 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 11287 export_dynamic_flag_spec='$wl-E' 11288 else 11289 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 11290 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 11291 fi 11292 else 11293 ld_shlibs=no 11294 fi 11295 ;; 11296 11297 os2*) 11298 hardcode_libdir_flag_spec='-L$libdir' 11299 hardcode_minus_L=yes 11300 allow_undefined_flag=unsupported 11301 shrext_cmds=.dll 11302 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 11303 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 11304 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 11305 $ECHO EXPORTS >> $output_objdir/$libname.def~ 11306 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 11307 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 11308 emximp -o $lib $output_objdir/$libname.def' 11309 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 11310 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 11311 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 11312 $ECHO EXPORTS >> $output_objdir/$libname.def~ 11313 prefix_cmds="$SED"~ 11314 if test EXPORTS = "`$SED 1q $export_symbols`"; then 11315 prefix_cmds="$prefix_cmds -e 1d"; 11316 fi~ 11317 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 11318 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 11319 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 11320 emximp -o $lib $output_objdir/$libname.def' 11321 old_archive_from_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 11322 enable_shared_with_static_runtimes=yes 11323 file_list_spec='@' 11324 ;; 11325 11326 osf3*) 11327 if test yes = "$GCC"; then 11328 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 11329 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' 11330 else 11331 allow_undefined_flag=' -expect_unresolved \*' 11332 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' 11333 fi 11334 archive_cmds_need_lc='no' 11335 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 11336 hardcode_libdir_separator=: 11337 ;; 11338 11339 osf4* | osf5*) # as osf3* with the addition of -msym flag 11340 if test yes = "$GCC"; then 11341 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 11342 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' 11343 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 11344 else 11345 allow_undefined_flag=' -expect_unresolved \*' 11346 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' 11347 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~ 11348 $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' 11349 11350 # Both c and cxx compiler support -rpath directly 11351 hardcode_libdir_flag_spec='-rpath $libdir' 11352 fi 11353 archive_cmds_need_lc='no' 11354 hardcode_libdir_separator=: 11355 ;; 11356 11357 serenity*) 11358 ;; 11359 11360 solaris*) 11361 no_undefined_flag=' -z defs' 11362 if test yes = "$GCC"; then 11363 wlarc='$wl' 11364 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 11365 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 11366 $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' 11367 else 11368 case `$CC -V 2>&1` in 11369 *"Compilers 5.0"*) 11370 wlarc='' 11371 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' 11372 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 11373 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 11374 ;; 11375 *) 11376 wlarc='$wl' 11377 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' 11378 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 11379 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 11380 ;; 11381 esac 11382 fi 11383 hardcode_libdir_flag_spec='-R$libdir' 11384 hardcode_shlibpath_var=no 11385 case $host_os in 11386 solaris2.[0-5] | solaris2.[0-5].*) ;; 11387 *) 11388 # The compiler driver will combine and reorder linker options, 11389 # but understands '-z linker_flag'. GCC discards it without '$wl', 11390 # but is careful enough not to reorder. 11391 # Supported since Solaris 2.6 (maybe 2.5.1?) 11392 if test yes = "$GCC"; then 11393 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 11394 else 11395 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 11396 fi 11397 ;; 11398 esac 11399 link_all_deplibs=yes 11400 ;; 11401 11402 sunos4*) 11403 if test sequent = "$host_vendor"; then 11404 # Use $CC to link under sequent, because it throws in some extra .o 11405 # files that make .init and .fini sections work. 11406 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' 11407 else 11408 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 11409 fi 11410 hardcode_libdir_flag_spec='-L$libdir' 11411 hardcode_direct=yes 11412 hardcode_minus_L=yes 11413 hardcode_shlibpath_var=no 11414 ;; 11415 11416 sysv4) 11417 case $host_vendor in 11418 sni) 11419 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11420 hardcode_direct=yes # is this really true??? 11421 ;; 11422 siemens) 11423 ## LD is ld it makes a PLAMLIB 11424 ## CC just makes a GrossModule. 11425 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 11426 reload_cmds='$CC -r -o $output$reload_objs' 11427 hardcode_direct=no 11428 ;; 11429 motorola) 11430 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11431 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 11432 ;; 11433 esac 11434 runpath_var='LD_RUN_PATH' 11435 hardcode_shlibpath_var=no 11436 ;; 11437 11438 sysv4.3*) 11439 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11440 hardcode_shlibpath_var=no 11441 export_dynamic_flag_spec='-Bexport' 11442 ;; 11443 11444 sysv4*MP*) 11445 if test -d /usr/nec; then 11446 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11447 hardcode_shlibpath_var=no 11448 runpath_var=LD_RUN_PATH 11449 hardcode_runpath_var=yes 11450 ld_shlibs=yes 11451 fi 11452 ;; 11453 11454 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 11455 no_undefined_flag='$wl-z,text' 11456 archive_cmds_need_lc=no 11457 hardcode_shlibpath_var=no 11458 runpath_var='LD_RUN_PATH' 11459 11460 if test yes = "$GCC"; then 11461 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11462 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11463 else 11464 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11465 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11466 fi 11467 ;; 11468 11469 sysv5* | sco3.2v5* | sco5v6*) 11470 # Note: We CANNOT use -z defs as we might desire, because we do not 11471 # link with -lc, and that would cause any symbols used from libc to 11472 # always be unresolved, which means just about no library would 11473 # ever link correctly. If we're not using GNU ld we use -z text 11474 # though, which does catch some bad symbols but isn't as heavy-handed 11475 # as -z defs. 11476 no_undefined_flag='$wl-z,text' 11477 allow_undefined_flag='$wl-z,nodefs' 11478 archive_cmds_need_lc=no 11479 hardcode_shlibpath_var=no 11480 hardcode_libdir_flag_spec='$wl-R,$libdir' 11481 hardcode_libdir_separator=':' 11482 link_all_deplibs=yes 11483 export_dynamic_flag_spec='$wl-Bexport' 11484 runpath_var='LD_RUN_PATH' 11485 11486 if test yes = "$GCC"; then 11487 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11488 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11489 else 11490 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11491 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11492 fi 11493 ;; 11494 11495 uts4*) 11496 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11497 hardcode_libdir_flag_spec='-L$libdir' 11498 hardcode_shlibpath_var=no 11499 ;; 11500 11501 *) 11502 ld_shlibs=no 11503 ;; 11504 esac 11505 11506 if test sni = "$host_vendor"; then 11507 case $host in 11508 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 11509 export_dynamic_flag_spec='$wl-Blargedynsym' 11510 ;; 11511 esac 11512 fi 11513 fi 11514 11515{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 11516printf "%s\n" "$ld_shlibs" >&6; } 11517test no = "$ld_shlibs" && can_build_shared=no 11518 11519with_gnu_ld=$with_gnu_ld 11520 11521 11522 11523 11524 11525 11526 11527 11528 11529 11530 11531 11532 11533 11534 11535# 11536# Do we need to explicitly link libc? 11537# 11538case "x$archive_cmds_need_lc" in 11539x|xyes) 11540 # Assume -lc should be added 11541 archive_cmds_need_lc=yes 11542 11543 if test yes,yes = "$GCC,$enable_shared"; then 11544 case $archive_cmds in 11545 *'~'*) 11546 # FIXME: we may have to deal with multi-command sequences. 11547 ;; 11548 '$CC '*) 11549 # Test whether the compiler implicitly links with -lc since on some 11550 # systems, -lgcc has to come before -lc. If gcc already passes -lc 11551 # to ld, don't add -lc before -lgcc. 11552 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 11553printf %s "checking whether -lc should be explicitly linked in... " >&6; } 11554if test ${lt_cv_archive_cmds_need_lc+y} 11555then : 11556 printf %s "(cached) " >&6 11557else case e in #( 11558 e) $RM conftest* 11559 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 11560 11561 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 11562 (eval $ac_compile) 2>&5 11563 ac_status=$? 11564 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11565 test $ac_status = 0; } 2>conftest.err; then 11566 soname=conftest 11567 lib=conftest 11568 libobjs=conftest.$ac_objext 11569 deplibs= 11570 wl=$lt_prog_compiler_wl 11571 pic_flag=$lt_prog_compiler_pic 11572 compiler_flags=-v 11573 linker_flags=-v 11574 verstring= 11575 output_objdir=. 11576 libname=conftest 11577 lt_save_allow_undefined_flag=$allow_undefined_flag 11578 allow_undefined_flag= 11579 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 11580 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 11581 ac_status=$? 11582 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11583 test $ac_status = 0; } 11584 then 11585 lt_cv_archive_cmds_need_lc=no 11586 else 11587 lt_cv_archive_cmds_need_lc=yes 11588 fi 11589 allow_undefined_flag=$lt_save_allow_undefined_flag 11590 else 11591 cat conftest.err 1>&5 11592 fi 11593 $RM conftest* 11594 ;; 11595esac 11596fi 11597{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 11598printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; } 11599 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 11600 ;; 11601 esac 11602 fi 11603 ;; 11604esac 11605 11606 11607 11608 11609 11610 11611 11612 11613 11614 11615 11616 11617 11618 11619 11620 11621 11622 11623 11624 11625 11626 11627 11628 11629 11630 11631 11632 11633 11634 11635 11636 11637 11638 11639 11640 11641 11642 11643 11644 11645 11646 11647 11648 11649 11650 11651 11652 11653 11654 11655 11656 11657 11658 11659 11660 11661 11662 11663 11664 11665 11666 11667 11668 11669 11670 11671 11672 11673 11674 11675 11676 11677 11678 11679 11680 11681 11682 11683 11684 11685 11686 11687 11688 11689 11690 11691 11692 11693 11694 11695 11696 11697 11698 11699 11700 11701 11702 11703 11704 11705 11706 11707 11708 11709 11710 11711 11712 11713 11714 11715 11716 11717 11718 11719 11720 11721 11722 11723 11724 11725 11726 11727 11728 11729 11730 11731 11732 11733 11734 11735 11736 11737 11738 11739 11740 11741 11742 11743 11744 11745 11746 11747 11748 11749 11750 11751 11752 11753 11754 11755 11756 11757 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 11758printf %s "checking dynamic linker characteristics... " >&6; } 11759 11760if test yes = "$GCC"; then 11761 case $host_os in 11762 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; 11763 *) lt_awk_arg='/^libraries:/' ;; 11764 esac 11765 case $host_os in 11766 mingw* | windows* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;; 11767 *) lt_sed_strip_eq='s|=/|/|g' ;; 11768 esac 11769 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 11770 case $lt_search_path_spec in 11771 *\;*) 11772 # if the path contains ";" then we assume it to be the separator 11773 # otherwise default to the standard path separator (i.e. ":") - it is 11774 # assumed that no part of a normal pathname contains ";" but that should 11775 # okay in the real world where ";" in dirpaths is itself problematic. 11776 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 11777 ;; 11778 *) 11779 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 11780 ;; 11781 esac 11782 # Ok, now we have the path, separated by spaces, we can step through it 11783 # and add multilib dir if necessary... 11784 lt_tmp_lt_search_path_spec= 11785 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 11786 # ...but if some path component already ends with the multilib dir we assume 11787 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). 11788 case "$lt_multi_os_dir; $lt_search_path_spec " in 11789 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) 11790 lt_multi_os_dir= 11791 ;; 11792 esac 11793 for lt_sys_path in $lt_search_path_spec; do 11794 if test -d "$lt_sys_path$lt_multi_os_dir"; then 11795 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" 11796 elif test -n "$lt_multi_os_dir"; then 11797 test -d "$lt_sys_path" && \ 11798 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 11799 fi 11800 done 11801 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 11802BEGIN {RS = " "; FS = "/|\n";} { 11803 lt_foo = ""; 11804 lt_count = 0; 11805 for (lt_i = NF; lt_i > 0; lt_i--) { 11806 if ($lt_i != "" && $lt_i != ".") { 11807 if ($lt_i == "..") { 11808 lt_count++; 11809 } else { 11810 if (lt_count == 0) { 11811 lt_foo = "/" $lt_i lt_foo; 11812 } else { 11813 lt_count--; 11814 } 11815 } 11816 } 11817 } 11818 if (lt_foo != "") { lt_freq[lt_foo]++; } 11819 if (lt_freq[lt_foo] == 1) { print lt_foo; } 11820}'` 11821 # AWK program above erroneously prepends '/' to C:/dos/paths 11822 # for these hosts. 11823 case $host_os in 11824 mingw* | windows* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 11825 $SED 's|/\([A-Za-z]:\)|\1|g'` ;; 11826 esac 11827 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 11828else 11829 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 11830fi 11831library_names_spec= 11832libname_spec='lib$name' 11833soname_spec= 11834shrext_cmds=.so 11835postinstall_cmds= 11836postuninstall_cmds= 11837finish_cmds= 11838finish_eval= 11839shlibpath_var= 11840shlibpath_overrides_runpath=unknown 11841version_type=none 11842dynamic_linker="$host_os ld.so" 11843sys_lib_dlsearch_path_spec="/lib /usr/lib" 11844need_lib_prefix=unknown 11845hardcode_into_libs=no 11846 11847# when you set need_version to no, make sure it does not cause -set_version 11848# flags to be left without arguments 11849need_version=unknown 11850 11851 11852 11853case $host_os in 11854aix3*) 11855 version_type=linux # correct to gnu/linux during the next big refactor 11856 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 11857 shlibpath_var=LIBPATH 11858 11859 # AIX 3 has no versioning support, so we append a major version to the name. 11860 soname_spec='$libname$release$shared_ext$major' 11861 ;; 11862 11863aix[4-9]*) 11864 version_type=linux # correct to gnu/linux during the next big refactor 11865 need_lib_prefix=no 11866 need_version=no 11867 hardcode_into_libs=yes 11868 if test ia64 = "$host_cpu"; then 11869 # AIX 5 supports IA64 11870 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 11871 shlibpath_var=LD_LIBRARY_PATH 11872 else 11873 # With GCC up to 2.95.x, collect2 would create an import file 11874 # for dependence libraries. The import file would start with 11875 # the line '#! .'. This would cause the generated library to 11876 # depend on '.', always an invalid library. This was fixed in 11877 # development snapshots of GCC prior to 3.0. 11878 case $host_os in 11879 aix4 | aix4.[01] | aix4.[01].*) 11880 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 11881 echo ' yes ' 11882 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 11883 : 11884 else 11885 can_build_shared=no 11886 fi 11887 ;; 11888 esac 11889 # Using Import Files as archive members, it is possible to support 11890 # filename-based versioning of shared library archives on AIX. While 11891 # this would work for both with and without runtime linking, it will 11892 # prevent static linking of such archives. So we do filename-based 11893 # shared library versioning with .so extension only, which is used 11894 # when both runtime linking and shared linking is enabled. 11895 # Unfortunately, runtime linking may impact performance, so we do 11896 # not want this to be the default eventually. Also, we use the 11897 # versioned .so libs for executables only if there is the -brtl 11898 # linker flag in LDFLAGS as well, or --enable-aix-soname=svr4 only. 11899 # To allow for filename-based versioning support, we need to create 11900 # libNAME.so.V as an archive file, containing: 11901 # *) an Import File, referring to the versioned filename of the 11902 # archive as well as the shared archive member, telling the 11903 # bitwidth (32 or 64) of that shared object, and providing the 11904 # list of exported symbols of that shared object, eventually 11905 # decorated with the 'weak' keyword 11906 # *) the shared object with the F_LOADONLY flag set, to really avoid 11907 # it being seen by the linker. 11908 # At run time we better use the real file rather than another symlink, 11909 # but for link time we create the symlink libNAME.so -> libNAME.so.V 11910 11911 case $with_aix_soname,$aix_use_runtimelinking in 11912 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 11913 # soname into executable. Probably we can add versioning support to 11914 # collect2, so additional links can be useful in future. 11915 aix,yes) # traditional libtool 11916 dynamic_linker='AIX unversionable lib.so' 11917 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 11918 # instead of lib<name>.a to let people know that these are not 11919 # typical AIX shared libraries. 11920 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11921 ;; 11922 aix,no) # traditional AIX only 11923 dynamic_linker='AIX lib.a(lib.so.V)' 11924 # We preserve .a as extension for shared libraries through AIX4.2 11925 # and later when we are not doing run time linking. 11926 library_names_spec='$libname$release.a $libname.a' 11927 soname_spec='$libname$release$shared_ext$major' 11928 ;; 11929 svr4,*) # full svr4 only 11930 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 11931 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 11932 # We do not specify a path in Import Files, so LIBPATH fires. 11933 shlibpath_overrides_runpath=yes 11934 ;; 11935 *,yes) # both, prefer svr4 11936 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 11937 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 11938 # unpreferred sharedlib libNAME.a needs extra handling 11939 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"' 11940 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"' 11941 # We do not specify a path in Import Files, so LIBPATH fires. 11942 shlibpath_overrides_runpath=yes 11943 ;; 11944 *,no) # both, prefer aix 11945 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 11946 library_names_spec='$libname$release.a $libname.a' 11947 soname_spec='$libname$release$shared_ext$major' 11948 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 11949 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)' 11950 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"' 11951 ;; 11952 esac 11953 shlibpath_var=LIBPATH 11954 fi 11955 ;; 11956 11957amigaos*) 11958 case $host_cpu in 11959 powerpc) 11960 # Since July 2007 AmigaOS4 officially supports .so libraries. 11961 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 11962 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11963 ;; 11964 m68k) 11965 library_names_spec='$libname.ixlibrary $libname.a' 11966 # Create ${libname}_ixlibrary.a entries in /sys/libs. 11967 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' 11968 ;; 11969 esac 11970 ;; 11971 11972beos*) 11973 library_names_spec='$libname$shared_ext' 11974 dynamic_linker="$host_os ld.so" 11975 shlibpath_var=LIBRARY_PATH 11976 ;; 11977 11978bsdi[45]*) 11979 version_type=linux # correct to gnu/linux during the next big refactor 11980 need_version=no 11981 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11982 soname_spec='$libname$release$shared_ext$major' 11983 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 11984 shlibpath_var=LD_LIBRARY_PATH 11985 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 11986 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 11987 # the default ld.so.conf also contains /usr/contrib/lib and 11988 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 11989 # libtool to hard-code these into programs 11990 ;; 11991 11992cygwin* | mingw* | windows* | pw32* | cegcc*) 11993 version_type=windows 11994 shrext_cmds=.dll 11995 need_version=no 11996 need_lib_prefix=no 11997 11998 case $GCC,$cc_basename in 11999 yes,*) 12000 # gcc 12001 library_names_spec='$libname.dll.a' 12002 # DLL is installed to $(libdir)/../bin by postinstall_cmds 12003 # If user builds GCC with multilib enabled, 12004 # it should just install on $(libdir) 12005 # not on $(libdir)/../bin or 32 bits dlls would override 64 bit ones. 12006 if test xyes = x"$multilib"; then 12007 postinstall_cmds='base_file=`basename \$file`~ 12008 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 12009 dldir=$destdir/`dirname \$dlpath`~ 12010 $install_prog $dir/$dlname $destdir/$dlname~ 12011 chmod a+x $destdir/$dlname~ 12012 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 12013 eval '\''$striplib $destdir/$dlname'\'' || exit \$?; 12014 fi' 12015 else 12016 postinstall_cmds='base_file=`basename \$file`~ 12017 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 12018 dldir=$destdir/`dirname \$dlpath`~ 12019 test -d \$dldir || mkdir -p \$dldir~ 12020 $install_prog $dir/$dlname \$dldir/$dlname~ 12021 chmod a+x \$dldir/$dlname~ 12022 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 12023 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 12024 fi' 12025 fi 12026 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 12027 dlpath=$dir/\$dldll~ 12028 $RM \$dlpath' 12029 shlibpath_overrides_runpath=yes 12030 12031 case $host_os in 12032 cygwin*) 12033 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 12034 soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 12035 12036 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 12037 ;; 12038 mingw* | windows* | cegcc*) 12039 # MinGW DLLs use traditional 'lib' prefix 12040 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 12041 ;; 12042 pw32*) 12043 # pw32 DLLs use 'pw' prefix rather than 'lib' 12044 library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 12045 ;; 12046 esac 12047 dynamic_linker='Win32 ld.exe' 12048 ;; 12049 12050 *,cl* | *,icl*) 12051 # Native MSVC or ICC 12052 libname_spec='$name' 12053 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 12054 library_names_spec='$libname.dll.lib' 12055 12056 case $build_os in 12057 mingw* | windows*) 12058 sys_lib_search_path_spec= 12059 lt_save_ifs=$IFS 12060 IFS=';' 12061 for lt_path in $LIB 12062 do 12063 IFS=$lt_save_ifs 12064 # Let DOS variable expansion print the short 8.3 style file name. 12065 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 12066 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 12067 done 12068 IFS=$lt_save_ifs 12069 # Convert to MSYS style. 12070 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 12071 ;; 12072 cygwin*) 12073 # Convert to unix form, then to dos form, then back to unix form 12074 # but this time dos style (no spaces!) so that the unix form looks 12075 # like /cygdrive/c/PROGRA~1:/cygdr... 12076 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 12077 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 12078 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 12079 ;; 12080 *) 12081 sys_lib_search_path_spec=$LIB 12082 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 12083 # It is most probably a Windows format PATH. 12084 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 12085 else 12086 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 12087 fi 12088 # FIXME: find the short name or the path components, as spaces are 12089 # common. (e.g. "Program Files" -> "PROGRA~1") 12090 ;; 12091 esac 12092 12093 # DLL is installed to $(libdir)/../bin by postinstall_cmds 12094 postinstall_cmds='base_file=`basename \$file`~ 12095 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 12096 dldir=$destdir/`dirname \$dlpath`~ 12097 test -d \$dldir || mkdir -p \$dldir~ 12098 $install_prog $dir/$dlname \$dldir/$dlname' 12099 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 12100 dlpath=$dir/\$dldll~ 12101 $RM \$dlpath' 12102 shlibpath_overrides_runpath=yes 12103 dynamic_linker='Win32 link.exe' 12104 ;; 12105 12106 *) 12107 # Assume MSVC and ICC wrapper 12108 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 12109 dynamic_linker='Win32 ld.exe' 12110 ;; 12111 esac 12112 # FIXME: first we should search . and the directory the executable is in 12113 shlibpath_var=PATH 12114 ;; 12115 12116darwin* | rhapsody*) 12117 dynamic_linker="$host_os dyld" 12118 version_type=darwin 12119 need_lib_prefix=no 12120 need_version=no 12121 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' 12122 soname_spec='$libname$release$major$shared_ext' 12123 shlibpath_overrides_runpath=yes 12124 shlibpath_var=DYLD_LIBRARY_PATH 12125 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 12126 12127 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 12128 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 12129 ;; 12130 12131dgux*) 12132 version_type=linux # correct to gnu/linux during the next big refactor 12133 need_lib_prefix=no 12134 need_version=no 12135 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12136 soname_spec='$libname$release$shared_ext$major' 12137 shlibpath_var=LD_LIBRARY_PATH 12138 ;; 12139 12140freebsd* | dragonfly* | midnightbsd*) 12141 # DragonFly does not have aout. When/if they implement a new 12142 # versioning mechanism, adjust this. 12143 if test -x /usr/bin/objformat; then 12144 objformat=`/usr/bin/objformat` 12145 else 12146 case $host_os in 12147 freebsd[23].*) objformat=aout ;; 12148 *) objformat=elf ;; 12149 esac 12150 fi 12151 version_type=freebsd-$objformat 12152 case $version_type in 12153 freebsd-elf*) 12154 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12155 soname_spec='$libname$release$shared_ext$major' 12156 need_version=no 12157 need_lib_prefix=no 12158 ;; 12159 freebsd-*) 12160 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 12161 need_version=yes 12162 ;; 12163 esac 12164 case $host_cpu in 12165 powerpc64) 12166 # On FreeBSD bi-arch platforms, a different variable is used for 32-bit 12167 # binaries. See <https://man.freebsd.org/cgi/man.cgi?query=ld.so>. 12168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12169/* end confdefs.h. */ 12170int test_pointer_size[sizeof (void *) - 5]; 12171 12172_ACEOF 12173if ac_fn_c_try_compile "$LINENO" 12174then : 12175 shlibpath_var=LD_LIBRARY_PATH 12176else case e in #( 12177 e) shlibpath_var=LD_32_LIBRARY_PATH ;; 12178esac 12179fi 12180rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 12181 ;; 12182 *) 12183 shlibpath_var=LD_LIBRARY_PATH 12184 ;; 12185 esac 12186 case $host_os in 12187 freebsd2.*) 12188 shlibpath_overrides_runpath=yes 12189 ;; 12190 freebsd3.[01]* | freebsdelf3.[01]*) 12191 shlibpath_overrides_runpath=yes 12192 hardcode_into_libs=yes 12193 ;; 12194 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 12195 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 12196 shlibpath_overrides_runpath=no 12197 hardcode_into_libs=yes 12198 ;; 12199 *) # from 4.6 on, and DragonFly 12200 shlibpath_overrides_runpath=yes 12201 hardcode_into_libs=yes 12202 ;; 12203 esac 12204 ;; 12205 12206haiku*) 12207 version_type=linux # correct to gnu/linux during the next big refactor 12208 need_lib_prefix=no 12209 need_version=no 12210 dynamic_linker="$host_os runtime_loader" 12211 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12212 soname_spec='$libname$release$shared_ext$major' 12213 shlibpath_var=LIBRARY_PATH 12214 shlibpath_overrides_runpath=no 12215 sys_lib_search_path_spec='/boot/system/non-packaged/develop/lib /boot/system/develop/lib' 12216 sys_lib_dlsearch_path_spec='/boot/home/config/non-packaged/lib /boot/home/config/lib /boot/system/non-packaged/lib /boot/system/lib' 12217 hardcode_into_libs=no 12218 ;; 12219 12220hpux9* | hpux10* | hpux11*) 12221 # Give a soname corresponding to the major version so that dld.sl refuses to 12222 # link against other versions. 12223 version_type=sunos 12224 need_lib_prefix=no 12225 need_version=no 12226 case $host_cpu in 12227 ia64*) 12228 shrext_cmds='.so' 12229 hardcode_into_libs=yes 12230 dynamic_linker="$host_os dld.so" 12231 shlibpath_var=LD_LIBRARY_PATH 12232 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 12233 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12234 soname_spec='$libname$release$shared_ext$major' 12235 if test 32 = "$HPUX_IA64_MODE"; then 12236 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 12237 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 12238 else 12239 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 12240 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 12241 fi 12242 ;; 12243 hppa*64*) 12244 shrext_cmds='.sl' 12245 hardcode_into_libs=yes 12246 dynamic_linker="$host_os dld.sl" 12247 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 12248 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 12249 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12250 soname_spec='$libname$release$shared_ext$major' 12251 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 12252 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 12253 ;; 12254 *) 12255 shrext_cmds='.sl' 12256 dynamic_linker="$host_os dld.sl" 12257 shlibpath_var=SHLIB_PATH 12258 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 12259 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12260 soname_spec='$libname$release$shared_ext$major' 12261 ;; 12262 esac 12263 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 12264 postinstall_cmds='chmod 555 $lib' 12265 # or fails outright, so override atomically: 12266 install_override_mode=555 12267 ;; 12268 12269interix[3-9]*) 12270 version_type=linux # correct to gnu/linux during the next big refactor 12271 need_lib_prefix=no 12272 need_version=no 12273 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12274 soname_spec='$libname$release$shared_ext$major' 12275 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 12276 shlibpath_var=LD_LIBRARY_PATH 12277 shlibpath_overrides_runpath=no 12278 hardcode_into_libs=yes 12279 ;; 12280 12281irix5* | irix6* | nonstopux*) 12282 case $host_os in 12283 nonstopux*) version_type=nonstopux ;; 12284 *) 12285 if test yes = "$lt_cv_prog_gnu_ld"; then 12286 version_type=linux # correct to gnu/linux during the next big refactor 12287 else 12288 version_type=irix 12289 fi ;; 12290 esac 12291 need_lib_prefix=no 12292 need_version=no 12293 soname_spec='$libname$release$shared_ext$major' 12294 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 12295 case $host_os in 12296 irix5* | nonstopux*) 12297 libsuff= shlibsuff= 12298 ;; 12299 *) 12300 case $LD in # libtool.m4 will add one of these switches to LD 12301 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 12302 libsuff= shlibsuff= libmagic=32-bit;; 12303 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 12304 libsuff=32 shlibsuff=N32 libmagic=N32;; 12305 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 12306 libsuff=64 shlibsuff=64 libmagic=64-bit;; 12307 *) libsuff= shlibsuff= libmagic=never-match;; 12308 esac 12309 ;; 12310 esac 12311 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 12312 shlibpath_overrides_runpath=no 12313 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 12314 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 12315 hardcode_into_libs=yes 12316 ;; 12317 12318# No shared lib support for Linux oldld, aout, or coff. 12319linux*oldld* | linux*aout* | linux*coff*) 12320 dynamic_linker=no 12321 ;; 12322 12323linux*android*) 12324 version_type=none # Android doesn't support versioned libraries. 12325 need_lib_prefix=no 12326 need_version=no 12327 library_names_spec='$libname$release$shared_ext $libname$shared_ext' 12328 soname_spec='$libname$release$shared_ext' 12329 finish_cmds= 12330 shlibpath_var=LD_LIBRARY_PATH 12331 shlibpath_overrides_runpath=yes 12332 12333 # This implies no fast_install, which is unacceptable. 12334 # Some rework will be needed to allow for fast_install 12335 # before this can be enabled. 12336 hardcode_into_libs=yes 12337 12338 dynamic_linker='Android linker' 12339 # -rpath works at least for libraries that are not overridden by 12340 # libraries installed in system locations. 12341 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 12342 ;; 12343 12344# This must be glibc/ELF. 12345linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 12346 version_type=linux # correct to gnu/linux during the next big refactor 12347 need_lib_prefix=no 12348 need_version=no 12349 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12350 soname_spec='$libname$release$shared_ext$major' 12351 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 12352 shlibpath_var=LD_LIBRARY_PATH 12353 shlibpath_overrides_runpath=no 12354 12355 # Some binutils ld are patched to set DT_RUNPATH 12356 if test ${lt_cv_shlibpath_overrides_runpath+y} 12357then : 12358 printf %s "(cached) " >&6 12359else case e in #( 12360 e) lt_cv_shlibpath_overrides_runpath=no 12361 save_LDFLAGS=$LDFLAGS 12362 save_libdir=$libdir 12363 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 12364 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 12365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12366/* end confdefs.h. */ 12367 12368int 12369main (void) 12370{ 12371 12372 ; 12373 return 0; 12374} 12375_ACEOF 12376if ac_fn_c_try_link "$LINENO" 12377then : 12378 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null 12379then : 12380 lt_cv_shlibpath_overrides_runpath=yes 12381fi 12382fi 12383rm -f core conftest.err conftest.$ac_objext conftest.beam \ 12384 conftest$ac_exeext conftest.$ac_ext 12385 LDFLAGS=$save_LDFLAGS 12386 libdir=$save_libdir 12387 ;; 12388esac 12389fi 12390 12391 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 12392 12393 # This implies no fast_install, which is unacceptable. 12394 # Some rework will be needed to allow for fast_install 12395 # before this can be enabled. 12396 hardcode_into_libs=yes 12397 12398 # Ideally, we could use ldconfig to report *all* directories which are 12399 # searched for libraries, however this is still not possible. Aside from not 12400 # being certain /sbin/ldconfig is available, command 12401 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 12402 # even though it is searched at run-time. Try to do the best guess by 12403 # appending ld.so.conf contents (and includes) to the search path. 12404 if test -f /etc/ld.so.conf; then 12405 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' ' '` 12406 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 12407 fi 12408 12409 # We used to test for /lib/ld.so.1 and disable shared libraries on 12410 # powerpc, because MkLinux only supported shared libraries with the 12411 # GNU dynamic linker. Since this was broken with cross compilers, 12412 # most powerpc-linux boxes support dynamic linking these days and 12413 # people can always --disable-shared, the test was removed, and we 12414 # assume the GNU/Linux dynamic linker is in use. 12415 dynamic_linker='GNU/Linux ld.so' 12416 ;; 12417 12418netbsdelf*-gnu) 12419 version_type=linux 12420 need_lib_prefix=no 12421 need_version=no 12422 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12423 soname_spec='$libname$release$shared_ext$major' 12424 shlibpath_var=LD_LIBRARY_PATH 12425 shlibpath_overrides_runpath=no 12426 hardcode_into_libs=yes 12427 dynamic_linker='NetBSD ld.elf_so' 12428 ;; 12429 12430netbsd*) 12431 version_type=sunos 12432 need_lib_prefix=no 12433 need_version=no 12434 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 12435 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 12436 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 12437 dynamic_linker='NetBSD (a.out) ld.so' 12438 else 12439 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12440 soname_spec='$libname$release$shared_ext$major' 12441 dynamic_linker='NetBSD ld.elf_so' 12442 fi 12443 shlibpath_var=LD_LIBRARY_PATH 12444 shlibpath_overrides_runpath=yes 12445 hardcode_into_libs=yes 12446 ;; 12447 12448*-mlibc) 12449 version_type=linux # correct to gnu/linux during the next big refactor 12450 need_lib_prefix=no 12451 need_version=no 12452 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12453 soname_spec='$libname$release$shared_ext$major' 12454 dynamic_linker='mlibc ld.so' 12455 shlibpath_var=LD_LIBRARY_PATH 12456 shlibpath_overrides_runpath=no 12457 hardcode_into_libs=yes 12458 ;; 12459 12460newsos6) 12461 version_type=linux # correct to gnu/linux during the next big refactor 12462 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12463 shlibpath_var=LD_LIBRARY_PATH 12464 shlibpath_overrides_runpath=yes 12465 ;; 12466 12467*nto* | *qnx*) 12468 version_type=qnx 12469 need_lib_prefix=no 12470 need_version=no 12471 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12472 soname_spec='$libname$release$shared_ext$major' 12473 shlibpath_var=LD_LIBRARY_PATH 12474 shlibpath_overrides_runpath=no 12475 hardcode_into_libs=yes 12476 dynamic_linker='ldqnx.so' 12477 ;; 12478 12479openbsd*) 12480 version_type=sunos 12481 sys_lib_dlsearch_path_spec=/usr/lib 12482 need_lib_prefix=no 12483 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 12484 need_version=no 12485 else 12486 need_version=yes 12487 fi 12488 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 12489 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 12490 shlibpath_var=LD_LIBRARY_PATH 12491 shlibpath_overrides_runpath=yes 12492 ;; 12493 12494os2*) 12495 libname_spec='$name' 12496 version_type=windows 12497 shrext_cmds=.dll 12498 need_version=no 12499 need_lib_prefix=no 12500 # OS/2 can only load a DLL with a base name of 8 characters or less. 12501 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 12502 v=$($ECHO $release$versuffix | tr -d .-); 12503 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 12504 $ECHO $n$v`$shared_ext' 12505 library_names_spec='${libname}_dll.$libext' 12506 dynamic_linker='OS/2 ld.exe' 12507 shlibpath_var=BEGINLIBPATH 12508 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 12509 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 12510 postinstall_cmds='base_file=`basename \$file`~ 12511 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 12512 dldir=$destdir/`dirname \$dlpath`~ 12513 test -d \$dldir || mkdir -p \$dldir~ 12514 $install_prog $dir/$dlname \$dldir/$dlname~ 12515 chmod a+x \$dldir/$dlname~ 12516 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 12517 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 12518 fi' 12519 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 12520 dlpath=$dir/\$dldll~ 12521 $RM \$dlpath' 12522 ;; 12523 12524osf3* | osf4* | osf5*) 12525 version_type=osf 12526 need_lib_prefix=no 12527 need_version=no 12528 soname_spec='$libname$release$shared_ext$major' 12529 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12530 shlibpath_var=LD_LIBRARY_PATH 12531 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 12532 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 12533 ;; 12534 12535rdos*) 12536 dynamic_linker=no 12537 ;; 12538 12539serenity*) 12540 version_type=linux # correct to gnu/linux during the next big refactor 12541 need_lib_prefix=no 12542 need_version=no 12543 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12544 soname_spec='$libname$release$shared_ext$major' 12545 shlibpath_var=LD_LIBRARY_PATH 12546 shlibpath_overrides_runpath=no 12547 dynamic_linker='SerenityOS LibELF' 12548 ;; 12549 12550solaris*) 12551 version_type=linux # correct to gnu/linux during the next big refactor 12552 need_lib_prefix=no 12553 need_version=no 12554 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12555 soname_spec='$libname$release$shared_ext$major' 12556 shlibpath_var=LD_LIBRARY_PATH 12557 shlibpath_overrides_runpath=yes 12558 hardcode_into_libs=yes 12559 # ldd complains unless libraries are executable 12560 postinstall_cmds='chmod +x $lib' 12561 ;; 12562 12563sunos4*) 12564 version_type=sunos 12565 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 12566 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 12567 shlibpath_var=LD_LIBRARY_PATH 12568 shlibpath_overrides_runpath=yes 12569 if test yes = "$with_gnu_ld"; then 12570 need_lib_prefix=no 12571 fi 12572 need_version=yes 12573 ;; 12574 12575sysv4 | sysv4.3*) 12576 version_type=linux # correct to gnu/linux during the next big refactor 12577 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12578 soname_spec='$libname$release$shared_ext$major' 12579 shlibpath_var=LD_LIBRARY_PATH 12580 case $host_vendor in 12581 sni) 12582 shlibpath_overrides_runpath=no 12583 need_lib_prefix=no 12584 runpath_var=LD_RUN_PATH 12585 ;; 12586 siemens) 12587 need_lib_prefix=no 12588 ;; 12589 motorola) 12590 need_lib_prefix=no 12591 need_version=no 12592 shlibpath_overrides_runpath=no 12593 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 12594 ;; 12595 esac 12596 ;; 12597 12598sysv4*MP*) 12599 if test -d /usr/nec; then 12600 version_type=linux # correct to gnu/linux during the next big refactor 12601 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 12602 soname_spec='$libname$shared_ext.$major' 12603 shlibpath_var=LD_LIBRARY_PATH 12604 fi 12605 ;; 12606 12607sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 12608 version_type=sco 12609 need_lib_prefix=no 12610 need_version=no 12611 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 12612 soname_spec='$libname$release$shared_ext$major' 12613 shlibpath_var=LD_LIBRARY_PATH 12614 shlibpath_overrides_runpath=yes 12615 hardcode_into_libs=yes 12616 if test yes = "$with_gnu_ld"; then 12617 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 12618 else 12619 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 12620 case $host_os in 12621 sco3.2v5*) 12622 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 12623 ;; 12624 esac 12625 fi 12626 sys_lib_dlsearch_path_spec='/usr/lib' 12627 ;; 12628 12629tpf*) 12630 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 12631 version_type=linux # correct to gnu/linux during the next big refactor 12632 need_lib_prefix=no 12633 need_version=no 12634 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12635 shlibpath_var=LD_LIBRARY_PATH 12636 shlibpath_overrides_runpath=no 12637 hardcode_into_libs=yes 12638 ;; 12639 12640uts4*) 12641 version_type=linux # correct to gnu/linux during the next big refactor 12642 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12643 soname_spec='$libname$release$shared_ext$major' 12644 shlibpath_var=LD_LIBRARY_PATH 12645 ;; 12646 12647emscripten*) 12648 version_type=none 12649 need_lib_prefix=no 12650 need_version=no 12651 library_names_spec='$libname$release$shared_ext' 12652 soname_spec='$libname$release$shared_ext' 12653 finish_cmds= 12654 dynamic_linker="Emscripten linker" 12655 lt_prog_compiler_wl= 12656lt_prog_compiler_pic= 12657lt_prog_compiler_static= 12658 12659 12660 if test yes = "$GCC"; then 12661 lt_prog_compiler_wl='-Wl,' 12662 lt_prog_compiler_static='-static' 12663 12664 case $host_os in 12665 aix*) 12666 # All AIX code is PIC. 12667 if test ia64 = "$host_cpu"; then 12668 # AIX 5 now supports IA64 processor 12669 lt_prog_compiler_static='-Bstatic' 12670 fi 12671 lt_prog_compiler_pic='-fPIC' 12672 ;; 12673 12674 amigaos*) 12675 case $host_cpu in 12676 powerpc) 12677 # see comment about AmigaOS4 .so support 12678 lt_prog_compiler_pic='-fPIC' 12679 ;; 12680 m68k) 12681 # FIXME: we need at least 68020 code to build shared libraries, but 12682 # adding the '-m68020' flag to GCC prevents building anything better, 12683 # like '-m68040'. 12684 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 12685 ;; 12686 esac 12687 ;; 12688 12689 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 12690 # PIC is the default for these OSes. 12691 ;; 12692 12693 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*) 12694 # This hack is so that the source file can tell whether it is being 12695 # built for inclusion in a dll (and should export symbols for example). 12696 # Although the cygwin gcc ignores -fPIC, still need this for old-style 12697 # (--disable-auto-import) libraries 12698 lt_prog_compiler_pic='-DDLL_EXPORT' 12699 case $host_os in 12700 os2*) 12701 lt_prog_compiler_static='$wl-static' 12702 ;; 12703 esac 12704 ;; 12705 12706 darwin* | rhapsody*) 12707 # PIC is the default on this platform 12708 # Common symbols not allowed in MH_DYLIB files 12709 lt_prog_compiler_pic='-fno-common' 12710 ;; 12711 12712 haiku*) 12713 # PIC is the default for Haiku. 12714 # The "-static" flag exists, but is broken. 12715 lt_prog_compiler_static= 12716 ;; 12717 12718 hpux*) 12719 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 12720 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 12721 # sets the default TLS model and affects inlining. 12722 case $host_cpu in 12723 hppa*64*) 12724 # +Z the default 12725 ;; 12726 *) 12727 lt_prog_compiler_pic='-fPIC' 12728 ;; 12729 esac 12730 ;; 12731 12732 interix[3-9]*) 12733 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 12734 # Instead, we relocate shared libraries at runtime. 12735 ;; 12736 12737 msdosdjgpp*) 12738 # Just because we use GCC doesn't mean we suddenly get shared libraries 12739 # on systems that don't support them. 12740 lt_prog_compiler_can_build_shared=no 12741 enable_shared=no 12742 ;; 12743 12744 *nto* | *qnx*) 12745 # QNX uses GNU C++, but need to define -shared option too, otherwise 12746 # it will coredump. 12747 lt_prog_compiler_pic='-fPIC -shared' 12748 ;; 12749 12750 sysv4*MP*) 12751 if test -d /usr/nec; then 12752 lt_prog_compiler_pic=-Kconform_pic 12753 fi 12754 ;; 12755 12756 *) 12757 lt_prog_compiler_pic='-fPIC' 12758 ;; 12759 esac 12760 12761 case $cc_basename in 12762 nvcc*) # Cuda Compiler Driver 2.2 12763 lt_prog_compiler_wl='-Xlinker ' 12764 if test -n "$lt_prog_compiler_pic"; then 12765 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 12766 fi 12767 ;; 12768 esac 12769 else 12770 # PORTME Check for flag to pass linker flags through the system compiler. 12771 case $host_os in 12772 aix*) 12773 lt_prog_compiler_wl='-Wl,' 12774 if test ia64 = "$host_cpu"; then 12775 # AIX 5 now supports IA64 processor 12776 lt_prog_compiler_static='-Bstatic' 12777 else 12778 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 12779 fi 12780 ;; 12781 12782 darwin* | rhapsody*) 12783 # PIC is the default on this platform 12784 # Common symbols not allowed in MH_DYLIB files 12785 lt_prog_compiler_pic='-fno-common' 12786 case $cc_basename in 12787 nagfor*) 12788 # NAG Fortran compiler 12789 lt_prog_compiler_wl='-Wl,-Wl,,' 12790 lt_prog_compiler_pic='-PIC' 12791 lt_prog_compiler_static='-Bstatic' 12792 ;; 12793 esac 12794 ;; 12795 12796 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*) 12797 # This hack is so that the source file can tell whether it is being 12798 # built for inclusion in a dll (and should export symbols for example). 12799 lt_prog_compiler_pic='-DDLL_EXPORT' 12800 case $host_os in 12801 os2*) 12802 lt_prog_compiler_static='$wl-static' 12803 ;; 12804 esac 12805 ;; 12806 12807 hpux9* | hpux10* | hpux11*) 12808 lt_prog_compiler_wl='-Wl,' 12809 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 12810 # not for PA HP-UX. 12811 case $host_cpu in 12812 hppa*64*|ia64*) 12813 # +Z the default 12814 ;; 12815 *) 12816 lt_prog_compiler_pic='+Z' 12817 ;; 12818 esac 12819 # Is there a better lt_prog_compiler_static that works with the bundled CC? 12820 lt_prog_compiler_static='$wl-a ${wl}archive' 12821 ;; 12822 12823 irix5* | irix6* | nonstopux*) 12824 lt_prog_compiler_wl='-Wl,' 12825 # PIC (with -KPIC) is the default. 12826 lt_prog_compiler_static='-non_shared' 12827 ;; 12828 12829 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 12830 case $cc_basename in 12831 # old Intel for x86_64, which still supported -KPIC. 12832 ecc*) 12833 lt_prog_compiler_wl='-Wl,' 12834 lt_prog_compiler_pic='-KPIC' 12835 lt_prog_compiler_static='-static' 12836 ;; 12837 *flang* | ftn | f18* | f95*) 12838 # Flang compiler. 12839 lt_prog_compiler_wl='-Wl,' 12840 lt_prog_compiler_pic='-fPIC' 12841 lt_prog_compiler_static='-static' 12842 ;; 12843 # icc used to be incompatible with GCC. 12844 # ICC 10 doesn't accept -KPIC any more. 12845 icc* | ifort*) 12846 lt_prog_compiler_wl='-Wl,' 12847 lt_prog_compiler_pic='-fPIC' 12848 lt_prog_compiler_static='-static' 12849 ;; 12850 # Lahey Fortran 8.1. 12851 lf95*) 12852 lt_prog_compiler_wl='-Wl,' 12853 lt_prog_compiler_pic='--shared' 12854 lt_prog_compiler_static='--static' 12855 ;; 12856 nagfor*) 12857 # NAG Fortran compiler 12858 lt_prog_compiler_wl='-Wl,-Wl,,' 12859 lt_prog_compiler_pic='-PIC' 12860 lt_prog_compiler_static='-Bstatic' 12861 ;; 12862 tcc*) 12863 # Fabrice Bellard et al's Tiny C Compiler 12864 lt_prog_compiler_wl='-Wl,' 12865 lt_prog_compiler_pic='-fPIC' 12866 lt_prog_compiler_static='-static' 12867 ;; 12868 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 12869 # Portland Group compilers (*not* the Pentium gcc compiler, 12870 # which looks to be a dead project) 12871 lt_prog_compiler_wl='-Wl,' 12872 lt_prog_compiler_pic='-fpic' 12873 lt_prog_compiler_static='-Bstatic' 12874 ;; 12875 ccc*) 12876 lt_prog_compiler_wl='-Wl,' 12877 # All Alpha code is PIC. 12878 lt_prog_compiler_static='-non_shared' 12879 ;; 12880 xl* | bgxl* | bgf* | mpixl*) 12881 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 12882 lt_prog_compiler_wl='-Wl,' 12883 lt_prog_compiler_pic='-qpic' 12884 lt_prog_compiler_static='-qstaticlink' 12885 ;; 12886 *) 12887 case `$CC -V 2>&1 | $SED 5q` in 12888 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 12889 # Sun Fortran 8.3 passes all unrecognized flags to the linker 12890 lt_prog_compiler_pic='-KPIC' 12891 lt_prog_compiler_static='-Bstatic' 12892 lt_prog_compiler_wl='' 12893 ;; 12894 *Sun\ F* | *Sun*Fortran*) 12895 lt_prog_compiler_pic='-KPIC' 12896 lt_prog_compiler_static='-Bstatic' 12897 lt_prog_compiler_wl='-Qoption ld ' 12898 ;; 12899 *Sun\ C*) 12900 # Sun C 5.9 12901 lt_prog_compiler_pic='-KPIC' 12902 lt_prog_compiler_static='-Bstatic' 12903 lt_prog_compiler_wl='-Wl,' 12904 ;; 12905 *Intel*\ [CF]*Compiler*) 12906 lt_prog_compiler_wl='-Wl,' 12907 lt_prog_compiler_pic='-fPIC' 12908 lt_prog_compiler_static='-static' 12909 ;; 12910 *Portland\ Group*) 12911 lt_prog_compiler_wl='-Wl,' 12912 lt_prog_compiler_pic='-fpic' 12913 lt_prog_compiler_static='-Bstatic' 12914 ;; 12915 esac 12916 ;; 12917 esac 12918 ;; 12919 12920 newsos6) 12921 lt_prog_compiler_pic='-KPIC' 12922 lt_prog_compiler_static='-Bstatic' 12923 ;; 12924 12925 *-mlibc) 12926 lt_prog_compiler_wl='-Wl,' 12927 lt_prog_compiler_pic='-fPIC' 12928 lt_prog_compiler_static='-static' 12929 ;; 12930 12931 *nto* | *qnx*) 12932 # QNX uses GNU C++, but need to define -shared option too, otherwise 12933 # it will coredump. 12934 lt_prog_compiler_pic='-fPIC -shared' 12935 ;; 12936 12937 osf3* | osf4* | osf5*) 12938 lt_prog_compiler_wl='-Wl,' 12939 # All OSF/1 code is PIC. 12940 lt_prog_compiler_static='-non_shared' 12941 ;; 12942 12943 rdos*) 12944 lt_prog_compiler_static='-non_shared' 12945 ;; 12946 12947 serenity*) 12948 ;; 12949 12950 solaris*) 12951 lt_prog_compiler_pic='-KPIC' 12952 lt_prog_compiler_static='-Bstatic' 12953 case $cc_basename in 12954 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 12955 lt_prog_compiler_wl='-Qoption ld ';; 12956 *) 12957 lt_prog_compiler_wl='-Wl,';; 12958 esac 12959 ;; 12960 12961 sunos4*) 12962 lt_prog_compiler_wl='-Qoption ld ' 12963 lt_prog_compiler_pic='-PIC' 12964 lt_prog_compiler_static='-Bstatic' 12965 ;; 12966 12967 sysv4 | sysv4.2uw2* | sysv4.3*) 12968 lt_prog_compiler_wl='-Wl,' 12969 lt_prog_compiler_pic='-KPIC' 12970 lt_prog_compiler_static='-Bstatic' 12971 ;; 12972 12973 sysv4*MP*) 12974 if test -d /usr/nec; then 12975 lt_prog_compiler_pic='-Kconform_pic' 12976 lt_prog_compiler_static='-Bstatic' 12977 fi 12978 ;; 12979 12980 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 12981 lt_prog_compiler_wl='-Wl,' 12982 lt_prog_compiler_pic='-KPIC' 12983 lt_prog_compiler_static='-Bstatic' 12984 ;; 12985 12986 unicos*) 12987 lt_prog_compiler_wl='-Wl,' 12988 lt_prog_compiler_can_build_shared=no 12989 ;; 12990 12991 uts4*) 12992 lt_prog_compiler_pic='-pic' 12993 lt_prog_compiler_static='-Bstatic' 12994 ;; 12995 12996 *) 12997 lt_prog_compiler_can_build_shared=no 12998 ;; 12999 esac 13000 fi 13001 13002case $host_os in 13003 # For platforms that do not support PIC, -DPIC is meaningless: 13004 *djgpp*) 13005 lt_prog_compiler_pic= 13006 ;; 13007 *) 13008 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 13009 ;; 13010esac 13011 13012{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 13013printf %s "checking for $compiler option to produce PIC... " >&6; } 13014if test ${lt_cv_prog_compiler_pic+y} 13015then : 13016 printf %s "(cached) " >&6 13017else case e in #( 13018 e) lt_cv_prog_compiler_pic=$lt_prog_compiler_pic ;; 13019esac 13020fi 13021{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 13022printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; } 13023lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 13024 13025# 13026# Check to make sure the PIC flag actually works. 13027# 13028if test -n "$lt_prog_compiler_pic"; then 13029 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 13030printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 13031if test ${lt_cv_prog_compiler_pic_works+y} 13032then : 13033 printf %s "(cached) " >&6 13034else case e in #( 13035 e) lt_cv_prog_compiler_pic_works=no 13036 ac_outfile=conftest.$ac_objext 13037 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 13038 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment 13039 # Insert the option either (1) after the last *FLAGS variable, or 13040 # (2) before a word containing "conftest.", or (3) at the end. 13041 # Note that $ac_compile itself does not contain backslashes and begins 13042 # with a dollar sign (not a hyphen), so the echo should work correctly. 13043 # The option is referenced via a variable to avoid confusing sed. 13044 lt_compile=`echo "$ac_compile" | $SED \ 13045 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 13046 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 13047 -e 's:$: $lt_compiler_flag:'` 13048 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 13049 (eval "$lt_compile" 2>conftest.err) 13050 ac_status=$? 13051 cat conftest.err >&5 13052 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13053 if (exit $ac_status) && test -s "$ac_outfile"; then 13054 # The compiler can only warn and ignore the option if not recognized 13055 # So say no if there are warnings other than the usual output. 13056 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 13057 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 13058 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 13059 lt_cv_prog_compiler_pic_works=yes 13060 fi 13061 fi 13062 $RM conftest* 13063 ;; 13064esac 13065fi 13066{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 13067printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; } 13068 13069if test yes = "$lt_cv_prog_compiler_pic_works"; then 13070 case $lt_prog_compiler_pic in 13071 "" | " "*) ;; 13072 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 13073 esac 13074else 13075 lt_prog_compiler_pic= 13076 lt_prog_compiler_can_build_shared=no 13077fi 13078 13079fi 13080 13081 13082 13083 13084 13085# 13086# Check to make sure the static flag actually works. 13087# 13088wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 13089{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 13090printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 13091if test ${lt_cv_prog_compiler_static_works+y} 13092then : 13093 printf %s "(cached) " >&6 13094else case e in #( 13095 e) lt_cv_prog_compiler_static_works=no 13096 save_LDFLAGS=$LDFLAGS 13097 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 13098 echo "$lt_simple_link_test_code" > conftest.$ac_ext 13099 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 13100 # The linker can only warn and ignore the option if not recognized 13101 # So say no if there are warnings 13102 if test -s conftest.err; then 13103 # Append any errors to the config.log. 13104 cat conftest.err 1>&5 13105 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 13106 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 13107 if diff conftest.exp conftest.er2 >/dev/null; then 13108 lt_cv_prog_compiler_static_works=yes 13109 fi 13110 else 13111 lt_cv_prog_compiler_static_works=yes 13112 fi 13113 fi 13114 $RM -r conftest* 13115 LDFLAGS=$save_LDFLAGS 13116 ;; 13117esac 13118fi 13119{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 13120printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; } 13121 13122if test yes = "$lt_cv_prog_compiler_static_works"; then 13123 : 13124else 13125 lt_prog_compiler_static= 13126fi 13127 13128 13129 13130='-fPIC' 13131 archive_cmds='$CC -sSIDE_MODULE=2 -shared $libobjs $deplibs $compiler_flags -o $lib' 13132 archive_expsym_cmds='$SED "s|^|_|" $export_symbols >$output_objdir/$soname.expsym~$CC -sSIDE_MODULE=2 -shared $libobjs $deplibs $compiler_flags -o $lib -s EXPORTED_FUNCTIONS=@$output_objdir/$soname.expsym' 13133 archive_cmds_need_lc=no 13134 no_undefined_flag= 13135 ;; 13136 13137*) 13138 dynamic_linker=no 13139 ;; 13140esac 13141{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 13142printf "%s\n" "$dynamic_linker" >&6; } 13143test no = "$dynamic_linker" && can_build_shared=no 13144 13145variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 13146if test yes = "$GCC"; then 13147 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 13148fi 13149 13150if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 13151 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 13152fi 13153 13154if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 13155 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 13156fi 13157 13158# remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 13159configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 13160 13161# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 13162func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 13163 13164# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 13165configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 13166 13167 13168 13169 13170 13171 13172 13173 13174 13175 13176 13177 13178 13179 13180 13181 13182 13183 13184 13185 13186 13187 13188 13189 13190 13191 13192 13193 13194 13195 13196 13197 13198 13199 13200 13201 13202 13203 13204 13205 13206 13207 13208 13209 13210 13211 13212 13213 13214 13215 13216 13217 13218 13219 13220 13221 13222 13223 13224 13225 13226 13227 13228 13229 13230 13231 13232 13233 13234 13235 13236 13237 13238 13239 13240 13241 13242 13243 13244 13245 13246 13247 13248 13249 13250 13251 13252 13253 13254 13255 13256 13257 13258 13259 13260 13261 13262 13263 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 13264printf %s "checking how to hardcode library paths into programs... " >&6; } 13265hardcode_action= 13266if test -n "$hardcode_libdir_flag_spec" || 13267 test -n "$runpath_var" || 13268 test yes = "$hardcode_automatic"; then 13269 13270 # We can hardcode non-existent directories. 13271 if test no != "$hardcode_direct" && 13272 # If the only mechanism to avoid hardcoding is shlibpath_var, we 13273 # have to relink, otherwise we might link with an installed library 13274 # when we should be linking with a yet-to-be-installed one 13275 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" && 13276 test no != "$hardcode_minus_L"; then 13277 # Linking always hardcodes the temporary library directory. 13278 hardcode_action=relink 13279 else 13280 # We can link without hardcoding, and we can hardcode nonexisting dirs. 13281 hardcode_action=immediate 13282 fi 13283else 13284 # We cannot hardcode anything, or else we can only hardcode existing 13285 # directories. 13286 hardcode_action=unsupported 13287fi 13288{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 13289printf "%s\n" "$hardcode_action" >&6; } 13290 13291if test relink = "$hardcode_action" || 13292 test yes = "$inherit_rpath"; then 13293 # Fast installation is not supported 13294 enable_fast_install=no 13295elif test yes = "$shlibpath_overrides_runpath" || 13296 test no = "$enable_shared"; then 13297 # Fast installation is not necessary 13298 enable_fast_install=needless 13299fi 13300 13301 13302 13303 13304 13305 13306 if test yes != "$enable_dlopen"; then 13307 enable_dlopen=unknown 13308 enable_dlopen_self=unknown 13309 enable_dlopen_self_static=unknown 13310else 13311 lt_cv_dlopen=no 13312 lt_cv_dlopen_libs= 13313 13314 case $host_os in 13315 beos*) 13316 lt_cv_dlopen=load_add_on 13317 lt_cv_dlopen_libs= 13318 lt_cv_dlopen_self=yes 13319 ;; 13320 13321 mingw* | windows* | pw32* | cegcc*) 13322 lt_cv_dlopen=LoadLibrary 13323 lt_cv_dlopen_libs= 13324 ;; 13325 13326 cygwin*) 13327 lt_cv_dlopen=dlopen 13328 lt_cv_dlopen_libs= 13329 ;; 13330 13331 darwin*) 13332 # if libdl is installed we need to link against it 13333 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 13334printf %s "checking for dlopen in -ldl... " >&6; } 13335if test ${ac_cv_lib_dl_dlopen+y} 13336then : 13337 printf %s "(cached) " >&6 13338else case e in #( 13339 e) ac_check_lib_save_LIBS=$LIBS 13340LIBS="-ldl $LIBS" 13341cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13342/* end confdefs.h. */ 13343 13344/* Override any GCC internal prototype to avoid an error. 13345 Use char because int might match the return type of a GCC 13346 builtin and then its argument prototype would still apply. 13347 The 'extern "C"' is for builds by C++ compilers; 13348 although this is not generally supported in C code supporting it here 13349 has little cost and some practical benefit (sr 110532). */ 13350#ifdef __cplusplus 13351extern "C" 13352#endif 13353char dlopen (void); 13354int 13355main (void) 13356{ 13357return dlopen (); 13358 ; 13359 return 0; 13360} 13361_ACEOF 13362if ac_fn_c_try_link "$LINENO" 13363then : 13364 ac_cv_lib_dl_dlopen=yes 13365else case e in #( 13366 e) ac_cv_lib_dl_dlopen=no ;; 13367esac 13368fi 13369rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13370 conftest$ac_exeext conftest.$ac_ext 13371LIBS=$ac_check_lib_save_LIBS ;; 13372esac 13373fi 13374{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 13375printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; } 13376if test "x$ac_cv_lib_dl_dlopen" = xyes 13377then : 13378 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 13379else case e in #( 13380 e) 13381 lt_cv_dlopen=dyld 13382 lt_cv_dlopen_libs= 13383 lt_cv_dlopen_self=yes 13384 ;; 13385esac 13386fi 13387 13388 ;; 13389 13390 tpf*) 13391 # Don't try to run any link tests for TPF. We know it's impossible 13392 # because TPF is a cross-compiler, and we know how we open DSOs. 13393 lt_cv_dlopen=dlopen 13394 lt_cv_dlopen_libs= 13395 lt_cv_dlopen_self=no 13396 ;; 13397 13398 *) 13399 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 13400if test "x$ac_cv_func_shl_load" = xyes 13401then : 13402 lt_cv_dlopen=shl_load 13403else case e in #( 13404 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 13405printf %s "checking for shl_load in -ldld... " >&6; } 13406if test ${ac_cv_lib_dld_shl_load+y} 13407then : 13408 printf %s "(cached) " >&6 13409else case e in #( 13410 e) ac_check_lib_save_LIBS=$LIBS 13411LIBS="-ldld $LIBS" 13412cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13413/* end confdefs.h. */ 13414 13415/* Override any GCC internal prototype to avoid an error. 13416 Use char because int might match the return type of a GCC 13417 builtin and then its argument prototype would still apply. 13418 The 'extern "C"' is for builds by C++ compilers; 13419 although this is not generally supported in C code supporting it here 13420 has little cost and some practical benefit (sr 110532). */ 13421#ifdef __cplusplus 13422extern "C" 13423#endif 13424char shl_load (void); 13425int 13426main (void) 13427{ 13428return shl_load (); 13429 ; 13430 return 0; 13431} 13432_ACEOF 13433if ac_fn_c_try_link "$LINENO" 13434then : 13435 ac_cv_lib_dld_shl_load=yes 13436else case e in #( 13437 e) ac_cv_lib_dld_shl_load=no ;; 13438esac 13439fi 13440rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13441 conftest$ac_exeext conftest.$ac_ext 13442LIBS=$ac_check_lib_save_LIBS ;; 13443esac 13444fi 13445{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 13446printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; } 13447if test "x$ac_cv_lib_dld_shl_load" = xyes 13448then : 13449 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld 13450else case e in #( 13451 e) ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 13452if test "x$ac_cv_func_dlopen" = xyes 13453then : 13454 lt_cv_dlopen=dlopen 13455else case e in #( 13456 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 13457printf %s "checking for dlopen in -ldl... " >&6; } 13458if test ${ac_cv_lib_dl_dlopen+y} 13459then : 13460 printf %s "(cached) " >&6 13461else case e in #( 13462 e) ac_check_lib_save_LIBS=$LIBS 13463LIBS="-ldl $LIBS" 13464cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13465/* end confdefs.h. */ 13466 13467/* Override any GCC internal prototype to avoid an error. 13468 Use char because int might match the return type of a GCC 13469 builtin and then its argument prototype would still apply. 13470 The 'extern "C"' is for builds by C++ compilers; 13471 although this is not generally supported in C code supporting it here 13472 has little cost and some practical benefit (sr 110532). */ 13473#ifdef __cplusplus 13474extern "C" 13475#endif 13476char dlopen (void); 13477int 13478main (void) 13479{ 13480return dlopen (); 13481 ; 13482 return 0; 13483} 13484_ACEOF 13485if ac_fn_c_try_link "$LINENO" 13486then : 13487 ac_cv_lib_dl_dlopen=yes 13488else case e in #( 13489 e) ac_cv_lib_dl_dlopen=no ;; 13490esac 13491fi 13492rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13493 conftest$ac_exeext conftest.$ac_ext 13494LIBS=$ac_check_lib_save_LIBS ;; 13495esac 13496fi 13497{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 13498printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; } 13499if test "x$ac_cv_lib_dl_dlopen" = xyes 13500then : 13501 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 13502else case e in #( 13503 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 13504printf %s "checking for dlopen in -lsvld... " >&6; } 13505if test ${ac_cv_lib_svld_dlopen+y} 13506then : 13507 printf %s "(cached) " >&6 13508else case e in #( 13509 e) ac_check_lib_save_LIBS=$LIBS 13510LIBS="-lsvld $LIBS" 13511cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13512/* end confdefs.h. */ 13513 13514/* Override any GCC internal prototype to avoid an error. 13515 Use char because int might match the return type of a GCC 13516 builtin and then its argument prototype would still apply. 13517 The 'extern "C"' is for builds by C++ compilers; 13518 although this is not generally supported in C code supporting it here 13519 has little cost and some practical benefit (sr 110532). */ 13520#ifdef __cplusplus 13521extern "C" 13522#endif 13523char dlopen (void); 13524int 13525main (void) 13526{ 13527return dlopen (); 13528 ; 13529 return 0; 13530} 13531_ACEOF 13532if ac_fn_c_try_link "$LINENO" 13533then : 13534 ac_cv_lib_svld_dlopen=yes 13535else case e in #( 13536 e) ac_cv_lib_svld_dlopen=no ;; 13537esac 13538fi 13539rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13540 conftest$ac_exeext conftest.$ac_ext 13541LIBS=$ac_check_lib_save_LIBS ;; 13542esac 13543fi 13544{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 13545printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; } 13546if test "x$ac_cv_lib_svld_dlopen" = xyes 13547then : 13548 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld 13549else case e in #( 13550 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 13551printf %s "checking for dld_link in -ldld... " >&6; } 13552if test ${ac_cv_lib_dld_dld_link+y} 13553then : 13554 printf %s "(cached) " >&6 13555else case e in #( 13556 e) ac_check_lib_save_LIBS=$LIBS 13557LIBS="-ldld $LIBS" 13558cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13559/* end confdefs.h. */ 13560 13561/* Override any GCC internal prototype to avoid an error. 13562 Use char because int might match the return type of a GCC 13563 builtin and then its argument prototype would still apply. 13564 The 'extern "C"' is for builds by C++ compilers; 13565 although this is not generally supported in C code supporting it here 13566 has little cost and some practical benefit (sr 110532). */ 13567#ifdef __cplusplus 13568extern "C" 13569#endif 13570char dld_link (void); 13571int 13572main (void) 13573{ 13574return dld_link (); 13575 ; 13576 return 0; 13577} 13578_ACEOF 13579if ac_fn_c_try_link "$LINENO" 13580then : 13581 ac_cv_lib_dld_dld_link=yes 13582else case e in #( 13583 e) ac_cv_lib_dld_dld_link=no ;; 13584esac 13585fi 13586rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13587 conftest$ac_exeext conftest.$ac_ext 13588LIBS=$ac_check_lib_save_LIBS ;; 13589esac 13590fi 13591{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 13592printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; } 13593if test "x$ac_cv_lib_dld_dld_link" = xyes 13594then : 13595 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld 13596fi 13597 13598 ;; 13599esac 13600fi 13601 13602 ;; 13603esac 13604fi 13605 13606 ;; 13607esac 13608fi 13609 13610 ;; 13611esac 13612fi 13613 13614 ;; 13615esac 13616fi 13617 13618 ;; 13619 esac 13620 13621 if test no = "$lt_cv_dlopen"; then 13622 enable_dlopen=no 13623 else 13624 enable_dlopen=yes 13625 fi 13626 13627 case $lt_cv_dlopen in 13628 dlopen) 13629 save_CPPFLAGS=$CPPFLAGS 13630 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 13631 13632 save_LDFLAGS=$LDFLAGS 13633 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 13634 13635 save_LIBS=$LIBS 13636 LIBS="$lt_cv_dlopen_libs $LIBS" 13637 13638 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 13639printf %s "checking whether a program can dlopen itself... " >&6; } 13640if test ${lt_cv_dlopen_self+y} 13641then : 13642 printf %s "(cached) " >&6 13643else case e in #( 13644 e) if test yes = "$cross_compiling"; then : 13645 lt_cv_dlopen_self=cross 13646else 13647 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 13648 lt_status=$lt_dlunknown 13649 cat > conftest.$ac_ext <<_LT_EOF 13650#line $LINENO "configure" 13651#include "confdefs.h" 13652 13653#if HAVE_DLFCN_H 13654#include <dlfcn.h> 13655#endif 13656 13657#include <stdio.h> 13658 13659#ifdef RTLD_GLOBAL 13660# define LT_DLGLOBAL RTLD_GLOBAL 13661#else 13662# ifdef DL_GLOBAL 13663# define LT_DLGLOBAL DL_GLOBAL 13664# else 13665# define LT_DLGLOBAL 0 13666# endif 13667#endif 13668 13669/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 13670 find out it does not work in some platform. */ 13671#ifndef LT_DLLAZY_OR_NOW 13672# ifdef RTLD_LAZY 13673# define LT_DLLAZY_OR_NOW RTLD_LAZY 13674# else 13675# ifdef DL_LAZY 13676# define LT_DLLAZY_OR_NOW DL_LAZY 13677# else 13678# ifdef RTLD_NOW 13679# define LT_DLLAZY_OR_NOW RTLD_NOW 13680# else 13681# ifdef DL_NOW 13682# define LT_DLLAZY_OR_NOW DL_NOW 13683# else 13684# define LT_DLLAZY_OR_NOW 0 13685# endif 13686# endif 13687# endif 13688# endif 13689#endif 13690 13691/* When -fvisibility=hidden is used, assume the code has been annotated 13692 correspondingly for the symbols needed. */ 13693#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 13694int fnord (void) __attribute__((visibility("default"))); 13695#endif 13696 13697int fnord (void) { return 42; } 13698int main (void) 13699{ 13700 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 13701 int status = $lt_dlunknown; 13702 13703 if (self) 13704 { 13705 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 13706 else 13707 { 13708 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 13709 else puts (dlerror ()); 13710 } 13711 /* dlclose (self); */ 13712 } 13713 else 13714 puts (dlerror ()); 13715 13716 return status; 13717} 13718_LT_EOF 13719 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 13720 (eval $ac_link) 2>&5 13721 ac_status=$? 13722 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13723 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 13724 (./conftest; exit; ) >&5 2>/dev/null 13725 lt_status=$? 13726 case x$lt_status in 13727 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 13728 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 13729 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 13730 esac 13731 else : 13732 # compilation failed 13733 lt_cv_dlopen_self=no 13734 fi 13735fi 13736rm -fr conftest* 13737 13738 ;; 13739esac 13740fi 13741{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 13742printf "%s\n" "$lt_cv_dlopen_self" >&6; } 13743 13744 if test yes = "$lt_cv_dlopen_self"; then 13745 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 13746 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 13747printf %s "checking whether a statically linked program can dlopen itself... " >&6; } 13748if test ${lt_cv_dlopen_self_static+y} 13749then : 13750 printf %s "(cached) " >&6 13751else case e in #( 13752 e) if test yes = "$cross_compiling"; then : 13753 lt_cv_dlopen_self_static=cross 13754else 13755 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 13756 lt_status=$lt_dlunknown 13757 cat > conftest.$ac_ext <<_LT_EOF 13758#line $LINENO "configure" 13759#include "confdefs.h" 13760 13761#if HAVE_DLFCN_H 13762#include <dlfcn.h> 13763#endif 13764 13765#include <stdio.h> 13766 13767#ifdef RTLD_GLOBAL 13768# define LT_DLGLOBAL RTLD_GLOBAL 13769#else 13770# ifdef DL_GLOBAL 13771# define LT_DLGLOBAL DL_GLOBAL 13772# else 13773# define LT_DLGLOBAL 0 13774# endif 13775#endif 13776 13777/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 13778 find out it does not work in some platform. */ 13779#ifndef LT_DLLAZY_OR_NOW 13780# ifdef RTLD_LAZY 13781# define LT_DLLAZY_OR_NOW RTLD_LAZY 13782# else 13783# ifdef DL_LAZY 13784# define LT_DLLAZY_OR_NOW DL_LAZY 13785# else 13786# ifdef RTLD_NOW 13787# define LT_DLLAZY_OR_NOW RTLD_NOW 13788# else 13789# ifdef DL_NOW 13790# define LT_DLLAZY_OR_NOW DL_NOW 13791# else 13792# define LT_DLLAZY_OR_NOW 0 13793# endif 13794# endif 13795# endif 13796# endif 13797#endif 13798 13799/* When -fvisibility=hidden is used, assume the code has been annotated 13800 correspondingly for the symbols needed. */ 13801#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 13802int fnord (void) __attribute__((visibility("default"))); 13803#endif 13804 13805int fnord (void) { return 42; } 13806int main (void) 13807{ 13808 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 13809 int status = $lt_dlunknown; 13810 13811 if (self) 13812 { 13813 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 13814 else 13815 { 13816 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 13817 else puts (dlerror ()); 13818 } 13819 /* dlclose (self); */ 13820 } 13821 else 13822 puts (dlerror ()); 13823 13824 return status; 13825} 13826_LT_EOF 13827 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 13828 (eval $ac_link) 2>&5 13829 ac_status=$? 13830 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13831 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 13832 (./conftest; exit; ) >&5 2>/dev/null 13833 lt_status=$? 13834 case x$lt_status in 13835 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 13836 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 13837 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 13838 esac 13839 else : 13840 # compilation failed 13841 lt_cv_dlopen_self_static=no 13842 fi 13843fi 13844rm -fr conftest* 13845 13846 ;; 13847esac 13848fi 13849{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 13850printf "%s\n" "$lt_cv_dlopen_self_static" >&6; } 13851 fi 13852 13853 CPPFLAGS=$save_CPPFLAGS 13854 LDFLAGS=$save_LDFLAGS 13855 LIBS=$save_LIBS 13856 ;; 13857 esac 13858 13859 case $lt_cv_dlopen_self in 13860 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 13861 *) enable_dlopen_self=unknown ;; 13862 esac 13863 13864 case $lt_cv_dlopen_self_static in 13865 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 13866 *) enable_dlopen_self_static=unknown ;; 13867 esac 13868fi 13869 13870 13871 13872 13873 13874 13875 13876 13877 13878 13879 13880 13881 13882 13883 13884 13885 13886striplib= 13887old_striplib= 13888{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 13889printf %s "checking whether stripping libraries is possible... " >&6; } 13890if test -z "$STRIP"; then 13891 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13892printf "%s\n" "no" >&6; } 13893else 13894 if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 13895 old_striplib="$STRIP --strip-debug" 13896 striplib="$STRIP --strip-unneeded" 13897 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13898printf "%s\n" "yes" >&6; } 13899 else 13900 case $host_os in 13901 darwin*) 13902 # FIXME - insert some real tests, host_os isn't really good enough 13903 striplib="$STRIP -x" 13904 old_striplib="$STRIP -S" 13905 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13906printf "%s\n" "yes" >&6; } 13907 ;; 13908 freebsd*) 13909 if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then 13910 old_striplib="$STRIP --strip-debug" 13911 striplib="$STRIP --strip-unneeded" 13912 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13913printf "%s\n" "yes" >&6; } 13914 else 13915 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13916printf "%s\n" "no" >&6; } 13917 fi 13918 ;; 13919 *) 13920 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13921printf "%s\n" "no" >&6; } 13922 ;; 13923 esac 13924 fi 13925fi 13926 13927 13928 13929 13930 13931 13932 13933 13934 13935 13936 13937 13938 # Report what library types will actually be built 13939 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 13940printf %s "checking if libtool supports shared libraries... " >&6; } 13941 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 13942printf "%s\n" "$can_build_shared" >&6; } 13943 13944 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 13945printf %s "checking whether to build shared libraries... " >&6; } 13946 test no = "$can_build_shared" && enable_shared=no 13947 13948 # On AIX, shared libraries and static libraries use the same namespace, and 13949 # are all built from PIC. 13950 case $host_os in 13951 aix3*) 13952 test yes = "$enable_shared" && enable_static=no 13953 if test -n "$RANLIB"; then 13954 archive_cmds="$archive_cmds~\$RANLIB \$lib" 13955 postinstall_cmds='$RANLIB $lib' 13956 fi 13957 ;; 13958 13959 aix[4-9]*) 13960 if test ia64 != "$host_cpu"; then 13961 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in 13962 yes,aix,yes) ;; # shared object as lib.so file only 13963 yes,svr4,*) ;; # shared object as lib.so archive member only 13964 yes,*) enable_static=no ;; # shared object in lib.a archive as well 13965 esac 13966 fi 13967 ;; 13968 esac 13969 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 13970printf "%s\n" "$enable_shared" >&6; } 13971 13972 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 13973printf %s "checking whether to build static libraries... " >&6; } 13974 # Make sure either enable_shared or enable_static is yes. 13975 test yes = "$enable_shared" || enable_static=yes 13976 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 13977printf "%s\n" "$enable_static" >&6; } 13978 13979 13980 13981 13982fi 13983ac_ext=c 13984ac_cpp='$CPP $CPPFLAGS' 13985ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13986ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13987ac_compiler_gnu=$ac_cv_c_compiler_gnu 13988 13989CC=$lt_save_CC 13990 13991 13992 13993 13994 13995 13996 13997 13998 13999 14000 14001 14002 14003 14004 14005 ac_config_commands="$ac_config_commands libtool" 14006 14007 14008 14009 14010# Only expand once: 14011 14012 14013 14014# Require xorg-macros minimum of 1.12 for DocBook external references 14015 14016 14017 14018 14019 14020 14021 14022 14023 14024 14025 14026{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5 14027printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; } 14028if test ${ac_cv_c_undeclared_builtin_options+y} 14029then : 14030 printf %s "(cached) " >&6 14031else case e in #( 14032 e) ac_save_CFLAGS=$CFLAGS 14033 ac_cv_c_undeclared_builtin_options='cannot detect' 14034 for ac_arg in '' -fno-builtin; do 14035 CFLAGS="$ac_save_CFLAGS $ac_arg" 14036 # This test program should *not* compile successfully. 14037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14038/* end confdefs.h. */ 14039 14040int 14041main (void) 14042{ 14043(void) strchr; 14044 ; 14045 return 0; 14046} 14047_ACEOF 14048if ac_fn_c_try_compile "$LINENO" 14049then : 14050 14051else case e in #( 14052 e) # This test program should compile successfully. 14053 # No library function is consistently available on 14054 # freestanding implementations, so test against a dummy 14055 # declaration. Include always-available headers on the 14056 # off chance that they somehow elicit warnings. 14057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14058/* end confdefs.h. */ 14059#include <float.h> 14060#include <limits.h> 14061#include <stdarg.h> 14062#include <stddef.h> 14063extern void ac_decl (int, char *); 14064 14065int 14066main (void) 14067{ 14068(void) ac_decl (0, (char *) 0); 14069 (void) ac_decl; 14070 14071 ; 14072 return 0; 14073} 14074_ACEOF 14075if ac_fn_c_try_compile "$LINENO" 14076then : 14077 if test x"$ac_arg" = x 14078then : 14079 ac_cv_c_undeclared_builtin_options='none needed' 14080else case e in #( 14081 e) ac_cv_c_undeclared_builtin_options=$ac_arg ;; 14082esac 14083fi 14084 break 14085fi 14086rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 14087esac 14088fi 14089rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14090 done 14091 CFLAGS=$ac_save_CFLAGS 14092 ;; 14093esac 14094fi 14095{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5 14096printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; } 14097 case $ac_cv_c_undeclared_builtin_options in #( 14098 'cannot detect') : 14099 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 14100printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 14101as_fn_error $? "cannot make $CC report undeclared builtins 14102See 'config.log' for more details" "$LINENO" 5; } ;; #( 14103 'none needed') : 14104 ac_c_undeclared_builtin_options='' ;; #( 14105 *) : 14106 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;; 14107esac 14108 14109 14110 14111 14112 14113ac_fn_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 14114if test "x$ac_cv_have_decl___clang__" = xyes 14115then : 14116 CLANGCC="yes" 14117else case e in #( 14118 e) CLANGCC="no" ;; 14119esac 14120fi 14121ac_fn_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 14122if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes 14123then : 14124 INTELCC="yes" 14125else case e in #( 14126 e) INTELCC="no" ;; 14127esac 14128fi 14129ac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 14130if test "x$ac_cv_have_decl___SUNPRO_C" = xyes 14131then : 14132 SUNCC="yes" 14133else case e in #( 14134 e) SUNCC="no" ;; 14135esac 14136fi 14137 14138 14139 14140 14141 14142 14143 14144 14145if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 14146 if test -n "$ac_tool_prefix"; then 14147 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 14148set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 14149{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14150printf %s "checking for $ac_word... " >&6; } 14151if test ${ac_cv_path_PKG_CONFIG+y} 14152then : 14153 printf %s "(cached) " >&6 14154else case e in #( 14155 e) case $PKG_CONFIG in 14156 [\\/]* | ?:[\\/]*) 14157 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 14158 ;; 14159 *) 14160 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14161for as_dir in $PATH 14162do 14163 IFS=$as_save_IFS 14164 case $as_dir in #((( 14165 '') as_dir=./ ;; 14166 */) ;; 14167 *) as_dir=$as_dir/ ;; 14168 esac 14169 for ac_exec_ext in '' $ac_executable_extensions; do 14170 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 14171 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 14172 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 14173 break 2 14174 fi 14175done 14176 done 14177IFS=$as_save_IFS 14178 14179 ;; 14180esac ;; 14181esac 14182fi 14183PKG_CONFIG=$ac_cv_path_PKG_CONFIG 14184if test -n "$PKG_CONFIG"; then 14185 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 14186printf "%s\n" "$PKG_CONFIG" >&6; } 14187else 14188 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 14189printf "%s\n" "no" >&6; } 14190fi 14191 14192 14193fi 14194if test -z "$ac_cv_path_PKG_CONFIG"; then 14195 ac_pt_PKG_CONFIG=$PKG_CONFIG 14196 # Extract the first word of "pkg-config", so it can be a program name with args. 14197set dummy pkg-config; ac_word=$2 14198{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14199printf %s "checking for $ac_word... " >&6; } 14200if test ${ac_cv_path_ac_pt_PKG_CONFIG+y} 14201then : 14202 printf %s "(cached) " >&6 14203else case e in #( 14204 e) case $ac_pt_PKG_CONFIG in 14205 [\\/]* | ?:[\\/]*) 14206 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 14207 ;; 14208 *) 14209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14210for as_dir in $PATH 14211do 14212 IFS=$as_save_IFS 14213 case $as_dir in #((( 14214 '') as_dir=./ ;; 14215 */) ;; 14216 *) as_dir=$as_dir/ ;; 14217 esac 14218 for ac_exec_ext in '' $ac_executable_extensions; do 14219 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 14220 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 14221 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 14222 break 2 14223 fi 14224done 14225 done 14226IFS=$as_save_IFS 14227 14228 ;; 14229esac ;; 14230esac 14231fi 14232ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 14233if test -n "$ac_pt_PKG_CONFIG"; then 14234 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 14235printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; } 14236else 14237 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 14238printf "%s\n" "no" >&6; } 14239fi 14240 14241 if test "x$ac_pt_PKG_CONFIG" = x; then 14242 PKG_CONFIG="" 14243 else 14244 case $cross_compiling:$ac_tool_warned in 14245yes:) 14246{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 14247printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 14248ac_tool_warned=yes ;; 14249esac 14250 PKG_CONFIG=$ac_pt_PKG_CONFIG 14251 fi 14252else 14253 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 14254fi 14255 14256fi 14257if test -n "$PKG_CONFIG"; then 14258 _pkg_min_version=0.9.0 14259 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 14260printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; } 14261 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 14262 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14263printf "%s\n" "yes" >&6; } 14264 else 14265 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 14266printf "%s\n" "no" >&6; } 14267 PKG_CONFIG="" 14268 fi 14269fi 14270 14271 14272 14273 14274 14275# Check whether --enable-selective-werror was given. 14276if test ${enable_selective_werror+y} 14277then : 14278 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval 14279else case e in #( 14280 e) SELECTIVE_WERROR=yes ;; 14281esac 14282fi 14283 14284 14285 14286 14287 14288# -v is too short to test reliably with XORG_TESTSET_CFLAG 14289if test "x$SUNCC" = "xyes"; then 14290 BASE_CFLAGS="-v" 14291else 14292 BASE_CFLAGS="" 14293fi 14294 14295# This chunk of warnings were those that existed in the legacy CWARNFLAGS 14296 14297 14298 14299 14300 14301 14302 14303 14304 14305 14306 14307 14308 14309xorg_testset_save_CFLAGS="$CFLAGS" 14310 14311if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14312 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14313 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14314printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14315if test ${xorg_cv_cc_flag_unknown_warning_option+y} 14316then : 14317 printf %s "(cached) " >&6 14318else case e in #( 14319 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14320/* end confdefs.h. */ 14321int i; 14322_ACEOF 14323if ac_fn_c_try_compile "$LINENO" 14324then : 14325 xorg_cv_cc_flag_unknown_warning_option=yes 14326else case e in #( 14327 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 14328esac 14329fi 14330rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 14331esac 14332fi 14333{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14334printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14335 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14336 CFLAGS="$xorg_testset_save_CFLAGS" 14337fi 14338 14339if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14340 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14341 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14342 fi 14343 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14344 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14345printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14346if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 14347then : 14348 printf %s "(cached) " >&6 14349else case e in #( 14350 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14351/* end confdefs.h. */ 14352int i; 14353_ACEOF 14354if ac_fn_c_try_compile "$LINENO" 14355then : 14356 xorg_cv_cc_flag_unused_command_line_argument=yes 14357else case e in #( 14358 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 14359esac 14360fi 14361rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 14362esac 14363fi 14364{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14365printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14366 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14367 CFLAGS="$xorg_testset_save_CFLAGS" 14368fi 14369 14370found="no" 14371 14372 if test $found = "no" ; then 14373 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14374 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14375 fi 14376 14377 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14378 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14379 fi 14380 14381 CFLAGS="$CFLAGS -Wall" 14382 14383 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5 14384printf %s "checking if $CC supports -Wall... " >&6; } 14385 cacheid=xorg_cv_cc_flag__Wall 14386 if eval test \${$cacheid+y} 14387then : 14388 printf %s "(cached) " >&6 14389else case e in #( 14390 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14391/* end confdefs.h. */ 14392int i; 14393int 14394main (void) 14395{ 14396 14397 ; 14398 return 0; 14399} 14400_ACEOF 14401if ac_fn_c_try_link "$LINENO" 14402then : 14403 eval $cacheid=yes 14404else case e in #( 14405 e) eval $cacheid=no ;; 14406esac 14407fi 14408rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14409 conftest$ac_exeext conftest.$ac_ext ;; 14410esac 14411fi 14412 14413 14414 CFLAGS="$xorg_testset_save_CFLAGS" 14415 14416 eval supported=\$$cacheid 14417 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14418printf "%s\n" "$supported" >&6; } 14419 if test "$supported" = "yes" ; then 14420 BASE_CFLAGS="$BASE_CFLAGS -Wall" 14421 found="yes" 14422 fi 14423 fi 14424 14425 14426 14427 14428 14429 14430 14431 14432 14433 14434 14435 14436 14437 14438 14439xorg_testset_save_CFLAGS="$CFLAGS" 14440 14441if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14442 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14443 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14444printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14445if test ${xorg_cv_cc_flag_unknown_warning_option+y} 14446then : 14447 printf %s "(cached) " >&6 14448else case e in #( 14449 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14450/* end confdefs.h. */ 14451int i; 14452_ACEOF 14453if ac_fn_c_try_compile "$LINENO" 14454then : 14455 xorg_cv_cc_flag_unknown_warning_option=yes 14456else case e in #( 14457 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 14458esac 14459fi 14460rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 14461esac 14462fi 14463{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14464printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14465 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14466 CFLAGS="$xorg_testset_save_CFLAGS" 14467fi 14468 14469if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14470 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14471 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14472 fi 14473 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14474 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14475printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14476if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 14477then : 14478 printf %s "(cached) " >&6 14479else case e in #( 14480 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14481/* end confdefs.h. */ 14482int i; 14483_ACEOF 14484if ac_fn_c_try_compile "$LINENO" 14485then : 14486 xorg_cv_cc_flag_unused_command_line_argument=yes 14487else case e in #( 14488 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 14489esac 14490fi 14491rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 14492esac 14493fi 14494{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14495printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14496 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14497 CFLAGS="$xorg_testset_save_CFLAGS" 14498fi 14499 14500found="no" 14501 14502 if test $found = "no" ; then 14503 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14504 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14505 fi 14506 14507 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14508 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14509 fi 14510 14511 CFLAGS="$CFLAGS -Wpointer-arith" 14512 14513 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5 14514printf %s "checking if $CC supports -Wpointer-arith... " >&6; } 14515 cacheid=xorg_cv_cc_flag__Wpointer_arith 14516 if eval test \${$cacheid+y} 14517then : 14518 printf %s "(cached) " >&6 14519else case e in #( 14520 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14521/* end confdefs.h. */ 14522int i; 14523int 14524main (void) 14525{ 14526 14527 ; 14528 return 0; 14529} 14530_ACEOF 14531if ac_fn_c_try_link "$LINENO" 14532then : 14533 eval $cacheid=yes 14534else case e in #( 14535 e) eval $cacheid=no ;; 14536esac 14537fi 14538rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14539 conftest$ac_exeext conftest.$ac_ext ;; 14540esac 14541fi 14542 14543 14544 CFLAGS="$xorg_testset_save_CFLAGS" 14545 14546 eval supported=\$$cacheid 14547 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14548printf "%s\n" "$supported" >&6; } 14549 if test "$supported" = "yes" ; then 14550 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith" 14551 found="yes" 14552 fi 14553 fi 14554 14555 14556 14557 14558 14559 14560 14561 14562 14563 14564 14565 14566 14567 14568 14569xorg_testset_save_CFLAGS="$CFLAGS" 14570 14571if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14572 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14573 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14574printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14575if test ${xorg_cv_cc_flag_unknown_warning_option+y} 14576then : 14577 printf %s "(cached) " >&6 14578else case e in #( 14579 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14580/* end confdefs.h. */ 14581int i; 14582_ACEOF 14583if ac_fn_c_try_compile "$LINENO" 14584then : 14585 xorg_cv_cc_flag_unknown_warning_option=yes 14586else case e in #( 14587 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 14588esac 14589fi 14590rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 14591esac 14592fi 14593{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14594printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14595 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14596 CFLAGS="$xorg_testset_save_CFLAGS" 14597fi 14598 14599if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14600 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14601 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14602 fi 14603 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14604 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14605printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14606if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 14607then : 14608 printf %s "(cached) " >&6 14609else case e in #( 14610 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14611/* end confdefs.h. */ 14612int i; 14613_ACEOF 14614if ac_fn_c_try_compile "$LINENO" 14615then : 14616 xorg_cv_cc_flag_unused_command_line_argument=yes 14617else case e in #( 14618 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 14619esac 14620fi 14621rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 14622esac 14623fi 14624{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14625printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14626 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14627 CFLAGS="$xorg_testset_save_CFLAGS" 14628fi 14629 14630found="no" 14631 14632 if test $found = "no" ; then 14633 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14634 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14635 fi 14636 14637 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14638 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14639 fi 14640 14641 CFLAGS="$CFLAGS -Wmissing-declarations" 14642 14643 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5 14644printf %s "checking if $CC supports -Wmissing-declarations... " >&6; } 14645 cacheid=xorg_cv_cc_flag__Wmissing_declarations 14646 if eval test \${$cacheid+y} 14647then : 14648 printf %s "(cached) " >&6 14649else case e in #( 14650 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14651/* end confdefs.h. */ 14652int i; 14653int 14654main (void) 14655{ 14656 14657 ; 14658 return 0; 14659} 14660_ACEOF 14661if ac_fn_c_try_link "$LINENO" 14662then : 14663 eval $cacheid=yes 14664else case e in #( 14665 e) eval $cacheid=no ;; 14666esac 14667fi 14668rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14669 conftest$ac_exeext conftest.$ac_ext ;; 14670esac 14671fi 14672 14673 14674 CFLAGS="$xorg_testset_save_CFLAGS" 14675 14676 eval supported=\$$cacheid 14677 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14678printf "%s\n" "$supported" >&6; } 14679 if test "$supported" = "yes" ; then 14680 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations" 14681 found="yes" 14682 fi 14683 fi 14684 14685 14686 14687 14688 14689 14690 14691 14692 14693 14694 14695 14696 14697 14698 14699xorg_testset_save_CFLAGS="$CFLAGS" 14700 14701if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14702 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14703 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14704printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14705if test ${xorg_cv_cc_flag_unknown_warning_option+y} 14706then : 14707 printf %s "(cached) " >&6 14708else case e in #( 14709 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14710/* end confdefs.h. */ 14711int i; 14712_ACEOF 14713if ac_fn_c_try_compile "$LINENO" 14714then : 14715 xorg_cv_cc_flag_unknown_warning_option=yes 14716else case e in #( 14717 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 14718esac 14719fi 14720rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 14721esac 14722fi 14723{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14724printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14725 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14726 CFLAGS="$xorg_testset_save_CFLAGS" 14727fi 14728 14729if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14730 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14731 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14732 fi 14733 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14734 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14735printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14736if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 14737then : 14738 printf %s "(cached) " >&6 14739else case e in #( 14740 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14741/* end confdefs.h. */ 14742int i; 14743_ACEOF 14744if ac_fn_c_try_compile "$LINENO" 14745then : 14746 xorg_cv_cc_flag_unused_command_line_argument=yes 14747else case e in #( 14748 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 14749esac 14750fi 14751rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 14752esac 14753fi 14754{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14755printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14756 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14757 CFLAGS="$xorg_testset_save_CFLAGS" 14758fi 14759 14760found="no" 14761 14762 if test $found = "no" ; then 14763 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14764 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14765 fi 14766 14767 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14768 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14769 fi 14770 14771 CFLAGS="$CFLAGS -Wformat=2" 14772 14773 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5 14774printf %s "checking if $CC supports -Wformat=2... " >&6; } 14775 cacheid=xorg_cv_cc_flag__Wformat_2 14776 if eval test \${$cacheid+y} 14777then : 14778 printf %s "(cached) " >&6 14779else case e in #( 14780 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14781/* end confdefs.h. */ 14782int i; 14783int 14784main (void) 14785{ 14786 14787 ; 14788 return 0; 14789} 14790_ACEOF 14791if ac_fn_c_try_link "$LINENO" 14792then : 14793 eval $cacheid=yes 14794else case e in #( 14795 e) eval $cacheid=no ;; 14796esac 14797fi 14798rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14799 conftest$ac_exeext conftest.$ac_ext ;; 14800esac 14801fi 14802 14803 14804 CFLAGS="$xorg_testset_save_CFLAGS" 14805 14806 eval supported=\$$cacheid 14807 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14808printf "%s\n" "$supported" >&6; } 14809 if test "$supported" = "yes" ; then 14810 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2" 14811 found="yes" 14812 fi 14813 fi 14814 14815 if test $found = "no" ; then 14816 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14817 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14818 fi 14819 14820 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14821 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14822 fi 14823 14824 CFLAGS="$CFLAGS -Wformat" 14825 14826 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5 14827printf %s "checking if $CC supports -Wformat... " >&6; } 14828 cacheid=xorg_cv_cc_flag__Wformat 14829 if eval test \${$cacheid+y} 14830then : 14831 printf %s "(cached) " >&6 14832else case e in #( 14833 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14834/* end confdefs.h. */ 14835int i; 14836int 14837main (void) 14838{ 14839 14840 ; 14841 return 0; 14842} 14843_ACEOF 14844if ac_fn_c_try_link "$LINENO" 14845then : 14846 eval $cacheid=yes 14847else case e in #( 14848 e) eval $cacheid=no ;; 14849esac 14850fi 14851rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14852 conftest$ac_exeext conftest.$ac_ext ;; 14853esac 14854fi 14855 14856 14857 CFLAGS="$xorg_testset_save_CFLAGS" 14858 14859 eval supported=\$$cacheid 14860 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14861printf "%s\n" "$supported" >&6; } 14862 if test "$supported" = "yes" ; then 14863 BASE_CFLAGS="$BASE_CFLAGS -Wformat" 14864 found="yes" 14865 fi 14866 fi 14867 14868 14869 14870 14871 14872 14873 14874 14875 14876 14877 14878 14879 14880 14881 14882 14883 14884xorg_testset_save_CFLAGS="$CFLAGS" 14885 14886if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14887 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14888 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14889printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14890if test ${xorg_cv_cc_flag_unknown_warning_option+y} 14891then : 14892 printf %s "(cached) " >&6 14893else case e in #( 14894 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14895/* end confdefs.h. */ 14896int i; 14897_ACEOF 14898if ac_fn_c_try_compile "$LINENO" 14899then : 14900 xorg_cv_cc_flag_unknown_warning_option=yes 14901else case e in #( 14902 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 14903esac 14904fi 14905rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 14906esac 14907fi 14908{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14909printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14910 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14911 CFLAGS="$xorg_testset_save_CFLAGS" 14912fi 14913 14914if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14915 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14916 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14917 fi 14918 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14919 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14920printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14921if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 14922then : 14923 printf %s "(cached) " >&6 14924else case e in #( 14925 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14926/* end confdefs.h. */ 14927int i; 14928_ACEOF 14929if ac_fn_c_try_compile "$LINENO" 14930then : 14931 xorg_cv_cc_flag_unused_command_line_argument=yes 14932else case e in #( 14933 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 14934esac 14935fi 14936rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 14937esac 14938fi 14939{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14940printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14941 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14942 CFLAGS="$xorg_testset_save_CFLAGS" 14943fi 14944 14945found="no" 14946 14947 if test $found = "no" ; then 14948 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14949 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14950 fi 14951 14952 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14953 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14954 fi 14955 14956 CFLAGS="$CFLAGS -Wstrict-prototypes" 14957 14958 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5 14959printf %s "checking if $CC supports -Wstrict-prototypes... " >&6; } 14960 cacheid=xorg_cv_cc_flag__Wstrict_prototypes 14961 if eval test \${$cacheid+y} 14962then : 14963 printf %s "(cached) " >&6 14964else case e in #( 14965 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14966/* end confdefs.h. */ 14967int i; 14968int 14969main (void) 14970{ 14971 14972 ; 14973 return 0; 14974} 14975_ACEOF 14976if ac_fn_c_try_link "$LINENO" 14977then : 14978 eval $cacheid=yes 14979else case e in #( 14980 e) eval $cacheid=no ;; 14981esac 14982fi 14983rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14984 conftest$ac_exeext conftest.$ac_ext ;; 14985esac 14986fi 14987 14988 14989 CFLAGS="$xorg_testset_save_CFLAGS" 14990 14991 eval supported=\$$cacheid 14992 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14993printf "%s\n" "$supported" >&6; } 14994 if test "$supported" = "yes" ; then 14995 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes" 14996 found="yes" 14997 fi 14998 fi 14999 15000 15001 15002 15003 15004 15005 15006 15007 15008 15009 15010 15011 15012 15013 15014xorg_testset_save_CFLAGS="$CFLAGS" 15015 15016if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15017 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15018 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15019printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15020if test ${xorg_cv_cc_flag_unknown_warning_option+y} 15021then : 15022 printf %s "(cached) " >&6 15023else case e in #( 15024 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15025/* end confdefs.h. */ 15026int i; 15027_ACEOF 15028if ac_fn_c_try_compile "$LINENO" 15029then : 15030 xorg_cv_cc_flag_unknown_warning_option=yes 15031else case e in #( 15032 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 15033esac 15034fi 15035rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 15036esac 15037fi 15038{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15039printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15040 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15041 CFLAGS="$xorg_testset_save_CFLAGS" 15042fi 15043 15044if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15045 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15046 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15047 fi 15048 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15049 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15050printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15051if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 15052then : 15053 printf %s "(cached) " >&6 15054else case e in #( 15055 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15056/* end confdefs.h. */ 15057int i; 15058_ACEOF 15059if ac_fn_c_try_compile "$LINENO" 15060then : 15061 xorg_cv_cc_flag_unused_command_line_argument=yes 15062else case e in #( 15063 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 15064esac 15065fi 15066rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 15067esac 15068fi 15069{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15070printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15071 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15072 CFLAGS="$xorg_testset_save_CFLAGS" 15073fi 15074 15075found="no" 15076 15077 if test $found = "no" ; then 15078 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15079 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15080 fi 15081 15082 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15083 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15084 fi 15085 15086 CFLAGS="$CFLAGS -Wmissing-prototypes" 15087 15088 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5 15089printf %s "checking if $CC supports -Wmissing-prototypes... " >&6; } 15090 cacheid=xorg_cv_cc_flag__Wmissing_prototypes 15091 if eval test \${$cacheid+y} 15092then : 15093 printf %s "(cached) " >&6 15094else case e in #( 15095 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15096/* end confdefs.h. */ 15097int i; 15098int 15099main (void) 15100{ 15101 15102 ; 15103 return 0; 15104} 15105_ACEOF 15106if ac_fn_c_try_link "$LINENO" 15107then : 15108 eval $cacheid=yes 15109else case e in #( 15110 e) eval $cacheid=no ;; 15111esac 15112fi 15113rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15114 conftest$ac_exeext conftest.$ac_ext ;; 15115esac 15116fi 15117 15118 15119 CFLAGS="$xorg_testset_save_CFLAGS" 15120 15121 eval supported=\$$cacheid 15122 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15123printf "%s\n" "$supported" >&6; } 15124 if test "$supported" = "yes" ; then 15125 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes" 15126 found="yes" 15127 fi 15128 fi 15129 15130 15131 15132 15133 15134 15135 15136 15137 15138 15139 15140 15141 15142 15143 15144xorg_testset_save_CFLAGS="$CFLAGS" 15145 15146if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15147 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15148 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15149printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15150if test ${xorg_cv_cc_flag_unknown_warning_option+y} 15151then : 15152 printf %s "(cached) " >&6 15153else case e in #( 15154 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15155/* end confdefs.h. */ 15156int i; 15157_ACEOF 15158if ac_fn_c_try_compile "$LINENO" 15159then : 15160 xorg_cv_cc_flag_unknown_warning_option=yes 15161else case e in #( 15162 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 15163esac 15164fi 15165rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 15166esac 15167fi 15168{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15169printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15170 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15171 CFLAGS="$xorg_testset_save_CFLAGS" 15172fi 15173 15174if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15175 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15176 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15177 fi 15178 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15179 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15180printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15181if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 15182then : 15183 printf %s "(cached) " >&6 15184else case e in #( 15185 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15186/* end confdefs.h. */ 15187int i; 15188_ACEOF 15189if ac_fn_c_try_compile "$LINENO" 15190then : 15191 xorg_cv_cc_flag_unused_command_line_argument=yes 15192else case e in #( 15193 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 15194esac 15195fi 15196rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 15197esac 15198fi 15199{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15200printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15201 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15202 CFLAGS="$xorg_testset_save_CFLAGS" 15203fi 15204 15205found="no" 15206 15207 if test $found = "no" ; then 15208 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15209 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15210 fi 15211 15212 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15213 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15214 fi 15215 15216 CFLAGS="$CFLAGS -Wnested-externs" 15217 15218 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5 15219printf %s "checking if $CC supports -Wnested-externs... " >&6; } 15220 cacheid=xorg_cv_cc_flag__Wnested_externs 15221 if eval test \${$cacheid+y} 15222then : 15223 printf %s "(cached) " >&6 15224else case e in #( 15225 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15226/* end confdefs.h. */ 15227int i; 15228int 15229main (void) 15230{ 15231 15232 ; 15233 return 0; 15234} 15235_ACEOF 15236if ac_fn_c_try_link "$LINENO" 15237then : 15238 eval $cacheid=yes 15239else case e in #( 15240 e) eval $cacheid=no ;; 15241esac 15242fi 15243rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15244 conftest$ac_exeext conftest.$ac_ext ;; 15245esac 15246fi 15247 15248 15249 CFLAGS="$xorg_testset_save_CFLAGS" 15250 15251 eval supported=\$$cacheid 15252 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15253printf "%s\n" "$supported" >&6; } 15254 if test "$supported" = "yes" ; then 15255 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs" 15256 found="yes" 15257 fi 15258 fi 15259 15260 15261 15262 15263 15264 15265 15266 15267 15268 15269 15270 15271 15272 15273 15274xorg_testset_save_CFLAGS="$CFLAGS" 15275 15276if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15277 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15278 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15279printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15280if test ${xorg_cv_cc_flag_unknown_warning_option+y} 15281then : 15282 printf %s "(cached) " >&6 15283else case e in #( 15284 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15285/* end confdefs.h. */ 15286int i; 15287_ACEOF 15288if ac_fn_c_try_compile "$LINENO" 15289then : 15290 xorg_cv_cc_flag_unknown_warning_option=yes 15291else case e in #( 15292 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 15293esac 15294fi 15295rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 15296esac 15297fi 15298{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15299printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15300 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15301 CFLAGS="$xorg_testset_save_CFLAGS" 15302fi 15303 15304if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15305 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15306 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15307 fi 15308 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15309 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15310printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15311if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 15312then : 15313 printf %s "(cached) " >&6 15314else case e in #( 15315 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15316/* end confdefs.h. */ 15317int i; 15318_ACEOF 15319if ac_fn_c_try_compile "$LINENO" 15320then : 15321 xorg_cv_cc_flag_unused_command_line_argument=yes 15322else case e in #( 15323 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 15324esac 15325fi 15326rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 15327esac 15328fi 15329{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15330printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15331 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15332 CFLAGS="$xorg_testset_save_CFLAGS" 15333fi 15334 15335found="no" 15336 15337 if test $found = "no" ; then 15338 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15339 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15340 fi 15341 15342 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15343 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15344 fi 15345 15346 CFLAGS="$CFLAGS -Wbad-function-cast" 15347 15348 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5 15349printf %s "checking if $CC supports -Wbad-function-cast... " >&6; } 15350 cacheid=xorg_cv_cc_flag__Wbad_function_cast 15351 if eval test \${$cacheid+y} 15352then : 15353 printf %s "(cached) " >&6 15354else case e in #( 15355 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15356/* end confdefs.h. */ 15357int i; 15358int 15359main (void) 15360{ 15361 15362 ; 15363 return 0; 15364} 15365_ACEOF 15366if ac_fn_c_try_link "$LINENO" 15367then : 15368 eval $cacheid=yes 15369else case e in #( 15370 e) eval $cacheid=no ;; 15371esac 15372fi 15373rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15374 conftest$ac_exeext conftest.$ac_ext ;; 15375esac 15376fi 15377 15378 15379 CFLAGS="$xorg_testset_save_CFLAGS" 15380 15381 eval supported=\$$cacheid 15382 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15383printf "%s\n" "$supported" >&6; } 15384 if test "$supported" = "yes" ; then 15385 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast" 15386 found="yes" 15387 fi 15388 fi 15389 15390 15391 15392 15393 15394 15395 15396 15397 15398 15399 15400 15401 15402 15403 15404xorg_testset_save_CFLAGS="$CFLAGS" 15405 15406if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15407 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15408 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15409printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15410if test ${xorg_cv_cc_flag_unknown_warning_option+y} 15411then : 15412 printf %s "(cached) " >&6 15413else case e in #( 15414 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15415/* end confdefs.h. */ 15416int i; 15417_ACEOF 15418if ac_fn_c_try_compile "$LINENO" 15419then : 15420 xorg_cv_cc_flag_unknown_warning_option=yes 15421else case e in #( 15422 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 15423esac 15424fi 15425rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 15426esac 15427fi 15428{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15429printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15430 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15431 CFLAGS="$xorg_testset_save_CFLAGS" 15432fi 15433 15434if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15435 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15436 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15437 fi 15438 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15439 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15440printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15441if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 15442then : 15443 printf %s "(cached) " >&6 15444else case e in #( 15445 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15446/* end confdefs.h. */ 15447int i; 15448_ACEOF 15449if ac_fn_c_try_compile "$LINENO" 15450then : 15451 xorg_cv_cc_flag_unused_command_line_argument=yes 15452else case e in #( 15453 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 15454esac 15455fi 15456rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 15457esac 15458fi 15459{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15460printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15461 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15462 CFLAGS="$xorg_testset_save_CFLAGS" 15463fi 15464 15465found="no" 15466 15467 if test $found = "no" ; then 15468 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15469 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15470 fi 15471 15472 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15473 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15474 fi 15475 15476 CFLAGS="$CFLAGS -Wold-style-definition" 15477 15478 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5 15479printf %s "checking if $CC supports -Wold-style-definition... " >&6; } 15480 cacheid=xorg_cv_cc_flag__Wold_style_definition 15481 if eval test \${$cacheid+y} 15482then : 15483 printf %s "(cached) " >&6 15484else case e in #( 15485 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15486/* end confdefs.h. */ 15487int i; 15488int 15489main (void) 15490{ 15491 15492 ; 15493 return 0; 15494} 15495_ACEOF 15496if ac_fn_c_try_link "$LINENO" 15497then : 15498 eval $cacheid=yes 15499else case e in #( 15500 e) eval $cacheid=no ;; 15501esac 15502fi 15503rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15504 conftest$ac_exeext conftest.$ac_ext ;; 15505esac 15506fi 15507 15508 15509 CFLAGS="$xorg_testset_save_CFLAGS" 15510 15511 eval supported=\$$cacheid 15512 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15513printf "%s\n" "$supported" >&6; } 15514 if test "$supported" = "yes" ; then 15515 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition" 15516 found="yes" 15517 fi 15518 fi 15519 15520 if test $found = "no" ; then 15521 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15522 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15523 fi 15524 15525 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15526 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15527 fi 15528 15529 CFLAGS="$CFLAGS -fd" 15530 15531 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5 15532printf %s "checking if $CC supports -fd... " >&6; } 15533 cacheid=xorg_cv_cc_flag__fd 15534 if eval test \${$cacheid+y} 15535then : 15536 printf %s "(cached) " >&6 15537else case e in #( 15538 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15539/* end confdefs.h. */ 15540int i; 15541int 15542main (void) 15543{ 15544 15545 ; 15546 return 0; 15547} 15548_ACEOF 15549if ac_fn_c_try_link "$LINENO" 15550then : 15551 eval $cacheid=yes 15552else case e in #( 15553 e) eval $cacheid=no ;; 15554esac 15555fi 15556rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15557 conftest$ac_exeext conftest.$ac_ext ;; 15558esac 15559fi 15560 15561 15562 CFLAGS="$xorg_testset_save_CFLAGS" 15563 15564 eval supported=\$$cacheid 15565 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15566printf "%s\n" "$supported" >&6; } 15567 if test "$supported" = "yes" ; then 15568 BASE_CFLAGS="$BASE_CFLAGS -fd" 15569 found="yes" 15570 fi 15571 fi 15572 15573 15574 15575 15576 15577# This chunk adds additional warnings that could catch undesired effects. 15578 15579 15580 15581 15582 15583 15584 15585 15586 15587 15588 15589 15590 15591xorg_testset_save_CFLAGS="$CFLAGS" 15592 15593if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15594 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15595 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15596printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15597if test ${xorg_cv_cc_flag_unknown_warning_option+y} 15598then : 15599 printf %s "(cached) " >&6 15600else case e in #( 15601 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15602/* end confdefs.h. */ 15603int i; 15604_ACEOF 15605if ac_fn_c_try_compile "$LINENO" 15606then : 15607 xorg_cv_cc_flag_unknown_warning_option=yes 15608else case e in #( 15609 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 15610esac 15611fi 15612rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 15613esac 15614fi 15615{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15616printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15617 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15618 CFLAGS="$xorg_testset_save_CFLAGS" 15619fi 15620 15621if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15622 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15623 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15624 fi 15625 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15626 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15627printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15628if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 15629then : 15630 printf %s "(cached) " >&6 15631else case e in #( 15632 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15633/* end confdefs.h. */ 15634int i; 15635_ACEOF 15636if ac_fn_c_try_compile "$LINENO" 15637then : 15638 xorg_cv_cc_flag_unused_command_line_argument=yes 15639else case e in #( 15640 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 15641esac 15642fi 15643rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 15644esac 15645fi 15646{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15647printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15648 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15649 CFLAGS="$xorg_testset_save_CFLAGS" 15650fi 15651 15652found="no" 15653 15654 if test $found = "no" ; then 15655 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15656 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15657 fi 15658 15659 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15660 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15661 fi 15662 15663 CFLAGS="$CFLAGS -Wunused" 15664 15665 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5 15666printf %s "checking if $CC supports -Wunused... " >&6; } 15667 cacheid=xorg_cv_cc_flag__Wunused 15668 if eval test \${$cacheid+y} 15669then : 15670 printf %s "(cached) " >&6 15671else case e in #( 15672 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15673/* end confdefs.h. */ 15674int i; 15675int 15676main (void) 15677{ 15678 15679 ; 15680 return 0; 15681} 15682_ACEOF 15683if ac_fn_c_try_link "$LINENO" 15684then : 15685 eval $cacheid=yes 15686else case e in #( 15687 e) eval $cacheid=no ;; 15688esac 15689fi 15690rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15691 conftest$ac_exeext conftest.$ac_ext ;; 15692esac 15693fi 15694 15695 15696 CFLAGS="$xorg_testset_save_CFLAGS" 15697 15698 eval supported=\$$cacheid 15699 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15700printf "%s\n" "$supported" >&6; } 15701 if test "$supported" = "yes" ; then 15702 BASE_CFLAGS="$BASE_CFLAGS -Wunused" 15703 found="yes" 15704 fi 15705 fi 15706 15707 15708 15709 15710 15711 15712 15713 15714 15715 15716 15717 15718 15719 15720 15721xorg_testset_save_CFLAGS="$CFLAGS" 15722 15723if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15724 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15725 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15726printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15727if test ${xorg_cv_cc_flag_unknown_warning_option+y} 15728then : 15729 printf %s "(cached) " >&6 15730else case e in #( 15731 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15732/* end confdefs.h. */ 15733int i; 15734_ACEOF 15735if ac_fn_c_try_compile "$LINENO" 15736then : 15737 xorg_cv_cc_flag_unknown_warning_option=yes 15738else case e in #( 15739 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 15740esac 15741fi 15742rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 15743esac 15744fi 15745{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15746printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15747 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15748 CFLAGS="$xorg_testset_save_CFLAGS" 15749fi 15750 15751if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15752 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15753 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15754 fi 15755 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15756 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15757printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15758if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 15759then : 15760 printf %s "(cached) " >&6 15761else case e in #( 15762 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15763/* end confdefs.h. */ 15764int i; 15765_ACEOF 15766if ac_fn_c_try_compile "$LINENO" 15767then : 15768 xorg_cv_cc_flag_unused_command_line_argument=yes 15769else case e in #( 15770 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 15771esac 15772fi 15773rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 15774esac 15775fi 15776{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15777printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15778 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15779 CFLAGS="$xorg_testset_save_CFLAGS" 15780fi 15781 15782found="no" 15783 15784 if test $found = "no" ; then 15785 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15786 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15787 fi 15788 15789 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15790 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15791 fi 15792 15793 CFLAGS="$CFLAGS -Wuninitialized" 15794 15795 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5 15796printf %s "checking if $CC supports -Wuninitialized... " >&6; } 15797 cacheid=xorg_cv_cc_flag__Wuninitialized 15798 if eval test \${$cacheid+y} 15799then : 15800 printf %s "(cached) " >&6 15801else case e in #( 15802 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15803/* end confdefs.h. */ 15804int i; 15805int 15806main (void) 15807{ 15808 15809 ; 15810 return 0; 15811} 15812_ACEOF 15813if ac_fn_c_try_link "$LINENO" 15814then : 15815 eval $cacheid=yes 15816else case e in #( 15817 e) eval $cacheid=no ;; 15818esac 15819fi 15820rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15821 conftest$ac_exeext conftest.$ac_ext ;; 15822esac 15823fi 15824 15825 15826 CFLAGS="$xorg_testset_save_CFLAGS" 15827 15828 eval supported=\$$cacheid 15829 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15830printf "%s\n" "$supported" >&6; } 15831 if test "$supported" = "yes" ; then 15832 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized" 15833 found="yes" 15834 fi 15835 fi 15836 15837 15838 15839 15840 15841 15842 15843 15844 15845 15846 15847 15848 15849 15850 15851xorg_testset_save_CFLAGS="$CFLAGS" 15852 15853if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15854 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15855 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15856printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15857if test ${xorg_cv_cc_flag_unknown_warning_option+y} 15858then : 15859 printf %s "(cached) " >&6 15860else case e in #( 15861 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15862/* end confdefs.h. */ 15863int i; 15864_ACEOF 15865if ac_fn_c_try_compile "$LINENO" 15866then : 15867 xorg_cv_cc_flag_unknown_warning_option=yes 15868else case e in #( 15869 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 15870esac 15871fi 15872rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 15873esac 15874fi 15875{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15876printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15877 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15878 CFLAGS="$xorg_testset_save_CFLAGS" 15879fi 15880 15881if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15882 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15883 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15884 fi 15885 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15886 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15887printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15888if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 15889then : 15890 printf %s "(cached) " >&6 15891else case e in #( 15892 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15893/* end confdefs.h. */ 15894int i; 15895_ACEOF 15896if ac_fn_c_try_compile "$LINENO" 15897then : 15898 xorg_cv_cc_flag_unused_command_line_argument=yes 15899else case e in #( 15900 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 15901esac 15902fi 15903rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 15904esac 15905fi 15906{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15907printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15908 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15909 CFLAGS="$xorg_testset_save_CFLAGS" 15910fi 15911 15912found="no" 15913 15914 if test $found = "no" ; then 15915 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15916 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15917 fi 15918 15919 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15920 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15921 fi 15922 15923 CFLAGS="$CFLAGS -Wshadow" 15924 15925 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5 15926printf %s "checking if $CC supports -Wshadow... " >&6; } 15927 cacheid=xorg_cv_cc_flag__Wshadow 15928 if eval test \${$cacheid+y} 15929then : 15930 printf %s "(cached) " >&6 15931else case e in #( 15932 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15933/* end confdefs.h. */ 15934int i; 15935int 15936main (void) 15937{ 15938 15939 ; 15940 return 0; 15941} 15942_ACEOF 15943if ac_fn_c_try_link "$LINENO" 15944then : 15945 eval $cacheid=yes 15946else case e in #( 15947 e) eval $cacheid=no ;; 15948esac 15949fi 15950rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15951 conftest$ac_exeext conftest.$ac_ext ;; 15952esac 15953fi 15954 15955 15956 CFLAGS="$xorg_testset_save_CFLAGS" 15957 15958 eval supported=\$$cacheid 15959 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15960printf "%s\n" "$supported" >&6; } 15961 if test "$supported" = "yes" ; then 15962 BASE_CFLAGS="$BASE_CFLAGS -Wshadow" 15963 found="yes" 15964 fi 15965 fi 15966 15967 15968 15969 15970 15971 15972 15973 15974 15975 15976 15977 15978 15979 15980 15981xorg_testset_save_CFLAGS="$CFLAGS" 15982 15983if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15984 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15985 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15986printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15987if test ${xorg_cv_cc_flag_unknown_warning_option+y} 15988then : 15989 printf %s "(cached) " >&6 15990else case e in #( 15991 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15992/* end confdefs.h. */ 15993int i; 15994_ACEOF 15995if ac_fn_c_try_compile "$LINENO" 15996then : 15997 xorg_cv_cc_flag_unknown_warning_option=yes 15998else case e in #( 15999 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 16000esac 16001fi 16002rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 16003esac 16004fi 16005{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16006printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16007 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16008 CFLAGS="$xorg_testset_save_CFLAGS" 16009fi 16010 16011if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16012 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16013 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16014 fi 16015 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16016 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16017printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16018if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 16019then : 16020 printf %s "(cached) " >&6 16021else case e in #( 16022 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16023/* end confdefs.h. */ 16024int i; 16025_ACEOF 16026if ac_fn_c_try_compile "$LINENO" 16027then : 16028 xorg_cv_cc_flag_unused_command_line_argument=yes 16029else case e in #( 16030 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 16031esac 16032fi 16033rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 16034esac 16035fi 16036{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16037printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16038 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16039 CFLAGS="$xorg_testset_save_CFLAGS" 16040fi 16041 16042found="no" 16043 16044 if test $found = "no" ; then 16045 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16046 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16047 fi 16048 16049 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16050 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16051 fi 16052 16053 CFLAGS="$CFLAGS -Wmissing-noreturn" 16054 16055 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5 16056printf %s "checking if $CC supports -Wmissing-noreturn... " >&6; } 16057 cacheid=xorg_cv_cc_flag__Wmissing_noreturn 16058 if eval test \${$cacheid+y} 16059then : 16060 printf %s "(cached) " >&6 16061else case e in #( 16062 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16063/* end confdefs.h. */ 16064int i; 16065int 16066main (void) 16067{ 16068 16069 ; 16070 return 0; 16071} 16072_ACEOF 16073if ac_fn_c_try_link "$LINENO" 16074then : 16075 eval $cacheid=yes 16076else case e in #( 16077 e) eval $cacheid=no ;; 16078esac 16079fi 16080rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16081 conftest$ac_exeext conftest.$ac_ext ;; 16082esac 16083fi 16084 16085 16086 CFLAGS="$xorg_testset_save_CFLAGS" 16087 16088 eval supported=\$$cacheid 16089 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16090printf "%s\n" "$supported" >&6; } 16091 if test "$supported" = "yes" ; then 16092 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn" 16093 found="yes" 16094 fi 16095 fi 16096 16097 16098 16099 16100 16101 16102 16103 16104 16105 16106 16107 16108 16109 16110 16111xorg_testset_save_CFLAGS="$CFLAGS" 16112 16113if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16114 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16115 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16116printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16117if test ${xorg_cv_cc_flag_unknown_warning_option+y} 16118then : 16119 printf %s "(cached) " >&6 16120else case e in #( 16121 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16122/* end confdefs.h. */ 16123int i; 16124_ACEOF 16125if ac_fn_c_try_compile "$LINENO" 16126then : 16127 xorg_cv_cc_flag_unknown_warning_option=yes 16128else case e in #( 16129 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 16130esac 16131fi 16132rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 16133esac 16134fi 16135{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16136printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16137 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16138 CFLAGS="$xorg_testset_save_CFLAGS" 16139fi 16140 16141if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16142 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16143 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16144 fi 16145 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16146 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16147printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16148if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 16149then : 16150 printf %s "(cached) " >&6 16151else case e in #( 16152 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16153/* end confdefs.h. */ 16154int i; 16155_ACEOF 16156if ac_fn_c_try_compile "$LINENO" 16157then : 16158 xorg_cv_cc_flag_unused_command_line_argument=yes 16159else case e in #( 16160 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 16161esac 16162fi 16163rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 16164esac 16165fi 16166{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16167printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16168 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16169 CFLAGS="$xorg_testset_save_CFLAGS" 16170fi 16171 16172found="no" 16173 16174 if test $found = "no" ; then 16175 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16176 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16177 fi 16178 16179 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16180 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16181 fi 16182 16183 CFLAGS="$CFLAGS -Wmissing-format-attribute" 16184 16185 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5 16186printf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; } 16187 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute 16188 if eval test \${$cacheid+y} 16189then : 16190 printf %s "(cached) " >&6 16191else case e in #( 16192 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16193/* end confdefs.h. */ 16194int i; 16195int 16196main (void) 16197{ 16198 16199 ; 16200 return 0; 16201} 16202_ACEOF 16203if ac_fn_c_try_link "$LINENO" 16204then : 16205 eval $cacheid=yes 16206else case e in #( 16207 e) eval $cacheid=no ;; 16208esac 16209fi 16210rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16211 conftest$ac_exeext conftest.$ac_ext ;; 16212esac 16213fi 16214 16215 16216 CFLAGS="$xorg_testset_save_CFLAGS" 16217 16218 eval supported=\$$cacheid 16219 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16220printf "%s\n" "$supported" >&6; } 16221 if test "$supported" = "yes" ; then 16222 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute" 16223 found="yes" 16224 fi 16225 fi 16226 16227 16228 16229 16230 16231 16232 16233 16234 16235 16236 16237 16238 16239 16240 16241xorg_testset_save_CFLAGS="$CFLAGS" 16242 16243if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16244 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16245 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16246printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16247if test ${xorg_cv_cc_flag_unknown_warning_option+y} 16248then : 16249 printf %s "(cached) " >&6 16250else case e in #( 16251 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16252/* end confdefs.h. */ 16253int i; 16254_ACEOF 16255if ac_fn_c_try_compile "$LINENO" 16256then : 16257 xorg_cv_cc_flag_unknown_warning_option=yes 16258else case e in #( 16259 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 16260esac 16261fi 16262rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 16263esac 16264fi 16265{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16266printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16267 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16268 CFLAGS="$xorg_testset_save_CFLAGS" 16269fi 16270 16271if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16272 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16273 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16274 fi 16275 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16276 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16277printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16278if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 16279then : 16280 printf %s "(cached) " >&6 16281else case e in #( 16282 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16283/* end confdefs.h. */ 16284int i; 16285_ACEOF 16286if ac_fn_c_try_compile "$LINENO" 16287then : 16288 xorg_cv_cc_flag_unused_command_line_argument=yes 16289else case e in #( 16290 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 16291esac 16292fi 16293rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 16294esac 16295fi 16296{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16297printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16298 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16299 CFLAGS="$xorg_testset_save_CFLAGS" 16300fi 16301 16302found="no" 16303 16304 if test $found = "no" ; then 16305 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16306 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16307 fi 16308 16309 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16310 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16311 fi 16312 16313 CFLAGS="$CFLAGS -Wredundant-decls" 16314 16315 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5 16316printf %s "checking if $CC supports -Wredundant-decls... " >&6; } 16317 cacheid=xorg_cv_cc_flag__Wredundant_decls 16318 if eval test \${$cacheid+y} 16319then : 16320 printf %s "(cached) " >&6 16321else case e in #( 16322 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16323/* end confdefs.h. */ 16324int i; 16325int 16326main (void) 16327{ 16328 16329 ; 16330 return 0; 16331} 16332_ACEOF 16333if ac_fn_c_try_link "$LINENO" 16334then : 16335 eval $cacheid=yes 16336else case e in #( 16337 e) eval $cacheid=no ;; 16338esac 16339fi 16340rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16341 conftest$ac_exeext conftest.$ac_ext ;; 16342esac 16343fi 16344 16345 16346 CFLAGS="$xorg_testset_save_CFLAGS" 16347 16348 eval supported=\$$cacheid 16349 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16350printf "%s\n" "$supported" >&6; } 16351 if test "$supported" = "yes" ; then 16352 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls" 16353 found="yes" 16354 fi 16355 fi 16356 16357 16358 16359 16360 16361 16362 16363 16364 16365 16366 16367 16368 16369 16370 16371xorg_testset_save_CFLAGS="$CFLAGS" 16372 16373if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16374 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16375 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16376printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16377if test ${xorg_cv_cc_flag_unknown_warning_option+y} 16378then : 16379 printf %s "(cached) " >&6 16380else case e in #( 16381 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16382/* end confdefs.h. */ 16383int i; 16384_ACEOF 16385if ac_fn_c_try_compile "$LINENO" 16386then : 16387 xorg_cv_cc_flag_unknown_warning_option=yes 16388else case e in #( 16389 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 16390esac 16391fi 16392rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 16393esac 16394fi 16395{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16396printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16397 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16398 CFLAGS="$xorg_testset_save_CFLAGS" 16399fi 16400 16401if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16402 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16403 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16404 fi 16405 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16406 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16407printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16408if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 16409then : 16410 printf %s "(cached) " >&6 16411else case e in #( 16412 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16413/* end confdefs.h. */ 16414int i; 16415_ACEOF 16416if ac_fn_c_try_compile "$LINENO" 16417then : 16418 xorg_cv_cc_flag_unused_command_line_argument=yes 16419else case e in #( 16420 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 16421esac 16422fi 16423rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 16424esac 16425fi 16426{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16427printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16428 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16429 CFLAGS="$xorg_testset_save_CFLAGS" 16430fi 16431 16432found="no" 16433 16434 if test $found = "no" ; then 16435 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16436 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16437 fi 16438 16439 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16440 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16441 fi 16442 16443 CFLAGS="$CFLAGS -Wlogical-op" 16444 16445 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5 16446printf %s "checking if $CC supports -Wlogical-op... " >&6; } 16447 cacheid=xorg_cv_cc_flag__Wlogical_op 16448 if eval test \${$cacheid+y} 16449then : 16450 printf %s "(cached) " >&6 16451else case e in #( 16452 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16453/* end confdefs.h. */ 16454int i; 16455int 16456main (void) 16457{ 16458 16459 ; 16460 return 0; 16461} 16462_ACEOF 16463if ac_fn_c_try_link "$LINENO" 16464then : 16465 eval $cacheid=yes 16466else case e in #( 16467 e) eval $cacheid=no ;; 16468esac 16469fi 16470rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16471 conftest$ac_exeext conftest.$ac_ext ;; 16472esac 16473fi 16474 16475 16476 CFLAGS="$xorg_testset_save_CFLAGS" 16477 16478 eval supported=\$$cacheid 16479 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16480printf "%s\n" "$supported" >&6; } 16481 if test "$supported" = "yes" ; then 16482 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op" 16483 found="yes" 16484 fi 16485 fi 16486 16487 16488 16489# These are currently disabled because they are noisy. They will be enabled 16490# in the future once the codebase is sufficiently modernized to silence 16491# them. For now, I don't want them to drown out the other warnings. 16492# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses]) 16493# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align]) 16494# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual]) 16495 16496# Turn some warnings into errors, so we don't accidentally get successful builds 16497# when there are problems that should be fixed. 16498 16499if test "x$SELECTIVE_WERROR" = "xyes" ; then 16500 16501 16502 16503 16504 16505 16506 16507 16508 16509 16510 16511 16512 16513xorg_testset_save_CFLAGS="$CFLAGS" 16514 16515if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16516 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16517 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16518printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16519if test ${xorg_cv_cc_flag_unknown_warning_option+y} 16520then : 16521 printf %s "(cached) " >&6 16522else case e in #( 16523 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16524/* end confdefs.h. */ 16525int i; 16526_ACEOF 16527if ac_fn_c_try_compile "$LINENO" 16528then : 16529 xorg_cv_cc_flag_unknown_warning_option=yes 16530else case e in #( 16531 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 16532esac 16533fi 16534rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 16535esac 16536fi 16537{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16538printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16539 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16540 CFLAGS="$xorg_testset_save_CFLAGS" 16541fi 16542 16543if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16544 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16545 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16546 fi 16547 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16548 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16549printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16550if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 16551then : 16552 printf %s "(cached) " >&6 16553else case e in #( 16554 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16555/* end confdefs.h. */ 16556int i; 16557_ACEOF 16558if ac_fn_c_try_compile "$LINENO" 16559then : 16560 xorg_cv_cc_flag_unused_command_line_argument=yes 16561else case e in #( 16562 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 16563esac 16564fi 16565rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 16566esac 16567fi 16568{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16569printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16570 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16571 CFLAGS="$xorg_testset_save_CFLAGS" 16572fi 16573 16574found="no" 16575 16576 if test $found = "no" ; then 16577 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16578 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16579 fi 16580 16581 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16582 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16583 fi 16584 16585 CFLAGS="$CFLAGS -Werror=implicit" 16586 16587 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5 16588printf %s "checking if $CC supports -Werror=implicit... " >&6; } 16589 cacheid=xorg_cv_cc_flag__Werror_implicit 16590 if eval test \${$cacheid+y} 16591then : 16592 printf %s "(cached) " >&6 16593else case e in #( 16594 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16595/* end confdefs.h. */ 16596int i; 16597int 16598main (void) 16599{ 16600 16601 ; 16602 return 0; 16603} 16604_ACEOF 16605if ac_fn_c_try_link "$LINENO" 16606then : 16607 eval $cacheid=yes 16608else case e in #( 16609 e) eval $cacheid=no ;; 16610esac 16611fi 16612rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16613 conftest$ac_exeext conftest.$ac_ext ;; 16614esac 16615fi 16616 16617 16618 CFLAGS="$xorg_testset_save_CFLAGS" 16619 16620 eval supported=\$$cacheid 16621 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16622printf "%s\n" "$supported" >&6; } 16623 if test "$supported" = "yes" ; then 16624 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit" 16625 found="yes" 16626 fi 16627 fi 16628 16629 if test $found = "no" ; then 16630 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16631 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16632 fi 16633 16634 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16635 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16636 fi 16637 16638 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 16639 16640 { 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 16641printf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; } 16642 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED 16643 if eval test \${$cacheid+y} 16644then : 16645 printf %s "(cached) " >&6 16646else case e in #( 16647 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16648/* end confdefs.h. */ 16649int i; 16650int 16651main (void) 16652{ 16653 16654 ; 16655 return 0; 16656} 16657_ACEOF 16658if ac_fn_c_try_link "$LINENO" 16659then : 16660 eval $cacheid=yes 16661else case e in #( 16662 e) eval $cacheid=no ;; 16663esac 16664fi 16665rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16666 conftest$ac_exeext conftest.$ac_ext ;; 16667esac 16668fi 16669 16670 16671 CFLAGS="$xorg_testset_save_CFLAGS" 16672 16673 eval supported=\$$cacheid 16674 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16675printf "%s\n" "$supported" >&6; } 16676 if test "$supported" = "yes" ; then 16677 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 16678 found="yes" 16679 fi 16680 fi 16681 16682 16683 16684 16685 16686 16687 16688 16689 16690 16691 16692 16693 16694 16695 16696xorg_testset_save_CFLAGS="$CFLAGS" 16697 16698if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16699 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16700 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16701printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16702if test ${xorg_cv_cc_flag_unknown_warning_option+y} 16703then : 16704 printf %s "(cached) " >&6 16705else case e in #( 16706 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16707/* end confdefs.h. */ 16708int i; 16709_ACEOF 16710if ac_fn_c_try_compile "$LINENO" 16711then : 16712 xorg_cv_cc_flag_unknown_warning_option=yes 16713else case e in #( 16714 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 16715esac 16716fi 16717rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 16718esac 16719fi 16720{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16721printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16722 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16723 CFLAGS="$xorg_testset_save_CFLAGS" 16724fi 16725 16726if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16727 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16728 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16729 fi 16730 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16731 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16732printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16733if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 16734then : 16735 printf %s "(cached) " >&6 16736else case e in #( 16737 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16738/* end confdefs.h. */ 16739int i; 16740_ACEOF 16741if ac_fn_c_try_compile "$LINENO" 16742then : 16743 xorg_cv_cc_flag_unused_command_line_argument=yes 16744else case e in #( 16745 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 16746esac 16747fi 16748rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 16749esac 16750fi 16751{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16752printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16753 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16754 CFLAGS="$xorg_testset_save_CFLAGS" 16755fi 16756 16757found="no" 16758 16759 if test $found = "no" ; then 16760 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16761 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16762 fi 16763 16764 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16765 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16766 fi 16767 16768 CFLAGS="$CFLAGS -Werror=nonnull" 16769 16770 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5 16771printf %s "checking if $CC supports -Werror=nonnull... " >&6; } 16772 cacheid=xorg_cv_cc_flag__Werror_nonnull 16773 if eval test \${$cacheid+y} 16774then : 16775 printf %s "(cached) " >&6 16776else case e in #( 16777 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16778/* end confdefs.h. */ 16779int i; 16780int 16781main (void) 16782{ 16783 16784 ; 16785 return 0; 16786} 16787_ACEOF 16788if ac_fn_c_try_link "$LINENO" 16789then : 16790 eval $cacheid=yes 16791else case e in #( 16792 e) eval $cacheid=no ;; 16793esac 16794fi 16795rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16796 conftest$ac_exeext conftest.$ac_ext ;; 16797esac 16798fi 16799 16800 16801 CFLAGS="$xorg_testset_save_CFLAGS" 16802 16803 eval supported=\$$cacheid 16804 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16805printf "%s\n" "$supported" >&6; } 16806 if test "$supported" = "yes" ; then 16807 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull" 16808 found="yes" 16809 fi 16810 fi 16811 16812 16813 16814 16815 16816 16817 16818 16819 16820 16821 16822 16823 16824 16825 16826xorg_testset_save_CFLAGS="$CFLAGS" 16827 16828if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16829 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16830 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16831printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16832if test ${xorg_cv_cc_flag_unknown_warning_option+y} 16833then : 16834 printf %s "(cached) " >&6 16835else case e in #( 16836 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16837/* end confdefs.h. */ 16838int i; 16839_ACEOF 16840if ac_fn_c_try_compile "$LINENO" 16841then : 16842 xorg_cv_cc_flag_unknown_warning_option=yes 16843else case e in #( 16844 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 16845esac 16846fi 16847rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 16848esac 16849fi 16850{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16851printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16852 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16853 CFLAGS="$xorg_testset_save_CFLAGS" 16854fi 16855 16856if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16857 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16858 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16859 fi 16860 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16861 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16862printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16863if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 16864then : 16865 printf %s "(cached) " >&6 16866else case e in #( 16867 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16868/* end confdefs.h. */ 16869int i; 16870_ACEOF 16871if ac_fn_c_try_compile "$LINENO" 16872then : 16873 xorg_cv_cc_flag_unused_command_line_argument=yes 16874else case e in #( 16875 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 16876esac 16877fi 16878rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 16879esac 16880fi 16881{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16882printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16883 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16884 CFLAGS="$xorg_testset_save_CFLAGS" 16885fi 16886 16887found="no" 16888 16889 if test $found = "no" ; then 16890 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16891 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16892 fi 16893 16894 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16895 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16896 fi 16897 16898 CFLAGS="$CFLAGS -Werror=init-self" 16899 16900 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5 16901printf %s "checking if $CC supports -Werror=init-self... " >&6; } 16902 cacheid=xorg_cv_cc_flag__Werror_init_self 16903 if eval test \${$cacheid+y} 16904then : 16905 printf %s "(cached) " >&6 16906else case e in #( 16907 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16908/* end confdefs.h. */ 16909int i; 16910int 16911main (void) 16912{ 16913 16914 ; 16915 return 0; 16916} 16917_ACEOF 16918if ac_fn_c_try_link "$LINENO" 16919then : 16920 eval $cacheid=yes 16921else case e in #( 16922 e) eval $cacheid=no ;; 16923esac 16924fi 16925rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16926 conftest$ac_exeext conftest.$ac_ext ;; 16927esac 16928fi 16929 16930 16931 CFLAGS="$xorg_testset_save_CFLAGS" 16932 16933 eval supported=\$$cacheid 16934 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16935printf "%s\n" "$supported" >&6; } 16936 if test "$supported" = "yes" ; then 16937 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self" 16938 found="yes" 16939 fi 16940 fi 16941 16942 16943 16944 16945 16946 16947 16948 16949 16950 16951 16952 16953 16954 16955 16956xorg_testset_save_CFLAGS="$CFLAGS" 16957 16958if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16959 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16960 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16961printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16962if test ${xorg_cv_cc_flag_unknown_warning_option+y} 16963then : 16964 printf %s "(cached) " >&6 16965else case e in #( 16966 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16967/* end confdefs.h. */ 16968int i; 16969_ACEOF 16970if ac_fn_c_try_compile "$LINENO" 16971then : 16972 xorg_cv_cc_flag_unknown_warning_option=yes 16973else case e in #( 16974 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 16975esac 16976fi 16977rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 16978esac 16979fi 16980{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16981printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16982 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16983 CFLAGS="$xorg_testset_save_CFLAGS" 16984fi 16985 16986if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16987 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16988 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16989 fi 16990 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16991 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16992printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16993if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 16994then : 16995 printf %s "(cached) " >&6 16996else case e in #( 16997 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16998/* end confdefs.h. */ 16999int i; 17000_ACEOF 17001if ac_fn_c_try_compile "$LINENO" 17002then : 17003 xorg_cv_cc_flag_unused_command_line_argument=yes 17004else case e in #( 17005 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 17006esac 17007fi 17008rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 17009esac 17010fi 17011{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17012printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17013 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17014 CFLAGS="$xorg_testset_save_CFLAGS" 17015fi 17016 17017found="no" 17018 17019 if test $found = "no" ; then 17020 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17021 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17022 fi 17023 17024 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17025 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17026 fi 17027 17028 CFLAGS="$CFLAGS -Werror=main" 17029 17030 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5 17031printf %s "checking if $CC supports -Werror=main... " >&6; } 17032 cacheid=xorg_cv_cc_flag__Werror_main 17033 if eval test \${$cacheid+y} 17034then : 17035 printf %s "(cached) " >&6 17036else case e in #( 17037 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17038/* end confdefs.h. */ 17039int i; 17040int 17041main (void) 17042{ 17043 17044 ; 17045 return 0; 17046} 17047_ACEOF 17048if ac_fn_c_try_link "$LINENO" 17049then : 17050 eval $cacheid=yes 17051else case e in #( 17052 e) eval $cacheid=no ;; 17053esac 17054fi 17055rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17056 conftest$ac_exeext conftest.$ac_ext ;; 17057esac 17058fi 17059 17060 17061 CFLAGS="$xorg_testset_save_CFLAGS" 17062 17063 eval supported=\$$cacheid 17064 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17065printf "%s\n" "$supported" >&6; } 17066 if test "$supported" = "yes" ; then 17067 BASE_CFLAGS="$BASE_CFLAGS -Werror=main" 17068 found="yes" 17069 fi 17070 fi 17071 17072 17073 17074 17075 17076 17077 17078 17079 17080 17081 17082 17083 17084 17085 17086xorg_testset_save_CFLAGS="$CFLAGS" 17087 17088if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17089 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17090 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17091printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17092if test ${xorg_cv_cc_flag_unknown_warning_option+y} 17093then : 17094 printf %s "(cached) " >&6 17095else case e in #( 17096 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17097/* end confdefs.h. */ 17098int i; 17099_ACEOF 17100if ac_fn_c_try_compile "$LINENO" 17101then : 17102 xorg_cv_cc_flag_unknown_warning_option=yes 17103else case e in #( 17104 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 17105esac 17106fi 17107rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 17108esac 17109fi 17110{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17111printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17112 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17113 CFLAGS="$xorg_testset_save_CFLAGS" 17114fi 17115 17116if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17117 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17118 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17119 fi 17120 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17121 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17122printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17123if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 17124then : 17125 printf %s "(cached) " >&6 17126else case e in #( 17127 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17128/* end confdefs.h. */ 17129int i; 17130_ACEOF 17131if ac_fn_c_try_compile "$LINENO" 17132then : 17133 xorg_cv_cc_flag_unused_command_line_argument=yes 17134else case e in #( 17135 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 17136esac 17137fi 17138rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 17139esac 17140fi 17141{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17142printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17143 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17144 CFLAGS="$xorg_testset_save_CFLAGS" 17145fi 17146 17147found="no" 17148 17149 if test $found = "no" ; then 17150 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17151 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17152 fi 17153 17154 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17155 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17156 fi 17157 17158 CFLAGS="$CFLAGS -Werror=missing-braces" 17159 17160 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5 17161printf %s "checking if $CC supports -Werror=missing-braces... " >&6; } 17162 cacheid=xorg_cv_cc_flag__Werror_missing_braces 17163 if eval test \${$cacheid+y} 17164then : 17165 printf %s "(cached) " >&6 17166else case e in #( 17167 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17168/* end confdefs.h. */ 17169int i; 17170int 17171main (void) 17172{ 17173 17174 ; 17175 return 0; 17176} 17177_ACEOF 17178if ac_fn_c_try_link "$LINENO" 17179then : 17180 eval $cacheid=yes 17181else case e in #( 17182 e) eval $cacheid=no ;; 17183esac 17184fi 17185rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17186 conftest$ac_exeext conftest.$ac_ext ;; 17187esac 17188fi 17189 17190 17191 CFLAGS="$xorg_testset_save_CFLAGS" 17192 17193 eval supported=\$$cacheid 17194 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17195printf "%s\n" "$supported" >&6; } 17196 if test "$supported" = "yes" ; then 17197 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces" 17198 found="yes" 17199 fi 17200 fi 17201 17202 17203 17204 17205 17206 17207 17208 17209 17210 17211 17212 17213 17214 17215 17216xorg_testset_save_CFLAGS="$CFLAGS" 17217 17218if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17219 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17220 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17221printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17222if test ${xorg_cv_cc_flag_unknown_warning_option+y} 17223then : 17224 printf %s "(cached) " >&6 17225else case e in #( 17226 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17227/* end confdefs.h. */ 17228int i; 17229_ACEOF 17230if ac_fn_c_try_compile "$LINENO" 17231then : 17232 xorg_cv_cc_flag_unknown_warning_option=yes 17233else case e in #( 17234 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 17235esac 17236fi 17237rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 17238esac 17239fi 17240{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17241printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17242 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17243 CFLAGS="$xorg_testset_save_CFLAGS" 17244fi 17245 17246if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17247 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17248 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17249 fi 17250 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17251 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17252printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17253if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 17254then : 17255 printf %s "(cached) " >&6 17256else case e in #( 17257 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17258/* end confdefs.h. */ 17259int i; 17260_ACEOF 17261if ac_fn_c_try_compile "$LINENO" 17262then : 17263 xorg_cv_cc_flag_unused_command_line_argument=yes 17264else case e in #( 17265 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 17266esac 17267fi 17268rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 17269esac 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 -Werror=sequence-point" 17289 17290 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5 17291printf %s "checking if $CC supports -Werror=sequence-point... " >&6; } 17292 cacheid=xorg_cv_cc_flag__Werror_sequence_point 17293 if eval test \${$cacheid+y} 17294then : 17295 printf %s "(cached) " >&6 17296else case e in #( 17297 e) 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 case e in #( 17312 e) eval $cacheid=no ;; 17313esac 17314fi 17315rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17316 conftest$ac_exeext conftest.$ac_ext ;; 17317esac 17318fi 17319 17320 17321 CFLAGS="$xorg_testset_save_CFLAGS" 17322 17323 eval supported=\$$cacheid 17324 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17325printf "%s\n" "$supported" >&6; } 17326 if test "$supported" = "yes" ; then 17327 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point" 17328 found="yes" 17329 fi 17330 fi 17331 17332 17333 17334 17335 17336 17337 17338 17339 17340 17341 17342 17343 17344 17345 17346xorg_testset_save_CFLAGS="$CFLAGS" 17347 17348if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17349 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17350 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17351printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17352if test ${xorg_cv_cc_flag_unknown_warning_option+y} 17353then : 17354 printf %s "(cached) " >&6 17355else case e in #( 17356 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17357/* end confdefs.h. */ 17358int i; 17359_ACEOF 17360if ac_fn_c_try_compile "$LINENO" 17361then : 17362 xorg_cv_cc_flag_unknown_warning_option=yes 17363else case e in #( 17364 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 17365esac 17366fi 17367rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 17368esac 17369fi 17370{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17371printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17372 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17373 CFLAGS="$xorg_testset_save_CFLAGS" 17374fi 17375 17376if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17377 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17378 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17379 fi 17380 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17381 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17382printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17383if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 17384then : 17385 printf %s "(cached) " >&6 17386else case e in #( 17387 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17388/* end confdefs.h. */ 17389int i; 17390_ACEOF 17391if ac_fn_c_try_compile "$LINENO" 17392then : 17393 xorg_cv_cc_flag_unused_command_line_argument=yes 17394else case e in #( 17395 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 17396esac 17397fi 17398rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 17399esac 17400fi 17401{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17402printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17403 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17404 CFLAGS="$xorg_testset_save_CFLAGS" 17405fi 17406 17407found="no" 17408 17409 if test $found = "no" ; then 17410 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17411 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17412 fi 17413 17414 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17415 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17416 fi 17417 17418 CFLAGS="$CFLAGS -Werror=return-type" 17419 17420 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5 17421printf %s "checking if $CC supports -Werror=return-type... " >&6; } 17422 cacheid=xorg_cv_cc_flag__Werror_return_type 17423 if eval test \${$cacheid+y} 17424then : 17425 printf %s "(cached) " >&6 17426else case e in #( 17427 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17428/* end confdefs.h. */ 17429int i; 17430int 17431main (void) 17432{ 17433 17434 ; 17435 return 0; 17436} 17437_ACEOF 17438if ac_fn_c_try_link "$LINENO" 17439then : 17440 eval $cacheid=yes 17441else case e in #( 17442 e) eval $cacheid=no ;; 17443esac 17444fi 17445rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17446 conftest$ac_exeext conftest.$ac_ext ;; 17447esac 17448fi 17449 17450 17451 CFLAGS="$xorg_testset_save_CFLAGS" 17452 17453 eval supported=\$$cacheid 17454 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17455printf "%s\n" "$supported" >&6; } 17456 if test "$supported" = "yes" ; then 17457 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type" 17458 found="yes" 17459 fi 17460 fi 17461 17462 if test $found = "no" ; then 17463 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17464 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17465 fi 17466 17467 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17468 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17469 fi 17470 17471 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 17472 17473 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5 17474printf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; } 17475 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT 17476 if eval test \${$cacheid+y} 17477then : 17478 printf %s "(cached) " >&6 17479else case e in #( 17480 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17481/* end confdefs.h. */ 17482int i; 17483int 17484main (void) 17485{ 17486 17487 ; 17488 return 0; 17489} 17490_ACEOF 17491if ac_fn_c_try_link "$LINENO" 17492then : 17493 eval $cacheid=yes 17494else case e in #( 17495 e) eval $cacheid=no ;; 17496esac 17497fi 17498rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17499 conftest$ac_exeext conftest.$ac_ext ;; 17500esac 17501fi 17502 17503 17504 CFLAGS="$xorg_testset_save_CFLAGS" 17505 17506 eval supported=\$$cacheid 17507 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17508printf "%s\n" "$supported" >&6; } 17509 if test "$supported" = "yes" ; then 17510 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 17511 found="yes" 17512 fi 17513 fi 17514 17515 17516 17517 17518 17519 17520 17521 17522 17523 17524 17525 17526 17527 17528 17529xorg_testset_save_CFLAGS="$CFLAGS" 17530 17531if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17532 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17533 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17534printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17535if test ${xorg_cv_cc_flag_unknown_warning_option+y} 17536then : 17537 printf %s "(cached) " >&6 17538else case e in #( 17539 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17540/* end confdefs.h. */ 17541int i; 17542_ACEOF 17543if ac_fn_c_try_compile "$LINENO" 17544then : 17545 xorg_cv_cc_flag_unknown_warning_option=yes 17546else case e in #( 17547 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 17548esac 17549fi 17550rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 17551esac 17552fi 17553{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17554printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17555 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17556 CFLAGS="$xorg_testset_save_CFLAGS" 17557fi 17558 17559if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17560 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17561 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17562 fi 17563 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17564 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17565printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17566if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 17567then : 17568 printf %s "(cached) " >&6 17569else case e in #( 17570 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17571/* end confdefs.h. */ 17572int i; 17573_ACEOF 17574if ac_fn_c_try_compile "$LINENO" 17575then : 17576 xorg_cv_cc_flag_unused_command_line_argument=yes 17577else case e in #( 17578 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 17579esac 17580fi 17581rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 17582esac 17583fi 17584{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17585printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17586 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17587 CFLAGS="$xorg_testset_save_CFLAGS" 17588fi 17589 17590found="no" 17591 17592 if test $found = "no" ; then 17593 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17594 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17595 fi 17596 17597 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17598 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17599 fi 17600 17601 CFLAGS="$CFLAGS -Werror=trigraphs" 17602 17603 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5 17604printf %s "checking if $CC supports -Werror=trigraphs... " >&6; } 17605 cacheid=xorg_cv_cc_flag__Werror_trigraphs 17606 if eval test \${$cacheid+y} 17607then : 17608 printf %s "(cached) " >&6 17609else case e in #( 17610 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17611/* end confdefs.h. */ 17612int i; 17613int 17614main (void) 17615{ 17616 17617 ; 17618 return 0; 17619} 17620_ACEOF 17621if ac_fn_c_try_link "$LINENO" 17622then : 17623 eval $cacheid=yes 17624else case e in #( 17625 e) eval $cacheid=no ;; 17626esac 17627fi 17628rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17629 conftest$ac_exeext conftest.$ac_ext ;; 17630esac 17631fi 17632 17633 17634 CFLAGS="$xorg_testset_save_CFLAGS" 17635 17636 eval supported=\$$cacheid 17637 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17638printf "%s\n" "$supported" >&6; } 17639 if test "$supported" = "yes" ; then 17640 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs" 17641 found="yes" 17642 fi 17643 fi 17644 17645 17646 17647 17648 17649 17650 17651 17652 17653 17654 17655 17656 17657 17658 17659xorg_testset_save_CFLAGS="$CFLAGS" 17660 17661if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17662 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17663 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17664printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17665if test ${xorg_cv_cc_flag_unknown_warning_option+y} 17666then : 17667 printf %s "(cached) " >&6 17668else case e in #( 17669 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17670/* end confdefs.h. */ 17671int i; 17672_ACEOF 17673if ac_fn_c_try_compile "$LINENO" 17674then : 17675 xorg_cv_cc_flag_unknown_warning_option=yes 17676else case e in #( 17677 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 17678esac 17679fi 17680rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 17681esac 17682fi 17683{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17684printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17685 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17686 CFLAGS="$xorg_testset_save_CFLAGS" 17687fi 17688 17689if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17690 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17691 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17692 fi 17693 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17694 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17695printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17696if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 17697then : 17698 printf %s "(cached) " >&6 17699else case e in #( 17700 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17701/* end confdefs.h. */ 17702int i; 17703_ACEOF 17704if ac_fn_c_try_compile "$LINENO" 17705then : 17706 xorg_cv_cc_flag_unused_command_line_argument=yes 17707else case e in #( 17708 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 17709esac 17710fi 17711rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 17712esac 17713fi 17714{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17715printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17716 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17717 CFLAGS="$xorg_testset_save_CFLAGS" 17718fi 17719 17720found="no" 17721 17722 if test $found = "no" ; then 17723 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17724 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17725 fi 17726 17727 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17728 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17729 fi 17730 17731 CFLAGS="$CFLAGS -Werror=array-bounds" 17732 17733 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5 17734printf %s "checking if $CC supports -Werror=array-bounds... " >&6; } 17735 cacheid=xorg_cv_cc_flag__Werror_array_bounds 17736 if eval test \${$cacheid+y} 17737then : 17738 printf %s "(cached) " >&6 17739else case e in #( 17740 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17741/* end confdefs.h. */ 17742int i; 17743int 17744main (void) 17745{ 17746 17747 ; 17748 return 0; 17749} 17750_ACEOF 17751if ac_fn_c_try_link "$LINENO" 17752then : 17753 eval $cacheid=yes 17754else case e in #( 17755 e) eval $cacheid=no ;; 17756esac 17757fi 17758rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17759 conftest$ac_exeext conftest.$ac_ext ;; 17760esac 17761fi 17762 17763 17764 CFLAGS="$xorg_testset_save_CFLAGS" 17765 17766 eval supported=\$$cacheid 17767 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17768printf "%s\n" "$supported" >&6; } 17769 if test "$supported" = "yes" ; then 17770 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds" 17771 found="yes" 17772 fi 17773 fi 17774 17775 17776 17777 17778 17779 17780 17781 17782 17783 17784 17785 17786 17787 17788 17789xorg_testset_save_CFLAGS="$CFLAGS" 17790 17791if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17792 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17793 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17794printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17795if test ${xorg_cv_cc_flag_unknown_warning_option+y} 17796then : 17797 printf %s "(cached) " >&6 17798else case e in #( 17799 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17800/* end confdefs.h. */ 17801int i; 17802_ACEOF 17803if ac_fn_c_try_compile "$LINENO" 17804then : 17805 xorg_cv_cc_flag_unknown_warning_option=yes 17806else case e in #( 17807 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 17808esac 17809fi 17810rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 17811esac 17812fi 17813{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17814printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17815 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17816 CFLAGS="$xorg_testset_save_CFLAGS" 17817fi 17818 17819if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17820 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17821 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17822 fi 17823 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17824 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17825printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17826if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 17827then : 17828 printf %s "(cached) " >&6 17829else case e in #( 17830 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17831/* end confdefs.h. */ 17832int i; 17833_ACEOF 17834if ac_fn_c_try_compile "$LINENO" 17835then : 17836 xorg_cv_cc_flag_unused_command_line_argument=yes 17837else case e in #( 17838 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 17839esac 17840fi 17841rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 17842esac 17843fi 17844{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17845printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17846 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17847 CFLAGS="$xorg_testset_save_CFLAGS" 17848fi 17849 17850found="no" 17851 17852 if test $found = "no" ; then 17853 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17854 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17855 fi 17856 17857 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17858 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17859 fi 17860 17861 CFLAGS="$CFLAGS -Werror=write-strings" 17862 17863 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5 17864printf %s "checking if $CC supports -Werror=write-strings... " >&6; } 17865 cacheid=xorg_cv_cc_flag__Werror_write_strings 17866 if eval test \${$cacheid+y} 17867then : 17868 printf %s "(cached) " >&6 17869else case e in #( 17870 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17871/* end confdefs.h. */ 17872int i; 17873int 17874main (void) 17875{ 17876 17877 ; 17878 return 0; 17879} 17880_ACEOF 17881if ac_fn_c_try_link "$LINENO" 17882then : 17883 eval $cacheid=yes 17884else case e in #( 17885 e) eval $cacheid=no ;; 17886esac 17887fi 17888rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17889 conftest$ac_exeext conftest.$ac_ext ;; 17890esac 17891fi 17892 17893 17894 CFLAGS="$xorg_testset_save_CFLAGS" 17895 17896 eval supported=\$$cacheid 17897 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17898printf "%s\n" "$supported" >&6; } 17899 if test "$supported" = "yes" ; then 17900 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings" 17901 found="yes" 17902 fi 17903 fi 17904 17905 17906 17907 17908 17909 17910 17911 17912 17913 17914 17915 17916 17917 17918 17919xorg_testset_save_CFLAGS="$CFLAGS" 17920 17921if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17922 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17923 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17924printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17925if test ${xorg_cv_cc_flag_unknown_warning_option+y} 17926then : 17927 printf %s "(cached) " >&6 17928else case e in #( 17929 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17930/* end confdefs.h. */ 17931int i; 17932_ACEOF 17933if ac_fn_c_try_compile "$LINENO" 17934then : 17935 xorg_cv_cc_flag_unknown_warning_option=yes 17936else case e in #( 17937 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 17938esac 17939fi 17940rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 17941esac 17942fi 17943{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17944printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17945 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17946 CFLAGS="$xorg_testset_save_CFLAGS" 17947fi 17948 17949if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17950 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17951 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17952 fi 17953 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17954 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17955printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17956if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 17957then : 17958 printf %s "(cached) " >&6 17959else case e in #( 17960 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17961/* end confdefs.h. */ 17962int i; 17963_ACEOF 17964if ac_fn_c_try_compile "$LINENO" 17965then : 17966 xorg_cv_cc_flag_unused_command_line_argument=yes 17967else case e in #( 17968 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 17969esac 17970fi 17971rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 17972esac 17973fi 17974{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17975printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17976 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17977 CFLAGS="$xorg_testset_save_CFLAGS" 17978fi 17979 17980found="no" 17981 17982 if test $found = "no" ; then 17983 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17984 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17985 fi 17986 17987 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17988 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17989 fi 17990 17991 CFLAGS="$CFLAGS -Werror=address" 17992 17993 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5 17994printf %s "checking if $CC supports -Werror=address... " >&6; } 17995 cacheid=xorg_cv_cc_flag__Werror_address 17996 if eval test \${$cacheid+y} 17997then : 17998 printf %s "(cached) " >&6 17999else case e in #( 18000 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18001/* end confdefs.h. */ 18002int i; 18003int 18004main (void) 18005{ 18006 18007 ; 18008 return 0; 18009} 18010_ACEOF 18011if ac_fn_c_try_link "$LINENO" 18012then : 18013 eval $cacheid=yes 18014else case e in #( 18015 e) eval $cacheid=no ;; 18016esac 18017fi 18018rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18019 conftest$ac_exeext conftest.$ac_ext ;; 18020esac 18021fi 18022 18023 18024 CFLAGS="$xorg_testset_save_CFLAGS" 18025 18026 eval supported=\$$cacheid 18027 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18028printf "%s\n" "$supported" >&6; } 18029 if test "$supported" = "yes" ; then 18030 BASE_CFLAGS="$BASE_CFLAGS -Werror=address" 18031 found="yes" 18032 fi 18033 fi 18034 18035 18036 18037 18038 18039 18040 18041 18042 18043 18044 18045 18046 18047 18048 18049xorg_testset_save_CFLAGS="$CFLAGS" 18050 18051if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18052 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18053 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18054printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18055if test ${xorg_cv_cc_flag_unknown_warning_option+y} 18056then : 18057 printf %s "(cached) " >&6 18058else case e in #( 18059 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18060/* end confdefs.h. */ 18061int i; 18062_ACEOF 18063if ac_fn_c_try_compile "$LINENO" 18064then : 18065 xorg_cv_cc_flag_unknown_warning_option=yes 18066else case e in #( 18067 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 18068esac 18069fi 18070rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 18071esac 18072fi 18073{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18074printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18075 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18076 CFLAGS="$xorg_testset_save_CFLAGS" 18077fi 18078 18079if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18080 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18081 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18082 fi 18083 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18084 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18085printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18086if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 18087then : 18088 printf %s "(cached) " >&6 18089else case e in #( 18090 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18091/* end confdefs.h. */ 18092int i; 18093_ACEOF 18094if ac_fn_c_try_compile "$LINENO" 18095then : 18096 xorg_cv_cc_flag_unused_command_line_argument=yes 18097else case e in #( 18098 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 18099esac 18100fi 18101rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 18102esac 18103fi 18104{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18105printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18106 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18107 CFLAGS="$xorg_testset_save_CFLAGS" 18108fi 18109 18110found="no" 18111 18112 if test $found = "no" ; then 18113 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18114 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18115 fi 18116 18117 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18118 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18119 fi 18120 18121 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast" 18122 18123 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5 18124printf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; } 18125 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast 18126 if eval test \${$cacheid+y} 18127then : 18128 printf %s "(cached) " >&6 18129else case e in #( 18130 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18131/* end confdefs.h. */ 18132int i; 18133int 18134main (void) 18135{ 18136 18137 ; 18138 return 0; 18139} 18140_ACEOF 18141if ac_fn_c_try_link "$LINENO" 18142then : 18143 eval $cacheid=yes 18144else case e in #( 18145 e) eval $cacheid=no ;; 18146esac 18147fi 18148rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18149 conftest$ac_exeext conftest.$ac_ext ;; 18150esac 18151fi 18152 18153 18154 CFLAGS="$xorg_testset_save_CFLAGS" 18155 18156 eval supported=\$$cacheid 18157 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18158printf "%s\n" "$supported" >&6; } 18159 if test "$supported" = "yes" ; then 18160 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast" 18161 found="yes" 18162 fi 18163 fi 18164 18165 if test $found = "no" ; then 18166 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18167 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18168 fi 18169 18170 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18171 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18172 fi 18173 18174 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 18175 18176 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5 18177printf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; } 18178 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION 18179 if eval test \${$cacheid+y} 18180then : 18181 printf %s "(cached) " >&6 18182else case e in #( 18183 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18184/* end confdefs.h. */ 18185int i; 18186int 18187main (void) 18188{ 18189 18190 ; 18191 return 0; 18192} 18193_ACEOF 18194if ac_fn_c_try_link "$LINENO" 18195then : 18196 eval $cacheid=yes 18197else case e in #( 18198 e) eval $cacheid=no ;; 18199esac 18200fi 18201rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18202 conftest$ac_exeext conftest.$ac_ext ;; 18203esac 18204fi 18205 18206 18207 CFLAGS="$xorg_testset_save_CFLAGS" 18208 18209 eval supported=\$$cacheid 18210 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18211printf "%s\n" "$supported" >&6; } 18212 if test "$supported" = "yes" ; then 18213 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 18214 found="yes" 18215 fi 18216 fi 18217 18218 18219 18220 18221 18222 18223 18224 18225 18226 18227 18228 18229 18230 18231 18232xorg_testset_save_CFLAGS="$CFLAGS" 18233 18234if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18235 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18236 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18237printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18238if test ${xorg_cv_cc_flag_unknown_warning_option+y} 18239then : 18240 printf %s "(cached) " >&6 18241else case e in #( 18242 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18243/* end confdefs.h. */ 18244int i; 18245_ACEOF 18246if ac_fn_c_try_compile "$LINENO" 18247then : 18248 xorg_cv_cc_flag_unknown_warning_option=yes 18249else case e in #( 18250 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 18251esac 18252fi 18253rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 18254esac 18255fi 18256{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18257printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18258 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18259 CFLAGS="$xorg_testset_save_CFLAGS" 18260fi 18261 18262if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18263 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18264 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18265 fi 18266 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18267 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18268printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18269if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 18270then : 18271 printf %s "(cached) " >&6 18272else case e in #( 18273 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18274/* end confdefs.h. */ 18275int i; 18276_ACEOF 18277if ac_fn_c_try_compile "$LINENO" 18278then : 18279 xorg_cv_cc_flag_unused_command_line_argument=yes 18280else case e in #( 18281 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 18282esac 18283fi 18284rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 18285esac 18286fi 18287{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18288printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18289 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18290 CFLAGS="$xorg_testset_save_CFLAGS" 18291fi 18292 18293found="no" 18294 18295 if test $found = "no" ; then 18296 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18297 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18298 fi 18299 18300 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18301 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18302 fi 18303 18304 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast" 18305 18306 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5 18307printf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; } 18308 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast 18309 if eval test \${$cacheid+y} 18310then : 18311 printf %s "(cached) " >&6 18312else case e in #( 18313 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18314/* end confdefs.h. */ 18315int i; 18316int 18317main (void) 18318{ 18319 18320 ; 18321 return 0; 18322} 18323_ACEOF 18324if ac_fn_c_try_link "$LINENO" 18325then : 18326 eval $cacheid=yes 18327else case e in #( 18328 e) eval $cacheid=no ;; 18329esac 18330fi 18331rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18332 conftest$ac_exeext conftest.$ac_ext ;; 18333esac 18334fi 18335 18336 18337 CFLAGS="$xorg_testset_save_CFLAGS" 18338 18339 eval supported=\$$cacheid 18340 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18341printf "%s\n" "$supported" >&6; } 18342 if test "$supported" = "yes" ; then 18343 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast" 18344 found="yes" 18345 fi 18346 fi 18347 18348 # Also -errwarn=E_BAD_PTR_INT_COMBINATION 18349else 18350{ 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 18351printf "%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;} 18352 18353 18354 18355 18356 18357 18358 18359 18360 18361 18362 18363 18364 18365xorg_testset_save_CFLAGS="$CFLAGS" 18366 18367if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18368 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18369 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18370printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18371if test ${xorg_cv_cc_flag_unknown_warning_option+y} 18372then : 18373 printf %s "(cached) " >&6 18374else case e in #( 18375 e) 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_unknown_warning_option=yes 18382else case e in #( 18383 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 18384esac 18385fi 18386rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 18387esac 18388fi 18389{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18390printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18391 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18392 CFLAGS="$xorg_testset_save_CFLAGS" 18393fi 18394 18395if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18396 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18397 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18398 fi 18399 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18400 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18401printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18402if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 18403then : 18404 printf %s "(cached) " >&6 18405else case e in #( 18406 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18407/* end confdefs.h. */ 18408int i; 18409_ACEOF 18410if ac_fn_c_try_compile "$LINENO" 18411then : 18412 xorg_cv_cc_flag_unused_command_line_argument=yes 18413else case e in #( 18414 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 18415esac 18416fi 18417rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 18418esac 18419fi 18420{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18421printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18422 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18423 CFLAGS="$xorg_testset_save_CFLAGS" 18424fi 18425 18426found="no" 18427 18428 if test $found = "no" ; then 18429 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18430 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18431 fi 18432 18433 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18434 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18435 fi 18436 18437 CFLAGS="$CFLAGS -Wimplicit" 18438 18439 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5 18440printf %s "checking if $CC supports -Wimplicit... " >&6; } 18441 cacheid=xorg_cv_cc_flag__Wimplicit 18442 if eval test \${$cacheid+y} 18443then : 18444 printf %s "(cached) " >&6 18445else case e in #( 18446 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18447/* end confdefs.h. */ 18448int i; 18449int 18450main (void) 18451{ 18452 18453 ; 18454 return 0; 18455} 18456_ACEOF 18457if ac_fn_c_try_link "$LINENO" 18458then : 18459 eval $cacheid=yes 18460else case e in #( 18461 e) eval $cacheid=no ;; 18462esac 18463fi 18464rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18465 conftest$ac_exeext conftest.$ac_ext ;; 18466esac 18467fi 18468 18469 18470 CFLAGS="$xorg_testset_save_CFLAGS" 18471 18472 eval supported=\$$cacheid 18473 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18474printf "%s\n" "$supported" >&6; } 18475 if test "$supported" = "yes" ; then 18476 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit" 18477 found="yes" 18478 fi 18479 fi 18480 18481 18482 18483 18484 18485 18486 18487 18488 18489 18490 18491 18492 18493 18494 18495xorg_testset_save_CFLAGS="$CFLAGS" 18496 18497if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18498 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18499 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18500printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18501if test ${xorg_cv_cc_flag_unknown_warning_option+y} 18502then : 18503 printf %s "(cached) " >&6 18504else case e in #( 18505 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18506/* end confdefs.h. */ 18507int i; 18508_ACEOF 18509if ac_fn_c_try_compile "$LINENO" 18510then : 18511 xorg_cv_cc_flag_unknown_warning_option=yes 18512else case e in #( 18513 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 18514esac 18515fi 18516rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 18517esac 18518fi 18519{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18520printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18521 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18522 CFLAGS="$xorg_testset_save_CFLAGS" 18523fi 18524 18525if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18526 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18527 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18528 fi 18529 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18530 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18531printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18532if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 18533then : 18534 printf %s "(cached) " >&6 18535else case e in #( 18536 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18537/* end confdefs.h. */ 18538int i; 18539_ACEOF 18540if ac_fn_c_try_compile "$LINENO" 18541then : 18542 xorg_cv_cc_flag_unused_command_line_argument=yes 18543else case e in #( 18544 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 18545esac 18546fi 18547rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 18548esac 18549fi 18550{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18551printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18552 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18553 CFLAGS="$xorg_testset_save_CFLAGS" 18554fi 18555 18556found="no" 18557 18558 if test $found = "no" ; then 18559 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18560 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18561 fi 18562 18563 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18564 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18565 fi 18566 18567 CFLAGS="$CFLAGS -Wnonnull" 18568 18569 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5 18570printf %s "checking if $CC supports -Wnonnull... " >&6; } 18571 cacheid=xorg_cv_cc_flag__Wnonnull 18572 if eval test \${$cacheid+y} 18573then : 18574 printf %s "(cached) " >&6 18575else case e in #( 18576 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18577/* end confdefs.h. */ 18578int i; 18579int 18580main (void) 18581{ 18582 18583 ; 18584 return 0; 18585} 18586_ACEOF 18587if ac_fn_c_try_link "$LINENO" 18588then : 18589 eval $cacheid=yes 18590else case e in #( 18591 e) eval $cacheid=no ;; 18592esac 18593fi 18594rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18595 conftest$ac_exeext conftest.$ac_ext ;; 18596esac 18597fi 18598 18599 18600 CFLAGS="$xorg_testset_save_CFLAGS" 18601 18602 eval supported=\$$cacheid 18603 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18604printf "%s\n" "$supported" >&6; } 18605 if test "$supported" = "yes" ; then 18606 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull" 18607 found="yes" 18608 fi 18609 fi 18610 18611 18612 18613 18614 18615 18616 18617 18618 18619 18620 18621 18622 18623 18624 18625xorg_testset_save_CFLAGS="$CFLAGS" 18626 18627if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18628 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18629 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18630printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18631if test ${xorg_cv_cc_flag_unknown_warning_option+y} 18632then : 18633 printf %s "(cached) " >&6 18634else case e in #( 18635 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18636/* end confdefs.h. */ 18637int i; 18638_ACEOF 18639if ac_fn_c_try_compile "$LINENO" 18640then : 18641 xorg_cv_cc_flag_unknown_warning_option=yes 18642else case e in #( 18643 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 18644esac 18645fi 18646rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 18647esac 18648fi 18649{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18650printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18651 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18652 CFLAGS="$xorg_testset_save_CFLAGS" 18653fi 18654 18655if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18656 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18657 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18658 fi 18659 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18660 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18661printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18662if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 18663then : 18664 printf %s "(cached) " >&6 18665else case e in #( 18666 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18667/* end confdefs.h. */ 18668int i; 18669_ACEOF 18670if ac_fn_c_try_compile "$LINENO" 18671then : 18672 xorg_cv_cc_flag_unused_command_line_argument=yes 18673else case e in #( 18674 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 18675esac 18676fi 18677rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 18678esac 18679fi 18680{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18681printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18682 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18683 CFLAGS="$xorg_testset_save_CFLAGS" 18684fi 18685 18686found="no" 18687 18688 if test $found = "no" ; then 18689 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18690 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18691 fi 18692 18693 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18694 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18695 fi 18696 18697 CFLAGS="$CFLAGS -Winit-self" 18698 18699 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5 18700printf %s "checking if $CC supports -Winit-self... " >&6; } 18701 cacheid=xorg_cv_cc_flag__Winit_self 18702 if eval test \${$cacheid+y} 18703then : 18704 printf %s "(cached) " >&6 18705else case e in #( 18706 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18707/* end confdefs.h. */ 18708int i; 18709int 18710main (void) 18711{ 18712 18713 ; 18714 return 0; 18715} 18716_ACEOF 18717if ac_fn_c_try_link "$LINENO" 18718then : 18719 eval $cacheid=yes 18720else case e in #( 18721 e) eval $cacheid=no ;; 18722esac 18723fi 18724rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18725 conftest$ac_exeext conftest.$ac_ext ;; 18726esac 18727fi 18728 18729 18730 CFLAGS="$xorg_testset_save_CFLAGS" 18731 18732 eval supported=\$$cacheid 18733 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18734printf "%s\n" "$supported" >&6; } 18735 if test "$supported" = "yes" ; then 18736 BASE_CFLAGS="$BASE_CFLAGS -Winit-self" 18737 found="yes" 18738 fi 18739 fi 18740 18741 18742 18743 18744 18745 18746 18747 18748 18749 18750 18751 18752 18753 18754 18755xorg_testset_save_CFLAGS="$CFLAGS" 18756 18757if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18758 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18759 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18760printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18761if test ${xorg_cv_cc_flag_unknown_warning_option+y} 18762then : 18763 printf %s "(cached) " >&6 18764else case e in #( 18765 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18766/* end confdefs.h. */ 18767int i; 18768_ACEOF 18769if ac_fn_c_try_compile "$LINENO" 18770then : 18771 xorg_cv_cc_flag_unknown_warning_option=yes 18772else case e in #( 18773 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 18774esac 18775fi 18776rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 18777esac 18778fi 18779{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18780printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18781 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18782 CFLAGS="$xorg_testset_save_CFLAGS" 18783fi 18784 18785if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18786 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18787 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18788 fi 18789 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18790 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18791printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18792if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 18793then : 18794 printf %s "(cached) " >&6 18795else case e in #( 18796 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18797/* end confdefs.h. */ 18798int i; 18799_ACEOF 18800if ac_fn_c_try_compile "$LINENO" 18801then : 18802 xorg_cv_cc_flag_unused_command_line_argument=yes 18803else case e in #( 18804 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 18805esac 18806fi 18807rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 18808esac 18809fi 18810{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18811printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18812 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18813 CFLAGS="$xorg_testset_save_CFLAGS" 18814fi 18815 18816found="no" 18817 18818 if test $found = "no" ; then 18819 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18820 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18821 fi 18822 18823 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18824 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18825 fi 18826 18827 CFLAGS="$CFLAGS -Wmain" 18828 18829 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5 18830printf %s "checking if $CC supports -Wmain... " >&6; } 18831 cacheid=xorg_cv_cc_flag__Wmain 18832 if eval test \${$cacheid+y} 18833then : 18834 printf %s "(cached) " >&6 18835else case e in #( 18836 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18837/* end confdefs.h. */ 18838int i; 18839int 18840main (void) 18841{ 18842 18843 ; 18844 return 0; 18845} 18846_ACEOF 18847if ac_fn_c_try_link "$LINENO" 18848then : 18849 eval $cacheid=yes 18850else case e in #( 18851 e) eval $cacheid=no ;; 18852esac 18853fi 18854rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18855 conftest$ac_exeext conftest.$ac_ext ;; 18856esac 18857fi 18858 18859 18860 CFLAGS="$xorg_testset_save_CFLAGS" 18861 18862 eval supported=\$$cacheid 18863 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18864printf "%s\n" "$supported" >&6; } 18865 if test "$supported" = "yes" ; then 18866 BASE_CFLAGS="$BASE_CFLAGS -Wmain" 18867 found="yes" 18868 fi 18869 fi 18870 18871 18872 18873 18874 18875 18876 18877 18878 18879 18880 18881 18882 18883 18884 18885xorg_testset_save_CFLAGS="$CFLAGS" 18886 18887if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18888 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18889 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18890printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18891if test ${xorg_cv_cc_flag_unknown_warning_option+y} 18892then : 18893 printf %s "(cached) " >&6 18894else case e in #( 18895 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18896/* end confdefs.h. */ 18897int i; 18898_ACEOF 18899if ac_fn_c_try_compile "$LINENO" 18900then : 18901 xorg_cv_cc_flag_unknown_warning_option=yes 18902else case e in #( 18903 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 18904esac 18905fi 18906rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 18907esac 18908fi 18909{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18910printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18911 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18912 CFLAGS="$xorg_testset_save_CFLAGS" 18913fi 18914 18915if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18916 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18917 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18918 fi 18919 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18920 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18921printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18922if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 18923then : 18924 printf %s "(cached) " >&6 18925else case e in #( 18926 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18927/* end confdefs.h. */ 18928int i; 18929_ACEOF 18930if ac_fn_c_try_compile "$LINENO" 18931then : 18932 xorg_cv_cc_flag_unused_command_line_argument=yes 18933else case e in #( 18934 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 18935esac 18936fi 18937rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 18938esac 18939fi 18940{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18941printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18942 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18943 CFLAGS="$xorg_testset_save_CFLAGS" 18944fi 18945 18946found="no" 18947 18948 if test $found = "no" ; then 18949 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18950 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18951 fi 18952 18953 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18954 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18955 fi 18956 18957 CFLAGS="$CFLAGS -Wmissing-braces" 18958 18959 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5 18960printf %s "checking if $CC supports -Wmissing-braces... " >&6; } 18961 cacheid=xorg_cv_cc_flag__Wmissing_braces 18962 if eval test \${$cacheid+y} 18963then : 18964 printf %s "(cached) " >&6 18965else case e in #( 18966 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18967/* end confdefs.h. */ 18968int i; 18969int 18970main (void) 18971{ 18972 18973 ; 18974 return 0; 18975} 18976_ACEOF 18977if ac_fn_c_try_link "$LINENO" 18978then : 18979 eval $cacheid=yes 18980else case e in #( 18981 e) eval $cacheid=no ;; 18982esac 18983fi 18984rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18985 conftest$ac_exeext conftest.$ac_ext ;; 18986esac 18987fi 18988 18989 18990 CFLAGS="$xorg_testset_save_CFLAGS" 18991 18992 eval supported=\$$cacheid 18993 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18994printf "%s\n" "$supported" >&6; } 18995 if test "$supported" = "yes" ; then 18996 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces" 18997 found="yes" 18998 fi 18999 fi 19000 19001 19002 19003 19004 19005 19006 19007 19008 19009 19010 19011 19012 19013 19014 19015xorg_testset_save_CFLAGS="$CFLAGS" 19016 19017if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 19018 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19019 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 19020printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 19021if test ${xorg_cv_cc_flag_unknown_warning_option+y} 19022then : 19023 printf %s "(cached) " >&6 19024else case e in #( 19025 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19026/* end confdefs.h. */ 19027int i; 19028_ACEOF 19029if ac_fn_c_try_compile "$LINENO" 19030then : 19031 xorg_cv_cc_flag_unknown_warning_option=yes 19032else case e in #( 19033 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 19034esac 19035fi 19036rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 19037esac 19038fi 19039{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 19040printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 19041 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 19042 CFLAGS="$xorg_testset_save_CFLAGS" 19043fi 19044 19045if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 19046 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19047 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19048 fi 19049 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19050 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 19051printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 19052if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 19053then : 19054 printf %s "(cached) " >&6 19055else case e in #( 19056 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19057/* end confdefs.h. */ 19058int i; 19059_ACEOF 19060if ac_fn_c_try_compile "$LINENO" 19061then : 19062 xorg_cv_cc_flag_unused_command_line_argument=yes 19063else case e in #( 19064 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 19065esac 19066fi 19067rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 19068esac 19069fi 19070{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 19071printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 19072 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 19073 CFLAGS="$xorg_testset_save_CFLAGS" 19074fi 19075 19076found="no" 19077 19078 if test $found = "no" ; then 19079 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19080 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19081 fi 19082 19083 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 19084 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19085 fi 19086 19087 CFLAGS="$CFLAGS -Wsequence-point" 19088 19089 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5 19090printf %s "checking if $CC supports -Wsequence-point... " >&6; } 19091 cacheid=xorg_cv_cc_flag__Wsequence_point 19092 if eval test \${$cacheid+y} 19093then : 19094 printf %s "(cached) " >&6 19095else case e in #( 19096 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19097/* end confdefs.h. */ 19098int i; 19099int 19100main (void) 19101{ 19102 19103 ; 19104 return 0; 19105} 19106_ACEOF 19107if ac_fn_c_try_link "$LINENO" 19108then : 19109 eval $cacheid=yes 19110else case e in #( 19111 e) eval $cacheid=no ;; 19112esac 19113fi 19114rm -f core conftest.err conftest.$ac_objext conftest.beam \ 19115 conftest$ac_exeext conftest.$ac_ext ;; 19116esac 19117fi 19118 19119 19120 CFLAGS="$xorg_testset_save_CFLAGS" 19121 19122 eval supported=\$$cacheid 19123 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 19124printf "%s\n" "$supported" >&6; } 19125 if test "$supported" = "yes" ; then 19126 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point" 19127 found="yes" 19128 fi 19129 fi 19130 19131 19132 19133 19134 19135 19136 19137 19138 19139 19140 19141 19142 19143 19144 19145xorg_testset_save_CFLAGS="$CFLAGS" 19146 19147if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 19148 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19149 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 19150printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 19151if test ${xorg_cv_cc_flag_unknown_warning_option+y} 19152then : 19153 printf %s "(cached) " >&6 19154else case e in #( 19155 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19156/* end confdefs.h. */ 19157int i; 19158_ACEOF 19159if ac_fn_c_try_compile "$LINENO" 19160then : 19161 xorg_cv_cc_flag_unknown_warning_option=yes 19162else case e in #( 19163 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 19164esac 19165fi 19166rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 19167esac 19168fi 19169{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 19170printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 19171 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 19172 CFLAGS="$xorg_testset_save_CFLAGS" 19173fi 19174 19175if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 19176 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19177 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19178 fi 19179 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19180 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 19181printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 19182if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 19183then : 19184 printf %s "(cached) " >&6 19185else case e in #( 19186 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19187/* end confdefs.h. */ 19188int i; 19189_ACEOF 19190if ac_fn_c_try_compile "$LINENO" 19191then : 19192 xorg_cv_cc_flag_unused_command_line_argument=yes 19193else case e in #( 19194 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 19195esac 19196fi 19197rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 19198esac 19199fi 19200{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 19201printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 19202 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 19203 CFLAGS="$xorg_testset_save_CFLAGS" 19204fi 19205 19206found="no" 19207 19208 if test $found = "no" ; then 19209 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19210 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19211 fi 19212 19213 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 19214 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19215 fi 19216 19217 CFLAGS="$CFLAGS -Wreturn-type" 19218 19219 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5 19220printf %s "checking if $CC supports -Wreturn-type... " >&6; } 19221 cacheid=xorg_cv_cc_flag__Wreturn_type 19222 if eval test \${$cacheid+y} 19223then : 19224 printf %s "(cached) " >&6 19225else case e in #( 19226 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19227/* end confdefs.h. */ 19228int i; 19229int 19230main (void) 19231{ 19232 19233 ; 19234 return 0; 19235} 19236_ACEOF 19237if ac_fn_c_try_link "$LINENO" 19238then : 19239 eval $cacheid=yes 19240else case e in #( 19241 e) eval $cacheid=no ;; 19242esac 19243fi 19244rm -f core conftest.err conftest.$ac_objext conftest.beam \ 19245 conftest$ac_exeext conftest.$ac_ext ;; 19246esac 19247fi 19248 19249 19250 CFLAGS="$xorg_testset_save_CFLAGS" 19251 19252 eval supported=\$$cacheid 19253 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 19254printf "%s\n" "$supported" >&6; } 19255 if test "$supported" = "yes" ; then 19256 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type" 19257 found="yes" 19258 fi 19259 fi 19260 19261 19262 19263 19264 19265 19266 19267 19268 19269 19270 19271 19272 19273 19274 19275xorg_testset_save_CFLAGS="$CFLAGS" 19276 19277if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 19278 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19279 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 19280printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 19281if test ${xorg_cv_cc_flag_unknown_warning_option+y} 19282then : 19283 printf %s "(cached) " >&6 19284else case e in #( 19285 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19286/* end confdefs.h. */ 19287int i; 19288_ACEOF 19289if ac_fn_c_try_compile "$LINENO" 19290then : 19291 xorg_cv_cc_flag_unknown_warning_option=yes 19292else case e in #( 19293 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 19294esac 19295fi 19296rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 19297esac 19298fi 19299{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 19300printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 19301 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 19302 CFLAGS="$xorg_testset_save_CFLAGS" 19303fi 19304 19305if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 19306 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19307 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19308 fi 19309 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19310 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 19311printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 19312if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 19313then : 19314 printf %s "(cached) " >&6 19315else case e in #( 19316 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19317/* end confdefs.h. */ 19318int i; 19319_ACEOF 19320if ac_fn_c_try_compile "$LINENO" 19321then : 19322 xorg_cv_cc_flag_unused_command_line_argument=yes 19323else case e in #( 19324 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 19325esac 19326fi 19327rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 19328esac 19329fi 19330{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 19331printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 19332 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 19333 CFLAGS="$xorg_testset_save_CFLAGS" 19334fi 19335 19336found="no" 19337 19338 if test $found = "no" ; then 19339 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19340 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19341 fi 19342 19343 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 19344 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19345 fi 19346 19347 CFLAGS="$CFLAGS -Wtrigraphs" 19348 19349 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5 19350printf %s "checking if $CC supports -Wtrigraphs... " >&6; } 19351 cacheid=xorg_cv_cc_flag__Wtrigraphs 19352 if eval test \${$cacheid+y} 19353then : 19354 printf %s "(cached) " >&6 19355else case e in #( 19356 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19357/* end confdefs.h. */ 19358int i; 19359int 19360main (void) 19361{ 19362 19363 ; 19364 return 0; 19365} 19366_ACEOF 19367if ac_fn_c_try_link "$LINENO" 19368then : 19369 eval $cacheid=yes 19370else case e in #( 19371 e) eval $cacheid=no ;; 19372esac 19373fi 19374rm -f core conftest.err conftest.$ac_objext conftest.beam \ 19375 conftest$ac_exeext conftest.$ac_ext ;; 19376esac 19377fi 19378 19379 19380 CFLAGS="$xorg_testset_save_CFLAGS" 19381 19382 eval supported=\$$cacheid 19383 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 19384printf "%s\n" "$supported" >&6; } 19385 if test "$supported" = "yes" ; then 19386 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs" 19387 found="yes" 19388 fi 19389 fi 19390 19391 19392 19393 19394 19395 19396 19397 19398 19399 19400 19401 19402 19403 19404 19405xorg_testset_save_CFLAGS="$CFLAGS" 19406 19407if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 19408 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19409 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 19410printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 19411if test ${xorg_cv_cc_flag_unknown_warning_option+y} 19412then : 19413 printf %s "(cached) " >&6 19414else case e in #( 19415 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19416/* end confdefs.h. */ 19417int i; 19418_ACEOF 19419if ac_fn_c_try_compile "$LINENO" 19420then : 19421 xorg_cv_cc_flag_unknown_warning_option=yes 19422else case e in #( 19423 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 19424esac 19425fi 19426rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 19427esac 19428fi 19429{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 19430printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 19431 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 19432 CFLAGS="$xorg_testset_save_CFLAGS" 19433fi 19434 19435if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 19436 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19437 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19438 fi 19439 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19440 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 19441printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 19442if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 19443then : 19444 printf %s "(cached) " >&6 19445else case e in #( 19446 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19447/* end confdefs.h. */ 19448int i; 19449_ACEOF 19450if ac_fn_c_try_compile "$LINENO" 19451then : 19452 xorg_cv_cc_flag_unused_command_line_argument=yes 19453else case e in #( 19454 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 19455esac 19456fi 19457rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 19458esac 19459fi 19460{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 19461printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 19462 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 19463 CFLAGS="$xorg_testset_save_CFLAGS" 19464fi 19465 19466found="no" 19467 19468 if test $found = "no" ; then 19469 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19470 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19471 fi 19472 19473 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 19474 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19475 fi 19476 19477 CFLAGS="$CFLAGS -Warray-bounds" 19478 19479 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5 19480printf %s "checking if $CC supports -Warray-bounds... " >&6; } 19481 cacheid=xorg_cv_cc_flag__Warray_bounds 19482 if eval test \${$cacheid+y} 19483then : 19484 printf %s "(cached) " >&6 19485else case e in #( 19486 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19487/* end confdefs.h. */ 19488int i; 19489int 19490main (void) 19491{ 19492 19493 ; 19494 return 0; 19495} 19496_ACEOF 19497if ac_fn_c_try_link "$LINENO" 19498then : 19499 eval $cacheid=yes 19500else case e in #( 19501 e) eval $cacheid=no ;; 19502esac 19503fi 19504rm -f core conftest.err conftest.$ac_objext conftest.beam \ 19505 conftest$ac_exeext conftest.$ac_ext ;; 19506esac 19507fi 19508 19509 19510 CFLAGS="$xorg_testset_save_CFLAGS" 19511 19512 eval supported=\$$cacheid 19513 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 19514printf "%s\n" "$supported" >&6; } 19515 if test "$supported" = "yes" ; then 19516 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds" 19517 found="yes" 19518 fi 19519 fi 19520 19521 19522 19523 19524 19525 19526 19527 19528 19529 19530 19531 19532 19533 19534 19535xorg_testset_save_CFLAGS="$CFLAGS" 19536 19537if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 19538 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19539 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 19540printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 19541if test ${xorg_cv_cc_flag_unknown_warning_option+y} 19542then : 19543 printf %s "(cached) " >&6 19544else case e in #( 19545 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19546/* end confdefs.h. */ 19547int i; 19548_ACEOF 19549if ac_fn_c_try_compile "$LINENO" 19550then : 19551 xorg_cv_cc_flag_unknown_warning_option=yes 19552else case e in #( 19553 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 19554esac 19555fi 19556rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 19557esac 19558fi 19559{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 19560printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 19561 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 19562 CFLAGS="$xorg_testset_save_CFLAGS" 19563fi 19564 19565if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 19566 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19567 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19568 fi 19569 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19570 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 19571printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 19572if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 19573then : 19574 printf %s "(cached) " >&6 19575else case e in #( 19576 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19577/* end confdefs.h. */ 19578int i; 19579_ACEOF 19580if ac_fn_c_try_compile "$LINENO" 19581then : 19582 xorg_cv_cc_flag_unused_command_line_argument=yes 19583else case e in #( 19584 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 19585esac 19586fi 19587rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 19588esac 19589fi 19590{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 19591printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 19592 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 19593 CFLAGS="$xorg_testset_save_CFLAGS" 19594fi 19595 19596found="no" 19597 19598 if test $found = "no" ; then 19599 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19600 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19601 fi 19602 19603 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 19604 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19605 fi 19606 19607 CFLAGS="$CFLAGS -Wwrite-strings" 19608 19609 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5 19610printf %s "checking if $CC supports -Wwrite-strings... " >&6; } 19611 cacheid=xorg_cv_cc_flag__Wwrite_strings 19612 if eval test \${$cacheid+y} 19613then : 19614 printf %s "(cached) " >&6 19615else case e in #( 19616 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19617/* end confdefs.h. */ 19618int i; 19619int 19620main (void) 19621{ 19622 19623 ; 19624 return 0; 19625} 19626_ACEOF 19627if ac_fn_c_try_link "$LINENO" 19628then : 19629 eval $cacheid=yes 19630else case e in #( 19631 e) eval $cacheid=no ;; 19632esac 19633fi 19634rm -f core conftest.err conftest.$ac_objext conftest.beam \ 19635 conftest$ac_exeext conftest.$ac_ext ;; 19636esac 19637fi 19638 19639 19640 CFLAGS="$xorg_testset_save_CFLAGS" 19641 19642 eval supported=\$$cacheid 19643 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 19644printf "%s\n" "$supported" >&6; } 19645 if test "$supported" = "yes" ; then 19646 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings" 19647 found="yes" 19648 fi 19649 fi 19650 19651 19652 19653 19654 19655 19656 19657 19658 19659 19660 19661 19662 19663 19664 19665xorg_testset_save_CFLAGS="$CFLAGS" 19666 19667if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 19668 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19669 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 19670printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 19671if test ${xorg_cv_cc_flag_unknown_warning_option+y} 19672then : 19673 printf %s "(cached) " >&6 19674else case e in #( 19675 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19676/* end confdefs.h. */ 19677int i; 19678_ACEOF 19679if ac_fn_c_try_compile "$LINENO" 19680then : 19681 xorg_cv_cc_flag_unknown_warning_option=yes 19682else case e in #( 19683 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 19684esac 19685fi 19686rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 19687esac 19688fi 19689{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 19690printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 19691 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 19692 CFLAGS="$xorg_testset_save_CFLAGS" 19693fi 19694 19695if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 19696 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19697 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19698 fi 19699 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19700 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 19701printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 19702if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 19703then : 19704 printf %s "(cached) " >&6 19705else case e in #( 19706 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19707/* end confdefs.h. */ 19708int i; 19709_ACEOF 19710if ac_fn_c_try_compile "$LINENO" 19711then : 19712 xorg_cv_cc_flag_unused_command_line_argument=yes 19713else case e in #( 19714 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 19715esac 19716fi 19717rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 19718esac 19719fi 19720{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 19721printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 19722 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 19723 CFLAGS="$xorg_testset_save_CFLAGS" 19724fi 19725 19726found="no" 19727 19728 if test $found = "no" ; then 19729 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19730 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19731 fi 19732 19733 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 19734 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19735 fi 19736 19737 CFLAGS="$CFLAGS -Waddress" 19738 19739 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5 19740printf %s "checking if $CC supports -Waddress... " >&6; } 19741 cacheid=xorg_cv_cc_flag__Waddress 19742 if eval test \${$cacheid+y} 19743then : 19744 printf %s "(cached) " >&6 19745else case e in #( 19746 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19747/* end confdefs.h. */ 19748int i; 19749int 19750main (void) 19751{ 19752 19753 ; 19754 return 0; 19755} 19756_ACEOF 19757if ac_fn_c_try_link "$LINENO" 19758then : 19759 eval $cacheid=yes 19760else case e in #( 19761 e) eval $cacheid=no ;; 19762esac 19763fi 19764rm -f core conftest.err conftest.$ac_objext conftest.beam \ 19765 conftest$ac_exeext conftest.$ac_ext ;; 19766esac 19767fi 19768 19769 19770 CFLAGS="$xorg_testset_save_CFLAGS" 19771 19772 eval supported=\$$cacheid 19773 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 19774printf "%s\n" "$supported" >&6; } 19775 if test "$supported" = "yes" ; then 19776 BASE_CFLAGS="$BASE_CFLAGS -Waddress" 19777 found="yes" 19778 fi 19779 fi 19780 19781 19782 19783 19784 19785 19786 19787 19788 19789 19790 19791 19792 19793 19794 19795xorg_testset_save_CFLAGS="$CFLAGS" 19796 19797if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 19798 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19799 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 19800printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 19801if test ${xorg_cv_cc_flag_unknown_warning_option+y} 19802then : 19803 printf %s "(cached) " >&6 19804else case e in #( 19805 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19806/* end confdefs.h. */ 19807int i; 19808_ACEOF 19809if ac_fn_c_try_compile "$LINENO" 19810then : 19811 xorg_cv_cc_flag_unknown_warning_option=yes 19812else case e in #( 19813 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 19814esac 19815fi 19816rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 19817esac 19818fi 19819{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 19820printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 19821 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 19822 CFLAGS="$xorg_testset_save_CFLAGS" 19823fi 19824 19825if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 19826 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19827 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19828 fi 19829 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19830 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 19831printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 19832if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 19833then : 19834 printf %s "(cached) " >&6 19835else case e in #( 19836 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19837/* end confdefs.h. */ 19838int i; 19839_ACEOF 19840if ac_fn_c_try_compile "$LINENO" 19841then : 19842 xorg_cv_cc_flag_unused_command_line_argument=yes 19843else case e in #( 19844 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 19845esac 19846fi 19847rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 19848esac 19849fi 19850{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 19851printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 19852 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 19853 CFLAGS="$xorg_testset_save_CFLAGS" 19854fi 19855 19856found="no" 19857 19858 if test $found = "no" ; then 19859 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19860 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19861 fi 19862 19863 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 19864 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19865 fi 19866 19867 CFLAGS="$CFLAGS -Wint-to-pointer-cast" 19868 19869 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5 19870printf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; } 19871 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast 19872 if eval test \${$cacheid+y} 19873then : 19874 printf %s "(cached) " >&6 19875else case e in #( 19876 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19877/* end confdefs.h. */ 19878int i; 19879int 19880main (void) 19881{ 19882 19883 ; 19884 return 0; 19885} 19886_ACEOF 19887if ac_fn_c_try_link "$LINENO" 19888then : 19889 eval $cacheid=yes 19890else case e in #( 19891 e) eval $cacheid=no ;; 19892esac 19893fi 19894rm -f core conftest.err conftest.$ac_objext conftest.beam \ 19895 conftest$ac_exeext conftest.$ac_ext ;; 19896esac 19897fi 19898 19899 19900 CFLAGS="$xorg_testset_save_CFLAGS" 19901 19902 eval supported=\$$cacheid 19903 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 19904printf "%s\n" "$supported" >&6; } 19905 if test "$supported" = "yes" ; then 19906 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast" 19907 found="yes" 19908 fi 19909 fi 19910 19911 19912 19913 19914 19915 19916 19917 19918 19919 19920 19921 19922 19923 19924 19925xorg_testset_save_CFLAGS="$CFLAGS" 19926 19927if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 19928 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19929 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 19930printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 19931if test ${xorg_cv_cc_flag_unknown_warning_option+y} 19932then : 19933 printf %s "(cached) " >&6 19934else case e in #( 19935 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19936/* end confdefs.h. */ 19937int i; 19938_ACEOF 19939if ac_fn_c_try_compile "$LINENO" 19940then : 19941 xorg_cv_cc_flag_unknown_warning_option=yes 19942else case e in #( 19943 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 19944esac 19945fi 19946rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 19947esac 19948fi 19949{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 19950printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 19951 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 19952 CFLAGS="$xorg_testset_save_CFLAGS" 19953fi 19954 19955if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 19956 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19957 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19958 fi 19959 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19960 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 19961printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 19962if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 19963then : 19964 printf %s "(cached) " >&6 19965else case e in #( 19966 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19967/* end confdefs.h. */ 19968int i; 19969_ACEOF 19970if ac_fn_c_try_compile "$LINENO" 19971then : 19972 xorg_cv_cc_flag_unused_command_line_argument=yes 19973else case e in #( 19974 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 19975esac 19976fi 19977rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 19978esac 19979fi 19980{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 19981printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 19982 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 19983 CFLAGS="$xorg_testset_save_CFLAGS" 19984fi 19985 19986found="no" 19987 19988 if test $found = "no" ; then 19989 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19990 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19991 fi 19992 19993 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 19994 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19995 fi 19996 19997 CFLAGS="$CFLAGS -Wpointer-to-int-cast" 19998 19999 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5 20000printf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; } 20001 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast 20002 if eval test \${$cacheid+y} 20003then : 20004 printf %s "(cached) " >&6 20005else case e in #( 20006 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20007/* end confdefs.h. */ 20008int i; 20009int 20010main (void) 20011{ 20012 20013 ; 20014 return 0; 20015} 20016_ACEOF 20017if ac_fn_c_try_link "$LINENO" 20018then : 20019 eval $cacheid=yes 20020else case e in #( 20021 e) eval $cacheid=no ;; 20022esac 20023fi 20024rm -f core conftest.err conftest.$ac_objext conftest.beam \ 20025 conftest$ac_exeext conftest.$ac_ext ;; 20026esac 20027fi 20028 20029 20030 CFLAGS="$xorg_testset_save_CFLAGS" 20031 20032 eval supported=\$$cacheid 20033 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 20034printf "%s\n" "$supported" >&6; } 20035 if test "$supported" = "yes" ; then 20036 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast" 20037 found="yes" 20038 fi 20039 fi 20040 20041 20042fi 20043 20044 20045 20046 20047 20048 20049 20050 CWARNFLAGS="$BASE_CFLAGS" 20051 if test "x$GCC" = xyes ; then 20052 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing" 20053 fi 20054 20055 20056 20057 20058 20059 20060 20061 20062# Check whether --enable-strict-compilation was given. 20063if test ${enable_strict_compilation+y} 20064then : 20065 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 20066else case e in #( 20067 e) STRICT_COMPILE=no ;; 20068esac 20069fi 20070 20071 20072 20073 20074 20075 20076STRICT_CFLAGS="" 20077 20078 20079 20080 20081 20082 20083 20084 20085 20086 20087 20088 20089 20090xorg_testset_save_CFLAGS="$CFLAGS" 20091 20092if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 20093 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 20094 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 20095printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 20096if test ${xorg_cv_cc_flag_unknown_warning_option+y} 20097then : 20098 printf %s "(cached) " >&6 20099else case e in #( 20100 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20101/* end confdefs.h. */ 20102int i; 20103_ACEOF 20104if ac_fn_c_try_compile "$LINENO" 20105then : 20106 xorg_cv_cc_flag_unknown_warning_option=yes 20107else case e in #( 20108 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 20109esac 20110fi 20111rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 20112esac 20113fi 20114{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 20115printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 20116 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 20117 CFLAGS="$xorg_testset_save_CFLAGS" 20118fi 20119 20120if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 20121 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 20122 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 20123 fi 20124 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 20125 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 20126printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 20127if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 20128then : 20129 printf %s "(cached) " >&6 20130else case e in #( 20131 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20132/* end confdefs.h. */ 20133int i; 20134_ACEOF 20135if ac_fn_c_try_compile "$LINENO" 20136then : 20137 xorg_cv_cc_flag_unused_command_line_argument=yes 20138else case e in #( 20139 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 20140esac 20141fi 20142rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 20143esac 20144fi 20145{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 20146printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 20147 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 20148 CFLAGS="$xorg_testset_save_CFLAGS" 20149fi 20150 20151found="no" 20152 20153 if test $found = "no" ; then 20154 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 20155 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 20156 fi 20157 20158 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 20159 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 20160 fi 20161 20162 CFLAGS="$CFLAGS -pedantic" 20163 20164 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5 20165printf %s "checking if $CC supports -pedantic... " >&6; } 20166 cacheid=xorg_cv_cc_flag__pedantic 20167 if eval test \${$cacheid+y} 20168then : 20169 printf %s "(cached) " >&6 20170else case e in #( 20171 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20172/* end confdefs.h. */ 20173int i; 20174int 20175main (void) 20176{ 20177 20178 ; 20179 return 0; 20180} 20181_ACEOF 20182if ac_fn_c_try_link "$LINENO" 20183then : 20184 eval $cacheid=yes 20185else case e in #( 20186 e) eval $cacheid=no ;; 20187esac 20188fi 20189rm -f core conftest.err conftest.$ac_objext conftest.beam \ 20190 conftest$ac_exeext conftest.$ac_ext ;; 20191esac 20192fi 20193 20194 20195 CFLAGS="$xorg_testset_save_CFLAGS" 20196 20197 eval supported=\$$cacheid 20198 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 20199printf "%s\n" "$supported" >&6; } 20200 if test "$supported" = "yes" ; then 20201 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic" 20202 found="yes" 20203 fi 20204 fi 20205 20206 20207 20208 20209 20210 20211 20212 20213 20214 20215 20216 20217 20218 20219 20220xorg_testset_save_CFLAGS="$CFLAGS" 20221 20222if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 20223 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 20224 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 20225printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 20226if test ${xorg_cv_cc_flag_unknown_warning_option+y} 20227then : 20228 printf %s "(cached) " >&6 20229else case e in #( 20230 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20231/* end confdefs.h. */ 20232int i; 20233_ACEOF 20234if ac_fn_c_try_compile "$LINENO" 20235then : 20236 xorg_cv_cc_flag_unknown_warning_option=yes 20237else case e in #( 20238 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 20239esac 20240fi 20241rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 20242esac 20243fi 20244{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 20245printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 20246 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 20247 CFLAGS="$xorg_testset_save_CFLAGS" 20248fi 20249 20250if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 20251 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 20252 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 20253 fi 20254 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 20255 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 20256printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 20257if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 20258then : 20259 printf %s "(cached) " >&6 20260else case e in #( 20261 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20262/* end confdefs.h. */ 20263int i; 20264_ACEOF 20265if ac_fn_c_try_compile "$LINENO" 20266then : 20267 xorg_cv_cc_flag_unused_command_line_argument=yes 20268else case e in #( 20269 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 20270esac 20271fi 20272rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 20273esac 20274fi 20275{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 20276printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 20277 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 20278 CFLAGS="$xorg_testset_save_CFLAGS" 20279fi 20280 20281found="no" 20282 20283 if test $found = "no" ; then 20284 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 20285 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 20286 fi 20287 20288 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 20289 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 20290 fi 20291 20292 CFLAGS="$CFLAGS -Werror" 20293 20294 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5 20295printf %s "checking if $CC supports -Werror... " >&6; } 20296 cacheid=xorg_cv_cc_flag__Werror 20297 if eval test \${$cacheid+y} 20298then : 20299 printf %s "(cached) " >&6 20300else case e in #( 20301 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20302/* end confdefs.h. */ 20303int i; 20304int 20305main (void) 20306{ 20307 20308 ; 20309 return 0; 20310} 20311_ACEOF 20312if ac_fn_c_try_link "$LINENO" 20313then : 20314 eval $cacheid=yes 20315else case e in #( 20316 e) eval $cacheid=no ;; 20317esac 20318fi 20319rm -f core conftest.err conftest.$ac_objext conftest.beam \ 20320 conftest$ac_exeext conftest.$ac_ext ;; 20321esac 20322fi 20323 20324 20325 CFLAGS="$xorg_testset_save_CFLAGS" 20326 20327 eval supported=\$$cacheid 20328 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 20329printf "%s\n" "$supported" >&6; } 20330 if test "$supported" = "yes" ; then 20331 STRICT_CFLAGS="$STRICT_CFLAGS -Werror" 20332 found="yes" 20333 fi 20334 fi 20335 20336 if test $found = "no" ; then 20337 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 20338 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 20339 fi 20340 20341 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 20342 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 20343 fi 20344 20345 CFLAGS="$CFLAGS -errwarn" 20346 20347 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5 20348printf %s "checking if $CC supports -errwarn... " >&6; } 20349 cacheid=xorg_cv_cc_flag__errwarn 20350 if eval test \${$cacheid+y} 20351then : 20352 printf %s "(cached) " >&6 20353else case e in #( 20354 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20355/* end confdefs.h. */ 20356int i; 20357int 20358main (void) 20359{ 20360 20361 ; 20362 return 0; 20363} 20364_ACEOF 20365if ac_fn_c_try_link "$LINENO" 20366then : 20367 eval $cacheid=yes 20368else case e in #( 20369 e) eval $cacheid=no ;; 20370esac 20371fi 20372rm -f core conftest.err conftest.$ac_objext conftest.beam \ 20373 conftest$ac_exeext conftest.$ac_ext ;; 20374esac 20375fi 20376 20377 20378 CFLAGS="$xorg_testset_save_CFLAGS" 20379 20380 eval supported=\$$cacheid 20381 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 20382printf "%s\n" "$supported" >&6; } 20383 if test "$supported" = "yes" ; then 20384 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn" 20385 found="yes" 20386 fi 20387 fi 20388 20389 20390 20391# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not 20392# activate it with -Werror, so we add it here explicitly. 20393 20394 20395 20396 20397 20398 20399 20400 20401 20402 20403 20404 20405 20406xorg_testset_save_CFLAGS="$CFLAGS" 20407 20408if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 20409 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 20410 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 20411printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 20412if test ${xorg_cv_cc_flag_unknown_warning_option+y} 20413then : 20414 printf %s "(cached) " >&6 20415else case e in #( 20416 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20417/* end confdefs.h. */ 20418int i; 20419_ACEOF 20420if ac_fn_c_try_compile "$LINENO" 20421then : 20422 xorg_cv_cc_flag_unknown_warning_option=yes 20423else case e in #( 20424 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 20425esac 20426fi 20427rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 20428esac 20429fi 20430{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 20431printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 20432 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 20433 CFLAGS="$xorg_testset_save_CFLAGS" 20434fi 20435 20436if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 20437 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 20438 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 20439 fi 20440 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 20441 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 20442printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 20443if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 20444then : 20445 printf %s "(cached) " >&6 20446else case e in #( 20447 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20448/* end confdefs.h. */ 20449int i; 20450_ACEOF 20451if ac_fn_c_try_compile "$LINENO" 20452then : 20453 xorg_cv_cc_flag_unused_command_line_argument=yes 20454else case e in #( 20455 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 20456esac 20457fi 20458rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 20459esac 20460fi 20461{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 20462printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 20463 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 20464 CFLAGS="$xorg_testset_save_CFLAGS" 20465fi 20466 20467found="no" 20468 20469 if test $found = "no" ; then 20470 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 20471 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 20472 fi 20473 20474 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 20475 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 20476 fi 20477 20478 CFLAGS="$CFLAGS -Werror=attributes" 20479 20480 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5 20481printf %s "checking if $CC supports -Werror=attributes... " >&6; } 20482 cacheid=xorg_cv_cc_flag__Werror_attributes 20483 if eval test \${$cacheid+y} 20484then : 20485 printf %s "(cached) " >&6 20486else case e in #( 20487 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20488/* end confdefs.h. */ 20489int i; 20490int 20491main (void) 20492{ 20493 20494 ; 20495 return 0; 20496} 20497_ACEOF 20498if ac_fn_c_try_link "$LINENO" 20499then : 20500 eval $cacheid=yes 20501else case e in #( 20502 e) eval $cacheid=no ;; 20503esac 20504fi 20505rm -f core conftest.err conftest.$ac_objext conftest.beam \ 20506 conftest$ac_exeext conftest.$ac_ext ;; 20507esac 20508fi 20509 20510 20511 CFLAGS="$xorg_testset_save_CFLAGS" 20512 20513 eval supported=\$$cacheid 20514 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 20515printf "%s\n" "$supported" >&6; } 20516 if test "$supported" = "yes" ; then 20517 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes" 20518 found="yes" 20519 fi 20520 fi 20521 20522 20523 20524if test "x$STRICT_COMPILE" = "xyes"; then 20525 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS" 20526 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 20527fi 20528 20529 20530 20531 20532 20533 20534 20535 20536cat >>confdefs.h <<_ACEOF 20537#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 20538_ACEOF 20539 20540 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 20541 if test "x$PVM" = "x"; then 20542 PVM="0" 20543 fi 20544 20545printf "%s\n" "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h 20546 20547 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 20548 if test "x$PVP" = "x"; then 20549 PVP="0" 20550 fi 20551 20552printf "%s\n" "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h 20553 20554 20555 20556CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \ 20557mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 20558|| (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \ 20559touch \$(top_srcdir)/ChangeLog; \ 20560echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))" 20561 20562 20563 20564 20565macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros` 20566INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \ 20567mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \ 20568|| (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \ 20569touch \$(top_srcdir)/INSTALL; \ 20570echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))" 20571 20572 20573 20574 20575 20576 20577case $host_os in 20578 solaris*) 20579 # Solaris 2.0 - 11.3 use SysV man page section numbers, so we 20580 # check for a man page file found in later versions that use 20581 # traditional section numbers instead 20582 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5 20583printf %s "checking for /usr/share/man/man7/attributes.7... " >&6; } 20584if test ${ac_cv_file__usr_share_man_man7_attributes_7+y} 20585then : 20586 printf %s "(cached) " >&6 20587else case e in #( 20588 e) test "$cross_compiling" = yes && 20589 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 20590if test -r "/usr/share/man/man7/attributes.7"; then 20591 ac_cv_file__usr_share_man_man7_attributes_7=yes 20592else 20593 ac_cv_file__usr_share_man_man7_attributes_7=no 20594fi ;; 20595esac 20596fi 20597{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5 20598printf "%s\n" "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; } 20599if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes 20600then : 20601 SYSV_MAN_SECTIONS=false 20602else case e in #( 20603 e) SYSV_MAN_SECTIONS=true ;; 20604esac 20605fi 20606 20607 ;; 20608 *) SYSV_MAN_SECTIONS=false ;; 20609esac 20610 20611if test x$APP_MAN_SUFFIX = x ; then 20612 APP_MAN_SUFFIX=1 20613fi 20614if test x$APP_MAN_DIR = x ; then 20615 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 20616fi 20617 20618if test x$LIB_MAN_SUFFIX = x ; then 20619 LIB_MAN_SUFFIX=3 20620fi 20621if test x$LIB_MAN_DIR = x ; then 20622 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 20623fi 20624 20625if test x$FILE_MAN_SUFFIX = x ; then 20626 case $SYSV_MAN_SECTIONS in 20627 true) FILE_MAN_SUFFIX=4 ;; 20628 *) FILE_MAN_SUFFIX=5 ;; 20629 esac 20630fi 20631if test x$FILE_MAN_DIR = x ; then 20632 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 20633fi 20634 20635if test x$MISC_MAN_SUFFIX = x ; then 20636 case $SYSV_MAN_SECTIONS in 20637 true) MISC_MAN_SUFFIX=5 ;; 20638 *) MISC_MAN_SUFFIX=7 ;; 20639 esac 20640fi 20641if test x$MISC_MAN_DIR = x ; then 20642 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 20643fi 20644 20645if test x$DRIVER_MAN_SUFFIX = x ; then 20646 case $SYSV_MAN_SECTIONS in 20647 true) DRIVER_MAN_SUFFIX=7 ;; 20648 *) DRIVER_MAN_SUFFIX=4 ;; 20649 esac 20650fi 20651if test x$DRIVER_MAN_DIR = x ; then 20652 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 20653fi 20654 20655if test x$ADMIN_MAN_SUFFIX = x ; then 20656 case $SYSV_MAN_SECTIONS in 20657 true) ADMIN_MAN_SUFFIX=1m ;; 20658 *) ADMIN_MAN_SUFFIX=8 ;; 20659 esac 20660fi 20661if test x$ADMIN_MAN_DIR = x ; then 20662 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 20663fi 20664 20665 20666 20667 20668 20669 20670 20671 20672 20673 20674 20675 20676 20677 20678 20679XORG_MAN_PAGE="X Version 11" 20680 20681MAN_SUBSTS="\ 20682 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 20683 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 20684 -e 's|__xservername__|Xorg|g' \ 20685 -e 's|__xconfigfile__|xorg.conf|g' \ 20686 -e 's|__projectroot__|\$(prefix)|g' \ 20687 -e 's|__apploaddir__|\$(appdefaultdir)|g' \ 20688 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \ 20689 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \ 20690 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \ 20691 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \ 20692 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \ 20693 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'" 20694 20695 20696 20697 20698AM_DEFAULT_VERBOSITY=0 20699 20700 20701 20702 20703# Check whether --enable-docs was given. 20704if test ${enable_docs+y} 20705then : 20706 enableval=$enable_docs; build_docs=$enableval 20707else case e in #( 20708 e) build_docs=yes ;; 20709esac 20710fi 20711 20712 20713 if test x$build_docs = xyes; then 20714 ENABLE_DOCS_TRUE= 20715 ENABLE_DOCS_FALSE='#' 20716else 20717 ENABLE_DOCS_TRUE='#' 20718 ENABLE_DOCS_FALSE= 20719fi 20720 20721{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build documentation" >&5 20722printf %s "checking whether to build documentation... " >&6; } 20723{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $build_docs" >&5 20724printf "%s\n" "$build_docs" >&6; } 20725 20726 20727 20728# Check whether --enable-specs was given. 20729if test ${enable_specs+y} 20730then : 20731 enableval=$enable_specs; build_specs=$enableval 20732else case e in #( 20733 e) build_specs=yes ;; 20734esac 20735fi 20736 20737 20738 if test x$build_specs = xyes; then 20739 ENABLE_SPECS_TRUE= 20740 ENABLE_SPECS_FALSE='#' 20741else 20742 ENABLE_SPECS_TRUE='#' 20743 ENABLE_SPECS_FALSE= 20744fi 20745 20746{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build functional specifications" >&5 20747printf %s "checking whether to build functional specifications... " >&6; } 20748{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $build_specs" >&5 20749printf "%s\n" "$build_specs" >&6; } 20750 20751 20752 20753 20754 20755# Check whether --with-xmlto was given. 20756if test ${with_xmlto+y} 20757then : 20758 withval=$with_xmlto; use_xmlto=$withval 20759else case e in #( 20760 e) use_xmlto=auto ;; 20761esac 20762fi 20763 20764 20765 20766if test "x$use_xmlto" = x"auto"; then 20767 # Extract the first word of "xmlto", so it can be a program name with args. 20768set dummy xmlto; ac_word=$2 20769{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 20770printf %s "checking for $ac_word... " >&6; } 20771if test ${ac_cv_path_XMLTO+y} 20772then : 20773 printf %s "(cached) " >&6 20774else case e in #( 20775 e) case $XMLTO in 20776 [\\/]* | ?:[\\/]*) 20777 ac_cv_path_XMLTO="$XMLTO" # Let the user override the test with a path. 20778 ;; 20779 *) 20780 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20781for as_dir in $PATH 20782do 20783 IFS=$as_save_IFS 20784 case $as_dir in #((( 20785 '') as_dir=./ ;; 20786 */) ;; 20787 *) as_dir=$as_dir/ ;; 20788 esac 20789 for ac_exec_ext in '' $ac_executable_extensions; do 20790 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 20791 ac_cv_path_XMLTO="$as_dir$ac_word$ac_exec_ext" 20792 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 20793 break 2 20794 fi 20795done 20796 done 20797IFS=$as_save_IFS 20798 20799 ;; 20800esac ;; 20801esac 20802fi 20803XMLTO=$ac_cv_path_XMLTO 20804if test -n "$XMLTO"; then 20805 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XMLTO" >&5 20806printf "%s\n" "$XMLTO" >&6; } 20807else 20808 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 20809printf "%s\n" "no" >&6; } 20810fi 20811 20812 20813 if test "x$XMLTO" = "x"; then 20814 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: xmlto not found - documentation targets will be skipped" >&5 20815printf "%s\n" "$as_me: WARNING: xmlto not found - documentation targets will be skipped" >&2;} 20816 have_xmlto=no 20817 else 20818 have_xmlto=yes 20819 fi 20820elif test "x$use_xmlto" = x"yes" ; then 20821 # Extract the first word of "xmlto", so it can be a program name with args. 20822set dummy xmlto; ac_word=$2 20823{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 20824printf %s "checking for $ac_word... " >&6; } 20825if test ${ac_cv_path_XMLTO+y} 20826then : 20827 printf %s "(cached) " >&6 20828else case e in #( 20829 e) case $XMLTO in 20830 [\\/]* | ?:[\\/]*) 20831 ac_cv_path_XMLTO="$XMLTO" # Let the user override the test with a path. 20832 ;; 20833 *) 20834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20835for as_dir in $PATH 20836do 20837 IFS=$as_save_IFS 20838 case $as_dir in #((( 20839 '') as_dir=./ ;; 20840 */) ;; 20841 *) as_dir=$as_dir/ ;; 20842 esac 20843 for ac_exec_ext in '' $ac_executable_extensions; do 20844 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 20845 ac_cv_path_XMLTO="$as_dir$ac_word$ac_exec_ext" 20846 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 20847 break 2 20848 fi 20849done 20850 done 20851IFS=$as_save_IFS 20852 20853 ;; 20854esac ;; 20855esac 20856fi 20857XMLTO=$ac_cv_path_XMLTO 20858if test -n "$XMLTO"; then 20859 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XMLTO" >&5 20860printf "%s\n" "$XMLTO" >&6; } 20861else 20862 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 20863printf "%s\n" "no" >&6; } 20864fi 20865 20866 20867 if test "x$XMLTO" = "x"; then 20868 as_fn_error $? "--with-xmlto=yes specified but xmlto not found in PATH" "$LINENO" 5 20869 fi 20870 have_xmlto=yes 20871elif test "x$use_xmlto" = x"no" ; then 20872 if test "x$XMLTO" != "x"; then 20873 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ignoring XMLTO environment variable since --with-xmlto=no was specified" >&5 20874printf "%s\n" "$as_me: WARNING: ignoring XMLTO environment variable since --with-xmlto=no was specified" >&2;} 20875 fi 20876 have_xmlto=no 20877else 20878 as_fn_error $? "--with-xmlto expects 'yes' or 'no'" "$LINENO" 5 20879fi 20880 20881# Test for a minimum version of xmlto, if provided. 20882if test "$have_xmlto" = yes; then 20883 # scrape the xmlto version 20884 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the xmlto version" >&5 20885printf %s "checking the xmlto version... " >&6; } 20886 xmlto_version=`$XMLTO --version 2>/dev/null | cut -d' ' -f3` 20887 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xmlto_version" >&5 20888printf "%s\n" "$xmlto_version" >&6; } 20889 as_arg_v1=$xmlto_version 20890as_arg_v2=0.0.22 20891awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null 20892case $? in #( 20893 1) : 20894 if test "x$use_xmlto" = xauto; then 20895 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: xmlto version $xmlto_version found, but 0.0.22 needed" >&5 20896printf "%s\n" "$as_me: WARNING: xmlto version $xmlto_version found, but 0.0.22 needed" >&2;} 20897 have_xmlto=no 20898 else 20899 as_fn_error $? "xmlto version $xmlto_version found, but 0.0.22 needed" "$LINENO" 5 20900 fi ;; #( 20901 0) : 20902 ;; #( 20903 2) : 20904 ;; #( 20905 *) : 20906 ;; 20907esac 20908fi 20909 20910# Test for the ability of xmlto to generate a text target 20911# 20912# NOTE: xmlto 0.0.27 or higher return a non-zero return code in the 20913# following test for empty XML docbook files. 20914# For compatibility reasons use the following empty XML docbook file and if 20915# it fails try it again with a non-empty XML file. 20916have_xmlto_text=no 20917cat > conftest.xml << "EOF" 20918EOF 20919if test "$have_xmlto" = yes 20920then : 20921 if $XMLTO --skip-validation txt conftest.xml >/dev/null 2>&1 20922then : 20923 have_xmlto_text=yes 20924else case e in #( 20925 e) # Try it again with a non-empty XML file. 20926 cat > conftest.xml << "EOF" 20927<x></x> 20928EOF 20929 if $XMLTO --skip-validation txt conftest.xml >/dev/null 2>&1 20930then : 20931 have_xmlto_text=yes 20932else case e in #( 20933 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: xmlto cannot generate text format, this format skipped" >&5 20934printf "%s\n" "$as_me: WARNING: xmlto cannot generate text format, this format skipped" >&2;} ;; 20935esac 20936fi ;; 20937esac 20938fi 20939fi 20940rm -f conftest.xml 20941 if test $have_xmlto_text = yes; then 20942 HAVE_XMLTO_TEXT_TRUE= 20943 HAVE_XMLTO_TEXT_FALSE='#' 20944else 20945 HAVE_XMLTO_TEXT_TRUE='#' 20946 HAVE_XMLTO_TEXT_FALSE= 20947fi 20948 20949 if test "$have_xmlto" = yes; then 20950 HAVE_XMLTO_TRUE= 20951 HAVE_XMLTO_FALSE='#' 20952else 20953 HAVE_XMLTO_TRUE='#' 20954 HAVE_XMLTO_FALSE= 20955fi 20956 20957 20958 20959 20960 20961 20962# Check whether --with-fop was given. 20963if test ${with_fop+y} 20964then : 20965 withval=$with_fop; use_fop=$withval 20966else case e in #( 20967 e) use_fop=auto ;; 20968esac 20969fi 20970 20971 20972 20973if test "x$use_fop" = x"auto"; then 20974 # Extract the first word of "fop", so it can be a program name with args. 20975set dummy fop; ac_word=$2 20976{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 20977printf %s "checking for $ac_word... " >&6; } 20978if test ${ac_cv_path_FOP+y} 20979then : 20980 printf %s "(cached) " >&6 20981else case e in #( 20982 e) case $FOP in 20983 [\\/]* | ?:[\\/]*) 20984 ac_cv_path_FOP="$FOP" # Let the user override the test with a path. 20985 ;; 20986 *) 20987 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20988for as_dir in $PATH 20989do 20990 IFS=$as_save_IFS 20991 case $as_dir in #((( 20992 '') as_dir=./ ;; 20993 */) ;; 20994 *) as_dir=$as_dir/ ;; 20995 esac 20996 for ac_exec_ext in '' $ac_executable_extensions; do 20997 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 20998 ac_cv_path_FOP="$as_dir$ac_word$ac_exec_ext" 20999 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 21000 break 2 21001 fi 21002done 21003 done 21004IFS=$as_save_IFS 21005 21006 ;; 21007esac ;; 21008esac 21009fi 21010FOP=$ac_cv_path_FOP 21011if test -n "$FOP"; then 21012 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FOP" >&5 21013printf "%s\n" "$FOP" >&6; } 21014else 21015 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 21016printf "%s\n" "no" >&6; } 21017fi 21018 21019 21020 if test "x$FOP" = "x"; then 21021 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: fop not found - documentation targets will be skipped" >&5 21022printf "%s\n" "$as_me: WARNING: fop not found - documentation targets will be skipped" >&2;} 21023 have_fop=no 21024 else 21025 have_fop=yes 21026 fi 21027elif test "x$use_fop" = x"yes" ; then 21028 # Extract the first word of "fop", so it can be a program name with args. 21029set dummy fop; ac_word=$2 21030{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 21031printf %s "checking for $ac_word... " >&6; } 21032if test ${ac_cv_path_FOP+y} 21033then : 21034 printf %s "(cached) " >&6 21035else case e in #( 21036 e) case $FOP in 21037 [\\/]* | ?:[\\/]*) 21038 ac_cv_path_FOP="$FOP" # Let the user override the test with a path. 21039 ;; 21040 *) 21041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21042for as_dir in $PATH 21043do 21044 IFS=$as_save_IFS 21045 case $as_dir in #((( 21046 '') as_dir=./ ;; 21047 */) ;; 21048 *) as_dir=$as_dir/ ;; 21049 esac 21050 for ac_exec_ext in '' $ac_executable_extensions; do 21051 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 21052 ac_cv_path_FOP="$as_dir$ac_word$ac_exec_ext" 21053 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 21054 break 2 21055 fi 21056done 21057 done 21058IFS=$as_save_IFS 21059 21060 ;; 21061esac ;; 21062esac 21063fi 21064FOP=$ac_cv_path_FOP 21065if test -n "$FOP"; then 21066 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FOP" >&5 21067printf "%s\n" "$FOP" >&6; } 21068else 21069 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 21070printf "%s\n" "no" >&6; } 21071fi 21072 21073 21074 if test "x$FOP" = "x"; then 21075 as_fn_error $? "--with-fop=yes specified but fop not found in PATH" "$LINENO" 5 21076 fi 21077 have_fop=yes 21078elif test "x$use_fop" = x"no" ; then 21079 if test "x$FOP" != "x"; then 21080 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ignoring FOP environment variable since --with-fop=no was specified" >&5 21081printf "%s\n" "$as_me: WARNING: ignoring FOP environment variable since --with-fop=no was specified" >&2;} 21082 fi 21083 have_fop=no 21084else 21085 as_fn_error $? "--with-fop expects 'yes' or 'no'" "$LINENO" 5 21086fi 21087 21088# Test for a minimum version of fop, if provided. 21089 21090 if test "$have_fop" = yes; then 21091 HAVE_FOP_TRUE= 21092 HAVE_FOP_FALSE='#' 21093else 21094 HAVE_FOP_TRUE='#' 21095 HAVE_FOP_FALSE= 21096fi 21097 21098 21099 21100 21101# Preserves the interface, should it be implemented later 21102 21103 21104 21105# Check whether --with-xsltproc was given. 21106if test ${with_xsltproc+y} 21107then : 21108 withval=$with_xsltproc; use_xsltproc=$withval 21109else case e in #( 21110 e) use_xsltproc=auto ;; 21111esac 21112fi 21113 21114 21115 21116if test "x$use_xsltproc" = x"auto"; then 21117 # Extract the first word of "xsltproc", so it can be a program name with args. 21118set dummy xsltproc; ac_word=$2 21119{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 21120printf %s "checking for $ac_word... " >&6; } 21121if test ${ac_cv_path_XSLTPROC+y} 21122then : 21123 printf %s "(cached) " >&6 21124else case e in #( 21125 e) case $XSLTPROC in 21126 [\\/]* | ?:[\\/]*) 21127 ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path. 21128 ;; 21129 *) 21130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21131for as_dir in $PATH 21132do 21133 IFS=$as_save_IFS 21134 case $as_dir in #((( 21135 '') as_dir=./ ;; 21136 */) ;; 21137 *) as_dir=$as_dir/ ;; 21138 esac 21139 for ac_exec_ext in '' $ac_executable_extensions; do 21140 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 21141 ac_cv_path_XSLTPROC="$as_dir$ac_word$ac_exec_ext" 21142 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 21143 break 2 21144 fi 21145done 21146 done 21147IFS=$as_save_IFS 21148 21149 ;; 21150esac ;; 21151esac 21152fi 21153XSLTPROC=$ac_cv_path_XSLTPROC 21154if test -n "$XSLTPROC"; then 21155 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5 21156printf "%s\n" "$XSLTPROC" >&6; } 21157else 21158 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 21159printf "%s\n" "no" >&6; } 21160fi 21161 21162 21163 if test "x$XSLTPROC" = "x"; then 21164 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: xsltproc not found - cannot transform XML documents" >&5 21165printf "%s\n" "$as_me: WARNING: xsltproc not found - cannot transform XML documents" >&2;} 21166 have_xsltproc=no 21167 else 21168 have_xsltproc=yes 21169 fi 21170elif test "x$use_xsltproc" = x"yes" ; then 21171 # Extract the first word of "xsltproc", so it can be a program name with args. 21172set dummy xsltproc; ac_word=$2 21173{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 21174printf %s "checking for $ac_word... " >&6; } 21175if test ${ac_cv_path_XSLTPROC+y} 21176then : 21177 printf %s "(cached) " >&6 21178else case e in #( 21179 e) case $XSLTPROC in 21180 [\\/]* | ?:[\\/]*) 21181 ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path. 21182 ;; 21183 *) 21184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21185for as_dir in $PATH 21186do 21187 IFS=$as_save_IFS 21188 case $as_dir in #((( 21189 '') as_dir=./ ;; 21190 */) ;; 21191 *) as_dir=$as_dir/ ;; 21192 esac 21193 for ac_exec_ext in '' $ac_executable_extensions; do 21194 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 21195 ac_cv_path_XSLTPROC="$as_dir$ac_word$ac_exec_ext" 21196 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 21197 break 2 21198 fi 21199done 21200 done 21201IFS=$as_save_IFS 21202 21203 ;; 21204esac ;; 21205esac 21206fi 21207XSLTPROC=$ac_cv_path_XSLTPROC 21208if test -n "$XSLTPROC"; then 21209 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5 21210printf "%s\n" "$XSLTPROC" >&6; } 21211else 21212 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 21213printf "%s\n" "no" >&6; } 21214fi 21215 21216 21217 if test "x$XSLTPROC" = "x"; then 21218 as_fn_error $? "--with-xsltproc=yes specified but xsltproc not found in PATH" "$LINENO" 5 21219 fi 21220 have_xsltproc=yes 21221elif test "x$use_xsltproc" = x"no" ; then 21222 if test "x$XSLTPROC" != "x"; then 21223 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ignoring XSLTPROC environment variable since --with-xsltproc=no was specified" >&5 21224printf "%s\n" "$as_me: WARNING: ignoring XSLTPROC environment variable since --with-xsltproc=no was specified" >&2;} 21225 fi 21226 have_xsltproc=no 21227else 21228 as_fn_error $? "--with-xsltproc expects 'yes' or 'no'" "$LINENO" 5 21229fi 21230 21231 if test "$have_xsltproc" = yes; then 21232 HAVE_XSLTPROC_TRUE= 21233 HAVE_XSLTPROC_FALSE='#' 21234else 21235 HAVE_XSLTPROC_TRUE='#' 21236 HAVE_XSLTPROC_FALSE= 21237fi 21238 21239 21240 21241{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for X.Org SGML entities >= 1.8" >&5 21242printf %s "checking for X.Org SGML entities >= 1.8... " >&6; } 21243XORG_SGML_PATH= 21244if test -n "$PKG_CONFIG" && \ 21245 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-sgml-doctools >= 1.8\""; } >&5 21246 ($PKG_CONFIG --exists --print-errors "xorg-sgml-doctools >= 1.8") 2>&5 21247 ac_status=$? 21248 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 21249 test $ac_status = 0; }; then 21250 XORG_SGML_PATH=`$PKG_CONFIG --variable=sgmlrootdir xorg-sgml-doctools` 21251else 21252 : 21253 21254fi 21255 21256# Define variables STYLESHEET_SRCDIR and XSL_STYLESHEET containing 21257# the path and the name of the doc stylesheet 21258if test "x$XORG_SGML_PATH" != "x" ; then 21259 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XORG_SGML_PATH" >&5 21260printf "%s\n" "$XORG_SGML_PATH" >&6; } 21261 STYLESHEET_SRCDIR=$XORG_SGML_PATH/X11 21262 XSL_STYLESHEET=$STYLESHEET_SRCDIR/xorg.xsl 21263else 21264 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 21265printf "%s\n" "no" >&6; } 21266fi 21267 21268 21269 21270 21271 if test "x$XSL_STYLESHEET" != "x"; then 21272 HAVE_STYLESHEETS_TRUE= 21273 HAVE_STYLESHEETS_FALSE='#' 21274else 21275 HAVE_STYLESHEETS_TRUE='#' 21276 HAVE_STYLESHEETS_FALSE= 21277fi 21278 21279 21280 21281# Obtain compiler/linker options for dependencies 21282 21283pkg_failed=no 21284{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ICE" >&5 21285printf %s "checking for ICE... " >&6; } 21286 21287if test -n "$ICE_CFLAGS"; then 21288 pkg_cv_ICE_CFLAGS="$ICE_CFLAGS" 21289 elif test -n "$PKG_CONFIG"; then 21290 if test -n "$PKG_CONFIG" && \ 21291 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto >= 7.0.25 xtrans\""; } >&5 21292 ($PKG_CONFIG --exists --print-errors "xproto >= 7.0.25 xtrans") 2>&5 21293 ac_status=$? 21294 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 21295 test $ac_status = 0; }; then 21296 pkg_cv_ICE_CFLAGS=`$PKG_CONFIG --cflags "xproto >= 7.0.25 xtrans" 2>/dev/null` 21297 test "x$?" != "x0" && pkg_failed=yes 21298else 21299 pkg_failed=yes 21300fi 21301 else 21302 pkg_failed=untried 21303fi 21304if test -n "$ICE_LIBS"; then 21305 pkg_cv_ICE_LIBS="$ICE_LIBS" 21306 elif test -n "$PKG_CONFIG"; then 21307 if test -n "$PKG_CONFIG" && \ 21308 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto >= 7.0.25 xtrans\""; } >&5 21309 ($PKG_CONFIG --exists --print-errors "xproto >= 7.0.25 xtrans") 2>&5 21310 ac_status=$? 21311 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 21312 test $ac_status = 0; }; then 21313 pkg_cv_ICE_LIBS=`$PKG_CONFIG --libs "xproto >= 7.0.25 xtrans" 2>/dev/null` 21314 test "x$?" != "x0" && pkg_failed=yes 21315else 21316 pkg_failed=yes 21317fi 21318 else 21319 pkg_failed=untried 21320fi 21321 21322 21323 21324if test $pkg_failed = yes; then 21325 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 21326printf "%s\n" "no" >&6; } 21327 21328if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 21329 _pkg_short_errors_supported=yes 21330else 21331 _pkg_short_errors_supported=no 21332fi 21333 if test $_pkg_short_errors_supported = yes; then 21334 ICE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xproto >= 7.0.25 xtrans" 2>&1` 21335 else 21336 ICE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xproto >= 7.0.25 xtrans" 2>&1` 21337 fi 21338 # Put the nasty error message in config.log where it belongs 21339 echo "$ICE_PKG_ERRORS" >&5 21340 21341 as_fn_error $? "Package requirements (xproto >= 7.0.25 xtrans) were not met: 21342 21343$ICE_PKG_ERRORS 21344 21345Consider adjusting the PKG_CONFIG_PATH environment variable if you 21346installed software in a non-standard prefix. 21347 21348Alternatively, you may set the environment variables ICE_CFLAGS 21349and ICE_LIBS to avoid the need to call pkg-config. 21350See the pkg-config man page for more details." "$LINENO" 5 21351elif test $pkg_failed = untried; then 21352 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 21353printf "%s\n" "no" >&6; } 21354 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 21355printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 21356as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 21357is in your PATH or set the PKG_CONFIG environment variable to the full 21358path to pkg-config. 21359 21360Alternatively, you may set the environment variables ICE_CFLAGS 21361and ICE_LIBS to avoid the need to call pkg-config. 21362See the pkg-config man page for more details. 21363 21364To get pkg-config, see <http://pkg-config.freedesktop.org/>. 21365See 'config.log' for more details" "$LINENO" 5; } 21366else 21367 ICE_CFLAGS=$pkg_cv_ICE_CFLAGS 21368 ICE_LIBS=$pkg_cv_ICE_LIBS 21369 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21370printf "%s\n" "yes" >&6; } 21371 21372fi 21373 21374# Checks for typedefs, structures, and compiler characteristics. 21375# Check whether --enable-largefile was given. 21376if test ${enable_largefile+y} 21377then : 21378 enableval=$enable_largefile; 21379fi 21380if test "$enable_largefile,$enable_year2038" != no,no 21381then : 21382 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable large file support" >&5 21383printf %s "checking for $CC option to enable large file support... " >&6; } 21384if test ${ac_cv_sys_largefile_opts+y} 21385then : 21386 printf %s "(cached) " >&6 21387else case e in #( 21388 e) ac_save_CC="$CC" 21389 ac_opt_found=no 21390 for ac_opt in "none needed" "-D_FILE_OFFSET_BITS=64" "-D_LARGE_FILES=1" "-n32"; do 21391 if test x"$ac_opt" != x"none needed" 21392then : 21393 CC="$ac_save_CC $ac_opt" 21394fi 21395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21396/* end confdefs.h. */ 21397#include <sys/types.h> 21398#ifndef FTYPE 21399# define FTYPE off_t 21400#endif 21401 /* Check that FTYPE can represent 2**63 - 1 correctly. 21402 We can't simply define LARGE_FTYPE to be 9223372036854775807, 21403 since some C++ compilers masquerading as C compilers 21404 incorrectly reject 9223372036854775807. */ 21405#define LARGE_FTYPE (((FTYPE) 1 << 31 << 31) - 1 + ((FTYPE) 1 << 31 << 31)) 21406 int FTYPE_is_large[(LARGE_FTYPE % 2147483629 == 721 21407 && LARGE_FTYPE % 2147483647 == 1) 21408 ? 1 : -1]; 21409int 21410main (void) 21411{ 21412 21413 ; 21414 return 0; 21415} 21416_ACEOF 21417if ac_fn_c_try_compile "$LINENO" 21418then : 21419 if test x"$ac_opt" = x"none needed" 21420then : 21421 # GNU/Linux s390x and alpha need _FILE_OFFSET_BITS=64 for wide ino_t. 21422 CC="$CC -DFTYPE=ino_t" 21423 if ac_fn_c_try_compile "$LINENO" 21424then : 21425 21426else case e in #( 21427 e) CC="$CC -D_FILE_OFFSET_BITS=64" 21428 if ac_fn_c_try_compile "$LINENO" 21429then : 21430 ac_opt='-D_FILE_OFFSET_BITS=64' 21431fi 21432rm -f core conftest.err conftest.$ac_objext conftest.beam ;; 21433esac 21434fi 21435rm -f core conftest.err conftest.$ac_objext conftest.beam 21436fi 21437 ac_cv_sys_largefile_opts=$ac_opt 21438 ac_opt_found=yes 21439fi 21440rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 21441 test $ac_opt_found = no || break 21442 done 21443 CC="$ac_save_CC" 21444 21445 test $ac_opt_found = yes || ac_cv_sys_largefile_opts="support not detected" ;; 21446esac 21447fi 21448{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_opts" >&5 21449printf "%s\n" "$ac_cv_sys_largefile_opts" >&6; } 21450 21451ac_have_largefile=yes 21452case $ac_cv_sys_largefile_opts in #( 21453 "none needed") : 21454 ;; #( 21455 "supported through gnulib") : 21456 ;; #( 21457 "support not detected") : 21458 ac_have_largefile=no ;; #( 21459 "-D_FILE_OFFSET_BITS=64") : 21460 21461printf "%s\n" "#define _FILE_OFFSET_BITS 64" >>confdefs.h 21462 ;; #( 21463 "-D_LARGE_FILES=1") : 21464 21465printf "%s\n" "#define _LARGE_FILES 1" >>confdefs.h 21466 ;; #( 21467 "-n32") : 21468 CC="$CC -n32" ;; #( 21469 *) : 21470 as_fn_error $? "internal error: bad value for \$ac_cv_sys_largefile_opts" "$LINENO" 5 ;; 21471esac 21472 21473if test "$enable_year2038" != no 21474then : 21475 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option for timestamps after 2038" >&5 21476printf %s "checking for $CC option for timestamps after 2038... " >&6; } 21477if test ${ac_cv_sys_year2038_opts+y} 21478then : 21479 printf %s "(cached) " >&6 21480else case e in #( 21481 e) ac_save_CPPFLAGS="$CPPFLAGS" 21482 ac_opt_found=no 21483 for ac_opt in "none needed" "-D_TIME_BITS=64" "-D__MINGW_USE_VC2005_COMPAT" "-U_USE_32_BIT_TIME_T -D__MINGW_USE_VC2005_COMPAT"; do 21484 if test x"$ac_opt" != x"none needed" 21485then : 21486 CPPFLAGS="$ac_save_CPPFLAGS $ac_opt" 21487fi 21488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21489/* end confdefs.h. */ 21490 21491 #include <time.h> 21492 /* Check that time_t can represent 2**32 - 1 correctly. */ 21493 #define LARGE_TIME_T \\ 21494 ((time_t) (((time_t) 1 << 30) - 1 + 3 * ((time_t) 1 << 30))) 21495 int verify_time_t_range[(LARGE_TIME_T / 65537 == 65535 21496 && LARGE_TIME_T % 65537 == 0) 21497 ? 1 : -1]; 21498 21499int 21500main (void) 21501{ 21502 21503 ; 21504 return 0; 21505} 21506_ACEOF 21507if ac_fn_c_try_compile "$LINENO" 21508then : 21509 ac_cv_sys_year2038_opts="$ac_opt" 21510 ac_opt_found=yes 21511fi 21512rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 21513 test $ac_opt_found = no || break 21514 done 21515 CPPFLAGS="$ac_save_CPPFLAGS" 21516 test $ac_opt_found = yes || ac_cv_sys_year2038_opts="support not detected" ;; 21517esac 21518fi 21519{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_year2038_opts" >&5 21520printf "%s\n" "$ac_cv_sys_year2038_opts" >&6; } 21521 21522ac_have_year2038=yes 21523case $ac_cv_sys_year2038_opts in #( 21524 "none needed") : 21525 ;; #( 21526 "support not detected") : 21527 ac_have_year2038=no ;; #( 21528 "-D_TIME_BITS=64") : 21529 21530printf "%s\n" "#define _TIME_BITS 64" >>confdefs.h 21531 ;; #( 21532 "-D__MINGW_USE_VC2005_COMPAT") : 21533 21534printf "%s\n" "#define __MINGW_USE_VC2005_COMPAT 1" >>confdefs.h 21535 ;; #( 21536 "-U_USE_32_BIT_TIME_T"*) : 21537 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 21538printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 21539as_fn_error $? "the 'time_t' type is currently forced to be 32-bit. It 21540will stop working after mid-January 2038. Remove 21541_USE_32BIT_TIME_T from the compiler flags. 21542See 'config.log' for more details" "$LINENO" 5; } ;; #( 21543 *) : 21544 as_fn_error $? "internal error: bad value for \$ac_cv_sys_year2038_opts" "$LINENO" 5 ;; 21545esac 21546 21547fi 21548 21549fi 21550 21551# Checks for non-standard functions and fallback to libbsd if we can 21552# We only check for arc4random_buf, because if we have that, we don't 21553# need/use getentropy. 21554cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21555/* end confdefs.h. */ 21556 21557/* Override any GCC internal prototype to avoid an error. 21558 Use char because int might match the return type of a GCC 21559 builtin and then its argument prototype would still apply. 21560 The 'extern "C"' is for builds by C++ compilers; 21561 although this is not generally supported in C code supporting it here 21562 has little cost and some practical benefit (sr 110532). */ 21563#ifdef __cplusplus 21564extern "C" 21565#endif 21566char arc4random_buf (void); 21567int 21568main (void) 21569{ 21570return arc4random_buf (); 21571 ; 21572 return 0; 21573} 21574_ACEOF 21575if ac_fn_c_try_link "$LINENO" 21576then : 21577 TRY_LIBBSD="no" 21578else case e in #( 21579 e) TRY_LIBBSD="yes" ;; 21580esac 21581fi 21582rm -f core conftest.err conftest.$ac_objext conftest.beam \ 21583 conftest$ac_exeext conftest.$ac_ext 21584if test "x$TRY_LIBBSD" = "xyes" 21585then : 21586 21587pkg_failed=no 21588{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for LIBBSD" >&5 21589printf %s "checking for LIBBSD... " >&6; } 21590 21591if test -n "$LIBBSD_CFLAGS"; then 21592 pkg_cv_LIBBSD_CFLAGS="$LIBBSD_CFLAGS" 21593 elif test -n "$PKG_CONFIG"; then 21594 if test -n "$PKG_CONFIG" && \ 21595 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libbsd-overlay\""; } >&5 21596 ($PKG_CONFIG --exists --print-errors "libbsd-overlay") 2>&5 21597 ac_status=$? 21598 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 21599 test $ac_status = 0; }; then 21600 pkg_cv_LIBBSD_CFLAGS=`$PKG_CONFIG --cflags "libbsd-overlay" 2>/dev/null` 21601 test "x$?" != "x0" && pkg_failed=yes 21602else 21603 pkg_failed=yes 21604fi 21605 else 21606 pkg_failed=untried 21607fi 21608if test -n "$LIBBSD_LIBS"; then 21609 pkg_cv_LIBBSD_LIBS="$LIBBSD_LIBS" 21610 elif test -n "$PKG_CONFIG"; then 21611 if test -n "$PKG_CONFIG" && \ 21612 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libbsd-overlay\""; } >&5 21613 ($PKG_CONFIG --exists --print-errors "libbsd-overlay") 2>&5 21614 ac_status=$? 21615 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 21616 test $ac_status = 0; }; then 21617 pkg_cv_LIBBSD_LIBS=`$PKG_CONFIG --libs "libbsd-overlay" 2>/dev/null` 21618 test "x$?" != "x0" && pkg_failed=yes 21619else 21620 pkg_failed=yes 21621fi 21622 else 21623 pkg_failed=untried 21624fi 21625 21626 21627 21628if test $pkg_failed = yes; then 21629 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 21630printf "%s\n" "no" >&6; } 21631 21632if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 21633 _pkg_short_errors_supported=yes 21634else 21635 _pkg_short_errors_supported=no 21636fi 21637 if test $_pkg_short_errors_supported = yes; then 21638 LIBBSD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libbsd-overlay" 2>&1` 21639 else 21640 LIBBSD_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libbsd-overlay" 2>&1` 21641 fi 21642 # Put the nasty error message in config.log where it belongs 21643 echo "$LIBBSD_PKG_ERRORS" >&5 21644 21645 : 21646elif test $pkg_failed = untried; then 21647 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 21648printf "%s\n" "no" >&6; } 21649 : 21650else 21651 LIBBSD_CFLAGS=$pkg_cv_LIBBSD_CFLAGS 21652 LIBBSD_LIBS=$pkg_cv_LIBBSD_LIBS 21653 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21654printf "%s\n" "yes" >&6; } 21655 21656 CFLAGS="$CFLAGS $LIBBSD_CFLAGS" 21657 LIBS="$LIBS $LIBBSD_LIBS" 21658 21659fi 21660fi 21661 21662# Checks for library functions. 21663ac_fn_c_check_func "$LINENO" "asprintf" "ac_cv_func_asprintf" 21664if test "x$ac_cv_func_asprintf" = xyes 21665then : 21666 printf "%s\n" "#define HAVE_ASPRINTF 1" >>confdefs.h 21667 21668fi 21669ac_fn_c_check_func "$LINENO" "arc4random_buf" "ac_cv_func_arc4random_buf" 21670if test "x$ac_cv_func_arc4random_buf" = xyes 21671then : 21672 printf "%s\n" "#define HAVE_ARC4RANDOM_BUF 1" >>confdefs.h 21673 21674fi 21675ac_fn_c_check_func "$LINENO" "getentropy" "ac_cv_func_getentropy" 21676if test "x$ac_cv_func_getentropy" = xyes 21677then : 21678 printf "%s\n" "#define HAVE_GETENTROPY 1" >>confdefs.h 21679 21680fi 21681 21682 21683# Transport selection macro from xtrans.m4 21684 21685 21686 case $host_os in 21687 mingw*) unixdef="no" ;; 21688 *) unixdef="yes" ;; 21689 esac 21690 # Check whether --enable-unix-transport was given. 21691if test ${enable_unix_transport+y} 21692then : 21693 enableval=$enable_unix_transport; UNIXCONN=$enableval 21694else case e in #( 21695 e) UNIXCONN=$unixdef ;; 21696esac 21697fi 21698 21699 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support UNIX socket connections" >&5 21700printf %s "checking if Xtrans should support UNIX socket connections... " >&6; } 21701 if test "$UNIXCONN" = "yes"; then 21702 21703printf "%s\n" "#define UNIXCONN 1" >>confdefs.h 21704 21705 fi 21706 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $UNIXCONN" >&5 21707printf "%s\n" "$UNIXCONN" >&6; } 21708 # Check whether --enable-tcp-transport was given. 21709if test ${enable_tcp_transport+y} 21710then : 21711 enableval=$enable_tcp_transport; TCPCONN=$enableval 21712else case e in #( 21713 e) TCPCONN=yes ;; 21714esac 21715fi 21716 21717 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support TCP socket connections" >&5 21718printf %s "checking if Xtrans should support TCP socket connections... " >&6; } 21719 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $TCPCONN" >&5 21720printf "%s\n" "$TCPCONN" >&6; } 21721 if test "$TCPCONN" = "yes"; then 21722 21723printf "%s\n" "#define TCPCONN 1" >>confdefs.h 21724 21725 21726 # SVR4 hides these in libraries other than libc 21727 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5 21728printf %s "checking for library containing socket... " >&6; } 21729if test ${ac_cv_search_socket+y} 21730then : 21731 printf %s "(cached) " >&6 21732else case e in #( 21733 e) ac_func_search_save_LIBS=$LIBS 21734cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21735/* end confdefs.h. */ 21736 21737/* Override any GCC internal prototype to avoid an error. 21738 Use char because int might match the return type of a GCC 21739 builtin and then its argument prototype would still apply. 21740 The 'extern "C"' is for builds by C++ compilers; 21741 although this is not generally supported in C code supporting it here 21742 has little cost and some practical benefit (sr 110532). */ 21743#ifdef __cplusplus 21744extern "C" 21745#endif 21746char socket (void); 21747int 21748main (void) 21749{ 21750return socket (); 21751 ; 21752 return 0; 21753} 21754_ACEOF 21755for ac_lib in '' socket 21756do 21757 if test -z "$ac_lib"; then 21758 ac_res="none required" 21759 else 21760 ac_res=-l$ac_lib 21761 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 21762 fi 21763 if ac_fn_c_try_link "$LINENO" 21764then : 21765 ac_cv_search_socket=$ac_res 21766fi 21767rm -f core conftest.err conftest.$ac_objext conftest.beam \ 21768 conftest$ac_exeext 21769 if test ${ac_cv_search_socket+y} 21770then : 21771 break 21772fi 21773done 21774if test ${ac_cv_search_socket+y} 21775then : 21776 21777else case e in #( 21778 e) ac_cv_search_socket=no ;; 21779esac 21780fi 21781rm conftest.$ac_ext 21782LIBS=$ac_func_search_save_LIBS ;; 21783esac 21784fi 21785{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5 21786printf "%s\n" "$ac_cv_search_socket" >&6; } 21787ac_res=$ac_cv_search_socket 21788if test "$ac_res" != no 21789then : 21790 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 21791 21792fi 21793 21794 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5 21795printf %s "checking for library containing gethostbyname... " >&6; } 21796if test ${ac_cv_search_gethostbyname+y} 21797then : 21798 printf %s "(cached) " >&6 21799else case e in #( 21800 e) ac_func_search_save_LIBS=$LIBS 21801cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21802/* end confdefs.h. */ 21803 21804/* Override any GCC internal prototype to avoid an error. 21805 Use char because int might match the return type of a GCC 21806 builtin and then its argument prototype would still apply. 21807 The 'extern "C"' is for builds by C++ compilers; 21808 although this is not generally supported in C code supporting it here 21809 has little cost and some practical benefit (sr 110532). */ 21810#ifdef __cplusplus 21811extern "C" 21812#endif 21813char gethostbyname (void); 21814int 21815main (void) 21816{ 21817return gethostbyname (); 21818 ; 21819 return 0; 21820} 21821_ACEOF 21822for ac_lib in '' nsl 21823do 21824 if test -z "$ac_lib"; then 21825 ac_res="none required" 21826 else 21827 ac_res=-l$ac_lib 21828 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 21829 fi 21830 if ac_fn_c_try_link "$LINENO" 21831then : 21832 ac_cv_search_gethostbyname=$ac_res 21833fi 21834rm -f core conftest.err conftest.$ac_objext conftest.beam \ 21835 conftest$ac_exeext 21836 if test ${ac_cv_search_gethostbyname+y} 21837then : 21838 break 21839fi 21840done 21841if test ${ac_cv_search_gethostbyname+y} 21842then : 21843 21844else case e in #( 21845 e) ac_cv_search_gethostbyname=no ;; 21846esac 21847fi 21848rm conftest.$ac_ext 21849LIBS=$ac_func_search_save_LIBS ;; 21850esac 21851fi 21852{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5 21853printf "%s\n" "$ac_cv_search_gethostbyname" >&6; } 21854ac_res=$ac_cv_search_gethostbyname 21855if test "$ac_res" != no 21856then : 21857 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 21858 21859fi 21860 21861 if test "$ac_cv_search_socket$ac_cv_search_gethostbyname" = "nono"; then 21862 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for main in -lws2_32" >&5 21863printf %s "checking for main in -lws2_32... " >&6; } 21864if test ${ac_cv_lib_ws2_32_main+y} 21865then : 21866 printf %s "(cached) " >&6 21867else case e in #( 21868 e) ac_check_lib_save_LIBS=$LIBS 21869LIBS="-lws2_32 $LIBS" 21870cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21871/* end confdefs.h. */ 21872 21873 21874int 21875main (void) 21876{ 21877return main (); 21878 ; 21879 return 0; 21880} 21881_ACEOF 21882if ac_fn_c_try_link "$LINENO" 21883then : 21884 ac_cv_lib_ws2_32_main=yes 21885else case e in #( 21886 e) ac_cv_lib_ws2_32_main=no ;; 21887esac 21888fi 21889rm -f core conftest.err conftest.$ac_objext conftest.beam \ 21890 conftest$ac_exeext conftest.$ac_ext 21891LIBS=$ac_check_lib_save_LIBS ;; 21892esac 21893fi 21894{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ws2_32_main" >&5 21895printf "%s\n" "$ac_cv_lib_ws2_32_main" >&6; } 21896if test "x$ac_cv_lib_ws2_32_main" = xyes 21897then : 21898 printf "%s\n" "#define HAVE_LIBWS2_32 1" >>confdefs.h 21899 21900 LIBS="-lws2_32 $LIBS" 21901 21902fi 21903 21904 fi 21905 21906 # Needs to come after above checks for libsocket & libnsl for SVR4 systems 21907 # Check whether --enable-ipv6 was given. 21908if test ${enable_ipv6+y} 21909then : 21910 enableval=$enable_ipv6; IPV6CONN=$enableval 21911else case e in #( 21912 e) ac_fn_c_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo" 21913if test "x$ac_cv_func_getaddrinfo" = xyes 21914then : 21915 IPV6CONN=yes 21916else case e in #( 21917 e) IPV6CONN=no ;; 21918esac 21919fi 21920 ;; 21921esac 21922fi 21923 21924 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if IPv6 support should be built" >&5 21925printf %s "checking if IPv6 support should be built... " >&6; } 21926 if test "$IPV6CONN" = "yes"; then 21927 21928printf "%s\n" "#define IPv6 1" >>confdefs.h 21929 21930 fi 21931 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $IPV6CONN" >&5 21932printf "%s\n" "$IPV6CONN" >&6; } 21933 21934 # 4.3BSD-Reno added a new member to struct sockaddr_in 21935 ac_fn_c_check_member "$LINENO" "struct sockaddr_in" "sin_len" "ac_cv_member_struct_sockaddr_in_sin_len" " 21936#include <sys/types.h> 21937#include <sys/socket.h> 21938#include <netinet/in.h> 21939 21940" 21941if test "x$ac_cv_member_struct_sockaddr_in_sin_len" = xyes 21942then : 21943 21944printf "%s\n" "#define BSD44SOCKETS 1" >>confdefs.h 21945 21946fi 21947 21948 21949 # POSIX.1g changed the type of pointer passed to getsockname/getpeername/etc. 21950 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" " 21951$ac_includes_default 21952#include <sys/socket.h> 21953" 21954if test "x$ac_cv_type_socklen_t" = xyes 21955then : 21956 21957printf "%s\n" "#define HAVE_SOCKLEN_T 1" >>confdefs.h 21958 21959 21960fi 21961 21962 21963 # XPG4v2/UNIX95 added msg_control - check to see if we need to define 21964 # _XOPEN_SOURCE to get it (such as on Solaris) 21965 ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_control" "ac_cv_member_struct_msghdr_msg_control" " 21966$ac_includes_default 21967#include <sys/socket.h> 21968 21969" 21970if test "x$ac_cv_member_struct_msghdr_msg_control" = xyes 21971then : 21972 21973fi 21974 21975 # First try for Solaris in C99 compliant mode, which requires XPG6/UNIX03 21976 if test "x$ac_cv_member_struct_msghdr_msg_control" = xno; then 21977 unset ac_cv_member_struct_msghdr_msg_control 21978 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying again with _XOPEN_SOURCE=600" >&5 21979printf "%s\n" "$as_me: trying again with _XOPEN_SOURCE=600" >&6;} 21980 ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_control" "ac_cv_member_struct_msghdr_msg_control" " 21981#define _XOPEN_SOURCE 600 21982$ac_includes_default 21983#include <sys/socket.h> 21984 21985" 21986if test "x$ac_cv_member_struct_msghdr_msg_control" = xyes 21987then : 21988 21989printf "%s\n" "#define _XOPEN_SOURCE 600" >>confdefs.h 21990 21991 21992fi 21993 21994 fi 21995 # If that didn't work, fall back to XPG5/UNIX98 with C89 21996 if test "x$ac_cv_member_struct_msghdr_msg_control" = xno; then 21997 unset ac_cv_member_struct_msghdr_msg_control 21998 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying again with _XOPEN_SOURCE=500" >&5 21999printf "%s\n" "$as_me: trying again with _XOPEN_SOURCE=500" >&6;} 22000 ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_control" "ac_cv_member_struct_msghdr_msg_control" " 22001#define _XOPEN_SOURCE 500 22002$ac_includes_default 22003#include <sys/socket.h> 22004 22005" 22006if test "x$ac_cv_member_struct_msghdr_msg_control" = xyes 22007then : 22008 22009printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h 22010 22011 22012fi 22013 22014 fi 22015 22016 22017 22018 fi 22019 case $host_os in 22020 solaris*) localdef="yes" ;; 22021 *) localdef="no" ;; 22022 esac 22023 # Check whether --enable-local-transport was given. 22024if test ${enable_local_transport+y} 22025then : 22026 enableval=$enable_local_transport; LOCALCONN=$enableval 22027else case e in #( 22028 e) LOCALCONN=$localdef ;; 22029esac 22030fi 22031 22032 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support os-specific local connections" >&5 22033printf %s "checking if Xtrans should support os-specific local connections... " >&6; } 22034 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LOCALCONN" >&5 22035printf "%s\n" "$LOCALCONN" >&6; } 22036 if test "$LOCALCONN" = "yes"; then 22037 22038printf "%s\n" "#define LOCALCONN 1" >>confdefs.h 22039 22040 fi 22041 22042 # Other functions Xtrans may need 22043 ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp" 22044if test "x$ac_cv_func_strcasecmp" = xyes 22045then : 22046 printf "%s\n" "#define HAVE_STRCASECMP 1" >>confdefs.h 22047 22048fi 22049ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy" 22050if test "x$ac_cv_func_strlcpy" = xyes 22051then : 22052 printf "%s\n" "#define HAVE_STRLCPY 1" >>confdefs.h 22053 22054fi 22055 22056 22057 22058 22059printf "%s\n" "#define ICE_t 1" >>confdefs.h 22060 22061 22062printf "%s\n" "#define TRANS_CLIENT 1" >>confdefs.h 22063 22064 22065printf "%s\n" "#define TRANS_SERVER 1" >>confdefs.h 22066 22067 22068# Allow checking code with lint, sparse, etc. 22069 22070 22071 22072 22073 22074# Check whether --with-lint was given. 22075if test ${with_lint+y} 22076then : 22077 withval=$with_lint; use_lint=$withval 22078else case e in #( 22079 e) use_lint=no ;; 22080esac 22081fi 22082 22083 22084# Obtain platform specific info like program name and options 22085# The lint program on FreeBSD and NetBSD is different from the one on Solaris 22086case $host_os in 22087 *linux* | *openbsd* | kfreebsd*-gnu | darwin* | cygwin*) 22088 lint_name=splint 22089 lint_options="-badflag" 22090 ;; 22091 *freebsd* | *netbsd*) 22092 lint_name=lint 22093 lint_options="-u -b" 22094 ;; 22095 *solaris*) 22096 lint_name=lint 22097 lint_options="-u -b -h -erroff=E_INDISTING_FROM_TRUNC2" 22098 ;; 22099esac 22100 22101# Test for the presence of the program (either guessed by the code or spelled out by the user) 22102if test "x$use_lint" = x"yes" ; then 22103 # Extract the first word of "$lint_name", so it can be a program name with args. 22104set dummy $lint_name; ac_word=$2 22105{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 22106printf %s "checking for $ac_word... " >&6; } 22107if test ${ac_cv_path_LINT+y} 22108then : 22109 printf %s "(cached) " >&6 22110else case e in #( 22111 e) case $LINT in 22112 [\\/]* | ?:[\\/]*) 22113 ac_cv_path_LINT="$LINT" # Let the user override the test with a path. 22114 ;; 22115 *) 22116 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22117for as_dir in $PATH 22118do 22119 IFS=$as_save_IFS 22120 case $as_dir in #((( 22121 '') as_dir=./ ;; 22122 */) ;; 22123 *) as_dir=$as_dir/ ;; 22124 esac 22125 for ac_exec_ext in '' $ac_executable_extensions; do 22126 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 22127 ac_cv_path_LINT="$as_dir$ac_word$ac_exec_ext" 22128 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 22129 break 2 22130 fi 22131done 22132 done 22133IFS=$as_save_IFS 22134 22135 ;; 22136esac ;; 22137esac 22138fi 22139LINT=$ac_cv_path_LINT 22140if test -n "$LINT"; then 22141 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LINT" >&5 22142printf "%s\n" "$LINT" >&6; } 22143else 22144 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 22145printf "%s\n" "no" >&6; } 22146fi 22147 22148 22149 if test "x$LINT" = "x"; then 22150 as_fn_error $? "--with-lint=yes specified but lint-style tool not found in PATH" "$LINENO" 5 22151 fi 22152elif test "x$use_lint" = x"no" ; then 22153 if test "x$LINT" != "x"; then 22154 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&5 22155printf "%s\n" "$as_me: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&2;} 22156 fi 22157else 22158 as_fn_error $? "--with-lint expects 'yes' or 'no'. Use LINT variable to specify path." "$LINENO" 5 22159fi 22160 22161# User supplied flags override default flags 22162if test "x$LINT_FLAGS" != "x"; then 22163 lint_options=$LINT_FLAGS 22164fi 22165 22166LINT_FLAGS=$lint_options 22167 22168 if test "x$LINT" != x; then 22169 LINT_TRUE= 22170 LINT_FALSE='#' 22171else 22172 LINT_TRUE='#' 22173 LINT_FALSE= 22174fi 22175 22176 22177 22178 22179 22180# Check whether --enable-lint-library was given. 22181if test ${enable_lint_library+y} 22182then : 22183 enableval=$enable_lint_library; make_lint_lib=$enableval 22184else case e in #( 22185 e) make_lint_lib=no ;; 22186esac 22187fi 22188 22189 22190if test "x$make_lint_lib" = x"yes" ; then 22191 LINTLIB=llib-lICE.ln 22192 if test "x$LINT" = "x"; then 22193 as_fn_error $? "Cannot make lint library without --with-lint" "$LINENO" 5 22194 fi 22195elif test "x$make_lint_lib" != x"no" ; then 22196 as_fn_error $? "--enable-lint-library expects 'yes' or 'no'." "$LINENO" 5 22197fi 22198 22199 22200 if test x$make_lint_lib != xno; then 22201 MAKE_LINT_LIB_TRUE= 22202 MAKE_LINT_LIB_FALSE='#' 22203else 22204 MAKE_LINT_LIB_TRUE='#' 22205 MAKE_LINT_LIB_FALSE= 22206fi 22207 22208 22209 22210LINT_FLAGS="${LINT_FLAGS} ${ICE_CFLAGS} ${XTRANS_CFLAGS}" 22211 22212ac_config_files="$ac_config_files Makefile doc/Makefile specs/Makefile src/Makefile ice.pc" 22213 22214cat >confcache <<\_ACEOF 22215# This file is a shell script that caches the results of configure 22216# tests run on this system so they can be shared between configure 22217# scripts and configure runs, see configure's option --config-cache. 22218# It is not useful on other systems. If it contains results you don't 22219# want to keep, you may remove or edit it. 22220# 22221# config.status only pays attention to the cache file if you give it 22222# the --recheck option to rerun configure. 22223# 22224# 'ac_cv_env_foo' variables (set or unset) will be overridden when 22225# loading this file, other *unset* 'ac_cv_foo' will be assigned the 22226# following values. 22227 22228_ACEOF 22229 22230# The following way of writing the cache mishandles newlines in values, 22231# but we know of no workaround that is simple, portable, and efficient. 22232# So, we kill variables containing newlines. 22233# Ultrix sh set writes to stderr and can't be redirected directly, 22234# and sets the high bit in the cache file unless we assign to the vars. 22235( 22236 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 22237 eval ac_val=\$$ac_var 22238 case $ac_val in #( 22239 *${as_nl}*) 22240 case $ac_var in #( 22241 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 22242printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 22243 esac 22244 case $ac_var in #( 22245 _ | IFS | as_nl) ;; #( 22246 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 22247 *) { eval $ac_var=; unset $ac_var;} ;; 22248 esac ;; 22249 esac 22250 done 22251 22252 (set) 2>&1 | 22253 case $as_nl`(ac_space=' '; set) 2>&1` in #( 22254 *${as_nl}ac_space=\ *) 22255 # 'set' does not quote correctly, so add quotes: double-quote 22256 # substitution turns \\\\ into \\, and sed turns \\ into \. 22257 sed -n \ 22258 "s/'/'\\\\''/g; 22259 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 22260 ;; #( 22261 *) 22262 # 'set' quotes correctly as required by POSIX, so do not add quotes. 22263 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 22264 ;; 22265 esac | 22266 sort 22267) | 22268 sed ' 22269 /^ac_cv_env_/b end 22270 t clear 22271 :clear 22272 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/ 22273 t end 22274 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 22275 :end' >>confcache 22276if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 22277 if test -w "$cache_file"; then 22278 if test "x$cache_file" != "x/dev/null"; then 22279 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 22280printf "%s\n" "$as_me: updating cache $cache_file" >&6;} 22281 if test ! -f "$cache_file" || test -h "$cache_file"; then 22282 cat confcache >"$cache_file" 22283 else 22284 case $cache_file in #( 22285 */* | ?:*) 22286 mv -f confcache "$cache_file"$$ && 22287 mv -f "$cache_file"$$ "$cache_file" ;; #( 22288 *) 22289 mv -f confcache "$cache_file" ;; 22290 esac 22291 fi 22292 fi 22293 else 22294 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 22295printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;} 22296 fi 22297fi 22298rm -f confcache 22299 22300test "x$prefix" = xNONE && prefix=$ac_default_prefix 22301# Let make expand exec_prefix. 22302test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 22303 22304DEFS=-DHAVE_CONFIG_H 22305 22306ac_libobjs= 22307ac_ltlibobjs= 22308U= 22309for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 22310 # 1. Remove the extension, and $U if already installed. 22311 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 22312 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"` 22313 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 22314 # will be set to the directory where LIBOBJS objects are built. 22315 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 22316 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 22317done 22318LIBOBJS=$ac_libobjs 22319 22320LTLIBOBJS=$ac_ltlibobjs 22321 22322 22323{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 22324printf %s "checking that generated files are newer than configure... " >&6; } 22325 if test -n "$am_sleep_pid"; then 22326 # Hide warnings about reused PIDs. 22327 wait $am_sleep_pid 2>/dev/null 22328 fi 22329 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5 22330printf "%s\n" "done" >&6; } 22331if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 22332 as_fn_error $? "conditional \"AMDEP\" was never defined. 22333Usually this means the macro was only invoked conditionally." "$LINENO" 5 22334fi 22335if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 22336 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 22337Usually this means the macro was only invoked conditionally." "$LINENO" 5 22338fi 22339case $enable_silent_rules in # ((( 22340 yes) AM_DEFAULT_VERBOSITY=0;; 22341 no) AM_DEFAULT_VERBOSITY=1;; 22342esac 22343if test $am_cv_make_support_nested_variables = yes; then 22344 AM_V='$(V)' 22345 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 22346else 22347 AM_V=$AM_DEFAULT_VERBOSITY 22348 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 22349fi 22350 22351 if test -n "$EXEEXT"; then 22352 am__EXEEXT_TRUE= 22353 am__EXEEXT_FALSE='#' 22354else 22355 am__EXEEXT_TRUE='#' 22356 am__EXEEXT_FALSE= 22357fi 22358 22359if test -z "${ENABLE_DOCS_TRUE}" && test -z "${ENABLE_DOCS_FALSE}"; then 22360 as_fn_error $? "conditional \"ENABLE_DOCS\" was never defined. 22361Usually this means the macro was only invoked conditionally." "$LINENO" 5 22362fi 22363if test -z "${ENABLE_SPECS_TRUE}" && test -z "${ENABLE_SPECS_FALSE}"; then 22364 as_fn_error $? "conditional \"ENABLE_SPECS\" was never defined. 22365Usually this means the macro was only invoked conditionally." "$LINENO" 5 22366fi 22367if test -z "${HAVE_XMLTO_TEXT_TRUE}" && test -z "${HAVE_XMLTO_TEXT_FALSE}"; then 22368 as_fn_error $? "conditional \"HAVE_XMLTO_TEXT\" was never defined. 22369Usually this means the macro was only invoked conditionally." "$LINENO" 5 22370fi 22371if test -z "${HAVE_XMLTO_TRUE}" && test -z "${HAVE_XMLTO_FALSE}"; then 22372 as_fn_error $? "conditional \"HAVE_XMLTO\" was never defined. 22373Usually this means the macro was only invoked conditionally." "$LINENO" 5 22374fi 22375if test -z "${HAVE_FOP_TRUE}" && test -z "${HAVE_FOP_FALSE}"; then 22376 as_fn_error $? "conditional \"HAVE_FOP\" was never defined. 22377Usually this means the macro was only invoked conditionally." "$LINENO" 5 22378fi 22379if test -z "${HAVE_XSLTPROC_TRUE}" && test -z "${HAVE_XSLTPROC_FALSE}"; then 22380 as_fn_error $? "conditional \"HAVE_XSLTPROC\" was never defined. 22381Usually this means the macro was only invoked conditionally." "$LINENO" 5 22382fi 22383if test -z "${HAVE_STYLESHEETS_TRUE}" && test -z "${HAVE_STYLESHEETS_FALSE}"; then 22384 as_fn_error $? "conditional \"HAVE_STYLESHEETS\" was never defined. 22385Usually this means the macro was only invoked conditionally." "$LINENO" 5 22386fi 22387# Check whether --enable-year2038 was given. 22388if test ${enable_year2038+y} 22389then : 22390 enableval=$enable_year2038; 22391fi 22392 22393if test -z "${LINT_TRUE}" && test -z "${LINT_FALSE}"; then 22394 as_fn_error $? "conditional \"LINT\" was never defined. 22395Usually this means the macro was only invoked conditionally." "$LINENO" 5 22396fi 22397if test -z "${MAKE_LINT_LIB_TRUE}" && test -z "${MAKE_LINT_LIB_FALSE}"; then 22398 as_fn_error $? "conditional \"MAKE_LINT_LIB\" was never defined. 22399Usually this means the macro was only invoked conditionally." "$LINENO" 5 22400fi 22401 22402: "${CONFIG_STATUS=./config.status}" 22403ac_write_fail=0 22404ac_clean_files_save=$ac_clean_files 22405ac_clean_files="$ac_clean_files $CONFIG_STATUS" 22406{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 22407printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;} 22408as_write_fail=0 22409cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 22410#! $SHELL 22411# Generated by $as_me. 22412# Run this file to recreate the current configuration. 22413# Compiler output produced by configure, useful for debugging 22414# configure, is in config.log if it exists. 22415 22416debug=false 22417ac_cs_recheck=false 22418ac_cs_silent=false 22419 22420SHELL=\${CONFIG_SHELL-$SHELL} 22421export SHELL 22422_ASEOF 22423cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 22424## -------------------- ## 22425## M4sh Initialization. ## 22426## -------------------- ## 22427 22428# Be more Bourne compatible 22429DUALCASE=1; export DUALCASE # for MKS sh 22430if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 22431then : 22432 emulate sh 22433 NULLCMD=: 22434 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 22435 # is contrary to our usage. Disable this feature. 22436 alias -g '${1+"$@"}'='"$@"' 22437 setopt NO_GLOB_SUBST 22438else case e in #( 22439 e) case `(set -o) 2>/dev/null` in #( 22440 *posix*) : 22441 set -o posix ;; #( 22442 *) : 22443 ;; 22444esac ;; 22445esac 22446fi 22447 22448 22449 22450# Reset variables that may have inherited troublesome values from 22451# the environment. 22452 22453# IFS needs to be set, to space, tab, and newline, in precisely that order. 22454# (If _AS_PATH_WALK were called with IFS unset, it would have the 22455# side effect of setting IFS to empty, thus disabling word splitting.) 22456# Quoting is to prevent editors from complaining about space-tab. 22457as_nl=' 22458' 22459export as_nl 22460IFS=" "" $as_nl" 22461 22462PS1='$ ' 22463PS2='> ' 22464PS4='+ ' 22465 22466# Ensure predictable behavior from utilities with locale-dependent output. 22467LC_ALL=C 22468export LC_ALL 22469LANGUAGE=C 22470export LANGUAGE 22471 22472# We cannot yet rely on "unset" to work, but we need these variables 22473# to be unset--not just set to an empty or harmless value--now, to 22474# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct 22475# also avoids known problems related to "unset" and subshell syntax 22476# in other old shells (e.g. bash 2.01 and pdksh 5.2.14). 22477for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH 22478do eval test \${$as_var+y} \ 22479 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 22480done 22481 22482# Ensure that fds 0, 1, and 2 are open. 22483if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi 22484if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi 22485if (exec 3>&2) ; then :; else exec 2>/dev/null; fi 22486 22487# The user is always right. 22488if ${PATH_SEPARATOR+false} :; then 22489 PATH_SEPARATOR=: 22490 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 22491 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 22492 PATH_SEPARATOR=';' 22493 } 22494fi 22495 22496 22497# Find who we are. Look in the path if we contain no directory separator. 22498as_myself= 22499case $0 in #(( 22500 *[\\/]* ) as_myself=$0 ;; 22501 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22502for as_dir in $PATH 22503do 22504 IFS=$as_save_IFS 22505 case $as_dir in #((( 22506 '') as_dir=./ ;; 22507 */) ;; 22508 *) as_dir=$as_dir/ ;; 22509 esac 22510 test -r "$as_dir$0" && as_myself=$as_dir$0 && break 22511 done 22512IFS=$as_save_IFS 22513 22514 ;; 22515esac 22516# We did not find ourselves, most probably we were run as 'sh COMMAND' 22517# in which case we are not to be found in the path. 22518if test "x$as_myself" = x; then 22519 as_myself=$0 22520fi 22521if test ! -f "$as_myself"; then 22522 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 22523 exit 1 22524fi 22525 22526 22527 22528# as_fn_error STATUS ERROR [LINENO LOG_FD] 22529# ---------------------------------------- 22530# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 22531# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 22532# script with STATUS, using 1 if that was 0. 22533as_fn_error () 22534{ 22535 as_status=$1; test $as_status -eq 0 && as_status=1 22536 if test "$4"; then 22537 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 22538 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 22539 fi 22540 printf "%s\n" "$as_me: error: $2" >&2 22541 as_fn_exit $as_status 22542} # as_fn_error 22543 22544 22545# as_fn_set_status STATUS 22546# ----------------------- 22547# Set $? to STATUS, without forking. 22548as_fn_set_status () 22549{ 22550 return $1 22551} # as_fn_set_status 22552 22553# as_fn_exit STATUS 22554# ----------------- 22555# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 22556as_fn_exit () 22557{ 22558 set +e 22559 as_fn_set_status $1 22560 exit $1 22561} # as_fn_exit 22562 22563# as_fn_unset VAR 22564# --------------- 22565# Portably unset VAR. 22566as_fn_unset () 22567{ 22568 { eval $1=; unset $1;} 22569} 22570as_unset=as_fn_unset 22571 22572# as_fn_append VAR VALUE 22573# ---------------------- 22574# Append the text in VALUE to the end of the definition contained in VAR. Take 22575# advantage of any shell optimizations that allow amortized linear growth over 22576# repeated appends, instead of the typical quadratic growth present in naive 22577# implementations. 22578if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null 22579then : 22580 eval 'as_fn_append () 22581 { 22582 eval $1+=\$2 22583 }' 22584else case e in #( 22585 e) as_fn_append () 22586 { 22587 eval $1=\$$1\$2 22588 } ;; 22589esac 22590fi # as_fn_append 22591 22592# as_fn_arith ARG... 22593# ------------------ 22594# Perform arithmetic evaluation on the ARGs, and store the result in the 22595# global $as_val. Take advantage of shells that can avoid forks. The arguments 22596# must be portable across $(()) and expr. 22597if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null 22598then : 22599 eval 'as_fn_arith () 22600 { 22601 as_val=$(( $* )) 22602 }' 22603else case e in #( 22604 e) as_fn_arith () 22605 { 22606 as_val=`expr "$@" || test $? -eq 1` 22607 } ;; 22608esac 22609fi # as_fn_arith 22610 22611 22612if expr a : '\(a\)' >/dev/null 2>&1 && 22613 test "X`expr 00001 : '.*\(...\)'`" = X001; then 22614 as_expr=expr 22615else 22616 as_expr=false 22617fi 22618 22619if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 22620 as_basename=basename 22621else 22622 as_basename=false 22623fi 22624 22625if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 22626 as_dirname=dirname 22627else 22628 as_dirname=false 22629fi 22630 22631as_me=`$as_basename -- "$0" || 22632$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 22633 X"$0" : 'X\(//\)$' \| \ 22634 X"$0" : 'X\(/\)' \| . 2>/dev/null || 22635printf "%s\n" X/"$0" | 22636 sed '/^.*\/\([^/][^/]*\)\/*$/{ 22637 s//\1/ 22638 q 22639 } 22640 /^X\/\(\/\/\)$/{ 22641 s//\1/ 22642 q 22643 } 22644 /^X\/\(\/\).*/{ 22645 s//\1/ 22646 q 22647 } 22648 s/.*/./; q'` 22649 22650# Avoid depending upon Character Ranges. 22651as_cr_letters='abcdefghijklmnopqrstuvwxyz' 22652as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 22653as_cr_Letters=$as_cr_letters$as_cr_LETTERS 22654as_cr_digits='0123456789' 22655as_cr_alnum=$as_cr_Letters$as_cr_digits 22656 22657 22658# Determine whether it's possible to make 'echo' print without a newline. 22659# These variables are no longer used directly by Autoconf, but are AC_SUBSTed 22660# for compatibility with existing Makefiles. 22661ECHO_C= ECHO_N= ECHO_T= 22662case `echo -n x` in #((((( 22663-n*) 22664 case `echo 'xy\c'` in 22665 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 22666 xy) ECHO_C='\c';; 22667 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 22668 ECHO_T=' ';; 22669 esac;; 22670*) 22671 ECHO_N='-n';; 22672esac 22673 22674# For backward compatibility with old third-party macros, we provide 22675# the shell variables $as_echo and $as_echo_n. New code should use 22676# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. 22677as_echo='printf %s\n' 22678as_echo_n='printf %s' 22679 22680rm -f conf$$ conf$$.exe conf$$.file 22681if test -d conf$$.dir; then 22682 rm -f conf$$.dir/conf$$.file 22683else 22684 rm -f conf$$.dir 22685 mkdir conf$$.dir 2>/dev/null 22686fi 22687if (echo >conf$$.file) 2>/dev/null; then 22688 if ln -s conf$$.file conf$$ 2>/dev/null; then 22689 as_ln_s='ln -s' 22690 # ... but there are two gotchas: 22691 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail. 22692 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable. 22693 # In both cases, we have to default to 'cp -pR'. 22694 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 22695 as_ln_s='cp -pR' 22696 elif ln conf$$.file conf$$ 2>/dev/null; then 22697 as_ln_s=ln 22698 else 22699 as_ln_s='cp -pR' 22700 fi 22701else 22702 as_ln_s='cp -pR' 22703fi 22704rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 22705rmdir conf$$.dir 2>/dev/null 22706 22707 22708# as_fn_mkdir_p 22709# ------------- 22710# Create "$as_dir" as a directory, including parents if necessary. 22711as_fn_mkdir_p () 22712{ 22713 22714 case $as_dir in #( 22715 -*) as_dir=./$as_dir;; 22716 esac 22717 test -d "$as_dir" || eval $as_mkdir_p || { 22718 as_dirs= 22719 while :; do 22720 case $as_dir in #( 22721 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 22722 *) as_qdir=$as_dir;; 22723 esac 22724 as_dirs="'$as_qdir' $as_dirs" 22725 as_dir=`$as_dirname -- "$as_dir" || 22726$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22727 X"$as_dir" : 'X\(//\)[^/]' \| \ 22728 X"$as_dir" : 'X\(//\)$' \| \ 22729 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 22730printf "%s\n" X"$as_dir" | 22731 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 22732 s//\1/ 22733 q 22734 } 22735 /^X\(\/\/\)[^/].*/{ 22736 s//\1/ 22737 q 22738 } 22739 /^X\(\/\/\)$/{ 22740 s//\1/ 22741 q 22742 } 22743 /^X\(\/\).*/{ 22744 s//\1/ 22745 q 22746 } 22747 s/.*/./; q'` 22748 test -d "$as_dir" && break 22749 done 22750 test -z "$as_dirs" || eval "mkdir $as_dirs" 22751 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 22752 22753 22754} # as_fn_mkdir_p 22755if mkdir -p . 2>/dev/null; then 22756 as_mkdir_p='mkdir -p "$as_dir"' 22757else 22758 test -d ./-p && rmdir ./-p 22759 as_mkdir_p=false 22760fi 22761 22762 22763# as_fn_executable_p FILE 22764# ----------------------- 22765# Test if FILE is an executable regular file. 22766as_fn_executable_p () 22767{ 22768 test -f "$1" && test -x "$1" 22769} # as_fn_executable_p 22770as_test_x='test -x' 22771as_executable_p=as_fn_executable_p 22772 22773# Sed expression to map a string onto a valid CPP name. 22774as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" 22775as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated 22776 22777# Sed expression to map a string onto a valid variable name. 22778as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g" 22779as_tr_sh="eval sed '$as_sed_sh'" # deprecated 22780 22781 22782exec 6>&1 22783## ----------------------------------- ## 22784## Main body of $CONFIG_STATUS script. ## 22785## ----------------------------------- ## 22786_ASEOF 22787test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 22788 22789cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 22790# Save the log message, to keep $0 and so on meaningful, and to 22791# report actual input values of CONFIG_FILES etc. instead of their 22792# values after options handling. 22793ac_log=" 22794This file was extended by libICE $as_me 1.1.2, which was 22795generated by GNU Autoconf 2.72. Invocation command line was 22796 22797 CONFIG_FILES = $CONFIG_FILES 22798 CONFIG_HEADERS = $CONFIG_HEADERS 22799 CONFIG_LINKS = $CONFIG_LINKS 22800 CONFIG_COMMANDS = $CONFIG_COMMANDS 22801 $ $0 $@ 22802 22803on `(hostname || uname -n) 2>/dev/null | sed 1q` 22804" 22805 22806_ACEOF 22807 22808case $ac_config_files in *" 22809"*) set x $ac_config_files; shift; ac_config_files=$*;; 22810esac 22811 22812case $ac_config_headers in *" 22813"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 22814esac 22815 22816 22817cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 22818# Files that config.status was made for. 22819config_files="$ac_config_files" 22820config_headers="$ac_config_headers" 22821config_commands="$ac_config_commands" 22822 22823_ACEOF 22824 22825cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 22826ac_cs_usage="\ 22827'$as_me' instantiates files and other configuration actions 22828from templates according to the current configuration. Unless the files 22829and actions are specified as TAGs, all are instantiated by default. 22830 22831Usage: $0 [OPTION]... [TAG]... 22832 22833 -h, --help print this help, then exit 22834 -V, --version print version number and configuration settings, then exit 22835 --config print configuration, then exit 22836 -q, --quiet, --silent 22837 do not print progress messages 22838 -d, --debug don't remove temporary files 22839 --recheck update $as_me by reconfiguring in the same conditions 22840 --file=FILE[:TEMPLATE] 22841 instantiate the configuration file FILE 22842 --header=FILE[:TEMPLATE] 22843 instantiate the configuration header FILE 22844 22845Configuration files: 22846$config_files 22847 22848Configuration headers: 22849$config_headers 22850 22851Configuration commands: 22852$config_commands 22853 22854Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libice/-/issues>." 22855 22856_ACEOF 22857ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"` 22858ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"` 22859cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 22860ac_cs_config='$ac_cs_config_escaped' 22861ac_cs_version="\\ 22862libICE config.status 1.1.2 22863configured by $0, generated by GNU Autoconf 2.72, 22864 with options \\"\$ac_cs_config\\" 22865 22866Copyright (C) 2023 Free Software Foundation, Inc. 22867This config.status script is free software; the Free Software Foundation 22868gives unlimited permission to copy, distribute and modify it." 22869 22870ac_pwd='$ac_pwd' 22871srcdir='$srcdir' 22872INSTALL='$INSTALL' 22873MKDIR_P='$MKDIR_P' 22874AWK='$AWK' 22875test -n "\$AWK" || AWK=awk 22876_ACEOF 22877 22878cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 22879# The default lists apply if the user does not specify any file. 22880ac_need_defaults=: 22881while test $# != 0 22882do 22883 case $1 in 22884 --*=?*) 22885 ac_option=`expr "X$1" : 'X\([^=]*\)='` 22886 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 22887 ac_shift=: 22888 ;; 22889 --*=) 22890 ac_option=`expr "X$1" : 'X\([^=]*\)='` 22891 ac_optarg= 22892 ac_shift=: 22893 ;; 22894 *) 22895 ac_option=$1 22896 ac_optarg=$2 22897 ac_shift=shift 22898 ;; 22899 esac 22900 22901 case $ac_option in 22902 # Handling of the options. 22903 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 22904 ac_cs_recheck=: ;; 22905 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 22906 printf "%s\n" "$ac_cs_version"; exit ;; 22907 --config | --confi | --conf | --con | --co | --c ) 22908 printf "%s\n" "$ac_cs_config"; exit ;; 22909 --debug | --debu | --deb | --de | --d | -d ) 22910 debug=: ;; 22911 --file | --fil | --fi | --f ) 22912 $ac_shift 22913 case $ac_optarg in 22914 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 22915 '') as_fn_error $? "missing file argument" ;; 22916 esac 22917 as_fn_append CONFIG_FILES " '$ac_optarg'" 22918 ac_need_defaults=false;; 22919 --header | --heade | --head | --hea ) 22920 $ac_shift 22921 case $ac_optarg in 22922 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 22923 esac 22924 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 22925 ac_need_defaults=false;; 22926 --he | --h) 22927 # Conflict between --help and --header 22928 as_fn_error $? "ambiguous option: '$1' 22929Try '$0 --help' for more information.";; 22930 --help | --hel | -h ) 22931 printf "%s\n" "$ac_cs_usage"; exit ;; 22932 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 22933 | -silent | --silent | --silen | --sile | --sil | --si | --s) 22934 ac_cs_silent=: ;; 22935 22936 # This is an error. 22937 -*) as_fn_error $? "unrecognized option: '$1' 22938Try '$0 --help' for more information." ;; 22939 22940 *) as_fn_append ac_config_targets " $1" 22941 ac_need_defaults=false ;; 22942 22943 esac 22944 shift 22945done 22946 22947ac_configure_extra_args= 22948 22949if $ac_cs_silent; then 22950 exec 6>/dev/null 22951 ac_configure_extra_args="$ac_configure_extra_args --silent" 22952fi 22953 22954_ACEOF 22955cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 22956if \$ac_cs_recheck; then 22957 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 22958 shift 22959 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6 22960 CONFIG_SHELL='$SHELL' 22961 export CONFIG_SHELL 22962 exec "\$@" 22963fi 22964 22965_ACEOF 22966cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 22967exec 5>>config.log 22968{ 22969 echo 22970 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 22971## Running $as_me. ## 22972_ASBOX 22973 printf "%s\n" "$ac_log" 22974} >&5 22975 22976_ACEOF 22977cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 22978# 22979# INIT-COMMANDS 22980# 22981AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}" 22982 22983 22984# The HP-UX ksh and POSIX shell print the target directory to stdout 22985# if CDPATH is set. 22986(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 22987 22988sed_quote_subst='$sed_quote_subst' 22989double_quote_subst='$double_quote_subst' 22990delay_variable_subst='$delay_variable_subst' 22991macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 22992macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 22993enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 22994enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 22995pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 22996enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 22997shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`' 22998SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 22999ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 23000PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 23001host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 23002host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 23003host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 23004build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 23005build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 23006build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 23007SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 23008Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 23009GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 23010EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 23011FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 23012LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 23013NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 23014LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 23015max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 23016ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 23017exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 23018lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 23019lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 23020lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 23021lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 23022lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 23023reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 23024reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 23025FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`' 23026OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 23027deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 23028file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 23029file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 23030want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 23031DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 23032sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 23033AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 23034lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`' 23035AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 23036archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 23037STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 23038RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 23039old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 23040old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 23041old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 23042lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 23043CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 23044CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 23045compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 23046GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 23047lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 23048lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 23049lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`' 23050lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 23051lt_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"`' 23052lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`' 23053nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 23054lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 23055lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`' 23056objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 23057MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 23058lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 23059lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 23060lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 23061lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 23062lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 23063need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 23064MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 23065DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 23066NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 23067LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 23068OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 23069OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 23070libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 23071shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 23072extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 23073archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 23074enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 23075export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 23076whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 23077compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 23078old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 23079old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 23080archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 23081archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 23082module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 23083module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 23084with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 23085allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 23086no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 23087hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 23088hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 23089hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 23090hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 23091hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 23092hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 23093hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 23094inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 23095link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 23096always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 23097export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 23098exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 23099include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 23100prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 23101postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 23102file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 23103variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 23104need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 23105need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 23106version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 23107runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 23108shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 23109shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 23110libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 23111library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 23112soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 23113install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 23114postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 23115postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 23116finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 23117finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 23118hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 23119sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 23120configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`' 23121configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`' 23122hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 23123enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 23124enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 23125enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 23126old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 23127striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 23128 23129LTCC='$LTCC' 23130LTCFLAGS='$LTCFLAGS' 23131compiler='$compiler_DEFAULT' 23132 23133# A function that is used when there is no print builtin or printf. 23134func_fallback_echo () 23135{ 23136 eval 'cat <<_LTECHO_EOF 23137\$1 23138_LTECHO_EOF' 23139} 23140 23141# Quote evaled strings. 23142for var in SHELL \ 23143ECHO \ 23144PATH_SEPARATOR \ 23145SED \ 23146GREP \ 23147EGREP \ 23148FGREP \ 23149LD \ 23150NM \ 23151LN_S \ 23152lt_SP2NL \ 23153lt_NL2SP \ 23154reload_flag \ 23155FILECMD \ 23156OBJDUMP \ 23157deplibs_check_method \ 23158file_magic_cmd \ 23159file_magic_glob \ 23160want_nocaseglob \ 23161DLLTOOL \ 23162sharedlib_from_linklib_cmd \ 23163AR \ 23164archiver_list_spec \ 23165STRIP \ 23166RANLIB \ 23167CC \ 23168CFLAGS \ 23169compiler \ 23170lt_cv_sys_global_symbol_pipe \ 23171lt_cv_sys_global_symbol_to_cdecl \ 23172lt_cv_sys_global_symbol_to_import \ 23173lt_cv_sys_global_symbol_to_c_name_address \ 23174lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 23175lt_cv_nm_interface \ 23176nm_file_list_spec \ 23177lt_cv_truncate_bin \ 23178lt_prog_compiler_no_builtin_flag \ 23179lt_prog_compiler_pic \ 23180lt_prog_compiler_wl \ 23181lt_prog_compiler_static \ 23182lt_cv_prog_compiler_c_o \ 23183need_locks \ 23184MANIFEST_TOOL \ 23185DSYMUTIL \ 23186NMEDIT \ 23187LIPO \ 23188OTOOL \ 23189OTOOL64 \ 23190shrext_cmds \ 23191export_dynamic_flag_spec \ 23192whole_archive_flag_spec \ 23193compiler_needs_object \ 23194with_gnu_ld \ 23195allow_undefined_flag \ 23196no_undefined_flag \ 23197hardcode_libdir_flag_spec \ 23198hardcode_libdir_separator \ 23199exclude_expsyms \ 23200include_expsyms \ 23201file_list_spec \ 23202variables_saved_for_relink \ 23203libname_spec \ 23204library_names_spec \ 23205soname_spec \ 23206install_override_mode \ 23207finish_eval \ 23208old_striplib \ 23209striplib; do 23210 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 23211 *[\\\\\\\`\\"\\\$]*) 23212 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 23213 ;; 23214 *) 23215 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 23216 ;; 23217 esac 23218done 23219 23220# Double-quote double-evaled strings. 23221for var in reload_cmds \ 23222old_postinstall_cmds \ 23223old_postuninstall_cmds \ 23224old_archive_cmds \ 23225extract_expsyms_cmds \ 23226old_archive_from_new_cmds \ 23227old_archive_from_expsyms_cmds \ 23228archive_cmds \ 23229archive_expsym_cmds \ 23230module_cmds \ 23231module_expsym_cmds \ 23232export_symbols_cmds \ 23233prelink_cmds \ 23234postlink_cmds \ 23235postinstall_cmds \ 23236postuninstall_cmds \ 23237finish_cmds \ 23238sys_lib_search_path_spec \ 23239configure_time_dlsearch_path \ 23240configure_time_lt_sys_library_path; do 23241 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 23242 *[\\\\\\\`\\"\\\$]*) 23243 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 23244 ;; 23245 *) 23246 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 23247 ;; 23248 esac 23249done 23250 23251ac_aux_dir='$ac_aux_dir' 23252 23253# See if we are running on zsh, and set the options that allow our 23254# commands through without removal of \ escapes INIT. 23255if test -n "\${ZSH_VERSION+set}"; then 23256 setopt NO_GLOB_SUBST 23257fi 23258 23259 23260 PACKAGE='$PACKAGE' 23261 VERSION='$VERSION' 23262 RM='$RM' 23263 ofile='$ofile' 23264 23265 23266 23267 23268_ACEOF 23269 23270cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 23271 23272# Handling of arguments. 23273for ac_config_target in $ac_config_targets 23274do 23275 case $ac_config_target in 23276 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 23277 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 23278 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 23279 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 23280 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; 23281 "specs/Makefile") CONFIG_FILES="$CONFIG_FILES specs/Makefile" ;; 23282 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 23283 "ice.pc") CONFIG_FILES="$CONFIG_FILES ice.pc" ;; 23284 23285 *) as_fn_error $? "invalid argument: '$ac_config_target'" "$LINENO" 5;; 23286 esac 23287done 23288 23289 23290# If the user did not use the arguments to specify the items to instantiate, 23291# then the envvar interface is used. Set only those that are not. 23292# We use the long form for the default assignment because of an extremely 23293# bizarre bug on SunOS 4.1.3. 23294if $ac_need_defaults; then 23295 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files 23296 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers 23297 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands 23298fi 23299 23300# Have a temporary directory for convenience. Make it in the build tree 23301# simply because there is no reason against having it here, and in addition, 23302# creating and moving files from /tmp can sometimes cause problems. 23303# Hook for its removal unless debugging. 23304# Note that there is a small window in which the directory will not be cleaned: 23305# after its creation but before its name has been assigned to '$tmp'. 23306$debug || 23307{ 23308 tmp= ac_tmp= 23309 trap 'exit_status=$? 23310 : "${ac_tmp:=$tmp}" 23311 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 23312' 0 23313 trap 'as_fn_exit 1' 1 2 13 15 23314} 23315# Create a (secure) tmp directory for tmp files. 23316 23317{ 23318 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 23319 test -d "$tmp" 23320} || 23321{ 23322 tmp=./conf$$-$RANDOM 23323 (umask 077 && mkdir "$tmp") 23324} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 23325ac_tmp=$tmp 23326 23327# Set up the scripts for CONFIG_FILES section. 23328# No need to generate them if there are no CONFIG_FILES. 23329# This happens for instance with './config.status config.h'. 23330if test -n "$CONFIG_FILES"; then 23331 23332 23333ac_cr=`echo X | tr X '\015'` 23334# On cygwin, bash can eat \r inside `` if the user requested igncr. 23335# But we know of no other shell where ac_cr would be empty at this 23336# point, so we can use a bashism as a fallback. 23337if test "x$ac_cr" = x; then 23338 eval ac_cr=\$\'\\r\' 23339fi 23340ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 23341if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 23342 ac_cs_awk_cr='\\r' 23343else 23344 ac_cs_awk_cr=$ac_cr 23345fi 23346 23347echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 23348_ACEOF 23349 23350 23351{ 23352 echo "cat >conf$$subs.awk <<_ACEOF" && 23353 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 23354 echo "_ACEOF" 23355} >conf$$subs.sh || 23356 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 23357ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 23358ac_delim='%!_!# ' 23359for ac_last_try in false false false false false :; do 23360 . ./conf$$subs.sh || 23361 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 23362 23363 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 23364 if test $ac_delim_n = $ac_delim_num; then 23365 break 23366 elif $ac_last_try; then 23367 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 23368 else 23369 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 23370 fi 23371done 23372rm -f conf$$subs.sh 23373 23374cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 23375cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 23376_ACEOF 23377sed -n ' 23378h 23379s/^/S["/; s/!.*/"]=/ 23380p 23381g 23382s/^[^!]*!// 23383:repl 23384t repl 23385s/'"$ac_delim"'$// 23386t delim 23387:nl 23388h 23389s/\(.\{148\}\)..*/\1/ 23390t more1 23391s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 23392p 23393n 23394b repl 23395:more1 23396s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 23397p 23398g 23399s/.\{148\}// 23400t nl 23401:delim 23402h 23403s/\(.\{148\}\)..*/\1/ 23404t more2 23405s/["\\]/\\&/g; s/^/"/; s/$/"/ 23406p 23407b 23408:more2 23409s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 23410p 23411g 23412s/.\{148\}// 23413t delim 23414' <conf$$subs.awk | sed ' 23415/^[^""]/{ 23416 N 23417 s/\n// 23418} 23419' >>$CONFIG_STATUS || ac_write_fail=1 23420rm -f conf$$subs.awk 23421cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 23422_ACAWK 23423cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 23424 for (key in S) S_is_set[key] = 1 23425 FS = "" 23426 23427} 23428{ 23429 line = $ 0 23430 nfields = split(line, field, "@") 23431 substed = 0 23432 len = length(field[1]) 23433 for (i = 2; i < nfields; i++) { 23434 key = field[i] 23435 keylen = length(key) 23436 if (S_is_set[key]) { 23437 value = S[key] 23438 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 23439 len += length(value) + length(field[++i]) 23440 substed = 1 23441 } else 23442 len += 1 + keylen 23443 } 23444 23445 print line 23446} 23447 23448_ACAWK 23449_ACEOF 23450cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 23451if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 23452 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 23453else 23454 cat 23455fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 23456 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 23457_ACEOF 23458 23459# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 23460# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 23461# trailing colons and then remove the whole line if VPATH becomes empty 23462# (actually we leave an empty line to preserve line numbers). 23463if test "x$srcdir" = x.; then 23464 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 23465h 23466s/// 23467s/^/:/ 23468s/[ ]*$/:/ 23469s/:\$(srcdir):/:/g 23470s/:\${srcdir}:/:/g 23471s/:@srcdir@:/:/g 23472s/^:*// 23473s/:*$// 23474x 23475s/\(=[ ]*\).*/\1/ 23476G 23477s/\n// 23478s/^[^=]*=[ ]*$// 23479}' 23480fi 23481 23482cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 23483fi # test -n "$CONFIG_FILES" 23484 23485# Set up the scripts for CONFIG_HEADERS section. 23486# No need to generate them if there are no CONFIG_HEADERS. 23487# This happens for instance with './config.status Makefile'. 23488if test -n "$CONFIG_HEADERS"; then 23489cat >"$ac_tmp/defines.awk" <<\_ACAWK || 23490BEGIN { 23491_ACEOF 23492 23493# Transform confdefs.h into an awk script 'defines.awk', embedded as 23494# here-document in config.status, that substitutes the proper values into 23495# config.h.in to produce config.h. 23496 23497# Create a delimiter string that does not exist in confdefs.h, to ease 23498# handling of long lines. 23499ac_delim='%!_!# ' 23500for ac_last_try in false false :; do 23501 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 23502 if test -z "$ac_tt"; then 23503 break 23504 elif $ac_last_try; then 23505 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 23506 else 23507 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 23508 fi 23509done 23510 23511# For the awk script, D is an array of macro values keyed by name, 23512# likewise P contains macro parameters if any. Preserve backslash 23513# newline sequences. 23514 23515ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 23516sed -n ' 23517s/.\{148\}/&'"$ac_delim"'/g 23518t rset 23519:rset 23520s/^[ ]*#[ ]*define[ ][ ]*/ / 23521t def 23522d 23523:def 23524s/\\$// 23525t bsnl 23526s/["\\]/\\&/g 23527s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 23528D["\1"]=" \3"/p 23529s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 23530d 23531:bsnl 23532s/["\\]/\\&/g 23533s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 23534D["\1"]=" \3\\\\\\n"\\/p 23535t cont 23536s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 23537t cont 23538d 23539:cont 23540n 23541s/.\{148\}/&'"$ac_delim"'/g 23542t clear 23543:clear 23544s/\\$// 23545t bsnlc 23546s/["\\]/\\&/g; s/^/"/; s/$/"/p 23547d 23548:bsnlc 23549s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 23550b cont 23551' <confdefs.h | sed ' 23552s/'"$ac_delim"'/"\\\ 23553"/g' >>$CONFIG_STATUS || ac_write_fail=1 23554 23555cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 23556 for (key in D) D_is_set[key] = 1 23557 FS = "" 23558} 23559/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 23560 line = \$ 0 23561 split(line, arg, " ") 23562 if (arg[1] == "#") { 23563 defundef = arg[2] 23564 mac1 = arg[3] 23565 } else { 23566 defundef = substr(arg[1], 2) 23567 mac1 = arg[2] 23568 } 23569 split(mac1, mac2, "(") #) 23570 macro = mac2[1] 23571 prefix = substr(line, 1, index(line, defundef) - 1) 23572 if (D_is_set[macro]) { 23573 # Preserve the white space surrounding the "#". 23574 print prefix "define", macro P[macro] D[macro] 23575 next 23576 } else { 23577 # Replace #undef with comments. This is necessary, for example, 23578 # in the case of _POSIX_SOURCE, which is predefined and required 23579 # on some systems where configure will not decide to define it. 23580 if (defundef == "undef") { 23581 print "/*", prefix defundef, macro, "*/" 23582 next 23583 } 23584 } 23585} 23586{ print } 23587_ACAWK 23588_ACEOF 23589cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 23590 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 23591fi # test -n "$CONFIG_HEADERS" 23592 23593 23594eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 23595shift 23596for ac_tag 23597do 23598 case $ac_tag in 23599 :[FHLC]) ac_mode=$ac_tag; continue;; 23600 esac 23601 case $ac_mode$ac_tag in 23602 :[FHL]*:*);; 23603 :L* | :C*:*) as_fn_error $? "invalid tag '$ac_tag'" "$LINENO" 5;; 23604 :[FH]-) ac_tag=-:-;; 23605 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 23606 esac 23607 ac_save_IFS=$IFS 23608 IFS=: 23609 set x $ac_tag 23610 IFS=$ac_save_IFS 23611 shift 23612 ac_file=$1 23613 shift 23614 23615 case $ac_mode in 23616 :L) ac_source=$1;; 23617 :[FH]) 23618 ac_file_inputs= 23619 for ac_f 23620 do 23621 case $ac_f in 23622 -) ac_f="$ac_tmp/stdin";; 23623 *) # Look for the file first in the build tree, then in the source tree 23624 # (if the path is not absolute). The absolute path cannot be DOS-style, 23625 # because $ac_f cannot contain ':'. 23626 test -f "$ac_f" || 23627 case $ac_f in 23628 [\\/$]*) false;; 23629 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 23630 esac || 23631 as_fn_error 1 "cannot find input file: '$ac_f'" "$LINENO" 5;; 23632 esac 23633 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 23634 as_fn_append ac_file_inputs " '$ac_f'" 23635 done 23636 23637 # Let's still pretend it is 'configure' which instantiates (i.e., don't 23638 # use $as_me), people would be surprised to read: 23639 # /* config.h. Generated by config.status. */ 23640 configure_input='Generated from '` 23641 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 23642 `' by configure.' 23643 if test x"$ac_file" != x-; then 23644 configure_input="$ac_file. $configure_input" 23645 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 23646printf "%s\n" "$as_me: creating $ac_file" >&6;} 23647 fi 23648 # Neutralize special characters interpreted by sed in replacement strings. 23649 case $configure_input in #( 23650 *\&* | *\|* | *\\* ) 23651 ac_sed_conf_input=`printf "%s\n" "$configure_input" | 23652 sed 's/[\\\\&|]/\\\\&/g'`;; #( 23653 *) ac_sed_conf_input=$configure_input;; 23654 esac 23655 23656 case $ac_tag in 23657 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 23658 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 23659 esac 23660 ;; 23661 esac 23662 23663 ac_dir=`$as_dirname -- "$ac_file" || 23664$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 23665 X"$ac_file" : 'X\(//\)[^/]' \| \ 23666 X"$ac_file" : 'X\(//\)$' \| \ 23667 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 23668printf "%s\n" X"$ac_file" | 23669 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 23670 s//\1/ 23671 q 23672 } 23673 /^X\(\/\/\)[^/].*/{ 23674 s//\1/ 23675 q 23676 } 23677 /^X\(\/\/\)$/{ 23678 s//\1/ 23679 q 23680 } 23681 /^X\(\/\).*/{ 23682 s//\1/ 23683 q 23684 } 23685 s/.*/./; q'` 23686 as_dir="$ac_dir"; as_fn_mkdir_p 23687 ac_builddir=. 23688 23689case "$ac_dir" in 23690.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 23691*) 23692 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 23693 # A ".." for each directory in $ac_dir_suffix. 23694 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 23695 case $ac_top_builddir_sub in 23696 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 23697 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 23698 esac ;; 23699esac 23700ac_abs_top_builddir=$ac_pwd 23701ac_abs_builddir=$ac_pwd$ac_dir_suffix 23702# for backward compatibility: 23703ac_top_builddir=$ac_top_build_prefix 23704 23705case $srcdir in 23706 .) # We are building in place. 23707 ac_srcdir=. 23708 ac_top_srcdir=$ac_top_builddir_sub 23709 ac_abs_top_srcdir=$ac_pwd ;; 23710 [\\/]* | ?:[\\/]* ) # Absolute name. 23711 ac_srcdir=$srcdir$ac_dir_suffix; 23712 ac_top_srcdir=$srcdir 23713 ac_abs_top_srcdir=$srcdir ;; 23714 *) # Relative name. 23715 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 23716 ac_top_srcdir=$ac_top_build_prefix$srcdir 23717 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 23718esac 23719ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 23720 23721 23722 case $ac_mode in 23723 :F) 23724 # 23725 # CONFIG_FILE 23726 # 23727 23728 case $INSTALL in 23729 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 23730 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 23731 esac 23732 ac_MKDIR_P=$MKDIR_P 23733 case $MKDIR_P in 23734 [\\/$]* | ?:[\\/]* ) ;; 23735 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 23736 esac 23737_ACEOF 23738 23739cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 23740# If the template does not know about datarootdir, expand it. 23741# FIXME: This hack should be removed a few years after 2.60. 23742ac_datarootdir_hack=; ac_datarootdir_seen= 23743ac_sed_dataroot=' 23744/datarootdir/ { 23745 p 23746 q 23747} 23748/@datadir@/p 23749/@docdir@/p 23750/@infodir@/p 23751/@localedir@/p 23752/@mandir@/p' 23753case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 23754*datarootdir*) ac_datarootdir_seen=yes;; 23755*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 23756 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 23757printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 23758_ACEOF 23759cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 23760 ac_datarootdir_hack=' 23761 s&@datadir@&$datadir&g 23762 s&@docdir@&$docdir&g 23763 s&@infodir@&$infodir&g 23764 s&@localedir@&$localedir&g 23765 s&@mandir@&$mandir&g 23766 s&\\\${datarootdir}&$datarootdir&g' ;; 23767esac 23768_ACEOF 23769 23770# Neutralize VPATH when '$srcdir' = '.'. 23771# Shell code in configure.ac might set extrasub. 23772# FIXME: do we really want to maintain this feature? 23773cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 23774ac_sed_extra="$ac_vpsub 23775$extrasub 23776_ACEOF 23777cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 23778:t 23779/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 23780s|@configure_input@|$ac_sed_conf_input|;t t 23781s&@top_builddir@&$ac_top_builddir_sub&;t t 23782s&@top_build_prefix@&$ac_top_build_prefix&;t t 23783s&@srcdir@&$ac_srcdir&;t t 23784s&@abs_srcdir@&$ac_abs_srcdir&;t t 23785s&@top_srcdir@&$ac_top_srcdir&;t t 23786s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 23787s&@builddir@&$ac_builddir&;t t 23788s&@abs_builddir@&$ac_abs_builddir&;t t 23789s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 23790s&@INSTALL@&$ac_INSTALL&;t t 23791s&@MKDIR_P@&$ac_MKDIR_P&;t t 23792$ac_datarootdir_hack 23793" 23794eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 23795 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 23796 23797test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 23798 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 23799 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 23800 "$ac_tmp/out"`; test -z "$ac_out"; } && 23801 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable 'datarootdir' 23802which seems to be undefined. Please make sure it is defined" >&5 23803printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable 'datarootdir' 23804which seems to be undefined. Please make sure it is defined" >&2;} 23805 23806 rm -f "$ac_tmp/stdin" 23807 case $ac_file in 23808 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 23809 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 23810 esac \ 23811 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 23812 ;; 23813 :H) 23814 # 23815 # CONFIG_HEADER 23816 # 23817 if test x"$ac_file" != x-; then 23818 { 23819 printf "%s\n" "/* $configure_input */" >&1 \ 23820 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 23821 } >"$ac_tmp/config.h" \ 23822 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 23823 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 23824 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 23825printf "%s\n" "$as_me: $ac_file is unchanged" >&6;} 23826 else 23827 rm -f "$ac_file" 23828 mv "$ac_tmp/config.h" "$ac_file" \ 23829 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 23830 fi 23831 else 23832 printf "%s\n" "/* $configure_input */" >&1 \ 23833 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 23834 || as_fn_error $? "could not create -" "$LINENO" 5 23835 fi 23836# Compute "$ac_file"'s index in $config_headers. 23837_am_arg="$ac_file" 23838_am_stamp_count=1 23839for _am_header in $config_headers :; do 23840 case $_am_header in 23841 $_am_arg | $_am_arg:* ) 23842 break ;; 23843 * ) 23844 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 23845 esac 23846done 23847echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 23848$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 23849 X"$_am_arg" : 'X\(//\)[^/]' \| \ 23850 X"$_am_arg" : 'X\(//\)$' \| \ 23851 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 23852printf "%s\n" X"$_am_arg" | 23853 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 23854 s//\1/ 23855 q 23856 } 23857 /^X\(\/\/\)[^/].*/{ 23858 s//\1/ 23859 q 23860 } 23861 /^X\(\/\/\)$/{ 23862 s//\1/ 23863 q 23864 } 23865 /^X\(\/\).*/{ 23866 s//\1/ 23867 q 23868 } 23869 s/.*/./; q'`/stamp-h$_am_stamp_count 23870 ;; 23871 23872 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 23873printf "%s\n" "$as_me: executing $ac_file commands" >&6;} 23874 ;; 23875 esac 23876 23877 23878 case $ac_file$ac_mode in 23879 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 23880 # Older Autoconf quotes --file arguments for eval, but not when files 23881 # are listed without --file. Let's play safe and only enable the eval 23882 # if we detect the quoting. 23883 # TODO: see whether this extra hack can be removed once we start 23884 # requiring Autoconf 2.70 or later. 23885 case $CONFIG_FILES in #( 23886 *\'*) : 23887 eval set x "$CONFIG_FILES" ;; #( 23888 *) : 23889 set x $CONFIG_FILES ;; #( 23890 *) : 23891 ;; 23892esac 23893 shift 23894 # Used to flag and report bootstrapping failures. 23895 am_rc=0 23896 for am_mf 23897 do 23898 # Strip MF so we end up with the name of the file. 23899 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'` 23900 # Check whether this is an Automake generated Makefile which includes 23901 # dependency-tracking related rules and includes. 23902 # Grep'ing the whole file directly is not great: AIX grep has a line 23903 # limit of 2048, but all sed's we know have understand at least 4000. 23904 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \ 23905 || continue 23906 am_dirpart=`$as_dirname -- "$am_mf" || 23907$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 23908 X"$am_mf" : 'X\(//\)[^/]' \| \ 23909 X"$am_mf" : 'X\(//\)$' \| \ 23910 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 23911printf "%s\n" X"$am_mf" | 23912 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 23913 s//\1/ 23914 q 23915 } 23916 /^X\(\/\/\)[^/].*/{ 23917 s//\1/ 23918 q 23919 } 23920 /^X\(\/\/\)$/{ 23921 s//\1/ 23922 q 23923 } 23924 /^X\(\/\).*/{ 23925 s//\1/ 23926 q 23927 } 23928 s/.*/./; q'` 23929 am_filepart=`$as_basename -- "$am_mf" || 23930$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \ 23931 X"$am_mf" : 'X\(//\)$' \| \ 23932 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 23933printf "%s\n" X/"$am_mf" | 23934 sed '/^.*\/\([^/][^/]*\)\/*$/{ 23935 s//\1/ 23936 q 23937 } 23938 /^X\/\(\/\/\)$/{ 23939 s//\1/ 23940 q 23941 } 23942 /^X\/\(\/\).*/{ 23943 s//\1/ 23944 q 23945 } 23946 s/.*/./; q'` 23947 { echo "$as_me:$LINENO: cd "$am_dirpart" \ 23948 && sed -e '/# am--include-marker/d' "$am_filepart" \ 23949 | $MAKE -f - am--depfiles" >&5 23950 (cd "$am_dirpart" \ 23951 && sed -e '/# am--include-marker/d' "$am_filepart" \ 23952 | $MAKE -f - am--depfiles) >&5 2>&5 23953 ac_status=$? 23954 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23955 (exit $ac_status); } || am_rc=$? 23956 done 23957 if test $am_rc -ne 0; then 23958 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 23959printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 23960as_fn_error $? "Something went wrong bootstrapping makefile fragments 23961 for automatic dependency tracking. If GNU make was not used, consider 23962 re-running the configure script with MAKE=\"gmake\" (or whatever is 23963 necessary). You can also try re-running configure with the 23964 '--disable-dependency-tracking' option to at least be able to build 23965 the package (albeit without support for automatic dependency tracking). 23966See 'config.log' for more details" "$LINENO" 5; } 23967 fi 23968 { am_dirpart=; unset am_dirpart;} 23969 { am_filepart=; unset am_filepart;} 23970 { am_mf=; unset am_mf;} 23971 { am_rc=; unset am_rc;} 23972 rm -f conftest-deps.mk 23973} 23974 ;; 23975 "libtool":C) 23976 23977 # See if we are running on zsh, and set the options that allow our 23978 # commands through without removal of \ escapes. 23979 if test -n "${ZSH_VERSION+set}"; then 23980 setopt NO_GLOB_SUBST 23981 fi 23982 23983 cfgfile=${ofile}T 23984 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 23985 $RM "$cfgfile" 23986 23987 cat <<_LT_EOF >> "$cfgfile" 23988#! $SHELL 23989# Generated automatically by $as_me ($PACKAGE) $VERSION 23990# NOTE: Changes made to this file will be lost: look at ltmain.sh. 23991 23992# Provide generalized library-building support services. 23993# Written by Gordon Matzigkeit, 1996 23994 23995# Copyright (C) 2024 Free Software Foundation, Inc. 23996# This is free software; see the source for copying conditions. There is NO 23997# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 23998 23999# GNU Libtool is free software; you can redistribute it and/or modify 24000# it under the terms of the GNU General Public License as published by 24001# the Free Software Foundation; either version 2 of the License, or 24002# (at your option) any later version. 24003# 24004# As a special exception to the GNU General Public License, if you 24005# distribute this file as part of a program or library that is built 24006# using GNU Libtool, you may include this file under the same 24007# distribution terms that you use for the rest of that program. 24008# 24009# GNU Libtool is distributed in the hope that it will be useful, but 24010# WITHOUT ANY WARRANTY; without even the implied warranty of 24011# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 24012# GNU General Public License for more details. 24013# 24014# You should have received a copy of the GNU General Public License 24015# along with this program. If not, see <http://www.gnu.org/licenses/>. 24016 24017 24018# The names of the tagged configurations supported by this script. 24019available_tags='' 24020 24021# Configured defaults for sys_lib_dlsearch_path munging. 24022: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} 24023 24024# ### BEGIN LIBTOOL CONFIG 24025 24026# Which release of libtool.m4 was used? 24027macro_version=$macro_version 24028macro_revision=$macro_revision 24029 24030# Whether or not to build shared libraries. 24031build_libtool_libs=$enable_shared 24032 24033# Whether or not to build static libraries. 24034build_old_libs=$enable_static 24035 24036# What type of objects to build. 24037pic_mode=$pic_mode 24038 24039# Whether or not to optimize for fast installation. 24040fast_install=$enable_fast_install 24041 24042# Shared archive member basename,for filename based shared library versioning on AIX. 24043shared_archive_member_spec=$shared_archive_member_spec 24044 24045# Shell to use when invoking shell scripts. 24046SHELL=$lt_SHELL 24047 24048# An echo program that protects backslashes. 24049ECHO=$lt_ECHO 24050 24051# The PATH separator for the build system. 24052PATH_SEPARATOR=$lt_PATH_SEPARATOR 24053 24054# The host system. 24055host_alias=$host_alias 24056host=$host 24057host_os=$host_os 24058 24059# The build system. 24060build_alias=$build_alias 24061build=$build 24062build_os=$build_os 24063 24064# A sed program that does not truncate output. 24065SED=$lt_SED 24066 24067# Sed that helps us avoid accidentally triggering echo(1) options like -n. 24068Xsed="\$SED -e 1s/^X//" 24069 24070# A grep program that handles long lines. 24071GREP=$lt_GREP 24072 24073# An ERE matcher. 24074EGREP=$lt_EGREP 24075 24076# A literal string matcher. 24077FGREP=$lt_FGREP 24078 24079# A BSD- or MS-compatible name lister. 24080NM=$lt_NM 24081 24082# Whether we need soft or hard links. 24083LN_S=$lt_LN_S 24084 24085# What is the maximum length of a command? 24086max_cmd_len=$max_cmd_len 24087 24088# Object file suffix (normally "o"). 24089objext=$ac_objext 24090 24091# Executable file suffix (normally ""). 24092exeext=$exeext 24093 24094# whether the shell understands "unset". 24095lt_unset=$lt_unset 24096 24097# turn spaces into newlines. 24098SP2NL=$lt_lt_SP2NL 24099 24100# turn newlines into spaces. 24101NL2SP=$lt_lt_NL2SP 24102 24103# convert \$build file names to \$host format. 24104to_host_file_cmd=$lt_cv_to_host_file_cmd 24105 24106# convert \$build files to toolchain format. 24107to_tool_file_cmd=$lt_cv_to_tool_file_cmd 24108 24109# A file(cmd) program that detects file types. 24110FILECMD=$lt_FILECMD 24111 24112# An object symbol dumper. 24113OBJDUMP=$lt_OBJDUMP 24114 24115# Method to check whether dependent libraries are shared objects. 24116deplibs_check_method=$lt_deplibs_check_method 24117 24118# Command to use when deplibs_check_method = "file_magic". 24119file_magic_cmd=$lt_file_magic_cmd 24120 24121# How to find potential files when deplibs_check_method = "file_magic". 24122file_magic_glob=$lt_file_magic_glob 24123 24124# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 24125want_nocaseglob=$lt_want_nocaseglob 24126 24127# DLL creation program. 24128DLLTOOL=$lt_DLLTOOL 24129 24130# Command to associate shared and link libraries. 24131sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 24132 24133# The archiver. 24134AR=$lt_AR 24135 24136# Flags to create an archive (by configure). 24137lt_ar_flags=$lt_ar_flags 24138 24139# Flags to create an archive. 24140AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"} 24141 24142# How to feed a file listing to the archiver. 24143archiver_list_spec=$lt_archiver_list_spec 24144 24145# A symbol stripping program. 24146STRIP=$lt_STRIP 24147 24148# Commands used to install an old-style archive. 24149RANLIB=$lt_RANLIB 24150old_postinstall_cmds=$lt_old_postinstall_cmds 24151old_postuninstall_cmds=$lt_old_postuninstall_cmds 24152 24153# Whether to use a lock for old archive extraction. 24154lock_old_archive_extraction=$lock_old_archive_extraction 24155 24156# A C compiler. 24157LTCC=$lt_CC 24158 24159# LTCC compiler flags. 24160LTCFLAGS=$lt_CFLAGS 24161 24162# Take the output of nm and produce a listing of raw symbols and C names. 24163global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 24164 24165# Transform the output of nm in a proper C declaration. 24166global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 24167 24168# Transform the output of nm into a list of symbols to manually relocate. 24169global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import 24170 24171# Transform the output of nm in a C name address pair. 24172global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 24173 24174# Transform the output of nm in a C name address pair when lib prefix is needed. 24175global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 24176 24177# The name lister interface. 24178nm_interface=$lt_lt_cv_nm_interface 24179 24180# Specify filename containing input files for \$NM. 24181nm_file_list_spec=$lt_nm_file_list_spec 24182 24183# The root where to search for dependent libraries,and where our libraries should be installed. 24184lt_sysroot=$lt_sysroot 24185 24186# Command to truncate a binary pipe. 24187lt_truncate_bin=$lt_lt_cv_truncate_bin 24188 24189# The name of the directory that contains temporary libtool files. 24190objdir=$objdir 24191 24192# Used to examine libraries when file_magic_cmd begins with "file". 24193MAGIC_CMD=$MAGIC_CMD 24194 24195# Must we lock files when doing compilation? 24196need_locks=$lt_need_locks 24197 24198# Manifest tool. 24199MANIFEST_TOOL=$lt_MANIFEST_TOOL 24200 24201# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 24202DSYMUTIL=$lt_DSYMUTIL 24203 24204# Tool to change global to local symbols on Mac OS X. 24205NMEDIT=$lt_NMEDIT 24206 24207# Tool to manipulate fat objects and archives on Mac OS X. 24208LIPO=$lt_LIPO 24209 24210# ldd/readelf like tool for Mach-O binaries on Mac OS X. 24211OTOOL=$lt_OTOOL 24212 24213# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 24214OTOOL64=$lt_OTOOL64 24215 24216# Old archive suffix (normally "a"). 24217libext=$libext 24218 24219# Shared library suffix (normally ".so"). 24220shrext_cmds=$lt_shrext_cmds 24221 24222# The commands to extract the exported symbol list from a shared archive. 24223extract_expsyms_cmds=$lt_extract_expsyms_cmds 24224 24225# Variables whose values should be saved in libtool wrapper scripts and 24226# restored at link time. 24227variables_saved_for_relink=$lt_variables_saved_for_relink 24228 24229# Do we need the "lib" prefix for modules? 24230need_lib_prefix=$need_lib_prefix 24231 24232# Do we need a version for libraries? 24233need_version=$need_version 24234 24235# Library versioning type. 24236version_type=$version_type 24237 24238# Shared library runtime path variable. 24239runpath_var=$runpath_var 24240 24241# Shared library path variable. 24242shlibpath_var=$shlibpath_var 24243 24244# Is shlibpath searched before the hard-coded library search path? 24245shlibpath_overrides_runpath=$shlibpath_overrides_runpath 24246 24247# Format of library name prefix. 24248libname_spec=$lt_libname_spec 24249 24250# List of archive names. First name is the real one, the rest are links. 24251# The last name is the one that the linker finds with -lNAME 24252library_names_spec=$lt_library_names_spec 24253 24254# The coded name of the library, if different from the real name. 24255soname_spec=$lt_soname_spec 24256 24257# Permission mode override for installation of shared libraries. 24258install_override_mode=$lt_install_override_mode 24259 24260# Command to use after installation of a shared archive. 24261postinstall_cmds=$lt_postinstall_cmds 24262 24263# Command to use after uninstallation of a shared archive. 24264postuninstall_cmds=$lt_postuninstall_cmds 24265 24266# Commands used to finish a libtool library installation in a directory. 24267finish_cmds=$lt_finish_cmds 24268 24269# As "finish_cmds", except a single script fragment to be evaled but 24270# not shown. 24271finish_eval=$lt_finish_eval 24272 24273# Whether we should hardcode library paths into libraries. 24274hardcode_into_libs=$hardcode_into_libs 24275 24276# Compile-time system search path for libraries. 24277sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 24278 24279# Detected run-time system search path for libraries. 24280sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path 24281 24282# Explicit LT_SYS_LIBRARY_PATH set during ./configure time. 24283configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path 24284 24285# Whether dlopen is supported. 24286dlopen_support=$enable_dlopen 24287 24288# Whether dlopen of programs is supported. 24289dlopen_self=$enable_dlopen_self 24290 24291# Whether dlopen of statically linked programs is supported. 24292dlopen_self_static=$enable_dlopen_self_static 24293 24294# Commands to strip libraries. 24295old_striplib=$lt_old_striplib 24296striplib=$lt_striplib 24297 24298 24299# The linker used to build libraries. 24300LD=$lt_LD 24301 24302# How to create reloadable object files. 24303reload_flag=$lt_reload_flag 24304reload_cmds=$lt_reload_cmds 24305 24306# Commands used to build an old-style archive. 24307old_archive_cmds=$lt_old_archive_cmds 24308 24309# A language specific compiler. 24310CC=$lt_compiler 24311 24312# Is the compiler the GNU compiler? 24313with_gcc=$GCC 24314 24315# Compiler flag to turn off builtin functions. 24316no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 24317 24318# Additional compiler flags for building library objects. 24319pic_flag=$lt_lt_prog_compiler_pic 24320 24321# How to pass a linker flag through the compiler. 24322wl=$lt_lt_prog_compiler_wl 24323 24324# Compiler flag to prevent dynamic linking. 24325link_static_flag=$lt_lt_prog_compiler_static 24326 24327# Does compiler simultaneously support -c and -o options? 24328compiler_c_o=$lt_lt_cv_prog_compiler_c_o 24329 24330# Whether or not to add -lc for building shared libraries. 24331build_libtool_need_lc=$archive_cmds_need_lc 24332 24333# Whether or not to disallow shared libs when runtime libs are static. 24334allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 24335 24336# Compiler flag to allow reflexive dlopens. 24337export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 24338 24339# Compiler flag to generate shared objects directly from archives. 24340whole_archive_flag_spec=$lt_whole_archive_flag_spec 24341 24342# Whether the compiler copes with passing no objects directly. 24343compiler_needs_object=$lt_compiler_needs_object 24344 24345# Create an old-style archive from a shared archive. 24346old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 24347 24348# Create a temporary old-style archive to link instead of a shared archive. 24349old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 24350 24351# Commands used to build a shared archive. 24352archive_cmds=$lt_archive_cmds 24353archive_expsym_cmds=$lt_archive_expsym_cmds 24354 24355# Commands used to build a loadable module if different from building 24356# a shared archive. 24357module_cmds=$lt_module_cmds 24358module_expsym_cmds=$lt_module_expsym_cmds 24359 24360# Whether we are building with GNU ld or not. 24361with_gnu_ld=$lt_with_gnu_ld 24362 24363# Flag that allows shared libraries with undefined symbols to be built. 24364allow_undefined_flag=$lt_allow_undefined_flag 24365 24366# Flag that enforces no undefined symbols. 24367no_undefined_flag=$lt_no_undefined_flag 24368 24369# Flag to hardcode \$libdir into a binary during linking. 24370# This must work even if \$libdir does not exist 24371hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 24372 24373# Whether we need a single "-rpath" flag with a separated argument. 24374hardcode_libdir_separator=$lt_hardcode_libdir_separator 24375 24376# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 24377# DIR into the resulting binary. 24378hardcode_direct=$hardcode_direct 24379 24380# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 24381# DIR into the resulting binary and the resulting library dependency is 24382# "absolute",i.e. impossible to change by setting \$shlibpath_var if the 24383# library is relocated. 24384hardcode_direct_absolute=$hardcode_direct_absolute 24385 24386# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 24387# into the resulting binary. 24388hardcode_minus_L=$hardcode_minus_L 24389 24390# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 24391# into the resulting binary. 24392hardcode_shlibpath_var=$hardcode_shlibpath_var 24393 24394# Set to "yes" if building a shared library automatically hardcodes DIR 24395# into the library and all subsequent libraries and executables linked 24396# against it. 24397hardcode_automatic=$hardcode_automatic 24398 24399# Set to yes if linker adds runtime paths of dependent libraries 24400# to runtime path list. 24401inherit_rpath=$inherit_rpath 24402 24403# Whether libtool must link a program against all its dependency libraries. 24404link_all_deplibs=$link_all_deplibs 24405 24406# Set to "yes" if exported symbols are required. 24407always_export_symbols=$always_export_symbols 24408 24409# The commands to list exported symbols. 24410export_symbols_cmds=$lt_export_symbols_cmds 24411 24412# Symbols that should not be listed in the preloaded symbols. 24413exclude_expsyms=$lt_exclude_expsyms 24414 24415# Symbols that must always be exported. 24416include_expsyms=$lt_include_expsyms 24417 24418# Commands necessary for linking programs (against libraries) with templates. 24419prelink_cmds=$lt_prelink_cmds 24420 24421# Commands necessary for finishing linking programs. 24422postlink_cmds=$lt_postlink_cmds 24423 24424# Specify filename containing input files. 24425file_list_spec=$lt_file_list_spec 24426 24427# How to hardcode a shared library path into an executable. 24428hardcode_action=$hardcode_action 24429 24430# ### END LIBTOOL CONFIG 24431 24432_LT_EOF 24433 24434 cat <<'_LT_EOF' >> "$cfgfile" 24435 24436# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE 24437 24438# func_munge_path_list VARIABLE PATH 24439# ----------------------------------- 24440# VARIABLE is name of variable containing _space_ separated list of 24441# directories to be munged by the contents of PATH, which is string 24442# having a format: 24443# "DIR[:DIR]:" 24444# string "DIR[ DIR]" will be prepended to VARIABLE 24445# ":DIR[:DIR]" 24446# string "DIR[ DIR]" will be appended to VARIABLE 24447# "DIRP[:DIRP]::[DIRA:]DIRA" 24448# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 24449# "DIRA[ DIRA]" will be appended to VARIABLE 24450# "DIR[:DIR]" 24451# VARIABLE will be replaced by "DIR[ DIR]" 24452func_munge_path_list () 24453{ 24454 case x$2 in 24455 x) 24456 ;; 24457 *:) 24458 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 24459 ;; 24460 x:*) 24461 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 24462 ;; 24463 *::*) 24464 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 24465 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 24466 ;; 24467 *) 24468 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 24469 ;; 24470 esac 24471} 24472 24473 24474# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 24475func_cc_basename () 24476{ 24477 for cc_temp in $*""; do 24478 case $cc_temp in 24479 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 24480 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 24481 \-*) ;; 24482 *) break;; 24483 esac 24484 done 24485 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 24486} 24487 24488 24489# ### END FUNCTIONS SHARED WITH CONFIGURE 24490 24491_LT_EOF 24492 24493 case $host_os in 24494 aix3*) 24495 cat <<\_LT_EOF >> "$cfgfile" 24496# AIX sometimes has problems with the GCC collect2 program. For some 24497# reason, if we set the COLLECT_NAMES environment variable, the problems 24498# vanish in a puff of smoke. 24499if test set != "${COLLECT_NAMES+set}"; then 24500 COLLECT_NAMES= 24501 export COLLECT_NAMES 24502fi 24503_LT_EOF 24504 ;; 24505 esac 24506 24507 24508 24509ltmain=$ac_aux_dir/ltmain.sh 24510 24511 24512 # We use sed instead of cat because bash on DJGPP gets confused if 24513 # if finds mixed CR/LF and LF-only lines. Since sed operates in 24514 # text mode, it properly converts lines to CR/LF. This bash problem 24515 # is reportedly fixed, but why not run on old versions too? 24516 $SED '$q' "$ltmain" >> "$cfgfile" \ 24517 || (rm -f "$cfgfile"; exit 1) 24518 24519 mv -f "$cfgfile" "$ofile" || 24520 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 24521 chmod +x "$ofile" 24522 24523 ;; 24524 24525 esac 24526done # for ac_tag 24527 24528 24529as_fn_exit 0 24530_ACEOF 24531ac_clean_files=$ac_clean_files_save 24532 24533test $ac_write_fail = 0 || 24534 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 24535 24536 24537# configure is writing to config.log, and then calls config.status. 24538# config.status does its own redirection, appending to config.log. 24539# Unfortunately, on DOS this fails, as config.log is still kept open 24540# by configure, so config.status won't be able to write to it; its 24541# output is simply discarded. So we exec the FD to /dev/null, 24542# effectively closing config.log, so it can be properly (re)opened and 24543# appended to by config.status. When coming back to configure, we 24544# need to make the FD available again. 24545if test "$no_create" != yes; then 24546 ac_cs_success=: 24547 ac_config_status_args= 24548 test "$silent" = yes && 24549 ac_config_status_args="$ac_config_status_args --quiet" 24550 exec 5>/dev/null 24551 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 24552 exec 5>>config.log 24553 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 24554 # would make configure fail if this is the last instruction. 24555 $ac_cs_success || as_fn_exit 1 24556fi 24557if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 24558 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 24559printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 24560fi 24561 24562 24563