configure revision 05789e77
1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.72 for libXext 1.3.6. 4# 5# Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libxext/-/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/libxext/-/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='libXext' 677PACKAGE_TARNAME='libXext' 678PACKAGE_VERSION='1.3.6' 679PACKAGE_STRING='libXext 1.3.6' 680PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/lib/libxext/-/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= 716ac_subst_vars='am__EXEEXT_FALSE 717am__EXEEXT_TRUE 718LTLIBOBJS 719MAKE_LINT_LIB_FALSE 720MAKE_LINT_LIB_TRUE 721LINTLIB 722LINT_FALSE 723LINT_TRUE 724LINT_FLAGS 725LINT 726LIBOBJS 727XEXT_LIBS 728XEXT_CFLAGS 729XEXT_SOREV 730XTMALLOC_ZERO_CFLAGS 731XMALLOC_ZERO_CFLAGS 732MALLOC_ZERO_CFLAGS 733HAVE_STYLESHEETS_FALSE 734HAVE_STYLESHEETS_TRUE 735XSL_STYLESHEET 736STYLESHEET_SRCDIR 737XORG_SGML_PATH 738HAVE_XSLTPROC_FALSE 739HAVE_XSLTPROC_TRUE 740XSLTPROC 741HAVE_FOP_FALSE 742HAVE_FOP_TRUE 743FOP 744HAVE_XMLTO_FALSE 745HAVE_XMLTO_TRUE 746HAVE_XMLTO_TEXT_FALSE 747HAVE_XMLTO_TEXT_TRUE 748XMLTO 749ENABLE_SPECS_FALSE 750ENABLE_SPECS_TRUE 751MAN_SUBSTS 752XORG_MAN_PAGE 753ADMIN_MAN_DIR 754DRIVER_MAN_DIR 755MISC_MAN_DIR 756FILE_MAN_DIR 757LIB_MAN_DIR 758APP_MAN_DIR 759ADMIN_MAN_SUFFIX 760DRIVER_MAN_SUFFIX 761MISC_MAN_SUFFIX 762FILE_MAN_SUFFIX 763LIB_MAN_SUFFIX 764APP_MAN_SUFFIX 765INSTALL_CMD 766PKG_CONFIG_LIBDIR 767PKG_CONFIG_PATH 768PKG_CONFIG 769CHANGELOG_CMD 770STRICT_CFLAGS 771CWARNFLAGS 772BASE_CFLAGS 773LT_SYS_LIBRARY_PATH 774OTOOL64 775OTOOL 776LIPO 777NMEDIT 778DSYMUTIL 779MANIFEST_TOOL 780RANLIB 781ac_ct_AR 782AR 783DLLTOOL 784OBJDUMP 785FILECMD 786LN_S 787NM 788ac_ct_DUMPBIN 789DUMPBIN 790LD 791FGREP 792EGREP 793GREP 794SED 795host_os 796host_vendor 797host_cpu 798host 799build_os 800build_vendor 801build_cpu 802build 803LIBTOOL 804AM_BACKSLASH 805AM_DEFAULT_VERBOSITY 806AM_DEFAULT_V 807AM_V 808CSCOPE 809ETAGS 810CTAGS 811am__fastdepCC_FALSE 812am__fastdepCC_TRUE 813CCDEPMODE 814am__nodep 815AMDEPBACKSLASH 816AMDEP_FALSE 817AMDEP_TRUE 818am__include 819DEPDIR 820am__untar 821am__tar 822AMTAR 823am__leading_dot 824SET_MAKE 825AWK 826mkdir_p 827MKDIR_P 828INSTALL_STRIP_PROGRAM 829STRIP 830install_sh 831MAKEINFO 832AUTOHEADER 833AUTOMAKE 834AUTOCONF 835ACLOCAL 836VERSION 837PACKAGE 838CYGPATH_W 839am__isrc 840INSTALL_DATA 841INSTALL_SCRIPT 842INSTALL_PROGRAM 843OBJEXT 844EXEEXT 845ac_ct_CC 846CPPFLAGS 847LDFLAGS 848CFLAGS 849CC 850target_alias 851host_alias 852build_alias 853LIBS 854ECHO_T 855ECHO_N 856ECHO_C 857DEFS 858mandir 859localedir 860libdir 861psdir 862pdfdir 863dvidir 864htmldir 865infodir 866docdir 867oldincludedir 868includedir 869runstatedir 870localstatedir 871sharedstatedir 872sysconfdir 873datadir 874datarootdir 875libexecdir 876sbindir 877bindir 878program_transform_name 879prefix 880exec_prefix 881PACKAGE_URL 882PACKAGE_BUGREPORT 883PACKAGE_STRING 884PACKAGE_VERSION 885PACKAGE_TARNAME 886PACKAGE_NAME 887PATH_SEPARATOR 888SHELL 889am__quote' 890ac_subst_files='' 891ac_user_opts=' 892enable_option_checking 893enable_dependency_tracking 894enable_silent_rules 895enable_shared 896enable_static 897with_pic 898enable_fast_install 899with_aix_soname 900with_gnu_ld 901with_sysroot 902enable_libtool_lock 903enable_selective_werror 904enable_strict_compilation 905enable_specs 906with_xmlto 907with_fop 908with_xsltproc 909enable_malloc0returnsnull 910with_lint 911enable_lint_library 912' 913 ac_precious_vars='build_alias 914host_alias 915target_alias 916CC 917CFLAGS 918LDFLAGS 919LIBS 920CPPFLAGS 921LT_SYS_LIBRARY_PATH 922PKG_CONFIG 923PKG_CONFIG_PATH 924PKG_CONFIG_LIBDIR 925XMLTO 926FOP 927XSLTPROC 928XEXT_CFLAGS 929XEXT_LIBS 930LINT 931LINT_FLAGS' 932 933 934# Initialize some variables set by options. 935ac_init_help= 936ac_init_version=false 937ac_unrecognized_opts= 938ac_unrecognized_sep= 939# The variables have the same names as the options, with 940# dashes changed to underlines. 941cache_file=/dev/null 942exec_prefix=NONE 943no_create= 944no_recursion= 945prefix=NONE 946program_prefix=NONE 947program_suffix=NONE 948program_transform_name=s,x,x, 949silent= 950site= 951srcdir= 952verbose= 953x_includes=NONE 954x_libraries=NONE 955 956# Installation directory options. 957# These are left unexpanded so users can "make install exec_prefix=/foo" 958# and all the variables that are supposed to be based on exec_prefix 959# by default will actually change. 960# Use braces instead of parens because sh, perl, etc. also accept them. 961# (The list follows the same order as the GNU Coding Standards.) 962bindir='${exec_prefix}/bin' 963sbindir='${exec_prefix}/sbin' 964libexecdir='${exec_prefix}/libexec' 965datarootdir='${prefix}/share' 966datadir='${datarootdir}' 967sysconfdir='${prefix}/etc' 968sharedstatedir='${prefix}/com' 969localstatedir='${prefix}/var' 970runstatedir='${localstatedir}/run' 971includedir='${prefix}/include' 972oldincludedir='/usr/include' 973docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 974infodir='${datarootdir}/info' 975htmldir='${docdir}' 976dvidir='${docdir}' 977pdfdir='${docdir}' 978psdir='${docdir}' 979libdir='${exec_prefix}/lib' 980localedir='${datarootdir}/locale' 981mandir='${datarootdir}/man' 982 983ac_prev= 984ac_dashdash= 985for ac_option 986do 987 # If the previous option needs an argument, assign it. 988 if test -n "$ac_prev"; then 989 eval $ac_prev=\$ac_option 990 ac_prev= 991 continue 992 fi 993 994 case $ac_option in 995 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 996 *=) ac_optarg= ;; 997 *) ac_optarg=yes ;; 998 esac 999 1000 case $ac_dashdash$ac_option in 1001 --) 1002 ac_dashdash=yes ;; 1003 1004 -bindir | --bindir | --bindi | --bind | --bin | --bi) 1005 ac_prev=bindir ;; 1006 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 1007 bindir=$ac_optarg ;; 1008 1009 -build | --build | --buil | --bui | --bu) 1010 ac_prev=build_alias ;; 1011 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 1012 build_alias=$ac_optarg ;; 1013 1014 -cache-file | --cache-file | --cache-fil | --cache-fi \ 1015 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 1016 ac_prev=cache_file ;; 1017 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 1018 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 1019 cache_file=$ac_optarg ;; 1020 1021 --config-cache | -C) 1022 cache_file=config.cache ;; 1023 1024 -datadir | --datadir | --datadi | --datad) 1025 ac_prev=datadir ;; 1026 -datadir=* | --datadir=* | --datadi=* | --datad=*) 1027 datadir=$ac_optarg ;; 1028 1029 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 1030 | --dataroo | --dataro | --datar) 1031 ac_prev=datarootdir ;; 1032 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 1033 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 1034 datarootdir=$ac_optarg ;; 1035 1036 -disable-* | --disable-*) 1037 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 1038 # Reject names that are not valid shell variable names. 1039 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1040 as_fn_error $? "invalid feature name: '$ac_useropt'" 1041 ac_useropt_orig=$ac_useropt 1042 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1043 case $ac_user_opts in 1044 *" 1045"enable_$ac_useropt" 1046"*) ;; 1047 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 1048 ac_unrecognized_sep=', ';; 1049 esac 1050 eval enable_$ac_useropt=no ;; 1051 1052 -docdir | --docdir | --docdi | --doc | --do) 1053 ac_prev=docdir ;; 1054 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1055 docdir=$ac_optarg ;; 1056 1057 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1058 ac_prev=dvidir ;; 1059 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1060 dvidir=$ac_optarg ;; 1061 1062 -enable-* | --enable-*) 1063 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1064 # Reject names that are not valid shell variable names. 1065 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1066 as_fn_error $? "invalid feature name: '$ac_useropt'" 1067 ac_useropt_orig=$ac_useropt 1068 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1069 case $ac_user_opts in 1070 *" 1071"enable_$ac_useropt" 1072"*) ;; 1073 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1074 ac_unrecognized_sep=', ';; 1075 esac 1076 eval enable_$ac_useropt=\$ac_optarg ;; 1077 1078 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1079 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1080 | --exec | --exe | --ex) 1081 ac_prev=exec_prefix ;; 1082 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1083 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1084 | --exec=* | --exe=* | --ex=*) 1085 exec_prefix=$ac_optarg ;; 1086 1087 -gas | --gas | --ga | --g) 1088 # Obsolete; use --with-gas. 1089 with_gas=yes ;; 1090 1091 -help | --help | --hel | --he | -h) 1092 ac_init_help=long ;; 1093 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1094 ac_init_help=recursive ;; 1095 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1096 ac_init_help=short ;; 1097 1098 -host | --host | --hos | --ho) 1099 ac_prev=host_alias ;; 1100 -host=* | --host=* | --hos=* | --ho=*) 1101 host_alias=$ac_optarg ;; 1102 1103 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1104 ac_prev=htmldir ;; 1105 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1106 | --ht=*) 1107 htmldir=$ac_optarg ;; 1108 1109 -includedir | --includedir | --includedi | --included | --include \ 1110 | --includ | --inclu | --incl | --inc) 1111 ac_prev=includedir ;; 1112 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1113 | --includ=* | --inclu=* | --incl=* | --inc=*) 1114 includedir=$ac_optarg ;; 1115 1116 -infodir | --infodir | --infodi | --infod | --info | --inf) 1117 ac_prev=infodir ;; 1118 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1119 infodir=$ac_optarg ;; 1120 1121 -libdir | --libdir | --libdi | --libd) 1122 ac_prev=libdir ;; 1123 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1124 libdir=$ac_optarg ;; 1125 1126 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1127 | --libexe | --libex | --libe) 1128 ac_prev=libexecdir ;; 1129 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1130 | --libexe=* | --libex=* | --libe=*) 1131 libexecdir=$ac_optarg ;; 1132 1133 -localedir | --localedir | --localedi | --localed | --locale) 1134 ac_prev=localedir ;; 1135 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1136 localedir=$ac_optarg ;; 1137 1138 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1139 | --localstate | --localstat | --localsta | --localst | --locals) 1140 ac_prev=localstatedir ;; 1141 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1142 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1143 localstatedir=$ac_optarg ;; 1144 1145 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1146 ac_prev=mandir ;; 1147 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1148 mandir=$ac_optarg ;; 1149 1150 -nfp | --nfp | --nf) 1151 # Obsolete; use --without-fp. 1152 with_fp=no ;; 1153 1154 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1155 | --no-cr | --no-c | -n) 1156 no_create=yes ;; 1157 1158 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1159 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1160 no_recursion=yes ;; 1161 1162 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1163 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1164 | --oldin | --oldi | --old | --ol | --o) 1165 ac_prev=oldincludedir ;; 1166 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1167 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1168 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1169 oldincludedir=$ac_optarg ;; 1170 1171 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1172 ac_prev=prefix ;; 1173 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1174 prefix=$ac_optarg ;; 1175 1176 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1177 | --program-pre | --program-pr | --program-p) 1178 ac_prev=program_prefix ;; 1179 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1180 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1181 program_prefix=$ac_optarg ;; 1182 1183 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1184 | --program-suf | --program-su | --program-s) 1185 ac_prev=program_suffix ;; 1186 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1187 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1188 program_suffix=$ac_optarg ;; 1189 1190 -program-transform-name | --program-transform-name \ 1191 | --program-transform-nam | --program-transform-na \ 1192 | --program-transform-n | --program-transform- \ 1193 | --program-transform | --program-transfor \ 1194 | --program-transfo | --program-transf \ 1195 | --program-trans | --program-tran \ 1196 | --progr-tra | --program-tr | --program-t) 1197 ac_prev=program_transform_name ;; 1198 -program-transform-name=* | --program-transform-name=* \ 1199 | --program-transform-nam=* | --program-transform-na=* \ 1200 | --program-transform-n=* | --program-transform-=* \ 1201 | --program-transform=* | --program-transfor=* \ 1202 | --program-transfo=* | --program-transf=* \ 1203 | --program-trans=* | --program-tran=* \ 1204 | --progr-tra=* | --program-tr=* | --program-t=*) 1205 program_transform_name=$ac_optarg ;; 1206 1207 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1208 ac_prev=pdfdir ;; 1209 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1210 pdfdir=$ac_optarg ;; 1211 1212 -psdir | --psdir | --psdi | --psd | --ps) 1213 ac_prev=psdir ;; 1214 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1215 psdir=$ac_optarg ;; 1216 1217 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1218 | -silent | --silent | --silen | --sile | --sil) 1219 silent=yes ;; 1220 1221 -runstatedir | --runstatedir | --runstatedi | --runstated \ 1222 | --runstate | --runstat | --runsta | --runst | --runs \ 1223 | --run | --ru | --r) 1224 ac_prev=runstatedir ;; 1225 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ 1226 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ 1227 | --run=* | --ru=* | --r=*) 1228 runstatedir=$ac_optarg ;; 1229 1230 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1231 ac_prev=sbindir ;; 1232 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1233 | --sbi=* | --sb=*) 1234 sbindir=$ac_optarg ;; 1235 1236 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1237 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1238 | --sharedst | --shareds | --shared | --share | --shar \ 1239 | --sha | --sh) 1240 ac_prev=sharedstatedir ;; 1241 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1242 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1243 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1244 | --sha=* | --sh=*) 1245 sharedstatedir=$ac_optarg ;; 1246 1247 -site | --site | --sit) 1248 ac_prev=site ;; 1249 -site=* | --site=* | --sit=*) 1250 site=$ac_optarg ;; 1251 1252 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1253 ac_prev=srcdir ;; 1254 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1255 srcdir=$ac_optarg ;; 1256 1257 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1258 | --syscon | --sysco | --sysc | --sys | --sy) 1259 ac_prev=sysconfdir ;; 1260 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1261 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1262 sysconfdir=$ac_optarg ;; 1263 1264 -target | --target | --targe | --targ | --tar | --ta | --t) 1265 ac_prev=target_alias ;; 1266 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1267 target_alias=$ac_optarg ;; 1268 1269 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1270 verbose=yes ;; 1271 1272 -version | --version | --versio | --versi | --vers | -V) 1273 ac_init_version=: ;; 1274 1275 -with-* | --with-*) 1276 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1277 # Reject names that are not valid shell variable names. 1278 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1279 as_fn_error $? "invalid package name: '$ac_useropt'" 1280 ac_useropt_orig=$ac_useropt 1281 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1282 case $ac_user_opts in 1283 *" 1284"with_$ac_useropt" 1285"*) ;; 1286 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1287 ac_unrecognized_sep=', ';; 1288 esac 1289 eval with_$ac_useropt=\$ac_optarg ;; 1290 1291 -without-* | --without-*) 1292 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1293 # Reject names that are not valid shell variable names. 1294 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1295 as_fn_error $? "invalid package name: '$ac_useropt'" 1296 ac_useropt_orig=$ac_useropt 1297 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1298 case $ac_user_opts in 1299 *" 1300"with_$ac_useropt" 1301"*) ;; 1302 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1303 ac_unrecognized_sep=', ';; 1304 esac 1305 eval with_$ac_useropt=no ;; 1306 1307 --x) 1308 # Obsolete; use --with-x. 1309 with_x=yes ;; 1310 1311 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1312 | --x-incl | --x-inc | --x-in | --x-i) 1313 ac_prev=x_includes ;; 1314 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1315 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1316 x_includes=$ac_optarg ;; 1317 1318 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1319 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1320 ac_prev=x_libraries ;; 1321 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1322 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1323 x_libraries=$ac_optarg ;; 1324 1325 -*) as_fn_error $? "unrecognized option: '$ac_option' 1326Try '$0 --help' for more information" 1327 ;; 1328 1329 *=*) 1330 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1331 # Reject names that are not valid shell variable names. 1332 case $ac_envvar in #( 1333 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1334 as_fn_error $? "invalid variable name: '$ac_envvar'" ;; 1335 esac 1336 eval $ac_envvar=\$ac_optarg 1337 export $ac_envvar ;; 1338 1339 *) 1340 # FIXME: should be removed in autoconf 3.0. 1341 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2 1342 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1343 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2 1344 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1345 ;; 1346 1347 esac 1348done 1349 1350if test -n "$ac_prev"; then 1351 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1352 as_fn_error $? "missing argument to $ac_option" 1353fi 1354 1355if test -n "$ac_unrecognized_opts"; then 1356 case $enable_option_checking in 1357 no) ;; 1358 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1359 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1360 esac 1361fi 1362 1363# Check all directory arguments for consistency. 1364for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1365 datadir sysconfdir sharedstatedir localstatedir includedir \ 1366 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1367 libdir localedir mandir runstatedir 1368do 1369 eval ac_val=\$$ac_var 1370 # Remove trailing slashes. 1371 case $ac_val in 1372 */ ) 1373 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1374 eval $ac_var=\$ac_val;; 1375 esac 1376 # Be sure to have absolute directory names. 1377 case $ac_val in 1378 [\\/$]* | ?:[\\/]* ) continue;; 1379 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1380 esac 1381 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1382done 1383 1384# There might be people who depend on the old broken behavior: '$host' 1385# used to hold the argument of --host etc. 1386# FIXME: To remove some day. 1387build=$build_alias 1388host=$host_alias 1389target=$target_alias 1390 1391# FIXME: To remove some day. 1392if test "x$host_alias" != x; then 1393 if test "x$build_alias" = x; then 1394 cross_compiling=maybe 1395 elif test "x$build_alias" != "x$host_alias"; then 1396 cross_compiling=yes 1397 fi 1398fi 1399 1400ac_tool_prefix= 1401test -n "$host_alias" && ac_tool_prefix=$host_alias- 1402 1403test "$silent" = yes && exec 6>/dev/null 1404 1405 1406ac_pwd=`pwd` && test -n "$ac_pwd" && 1407ac_ls_di=`ls -di .` && 1408ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1409 as_fn_error $? "working directory cannot be determined" 1410test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1411 as_fn_error $? "pwd does not report name of working directory" 1412 1413 1414# Find the source files, if location was not specified. 1415if test -z "$srcdir"; then 1416 ac_srcdir_defaulted=yes 1417 # Try the directory containing this script, then the parent directory. 1418 ac_confdir=`$as_dirname -- "$as_myself" || 1419$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1420 X"$as_myself" : 'X\(//\)[^/]' \| \ 1421 X"$as_myself" : 'X\(//\)$' \| \ 1422 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1423printf "%s\n" X"$as_myself" | 1424 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1425 s//\1/ 1426 q 1427 } 1428 /^X\(\/\/\)[^/].*/{ 1429 s//\1/ 1430 q 1431 } 1432 /^X\(\/\/\)$/{ 1433 s//\1/ 1434 q 1435 } 1436 /^X\(\/\).*/{ 1437 s//\1/ 1438 q 1439 } 1440 s/.*/./; q'` 1441 srcdir=$ac_confdir 1442 if test ! -r "$srcdir/$ac_unique_file"; then 1443 srcdir=.. 1444 fi 1445else 1446 ac_srcdir_defaulted=no 1447fi 1448if test ! -r "$srcdir/$ac_unique_file"; then 1449 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1450 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1451fi 1452ac_msg="sources are in $srcdir, but 'cd $srcdir' does not work" 1453ac_abs_confdir=`( 1454 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1455 pwd)` 1456# When building in place, set srcdir=. 1457if test "$ac_abs_confdir" = "$ac_pwd"; then 1458 srcdir=. 1459fi 1460# Remove unnecessary trailing slashes from srcdir. 1461# Double slashes in file names in object file debugging info 1462# mess up M-x gdb in Emacs. 1463case $srcdir in 1464*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1465esac 1466for ac_var in $ac_precious_vars; do 1467 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1468 eval ac_env_${ac_var}_value=\$${ac_var} 1469 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1470 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1471done 1472 1473# 1474# Report the --help message. 1475# 1476if test "$ac_init_help" = "long"; then 1477 # Omit some internal or obsolete options to make the list less imposing. 1478 # This message is too long to be a string in the A/UX 3.1 sh. 1479 cat <<_ACEOF 1480'configure' configures libXext 1.3.6 to adapt to many kinds of systems. 1481 1482Usage: $0 [OPTION]... [VAR=VALUE]... 1483 1484To assign environment variables (e.g., CC, CFLAGS...), specify them as 1485VAR=VALUE. See below for descriptions of some of the useful variables. 1486 1487Defaults for the options are specified in brackets. 1488 1489Configuration: 1490 -h, --help display this help and exit 1491 --help=short display options specific to this package 1492 --help=recursive display the short help of all the included packages 1493 -V, --version display version information and exit 1494 -q, --quiet, --silent do not print 'checking ...' messages 1495 --cache-file=FILE cache test results in FILE [disabled] 1496 -C, --config-cache alias for '--cache-file=config.cache' 1497 -n, --no-create do not create output files 1498 --srcdir=DIR find the sources in DIR [configure dir or '..'] 1499 1500Installation directories: 1501 --prefix=PREFIX install architecture-independent files in PREFIX 1502 [$ac_default_prefix] 1503 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1504 [PREFIX] 1505 1506By default, 'make install' will install all the files in 1507'$ac_default_prefix/bin', '$ac_default_prefix/lib' etc. You can specify 1508an installation prefix other than '$ac_default_prefix' using '--prefix', 1509for instance '--prefix=\$HOME'. 1510 1511For better control, use the options below. 1512 1513Fine tuning of the installation directories: 1514 --bindir=DIR user executables [EPREFIX/bin] 1515 --sbindir=DIR system admin executables [EPREFIX/sbin] 1516 --libexecdir=DIR program executables [EPREFIX/libexec] 1517 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1518 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1519 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1520 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] 1521 --libdir=DIR object code libraries [EPREFIX/lib] 1522 --includedir=DIR C header files [PREFIX/include] 1523 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1524 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1525 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1526 --infodir=DIR info documentation [DATAROOTDIR/info] 1527 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1528 --mandir=DIR man documentation [DATAROOTDIR/man] 1529 --docdir=DIR documentation root [DATAROOTDIR/doc/libXext] 1530 --htmldir=DIR html documentation [DOCDIR] 1531 --dvidir=DIR dvi documentation [DOCDIR] 1532 --pdfdir=DIR pdf documentation [DOCDIR] 1533 --psdir=DIR ps documentation [DOCDIR] 1534_ACEOF 1535 1536 cat <<\_ACEOF 1537 1538Program names: 1539 --program-prefix=PREFIX prepend PREFIX to installed program names 1540 --program-suffix=SUFFIX append SUFFIX to installed program names 1541 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1542 1543System types: 1544 --build=BUILD configure for building on BUILD [guessed] 1545 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1546_ACEOF 1547fi 1548 1549if test -n "$ac_init_help"; then 1550 case $ac_init_help in 1551 short | recursive ) echo "Configuration of libXext 1.3.6:";; 1552 esac 1553 cat <<\_ACEOF 1554 1555Optional Features: 1556 --disable-option-checking ignore unrecognized --enable/--with options 1557 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1558 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1559 --enable-dependency-tracking 1560 do not reject slow dependency extractors 1561 --disable-dependency-tracking 1562 speeds up one-time build 1563 --enable-silent-rules less verbose build output (undo: "make V=1") 1564 --disable-silent-rules verbose build output (undo: "make V=0") 1565 --enable-shared[=PKGS] build shared libraries [default=yes] 1566 --enable-static[=PKGS] build static libraries [default=yes] 1567 --enable-fast-install[=PKGS] 1568 optimize for fast installation [default=yes] 1569 --disable-libtool-lock avoid locking (might break parallel builds) 1570 --disable-selective-werror 1571 Turn off selective compiler errors. (default: 1572 enabled) 1573 --enable-strict-compilation 1574 Enable all warnings from compiler and make them 1575 errors (default: disabled) 1576 --enable-specs Enable building the specs (default: yes) 1577 --enable-malloc0returnsnull 1578 malloc(0) returns NULL (default: auto) 1579 --enable-lint-library Create lint library (default: disabled) 1580 1581Optional Packages: 1582 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1583 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1584 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1585 both] 1586 --with-aix-soname=aix|svr4|both 1587 shared library versioning (aka "SONAME") variant to 1588 provide on AIX, [default=aix]. 1589 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1590 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the 1591 compiler's sysroot if not specified). 1592 --with-xmlto Use xmlto to regenerate documentation (default: 1593 auto) 1594 --with-fop Use fop to regenerate documentation (default: auto) 1595 --with-xsltproc Use xsltproc for the transformation of XML documents 1596 (default: auto) 1597 --with-lint Use a lint-style source code checker (default: 1598 disabled) 1599 1600Some influential environment variables: 1601 CC C compiler command 1602 CFLAGS C compiler flags 1603 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1604 nonstandard directory <lib dir> 1605 LIBS libraries to pass to the linker, e.g. -l<library> 1606 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1607 you have headers in a nonstandard directory <include dir> 1608 LT_SYS_LIBRARY_PATH 1609 User-defined run-time library search path. 1610 PKG_CONFIG path to pkg-config utility 1611 PKG_CONFIG_PATH 1612 directories to add to pkg-config's search path 1613 PKG_CONFIG_LIBDIR 1614 path overriding pkg-config's built-in search path 1615 XMLTO Path to xmlto command 1616 FOP Path to fop command 1617 XSLTPROC Path to xsltproc command 1618 XEXT_CFLAGS C compiler flags for XEXT, overriding pkg-config 1619 XEXT_LIBS linker flags for XEXT, overriding pkg-config 1620 LINT Path to a lint-style command 1621 LINT_FLAGS Flags for the lint-style command 1622 1623Use these variables to override the choices made by 'configure' or to help 1624it to find libraries and programs with nonstandard names/locations. 1625 1626Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libxext/-/issues>. 1627_ACEOF 1628ac_status=$? 1629fi 1630 1631if test "$ac_init_help" = "recursive"; then 1632 # If there are subdirs, report their specific --help. 1633 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1634 test -d "$ac_dir" || 1635 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1636 continue 1637 ac_builddir=. 1638 1639case "$ac_dir" in 1640.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1641*) 1642 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 1643 # A ".." for each directory in $ac_dir_suffix. 1644 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1645 case $ac_top_builddir_sub in 1646 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1647 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1648 esac ;; 1649esac 1650ac_abs_top_builddir=$ac_pwd 1651ac_abs_builddir=$ac_pwd$ac_dir_suffix 1652# for backward compatibility: 1653ac_top_builddir=$ac_top_build_prefix 1654 1655case $srcdir in 1656 .) # We are building in place. 1657 ac_srcdir=. 1658 ac_top_srcdir=$ac_top_builddir_sub 1659 ac_abs_top_srcdir=$ac_pwd ;; 1660 [\\/]* | ?:[\\/]* ) # Absolute name. 1661 ac_srcdir=$srcdir$ac_dir_suffix; 1662 ac_top_srcdir=$srcdir 1663 ac_abs_top_srcdir=$srcdir ;; 1664 *) # Relative name. 1665 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1666 ac_top_srcdir=$ac_top_build_prefix$srcdir 1667 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1668esac 1669ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1670 1671 cd "$ac_dir" || { ac_status=$?; continue; } 1672 # Check for configure.gnu first; this name is used for a wrapper for 1673 # Metaconfig's "Configure" on case-insensitive file systems. 1674 if test -f "$ac_srcdir/configure.gnu"; then 1675 echo && 1676 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1677 elif test -f "$ac_srcdir/configure"; then 1678 echo && 1679 $SHELL "$ac_srcdir/configure" --help=recursive 1680 else 1681 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1682 fi || ac_status=$? 1683 cd "$ac_pwd" || { ac_status=$?; break; } 1684 done 1685fi 1686 1687test -n "$ac_init_help" && exit $ac_status 1688if $ac_init_version; then 1689 cat <<\_ACEOF 1690libXext configure 1.3.6 1691generated by GNU Autoconf 2.72 1692 1693Copyright (C) 2023 Free Software Foundation, Inc. 1694This configure script is free software; the Free Software Foundation 1695gives unlimited permission to copy, distribute and modify it. 1696_ACEOF 1697 exit 1698fi 1699 1700## ------------------------ ## 1701## Autoconf initialization. ## 1702## ------------------------ ## 1703 1704# ac_fn_c_try_compile LINENO 1705# -------------------------- 1706# Try to compile conftest.$ac_ext, and return whether this succeeded. 1707ac_fn_c_try_compile () 1708{ 1709 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1710 rm -f conftest.$ac_objext conftest.beam 1711 if { { ac_try="$ac_compile" 1712case "(($ac_try" in 1713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1714 *) ac_try_echo=$ac_try;; 1715esac 1716eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1717printf "%s\n" "$ac_try_echo"; } >&5 1718 (eval "$ac_compile") 2>conftest.err 1719 ac_status=$? 1720 if test -s conftest.err; then 1721 grep -v '^ *+' conftest.err >conftest.er1 1722 cat conftest.er1 >&5 1723 mv -f conftest.er1 conftest.err 1724 fi 1725 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1726 test $ac_status = 0; } && { 1727 test -z "$ac_c_werror_flag" || 1728 test ! -s conftest.err 1729 } && test -s conftest.$ac_objext 1730then : 1731 ac_retval=0 1732else case e in #( 1733 e) printf "%s\n" "$as_me: failed program was:" >&5 1734sed 's/^/| /' conftest.$ac_ext >&5 1735 1736 ac_retval=1 ;; 1737esac 1738fi 1739 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1740 as_fn_set_status $ac_retval 1741 1742} # ac_fn_c_try_compile 1743 1744# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1745# ------------------------------------------------------- 1746# Tests whether HEADER exists and can be compiled using the include files in 1747# INCLUDES, setting the cache variable VAR accordingly. 1748ac_fn_c_check_header_compile () 1749{ 1750 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1751 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1752printf %s "checking for $2... " >&6; } 1753if eval test \${$3+y} 1754then : 1755 printf %s "(cached) " >&6 1756else case e in #( 1757 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1758/* end confdefs.h. */ 1759$4 1760#include <$2> 1761_ACEOF 1762if ac_fn_c_try_compile "$LINENO" 1763then : 1764 eval "$3=yes" 1765else case e in #( 1766 e) eval "$3=no" ;; 1767esac 1768fi 1769rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 1770esac 1771fi 1772eval ac_res=\$$3 1773 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1774printf "%s\n" "$ac_res" >&6; } 1775 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1776 1777} # ac_fn_c_check_header_compile 1778 1779# ac_fn_c_try_link LINENO 1780# ----------------------- 1781# Try to link conftest.$ac_ext, and return whether this succeeded. 1782ac_fn_c_try_link () 1783{ 1784 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1785 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext 1786 if { { ac_try="$ac_link" 1787case "(($ac_try" in 1788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1789 *) ac_try_echo=$ac_try;; 1790esac 1791eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1792printf "%s\n" "$ac_try_echo"; } >&5 1793 (eval "$ac_link") 2>conftest.err 1794 ac_status=$? 1795 if test -s conftest.err; then 1796 grep -v '^ *+' conftest.err >conftest.er1 1797 cat conftest.er1 >&5 1798 mv -f conftest.er1 conftest.err 1799 fi 1800 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1801 test $ac_status = 0; } && { 1802 test -z "$ac_c_werror_flag" || 1803 test ! -s conftest.err 1804 } && test -s conftest$ac_exeext && { 1805 test "$cross_compiling" = yes || 1806 test -x conftest$ac_exeext 1807 } 1808then : 1809 ac_retval=0 1810else case e in #( 1811 e) printf "%s\n" "$as_me: failed program was:" >&5 1812sed 's/^/| /' conftest.$ac_ext >&5 1813 1814 ac_retval=1 ;; 1815esac 1816fi 1817 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1818 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1819 # interfere with the next link command; also delete a directory that is 1820 # left behind by Apple's compiler. We do this before executing the actions. 1821 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1822 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1823 as_fn_set_status $ac_retval 1824 1825} # ac_fn_c_try_link 1826 1827# ac_fn_c_check_func LINENO FUNC VAR 1828# ---------------------------------- 1829# Tests whether FUNC exists, setting the cache variable VAR accordingly 1830ac_fn_c_check_func () 1831{ 1832 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1833 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1834printf %s "checking for $2... " >&6; } 1835if eval test \${$3+y} 1836then : 1837 printf %s "(cached) " >&6 1838else case e in #( 1839 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1840/* end confdefs.h. */ 1841/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1842 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1843#define $2 innocuous_$2 1844 1845/* System header to define __stub macros and hopefully few prototypes, 1846 which can conflict with char $2 (void); below. */ 1847 1848#include <limits.h> 1849#undef $2 1850 1851/* Override any GCC internal prototype to avoid an error. 1852 Use char because int might match the return type of a GCC 1853 builtin and then its argument prototype would still apply. */ 1854#ifdef __cplusplus 1855extern "C" 1856#endif 1857char $2 (void); 1858/* The GNU C library defines this for functions which it implements 1859 to always fail with ENOSYS. Some functions are actually named 1860 something starting with __ and the normal name is an alias. */ 1861#if defined __stub_$2 || defined __stub___$2 1862choke me 1863#endif 1864 1865int 1866main (void) 1867{ 1868return $2 (); 1869 ; 1870 return 0; 1871} 1872_ACEOF 1873if ac_fn_c_try_link "$LINENO" 1874then : 1875 eval "$3=yes" 1876else case e in #( 1877 e) eval "$3=no" ;; 1878esac 1879fi 1880rm -f core conftest.err conftest.$ac_objext conftest.beam \ 1881 conftest$ac_exeext conftest.$ac_ext ;; 1882esac 1883fi 1884eval ac_res=\$$3 1885 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1886printf "%s\n" "$ac_res" >&6; } 1887 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1888 1889} # ac_fn_c_check_func 1890 1891# ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR 1892# ------------------------------------------------------------------ 1893# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 1894# accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR. 1895ac_fn_check_decl () 1896{ 1897 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1898 as_decl_name=`echo $2|sed 's/ *(.*//'` 1899 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 1900printf %s "checking whether $as_decl_name is declared... " >&6; } 1901if eval test \${$3+y} 1902then : 1903 printf %s "(cached) " >&6 1904else case e in #( 1905 e) as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 1906 eval ac_save_FLAGS=\$$6 1907 as_fn_append $6 " $5" 1908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1909/* end confdefs.h. */ 1910$4 1911int 1912main (void) 1913{ 1914#ifndef $as_decl_name 1915#ifdef __cplusplus 1916 (void) $as_decl_use; 1917#else 1918 (void) $as_decl_name; 1919#endif 1920#endif 1921 1922 ; 1923 return 0; 1924} 1925_ACEOF 1926if ac_fn_c_try_compile "$LINENO" 1927then : 1928 eval "$3=yes" 1929else case e in #( 1930 e) eval "$3=no" ;; 1931esac 1932fi 1933rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1934 eval $6=\$ac_save_FLAGS 1935 ;; 1936esac 1937fi 1938eval ac_res=\$$3 1939 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1940printf "%s\n" "$ac_res" >&6; } 1941 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1942 1943} # ac_fn_check_decl 1944 1945# ac_fn_c_try_run LINENO 1946# ---------------------- 1947# Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that 1948# executables *can* be run. 1949ac_fn_c_try_run () 1950{ 1951 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1952 if { { ac_try="$ac_link" 1953case "(($ac_try" in 1954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1955 *) ac_try_echo=$ac_try;; 1956esac 1957eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1958printf "%s\n" "$ac_try_echo"; } >&5 1959 (eval "$ac_link") 2>&5 1960 ac_status=$? 1961 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1962 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1963 { { case "(($ac_try" in 1964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1965 *) ac_try_echo=$ac_try;; 1966esac 1967eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1968printf "%s\n" "$ac_try_echo"; } >&5 1969 (eval "$ac_try") 2>&5 1970 ac_status=$? 1971 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1972 test $ac_status = 0; }; } 1973then : 1974 ac_retval=0 1975else case e in #( 1976 e) printf "%s\n" "$as_me: program exited with status $ac_status" >&5 1977 printf "%s\n" "$as_me: failed program was:" >&5 1978sed 's/^/| /' conftest.$ac_ext >&5 1979 1980 ac_retval=$ac_status ;; 1981esac 1982fi 1983 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1984 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1985 as_fn_set_status $ac_retval 1986 1987} # ac_fn_c_try_run 1988ac_configure_args_raw= 1989for ac_arg 1990do 1991 case $ac_arg in 1992 *\'*) 1993 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1994 esac 1995 as_fn_append ac_configure_args_raw " '$ac_arg'" 1996done 1997 1998case $ac_configure_args_raw in 1999 *$as_nl*) 2000 ac_safe_unquote= ;; 2001 *) 2002 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab. 2003 ac_unsafe_a="$ac_unsafe_z#~" 2004 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g" 2005 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;; 2006esac 2007 2008cat >config.log <<_ACEOF 2009This file contains any messages produced by compilers while 2010running configure, to aid debugging if configure makes a mistake. 2011 2012It was created by libXext $as_me 1.3.6, which was 2013generated by GNU Autoconf 2.72. Invocation command line was 2014 2015 $ $0$ac_configure_args_raw 2016 2017_ACEOF 2018exec 5>>config.log 2019{ 2020cat <<_ASUNAME 2021## --------- ## 2022## Platform. ## 2023## --------- ## 2024 2025hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2026uname -m = `(uname -m) 2>/dev/null || echo unknown` 2027uname -r = `(uname -r) 2>/dev/null || echo unknown` 2028uname -s = `(uname -s) 2>/dev/null || echo unknown` 2029uname -v = `(uname -v) 2>/dev/null || echo unknown` 2030 2031/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2032/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2033 2034/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2035/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2036/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2037/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2038/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2039/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2040/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2041 2042_ASUNAME 2043 2044as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2045for as_dir in $PATH 2046do 2047 IFS=$as_save_IFS 2048 case $as_dir in #((( 2049 '') as_dir=./ ;; 2050 */) ;; 2051 *) as_dir=$as_dir/ ;; 2052 esac 2053 printf "%s\n" "PATH: $as_dir" 2054 done 2055IFS=$as_save_IFS 2056 2057} >&5 2058 2059cat >&5 <<_ACEOF 2060 2061 2062## ----------- ## 2063## Core tests. ## 2064## ----------- ## 2065 2066_ACEOF 2067 2068 2069# Keep a trace of the command line. 2070# Strip out --no-create and --no-recursion so they do not pile up. 2071# Strip out --silent because we don't want to record it for future runs. 2072# Also quote any args containing shell meta-characters. 2073# Make two passes to allow for proper duplicate-argument suppression. 2074ac_configure_args= 2075ac_configure_args0= 2076ac_configure_args1= 2077ac_must_keep_next=false 2078for ac_pass in 1 2 2079do 2080 for ac_arg 2081 do 2082 case $ac_arg in 2083 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2084 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2085 | -silent | --silent | --silen | --sile | --sil) 2086 continue ;; 2087 *\'*) 2088 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2089 esac 2090 case $ac_pass in 2091 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2092 2) 2093 as_fn_append ac_configure_args1 " '$ac_arg'" 2094 if test $ac_must_keep_next = true; then 2095 ac_must_keep_next=false # Got value, back to normal. 2096 else 2097 case $ac_arg in 2098 *=* | --config-cache | -C | -disable-* | --disable-* \ 2099 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2100 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2101 | -with-* | --with-* | -without-* | --without-* | --x) 2102 case "$ac_configure_args0 " in 2103 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2104 esac 2105 ;; 2106 -* ) ac_must_keep_next=true ;; 2107 esac 2108 fi 2109 as_fn_append ac_configure_args " '$ac_arg'" 2110 ;; 2111 esac 2112 done 2113done 2114{ ac_configure_args0=; unset ac_configure_args0;} 2115{ ac_configure_args1=; unset ac_configure_args1;} 2116 2117# When interrupted or exit'd, cleanup temporary files, and complete 2118# config.log. We remove comments because anyway the quotes in there 2119# would cause problems or look ugly. 2120# WARNING: Use '\'' to represent an apostrophe within the trap. 2121# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2122trap 'exit_status=$? 2123 # Sanitize IFS. 2124 IFS=" "" $as_nl" 2125 # Save into config.log some information that might help in debugging. 2126 { 2127 echo 2128 2129 printf "%s\n" "## ---------------- ## 2130## Cache variables. ## 2131## ---------------- ##" 2132 echo 2133 # The following way of writing the cache mishandles newlines in values, 2134( 2135 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2136 eval ac_val=\$$ac_var 2137 case $ac_val in #( 2138 *${as_nl}*) 2139 case $ac_var in #( 2140 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2141printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2142 esac 2143 case $ac_var in #( 2144 _ | IFS | as_nl) ;; #( 2145 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2146 *) { eval $ac_var=; unset $ac_var;} ;; 2147 esac ;; 2148 esac 2149 done 2150 (set) 2>&1 | 2151 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2152 *${as_nl}ac_space=\ *) 2153 sed -n \ 2154 "s/'\''/'\''\\\\'\'''\''/g; 2155 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2156 ;; #( 2157 *) 2158 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2159 ;; 2160 esac | 2161 sort 2162) 2163 echo 2164 2165 printf "%s\n" "## ----------------- ## 2166## Output variables. ## 2167## ----------------- ##" 2168 echo 2169 for ac_var in $ac_subst_vars 2170 do 2171 eval ac_val=\$$ac_var 2172 case $ac_val in 2173 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2174 esac 2175 printf "%s\n" "$ac_var='\''$ac_val'\''" 2176 done | sort 2177 echo 2178 2179 if test -n "$ac_subst_files"; then 2180 printf "%s\n" "## ------------------- ## 2181## File substitutions. ## 2182## ------------------- ##" 2183 echo 2184 for ac_var in $ac_subst_files 2185 do 2186 eval ac_val=\$$ac_var 2187 case $ac_val in 2188 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2189 esac 2190 printf "%s\n" "$ac_var='\''$ac_val'\''" 2191 done | sort 2192 echo 2193 fi 2194 2195 if test -s confdefs.h; then 2196 printf "%s\n" "## ----------- ## 2197## confdefs.h. ## 2198## ----------- ##" 2199 echo 2200 cat confdefs.h 2201 echo 2202 fi 2203 test "$ac_signal" != 0 && 2204 printf "%s\n" "$as_me: caught signal $ac_signal" 2205 printf "%s\n" "$as_me: exit $exit_status" 2206 } >&5 2207 rm -f core *.core core.conftest.* && 2208 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2209 exit $exit_status 2210' 0 2211for ac_signal in 1 2 13 15; do 2212 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2213done 2214ac_signal=0 2215 2216# confdefs.h avoids OS command line length limits that DEFS can exceed. 2217rm -f -r conftest* confdefs.h 2218 2219printf "%s\n" "/* confdefs.h */" > confdefs.h 2220 2221# Predefined preprocessor variables. 2222 2223printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h 2224 2225printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h 2226 2227printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h 2228 2229printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h 2230 2231printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h 2232 2233printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h 2234 2235 2236# Let the site file select an alternate cache file if it wants to. 2237# Prefer an explicitly selected file to automatically selected ones. 2238if test -n "$CONFIG_SITE"; then 2239 ac_site_files="$CONFIG_SITE" 2240elif test "x$prefix" != xNONE; then 2241 ac_site_files="$prefix/share/config.site $prefix/etc/config.site" 2242else 2243 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 2244fi 2245 2246for ac_site_file in $ac_site_files 2247do 2248 case $ac_site_file in #( 2249 */*) : 2250 ;; #( 2251 *) : 2252 ac_site_file=./$ac_site_file ;; 2253esac 2254 if test -f "$ac_site_file" && test -r "$ac_site_file"; then 2255 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2256printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;} 2257 sed 's/^/| /' "$ac_site_file" >&5 2258 . "$ac_site_file" \ 2259 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 2260printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 2261as_fn_error $? "failed to load site script $ac_site_file 2262See 'config.log' for more details" "$LINENO" 5; } 2263 fi 2264done 2265 2266if test -r "$cache_file"; then 2267 # Some versions of bash will fail to source /dev/null (special files 2268 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2269 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2270 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2271printf "%s\n" "$as_me: loading cache $cache_file" >&6;} 2272 case $cache_file in 2273 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2274 *) . "./$cache_file";; 2275 esac 2276 fi 2277else 2278 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2279printf "%s\n" "$as_me: creating cache $cache_file" >&6;} 2280 >$cache_file 2281fi 2282 2283as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H" 2284# Test code for whether the C compiler supports C89 (global declarations) 2285ac_c_conftest_c89_globals=' 2286/* Does the compiler advertise C89 conformance? 2287 Do not test the value of __STDC__, because some compilers set it to 0 2288 while being otherwise adequately conformant. */ 2289#if !defined __STDC__ 2290# error "Compiler does not advertise C89 conformance" 2291#endif 2292 2293#include <stddef.h> 2294#include <stdarg.h> 2295struct stat; 2296/* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */ 2297struct buf { int x; }; 2298struct buf * (*rcsopen) (struct buf *, struct stat *, int); 2299static char *e (char **p, int i) 2300{ 2301 return p[i]; 2302} 2303static char *f (char * (*g) (char **, int), char **p, ...) 2304{ 2305 char *s; 2306 va_list v; 2307 va_start (v,p); 2308 s = g (p, va_arg (v,int)); 2309 va_end (v); 2310 return s; 2311} 2312 2313/* C89 style stringification. */ 2314#define noexpand_stringify(a) #a 2315const char *stringified = noexpand_stringify(arbitrary+token=sequence); 2316 2317/* C89 style token pasting. Exercises some of the corner cases that 2318 e.g. old MSVC gets wrong, but not very hard. */ 2319#define noexpand_concat(a,b) a##b 2320#define expand_concat(a,b) noexpand_concat(a,b) 2321extern int vA; 2322extern int vbee; 2323#define aye A 2324#define bee B 2325int *pvA = &expand_concat(v,aye); 2326int *pvbee = &noexpand_concat(v,bee); 2327 2328/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 2329 function prototypes and stuff, but not \xHH hex character constants. 2330 These do not provoke an error unfortunately, instead are silently treated 2331 as an "x". The following induces an error, until -std is added to get 2332 proper ANSI mode. Curiously \x00 != x always comes out true, for an 2333 array size at least. It is necessary to write \x00 == 0 to get something 2334 that is true only with -std. */ 2335int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1]; 2336 2337/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 2338 inside strings and character constants. */ 2339#define FOO(x) '\''x'\'' 2340int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1]; 2341 2342int test (int i, double x); 2343struct s1 {int (*f) (int a);}; 2344struct s2 {int (*f) (double a);}; 2345int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int), 2346 int, int);' 2347 2348# Test code for whether the C compiler supports C89 (body of main). 2349ac_c_conftest_c89_main=' 2350ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]); 2351' 2352 2353# Test code for whether the C compiler supports C99 (global declarations) 2354ac_c_conftest_c99_globals=' 2355/* Does the compiler advertise C99 conformance? */ 2356#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L 2357# error "Compiler does not advertise C99 conformance" 2358#endif 2359 2360// See if C++-style comments work. 2361 2362#include <stdbool.h> 2363extern int puts (const char *); 2364extern int printf (const char *, ...); 2365extern int dprintf (int, const char *, ...); 2366extern void *malloc (size_t); 2367extern void free (void *); 2368 2369// Check varargs macros. These examples are taken from C99 6.10.3.5. 2370// dprintf is used instead of fprintf to avoid needing to declare 2371// FILE and stderr. 2372#define debug(...) dprintf (2, __VA_ARGS__) 2373#define showlist(...) puts (#__VA_ARGS__) 2374#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 2375static void 2376test_varargs_macros (void) 2377{ 2378 int x = 1234; 2379 int y = 5678; 2380 debug ("Flag"); 2381 debug ("X = %d\n", x); 2382 showlist (The first, second, and third items.); 2383 report (x>y, "x is %d but y is %d", x, y); 2384} 2385 2386// Check long long types. 2387#define BIG64 18446744073709551615ull 2388#define BIG32 4294967295ul 2389#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 2390#if !BIG_OK 2391 #error "your preprocessor is broken" 2392#endif 2393#if BIG_OK 2394#else 2395 #error "your preprocessor is broken" 2396#endif 2397static long long int bignum = -9223372036854775807LL; 2398static unsigned long long int ubignum = BIG64; 2399 2400struct incomplete_array 2401{ 2402 int datasize; 2403 double data[]; 2404}; 2405 2406struct named_init { 2407 int number; 2408 const wchar_t *name; 2409 double average; 2410}; 2411 2412typedef const char *ccp; 2413 2414static inline int 2415test_restrict (ccp restrict text) 2416{ 2417 // Iterate through items via the restricted pointer. 2418 // Also check for declarations in for loops. 2419 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i) 2420 continue; 2421 return 0; 2422} 2423 2424// Check varargs and va_copy. 2425static bool 2426test_varargs (const char *format, ...) 2427{ 2428 va_list args; 2429 va_start (args, format); 2430 va_list args_copy; 2431 va_copy (args_copy, args); 2432 2433 const char *str = ""; 2434 int number = 0; 2435 float fnumber = 0; 2436 2437 while (*format) 2438 { 2439 switch (*format++) 2440 { 2441 case '\''s'\'': // string 2442 str = va_arg (args_copy, const char *); 2443 break; 2444 case '\''d'\'': // int 2445 number = va_arg (args_copy, int); 2446 break; 2447 case '\''f'\'': // float 2448 fnumber = va_arg (args_copy, double); 2449 break; 2450 default: 2451 break; 2452 } 2453 } 2454 va_end (args_copy); 2455 va_end (args); 2456 2457 return *str && number && fnumber; 2458} 2459' 2460 2461# Test code for whether the C compiler supports C99 (body of main). 2462ac_c_conftest_c99_main=' 2463 // Check bool. 2464 _Bool success = false; 2465 success |= (argc != 0); 2466 2467 // Check restrict. 2468 if (test_restrict ("String literal") == 0) 2469 success = true; 2470 char *restrict newvar = "Another string"; 2471 2472 // Check varargs. 2473 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234); 2474 test_varargs_macros (); 2475 2476 // Check flexible array members. 2477 struct incomplete_array *ia = 2478 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 2479 ia->datasize = 10; 2480 for (int i = 0; i < ia->datasize; ++i) 2481 ia->data[i] = i * 1.234; 2482 // Work around memory leak warnings. 2483 free (ia); 2484 2485 // Check named initializers. 2486 struct named_init ni = { 2487 .number = 34, 2488 .name = L"Test wide string", 2489 .average = 543.34343, 2490 }; 2491 2492 ni.number = 58; 2493 2494 int dynamic_array[ni.number]; 2495 dynamic_array[0] = argv[0][0]; 2496 dynamic_array[ni.number - 1] = 543; 2497 2498 // work around unused variable warnings 2499 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\'' 2500 || dynamic_array[ni.number - 1] != 543); 2501' 2502 2503# Test code for whether the C compiler supports C11 (global declarations) 2504ac_c_conftest_c11_globals=' 2505/* Does the compiler advertise C11 conformance? */ 2506#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L 2507# error "Compiler does not advertise C11 conformance" 2508#endif 2509 2510// Check _Alignas. 2511char _Alignas (double) aligned_as_double; 2512char _Alignas (0) no_special_alignment; 2513extern char aligned_as_int; 2514char _Alignas (0) _Alignas (int) aligned_as_int; 2515 2516// Check _Alignof. 2517enum 2518{ 2519 int_alignment = _Alignof (int), 2520 int_array_alignment = _Alignof (int[100]), 2521 char_alignment = _Alignof (char) 2522}; 2523_Static_assert (0 < -_Alignof (int), "_Alignof is signed"); 2524 2525// Check _Noreturn. 2526int _Noreturn does_not_return (void) { for (;;) continue; } 2527 2528// Check _Static_assert. 2529struct test_static_assert 2530{ 2531 int x; 2532 _Static_assert (sizeof (int) <= sizeof (long int), 2533 "_Static_assert does not work in struct"); 2534 long int y; 2535}; 2536 2537// Check UTF-8 literals. 2538#define u8 syntax error! 2539char const utf8_literal[] = u8"happens to be ASCII" "another string"; 2540 2541// Check duplicate typedefs. 2542typedef long *long_ptr; 2543typedef long int *long_ptr; 2544typedef long_ptr long_ptr; 2545 2546// Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1. 2547struct anonymous 2548{ 2549 union { 2550 struct { int i; int j; }; 2551 struct { int k; long int l; } w; 2552 }; 2553 int m; 2554} v1; 2555' 2556 2557# Test code for whether the C compiler supports C11 (body of main). 2558ac_c_conftest_c11_main=' 2559 _Static_assert ((offsetof (struct anonymous, i) 2560 == offsetof (struct anonymous, w.k)), 2561 "Anonymous union alignment botch"); 2562 v1.i = 2; 2563 v1.w.k = 5; 2564 ok |= v1.i != 5; 2565' 2566 2567# Test code for whether the C compiler supports C11 (complete). 2568ac_c_conftest_c11_program="${ac_c_conftest_c89_globals} 2569${ac_c_conftest_c99_globals} 2570${ac_c_conftest_c11_globals} 2571 2572int 2573main (int argc, char **argv) 2574{ 2575 int ok = 0; 2576 ${ac_c_conftest_c89_main} 2577 ${ac_c_conftest_c99_main} 2578 ${ac_c_conftest_c11_main} 2579 return ok; 2580} 2581" 2582 2583# Test code for whether the C compiler supports C99 (complete). 2584ac_c_conftest_c99_program="${ac_c_conftest_c89_globals} 2585${ac_c_conftest_c99_globals} 2586 2587int 2588main (int argc, char **argv) 2589{ 2590 int ok = 0; 2591 ${ac_c_conftest_c89_main} 2592 ${ac_c_conftest_c99_main} 2593 return ok; 2594} 2595" 2596 2597# Test code for whether the C compiler supports C89 (complete). 2598ac_c_conftest_c89_program="${ac_c_conftest_c89_globals} 2599 2600int 2601main (int argc, char **argv) 2602{ 2603 int ok = 0; 2604 ${ac_c_conftest_c89_main} 2605 return ok; 2606} 2607" 2608 2609as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H" 2610as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H" 2611as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H" 2612as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H" 2613as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H" 2614as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H" 2615as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H" 2616as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H" 2617as_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H" 2618as_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H" 2619 2620# Auxiliary files required by this configure script. 2621ac_aux_files="config.guess config.sub ltmain.sh missing install-sh compile" 2622 2623# Locations in which to look for auxiliary files. 2624ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.." 2625 2626# Search for a directory containing all of the required auxiliary files, 2627# $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates. 2628# If we don't find one directory that contains all the files we need, 2629# we report the set of missing files from the *first* directory in 2630# $ac_aux_dir_candidates and give up. 2631ac_missing_aux_files="" 2632ac_first_candidate=: 2633printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5 2634as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2635as_found=false 2636for as_dir in $ac_aux_dir_candidates 2637do 2638 IFS=$as_save_IFS 2639 case $as_dir in #((( 2640 '') as_dir=./ ;; 2641 */) ;; 2642 *) as_dir=$as_dir/ ;; 2643 esac 2644 as_found=: 2645 2646 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5 2647 ac_aux_dir_found=yes 2648 ac_install_sh= 2649 for ac_aux in $ac_aux_files 2650 do 2651 # As a special case, if "install-sh" is required, that requirement 2652 # can be satisfied by any of "install-sh", "install.sh", or "shtool", 2653 # and $ac_install_sh is set appropriately for whichever one is found. 2654 if test x"$ac_aux" = x"install-sh" 2655 then 2656 if test -f "${as_dir}install-sh"; then 2657 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5 2658 ac_install_sh="${as_dir}install-sh -c" 2659 elif test -f "${as_dir}install.sh"; then 2660 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5 2661 ac_install_sh="${as_dir}install.sh -c" 2662 elif test -f "${as_dir}shtool"; then 2663 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5 2664 ac_install_sh="${as_dir}shtool install -c" 2665 else 2666 ac_aux_dir_found=no 2667 if $ac_first_candidate; then 2668 ac_missing_aux_files="${ac_missing_aux_files} install-sh" 2669 else 2670 break 2671 fi 2672 fi 2673 else 2674 if test -f "${as_dir}${ac_aux}"; then 2675 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5 2676 else 2677 ac_aux_dir_found=no 2678 if $ac_first_candidate; then 2679 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}" 2680 else 2681 break 2682 fi 2683 fi 2684 fi 2685 done 2686 if test "$ac_aux_dir_found" = yes; then 2687 ac_aux_dir="$as_dir" 2688 break 2689 fi 2690 ac_first_candidate=false 2691 2692 as_found=false 2693done 2694IFS=$as_save_IFS 2695if $as_found 2696then : 2697 2698else case e in #( 2699 e) as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 ;; 2700esac 2701fi 2702 2703 2704# These three variables are undocumented and unsupported, 2705# and are intended to be withdrawn in a future Autoconf release. 2706# They can cause serious problems if a builder's source tree is in a directory 2707# whose full name contains unusual characters. 2708if test -f "${ac_aux_dir}config.guess"; then 2709 ac_config_guess="$SHELL ${ac_aux_dir}config.guess" 2710fi 2711if test -f "${ac_aux_dir}config.sub"; then 2712 ac_config_sub="$SHELL ${ac_aux_dir}config.sub" 2713fi 2714if test -f "$ac_aux_dir/configure"; then 2715 ac_configure="$SHELL ${ac_aux_dir}configure" 2716fi 2717 2718# Check that the precious variables saved in the cache have kept the same 2719# value. 2720ac_cache_corrupted=false 2721for ac_var in $ac_precious_vars; do 2722 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2723 eval ac_new_set=\$ac_env_${ac_var}_set 2724 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2725 eval ac_new_val=\$ac_env_${ac_var}_value 2726 case $ac_old_set,$ac_new_set in 2727 set,) 2728 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&5 2729printf "%s\n" "$as_me: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&2;} 2730 ac_cache_corrupted=: ;; 2731 ,set) 2732 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was not set in the previous run" >&5 2733printf "%s\n" "$as_me: error: '$ac_var' was not set in the previous run" >&2;} 2734 ac_cache_corrupted=: ;; 2735 ,);; 2736 *) 2737 if test "x$ac_old_val" != "x$ac_new_val"; then 2738 # differences in whitespace do not lead to failure. 2739 ac_old_val_w=`echo x $ac_old_val` 2740 ac_new_val_w=`echo x $ac_new_val` 2741 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2742 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' has changed since the previous run:" >&5 2743printf "%s\n" "$as_me: error: '$ac_var' has changed since the previous run:" >&2;} 2744 ac_cache_corrupted=: 2745 else 2746 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&5 2747printf "%s\n" "$as_me: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&2;} 2748 eval $ac_var=\$ac_old_val 2749 fi 2750 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: '$ac_old_val'" >&5 2751printf "%s\n" "$as_me: former value: '$ac_old_val'" >&2;} 2752 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: '$ac_new_val'" >&5 2753printf "%s\n" "$as_me: current value: '$ac_new_val'" >&2;} 2754 fi;; 2755 esac 2756 # Pass precious variables to config.status. 2757 if test "$ac_new_set" = set; then 2758 case $ac_new_val in 2759 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2760 *) ac_arg=$ac_var=$ac_new_val ;; 2761 esac 2762 case " $ac_configure_args " in 2763 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2764 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2765 esac 2766 fi 2767done 2768if $ac_cache_corrupted; then 2769 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 2770printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 2771 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2772printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;} 2773 as_fn_error $? "run '${MAKE-make} distclean' and/or 'rm $cache_file' 2774 and start over" "$LINENO" 5 2775fi 2776## -------------------- ## 2777## Main body of script. ## 2778## -------------------- ## 2779 2780ac_ext=c 2781ac_cpp='$CPP $CPPFLAGS' 2782ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2783ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2784ac_compiler_gnu=$ac_cv_c_compiler_gnu 2785 2786 2787 2788ac_config_headers="$ac_config_headers config.h" 2789 2790 2791 2792# Set common system defines for POSIX extensions, such as _GNU_SOURCE 2793# Must be called before any macros that run the compiler (like LT_INIT) 2794# to avoid autoconf errors. 2795 2796 2797 2798 2799 2800 2801 2802 2803 2804 2805 2806# Expand $ac_aux_dir to an absolute path. 2807am_aux_dir=`cd "$ac_aux_dir" && pwd` 2808 2809ac_ext=c 2810ac_cpp='$CPP $CPPFLAGS' 2811ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2812ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2813ac_compiler_gnu=$ac_cv_c_compiler_gnu 2814if test -n "$ac_tool_prefix"; then 2815 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2816set dummy ${ac_tool_prefix}gcc; ac_word=$2 2817{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2818printf %s "checking for $ac_word... " >&6; } 2819if test ${ac_cv_prog_CC+y} 2820then : 2821 printf %s "(cached) " >&6 2822else case e in #( 2823 e) if test -n "$CC"; then 2824 ac_cv_prog_CC="$CC" # Let the user override the test. 2825else 2826as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2827for as_dir in $PATH 2828do 2829 IFS=$as_save_IFS 2830 case $as_dir in #((( 2831 '') as_dir=./ ;; 2832 */) ;; 2833 *) as_dir=$as_dir/ ;; 2834 esac 2835 for ac_exec_ext in '' $ac_executable_extensions; do 2836 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2837 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2838 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2839 break 2 2840 fi 2841done 2842 done 2843IFS=$as_save_IFS 2844 2845fi ;; 2846esac 2847fi 2848CC=$ac_cv_prog_CC 2849if test -n "$CC"; then 2850 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2851printf "%s\n" "$CC" >&6; } 2852else 2853 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2854printf "%s\n" "no" >&6; } 2855fi 2856 2857 2858fi 2859if test -z "$ac_cv_prog_CC"; then 2860 ac_ct_CC=$CC 2861 # Extract the first word of "gcc", so it can be a program name with args. 2862set dummy gcc; ac_word=$2 2863{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2864printf %s "checking for $ac_word... " >&6; } 2865if test ${ac_cv_prog_ac_ct_CC+y} 2866then : 2867 printf %s "(cached) " >&6 2868else case e in #( 2869 e) if test -n "$ac_ct_CC"; then 2870 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2871else 2872as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2873for as_dir in $PATH 2874do 2875 IFS=$as_save_IFS 2876 case $as_dir in #((( 2877 '') as_dir=./ ;; 2878 */) ;; 2879 *) as_dir=$as_dir/ ;; 2880 esac 2881 for ac_exec_ext in '' $ac_executable_extensions; do 2882 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2883 ac_cv_prog_ac_ct_CC="gcc" 2884 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2885 break 2 2886 fi 2887done 2888 done 2889IFS=$as_save_IFS 2890 2891fi ;; 2892esac 2893fi 2894ac_ct_CC=$ac_cv_prog_ac_ct_CC 2895if test -n "$ac_ct_CC"; then 2896 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2897printf "%s\n" "$ac_ct_CC" >&6; } 2898else 2899 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2900printf "%s\n" "no" >&6; } 2901fi 2902 2903 if test "x$ac_ct_CC" = x; then 2904 CC="" 2905 else 2906 case $cross_compiling:$ac_tool_warned in 2907yes:) 2908{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2909printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2910ac_tool_warned=yes ;; 2911esac 2912 CC=$ac_ct_CC 2913 fi 2914else 2915 CC="$ac_cv_prog_CC" 2916fi 2917 2918if test -z "$CC"; then 2919 if test -n "$ac_tool_prefix"; then 2920 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2921set dummy ${ac_tool_prefix}cc; ac_word=$2 2922{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2923printf %s "checking for $ac_word... " >&6; } 2924if test ${ac_cv_prog_CC+y} 2925then : 2926 printf %s "(cached) " >&6 2927else case e in #( 2928 e) if test -n "$CC"; then 2929 ac_cv_prog_CC="$CC" # Let the user override the test. 2930else 2931as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2932for as_dir in $PATH 2933do 2934 IFS=$as_save_IFS 2935 case $as_dir in #((( 2936 '') as_dir=./ ;; 2937 */) ;; 2938 *) as_dir=$as_dir/ ;; 2939 esac 2940 for ac_exec_ext in '' $ac_executable_extensions; do 2941 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2942 ac_cv_prog_CC="${ac_tool_prefix}cc" 2943 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2944 break 2 2945 fi 2946done 2947 done 2948IFS=$as_save_IFS 2949 2950fi ;; 2951esac 2952fi 2953CC=$ac_cv_prog_CC 2954if test -n "$CC"; then 2955 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2956printf "%s\n" "$CC" >&6; } 2957else 2958 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2959printf "%s\n" "no" >&6; } 2960fi 2961 2962 2963 fi 2964fi 2965if test -z "$CC"; then 2966 # Extract the first word of "cc", so it can be a program name with args. 2967set dummy cc; ac_word=$2 2968{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2969printf %s "checking for $ac_word... " >&6; } 2970if test ${ac_cv_prog_CC+y} 2971then : 2972 printf %s "(cached) " >&6 2973else case e in #( 2974 e) if test -n "$CC"; then 2975 ac_cv_prog_CC="$CC" # Let the user override the test. 2976else 2977 ac_prog_rejected=no 2978as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2979for as_dir in $PATH 2980do 2981 IFS=$as_save_IFS 2982 case $as_dir in #((( 2983 '') as_dir=./ ;; 2984 */) ;; 2985 *) as_dir=$as_dir/ ;; 2986 esac 2987 for ac_exec_ext in '' $ac_executable_extensions; do 2988 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2989 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2990 ac_prog_rejected=yes 2991 continue 2992 fi 2993 ac_cv_prog_CC="cc" 2994 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2995 break 2 2996 fi 2997done 2998 done 2999IFS=$as_save_IFS 3000 3001if test $ac_prog_rejected = yes; then 3002 # We found a bogon in the path, so make sure we never use it. 3003 set dummy $ac_cv_prog_CC 3004 shift 3005 if test $# != 0; then 3006 # We chose a different compiler from the bogus one. 3007 # However, it has the same basename, so the bogon will be chosen 3008 # first if we set CC to just the basename; use the full file name. 3009 shift 3010 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@" 3011 fi 3012fi 3013fi ;; 3014esac 3015fi 3016CC=$ac_cv_prog_CC 3017if test -n "$CC"; then 3018 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3019printf "%s\n" "$CC" >&6; } 3020else 3021 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3022printf "%s\n" "no" >&6; } 3023fi 3024 3025 3026fi 3027if test -z "$CC"; then 3028 if test -n "$ac_tool_prefix"; then 3029 for ac_prog in cl.exe 3030 do 3031 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3032set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3033{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3034printf %s "checking for $ac_word... " >&6; } 3035if test ${ac_cv_prog_CC+y} 3036then : 3037 printf %s "(cached) " >&6 3038else case e in #( 3039 e) if test -n "$CC"; then 3040 ac_cv_prog_CC="$CC" # Let the user override the test. 3041else 3042as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3043for as_dir in $PATH 3044do 3045 IFS=$as_save_IFS 3046 case $as_dir in #((( 3047 '') as_dir=./ ;; 3048 */) ;; 3049 *) as_dir=$as_dir/ ;; 3050 esac 3051 for ac_exec_ext in '' $ac_executable_extensions; do 3052 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3053 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3054 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3055 break 2 3056 fi 3057done 3058 done 3059IFS=$as_save_IFS 3060 3061fi ;; 3062esac 3063fi 3064CC=$ac_cv_prog_CC 3065if test -n "$CC"; then 3066 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3067printf "%s\n" "$CC" >&6; } 3068else 3069 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3070printf "%s\n" "no" >&6; } 3071fi 3072 3073 3074 test -n "$CC" && break 3075 done 3076fi 3077if test -z "$CC"; then 3078 ac_ct_CC=$CC 3079 for ac_prog in cl.exe 3080do 3081 # Extract the first word of "$ac_prog", so it can be a program name with args. 3082set dummy $ac_prog; ac_word=$2 3083{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3084printf %s "checking for $ac_word... " >&6; } 3085if test ${ac_cv_prog_ac_ct_CC+y} 3086then : 3087 printf %s "(cached) " >&6 3088else case e in #( 3089 e) if test -n "$ac_ct_CC"; then 3090 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3091else 3092as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3093for as_dir in $PATH 3094do 3095 IFS=$as_save_IFS 3096 case $as_dir in #((( 3097 '') as_dir=./ ;; 3098 */) ;; 3099 *) as_dir=$as_dir/ ;; 3100 esac 3101 for ac_exec_ext in '' $ac_executable_extensions; do 3102 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3103 ac_cv_prog_ac_ct_CC="$ac_prog" 3104 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3105 break 2 3106 fi 3107done 3108 done 3109IFS=$as_save_IFS 3110 3111fi ;; 3112esac 3113fi 3114ac_ct_CC=$ac_cv_prog_ac_ct_CC 3115if test -n "$ac_ct_CC"; then 3116 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3117printf "%s\n" "$ac_ct_CC" >&6; } 3118else 3119 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3120printf "%s\n" "no" >&6; } 3121fi 3122 3123 3124 test -n "$ac_ct_CC" && break 3125done 3126 3127 if test "x$ac_ct_CC" = x; then 3128 CC="" 3129 else 3130 case $cross_compiling:$ac_tool_warned in 3131yes:) 3132{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3133printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3134ac_tool_warned=yes ;; 3135esac 3136 CC=$ac_ct_CC 3137 fi 3138fi 3139 3140fi 3141if test -z "$CC"; then 3142 if test -n "$ac_tool_prefix"; then 3143 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args. 3144set dummy ${ac_tool_prefix}clang; ac_word=$2 3145{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3146printf %s "checking for $ac_word... " >&6; } 3147if test ${ac_cv_prog_CC+y} 3148then : 3149 printf %s "(cached) " >&6 3150else case e in #( 3151 e) if test -n "$CC"; then 3152 ac_cv_prog_CC="$CC" # Let the user override the test. 3153else 3154as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3155for as_dir in $PATH 3156do 3157 IFS=$as_save_IFS 3158 case $as_dir in #((( 3159 '') as_dir=./ ;; 3160 */) ;; 3161 *) as_dir=$as_dir/ ;; 3162 esac 3163 for ac_exec_ext in '' $ac_executable_extensions; do 3164 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3165 ac_cv_prog_CC="${ac_tool_prefix}clang" 3166 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3167 break 2 3168 fi 3169done 3170 done 3171IFS=$as_save_IFS 3172 3173fi ;; 3174esac 3175fi 3176CC=$ac_cv_prog_CC 3177if test -n "$CC"; then 3178 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3179printf "%s\n" "$CC" >&6; } 3180else 3181 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3182printf "%s\n" "no" >&6; } 3183fi 3184 3185 3186fi 3187if test -z "$ac_cv_prog_CC"; then 3188 ac_ct_CC=$CC 3189 # Extract the first word of "clang", so it can be a program name with args. 3190set dummy clang; ac_word=$2 3191{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3192printf %s "checking for $ac_word... " >&6; } 3193if test ${ac_cv_prog_ac_ct_CC+y} 3194then : 3195 printf %s "(cached) " >&6 3196else case e in #( 3197 e) if test -n "$ac_ct_CC"; then 3198 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3199else 3200as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3201for as_dir in $PATH 3202do 3203 IFS=$as_save_IFS 3204 case $as_dir in #((( 3205 '') as_dir=./ ;; 3206 */) ;; 3207 *) as_dir=$as_dir/ ;; 3208 esac 3209 for ac_exec_ext in '' $ac_executable_extensions; do 3210 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3211 ac_cv_prog_ac_ct_CC="clang" 3212 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3213 break 2 3214 fi 3215done 3216 done 3217IFS=$as_save_IFS 3218 3219fi ;; 3220esac 3221fi 3222ac_ct_CC=$ac_cv_prog_ac_ct_CC 3223if test -n "$ac_ct_CC"; then 3224 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3225printf "%s\n" "$ac_ct_CC" >&6; } 3226else 3227 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3228printf "%s\n" "no" >&6; } 3229fi 3230 3231 if test "x$ac_ct_CC" = x; then 3232 CC="" 3233 else 3234 case $cross_compiling:$ac_tool_warned in 3235yes:) 3236{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3237printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3238ac_tool_warned=yes ;; 3239esac 3240 CC=$ac_ct_CC 3241 fi 3242else 3243 CC="$ac_cv_prog_CC" 3244fi 3245 3246fi 3247 3248 3249test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 3250printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 3251as_fn_error $? "no acceptable C compiler found in \$PATH 3252See 'config.log' for more details" "$LINENO" 5; } 3253 3254# Provide some information about the compiler. 3255printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3256set X $ac_compile 3257ac_compiler=$2 3258for ac_option in --version -v -V -qversion -version; do 3259 { { ac_try="$ac_compiler $ac_option >&5" 3260case "(($ac_try" in 3261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3262 *) ac_try_echo=$ac_try;; 3263esac 3264eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3265printf "%s\n" "$ac_try_echo"; } >&5 3266 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3267 ac_status=$? 3268 if test -s conftest.err; then 3269 sed '10a\ 3270... rest of stderr output deleted ... 3271 10q' conftest.err >conftest.er1 3272 cat conftest.er1 >&5 3273 fi 3274 rm -f conftest.er1 conftest.err 3275 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3276 test $ac_status = 0; } 3277done 3278 3279cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3280/* end confdefs.h. */ 3281 3282int 3283main (void) 3284{ 3285 3286 ; 3287 return 0; 3288} 3289_ACEOF 3290ac_clean_files_save=$ac_clean_files 3291ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3292# Try to create an executable without -o first, disregard a.out. 3293# It will help us diagnose broken compilers, and finding out an intuition 3294# of exeext. 3295{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3296printf %s "checking whether the C compiler works... " >&6; } 3297ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3298 3299# The possible output files: 3300ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3301 3302ac_rmfiles= 3303for ac_file in $ac_files 3304do 3305 case $ac_file in 3306 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3307 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3308 esac 3309done 3310rm -f $ac_rmfiles 3311 3312if { { ac_try="$ac_link_default" 3313case "(($ac_try" in 3314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3315 *) ac_try_echo=$ac_try;; 3316esac 3317eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3318printf "%s\n" "$ac_try_echo"; } >&5 3319 (eval "$ac_link_default") 2>&5 3320 ac_status=$? 3321 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3322 test $ac_status = 0; } 3323then : 3324 # Autoconf-2.13 could set the ac_cv_exeext variable to 'no'. 3325# So ignore a value of 'no', otherwise this would lead to 'EXEEXT = no' 3326# in a Makefile. We should not override ac_cv_exeext if it was cached, 3327# so that the user can short-circuit this test for compilers unknown to 3328# Autoconf. 3329for ac_file in $ac_files '' 3330do 3331 test -f "$ac_file" || continue 3332 case $ac_file in 3333 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3334 ;; 3335 [ab].out ) 3336 # We found the default executable, but exeext='' is most 3337 # certainly right. 3338 break;; 3339 *.* ) 3340 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no; 3341 then :; else 3342 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3343 fi 3344 # We set ac_cv_exeext here because the later test for it is not 3345 # safe: cross compilers may not add the suffix if given an '-o' 3346 # argument, so we may need to know it at that point already. 3347 # Even if this section looks crufty: it has the advantage of 3348 # actually working. 3349 break;; 3350 * ) 3351 break;; 3352 esac 3353done 3354test "$ac_cv_exeext" = no && ac_cv_exeext= 3355 3356else case e in #( 3357 e) ac_file='' ;; 3358esac 3359fi 3360if test -z "$ac_file" 3361then : 3362 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3363printf "%s\n" "no" >&6; } 3364printf "%s\n" "$as_me: failed program was:" >&5 3365sed 's/^/| /' conftest.$ac_ext >&5 3366 3367{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 3368printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 3369as_fn_error 77 "C compiler cannot create executables 3370See 'config.log' for more details" "$LINENO" 5; } 3371else case e in #( 3372 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3373printf "%s\n" "yes" >&6; } ;; 3374esac 3375fi 3376{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3377printf %s "checking for C compiler default output file name... " >&6; } 3378{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3379printf "%s\n" "$ac_file" >&6; } 3380ac_exeext=$ac_cv_exeext 3381 3382rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3383ac_clean_files=$ac_clean_files_save 3384{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3385printf %s "checking for suffix of executables... " >&6; } 3386if { { ac_try="$ac_link" 3387case "(($ac_try" in 3388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3389 *) ac_try_echo=$ac_try;; 3390esac 3391eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3392printf "%s\n" "$ac_try_echo"; } >&5 3393 (eval "$ac_link") 2>&5 3394 ac_status=$? 3395 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3396 test $ac_status = 0; } 3397then : 3398 # If both 'conftest.exe' and 'conftest' are 'present' (well, observable) 3399# catch 'conftest.exe'. For instance with Cygwin, 'ls conftest' will 3400# work properly (i.e., refer to 'conftest.exe'), while it won't with 3401# 'rm'. 3402for ac_file in conftest.exe conftest conftest.*; do 3403 test -f "$ac_file" || continue 3404 case $ac_file in 3405 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3406 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3407 break;; 3408 * ) break;; 3409 esac 3410done 3411else case e in #( 3412 e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 3413printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 3414as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3415See 'config.log' for more details" "$LINENO" 5; } ;; 3416esac 3417fi 3418rm -f conftest conftest$ac_cv_exeext 3419{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3420printf "%s\n" "$ac_cv_exeext" >&6; } 3421 3422rm -f conftest.$ac_ext 3423EXEEXT=$ac_cv_exeext 3424ac_exeext=$EXEEXT 3425cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3426/* end confdefs.h. */ 3427#include <stdio.h> 3428int 3429main (void) 3430{ 3431FILE *f = fopen ("conftest.out", "w"); 3432 if (!f) 3433 return 1; 3434 return ferror (f) || fclose (f) != 0; 3435 3436 ; 3437 return 0; 3438} 3439_ACEOF 3440ac_clean_files="$ac_clean_files conftest.out" 3441# Check that the compiler produces executables we can run. If not, either 3442# the compiler is broken, or we cross compile. 3443{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3444printf %s "checking whether we are cross compiling... " >&6; } 3445if test "$cross_compiling" != yes; then 3446 { { ac_try="$ac_link" 3447case "(($ac_try" in 3448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3449 *) ac_try_echo=$ac_try;; 3450esac 3451eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3452printf "%s\n" "$ac_try_echo"; } >&5 3453 (eval "$ac_link") 2>&5 3454 ac_status=$? 3455 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3456 test $ac_status = 0; } 3457 if { ac_try='./conftest$ac_cv_exeext' 3458 { { case "(($ac_try" in 3459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3460 *) ac_try_echo=$ac_try;; 3461esac 3462eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3463printf "%s\n" "$ac_try_echo"; } >&5 3464 (eval "$ac_try") 2>&5 3465 ac_status=$? 3466 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3467 test $ac_status = 0; }; }; then 3468 cross_compiling=no 3469 else 3470 if test "$cross_compiling" = maybe; then 3471 cross_compiling=yes 3472 else 3473 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 3474printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 3475as_fn_error 77 "cannot run C compiled programs. 3476If you meant to cross compile, use '--host'. 3477See 'config.log' for more details" "$LINENO" 5; } 3478 fi 3479 fi 3480fi 3481{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3482printf "%s\n" "$cross_compiling" >&6; } 3483 3484rm -f conftest.$ac_ext conftest$ac_cv_exeext \ 3485 conftest.o conftest.obj conftest.out 3486ac_clean_files=$ac_clean_files_save 3487{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3488printf %s "checking for suffix of object files... " >&6; } 3489if test ${ac_cv_objext+y} 3490then : 3491 printf %s "(cached) " >&6 3492else case e in #( 3493 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3494/* end confdefs.h. */ 3495 3496int 3497main (void) 3498{ 3499 3500 ; 3501 return 0; 3502} 3503_ACEOF 3504rm -f conftest.o conftest.obj 3505if { { ac_try="$ac_compile" 3506case "(($ac_try" in 3507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3508 *) ac_try_echo=$ac_try;; 3509esac 3510eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3511printf "%s\n" "$ac_try_echo"; } >&5 3512 (eval "$ac_compile") 2>&5 3513 ac_status=$? 3514 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3515 test $ac_status = 0; } 3516then : 3517 for ac_file in conftest.o conftest.obj conftest.*; do 3518 test -f "$ac_file" || continue; 3519 case $ac_file in 3520 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3521 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3522 break;; 3523 esac 3524done 3525else case e in #( 3526 e) printf "%s\n" "$as_me: failed program was:" >&5 3527sed 's/^/| /' conftest.$ac_ext >&5 3528 3529{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 3530printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 3531as_fn_error $? "cannot compute suffix of object files: cannot compile 3532See 'config.log' for more details" "$LINENO" 5; } ;; 3533esac 3534fi 3535rm -f conftest.$ac_cv_objext conftest.$ac_ext ;; 3536esac 3537fi 3538{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3539printf "%s\n" "$ac_cv_objext" >&6; } 3540OBJEXT=$ac_cv_objext 3541ac_objext=$OBJEXT 3542{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5 3543printf %s "checking whether the compiler supports GNU C... " >&6; } 3544if test ${ac_cv_c_compiler_gnu+y} 3545then : 3546 printf %s "(cached) " >&6 3547else case e in #( 3548 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3549/* end confdefs.h. */ 3550 3551int 3552main (void) 3553{ 3554#ifndef __GNUC__ 3555 choke me 3556#endif 3557 3558 ; 3559 return 0; 3560} 3561_ACEOF 3562if ac_fn_c_try_compile "$LINENO" 3563then : 3564 ac_compiler_gnu=yes 3565else case e in #( 3566 e) ac_compiler_gnu=no ;; 3567esac 3568fi 3569rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 3570ac_cv_c_compiler_gnu=$ac_compiler_gnu 3571 ;; 3572esac 3573fi 3574{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3575printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; } 3576ac_compiler_gnu=$ac_cv_c_compiler_gnu 3577 3578if test $ac_compiler_gnu = yes; then 3579 GCC=yes 3580else 3581 GCC= 3582fi 3583ac_test_CFLAGS=${CFLAGS+y} 3584ac_save_CFLAGS=$CFLAGS 3585{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3586printf %s "checking whether $CC accepts -g... " >&6; } 3587if test ${ac_cv_prog_cc_g+y} 3588then : 3589 printf %s "(cached) " >&6 3590else case e in #( 3591 e) ac_save_c_werror_flag=$ac_c_werror_flag 3592 ac_c_werror_flag=yes 3593 ac_cv_prog_cc_g=no 3594 CFLAGS="-g" 3595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3596/* end confdefs.h. */ 3597 3598int 3599main (void) 3600{ 3601 3602 ; 3603 return 0; 3604} 3605_ACEOF 3606if ac_fn_c_try_compile "$LINENO" 3607then : 3608 ac_cv_prog_cc_g=yes 3609else case e in #( 3610 e) CFLAGS="" 3611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3612/* end confdefs.h. */ 3613 3614int 3615main (void) 3616{ 3617 3618 ; 3619 return 0; 3620} 3621_ACEOF 3622if ac_fn_c_try_compile "$LINENO" 3623then : 3624 3625else case e in #( 3626 e) ac_c_werror_flag=$ac_save_c_werror_flag 3627 CFLAGS="-g" 3628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3629/* end confdefs.h. */ 3630 3631int 3632main (void) 3633{ 3634 3635 ; 3636 return 0; 3637} 3638_ACEOF 3639if ac_fn_c_try_compile "$LINENO" 3640then : 3641 ac_cv_prog_cc_g=yes 3642fi 3643rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 3644esac 3645fi 3646rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 3647esac 3648fi 3649rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 3650 ac_c_werror_flag=$ac_save_c_werror_flag ;; 3651esac 3652fi 3653{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3654printf "%s\n" "$ac_cv_prog_cc_g" >&6; } 3655if test $ac_test_CFLAGS; then 3656 CFLAGS=$ac_save_CFLAGS 3657elif test $ac_cv_prog_cc_g = yes; then 3658 if test "$GCC" = yes; then 3659 CFLAGS="-g -O2" 3660 else 3661 CFLAGS="-g" 3662 fi 3663else 3664 if test "$GCC" = yes; then 3665 CFLAGS="-O2" 3666 else 3667 CFLAGS= 3668 fi 3669fi 3670ac_prog_cc_stdc=no 3671if test x$ac_prog_cc_stdc = xno 3672then : 3673 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5 3674printf %s "checking for $CC option to enable C11 features... " >&6; } 3675if test ${ac_cv_prog_cc_c11+y} 3676then : 3677 printf %s "(cached) " >&6 3678else case e in #( 3679 e) ac_cv_prog_cc_c11=no 3680ac_save_CC=$CC 3681cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3682/* end confdefs.h. */ 3683$ac_c_conftest_c11_program 3684_ACEOF 3685for ac_arg in '' -std=gnu11 3686do 3687 CC="$ac_save_CC $ac_arg" 3688 if ac_fn_c_try_compile "$LINENO" 3689then : 3690 ac_cv_prog_cc_c11=$ac_arg 3691fi 3692rm -f core conftest.err conftest.$ac_objext conftest.beam 3693 test "x$ac_cv_prog_cc_c11" != "xno" && break 3694done 3695rm -f conftest.$ac_ext 3696CC=$ac_save_CC ;; 3697esac 3698fi 3699 3700if test "x$ac_cv_prog_cc_c11" = xno 3701then : 3702 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3703printf "%s\n" "unsupported" >&6; } 3704else case e in #( 3705 e) if test "x$ac_cv_prog_cc_c11" = x 3706then : 3707 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3708printf "%s\n" "none needed" >&6; } 3709else case e in #( 3710 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5 3711printf "%s\n" "$ac_cv_prog_cc_c11" >&6; } 3712 CC="$CC $ac_cv_prog_cc_c11" ;; 3713esac 3714fi 3715 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11 3716 ac_prog_cc_stdc=c11 ;; 3717esac 3718fi 3719fi 3720if test x$ac_prog_cc_stdc = xno 3721then : 3722 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5 3723printf %s "checking for $CC option to enable C99 features... " >&6; } 3724if test ${ac_cv_prog_cc_c99+y} 3725then : 3726 printf %s "(cached) " >&6 3727else case e in #( 3728 e) ac_cv_prog_cc_c99=no 3729ac_save_CC=$CC 3730cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3731/* end confdefs.h. */ 3732$ac_c_conftest_c99_program 3733_ACEOF 3734for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99= 3735do 3736 CC="$ac_save_CC $ac_arg" 3737 if ac_fn_c_try_compile "$LINENO" 3738then : 3739 ac_cv_prog_cc_c99=$ac_arg 3740fi 3741rm -f core conftest.err conftest.$ac_objext conftest.beam 3742 test "x$ac_cv_prog_cc_c99" != "xno" && break 3743done 3744rm -f conftest.$ac_ext 3745CC=$ac_save_CC ;; 3746esac 3747fi 3748 3749if test "x$ac_cv_prog_cc_c99" = xno 3750then : 3751 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3752printf "%s\n" "unsupported" >&6; } 3753else case e in #( 3754 e) if test "x$ac_cv_prog_cc_c99" = x 3755then : 3756 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3757printf "%s\n" "none needed" >&6; } 3758else case e in #( 3759 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 3760printf "%s\n" "$ac_cv_prog_cc_c99" >&6; } 3761 CC="$CC $ac_cv_prog_cc_c99" ;; 3762esac 3763fi 3764 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 3765 ac_prog_cc_stdc=c99 ;; 3766esac 3767fi 3768fi 3769if test x$ac_prog_cc_stdc = xno 3770then : 3771 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5 3772printf %s "checking for $CC option to enable C89 features... " >&6; } 3773if test ${ac_cv_prog_cc_c89+y} 3774then : 3775 printf %s "(cached) " >&6 3776else case e in #( 3777 e) ac_cv_prog_cc_c89=no 3778ac_save_CC=$CC 3779cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3780/* end confdefs.h. */ 3781$ac_c_conftest_c89_program 3782_ACEOF 3783for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3784do 3785 CC="$ac_save_CC $ac_arg" 3786 if ac_fn_c_try_compile "$LINENO" 3787then : 3788 ac_cv_prog_cc_c89=$ac_arg 3789fi 3790rm -f core conftest.err conftest.$ac_objext conftest.beam 3791 test "x$ac_cv_prog_cc_c89" != "xno" && break 3792done 3793rm -f conftest.$ac_ext 3794CC=$ac_save_CC ;; 3795esac 3796fi 3797 3798if test "x$ac_cv_prog_cc_c89" = xno 3799then : 3800 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3801printf "%s\n" "unsupported" >&6; } 3802else case e in #( 3803 e) if test "x$ac_cv_prog_cc_c89" = x 3804then : 3805 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3806printf "%s\n" "none needed" >&6; } 3807else case e in #( 3808 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3809printf "%s\n" "$ac_cv_prog_cc_c89" >&6; } 3810 CC="$CC $ac_cv_prog_cc_c89" ;; 3811esac 3812fi 3813 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 3814 ac_prog_cc_stdc=c89 ;; 3815esac 3816fi 3817fi 3818 3819ac_ext=c 3820ac_cpp='$CPP $CPPFLAGS' 3821ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3822ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3823ac_compiler_gnu=$ac_cv_c_compiler_gnu 3824 3825 3826 ac_ext=c 3827ac_cpp='$CPP $CPPFLAGS' 3828ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3829ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3830ac_compiler_gnu=$ac_cv_c_compiler_gnu 3831{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 3832printf %s "checking whether $CC understands -c and -o together... " >&6; } 3833if test ${am_cv_prog_cc_c_o+y} 3834then : 3835 printf %s "(cached) " >&6 3836else case e in #( 3837 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3838/* end confdefs.h. */ 3839 3840int 3841main (void) 3842{ 3843 3844 ; 3845 return 0; 3846} 3847_ACEOF 3848 # Make sure it works both with $CC and with simple cc. 3849 # Following AC_PROG_CC_C_O, we do the test twice because some 3850 # compilers refuse to overwrite an existing .o file with -o, 3851 # though they will create one. 3852 am_cv_prog_cc_c_o=yes 3853 for am_i in 1 2; do 3854 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 3855 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 3856 ac_status=$? 3857 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3858 (exit $ac_status); } \ 3859 && test -f conftest2.$ac_objext; then 3860 : OK 3861 else 3862 am_cv_prog_cc_c_o=no 3863 break 3864 fi 3865 done 3866 rm -f core conftest* 3867 unset am_i ;; 3868esac 3869fi 3870{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 3871printf "%s\n" "$am_cv_prog_cc_c_o" >&6; } 3872if test "$am_cv_prog_cc_c_o" != yes; then 3873 # Losing compiler, so override with the script. 3874 # FIXME: It is wrong to rewrite CC. 3875 # But if we don't then we get into trouble of one sort or another. 3876 # A longer-term fix would be to have automake use am__CC in this case, 3877 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 3878 CC="$am_aux_dir/compile $CC" 3879fi 3880ac_ext=c 3881ac_cpp='$CPP $CPPFLAGS' 3882ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3883ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3884ac_compiler_gnu=$ac_cv_c_compiler_gnu 3885 3886 3887 3888ac_header= ac_cache= 3889for ac_item in $ac_header_c_list 3890do 3891 if test $ac_cache; then 3892 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default" 3893 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then 3894 printf "%s\n" "#define $ac_item 1" >> confdefs.h 3895 fi 3896 ac_header= ac_cache= 3897 elif test $ac_header; then 3898 ac_cache=$ac_item 3899 else 3900 ac_header=$ac_item 3901 fi 3902done 3903 3904 3905 3906 3907 3908 3909 3910 3911if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes 3912then : 3913 3914printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h 3915 3916fi 3917 3918 3919 3920 3921 3922 3923 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 3924printf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; } 3925if test ${ac_cv_safe_to_define___extensions__+y} 3926then : 3927 printf %s "(cached) " >&6 3928else case e in #( 3929 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3930/* end confdefs.h. */ 3931 3932# define __EXTENSIONS__ 1 3933 $ac_includes_default 3934int 3935main (void) 3936{ 3937 3938 ; 3939 return 0; 3940} 3941_ACEOF 3942if ac_fn_c_try_compile "$LINENO" 3943then : 3944 ac_cv_safe_to_define___extensions__=yes 3945else case e in #( 3946 e) ac_cv_safe_to_define___extensions__=no ;; 3947esac 3948fi 3949rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 3950esac 3951fi 3952{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 3953printf "%s\n" "$ac_cv_safe_to_define___extensions__" >&6; } 3954 3955 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5 3956printf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; } 3957if test ${ac_cv_should_define__xopen_source+y} 3958then : 3959 printf %s "(cached) " >&6 3960else case e in #( 3961 e) ac_cv_should_define__xopen_source=no 3962 if test $ac_cv_header_wchar_h = yes 3963then : 3964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3965/* end confdefs.h. */ 3966 3967 #include <wchar.h> 3968 mbstate_t x; 3969int 3970main (void) 3971{ 3972 3973 ; 3974 return 0; 3975} 3976_ACEOF 3977if ac_fn_c_try_compile "$LINENO" 3978then : 3979 3980else case e in #( 3981 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3982/* end confdefs.h. */ 3983 3984 #define _XOPEN_SOURCE 500 3985 #include <wchar.h> 3986 mbstate_t x; 3987int 3988main (void) 3989{ 3990 3991 ; 3992 return 0; 3993} 3994_ACEOF 3995if ac_fn_c_try_compile "$LINENO" 3996then : 3997 ac_cv_should_define__xopen_source=yes 3998fi 3999rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 4000esac 4001fi 4002rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4003fi ;; 4004esac 4005fi 4006{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5 4007printf "%s\n" "$ac_cv_should_define__xopen_source" >&6; } 4008 4009 printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h 4010 4011 printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h 4012 4013 printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h 4014 4015 printf "%s\n" "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h 4016 4017 printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h 4018 4019 printf "%s\n" "#define _OPENBSD_SOURCE 1" >>confdefs.h 4020 4021 printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h 4022 4023 printf "%s\n" "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h 4024 4025 printf "%s\n" "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h 4026 4027 printf "%s\n" "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h 4028 4029 printf "%s\n" "#define __STDC_WANT_IEC_60559_EXT__ 1" >>confdefs.h 4030 4031 printf "%s\n" "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h 4032 4033 printf "%s\n" "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h 4034 4035 printf "%s\n" "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h 4036 4037 printf "%s\n" "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h 4038 4039 printf "%s\n" "#define _TANDEM_SOURCE 1" >>confdefs.h 4040 4041 if test $ac_cv_header_minix_config_h = yes 4042then : 4043 MINIX=yes 4044 printf "%s\n" "#define _MINIX 1" >>confdefs.h 4045 4046 printf "%s\n" "#define _POSIX_SOURCE 1" >>confdefs.h 4047 4048 printf "%s\n" "#define _POSIX_1_SOURCE 2" >>confdefs.h 4049 4050else case e in #( 4051 e) MINIX= ;; 4052esac 4053fi 4054 if test $ac_cv_safe_to_define___extensions__ = yes 4055then : 4056 printf "%s\n" "#define __EXTENSIONS__ 1" >>confdefs.h 4057 4058fi 4059 if test $ac_cv_should_define__xopen_source = yes 4060then : 4061 printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h 4062 4063fi 4064 4065 4066# Initialize Automake 4067am__api_version='1.16' 4068 4069 4070 # Find a good install program. We prefer a C program (faster), 4071# so one script is as good as another. But avoid the broken or 4072# incompatible versions: 4073# SysV /etc/install, /usr/sbin/install 4074# SunOS /usr/etc/install 4075# IRIX /sbin/install 4076# AIX /bin/install 4077# AmigaOS /C/install, which installs bootblocks on floppy discs 4078# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 4079# AFS /usr/afsws/bin/install, which mishandles nonexistent args 4080# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 4081# OS/2's system install, which has a completely different semantic 4082# ./install, which can be erroneously created by make from ./install.sh. 4083# Reject install programs that cannot install multiple files. 4084{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 4085printf %s "checking for a BSD-compatible install... " >&6; } 4086if test -z "$INSTALL"; then 4087if test ${ac_cv_path_install+y} 4088then : 4089 printf %s "(cached) " >&6 4090else case e in #( 4091 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4092for as_dir in $PATH 4093do 4094 IFS=$as_save_IFS 4095 case $as_dir in #((( 4096 '') as_dir=./ ;; 4097 */) ;; 4098 *) as_dir=$as_dir/ ;; 4099 esac 4100 # Account for fact that we put trailing slashes in our PATH walk. 4101case $as_dir in #(( 4102 ./ | /[cC]/* | \ 4103 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 4104 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 4105 /usr/ucb/* ) ;; 4106 *) 4107 # OSF1 and SCO ODT 3.0 have their own names for install. 4108 # Don't use installbsd from OSF since it installs stuff as root 4109 # by default. 4110 for ac_prog in ginstall scoinst install; do 4111 for ac_exec_ext in '' $ac_executable_extensions; do 4112 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then 4113 if test $ac_prog = install && 4114 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 4115 # AIX install. It has an incompatible calling convention. 4116 : 4117 elif test $ac_prog = install && 4118 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 4119 # program-specific install script used by HP pwplus--don't use. 4120 : 4121 else 4122 rm -rf conftest.one conftest.two conftest.dir 4123 echo one > conftest.one 4124 echo two > conftest.two 4125 mkdir conftest.dir 4126 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" && 4127 test -s conftest.one && test -s conftest.two && 4128 test -s conftest.dir/conftest.one && 4129 test -s conftest.dir/conftest.two 4130 then 4131 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c" 4132 break 3 4133 fi 4134 fi 4135 fi 4136 done 4137 done 4138 ;; 4139esac 4140 4141 done 4142IFS=$as_save_IFS 4143 4144rm -rf conftest.one conftest.two conftest.dir 4145 ;; 4146esac 4147fi 4148 if test ${ac_cv_path_install+y}; then 4149 INSTALL=$ac_cv_path_install 4150 else 4151 # As a last resort, use the slow shell script. Don't cache a 4152 # value for INSTALL within a source directory, because that will 4153 # break other packages using the cache if that directory is 4154 # removed, or if the value is a relative name. 4155 INSTALL=$ac_install_sh 4156 fi 4157fi 4158{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 4159printf "%s\n" "$INSTALL" >&6; } 4160 4161# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 4162# It thinks the first close brace ends the variable substitution. 4163test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 4164 4165test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 4166 4167test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 4168 4169{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 4170printf %s "checking whether build environment is sane... " >&6; } 4171# Reject unsafe characters in $srcdir or the absolute working directory 4172# name. Accept space and tab only in the latter. 4173am_lf=' 4174' 4175case `pwd` in 4176 *[\\\"\#\$\&\'\`$am_lf]*) 4177 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 4178esac 4179case $srcdir in 4180 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 4181 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 4182esac 4183 4184# Do 'set' in a subshell so we don't clobber the current shell's 4185# arguments. Must try -L first in case configure is actually a 4186# symlink; some systems play weird games with the mod time of symlinks 4187# (eg FreeBSD returns the mod time of the symlink's containing 4188# directory). 4189if ( 4190 am_has_slept=no 4191 for am_try in 1 2; do 4192 echo "timestamp, slept: $am_has_slept" > conftest.file 4193 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 4194 if test "$*" = "X"; then 4195 # -L didn't work. 4196 set X `ls -t "$srcdir/configure" conftest.file` 4197 fi 4198 if test "$*" != "X $srcdir/configure conftest.file" \ 4199 && test "$*" != "X conftest.file $srcdir/configure"; then 4200 4201 # If neither matched, then we have a broken ls. This can happen 4202 # if, for instance, CONFIG_SHELL is bash and it inherits a 4203 # broken ls alias from the environment. This has actually 4204 # happened. Such a system could not be considered "sane". 4205 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 4206 alias in your environment" "$LINENO" 5 4207 fi 4208 if test "$2" = conftest.file || test $am_try -eq 2; then 4209 break 4210 fi 4211 # Just in case. 4212 sleep 1 4213 am_has_slept=yes 4214 done 4215 test "$2" = conftest.file 4216 ) 4217then 4218 # Ok. 4219 : 4220else 4221 as_fn_error $? "newly created file is older than distributed files! 4222Check your system clock" "$LINENO" 5 4223fi 4224{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4225printf "%s\n" "yes" >&6; } 4226# If we didn't sleep, we still need to ensure time stamps of config.status and 4227# generated files are strictly newer. 4228am_sleep_pid= 4229if grep 'slept: no' conftest.file >/dev/null 2>&1; then 4230 ( sleep 1 ) & 4231 am_sleep_pid=$! 4232fi 4233 4234rm -f conftest.file 4235 4236test "$program_prefix" != NONE && 4237 program_transform_name="s&^&$program_prefix&;$program_transform_name" 4238# Use a double $ so make ignores it. 4239test "$program_suffix" != NONE && 4240 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 4241# Double any \ or $. 4242# By default was 's,x,x', remove it if useless. 4243ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 4244program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"` 4245 4246 4247 if test x"${MISSING+set}" != xset; then 4248 MISSING="\${SHELL} '$am_aux_dir/missing'" 4249fi 4250# Use eval to expand $SHELL 4251if eval "$MISSING --is-lightweight"; then 4252 am_missing_run="$MISSING " 4253else 4254 am_missing_run= 4255 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 4256printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 4257fi 4258 4259if test x"${install_sh+set}" != xset; then 4260 case $am_aux_dir in 4261 *\ * | *\ *) 4262 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 4263 *) 4264 install_sh="\${SHELL} $am_aux_dir/install-sh" 4265 esac 4266fi 4267 4268# Installed binaries are usually stripped using 'strip' when the user 4269# run "make install-strip". However 'strip' might not be the right 4270# tool to use in cross-compilation environments, therefore Automake 4271# will honor the 'STRIP' environment variable to overrule this program. 4272if test "$cross_compiling" != no; then 4273 if test -n "$ac_tool_prefix"; then 4274 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 4275set dummy ${ac_tool_prefix}strip; ac_word=$2 4276{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4277printf %s "checking for $ac_word... " >&6; } 4278if test ${ac_cv_prog_STRIP+y} 4279then : 4280 printf %s "(cached) " >&6 4281else case e in #( 4282 e) if test -n "$STRIP"; then 4283 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 4284else 4285as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4286for as_dir in $PATH 4287do 4288 IFS=$as_save_IFS 4289 case $as_dir in #((( 4290 '') as_dir=./ ;; 4291 */) ;; 4292 *) as_dir=$as_dir/ ;; 4293 esac 4294 for ac_exec_ext in '' $ac_executable_extensions; do 4295 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4296 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 4297 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4298 break 2 4299 fi 4300done 4301 done 4302IFS=$as_save_IFS 4303 4304fi ;; 4305esac 4306fi 4307STRIP=$ac_cv_prog_STRIP 4308if test -n "$STRIP"; then 4309 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 4310printf "%s\n" "$STRIP" >&6; } 4311else 4312 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4313printf "%s\n" "no" >&6; } 4314fi 4315 4316 4317fi 4318if test -z "$ac_cv_prog_STRIP"; then 4319 ac_ct_STRIP=$STRIP 4320 # Extract the first word of "strip", so it can be a program name with args. 4321set dummy strip; ac_word=$2 4322{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4323printf %s "checking for $ac_word... " >&6; } 4324if test ${ac_cv_prog_ac_ct_STRIP+y} 4325then : 4326 printf %s "(cached) " >&6 4327else case e in #( 4328 e) if test -n "$ac_ct_STRIP"; then 4329 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 4330else 4331as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4332for as_dir in $PATH 4333do 4334 IFS=$as_save_IFS 4335 case $as_dir in #((( 4336 '') as_dir=./ ;; 4337 */) ;; 4338 *) as_dir=$as_dir/ ;; 4339 esac 4340 for ac_exec_ext in '' $ac_executable_extensions; do 4341 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4342 ac_cv_prog_ac_ct_STRIP="strip" 4343 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4344 break 2 4345 fi 4346done 4347 done 4348IFS=$as_save_IFS 4349 4350fi ;; 4351esac 4352fi 4353ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 4354if test -n "$ac_ct_STRIP"; then 4355 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 4356printf "%s\n" "$ac_ct_STRIP" >&6; } 4357else 4358 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4359printf "%s\n" "no" >&6; } 4360fi 4361 4362 if test "x$ac_ct_STRIP" = x; then 4363 STRIP=":" 4364 else 4365 case $cross_compiling:$ac_tool_warned in 4366yes:) 4367{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4368printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4369ac_tool_warned=yes ;; 4370esac 4371 STRIP=$ac_ct_STRIP 4372 fi 4373else 4374 STRIP="$ac_cv_prog_STRIP" 4375fi 4376 4377fi 4378INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 4379 4380 4381 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5 4382printf %s "checking for a race-free mkdir -p... " >&6; } 4383if test -z "$MKDIR_P"; then 4384 if test ${ac_cv_path_mkdir+y} 4385then : 4386 printf %s "(cached) " >&6 4387else case e in #( 4388 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4389for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 4390do 4391 IFS=$as_save_IFS 4392 case $as_dir in #((( 4393 '') as_dir=./ ;; 4394 */) ;; 4395 *) as_dir=$as_dir/ ;; 4396 esac 4397 for ac_prog in mkdir gmkdir; do 4398 for ac_exec_ext in '' $ac_executable_extensions; do 4399 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue 4400 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #( 4401 'mkdir ('*'coreutils) '* | \ 4402 *'BusyBox '* | \ 4403 'mkdir (fileutils) '4.1*) 4404 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext 4405 break 3;; 4406 esac 4407 done 4408 done 4409 done 4410IFS=$as_save_IFS 4411 ;; 4412esac 4413fi 4414 4415 test -d ./--version && rmdir ./--version 4416 if test ${ac_cv_path_mkdir+y}; then 4417 MKDIR_P="$ac_cv_path_mkdir -p" 4418 else 4419 # As a last resort, use plain mkdir -p, 4420 # in the hope it doesn't have the bugs of ancient mkdir. 4421 MKDIR_P='mkdir -p' 4422 fi 4423fi 4424{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 4425printf "%s\n" "$MKDIR_P" >&6; } 4426 4427for ac_prog in gawk mawk nawk awk 4428do 4429 # Extract the first word of "$ac_prog", so it can be a program name with args. 4430set dummy $ac_prog; ac_word=$2 4431{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4432printf %s "checking for $ac_word... " >&6; } 4433if test ${ac_cv_prog_AWK+y} 4434then : 4435 printf %s "(cached) " >&6 4436else case e in #( 4437 e) if test -n "$AWK"; then 4438 ac_cv_prog_AWK="$AWK" # Let the user override the test. 4439else 4440as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4441for as_dir in $PATH 4442do 4443 IFS=$as_save_IFS 4444 case $as_dir in #((( 4445 '') as_dir=./ ;; 4446 */) ;; 4447 *) as_dir=$as_dir/ ;; 4448 esac 4449 for ac_exec_ext in '' $ac_executable_extensions; do 4450 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4451 ac_cv_prog_AWK="$ac_prog" 4452 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4453 break 2 4454 fi 4455done 4456 done 4457IFS=$as_save_IFS 4458 4459fi ;; 4460esac 4461fi 4462AWK=$ac_cv_prog_AWK 4463if test -n "$AWK"; then 4464 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 4465printf "%s\n" "$AWK" >&6; } 4466else 4467 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4468printf "%s\n" "no" >&6; } 4469fi 4470 4471 4472 test -n "$AWK" && break 4473done 4474 4475{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 4476printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 4477set x ${MAKE-make} 4478ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 4479if eval test \${ac_cv_prog_make_${ac_make}_set+y} 4480then : 4481 printf %s "(cached) " >&6 4482else case e in #( 4483 e) cat >conftest.make <<\_ACEOF 4484SHELL = /bin/sh 4485all: 4486 @echo '@@@%%%=$(MAKE)=@@@%%%' 4487_ACEOF 4488# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 4489case `${MAKE-make} -f conftest.make 2>/dev/null` in 4490 *@@@%%%=?*=@@@%%%*) 4491 eval ac_cv_prog_make_${ac_make}_set=yes;; 4492 *) 4493 eval ac_cv_prog_make_${ac_make}_set=no;; 4494esac 4495rm -f conftest.make ;; 4496esac 4497fi 4498if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 4499 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4500printf "%s\n" "yes" >&6; } 4501 SET_MAKE= 4502else 4503 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4504printf "%s\n" "no" >&6; } 4505 SET_MAKE="MAKE=${MAKE-make}" 4506fi 4507 4508rm -rf .tst 2>/dev/null 4509mkdir .tst 2>/dev/null 4510if test -d .tst; then 4511 am__leading_dot=. 4512else 4513 am__leading_dot=_ 4514fi 4515rmdir .tst 2>/dev/null 4516 4517DEPDIR="${am__leading_dot}deps" 4518 4519ac_config_commands="$ac_config_commands depfiles" 4520 4521{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5 4522printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; } 4523cat > confinc.mk << 'END' 4524am__doit: 4525 @echo this is the am__doit target >confinc.out 4526.PHONY: am__doit 4527END 4528am__include="#" 4529am__quote= 4530# BSD make does it like this. 4531echo '.include "confinc.mk" # ignored' > confmf.BSD 4532# Other make implementations (GNU, Solaris 10, AIX) do it like this. 4533echo 'include confinc.mk # ignored' > confmf.GNU 4534_am_result=no 4535for s in GNU BSD; do 4536 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5 4537 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5 4538 ac_status=$? 4539 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4540 (exit $ac_status); } 4541 case $?:`cat confinc.out 2>/dev/null` in #( 4542 '0:this is the am__doit target') : 4543 case $s in #( 4544 BSD) : 4545 am__include='.include' am__quote='"' ;; #( 4546 *) : 4547 am__include='include' am__quote='' ;; 4548esac ;; #( 4549 *) : 4550 ;; 4551esac 4552 if test "$am__include" != "#"; then 4553 _am_result="yes ($s style)" 4554 break 4555 fi 4556done 4557rm -f confinc.* confmf.* 4558{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5 4559printf "%s\n" "${_am_result}" >&6; } 4560 4561# Check whether --enable-dependency-tracking was given. 4562if test ${enable_dependency_tracking+y} 4563then : 4564 enableval=$enable_dependency_tracking; 4565fi 4566 4567if test "x$enable_dependency_tracking" != xno; then 4568 am_depcomp="$ac_aux_dir/depcomp" 4569 AMDEPBACKSLASH='\' 4570 am__nodep='_no' 4571fi 4572 if test "x$enable_dependency_tracking" != xno; then 4573 AMDEP_TRUE= 4574 AMDEP_FALSE='#' 4575else 4576 AMDEP_TRUE='#' 4577 AMDEP_FALSE= 4578fi 4579 4580 4581# Check whether --enable-silent-rules was given. 4582if test ${enable_silent_rules+y} 4583then : 4584 enableval=$enable_silent_rules; 4585fi 4586 4587case $enable_silent_rules in # ((( 4588 yes) AM_DEFAULT_VERBOSITY=0;; 4589 no) AM_DEFAULT_VERBOSITY=1;; 4590 *) AM_DEFAULT_VERBOSITY=1;; 4591esac 4592am_make=${MAKE-make} 4593{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 4594printf %s "checking whether $am_make supports nested variables... " >&6; } 4595if test ${am_cv_make_support_nested_variables+y} 4596then : 4597 printf %s "(cached) " >&6 4598else case e in #( 4599 e) if printf "%s\n" 'TRUE=$(BAR$(V)) 4600BAR0=false 4601BAR1=true 4602V=1 4603am__doit: 4604 @$(TRUE) 4605.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 4606 am_cv_make_support_nested_variables=yes 4607else 4608 am_cv_make_support_nested_variables=no 4609fi ;; 4610esac 4611fi 4612{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 4613printf "%s\n" "$am_cv_make_support_nested_variables" >&6; } 4614if test $am_cv_make_support_nested_variables = yes; then 4615 AM_V='$(V)' 4616 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 4617else 4618 AM_V=$AM_DEFAULT_VERBOSITY 4619 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 4620fi 4621AM_BACKSLASH='\' 4622 4623if test "`cd $srcdir && pwd`" != "`pwd`"; then 4624 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 4625 # is not polluted with repeated "-I." 4626 am__isrc=' -I$(srcdir)' 4627 # test to see if srcdir already configured 4628 if test -f $srcdir/config.status; then 4629 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 4630 fi 4631fi 4632 4633# test whether we have cygpath 4634if test -z "$CYGPATH_W"; then 4635 if (cygpath --version) >/dev/null 2>/dev/null; then 4636 CYGPATH_W='cygpath -w' 4637 else 4638 CYGPATH_W=echo 4639 fi 4640fi 4641 4642 4643# Define the identity of the package. 4644 PACKAGE='libXext' 4645 VERSION='1.3.6' 4646 4647 4648printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h 4649 4650 4651printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h 4652 4653# Some tools Automake needs. 4654 4655ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 4656 4657 4658AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 4659 4660 4661AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 4662 4663 4664AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 4665 4666 4667MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 4668 4669# For better backward compatibility. To be removed once Automake 1.9.x 4670# dies out for good. For more background, see: 4671# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 4672# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 4673mkdir_p='$(MKDIR_P)' 4674 4675# We need awk for the "check" target (and possibly the TAP driver). The 4676# system "awk" is bad on some platforms. 4677# Always define AMTAR for backward compatibility. Yes, it's still used 4678# in the wild :-( We should find a proper way to deprecate it ... 4679AMTAR='$${TAR-tar}' 4680 4681 4682# We'll loop over all known methods to create a tar archive until one works. 4683_am_tools='gnutar pax cpio none' 4684 4685am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 4686 4687 4688 4689 4690 4691depcc="$CC" am_compiler_list= 4692 4693{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4694printf %s "checking dependency style of $depcc... " >&6; } 4695if test ${am_cv_CC_dependencies_compiler_type+y} 4696then : 4697 printf %s "(cached) " >&6 4698else case e in #( 4699 e) if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4700 # We make a subdir and do the tests there. Otherwise we can end up 4701 # making bogus files that we don't know about and never remove. For 4702 # instance it was reported that on HP-UX the gcc test will end up 4703 # making a dummy file named 'D' -- because '-MD' means "put the output 4704 # in D". 4705 rm -rf conftest.dir 4706 mkdir conftest.dir 4707 # Copy depcomp to subdir because otherwise we won't find it if we're 4708 # using a relative directory. 4709 cp "$am_depcomp" conftest.dir 4710 cd conftest.dir 4711 # We will build objects and dependencies in a subdirectory because 4712 # it helps to detect inapplicable dependency modes. For instance 4713 # both Tru64's cc and ICC support -MD to output dependencies as a 4714 # side effect of compilation, but ICC will put the dependencies in 4715 # the current directory while Tru64 will put them in the object 4716 # directory. 4717 mkdir sub 4718 4719 am_cv_CC_dependencies_compiler_type=none 4720 if test "$am_compiler_list" = ""; then 4721 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4722 fi 4723 am__universal=false 4724 case " $depcc " in #( 4725 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4726 esac 4727 4728 for depmode in $am_compiler_list; do 4729 # Setup a source with many dependencies, because some compilers 4730 # like to wrap large dependency lists on column 80 (with \), and 4731 # we should not choose a depcomp mode which is confused by this. 4732 # 4733 # We need to recreate these files for each test, as the compiler may 4734 # overwrite some of them when testing with obscure command lines. 4735 # This happens at least with the AIX C compiler. 4736 : > sub/conftest.c 4737 for i in 1 2 3 4 5 6; do 4738 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4739 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4740 # Solaris 10 /bin/sh. 4741 echo '/* dummy */' > sub/conftst$i.h 4742 done 4743 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4744 4745 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4746 # mode. It turns out that the SunPro C++ compiler does not properly 4747 # handle '-M -o', and we need to detect this. Also, some Intel 4748 # versions had trouble with output in subdirs. 4749 am__obj=sub/conftest.${OBJEXT-o} 4750 am__minus_obj="-o $am__obj" 4751 case $depmode in 4752 gcc) 4753 # This depmode causes a compiler race in universal mode. 4754 test "$am__universal" = false || continue 4755 ;; 4756 nosideeffect) 4757 # After this tag, mechanisms are not by side-effect, so they'll 4758 # only be used when explicitly requested. 4759 if test "x$enable_dependency_tracking" = xyes; then 4760 continue 4761 else 4762 break 4763 fi 4764 ;; 4765 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4766 # This compiler won't grok '-c -o', but also, the minuso test has 4767 # not run yet. These depmodes are late enough in the game, and 4768 # so weak that their functioning should not be impacted. 4769 am__obj=conftest.${OBJEXT-o} 4770 am__minus_obj= 4771 ;; 4772 none) break ;; 4773 esac 4774 if depmode=$depmode \ 4775 source=sub/conftest.c object=$am__obj \ 4776 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4777 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4778 >/dev/null 2>conftest.err && 4779 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4780 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4781 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4782 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4783 # icc doesn't choke on unknown options, it will just issue warnings 4784 # or remarks (even with -Werror). So we grep stderr for any message 4785 # that says an option was ignored or not supported. 4786 # When given -MP, icc 7.0 and 7.1 complain thusly: 4787 # icc: Command line warning: ignoring option '-M'; no argument required 4788 # The diagnosis changed in icc 8.0: 4789 # icc: Command line remark: option '-MP' not supported 4790 if (grep 'ignoring option' conftest.err || 4791 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4792 am_cv_CC_dependencies_compiler_type=$depmode 4793 break 4794 fi 4795 fi 4796 done 4797 4798 cd .. 4799 rm -rf conftest.dir 4800else 4801 am_cv_CC_dependencies_compiler_type=none 4802fi 4803 ;; 4804esac 4805fi 4806{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4807printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; } 4808CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4809 4810 if 4811 test "x$enable_dependency_tracking" != xno \ 4812 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4813 am__fastdepCC_TRUE= 4814 am__fastdepCC_FALSE='#' 4815else 4816 am__fastdepCC_TRUE='#' 4817 am__fastdepCC_FALSE= 4818fi 4819 4820 4821# Variables for tags utilities; see am/tags.am 4822if test -z "$CTAGS"; then 4823 CTAGS=ctags 4824fi 4825 4826if test -z "$ETAGS"; then 4827 ETAGS=etags 4828fi 4829 4830if test -z "$CSCOPE"; then 4831 CSCOPE=cscope 4832fi 4833 4834 4835 4836# POSIX will say in a future version that running "rm -f" with no argument 4837# is OK; and we want to be able to make that assumption in our Makefile 4838# recipes. So use an aggressive probe to check that the usage we want is 4839# actually supported "in the wild" to an acceptable degree. 4840# See automake bug#10828. 4841# To make any issue more visible, cause the running configure to be aborted 4842# by default if the 'rm' program in use doesn't match our expectations; the 4843# user can still override this though. 4844if rm -f && rm -fr && rm -rf; then : OK; else 4845 cat >&2 <<'END' 4846Oops! 4847 4848Your 'rm' program seems unable to run without file operands specified 4849on the command line, even when the '-f' option is present. This is contrary 4850to the behaviour of most rm programs out there, and not conforming with 4851the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 4852 4853Please tell bug-automake@gnu.org about your system, including the value 4854of your $PATH and any error possibly output before this message. This 4855can help us improve future automake versions. 4856 4857END 4858 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 4859 echo 'Configuration will proceed anyway, since you have set the' >&2 4860 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 4861 echo >&2 4862 else 4863 cat >&2 <<'END' 4864Aborting the configuration process, to ensure you take notice of the issue. 4865 4866You can download and install GNU coreutils to get an 'rm' implementation 4867that behaves properly: <https://www.gnu.org/software/coreutils/>. 4868 4869If you want to complete the configuration process using your problematic 4870'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 4871to "yes", and re-run configure. 4872 4873END 4874 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 4875 fi 4876fi 4877 4878 4879# Initialize libtool 4880case `pwd` in 4881 *\ * | *\ *) 4882 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 4883printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 4884esac 4885 4886 4887 4888macro_version='2.4.7' 4889macro_revision='2.4.7' 4890 4891 4892 4893 4894 4895 4896 4897 4898 4899 4900 4901 4902 4903 4904ltmain=$ac_aux_dir/ltmain.sh 4905 4906 4907 4908 # Make sure we can run config.sub. 4909$SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 || 4910 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5 4911 4912{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 4913printf %s "checking build system type... " >&6; } 4914if test ${ac_cv_build+y} 4915then : 4916 printf %s "(cached) " >&6 4917else case e in #( 4918 e) ac_build_alias=$build_alias 4919test "x$ac_build_alias" = x && 4920 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"` 4921test "x$ac_build_alias" = x && 4922 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 4923ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` || 4924 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5 4925 ;; 4926esac 4927fi 4928{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 4929printf "%s\n" "$ac_cv_build" >&6; } 4930case $ac_cv_build in 4931*-*-*) ;; 4932*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 4933esac 4934build=$ac_cv_build 4935ac_save_IFS=$IFS; IFS='-' 4936set x $ac_cv_build 4937shift 4938build_cpu=$1 4939build_vendor=$2 4940shift; shift 4941# Remember, the first character of IFS is used to create $*, 4942# except with old shells: 4943build_os=$* 4944IFS=$ac_save_IFS 4945case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 4946 4947 4948{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 4949printf %s "checking host system type... " >&6; } 4950if test ${ac_cv_host+y} 4951then : 4952 printf %s "(cached) " >&6 4953else case e in #( 4954 e) if test "x$host_alias" = x; then 4955 ac_cv_host=$ac_cv_build 4956else 4957 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` || 4958 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5 4959fi 4960 ;; 4961esac 4962fi 4963{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 4964printf "%s\n" "$ac_cv_host" >&6; } 4965case $ac_cv_host in 4966*-*-*) ;; 4967*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 4968esac 4969host=$ac_cv_host 4970ac_save_IFS=$IFS; IFS='-' 4971set x $ac_cv_host 4972shift 4973host_cpu=$1 4974host_vendor=$2 4975shift; shift 4976# Remember, the first character of IFS is used to create $*, 4977# except with old shells: 4978host_os=$* 4979IFS=$ac_save_IFS 4980case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 4981 4982 4983# Backslashify metacharacters that are still active within 4984# double-quoted strings. 4985sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 4986 4987# Same as above, but do not quote variable references. 4988double_quote_subst='s/\(["`\\]\)/\\\1/g' 4989 4990# Sed substitution to delay expansion of an escaped shell variable in a 4991# double_quote_subst'ed string. 4992delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 4993 4994# Sed substitution to delay expansion of an escaped single quote. 4995delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 4996 4997# Sed substitution to avoid accidental globbing in evaled expressions 4998no_glob_subst='s/\*/\\\*/g' 4999 5000ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 5001ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 5002ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 5003 5004{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 5005printf %s "checking how to print strings... " >&6; } 5006# Test print first, because it will be a builtin if present. 5007if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 5008 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 5009 ECHO='print -r --' 5010elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 5011 ECHO='printf %s\n' 5012else 5013 # Use this function as a fallback that always works. 5014 func_fallback_echo () 5015 { 5016 eval 'cat <<_LTECHO_EOF 5017$1 5018_LTECHO_EOF' 5019 } 5020 ECHO='func_fallback_echo' 5021fi 5022 5023# func_echo_all arg... 5024# Invoke $ECHO with all args, space-separated. 5025func_echo_all () 5026{ 5027 $ECHO "" 5028} 5029 5030case $ECHO in 5031 printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5 5032printf "%s\n" "printf" >&6; } ;; 5033 print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 5034printf "%s\n" "print -r" >&6; } ;; 5035 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5 5036printf "%s\n" "cat" >&6; } ;; 5037esac 5038 5039 5040 5041 5042 5043 5044 5045 5046 5047 5048 5049 5050 5051 5052{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 5053printf %s "checking for a sed that does not truncate output... " >&6; } 5054if test ${ac_cv_path_SED+y} 5055then : 5056 printf %s "(cached) " >&6 5057else case e in #( 5058 e) ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 5059 for ac_i in 1 2 3 4 5 6 7; do 5060 ac_script="$ac_script$as_nl$ac_script" 5061 done 5062 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 5063 { ac_script=; unset ac_script;} 5064 if test -z "$SED"; then 5065 ac_path_SED_found=false 5066 # Loop through the user's path and test for each of PROGNAME-LIST 5067 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5068for as_dir in $PATH 5069do 5070 IFS=$as_save_IFS 5071 case $as_dir in #((( 5072 '') as_dir=./ ;; 5073 */) ;; 5074 *) as_dir=$as_dir/ ;; 5075 esac 5076 for ac_prog in sed gsed 5077 do 5078 for ac_exec_ext in '' $ac_executable_extensions; do 5079 ac_path_SED="$as_dir$ac_prog$ac_exec_ext" 5080 as_fn_executable_p "$ac_path_SED" || continue 5081# Check for GNU ac_path_SED and select it if it is found. 5082 # Check for GNU $ac_path_SED 5083case `"$ac_path_SED" --version 2>&1` in #( 5084*GNU*) 5085 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 5086#( 5087*) 5088 ac_count=0 5089 printf %s 0123456789 >"conftest.in" 5090 while : 5091 do 5092 cat "conftest.in" "conftest.in" >"conftest.tmp" 5093 mv "conftest.tmp" "conftest.in" 5094 cp "conftest.in" "conftest.nl" 5095 printf "%s\n" '' >> "conftest.nl" 5096 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 5097 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5098 as_fn_arith $ac_count + 1 && ac_count=$as_val 5099 if test $ac_count -gt ${ac_path_SED_max-0}; then 5100 # Best one so far, save it but keep looking for a better one 5101 ac_cv_path_SED="$ac_path_SED" 5102 ac_path_SED_max=$ac_count 5103 fi 5104 # 10*(2^10) chars as input seems more than enough 5105 test $ac_count -gt 10 && break 5106 done 5107 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5108esac 5109 5110 $ac_path_SED_found && break 3 5111 done 5112 done 5113 done 5114IFS=$as_save_IFS 5115 if test -z "$ac_cv_path_SED"; then 5116 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 5117 fi 5118else 5119 ac_cv_path_SED=$SED 5120fi 5121 ;; 5122esac 5123fi 5124{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 5125printf "%s\n" "$ac_cv_path_SED" >&6; } 5126 SED="$ac_cv_path_SED" 5127 rm -f conftest.sed 5128 5129test -z "$SED" && SED=sed 5130Xsed="$SED -e 1s/^X//" 5131 5132 5133 5134 5135 5136 5137 5138 5139 5140 5141 5142{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 5143printf %s "checking for grep that handles long lines and -e... " >&6; } 5144if test ${ac_cv_path_GREP+y} 5145then : 5146 printf %s "(cached) " >&6 5147else case e in #( 5148 e) if test -z "$GREP"; then 5149 ac_path_GREP_found=false 5150 # Loop through the user's path and test for each of PROGNAME-LIST 5151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5152for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5153do 5154 IFS=$as_save_IFS 5155 case $as_dir in #((( 5156 '') as_dir=./ ;; 5157 */) ;; 5158 *) as_dir=$as_dir/ ;; 5159 esac 5160 for ac_prog in grep ggrep 5161 do 5162 for ac_exec_ext in '' $ac_executable_extensions; do 5163 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext" 5164 as_fn_executable_p "$ac_path_GREP" || continue 5165# Check for GNU ac_path_GREP and select it if it is found. 5166 # Check for GNU $ac_path_GREP 5167case `"$ac_path_GREP" --version 2>&1` in #( 5168*GNU*) 5169 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 5170#( 5171*) 5172 ac_count=0 5173 printf %s 0123456789 >"conftest.in" 5174 while : 5175 do 5176 cat "conftest.in" "conftest.in" >"conftest.tmp" 5177 mv "conftest.tmp" "conftest.in" 5178 cp "conftest.in" "conftest.nl" 5179 printf "%s\n" 'GREP' >> "conftest.nl" 5180 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 5181 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5182 as_fn_arith $ac_count + 1 && ac_count=$as_val 5183 if test $ac_count -gt ${ac_path_GREP_max-0}; then 5184 # Best one so far, save it but keep looking for a better one 5185 ac_cv_path_GREP="$ac_path_GREP" 5186 ac_path_GREP_max=$ac_count 5187 fi 5188 # 10*(2^10) chars as input seems more than enough 5189 test $ac_count -gt 10 && break 5190 done 5191 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5192esac 5193 5194 $ac_path_GREP_found && break 3 5195 done 5196 done 5197 done 5198IFS=$as_save_IFS 5199 if test -z "$ac_cv_path_GREP"; then 5200 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5201 fi 5202else 5203 ac_cv_path_GREP=$GREP 5204fi 5205 ;; 5206esac 5207fi 5208{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 5209printf "%s\n" "$ac_cv_path_GREP" >&6; } 5210 GREP="$ac_cv_path_GREP" 5211 5212 5213{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 5214printf %s "checking for egrep... " >&6; } 5215if test ${ac_cv_path_EGREP+y} 5216then : 5217 printf %s "(cached) " >&6 5218else case e in #( 5219 e) if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 5220 then ac_cv_path_EGREP="$GREP -E" 5221 else 5222 if test -z "$EGREP"; then 5223 ac_path_EGREP_found=false 5224 # Loop through the user's path and test for each of PROGNAME-LIST 5225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5226for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5227do 5228 IFS=$as_save_IFS 5229 case $as_dir in #((( 5230 '') as_dir=./ ;; 5231 */) ;; 5232 *) as_dir=$as_dir/ ;; 5233 esac 5234 for ac_prog in egrep 5235 do 5236 for ac_exec_ext in '' $ac_executable_extensions; do 5237 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext" 5238 as_fn_executable_p "$ac_path_EGREP" || continue 5239# Check for GNU ac_path_EGREP and select it if it is found. 5240 # Check for GNU $ac_path_EGREP 5241case `"$ac_path_EGREP" --version 2>&1` in #( 5242*GNU*) 5243 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 5244#( 5245*) 5246 ac_count=0 5247 printf %s 0123456789 >"conftest.in" 5248 while : 5249 do 5250 cat "conftest.in" "conftest.in" >"conftest.tmp" 5251 mv "conftest.tmp" "conftest.in" 5252 cp "conftest.in" "conftest.nl" 5253 printf "%s\n" 'EGREP' >> "conftest.nl" 5254 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 5255 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5256 as_fn_arith $ac_count + 1 && ac_count=$as_val 5257 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 5258 # Best one so far, save it but keep looking for a better one 5259 ac_cv_path_EGREP="$ac_path_EGREP" 5260 ac_path_EGREP_max=$ac_count 5261 fi 5262 # 10*(2^10) chars as input seems more than enough 5263 test $ac_count -gt 10 && break 5264 done 5265 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5266esac 5267 5268 $ac_path_EGREP_found && break 3 5269 done 5270 done 5271 done 5272IFS=$as_save_IFS 5273 if test -z "$ac_cv_path_EGREP"; then 5274 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5275 fi 5276else 5277 ac_cv_path_EGREP=$EGREP 5278fi 5279 5280 fi ;; 5281esac 5282fi 5283{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 5284printf "%s\n" "$ac_cv_path_EGREP" >&6; } 5285 EGREP="$ac_cv_path_EGREP" 5286 5287 EGREP_TRADITIONAL=$EGREP 5288 ac_cv_path_EGREP_TRADITIONAL=$EGREP 5289 5290{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 5291printf %s "checking for fgrep... " >&6; } 5292if test ${ac_cv_path_FGREP+y} 5293then : 5294 printf %s "(cached) " >&6 5295else case e in #( 5296 e) if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 5297 then ac_cv_path_FGREP="$GREP -F" 5298 else 5299 if test -z "$FGREP"; then 5300 ac_path_FGREP_found=false 5301 # Loop through the user's path and test for each of PROGNAME-LIST 5302 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5303for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5304do 5305 IFS=$as_save_IFS 5306 case $as_dir in #((( 5307 '') as_dir=./ ;; 5308 */) ;; 5309 *) as_dir=$as_dir/ ;; 5310 esac 5311 for ac_prog in fgrep 5312 do 5313 for ac_exec_ext in '' $ac_executable_extensions; do 5314 ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext" 5315 as_fn_executable_p "$ac_path_FGREP" || continue 5316# Check for GNU ac_path_FGREP and select it if it is found. 5317 # Check for GNU $ac_path_FGREP 5318case `"$ac_path_FGREP" --version 2>&1` in #( 5319*GNU*) 5320 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 5321#( 5322*) 5323 ac_count=0 5324 printf %s 0123456789 >"conftest.in" 5325 while : 5326 do 5327 cat "conftest.in" "conftest.in" >"conftest.tmp" 5328 mv "conftest.tmp" "conftest.in" 5329 cp "conftest.in" "conftest.nl" 5330 printf "%s\n" 'FGREP' >> "conftest.nl" 5331 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 5332 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5333 as_fn_arith $ac_count + 1 && ac_count=$as_val 5334 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 5335 # Best one so far, save it but keep looking for a better one 5336 ac_cv_path_FGREP="$ac_path_FGREP" 5337 ac_path_FGREP_max=$ac_count 5338 fi 5339 # 10*(2^10) chars as input seems more than enough 5340 test $ac_count -gt 10 && break 5341 done 5342 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5343esac 5344 5345 $ac_path_FGREP_found && break 3 5346 done 5347 done 5348 done 5349IFS=$as_save_IFS 5350 if test -z "$ac_cv_path_FGREP"; then 5351 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5352 fi 5353else 5354 ac_cv_path_FGREP=$FGREP 5355fi 5356 5357 fi ;; 5358esac 5359fi 5360{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 5361printf "%s\n" "$ac_cv_path_FGREP" >&6; } 5362 FGREP="$ac_cv_path_FGREP" 5363 5364 5365test -z "$GREP" && GREP=grep 5366 5367 5368 5369 5370 5371 5372 5373 5374 5375 5376 5377 5378 5379 5380 5381 5382 5383 5384 5385# Check whether --with-gnu-ld was given. 5386if test ${with_gnu_ld+y} 5387then : 5388 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 5389else case e in #( 5390 e) with_gnu_ld=no ;; 5391esac 5392fi 5393 5394ac_prog=ld 5395if test yes = "$GCC"; then 5396 # Check if gcc -print-prog-name=ld gives a path. 5397 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 5398printf %s "checking for ld used by $CC... " >&6; } 5399 case $host in 5400 *-*-mingw*) 5401 # gcc leaves a trailing carriage return, which upsets mingw 5402 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 5403 *) 5404 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 5405 esac 5406 case $ac_prog in 5407 # Accept absolute paths. 5408 [\\/]* | ?:[\\/]*) 5409 re_direlt='/[^/][^/]*/\.\./' 5410 # Canonicalize the pathname of ld 5411 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 5412 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 5413 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 5414 done 5415 test -z "$LD" && LD=$ac_prog 5416 ;; 5417 "") 5418 # If it fails, then pretend we aren't using GCC. 5419 ac_prog=ld 5420 ;; 5421 *) 5422 # If it is relative, then search for the first ld in PATH. 5423 with_gnu_ld=unknown 5424 ;; 5425 esac 5426elif test yes = "$with_gnu_ld"; then 5427 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 5428printf %s "checking for GNU ld... " >&6; } 5429else 5430 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 5431printf %s "checking for non-GNU ld... " >&6; } 5432fi 5433if test ${lt_cv_path_LD+y} 5434then : 5435 printf %s "(cached) " >&6 5436else case e in #( 5437 e) if test -z "$LD"; then 5438 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 5439 for ac_dir in $PATH; do 5440 IFS=$lt_save_ifs 5441 test -z "$ac_dir" && ac_dir=. 5442 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 5443 lt_cv_path_LD=$ac_dir/$ac_prog 5444 # Check to see if the program is GNU ld. I'd rather use --version, 5445 # but apparently some variants of GNU ld only accept -v. 5446 # Break only if it was the GNU/non-GNU ld that we prefer. 5447 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 5448 *GNU* | *'with BFD'*) 5449 test no != "$with_gnu_ld" && break 5450 ;; 5451 *) 5452 test yes != "$with_gnu_ld" && break 5453 ;; 5454 esac 5455 fi 5456 done 5457 IFS=$lt_save_ifs 5458else 5459 lt_cv_path_LD=$LD # Let the user override the test with a path. 5460fi ;; 5461esac 5462fi 5463 5464LD=$lt_cv_path_LD 5465if test -n "$LD"; then 5466 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 5467printf "%s\n" "$LD" >&6; } 5468else 5469 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5470printf "%s\n" "no" >&6; } 5471fi 5472test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 5473{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 5474printf %s "checking if the linker ($LD) is GNU ld... " >&6; } 5475if test ${lt_cv_prog_gnu_ld+y} 5476then : 5477 printf %s "(cached) " >&6 5478else case e in #( 5479 e) # I'd rather use --version here, but apparently some GNU lds only accept -v. 5480case `$LD -v 2>&1 </dev/null` in 5481*GNU* | *'with BFD'*) 5482 lt_cv_prog_gnu_ld=yes 5483 ;; 5484*) 5485 lt_cv_prog_gnu_ld=no 5486 ;; 5487esac ;; 5488esac 5489fi 5490{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 5491printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; } 5492with_gnu_ld=$lt_cv_prog_gnu_ld 5493 5494 5495 5496 5497 5498 5499 5500 5501 5502{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 5503printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 5504if test ${lt_cv_path_NM+y} 5505then : 5506 printf %s "(cached) " >&6 5507else case e in #( 5508 e) if test -n "$NM"; then 5509 # Let the user override the test. 5510 lt_cv_path_NM=$NM 5511else 5512 lt_nm_to_check=${ac_tool_prefix}nm 5513 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 5514 lt_nm_to_check="$lt_nm_to_check nm" 5515 fi 5516 for lt_tmp_nm in $lt_nm_to_check; do 5517 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 5518 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 5519 IFS=$lt_save_ifs 5520 test -z "$ac_dir" && ac_dir=. 5521 tmp_nm=$ac_dir/$lt_tmp_nm 5522 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then 5523 # Check to see if the nm accepts a BSD-compat flag. 5524 # Adding the 'sed 1q' prevents false positives on HP-UX, which says: 5525 # nm: unknown option "B" ignored 5526 # Tru64's nm complains that /dev/null is an invalid object file 5527 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty 5528 case $build_os in 5529 mingw*) lt_bad_file=conftest.nm/nofile ;; 5530 *) lt_bad_file=/dev/null ;; 5531 esac 5532 case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in 5533 *$lt_bad_file* | *'Invalid file or object type'*) 5534 lt_cv_path_NM="$tmp_nm -B" 5535 break 2 5536 ;; 5537 *) 5538 case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in 5539 */dev/null*) 5540 lt_cv_path_NM="$tmp_nm -p" 5541 break 2 5542 ;; 5543 *) 5544 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 5545 continue # so that we can try to find one that supports BSD flags 5546 ;; 5547 esac 5548 ;; 5549 esac 5550 fi 5551 done 5552 IFS=$lt_save_ifs 5553 done 5554 : ${lt_cv_path_NM=no} 5555fi ;; 5556esac 5557fi 5558{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 5559printf "%s\n" "$lt_cv_path_NM" >&6; } 5560if test no != "$lt_cv_path_NM"; then 5561 NM=$lt_cv_path_NM 5562else 5563 # Didn't find any BSD compatible name lister, look for dumpbin. 5564 if test -n "$DUMPBIN"; then : 5565 # Let the user override the test. 5566 else 5567 if test -n "$ac_tool_prefix"; then 5568 for ac_prog in dumpbin "link -dump" 5569 do 5570 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5571set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5572{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5573printf %s "checking for $ac_word... " >&6; } 5574if test ${ac_cv_prog_DUMPBIN+y} 5575then : 5576 printf %s "(cached) " >&6 5577else case e in #( 5578 e) if test -n "$DUMPBIN"; then 5579 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 5580else 5581as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5582for as_dir in $PATH 5583do 5584 IFS=$as_save_IFS 5585 case $as_dir in #((( 5586 '') as_dir=./ ;; 5587 */) ;; 5588 *) as_dir=$as_dir/ ;; 5589 esac 5590 for ac_exec_ext in '' $ac_executable_extensions; do 5591 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5592 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 5593 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5594 break 2 5595 fi 5596done 5597 done 5598IFS=$as_save_IFS 5599 5600fi ;; 5601esac 5602fi 5603DUMPBIN=$ac_cv_prog_DUMPBIN 5604if test -n "$DUMPBIN"; then 5605 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 5606printf "%s\n" "$DUMPBIN" >&6; } 5607else 5608 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5609printf "%s\n" "no" >&6; } 5610fi 5611 5612 5613 test -n "$DUMPBIN" && break 5614 done 5615fi 5616if test -z "$DUMPBIN"; then 5617 ac_ct_DUMPBIN=$DUMPBIN 5618 for ac_prog in dumpbin "link -dump" 5619do 5620 # Extract the first word of "$ac_prog", so it can be a program name with args. 5621set dummy $ac_prog; ac_word=$2 5622{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5623printf %s "checking for $ac_word... " >&6; } 5624if test ${ac_cv_prog_ac_ct_DUMPBIN+y} 5625then : 5626 printf %s "(cached) " >&6 5627else case e in #( 5628 e) if test -n "$ac_ct_DUMPBIN"; then 5629 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 5630else 5631as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5632for as_dir in $PATH 5633do 5634 IFS=$as_save_IFS 5635 case $as_dir in #((( 5636 '') as_dir=./ ;; 5637 */) ;; 5638 *) as_dir=$as_dir/ ;; 5639 esac 5640 for ac_exec_ext in '' $ac_executable_extensions; do 5641 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5642 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 5643 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5644 break 2 5645 fi 5646done 5647 done 5648IFS=$as_save_IFS 5649 5650fi ;; 5651esac 5652fi 5653ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 5654if test -n "$ac_ct_DUMPBIN"; then 5655 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 5656printf "%s\n" "$ac_ct_DUMPBIN" >&6; } 5657else 5658 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5659printf "%s\n" "no" >&6; } 5660fi 5661 5662 5663 test -n "$ac_ct_DUMPBIN" && break 5664done 5665 5666 if test "x$ac_ct_DUMPBIN" = x; then 5667 DUMPBIN=":" 5668 else 5669 case $cross_compiling:$ac_tool_warned in 5670yes:) 5671{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5672printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5673ac_tool_warned=yes ;; 5674esac 5675 DUMPBIN=$ac_ct_DUMPBIN 5676 fi 5677fi 5678 5679 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in 5680 *COFF*) 5681 DUMPBIN="$DUMPBIN -symbols -headers" 5682 ;; 5683 *) 5684 DUMPBIN=: 5685 ;; 5686 esac 5687 fi 5688 5689 if test : != "$DUMPBIN"; then 5690 NM=$DUMPBIN 5691 fi 5692fi 5693test -z "$NM" && NM=nm 5694 5695 5696 5697 5698 5699 5700{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 5701printf %s "checking the name lister ($NM) interface... " >&6; } 5702if test ${lt_cv_nm_interface+y} 5703then : 5704 printf %s "(cached) " >&6 5705else case e in #( 5706 e) lt_cv_nm_interface="BSD nm" 5707 echo "int some_variable = 0;" > conftest.$ac_ext 5708 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 5709 (eval "$ac_compile" 2>conftest.err) 5710 cat conftest.err >&5 5711 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 5712 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 5713 cat conftest.err >&5 5714 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 5715 cat conftest.out >&5 5716 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 5717 lt_cv_nm_interface="MS dumpbin" 5718 fi 5719 rm -f conftest* ;; 5720esac 5721fi 5722{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 5723printf "%s\n" "$lt_cv_nm_interface" >&6; } 5724 5725{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 5726printf %s "checking whether ln -s works... " >&6; } 5727LN_S=$as_ln_s 5728if test "$LN_S" = "ln -s"; then 5729 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5730printf "%s\n" "yes" >&6; } 5731else 5732 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 5733printf "%s\n" "no, using $LN_S" >&6; } 5734fi 5735 5736# find the maximum length of command line arguments 5737{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 5738printf %s "checking the maximum length of command line arguments... " >&6; } 5739if test ${lt_cv_sys_max_cmd_len+y} 5740then : 5741 printf %s "(cached) " >&6 5742else case e in #( 5743 e) i=0 5744 teststring=ABCD 5745 5746 case $build_os in 5747 msdosdjgpp*) 5748 # On DJGPP, this test can blow up pretty badly due to problems in libc 5749 # (any single argument exceeding 2000 bytes causes a buffer overrun 5750 # during glob expansion). Even if it were fixed, the result of this 5751 # check would be larger than it should be. 5752 lt_cv_sys_max_cmd_len=12288; # 12K is about right 5753 ;; 5754 5755 gnu*) 5756 # Under GNU Hurd, this test is not required because there is 5757 # no limit to the length of command line arguments. 5758 # Libtool will interpret -1 as no limit whatsoever 5759 lt_cv_sys_max_cmd_len=-1; 5760 ;; 5761 5762 cygwin* | mingw* | cegcc*) 5763 # On Win9x/ME, this test blows up -- it succeeds, but takes 5764 # about 5 minutes as the teststring grows exponentially. 5765 # Worse, since 9x/ME are not pre-emptively multitasking, 5766 # you end up with a "frozen" computer, even though with patience 5767 # the test eventually succeeds (with a max line length of 256k). 5768 # Instead, let's just punt: use the minimum linelength reported by 5769 # all of the supported platforms: 8192 (on NT/2K/XP). 5770 lt_cv_sys_max_cmd_len=8192; 5771 ;; 5772 5773 mint*) 5774 # On MiNT this can take a long time and run out of memory. 5775 lt_cv_sys_max_cmd_len=8192; 5776 ;; 5777 5778 amigaos*) 5779 # On AmigaOS with pdksh, this test takes hours, literally. 5780 # So we just punt and use a minimum line length of 8192. 5781 lt_cv_sys_max_cmd_len=8192; 5782 ;; 5783 5784 bitrig* | darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*) 5785 # This has been around since 386BSD, at least. Likely further. 5786 if test -x /sbin/sysctl; then 5787 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 5788 elif test -x /usr/sbin/sysctl; then 5789 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 5790 else 5791 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 5792 fi 5793 # And add a safety zone 5794 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5795 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5796 ;; 5797 5798 interix*) 5799 # We know the value 262144 and hardcode it with a safety zone (like BSD) 5800 lt_cv_sys_max_cmd_len=196608 5801 ;; 5802 5803 os2*) 5804 # The test takes a long time on OS/2. 5805 lt_cv_sys_max_cmd_len=8192 5806 ;; 5807 5808 osf*) 5809 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 5810 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 5811 # nice to cause kernel panics so lets avoid the loop below. 5812 # First set a reasonable default. 5813 lt_cv_sys_max_cmd_len=16384 5814 # 5815 if test -x /sbin/sysconfig; then 5816 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 5817 *1*) lt_cv_sys_max_cmd_len=-1 ;; 5818 esac 5819 fi 5820 ;; 5821 sco3.2v5*) 5822 lt_cv_sys_max_cmd_len=102400 5823 ;; 5824 sysv5* | sco5v6* | sysv4.2uw2*) 5825 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 5826 if test -n "$kargmax"; then 5827 lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[ ]//'` 5828 else 5829 lt_cv_sys_max_cmd_len=32768 5830 fi 5831 ;; 5832 *) 5833 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 5834 if test -n "$lt_cv_sys_max_cmd_len" && \ 5835 test undefined != "$lt_cv_sys_max_cmd_len"; then 5836 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5837 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5838 else 5839 # Make teststring a little bigger before we do anything with it. 5840 # a 1K string should be a reasonable start. 5841 for i in 1 2 3 4 5 6 7 8; do 5842 teststring=$teststring$teststring 5843 done 5844 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 5845 # If test is not a shell built-in, we'll probably end up computing a 5846 # maximum length that is only half of the actual maximum length, but 5847 # we can't tell. 5848 while { test X`env echo "$teststring$teststring" 2>/dev/null` \ 5849 = "X$teststring$teststring"; } >/dev/null 2>&1 && 5850 test 17 != "$i" # 1/2 MB should be enough 5851 do 5852 i=`expr $i + 1` 5853 teststring=$teststring$teststring 5854 done 5855 # Only check the string length outside the loop. 5856 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 5857 teststring= 5858 # Add a significant safety factor because C++ compilers can tack on 5859 # massive amounts of additional arguments before passing them to the 5860 # linker. It appears as though 1/2 is a usable value. 5861 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 5862 fi 5863 ;; 5864 esac 5865 ;; 5866esac 5867fi 5868 5869if test -n "$lt_cv_sys_max_cmd_len"; then 5870 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 5871printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; } 5872else 5873 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5 5874printf "%s\n" "none" >&6; } 5875fi 5876max_cmd_len=$lt_cv_sys_max_cmd_len 5877 5878 5879 5880 5881 5882 5883: ${CP="cp -f"} 5884: ${MV="mv -f"} 5885: ${RM="rm -f"} 5886 5887if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 5888 lt_unset=unset 5889else 5890 lt_unset=false 5891fi 5892 5893 5894 5895 5896 5897# test EBCDIC or ASCII 5898case `echo X|tr X '\101'` in 5899 A) # ASCII based system 5900 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 5901 lt_SP2NL='tr \040 \012' 5902 lt_NL2SP='tr \015\012 \040\040' 5903 ;; 5904 *) # EBCDIC based system 5905 lt_SP2NL='tr \100 \n' 5906 lt_NL2SP='tr \r\n \100\100' 5907 ;; 5908esac 5909 5910 5911 5912 5913 5914 5915 5916 5917 5918{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 5919printf %s "checking how to convert $build file names to $host format... " >&6; } 5920if test ${lt_cv_to_host_file_cmd+y} 5921then : 5922 printf %s "(cached) " >&6 5923else case e in #( 5924 e) case $host in 5925 *-*-mingw* ) 5926 case $build in 5927 *-*-mingw* ) # actually msys 5928 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 5929 ;; 5930 *-*-cygwin* ) 5931 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 5932 ;; 5933 * ) # otherwise, assume *nix 5934 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 5935 ;; 5936 esac 5937 ;; 5938 *-*-cygwin* ) 5939 case $build in 5940 *-*-mingw* ) # actually msys 5941 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 5942 ;; 5943 *-*-cygwin* ) 5944 lt_cv_to_host_file_cmd=func_convert_file_noop 5945 ;; 5946 * ) # otherwise, assume *nix 5947 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 5948 ;; 5949 esac 5950 ;; 5951 * ) # unhandled hosts (and "normal" native builds) 5952 lt_cv_to_host_file_cmd=func_convert_file_noop 5953 ;; 5954esac 5955 ;; 5956esac 5957fi 5958 5959to_host_file_cmd=$lt_cv_to_host_file_cmd 5960{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 5961printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; } 5962 5963 5964 5965 5966 5967{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 5968printf %s "checking how to convert $build file names to toolchain format... " >&6; } 5969if test ${lt_cv_to_tool_file_cmd+y} 5970then : 5971 printf %s "(cached) " >&6 5972else case e in #( 5973 e) #assume ordinary cross tools, or native build. 5974lt_cv_to_tool_file_cmd=func_convert_file_noop 5975case $host in 5976 *-*-mingw* ) 5977 case $build in 5978 *-*-mingw* ) # actually msys 5979 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 5980 ;; 5981 esac 5982 ;; 5983esac 5984 ;; 5985esac 5986fi 5987 5988to_tool_file_cmd=$lt_cv_to_tool_file_cmd 5989{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 5990printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; } 5991 5992 5993 5994 5995 5996{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 5997printf %s "checking for $LD option to reload object files... " >&6; } 5998if test ${lt_cv_ld_reload_flag+y} 5999then : 6000 printf %s "(cached) " >&6 6001else case e in #( 6002 e) lt_cv_ld_reload_flag='-r' ;; 6003esac 6004fi 6005{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 6006printf "%s\n" "$lt_cv_ld_reload_flag" >&6; } 6007reload_flag=$lt_cv_ld_reload_flag 6008case $reload_flag in 6009"" | " "*) ;; 6010*) reload_flag=" $reload_flag" ;; 6011esac 6012reload_cmds='$LD$reload_flag -o $output$reload_objs' 6013case $host_os in 6014 cygwin* | mingw* | pw32* | cegcc*) 6015 if test yes != "$GCC"; then 6016 reload_cmds=false 6017 fi 6018 ;; 6019 darwin*) 6020 if test yes = "$GCC"; then 6021 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' 6022 else 6023 reload_cmds='$LD$reload_flag -o $output$reload_objs' 6024 fi 6025 ;; 6026esac 6027 6028 6029 6030 6031 6032 6033 6034 6035 6036if test -n "$ac_tool_prefix"; then 6037 # Extract the first word of "${ac_tool_prefix}file", so it can be a program name with args. 6038set dummy ${ac_tool_prefix}file; ac_word=$2 6039{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6040printf %s "checking for $ac_word... " >&6; } 6041if test ${ac_cv_prog_FILECMD+y} 6042then : 6043 printf %s "(cached) " >&6 6044else case e in #( 6045 e) if test -n "$FILECMD"; then 6046 ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test. 6047else 6048as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6049for as_dir in $PATH 6050do 6051 IFS=$as_save_IFS 6052 case $as_dir in #((( 6053 '') as_dir=./ ;; 6054 */) ;; 6055 *) as_dir=$as_dir/ ;; 6056 esac 6057 for ac_exec_ext in '' $ac_executable_extensions; do 6058 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6059 ac_cv_prog_FILECMD="${ac_tool_prefix}file" 6060 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6061 break 2 6062 fi 6063done 6064 done 6065IFS=$as_save_IFS 6066 6067fi ;; 6068esac 6069fi 6070FILECMD=$ac_cv_prog_FILECMD 6071if test -n "$FILECMD"; then 6072 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5 6073printf "%s\n" "$FILECMD" >&6; } 6074else 6075 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6076printf "%s\n" "no" >&6; } 6077fi 6078 6079 6080fi 6081if test -z "$ac_cv_prog_FILECMD"; then 6082 ac_ct_FILECMD=$FILECMD 6083 # Extract the first word of "file", so it can be a program name with args. 6084set dummy file; ac_word=$2 6085{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6086printf %s "checking for $ac_word... " >&6; } 6087if test ${ac_cv_prog_ac_ct_FILECMD+y} 6088then : 6089 printf %s "(cached) " >&6 6090else case e in #( 6091 e) if test -n "$ac_ct_FILECMD"; then 6092 ac_cv_prog_ac_ct_FILECMD="$ac_ct_FILECMD" # Let the user override the test. 6093else 6094as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6095for as_dir in $PATH 6096do 6097 IFS=$as_save_IFS 6098 case $as_dir in #((( 6099 '') as_dir=./ ;; 6100 */) ;; 6101 *) as_dir=$as_dir/ ;; 6102 esac 6103 for ac_exec_ext in '' $ac_executable_extensions; do 6104 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6105 ac_cv_prog_ac_ct_FILECMD="file" 6106 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6107 break 2 6108 fi 6109done 6110 done 6111IFS=$as_save_IFS 6112 6113fi ;; 6114esac 6115fi 6116ac_ct_FILECMD=$ac_cv_prog_ac_ct_FILECMD 6117if test -n "$ac_ct_FILECMD"; then 6118 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FILECMD" >&5 6119printf "%s\n" "$ac_ct_FILECMD" >&6; } 6120else 6121 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6122printf "%s\n" "no" >&6; } 6123fi 6124 6125 if test "x$ac_ct_FILECMD" = x; then 6126 FILECMD=":" 6127 else 6128 case $cross_compiling:$ac_tool_warned in 6129yes:) 6130{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6131printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6132ac_tool_warned=yes ;; 6133esac 6134 FILECMD=$ac_ct_FILECMD 6135 fi 6136else 6137 FILECMD="$ac_cv_prog_FILECMD" 6138fi 6139 6140 6141 6142 6143 6144 6145 6146if test -n "$ac_tool_prefix"; then 6147 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 6148set dummy ${ac_tool_prefix}objdump; ac_word=$2 6149{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6150printf %s "checking for $ac_word... " >&6; } 6151if test ${ac_cv_prog_OBJDUMP+y} 6152then : 6153 printf %s "(cached) " >&6 6154else case e in #( 6155 e) if test -n "$OBJDUMP"; then 6156 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 6157else 6158as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6159for as_dir in $PATH 6160do 6161 IFS=$as_save_IFS 6162 case $as_dir in #((( 6163 '') as_dir=./ ;; 6164 */) ;; 6165 *) as_dir=$as_dir/ ;; 6166 esac 6167 for ac_exec_ext in '' $ac_executable_extensions; do 6168 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6169 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 6170 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6171 break 2 6172 fi 6173done 6174 done 6175IFS=$as_save_IFS 6176 6177fi ;; 6178esac 6179fi 6180OBJDUMP=$ac_cv_prog_OBJDUMP 6181if test -n "$OBJDUMP"; then 6182 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 6183printf "%s\n" "$OBJDUMP" >&6; } 6184else 6185 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6186printf "%s\n" "no" >&6; } 6187fi 6188 6189 6190fi 6191if test -z "$ac_cv_prog_OBJDUMP"; then 6192 ac_ct_OBJDUMP=$OBJDUMP 6193 # Extract the first word of "objdump", so it can be a program name with args. 6194set dummy objdump; ac_word=$2 6195{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6196printf %s "checking for $ac_word... " >&6; } 6197if test ${ac_cv_prog_ac_ct_OBJDUMP+y} 6198then : 6199 printf %s "(cached) " >&6 6200else case e in #( 6201 e) if test -n "$ac_ct_OBJDUMP"; then 6202 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 6203else 6204as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6205for as_dir in $PATH 6206do 6207 IFS=$as_save_IFS 6208 case $as_dir in #((( 6209 '') as_dir=./ ;; 6210 */) ;; 6211 *) as_dir=$as_dir/ ;; 6212 esac 6213 for ac_exec_ext in '' $ac_executable_extensions; do 6214 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6215 ac_cv_prog_ac_ct_OBJDUMP="objdump" 6216 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6217 break 2 6218 fi 6219done 6220 done 6221IFS=$as_save_IFS 6222 6223fi ;; 6224esac 6225fi 6226ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 6227if test -n "$ac_ct_OBJDUMP"; then 6228 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 6229printf "%s\n" "$ac_ct_OBJDUMP" >&6; } 6230else 6231 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6232printf "%s\n" "no" >&6; } 6233fi 6234 6235 if test "x$ac_ct_OBJDUMP" = x; then 6236 OBJDUMP="false" 6237 else 6238 case $cross_compiling:$ac_tool_warned in 6239yes:) 6240{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6241printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6242ac_tool_warned=yes ;; 6243esac 6244 OBJDUMP=$ac_ct_OBJDUMP 6245 fi 6246else 6247 OBJDUMP="$ac_cv_prog_OBJDUMP" 6248fi 6249 6250test -z "$OBJDUMP" && OBJDUMP=objdump 6251 6252 6253 6254 6255 6256 6257 6258 6259 6260{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 6261printf %s "checking how to recognize dependent libraries... " >&6; } 6262if test ${lt_cv_deplibs_check_method+y} 6263then : 6264 printf %s "(cached) " >&6 6265else case e in #( 6266 e) lt_cv_file_magic_cmd='$MAGIC_CMD' 6267lt_cv_file_magic_test_file= 6268lt_cv_deplibs_check_method='unknown' 6269# Need to set the preceding variable on all platforms that support 6270# interlibrary dependencies. 6271# 'none' -- dependencies not supported. 6272# 'unknown' -- same as none, but documents that we really don't know. 6273# 'pass_all' -- all dependencies passed with no checks. 6274# 'test_compile' -- check by making test program. 6275# 'file_magic [[regex]]' -- check by looking for files in library path 6276# that responds to the $file_magic_cmd with a given extended regex. 6277# If you have 'file' or equivalent on your system and you're not sure 6278# whether 'pass_all' will *always* work, you probably want this one. 6279 6280case $host_os in 6281aix[4-9]*) 6282 lt_cv_deplibs_check_method=pass_all 6283 ;; 6284 6285beos*) 6286 lt_cv_deplibs_check_method=pass_all 6287 ;; 6288 6289bsdi[45]*) 6290 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 6291 lt_cv_file_magic_cmd='$FILECMD -L' 6292 lt_cv_file_magic_test_file=/shlib/libc.so 6293 ;; 6294 6295cygwin*) 6296 # func_win32_libid is a shell function defined in ltmain.sh 6297 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 6298 lt_cv_file_magic_cmd='func_win32_libid' 6299 ;; 6300 6301mingw* | pw32*) 6302 # Base MSYS/MinGW do not provide the 'file' command needed by 6303 # func_win32_libid shell function, so use a weaker test based on 'objdump', 6304 # unless we find 'file', for example because we are cross-compiling. 6305 if ( file / ) >/dev/null 2>&1; then 6306 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 6307 lt_cv_file_magic_cmd='func_win32_libid' 6308 else 6309 # Keep this pattern in sync with the one in func_win32_libid. 6310 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 6311 lt_cv_file_magic_cmd='$OBJDUMP -f' 6312 fi 6313 ;; 6314 6315cegcc*) 6316 # use the weaker test based on 'objdump'. See mingw*. 6317 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 6318 lt_cv_file_magic_cmd='$OBJDUMP -f' 6319 ;; 6320 6321darwin* | rhapsody*) 6322 lt_cv_deplibs_check_method=pass_all 6323 ;; 6324 6325freebsd* | dragonfly* | midnightbsd*) 6326 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 6327 case $host_cpu in 6328 i*86 ) 6329 # Not sure whether the presence of OpenBSD here was a mistake. 6330 # Let's accept both of them until this is cleared up. 6331 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 6332 lt_cv_file_magic_cmd=$FILECMD 6333 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 6334 ;; 6335 esac 6336 else 6337 lt_cv_deplibs_check_method=pass_all 6338 fi 6339 ;; 6340 6341haiku*) 6342 lt_cv_deplibs_check_method=pass_all 6343 ;; 6344 6345hpux10.20* | hpux11*) 6346 lt_cv_file_magic_cmd=$FILECMD 6347 case $host_cpu in 6348 ia64*) 6349 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 6350 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 6351 ;; 6352 hppa*64*) 6353 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]' 6354 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 6355 ;; 6356 *) 6357 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 6358 lt_cv_file_magic_test_file=/usr/lib/libc.sl 6359 ;; 6360 esac 6361 ;; 6362 6363interix[3-9]*) 6364 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 6365 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 6366 ;; 6367 6368irix5* | irix6* | nonstopux*) 6369 case $LD in 6370 *-32|*"-32 ") libmagic=32-bit;; 6371 *-n32|*"-n32 ") libmagic=N32;; 6372 *-64|*"-64 ") libmagic=64-bit;; 6373 *) libmagic=never-match;; 6374 esac 6375 lt_cv_deplibs_check_method=pass_all 6376 ;; 6377 6378# This must be glibc/ELF. 6379linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 6380 lt_cv_deplibs_check_method=pass_all 6381 ;; 6382 6383netbsd*) 6384 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 6385 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6386 else 6387 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 6388 fi 6389 ;; 6390 6391newos6*) 6392 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 6393 lt_cv_file_magic_cmd=$FILECMD 6394 lt_cv_file_magic_test_file=/usr/lib/libnls.so 6395 ;; 6396 6397*nto* | *qnx*) 6398 lt_cv_deplibs_check_method=pass_all 6399 ;; 6400 6401openbsd* | bitrig*) 6402 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 6403 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 6404 else 6405 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6406 fi 6407 ;; 6408 6409osf3* | osf4* | osf5*) 6410 lt_cv_deplibs_check_method=pass_all 6411 ;; 6412 6413rdos*) 6414 lt_cv_deplibs_check_method=pass_all 6415 ;; 6416 6417solaris*) 6418 lt_cv_deplibs_check_method=pass_all 6419 ;; 6420 6421sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 6422 lt_cv_deplibs_check_method=pass_all 6423 ;; 6424 6425sysv4 | sysv4.3*) 6426 case $host_vendor in 6427 motorola) 6428 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]' 6429 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 6430 ;; 6431 ncr) 6432 lt_cv_deplibs_check_method=pass_all 6433 ;; 6434 sequent) 6435 lt_cv_file_magic_cmd='/bin/file' 6436 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 6437 ;; 6438 sni) 6439 lt_cv_file_magic_cmd='/bin/file' 6440 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 6441 lt_cv_file_magic_test_file=/lib/libc.so 6442 ;; 6443 siemens) 6444 lt_cv_deplibs_check_method=pass_all 6445 ;; 6446 pc) 6447 lt_cv_deplibs_check_method=pass_all 6448 ;; 6449 esac 6450 ;; 6451 6452tpf*) 6453 lt_cv_deplibs_check_method=pass_all 6454 ;; 6455os2*) 6456 lt_cv_deplibs_check_method=pass_all 6457 ;; 6458esac 6459 ;; 6460esac 6461fi 6462{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 6463printf "%s\n" "$lt_cv_deplibs_check_method" >&6; } 6464 6465file_magic_glob= 6466want_nocaseglob=no 6467if test "$build" = "$host"; then 6468 case $host_os in 6469 mingw* | pw32*) 6470 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 6471 want_nocaseglob=yes 6472 else 6473 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 6474 fi 6475 ;; 6476 esac 6477fi 6478 6479file_magic_cmd=$lt_cv_file_magic_cmd 6480deplibs_check_method=$lt_cv_deplibs_check_method 6481test -z "$deplibs_check_method" && deplibs_check_method=unknown 6482 6483 6484 6485 6486 6487 6488 6489 6490 6491 6492 6493 6494 6495 6496 6497 6498 6499 6500 6501 6502 6503 6504if test -n "$ac_tool_prefix"; then 6505 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 6506set dummy ${ac_tool_prefix}dlltool; ac_word=$2 6507{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6508printf %s "checking for $ac_word... " >&6; } 6509if test ${ac_cv_prog_DLLTOOL+y} 6510then : 6511 printf %s "(cached) " >&6 6512else case e in #( 6513 e) if test -n "$DLLTOOL"; then 6514 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 6515else 6516as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6517for as_dir in $PATH 6518do 6519 IFS=$as_save_IFS 6520 case $as_dir in #((( 6521 '') as_dir=./ ;; 6522 */) ;; 6523 *) as_dir=$as_dir/ ;; 6524 esac 6525 for ac_exec_ext in '' $ac_executable_extensions; do 6526 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6527 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 6528 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6529 break 2 6530 fi 6531done 6532 done 6533IFS=$as_save_IFS 6534 6535fi ;; 6536esac 6537fi 6538DLLTOOL=$ac_cv_prog_DLLTOOL 6539if test -n "$DLLTOOL"; then 6540 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 6541printf "%s\n" "$DLLTOOL" >&6; } 6542else 6543 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6544printf "%s\n" "no" >&6; } 6545fi 6546 6547 6548fi 6549if test -z "$ac_cv_prog_DLLTOOL"; then 6550 ac_ct_DLLTOOL=$DLLTOOL 6551 # Extract the first word of "dlltool", so it can be a program name with args. 6552set dummy dlltool; ac_word=$2 6553{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6554printf %s "checking for $ac_word... " >&6; } 6555if test ${ac_cv_prog_ac_ct_DLLTOOL+y} 6556then : 6557 printf %s "(cached) " >&6 6558else case e in #( 6559 e) if test -n "$ac_ct_DLLTOOL"; then 6560 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 6561else 6562as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6563for as_dir in $PATH 6564do 6565 IFS=$as_save_IFS 6566 case $as_dir in #((( 6567 '') as_dir=./ ;; 6568 */) ;; 6569 *) as_dir=$as_dir/ ;; 6570 esac 6571 for ac_exec_ext in '' $ac_executable_extensions; do 6572 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6573 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 6574 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6575 break 2 6576 fi 6577done 6578 done 6579IFS=$as_save_IFS 6580 6581fi ;; 6582esac 6583fi 6584ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 6585if test -n "$ac_ct_DLLTOOL"; then 6586 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 6587printf "%s\n" "$ac_ct_DLLTOOL" >&6; } 6588else 6589 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6590printf "%s\n" "no" >&6; } 6591fi 6592 6593 if test "x$ac_ct_DLLTOOL" = x; then 6594 DLLTOOL="false" 6595 else 6596 case $cross_compiling:$ac_tool_warned in 6597yes:) 6598{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6599printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6600ac_tool_warned=yes ;; 6601esac 6602 DLLTOOL=$ac_ct_DLLTOOL 6603 fi 6604else 6605 DLLTOOL="$ac_cv_prog_DLLTOOL" 6606fi 6607 6608test -z "$DLLTOOL" && DLLTOOL=dlltool 6609 6610 6611 6612 6613 6614 6615 6616 6617 6618 6619{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 6620printf %s "checking how to associate runtime and link libraries... " >&6; } 6621if test ${lt_cv_sharedlib_from_linklib_cmd+y} 6622then : 6623 printf %s "(cached) " >&6 6624else case e in #( 6625 e) lt_cv_sharedlib_from_linklib_cmd='unknown' 6626 6627case $host_os in 6628cygwin* | mingw* | pw32* | cegcc*) 6629 # two different shell functions defined in ltmain.sh; 6630 # decide which one to use based on capabilities of $DLLTOOL 6631 case `$DLLTOOL --help 2>&1` in 6632 *--identify-strict*) 6633 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 6634 ;; 6635 *) 6636 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 6637 ;; 6638 esac 6639 ;; 6640*) 6641 # fallback: assume linklib IS sharedlib 6642 lt_cv_sharedlib_from_linklib_cmd=$ECHO 6643 ;; 6644esac 6645 ;; 6646esac 6647fi 6648{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 6649printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 6650sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 6651test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 6652 6653 6654 6655 6656 6657 6658 6659if test -n "$ac_tool_prefix"; then 6660 for ac_prog in ar 6661 do 6662 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 6663set dummy $ac_tool_prefix$ac_prog; ac_word=$2 6664{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6665printf %s "checking for $ac_word... " >&6; } 6666if test ${ac_cv_prog_AR+y} 6667then : 6668 printf %s "(cached) " >&6 6669else case e in #( 6670 e) if test -n "$AR"; then 6671 ac_cv_prog_AR="$AR" # Let the user override the test. 6672else 6673as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6674for as_dir in $PATH 6675do 6676 IFS=$as_save_IFS 6677 case $as_dir in #((( 6678 '') as_dir=./ ;; 6679 */) ;; 6680 *) as_dir=$as_dir/ ;; 6681 esac 6682 for ac_exec_ext in '' $ac_executable_extensions; do 6683 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6684 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 6685 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6686 break 2 6687 fi 6688done 6689 done 6690IFS=$as_save_IFS 6691 6692fi ;; 6693esac 6694fi 6695AR=$ac_cv_prog_AR 6696if test -n "$AR"; then 6697 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 6698printf "%s\n" "$AR" >&6; } 6699else 6700 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6701printf "%s\n" "no" >&6; } 6702fi 6703 6704 6705 test -n "$AR" && break 6706 done 6707fi 6708if test -z "$AR"; then 6709 ac_ct_AR=$AR 6710 for ac_prog in ar 6711do 6712 # Extract the first word of "$ac_prog", so it can be a program name with args. 6713set dummy $ac_prog; ac_word=$2 6714{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6715printf %s "checking for $ac_word... " >&6; } 6716if test ${ac_cv_prog_ac_ct_AR+y} 6717then : 6718 printf %s "(cached) " >&6 6719else case e in #( 6720 e) if test -n "$ac_ct_AR"; then 6721 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 6722else 6723as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6724for as_dir in $PATH 6725do 6726 IFS=$as_save_IFS 6727 case $as_dir in #((( 6728 '') as_dir=./ ;; 6729 */) ;; 6730 *) as_dir=$as_dir/ ;; 6731 esac 6732 for ac_exec_ext in '' $ac_executable_extensions; do 6733 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6734 ac_cv_prog_ac_ct_AR="$ac_prog" 6735 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6736 break 2 6737 fi 6738done 6739 done 6740IFS=$as_save_IFS 6741 6742fi ;; 6743esac 6744fi 6745ac_ct_AR=$ac_cv_prog_ac_ct_AR 6746if test -n "$ac_ct_AR"; then 6747 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 6748printf "%s\n" "$ac_ct_AR" >&6; } 6749else 6750 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6751printf "%s\n" "no" >&6; } 6752fi 6753 6754 6755 test -n "$ac_ct_AR" && break 6756done 6757 6758 if test "x$ac_ct_AR" = x; then 6759 AR="false" 6760 else 6761 case $cross_compiling:$ac_tool_warned in 6762yes:) 6763{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6764printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6765ac_tool_warned=yes ;; 6766esac 6767 AR=$ac_ct_AR 6768 fi 6769fi 6770 6771: ${AR=ar} 6772 6773 6774 6775 6776 6777 6778# Use ARFLAGS variable as AR's operation code to sync the variable naming with 6779# Automake. If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have 6780# higher priority because thats what people were doing historically (setting 6781# ARFLAGS for automake and AR_FLAGS for libtool). FIXME: Make the AR_FLAGS 6782# variable obsoleted/removed. 6783 6784test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr} 6785lt_ar_flags=$AR_FLAGS 6786 6787 6788 6789 6790 6791 6792# Make AR_FLAGS overridable by 'make ARFLAGS='. Don't try to run-time override 6793# by AR_FLAGS because that was never working and AR_FLAGS is about to die. 6794 6795 6796 6797 6798 6799 6800{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 6801printf %s "checking for archiver @FILE support... " >&6; } 6802if test ${lt_cv_ar_at_file+y} 6803then : 6804 printf %s "(cached) " >&6 6805else case e in #( 6806 e) lt_cv_ar_at_file=no 6807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6808/* end confdefs.h. */ 6809 6810int 6811main (void) 6812{ 6813 6814 ; 6815 return 0; 6816} 6817_ACEOF 6818if ac_fn_c_try_compile "$LINENO" 6819then : 6820 echo conftest.$ac_objext > conftest.lst 6821 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 6822 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 6823 (eval $lt_ar_try) 2>&5 6824 ac_status=$? 6825 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6826 test $ac_status = 0; } 6827 if test 0 -eq "$ac_status"; then 6828 # Ensure the archiver fails upon bogus file names. 6829 rm -f conftest.$ac_objext libconftest.a 6830 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 6831 (eval $lt_ar_try) 2>&5 6832 ac_status=$? 6833 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6834 test $ac_status = 0; } 6835 if test 0 -ne "$ac_status"; then 6836 lt_cv_ar_at_file=@ 6837 fi 6838 fi 6839 rm -f conftest.* libconftest.a 6840 6841fi 6842rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6843 ;; 6844esac 6845fi 6846{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 6847printf "%s\n" "$lt_cv_ar_at_file" >&6; } 6848 6849if test no = "$lt_cv_ar_at_file"; then 6850 archiver_list_spec= 6851else 6852 archiver_list_spec=$lt_cv_ar_at_file 6853fi 6854 6855 6856 6857 6858 6859 6860 6861if test -n "$ac_tool_prefix"; then 6862 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 6863set dummy ${ac_tool_prefix}strip; ac_word=$2 6864{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6865printf %s "checking for $ac_word... " >&6; } 6866if test ${ac_cv_prog_STRIP+y} 6867then : 6868 printf %s "(cached) " >&6 6869else case e in #( 6870 e) if test -n "$STRIP"; then 6871 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 6872else 6873as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6874for as_dir in $PATH 6875do 6876 IFS=$as_save_IFS 6877 case $as_dir in #((( 6878 '') as_dir=./ ;; 6879 */) ;; 6880 *) as_dir=$as_dir/ ;; 6881 esac 6882 for ac_exec_ext in '' $ac_executable_extensions; do 6883 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6884 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 6885 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6886 break 2 6887 fi 6888done 6889 done 6890IFS=$as_save_IFS 6891 6892fi ;; 6893esac 6894fi 6895STRIP=$ac_cv_prog_STRIP 6896if test -n "$STRIP"; then 6897 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 6898printf "%s\n" "$STRIP" >&6; } 6899else 6900 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6901printf "%s\n" "no" >&6; } 6902fi 6903 6904 6905fi 6906if test -z "$ac_cv_prog_STRIP"; then 6907 ac_ct_STRIP=$STRIP 6908 # Extract the first word of "strip", so it can be a program name with args. 6909set dummy strip; ac_word=$2 6910{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6911printf %s "checking for $ac_word... " >&6; } 6912if test ${ac_cv_prog_ac_ct_STRIP+y} 6913then : 6914 printf %s "(cached) " >&6 6915else case e in #( 6916 e) if test -n "$ac_ct_STRIP"; then 6917 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 6918else 6919as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6920for as_dir in $PATH 6921do 6922 IFS=$as_save_IFS 6923 case $as_dir in #((( 6924 '') as_dir=./ ;; 6925 */) ;; 6926 *) as_dir=$as_dir/ ;; 6927 esac 6928 for ac_exec_ext in '' $ac_executable_extensions; do 6929 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6930 ac_cv_prog_ac_ct_STRIP="strip" 6931 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6932 break 2 6933 fi 6934done 6935 done 6936IFS=$as_save_IFS 6937 6938fi ;; 6939esac 6940fi 6941ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 6942if test -n "$ac_ct_STRIP"; then 6943 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 6944printf "%s\n" "$ac_ct_STRIP" >&6; } 6945else 6946 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6947printf "%s\n" "no" >&6; } 6948fi 6949 6950 if test "x$ac_ct_STRIP" = x; then 6951 STRIP=":" 6952 else 6953 case $cross_compiling:$ac_tool_warned in 6954yes:) 6955{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6956printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6957ac_tool_warned=yes ;; 6958esac 6959 STRIP=$ac_ct_STRIP 6960 fi 6961else 6962 STRIP="$ac_cv_prog_STRIP" 6963fi 6964 6965test -z "$STRIP" && STRIP=: 6966 6967 6968 6969 6970 6971 6972if test -n "$ac_tool_prefix"; then 6973 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 6974set dummy ${ac_tool_prefix}ranlib; ac_word=$2 6975{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6976printf %s "checking for $ac_word... " >&6; } 6977if test ${ac_cv_prog_RANLIB+y} 6978then : 6979 printf %s "(cached) " >&6 6980else case e in #( 6981 e) if test -n "$RANLIB"; then 6982 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 6983else 6984as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6985for as_dir in $PATH 6986do 6987 IFS=$as_save_IFS 6988 case $as_dir in #((( 6989 '') as_dir=./ ;; 6990 */) ;; 6991 *) as_dir=$as_dir/ ;; 6992 esac 6993 for ac_exec_ext in '' $ac_executable_extensions; do 6994 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6995 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 6996 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6997 break 2 6998 fi 6999done 7000 done 7001IFS=$as_save_IFS 7002 7003fi ;; 7004esac 7005fi 7006RANLIB=$ac_cv_prog_RANLIB 7007if test -n "$RANLIB"; then 7008 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 7009printf "%s\n" "$RANLIB" >&6; } 7010else 7011 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7012printf "%s\n" "no" >&6; } 7013fi 7014 7015 7016fi 7017if test -z "$ac_cv_prog_RANLIB"; then 7018 ac_ct_RANLIB=$RANLIB 7019 # Extract the first word of "ranlib", so it can be a program name with args. 7020set dummy ranlib; ac_word=$2 7021{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7022printf %s "checking for $ac_word... " >&6; } 7023if test ${ac_cv_prog_ac_ct_RANLIB+y} 7024then : 7025 printf %s "(cached) " >&6 7026else case e in #( 7027 e) if test -n "$ac_ct_RANLIB"; then 7028 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 7029else 7030as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7031for as_dir in $PATH 7032do 7033 IFS=$as_save_IFS 7034 case $as_dir in #((( 7035 '') as_dir=./ ;; 7036 */) ;; 7037 *) as_dir=$as_dir/ ;; 7038 esac 7039 for ac_exec_ext in '' $ac_executable_extensions; do 7040 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7041 ac_cv_prog_ac_ct_RANLIB="ranlib" 7042 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7043 break 2 7044 fi 7045done 7046 done 7047IFS=$as_save_IFS 7048 7049fi ;; 7050esac 7051fi 7052ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 7053if test -n "$ac_ct_RANLIB"; then 7054 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 7055printf "%s\n" "$ac_ct_RANLIB" >&6; } 7056else 7057 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7058printf "%s\n" "no" >&6; } 7059fi 7060 7061 if test "x$ac_ct_RANLIB" = x; then 7062 RANLIB=":" 7063 else 7064 case $cross_compiling:$ac_tool_warned in 7065yes:) 7066{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7067printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7068ac_tool_warned=yes ;; 7069esac 7070 RANLIB=$ac_ct_RANLIB 7071 fi 7072else 7073 RANLIB="$ac_cv_prog_RANLIB" 7074fi 7075 7076test -z "$RANLIB" && RANLIB=: 7077 7078 7079 7080 7081 7082 7083# Determine commands to create old-style static archives. 7084old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 7085old_postinstall_cmds='chmod 644 $oldlib' 7086old_postuninstall_cmds= 7087 7088if test -n "$RANLIB"; then 7089 case $host_os in 7090 bitrig* | openbsd*) 7091 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 7092 ;; 7093 *) 7094 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 7095 ;; 7096 esac 7097 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 7098fi 7099 7100case $host_os in 7101 darwin*) 7102 lock_old_archive_extraction=yes ;; 7103 *) 7104 lock_old_archive_extraction=no ;; 7105esac 7106 7107 7108 7109 7110 7111 7112 7113 7114 7115 7116 7117 7118 7119 7120 7121 7122 7123 7124 7125 7126 7127 7128 7129 7130 7131 7132 7133 7134 7135 7136 7137 7138 7139 7140 7141 7142 7143 7144 7145# If no C compiler was specified, use CC. 7146LTCC=${LTCC-"$CC"} 7147 7148# If no C compiler flags were specified, use CFLAGS. 7149LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 7150 7151# Allow CC to be a program name with arguments. 7152compiler=$CC 7153 7154 7155# Check for command to grab the raw symbol name followed by C symbol from nm. 7156{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 7157printf %s "checking command to parse $NM output from $compiler object... " >&6; } 7158if test ${lt_cv_sys_global_symbol_pipe+y} 7159then : 7160 printf %s "(cached) " >&6 7161else case e in #( 7162 e) 7163# These are sane defaults that work on at least a few old systems. 7164# [They come from Ultrix. What could be older than Ultrix?!! ;)] 7165 7166# Character class describing NM global symbol codes. 7167symcode='[BCDEGRST]' 7168 7169# Regexp to match symbols that can be accessed directly from C. 7170sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 7171 7172# Define system-specific variables. 7173case $host_os in 7174aix*) 7175 symcode='[BCDT]' 7176 ;; 7177cygwin* | mingw* | pw32* | cegcc*) 7178 symcode='[ABCDGISTW]' 7179 ;; 7180hpux*) 7181 if test ia64 = "$host_cpu"; then 7182 symcode='[ABCDEGRST]' 7183 fi 7184 ;; 7185irix* | nonstopux*) 7186 symcode='[BCDEGRST]' 7187 ;; 7188osf*) 7189 symcode='[BCDEGQRST]' 7190 ;; 7191solaris*) 7192 symcode='[BDRT]' 7193 ;; 7194sco3.2v5*) 7195 symcode='[DT]' 7196 ;; 7197sysv4.2uw2*) 7198 symcode='[DT]' 7199 ;; 7200sysv5* | sco5v6* | unixware* | OpenUNIX*) 7201 symcode='[ABDT]' 7202 ;; 7203sysv4) 7204 symcode='[DFNSTU]' 7205 ;; 7206esac 7207 7208# If we're using GNU nm, then use its standard symbol codes. 7209case `$NM -V 2>&1` in 7210*GNU* | *'with BFD'*) 7211 symcode='[ABCDGIRSTW]' ;; 7212esac 7213 7214if test "$lt_cv_nm_interface" = "MS dumpbin"; then 7215 # Gets list of data symbols to import. 7216 lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'" 7217 # Adjust the below global symbol transforms to fixup imported variables. 7218 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" 7219 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" 7220 lt_c_name_lib_hook="\ 7221 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ 7222 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" 7223else 7224 # Disable hooks by default. 7225 lt_cv_sys_global_symbol_to_import= 7226 lt_cdecl_hook= 7227 lt_c_name_hook= 7228 lt_c_name_lib_hook= 7229fi 7230 7231# Transform an extracted symbol line into a proper C declaration. 7232# Some systems (esp. on ia64) link data and code symbols differently, 7233# so use this general approach. 7234lt_cv_sys_global_symbol_to_cdecl="$SED -n"\ 7235$lt_cdecl_hook\ 7236" -e 's/^T .* \(.*\)$/extern int \1();/p'"\ 7237" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" 7238 7239# Transform an extracted symbol line into symbol name and symbol address 7240lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\ 7241$lt_c_name_hook\ 7242" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 7243" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" 7244 7245# Transform an extracted symbol line into symbol name with lib prefix and 7246# symbol address. 7247lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\ 7248$lt_c_name_lib_hook\ 7249" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 7250" -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ 7251" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" 7252 7253# Handle CRLF in mingw tool chain 7254opt_cr= 7255case $build_os in 7256mingw*) 7257 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 7258 ;; 7259esac 7260 7261# Try without a prefix underscore, then with it. 7262for ac_symprfx in "" "_"; do 7263 7264 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 7265 symxfrm="\\1 $ac_symprfx\\2 \\2" 7266 7267 # Write the raw and C identifiers. 7268 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 7269 # Fake it for dumpbin and say T for any non-static function, 7270 # D for any global variable and I for any imported variable. 7271 # Also find C++ and __fastcall symbols from MSVC++ or ICC, 7272 # which start with @ or ?. 7273 lt_cv_sys_global_symbol_pipe="$AWK '"\ 7274" {last_section=section; section=\$ 3};"\ 7275" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 7276" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 7277" /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ 7278" /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ 7279" /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ 7280" \$ 0!~/External *\|/{next};"\ 7281" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 7282" {if(hide[section]) next};"\ 7283" {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ 7284" {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ 7285" s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ 7286" s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ 7287" ' prfx=^$ac_symprfx" 7288 else 7289 lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 7290 fi 7291 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'" 7292 7293 # Check to see that the pipe works correctly. 7294 pipe_works=no 7295 7296 rm -f conftest* 7297 cat > conftest.$ac_ext <<_LT_EOF 7298#ifdef __cplusplus 7299extern "C" { 7300#endif 7301char nm_test_var; 7302void nm_test_func(void); 7303void nm_test_func(void){} 7304#ifdef __cplusplus 7305} 7306#endif 7307int main(){nm_test_var='a';nm_test_func();return(0);} 7308_LT_EOF 7309 7310 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7311 (eval $ac_compile) 2>&5 7312 ac_status=$? 7313 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7314 test $ac_status = 0; }; then 7315 # Now try to grab the symbols. 7316 nlist=conftest.nm 7317 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 7318 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 7319 ac_status=$? 7320 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7321 test $ac_status = 0; } && test -s "$nlist"; then 7322 # Try sorting and uniquifying the output. 7323 if sort "$nlist" | uniq > "$nlist"T; then 7324 mv -f "$nlist"T "$nlist" 7325 else 7326 rm -f "$nlist"T 7327 fi 7328 7329 # Make sure that we snagged all the symbols we need. 7330 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 7331 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 7332 cat <<_LT_EOF > conftest.$ac_ext 7333/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 7334#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE 7335/* DATA imports from DLLs on WIN32 can't be const, because runtime 7336 relocations are performed -- see ld's documentation on pseudo-relocs. */ 7337# define LT_DLSYM_CONST 7338#elif defined __osf__ 7339/* This system does not cope well with relocations in const data. */ 7340# define LT_DLSYM_CONST 7341#else 7342# define LT_DLSYM_CONST const 7343#endif 7344 7345#ifdef __cplusplus 7346extern "C" { 7347#endif 7348 7349_LT_EOF 7350 # Now generate the symbol file. 7351 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 7352 7353 cat <<_LT_EOF >> conftest.$ac_ext 7354 7355/* The mapping between symbol names and symbols. */ 7356LT_DLSYM_CONST struct { 7357 const char *name; 7358 void *address; 7359} 7360lt__PROGRAM__LTX_preloaded_symbols[] = 7361{ 7362 { "@PROGRAM@", (void *) 0 }, 7363_LT_EOF 7364 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 7365 cat <<\_LT_EOF >> conftest.$ac_ext 7366 {0, (void *) 0} 7367}; 7368 7369/* This works around a problem in FreeBSD linker */ 7370#ifdef FREEBSD_WORKAROUND 7371static const void *lt_preloaded_setup() { 7372 return lt__PROGRAM__LTX_preloaded_symbols; 7373} 7374#endif 7375 7376#ifdef __cplusplus 7377} 7378#endif 7379_LT_EOF 7380 # Now try linking the two files. 7381 mv conftest.$ac_objext conftstm.$ac_objext 7382 lt_globsym_save_LIBS=$LIBS 7383 lt_globsym_save_CFLAGS=$CFLAGS 7384 LIBS=conftstm.$ac_objext 7385 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 7386 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 7387 (eval $ac_link) 2>&5 7388 ac_status=$? 7389 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7390 test $ac_status = 0; } && test -s conftest$ac_exeext; then 7391 pipe_works=yes 7392 fi 7393 LIBS=$lt_globsym_save_LIBS 7394 CFLAGS=$lt_globsym_save_CFLAGS 7395 else 7396 echo "cannot find nm_test_func in $nlist" >&5 7397 fi 7398 else 7399 echo "cannot find nm_test_var in $nlist" >&5 7400 fi 7401 else 7402 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 7403 fi 7404 else 7405 echo "$progname: failed program was:" >&5 7406 cat conftest.$ac_ext >&5 7407 fi 7408 rm -rf conftest* conftst* 7409 7410 # Do not use the global_symbol_pipe unless it works. 7411 if test yes = "$pipe_works"; then 7412 break 7413 else 7414 lt_cv_sys_global_symbol_pipe= 7415 fi 7416done 7417 ;; 7418esac 7419fi 7420 7421if test -z "$lt_cv_sys_global_symbol_pipe"; then 7422 lt_cv_sys_global_symbol_to_cdecl= 7423fi 7424if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 7425 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5 7426printf "%s\n" "failed" >&6; } 7427else 7428 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5 7429printf "%s\n" "ok" >&6; } 7430fi 7431 7432# Response file support. 7433if test "$lt_cv_nm_interface" = "MS dumpbin"; then 7434 nm_file_list_spec='@' 7435elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 7436 nm_file_list_spec='@' 7437fi 7438 7439 7440 7441 7442 7443 7444 7445 7446 7447 7448 7449 7450 7451 7452 7453 7454 7455 7456 7457 7458 7459 7460 7461 7462 7463 7464 7465 7466 7467 7468 7469 7470 7471 7472 7473 7474 7475{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 7476printf %s "checking for sysroot... " >&6; } 7477 7478# Check whether --with-sysroot was given. 7479if test ${with_sysroot+y} 7480then : 7481 withval=$with_sysroot; 7482else case e in #( 7483 e) with_sysroot=no ;; 7484esac 7485fi 7486 7487 7488lt_sysroot= 7489case $with_sysroot in #( 7490 yes) 7491 if test yes = "$GCC"; then 7492 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 7493 fi 7494 ;; #( 7495 /*) 7496 lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"` 7497 ;; #( 7498 no|'') 7499 ;; #( 7500 *) 7501 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5 7502printf "%s\n" "$with_sysroot" >&6; } 7503 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 7504 ;; 7505esac 7506 7507 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 7508printf "%s\n" "${lt_sysroot:-no}" >&6; } 7509 7510 7511 7512 7513 7514{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5 7515printf %s "checking for a working dd... " >&6; } 7516if test ${ac_cv_path_lt_DD+y} 7517then : 7518 printf %s "(cached) " >&6 7519else case e in #( 7520 e) printf 0123456789abcdef0123456789abcdef >conftest.i 7521cat conftest.i conftest.i >conftest2.i 7522: ${lt_DD:=$DD} 7523if test -z "$lt_DD"; then 7524 ac_path_lt_DD_found=false 7525 # Loop through the user's path and test for each of PROGNAME-LIST 7526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7527for as_dir in $PATH 7528do 7529 IFS=$as_save_IFS 7530 case $as_dir in #((( 7531 '') as_dir=./ ;; 7532 */) ;; 7533 *) as_dir=$as_dir/ ;; 7534 esac 7535 for ac_prog in dd 7536 do 7537 for ac_exec_ext in '' $ac_executable_extensions; do 7538 ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext" 7539 as_fn_executable_p "$ac_path_lt_DD" || continue 7540if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 7541 cmp -s conftest.i conftest.out \ 7542 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: 7543fi 7544 $ac_path_lt_DD_found && break 3 7545 done 7546 done 7547 done 7548IFS=$as_save_IFS 7549 if test -z "$ac_cv_path_lt_DD"; then 7550 : 7551 fi 7552else 7553 ac_cv_path_lt_DD=$lt_DD 7554fi 7555 7556rm -f conftest.i conftest2.i conftest.out ;; 7557esac 7558fi 7559{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 7560printf "%s\n" "$ac_cv_path_lt_DD" >&6; } 7561 7562 7563{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5 7564printf %s "checking how to truncate binary pipes... " >&6; } 7565if test ${lt_cv_truncate_bin+y} 7566then : 7567 printf %s "(cached) " >&6 7568else case e in #( 7569 e) printf 0123456789abcdef0123456789abcdef >conftest.i 7570cat conftest.i conftest.i >conftest2.i 7571lt_cv_truncate_bin= 7572if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 7573 cmp -s conftest.i conftest.out \ 7574 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" 7575fi 7576rm -f conftest.i conftest2.i conftest.out 7577test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" ;; 7578esac 7579fi 7580{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 7581printf "%s\n" "$lt_cv_truncate_bin" >&6; } 7582 7583 7584 7585 7586 7587 7588 7589# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 7590func_cc_basename () 7591{ 7592 for cc_temp in $*""; do 7593 case $cc_temp in 7594 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 7595 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 7596 \-*) ;; 7597 *) break;; 7598 esac 7599 done 7600 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 7601} 7602 7603# Check whether --enable-libtool-lock was given. 7604if test ${enable_libtool_lock+y} 7605then : 7606 enableval=$enable_libtool_lock; 7607fi 7608 7609test no = "$enable_libtool_lock" || enable_libtool_lock=yes 7610 7611# Some flags need to be propagated to the compiler or linker for good 7612# libtool support. 7613case $host in 7614ia64-*-hpux*) 7615 # Find out what ABI is being produced by ac_compile, and set mode 7616 # options accordingly. 7617 echo 'int i;' > conftest.$ac_ext 7618 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7619 (eval $ac_compile) 2>&5 7620 ac_status=$? 7621 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7622 test $ac_status = 0; }; then 7623 case `$FILECMD conftest.$ac_objext` in 7624 *ELF-32*) 7625 HPUX_IA64_MODE=32 7626 ;; 7627 *ELF-64*) 7628 HPUX_IA64_MODE=64 7629 ;; 7630 esac 7631 fi 7632 rm -rf conftest* 7633 ;; 7634*-*-irix6*) 7635 # Find out what ABI is being produced by ac_compile, and set linker 7636 # options accordingly. 7637 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 7638 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7639 (eval $ac_compile) 2>&5 7640 ac_status=$? 7641 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7642 test $ac_status = 0; }; then 7643 if test yes = "$lt_cv_prog_gnu_ld"; then 7644 case `$FILECMD conftest.$ac_objext` in 7645 *32-bit*) 7646 LD="${LD-ld} -melf32bsmip" 7647 ;; 7648 *N32*) 7649 LD="${LD-ld} -melf32bmipn32" 7650 ;; 7651 *64-bit*) 7652 LD="${LD-ld} -melf64bmip" 7653 ;; 7654 esac 7655 else 7656 case `$FILECMD conftest.$ac_objext` in 7657 *32-bit*) 7658 LD="${LD-ld} -32" 7659 ;; 7660 *N32*) 7661 LD="${LD-ld} -n32" 7662 ;; 7663 *64-bit*) 7664 LD="${LD-ld} -64" 7665 ;; 7666 esac 7667 fi 7668 fi 7669 rm -rf conftest* 7670 ;; 7671 7672mips64*-*linux*) 7673 # Find out what ABI is being produced by ac_compile, and set linker 7674 # options accordingly. 7675 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 7676 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7677 (eval $ac_compile) 2>&5 7678 ac_status=$? 7679 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7680 test $ac_status = 0; }; then 7681 emul=elf 7682 case `$FILECMD conftest.$ac_objext` in 7683 *32-bit*) 7684 emul="${emul}32" 7685 ;; 7686 *64-bit*) 7687 emul="${emul}64" 7688 ;; 7689 esac 7690 case `$FILECMD conftest.$ac_objext` in 7691 *MSB*) 7692 emul="${emul}btsmip" 7693 ;; 7694 *LSB*) 7695 emul="${emul}ltsmip" 7696 ;; 7697 esac 7698 case `$FILECMD conftest.$ac_objext` in 7699 *N32*) 7700 emul="${emul}n32" 7701 ;; 7702 esac 7703 LD="${LD-ld} -m $emul" 7704 fi 7705 rm -rf conftest* 7706 ;; 7707 7708x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 7709s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 7710 # Find out what ABI is being produced by ac_compile, and set linker 7711 # options accordingly. Note that the listed cases only cover the 7712 # situations where additional linker options are needed (such as when 7713 # doing 32-bit compilation for a host where ld defaults to 64-bit, or 7714 # vice versa); the common cases where no linker options are needed do 7715 # not appear in the list. 7716 echo 'int i;' > conftest.$ac_ext 7717 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7718 (eval $ac_compile) 2>&5 7719 ac_status=$? 7720 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7721 test $ac_status = 0; }; then 7722 case `$FILECMD conftest.o` in 7723 *32-bit*) 7724 case $host in 7725 x86_64-*kfreebsd*-gnu) 7726 LD="${LD-ld} -m elf_i386_fbsd" 7727 ;; 7728 x86_64-*linux*) 7729 case `$FILECMD conftest.o` in 7730 *x86-64*) 7731 LD="${LD-ld} -m elf32_x86_64" 7732 ;; 7733 *) 7734 LD="${LD-ld} -m elf_i386" 7735 ;; 7736 esac 7737 ;; 7738 powerpc64le-*linux*) 7739 LD="${LD-ld} -m elf32lppclinux" 7740 ;; 7741 powerpc64-*linux*) 7742 LD="${LD-ld} -m elf32ppclinux" 7743 ;; 7744 s390x-*linux*) 7745 LD="${LD-ld} -m elf_s390" 7746 ;; 7747 sparc64-*linux*) 7748 LD="${LD-ld} -m elf32_sparc" 7749 ;; 7750 esac 7751 ;; 7752 *64-bit*) 7753 case $host in 7754 x86_64-*kfreebsd*-gnu) 7755 LD="${LD-ld} -m elf_x86_64_fbsd" 7756 ;; 7757 x86_64-*linux*) 7758 LD="${LD-ld} -m elf_x86_64" 7759 ;; 7760 powerpcle-*linux*) 7761 LD="${LD-ld} -m elf64lppc" 7762 ;; 7763 powerpc-*linux*) 7764 LD="${LD-ld} -m elf64ppc" 7765 ;; 7766 s390*-*linux*|s390*-*tpf*) 7767 LD="${LD-ld} -m elf64_s390" 7768 ;; 7769 sparc*-*linux*) 7770 LD="${LD-ld} -m elf64_sparc" 7771 ;; 7772 esac 7773 ;; 7774 esac 7775 fi 7776 rm -rf conftest* 7777 ;; 7778 7779*-*-sco3.2v5*) 7780 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 7781 SAVE_CFLAGS=$CFLAGS 7782 CFLAGS="$CFLAGS -belf" 7783 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 7784printf %s "checking whether the C compiler needs -belf... " >&6; } 7785if test ${lt_cv_cc_needs_belf+y} 7786then : 7787 printf %s "(cached) " >&6 7788else case e in #( 7789 e) ac_ext=c 7790ac_cpp='$CPP $CPPFLAGS' 7791ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7792ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7793ac_compiler_gnu=$ac_cv_c_compiler_gnu 7794 7795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7796/* end confdefs.h. */ 7797 7798int 7799main (void) 7800{ 7801 7802 ; 7803 return 0; 7804} 7805_ACEOF 7806if ac_fn_c_try_link "$LINENO" 7807then : 7808 lt_cv_cc_needs_belf=yes 7809else case e in #( 7810 e) lt_cv_cc_needs_belf=no ;; 7811esac 7812fi 7813rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7814 conftest$ac_exeext conftest.$ac_ext 7815 ac_ext=c 7816ac_cpp='$CPP $CPPFLAGS' 7817ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7818ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7819ac_compiler_gnu=$ac_cv_c_compiler_gnu 7820 ;; 7821esac 7822fi 7823{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 7824printf "%s\n" "$lt_cv_cc_needs_belf" >&6; } 7825 if test yes != "$lt_cv_cc_needs_belf"; then 7826 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 7827 CFLAGS=$SAVE_CFLAGS 7828 fi 7829 ;; 7830*-*solaris*) 7831 # Find out what ABI is being produced by ac_compile, and set linker 7832 # options accordingly. 7833 echo 'int i;' > conftest.$ac_ext 7834 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7835 (eval $ac_compile) 2>&5 7836 ac_status=$? 7837 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7838 test $ac_status = 0; }; then 7839 case `$FILECMD conftest.o` in 7840 *64-bit*) 7841 case $lt_cv_prog_gnu_ld in 7842 yes*) 7843 case $host in 7844 i?86-*-solaris*|x86_64-*-solaris*) 7845 LD="${LD-ld} -m elf_x86_64" 7846 ;; 7847 sparc*-*-solaris*) 7848 LD="${LD-ld} -m elf64_sparc" 7849 ;; 7850 esac 7851 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 7852 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 7853 LD=${LD-ld}_sol2 7854 fi 7855 ;; 7856 *) 7857 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 7858 LD="${LD-ld} -64" 7859 fi 7860 ;; 7861 esac 7862 ;; 7863 esac 7864 fi 7865 rm -rf conftest* 7866 ;; 7867esac 7868 7869need_locks=$enable_libtool_lock 7870 7871if test -n "$ac_tool_prefix"; then 7872 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 7873set dummy ${ac_tool_prefix}mt; ac_word=$2 7874{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7875printf %s "checking for $ac_word... " >&6; } 7876if test ${ac_cv_prog_MANIFEST_TOOL+y} 7877then : 7878 printf %s "(cached) " >&6 7879else case e in #( 7880 e) if test -n "$MANIFEST_TOOL"; then 7881 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 7882else 7883as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7884for as_dir in $PATH 7885do 7886 IFS=$as_save_IFS 7887 case $as_dir in #((( 7888 '') as_dir=./ ;; 7889 */) ;; 7890 *) as_dir=$as_dir/ ;; 7891 esac 7892 for ac_exec_ext in '' $ac_executable_extensions; do 7893 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7894 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 7895 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7896 break 2 7897 fi 7898done 7899 done 7900IFS=$as_save_IFS 7901 7902fi ;; 7903esac 7904fi 7905MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 7906if test -n "$MANIFEST_TOOL"; then 7907 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 7908printf "%s\n" "$MANIFEST_TOOL" >&6; } 7909else 7910 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7911printf "%s\n" "no" >&6; } 7912fi 7913 7914 7915fi 7916if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 7917 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 7918 # Extract the first word of "mt", so it can be a program name with args. 7919set dummy mt; ac_word=$2 7920{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7921printf %s "checking for $ac_word... " >&6; } 7922if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y} 7923then : 7924 printf %s "(cached) " >&6 7925else case e in #( 7926 e) if test -n "$ac_ct_MANIFEST_TOOL"; then 7927 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 7928else 7929as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7930for as_dir in $PATH 7931do 7932 IFS=$as_save_IFS 7933 case $as_dir in #((( 7934 '') as_dir=./ ;; 7935 */) ;; 7936 *) as_dir=$as_dir/ ;; 7937 esac 7938 for ac_exec_ext in '' $ac_executable_extensions; do 7939 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7940 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 7941 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7942 break 2 7943 fi 7944done 7945 done 7946IFS=$as_save_IFS 7947 7948fi ;; 7949esac 7950fi 7951ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 7952if test -n "$ac_ct_MANIFEST_TOOL"; then 7953 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 7954printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; } 7955else 7956 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7957printf "%s\n" "no" >&6; } 7958fi 7959 7960 if test "x$ac_ct_MANIFEST_TOOL" = x; then 7961 MANIFEST_TOOL=":" 7962 else 7963 case $cross_compiling:$ac_tool_warned in 7964yes:) 7965{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7966printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7967ac_tool_warned=yes ;; 7968esac 7969 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 7970 fi 7971else 7972 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 7973fi 7974 7975test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 7976{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 7977printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 7978if test ${lt_cv_path_mainfest_tool+y} 7979then : 7980 printf %s "(cached) " >&6 7981else case e in #( 7982 e) lt_cv_path_mainfest_tool=no 7983 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 7984 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 7985 cat conftest.err >&5 7986 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 7987 lt_cv_path_mainfest_tool=yes 7988 fi 7989 rm -f conftest* ;; 7990esac 7991fi 7992{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 7993printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; } 7994if test yes != "$lt_cv_path_mainfest_tool"; then 7995 MANIFEST_TOOL=: 7996fi 7997 7998 7999 8000 8001 8002 8003 case $host_os in 8004 rhapsody* | darwin*) 8005 if test -n "$ac_tool_prefix"; then 8006 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 8007set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 8008{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8009printf %s "checking for $ac_word... " >&6; } 8010if test ${ac_cv_prog_DSYMUTIL+y} 8011then : 8012 printf %s "(cached) " >&6 8013else case e in #( 8014 e) if test -n "$DSYMUTIL"; then 8015 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 8016else 8017as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8018for as_dir in $PATH 8019do 8020 IFS=$as_save_IFS 8021 case $as_dir in #((( 8022 '') as_dir=./ ;; 8023 */) ;; 8024 *) as_dir=$as_dir/ ;; 8025 esac 8026 for ac_exec_ext in '' $ac_executable_extensions; do 8027 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8028 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 8029 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8030 break 2 8031 fi 8032done 8033 done 8034IFS=$as_save_IFS 8035 8036fi ;; 8037esac 8038fi 8039DSYMUTIL=$ac_cv_prog_DSYMUTIL 8040if test -n "$DSYMUTIL"; then 8041 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 8042printf "%s\n" "$DSYMUTIL" >&6; } 8043else 8044 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8045printf "%s\n" "no" >&6; } 8046fi 8047 8048 8049fi 8050if test -z "$ac_cv_prog_DSYMUTIL"; then 8051 ac_ct_DSYMUTIL=$DSYMUTIL 8052 # Extract the first word of "dsymutil", so it can be a program name with args. 8053set dummy dsymutil; ac_word=$2 8054{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8055printf %s "checking for $ac_word... " >&6; } 8056if test ${ac_cv_prog_ac_ct_DSYMUTIL+y} 8057then : 8058 printf %s "(cached) " >&6 8059else case e in #( 8060 e) if test -n "$ac_ct_DSYMUTIL"; then 8061 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 8062else 8063as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8064for as_dir in $PATH 8065do 8066 IFS=$as_save_IFS 8067 case $as_dir in #((( 8068 '') as_dir=./ ;; 8069 */) ;; 8070 *) as_dir=$as_dir/ ;; 8071 esac 8072 for ac_exec_ext in '' $ac_executable_extensions; do 8073 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8074 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 8075 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8076 break 2 8077 fi 8078done 8079 done 8080IFS=$as_save_IFS 8081 8082fi ;; 8083esac 8084fi 8085ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 8086if test -n "$ac_ct_DSYMUTIL"; then 8087 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 8088printf "%s\n" "$ac_ct_DSYMUTIL" >&6; } 8089else 8090 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8091printf "%s\n" "no" >&6; } 8092fi 8093 8094 if test "x$ac_ct_DSYMUTIL" = x; then 8095 DSYMUTIL=":" 8096 else 8097 case $cross_compiling:$ac_tool_warned in 8098yes:) 8099{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8100printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8101ac_tool_warned=yes ;; 8102esac 8103 DSYMUTIL=$ac_ct_DSYMUTIL 8104 fi 8105else 8106 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 8107fi 8108 8109 if test -n "$ac_tool_prefix"; then 8110 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 8111set dummy ${ac_tool_prefix}nmedit; ac_word=$2 8112{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8113printf %s "checking for $ac_word... " >&6; } 8114if test ${ac_cv_prog_NMEDIT+y} 8115then : 8116 printf %s "(cached) " >&6 8117else case e in #( 8118 e) if test -n "$NMEDIT"; then 8119 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 8120else 8121as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8122for as_dir in $PATH 8123do 8124 IFS=$as_save_IFS 8125 case $as_dir in #((( 8126 '') as_dir=./ ;; 8127 */) ;; 8128 *) as_dir=$as_dir/ ;; 8129 esac 8130 for ac_exec_ext in '' $ac_executable_extensions; do 8131 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8132 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 8133 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8134 break 2 8135 fi 8136done 8137 done 8138IFS=$as_save_IFS 8139 8140fi ;; 8141esac 8142fi 8143NMEDIT=$ac_cv_prog_NMEDIT 8144if test -n "$NMEDIT"; then 8145 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 8146printf "%s\n" "$NMEDIT" >&6; } 8147else 8148 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8149printf "%s\n" "no" >&6; } 8150fi 8151 8152 8153fi 8154if test -z "$ac_cv_prog_NMEDIT"; then 8155 ac_ct_NMEDIT=$NMEDIT 8156 # Extract the first word of "nmedit", so it can be a program name with args. 8157set dummy nmedit; ac_word=$2 8158{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8159printf %s "checking for $ac_word... " >&6; } 8160if test ${ac_cv_prog_ac_ct_NMEDIT+y} 8161then : 8162 printf %s "(cached) " >&6 8163else case e in #( 8164 e) if test -n "$ac_ct_NMEDIT"; then 8165 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 8166else 8167as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8168for as_dir in $PATH 8169do 8170 IFS=$as_save_IFS 8171 case $as_dir in #((( 8172 '') as_dir=./ ;; 8173 */) ;; 8174 *) as_dir=$as_dir/ ;; 8175 esac 8176 for ac_exec_ext in '' $ac_executable_extensions; do 8177 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8178 ac_cv_prog_ac_ct_NMEDIT="nmedit" 8179 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8180 break 2 8181 fi 8182done 8183 done 8184IFS=$as_save_IFS 8185 8186fi ;; 8187esac 8188fi 8189ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 8190if test -n "$ac_ct_NMEDIT"; then 8191 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 8192printf "%s\n" "$ac_ct_NMEDIT" >&6; } 8193else 8194 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8195printf "%s\n" "no" >&6; } 8196fi 8197 8198 if test "x$ac_ct_NMEDIT" = x; then 8199 NMEDIT=":" 8200 else 8201 case $cross_compiling:$ac_tool_warned in 8202yes:) 8203{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8204printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8205ac_tool_warned=yes ;; 8206esac 8207 NMEDIT=$ac_ct_NMEDIT 8208 fi 8209else 8210 NMEDIT="$ac_cv_prog_NMEDIT" 8211fi 8212 8213 if test -n "$ac_tool_prefix"; then 8214 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 8215set dummy ${ac_tool_prefix}lipo; ac_word=$2 8216{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8217printf %s "checking for $ac_word... " >&6; } 8218if test ${ac_cv_prog_LIPO+y} 8219then : 8220 printf %s "(cached) " >&6 8221else case e in #( 8222 e) if test -n "$LIPO"; then 8223 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 8224else 8225as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8226for as_dir in $PATH 8227do 8228 IFS=$as_save_IFS 8229 case $as_dir in #((( 8230 '') as_dir=./ ;; 8231 */) ;; 8232 *) as_dir=$as_dir/ ;; 8233 esac 8234 for ac_exec_ext in '' $ac_executable_extensions; do 8235 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8236 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 8237 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8238 break 2 8239 fi 8240done 8241 done 8242IFS=$as_save_IFS 8243 8244fi ;; 8245esac 8246fi 8247LIPO=$ac_cv_prog_LIPO 8248if test -n "$LIPO"; then 8249 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 8250printf "%s\n" "$LIPO" >&6; } 8251else 8252 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8253printf "%s\n" "no" >&6; } 8254fi 8255 8256 8257fi 8258if test -z "$ac_cv_prog_LIPO"; then 8259 ac_ct_LIPO=$LIPO 8260 # Extract the first word of "lipo", so it can be a program name with args. 8261set dummy lipo; ac_word=$2 8262{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8263printf %s "checking for $ac_word... " >&6; } 8264if test ${ac_cv_prog_ac_ct_LIPO+y} 8265then : 8266 printf %s "(cached) " >&6 8267else case e in #( 8268 e) if test -n "$ac_ct_LIPO"; then 8269 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 8270else 8271as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8272for as_dir in $PATH 8273do 8274 IFS=$as_save_IFS 8275 case $as_dir in #((( 8276 '') as_dir=./ ;; 8277 */) ;; 8278 *) as_dir=$as_dir/ ;; 8279 esac 8280 for ac_exec_ext in '' $ac_executable_extensions; do 8281 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8282 ac_cv_prog_ac_ct_LIPO="lipo" 8283 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8284 break 2 8285 fi 8286done 8287 done 8288IFS=$as_save_IFS 8289 8290fi ;; 8291esac 8292fi 8293ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 8294if test -n "$ac_ct_LIPO"; then 8295 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 8296printf "%s\n" "$ac_ct_LIPO" >&6; } 8297else 8298 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8299printf "%s\n" "no" >&6; } 8300fi 8301 8302 if test "x$ac_ct_LIPO" = x; then 8303 LIPO=":" 8304 else 8305 case $cross_compiling:$ac_tool_warned in 8306yes:) 8307{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8308printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8309ac_tool_warned=yes ;; 8310esac 8311 LIPO=$ac_ct_LIPO 8312 fi 8313else 8314 LIPO="$ac_cv_prog_LIPO" 8315fi 8316 8317 if test -n "$ac_tool_prefix"; then 8318 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 8319set dummy ${ac_tool_prefix}otool; ac_word=$2 8320{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8321printf %s "checking for $ac_word... " >&6; } 8322if test ${ac_cv_prog_OTOOL+y} 8323then : 8324 printf %s "(cached) " >&6 8325else case e in #( 8326 e) if test -n "$OTOOL"; then 8327 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 8328else 8329as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8330for as_dir in $PATH 8331do 8332 IFS=$as_save_IFS 8333 case $as_dir in #((( 8334 '') as_dir=./ ;; 8335 */) ;; 8336 *) as_dir=$as_dir/ ;; 8337 esac 8338 for ac_exec_ext in '' $ac_executable_extensions; do 8339 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8340 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 8341 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8342 break 2 8343 fi 8344done 8345 done 8346IFS=$as_save_IFS 8347 8348fi ;; 8349esac 8350fi 8351OTOOL=$ac_cv_prog_OTOOL 8352if test -n "$OTOOL"; then 8353 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 8354printf "%s\n" "$OTOOL" >&6; } 8355else 8356 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8357printf "%s\n" "no" >&6; } 8358fi 8359 8360 8361fi 8362if test -z "$ac_cv_prog_OTOOL"; then 8363 ac_ct_OTOOL=$OTOOL 8364 # Extract the first word of "otool", so it can be a program name with args. 8365set dummy otool; ac_word=$2 8366{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8367printf %s "checking for $ac_word... " >&6; } 8368if test ${ac_cv_prog_ac_ct_OTOOL+y} 8369then : 8370 printf %s "(cached) " >&6 8371else case e in #( 8372 e) if test -n "$ac_ct_OTOOL"; then 8373 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 8374else 8375as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8376for as_dir in $PATH 8377do 8378 IFS=$as_save_IFS 8379 case $as_dir in #((( 8380 '') as_dir=./ ;; 8381 */) ;; 8382 *) as_dir=$as_dir/ ;; 8383 esac 8384 for ac_exec_ext in '' $ac_executable_extensions; do 8385 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8386 ac_cv_prog_ac_ct_OTOOL="otool" 8387 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8388 break 2 8389 fi 8390done 8391 done 8392IFS=$as_save_IFS 8393 8394fi ;; 8395esac 8396fi 8397ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 8398if test -n "$ac_ct_OTOOL"; then 8399 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 8400printf "%s\n" "$ac_ct_OTOOL" >&6; } 8401else 8402 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8403printf "%s\n" "no" >&6; } 8404fi 8405 8406 if test "x$ac_ct_OTOOL" = x; then 8407 OTOOL=":" 8408 else 8409 case $cross_compiling:$ac_tool_warned in 8410yes:) 8411{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8412printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8413ac_tool_warned=yes ;; 8414esac 8415 OTOOL=$ac_ct_OTOOL 8416 fi 8417else 8418 OTOOL="$ac_cv_prog_OTOOL" 8419fi 8420 8421 if test -n "$ac_tool_prefix"; then 8422 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 8423set dummy ${ac_tool_prefix}otool64; ac_word=$2 8424{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8425printf %s "checking for $ac_word... " >&6; } 8426if test ${ac_cv_prog_OTOOL64+y} 8427then : 8428 printf %s "(cached) " >&6 8429else case e in #( 8430 e) if test -n "$OTOOL64"; then 8431 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 8432else 8433as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8434for as_dir in $PATH 8435do 8436 IFS=$as_save_IFS 8437 case $as_dir in #((( 8438 '') as_dir=./ ;; 8439 */) ;; 8440 *) as_dir=$as_dir/ ;; 8441 esac 8442 for ac_exec_ext in '' $ac_executable_extensions; do 8443 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8444 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 8445 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8446 break 2 8447 fi 8448done 8449 done 8450IFS=$as_save_IFS 8451 8452fi ;; 8453esac 8454fi 8455OTOOL64=$ac_cv_prog_OTOOL64 8456if test -n "$OTOOL64"; then 8457 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 8458printf "%s\n" "$OTOOL64" >&6; } 8459else 8460 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8461printf "%s\n" "no" >&6; } 8462fi 8463 8464 8465fi 8466if test -z "$ac_cv_prog_OTOOL64"; then 8467 ac_ct_OTOOL64=$OTOOL64 8468 # Extract the first word of "otool64", so it can be a program name with args. 8469set dummy otool64; ac_word=$2 8470{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8471printf %s "checking for $ac_word... " >&6; } 8472if test ${ac_cv_prog_ac_ct_OTOOL64+y} 8473then : 8474 printf %s "(cached) " >&6 8475else case e in #( 8476 e) if test -n "$ac_ct_OTOOL64"; then 8477 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 8478else 8479as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8480for as_dir in $PATH 8481do 8482 IFS=$as_save_IFS 8483 case $as_dir in #((( 8484 '') as_dir=./ ;; 8485 */) ;; 8486 *) as_dir=$as_dir/ ;; 8487 esac 8488 for ac_exec_ext in '' $ac_executable_extensions; do 8489 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8490 ac_cv_prog_ac_ct_OTOOL64="otool64" 8491 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8492 break 2 8493 fi 8494done 8495 done 8496IFS=$as_save_IFS 8497 8498fi ;; 8499esac 8500fi 8501ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 8502if test -n "$ac_ct_OTOOL64"; then 8503 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 8504printf "%s\n" "$ac_ct_OTOOL64" >&6; } 8505else 8506 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8507printf "%s\n" "no" >&6; } 8508fi 8509 8510 if test "x$ac_ct_OTOOL64" = x; then 8511 OTOOL64=":" 8512 else 8513 case $cross_compiling:$ac_tool_warned in 8514yes:) 8515{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8516printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8517ac_tool_warned=yes ;; 8518esac 8519 OTOOL64=$ac_ct_OTOOL64 8520 fi 8521else 8522 OTOOL64="$ac_cv_prog_OTOOL64" 8523fi 8524 8525 8526 8527 8528 8529 8530 8531 8532 8533 8534 8535 8536 8537 8538 8539 8540 8541 8542 8543 8544 8545 8546 8547 8548 8549 8550 8551 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 8552printf %s "checking for -single_module linker flag... " >&6; } 8553if test ${lt_cv_apple_cc_single_mod+y} 8554then : 8555 printf %s "(cached) " >&6 8556else case e in #( 8557 e) lt_cv_apple_cc_single_mod=no 8558 if test -z "$LT_MULTI_MODULE"; then 8559 # By default we will add the -single_module flag. You can override 8560 # by either setting the environment variable LT_MULTI_MODULE 8561 # non-empty at configure time, or by adding -multi_module to the 8562 # link flags. 8563 rm -rf libconftest.dylib* 8564 echo "int foo(void){return 1;}" > conftest.c 8565 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 8566-dynamiclib -Wl,-single_module conftest.c" >&5 8567 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 8568 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 8569 _lt_result=$? 8570 # If there is a non-empty error log, and "single_module" 8571 # appears in it, assume the flag caused a linker warning 8572 if test -s conftest.err && $GREP single_module conftest.err; then 8573 cat conftest.err >&5 8574 # Otherwise, if the output was created with a 0 exit code from 8575 # the compiler, it worked. 8576 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then 8577 lt_cv_apple_cc_single_mod=yes 8578 else 8579 cat conftest.err >&5 8580 fi 8581 rm -rf libconftest.dylib* 8582 rm -f conftest.* 8583 fi ;; 8584esac 8585fi 8586{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 8587printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; } 8588 8589 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 8590printf %s "checking for -exported_symbols_list linker flag... " >&6; } 8591if test ${lt_cv_ld_exported_symbols_list+y} 8592then : 8593 printf %s "(cached) " >&6 8594else case e in #( 8595 e) lt_cv_ld_exported_symbols_list=no 8596 save_LDFLAGS=$LDFLAGS 8597 echo "_main" > conftest.sym 8598 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 8599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8600/* end confdefs.h. */ 8601 8602int 8603main (void) 8604{ 8605 8606 ; 8607 return 0; 8608} 8609_ACEOF 8610if ac_fn_c_try_link "$LINENO" 8611then : 8612 lt_cv_ld_exported_symbols_list=yes 8613else case e in #( 8614 e) lt_cv_ld_exported_symbols_list=no ;; 8615esac 8616fi 8617rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8618 conftest$ac_exeext conftest.$ac_ext 8619 LDFLAGS=$save_LDFLAGS 8620 ;; 8621esac 8622fi 8623{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 8624printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; } 8625 8626 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 8627printf %s "checking for -force_load linker flag... " >&6; } 8628if test ${lt_cv_ld_force_load+y} 8629then : 8630 printf %s "(cached) " >&6 8631else case e in #( 8632 e) lt_cv_ld_force_load=no 8633 cat > conftest.c << _LT_EOF 8634int forced_loaded() { return 2;} 8635_LT_EOF 8636 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 8637 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 8638 echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5 8639 $AR $AR_FLAGS libconftest.a conftest.o 2>&5 8640 echo "$RANLIB libconftest.a" >&5 8641 $RANLIB libconftest.a 2>&5 8642 cat > conftest.c << _LT_EOF 8643int main() { return 0;} 8644_LT_EOF 8645 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 8646 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 8647 _lt_result=$? 8648 if test -s conftest.err && $GREP force_load conftest.err; then 8649 cat conftest.err >&5 8650 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then 8651 lt_cv_ld_force_load=yes 8652 else 8653 cat conftest.err >&5 8654 fi 8655 rm -f conftest.err libconftest.a conftest conftest.c 8656 rm -rf conftest.dSYM 8657 ;; 8658esac 8659fi 8660{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 8661printf "%s\n" "$lt_cv_ld_force_load" >&6; } 8662 case $host_os in 8663 rhapsody* | darwin1.[012]) 8664 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; 8665 darwin1.*) 8666 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 8667 darwin*) 8668 case $MACOSX_DEPLOYMENT_TARGET,$host in 8669 10.[012],*|,*powerpc*-darwin[5-8]*) 8670 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 8671 *) 8672 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 8673 esac 8674 ;; 8675 esac 8676 if test yes = "$lt_cv_apple_cc_single_mod"; then 8677 _lt_dar_single_mod='$single_module' 8678 fi 8679 if test yes = "$lt_cv_ld_exported_symbols_list"; then 8680 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' 8681 else 8682 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' 8683 fi 8684 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then 8685 _lt_dsymutil='~$DSYMUTIL $lib || :' 8686 else 8687 _lt_dsymutil= 8688 fi 8689 ;; 8690 esac 8691 8692# func_munge_path_list VARIABLE PATH 8693# ----------------------------------- 8694# VARIABLE is name of variable containing _space_ separated list of 8695# directories to be munged by the contents of PATH, which is string 8696# having a format: 8697# "DIR[:DIR]:" 8698# string "DIR[ DIR]" will be prepended to VARIABLE 8699# ":DIR[:DIR]" 8700# string "DIR[ DIR]" will be appended to VARIABLE 8701# "DIRP[:DIRP]::[DIRA:]DIRA" 8702# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 8703# "DIRA[ DIRA]" will be appended to VARIABLE 8704# "DIR[:DIR]" 8705# VARIABLE will be replaced by "DIR[ DIR]" 8706func_munge_path_list () 8707{ 8708 case x$2 in 8709 x) 8710 ;; 8711 *:) 8712 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 8713 ;; 8714 x:*) 8715 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 8716 ;; 8717 *::*) 8718 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 8719 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 8720 ;; 8721 *) 8722 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 8723 ;; 8724 esac 8725} 8726 8727ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 8728" 8729if test "x$ac_cv_header_dlfcn_h" = xyes 8730then : 8731 printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h 8732 8733fi 8734 8735 8736 8737 8738 8739# Set options 8740 8741 8742 8743 enable_dlopen=no 8744 8745 8746 enable_win32_dll=no 8747 8748 8749 # Check whether --enable-shared was given. 8750if test ${enable_shared+y} 8751then : 8752 enableval=$enable_shared; p=${PACKAGE-default} 8753 case $enableval in 8754 yes) enable_shared=yes ;; 8755 no) enable_shared=no ;; 8756 *) 8757 enable_shared=no 8758 # Look at the argument we got. We use all the common list separators. 8759 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8760 for pkg in $enableval; do 8761 IFS=$lt_save_ifs 8762 if test "X$pkg" = "X$p"; then 8763 enable_shared=yes 8764 fi 8765 done 8766 IFS=$lt_save_ifs 8767 ;; 8768 esac 8769else case e in #( 8770 e) enable_shared=yes ;; 8771esac 8772fi 8773 8774 8775 8776 8777 8778 8779 8780 8781 8782 # Check whether --enable-static was given. 8783if test ${enable_static+y} 8784then : 8785 enableval=$enable_static; p=${PACKAGE-default} 8786 case $enableval in 8787 yes) enable_static=yes ;; 8788 no) enable_static=no ;; 8789 *) 8790 enable_static=no 8791 # Look at the argument we got. We use all the common list separators. 8792 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8793 for pkg in $enableval; do 8794 IFS=$lt_save_ifs 8795 if test "X$pkg" = "X$p"; then 8796 enable_static=yes 8797 fi 8798 done 8799 IFS=$lt_save_ifs 8800 ;; 8801 esac 8802else case e in #( 8803 e) enable_static=yes ;; 8804esac 8805fi 8806 8807 8808 8809 8810 8811 8812 8813 8814 8815 8816# Check whether --with-pic was given. 8817if test ${with_pic+y} 8818then : 8819 withval=$with_pic; lt_p=${PACKAGE-default} 8820 case $withval in 8821 yes|no) pic_mode=$withval ;; 8822 *) 8823 pic_mode=default 8824 # Look at the argument we got. We use all the common list separators. 8825 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8826 for lt_pkg in $withval; do 8827 IFS=$lt_save_ifs 8828 if test "X$lt_pkg" = "X$lt_p"; then 8829 pic_mode=yes 8830 fi 8831 done 8832 IFS=$lt_save_ifs 8833 ;; 8834 esac 8835else case e in #( 8836 e) pic_mode=default ;; 8837esac 8838fi 8839 8840 8841 8842 8843 8844 8845 8846 8847 # Check whether --enable-fast-install was given. 8848if test ${enable_fast_install+y} 8849then : 8850 enableval=$enable_fast_install; p=${PACKAGE-default} 8851 case $enableval in 8852 yes) enable_fast_install=yes ;; 8853 no) enable_fast_install=no ;; 8854 *) 8855 enable_fast_install=no 8856 # Look at the argument we got. We use all the common list separators. 8857 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8858 for pkg in $enableval; do 8859 IFS=$lt_save_ifs 8860 if test "X$pkg" = "X$p"; then 8861 enable_fast_install=yes 8862 fi 8863 done 8864 IFS=$lt_save_ifs 8865 ;; 8866 esac 8867else case e in #( 8868 e) enable_fast_install=yes ;; 8869esac 8870fi 8871 8872 8873 8874 8875 8876 8877 8878 8879 shared_archive_member_spec= 8880case $host,$enable_shared in 8881power*-*-aix[5-9]*,yes) 8882 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 8883printf %s "checking which variant of shared library versioning to provide... " >&6; } 8884 8885# Check whether --with-aix-soname was given. 8886if test ${with_aix_soname+y} 8887then : 8888 withval=$with_aix_soname; case $withval in 8889 aix|svr4|both) 8890 ;; 8891 *) 8892 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5 8893 ;; 8894 esac 8895 lt_cv_with_aix_soname=$with_aix_soname 8896else case e in #( 8897 e) if test ${lt_cv_with_aix_soname+y} 8898then : 8899 printf %s "(cached) " >&6 8900else case e in #( 8901 e) lt_cv_with_aix_soname=aix ;; 8902esac 8903fi 8904 8905 with_aix_soname=$lt_cv_with_aix_soname ;; 8906esac 8907fi 8908 8909 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 8910printf "%s\n" "$with_aix_soname" >&6; } 8911 if test aix != "$with_aix_soname"; then 8912 # For the AIX way of multilib, we name the shared archive member 8913 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', 8914 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. 8915 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, 8916 # the AIX toolchain works better with OBJECT_MODE set (default 32). 8917 if test 64 = "${OBJECT_MODE-32}"; then 8918 shared_archive_member_spec=shr_64 8919 else 8920 shared_archive_member_spec=shr 8921 fi 8922 fi 8923 ;; 8924*) 8925 with_aix_soname=aix 8926 ;; 8927esac 8928 8929 8930 8931 8932 8933 8934 8935 8936 8937 8938# This can be used to rebuild libtool when needed 8939LIBTOOL_DEPS=$ltmain 8940 8941# Always use our own libtool. 8942LIBTOOL='$(SHELL) $(top_builddir)/libtool' 8943 8944 8945 8946 8947 8948 8949 8950 8951 8952 8953 8954 8955 8956 8957 8958 8959 8960 8961 8962 8963 8964 8965 8966 8967 8968 8969 8970 8971 8972 8973test -z "$LN_S" && LN_S="ln -s" 8974 8975 8976 8977 8978 8979 8980 8981 8982 8983 8984 8985 8986 8987 8988if test -n "${ZSH_VERSION+set}"; then 8989 setopt NO_GLOB_SUBST 8990fi 8991 8992{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 8993printf %s "checking for objdir... " >&6; } 8994if test ${lt_cv_objdir+y} 8995then : 8996 printf %s "(cached) " >&6 8997else case e in #( 8998 e) rm -f .libs 2>/dev/null 8999mkdir .libs 2>/dev/null 9000if test -d .libs; then 9001 lt_cv_objdir=.libs 9002else 9003 # MS-DOS does not allow filenames that begin with a dot. 9004 lt_cv_objdir=_libs 9005fi 9006rmdir .libs 2>/dev/null ;; 9007esac 9008fi 9009{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 9010printf "%s\n" "$lt_cv_objdir" >&6; } 9011objdir=$lt_cv_objdir 9012 9013 9014 9015 9016 9017printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h 9018 9019 9020 9021 9022case $host_os in 9023aix3*) 9024 # AIX sometimes has problems with the GCC collect2 program. For some 9025 # reason, if we set the COLLECT_NAMES environment variable, the problems 9026 # vanish in a puff of smoke. 9027 if test set != "${COLLECT_NAMES+set}"; then 9028 COLLECT_NAMES= 9029 export COLLECT_NAMES 9030 fi 9031 ;; 9032esac 9033 9034# Global variables: 9035ofile=libtool 9036can_build_shared=yes 9037 9038# All known linkers require a '.a' archive for static linking (except MSVC and 9039# ICC, which need '.lib'). 9040libext=a 9041 9042with_gnu_ld=$lt_cv_prog_gnu_ld 9043 9044old_CC=$CC 9045old_CFLAGS=$CFLAGS 9046 9047# Set sane defaults for various variables 9048test -z "$CC" && CC=cc 9049test -z "$LTCC" && LTCC=$CC 9050test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 9051test -z "$LD" && LD=ld 9052test -z "$ac_objext" && ac_objext=o 9053 9054func_cc_basename $compiler 9055cc_basename=$func_cc_basename_result 9056 9057 9058# Only perform the check for file, if the check method requires it 9059test -z "$MAGIC_CMD" && MAGIC_CMD=file 9060case $deplibs_check_method in 9061file_magic*) 9062 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 9063 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 9064printf %s "checking for ${ac_tool_prefix}file... " >&6; } 9065if test ${lt_cv_path_MAGIC_CMD+y} 9066then : 9067 printf %s "(cached) " >&6 9068else case e in #( 9069 e) case $MAGIC_CMD in 9070[\\/*] | ?:[\\/]*) 9071 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 9072 ;; 9073*) 9074 lt_save_MAGIC_CMD=$MAGIC_CMD 9075 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 9076 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 9077 for ac_dir in $ac_dummy; do 9078 IFS=$lt_save_ifs 9079 test -z "$ac_dir" && ac_dir=. 9080 if test -f "$ac_dir/${ac_tool_prefix}file"; then 9081 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file" 9082 if test -n "$file_magic_test_file"; then 9083 case $deplibs_check_method in 9084 "file_magic "*) 9085 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 9086 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 9087 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 9088 $EGREP "$file_magic_regex" > /dev/null; then 9089 : 9090 else 9091 cat <<_LT_EOF 1>&2 9092 9093*** Warning: the command libtool uses to detect shared libraries, 9094*** $file_magic_cmd, produces output that libtool cannot recognize. 9095*** The result is that libtool may fail to recognize shared libraries 9096*** as such. This will affect the creation of libtool libraries that 9097*** depend on shared libraries, but programs linked with such libtool 9098*** libraries will work regardless of this problem. Nevertheless, you 9099*** may want to report the problem to your system manager and/or to 9100*** bug-libtool@gnu.org 9101 9102_LT_EOF 9103 fi ;; 9104 esac 9105 fi 9106 break 9107 fi 9108 done 9109 IFS=$lt_save_ifs 9110 MAGIC_CMD=$lt_save_MAGIC_CMD 9111 ;; 9112esac ;; 9113esac 9114fi 9115 9116MAGIC_CMD=$lt_cv_path_MAGIC_CMD 9117if test -n "$MAGIC_CMD"; then 9118 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 9119printf "%s\n" "$MAGIC_CMD" >&6; } 9120else 9121 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 9122printf "%s\n" "no" >&6; } 9123fi 9124 9125 9126 9127 9128 9129if test -z "$lt_cv_path_MAGIC_CMD"; then 9130 if test -n "$ac_tool_prefix"; then 9131 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5 9132printf %s "checking for file... " >&6; } 9133if test ${lt_cv_path_MAGIC_CMD+y} 9134then : 9135 printf %s "(cached) " >&6 9136else case e in #( 9137 e) case $MAGIC_CMD in 9138[\\/*] | ?:[\\/]*) 9139 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 9140 ;; 9141*) 9142 lt_save_MAGIC_CMD=$MAGIC_CMD 9143 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 9144 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 9145 for ac_dir in $ac_dummy; do 9146 IFS=$lt_save_ifs 9147 test -z "$ac_dir" && ac_dir=. 9148 if test -f "$ac_dir/file"; then 9149 lt_cv_path_MAGIC_CMD=$ac_dir/"file" 9150 if test -n "$file_magic_test_file"; then 9151 case $deplibs_check_method in 9152 "file_magic "*) 9153 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 9154 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 9155 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 9156 $EGREP "$file_magic_regex" > /dev/null; then 9157 : 9158 else 9159 cat <<_LT_EOF 1>&2 9160 9161*** Warning: the command libtool uses to detect shared libraries, 9162*** $file_magic_cmd, produces output that libtool cannot recognize. 9163*** The result is that libtool may fail to recognize shared libraries 9164*** as such. This will affect the creation of libtool libraries that 9165*** depend on shared libraries, but programs linked with such libtool 9166*** libraries will work regardless of this problem. Nevertheless, you 9167*** may want to report the problem to your system manager and/or to 9168*** bug-libtool@gnu.org 9169 9170_LT_EOF 9171 fi ;; 9172 esac 9173 fi 9174 break 9175 fi 9176 done 9177 IFS=$lt_save_ifs 9178 MAGIC_CMD=$lt_save_MAGIC_CMD 9179 ;; 9180esac ;; 9181esac 9182fi 9183 9184MAGIC_CMD=$lt_cv_path_MAGIC_CMD 9185if test -n "$MAGIC_CMD"; then 9186 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 9187printf "%s\n" "$MAGIC_CMD" >&6; } 9188else 9189 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 9190printf "%s\n" "no" >&6; } 9191fi 9192 9193 9194 else 9195 MAGIC_CMD=: 9196 fi 9197fi 9198 9199 fi 9200 ;; 9201esac 9202 9203# Use C for the default configuration in the libtool script 9204 9205lt_save_CC=$CC 9206ac_ext=c 9207ac_cpp='$CPP $CPPFLAGS' 9208ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9209ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9210ac_compiler_gnu=$ac_cv_c_compiler_gnu 9211 9212 9213# Source file extension for C test sources. 9214ac_ext=c 9215 9216# Object file extension for compiled C test sources. 9217objext=o 9218objext=$objext 9219 9220# Code to be used in simple compile tests 9221lt_simple_compile_test_code="int some_variable = 0;" 9222 9223# Code to be used in simple link tests 9224lt_simple_link_test_code='int main(){return(0);}' 9225 9226 9227 9228 9229 9230 9231 9232# If no C compiler was specified, use CC. 9233LTCC=${LTCC-"$CC"} 9234 9235# If no C compiler flags were specified, use CFLAGS. 9236LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 9237 9238# Allow CC to be a program name with arguments. 9239compiler=$CC 9240 9241# Save the default compiler, since it gets overwritten when the other 9242# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 9243compiler_DEFAULT=$CC 9244 9245# save warnings/boilerplate of simple test code 9246ac_outfile=conftest.$ac_objext 9247echo "$lt_simple_compile_test_code" >conftest.$ac_ext 9248eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 9249_lt_compiler_boilerplate=`cat conftest.err` 9250$RM conftest* 9251 9252ac_outfile=conftest.$ac_objext 9253echo "$lt_simple_link_test_code" >conftest.$ac_ext 9254eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 9255_lt_linker_boilerplate=`cat conftest.err` 9256$RM -r conftest* 9257 9258 9259## CAVEAT EMPTOR: 9260## There is no encapsulation within the following macros, do not change 9261## the running order or otherwise move them around unless you know exactly 9262## what you are doing... 9263if test -n "$compiler"; then 9264 9265lt_prog_compiler_no_builtin_flag= 9266 9267if test yes = "$GCC"; then 9268 case $cc_basename in 9269 nvcc*) 9270 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 9271 *) 9272 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 9273 esac 9274 9275 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 9276printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 9277if test ${lt_cv_prog_compiler_rtti_exceptions+y} 9278then : 9279 printf %s "(cached) " >&6 9280else case e in #( 9281 e) lt_cv_prog_compiler_rtti_exceptions=no 9282 ac_outfile=conftest.$ac_objext 9283 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9284 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment 9285 # Insert the option either (1) after the last *FLAGS variable, or 9286 # (2) before a word containing "conftest.", or (3) at the end. 9287 # Note that $ac_compile itself does not contain backslashes and begins 9288 # with a dollar sign (not a hyphen), so the echo should work correctly. 9289 # The option is referenced via a variable to avoid confusing sed. 9290 lt_compile=`echo "$ac_compile" | $SED \ 9291 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9292 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9293 -e 's:$: $lt_compiler_flag:'` 9294 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9295 (eval "$lt_compile" 2>conftest.err) 9296 ac_status=$? 9297 cat conftest.err >&5 9298 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9299 if (exit $ac_status) && test -s "$ac_outfile"; then 9300 # The compiler can only warn and ignore the option if not recognized 9301 # So say no if there are warnings other than the usual output. 9302 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 9303 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9304 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 9305 lt_cv_prog_compiler_rtti_exceptions=yes 9306 fi 9307 fi 9308 $RM conftest* 9309 ;; 9310esac 9311fi 9312{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 9313printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 9314 9315if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then 9316 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 9317else 9318 : 9319fi 9320 9321fi 9322 9323 9324 9325 9326 9327 9328 lt_prog_compiler_wl= 9329lt_prog_compiler_pic= 9330lt_prog_compiler_static= 9331 9332 9333 if test yes = "$GCC"; then 9334 lt_prog_compiler_wl='-Wl,' 9335 lt_prog_compiler_static='-static' 9336 9337 case $host_os in 9338 aix*) 9339 # All AIX code is PIC. 9340 if test ia64 = "$host_cpu"; then 9341 # AIX 5 now supports IA64 processor 9342 lt_prog_compiler_static='-Bstatic' 9343 fi 9344 lt_prog_compiler_pic='-fPIC' 9345 ;; 9346 9347 amigaos*) 9348 case $host_cpu in 9349 powerpc) 9350 # see comment about AmigaOS4 .so support 9351 lt_prog_compiler_pic='-fPIC' 9352 ;; 9353 m68k) 9354 # FIXME: we need at least 68020 code to build shared libraries, but 9355 # adding the '-m68020' flag to GCC prevents building anything better, 9356 # like '-m68040'. 9357 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 9358 ;; 9359 esac 9360 ;; 9361 9362 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 9363 # PIC is the default for these OSes. 9364 ;; 9365 9366 mingw* | cygwin* | pw32* | os2* | cegcc*) 9367 # This hack is so that the source file can tell whether it is being 9368 # built for inclusion in a dll (and should export symbols for example). 9369 # Although the cygwin gcc ignores -fPIC, still need this for old-style 9370 # (--disable-auto-import) libraries 9371 lt_prog_compiler_pic='-DDLL_EXPORT' 9372 case $host_os in 9373 os2*) 9374 lt_prog_compiler_static='$wl-static' 9375 ;; 9376 esac 9377 ;; 9378 9379 darwin* | rhapsody*) 9380 # PIC is the default on this platform 9381 # Common symbols not allowed in MH_DYLIB files 9382 lt_prog_compiler_pic='-fno-common' 9383 ;; 9384 9385 haiku*) 9386 # PIC is the default for Haiku. 9387 # The "-static" flag exists, but is broken. 9388 lt_prog_compiler_static= 9389 ;; 9390 9391 hpux*) 9392 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 9393 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 9394 # sets the default TLS model and affects inlining. 9395 case $host_cpu in 9396 hppa*64*) 9397 # +Z the default 9398 ;; 9399 *) 9400 lt_prog_compiler_pic='-fPIC' 9401 ;; 9402 esac 9403 ;; 9404 9405 interix[3-9]*) 9406 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 9407 # Instead, we relocate shared libraries at runtime. 9408 ;; 9409 9410 msdosdjgpp*) 9411 # Just because we use GCC doesn't mean we suddenly get shared libraries 9412 # on systems that don't support them. 9413 lt_prog_compiler_can_build_shared=no 9414 enable_shared=no 9415 ;; 9416 9417 *nto* | *qnx*) 9418 # QNX uses GNU C++, but need to define -shared option too, otherwise 9419 # it will coredump. 9420 lt_prog_compiler_pic='-fPIC -shared' 9421 ;; 9422 9423 sysv4*MP*) 9424 if test -d /usr/nec; then 9425 lt_prog_compiler_pic=-Kconform_pic 9426 fi 9427 ;; 9428 9429 *) 9430 lt_prog_compiler_pic='-fPIC' 9431 ;; 9432 esac 9433 9434 case $cc_basename in 9435 nvcc*) # Cuda Compiler Driver 2.2 9436 lt_prog_compiler_wl='-Xlinker ' 9437 if test -n "$lt_prog_compiler_pic"; then 9438 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 9439 fi 9440 ;; 9441 esac 9442 else 9443 # PORTME Check for flag to pass linker flags through the system compiler. 9444 case $host_os in 9445 aix*) 9446 lt_prog_compiler_wl='-Wl,' 9447 if test ia64 = "$host_cpu"; then 9448 # AIX 5 now supports IA64 processor 9449 lt_prog_compiler_static='-Bstatic' 9450 else 9451 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 9452 fi 9453 ;; 9454 9455 darwin* | rhapsody*) 9456 # PIC is the default on this platform 9457 # Common symbols not allowed in MH_DYLIB files 9458 lt_prog_compiler_pic='-fno-common' 9459 case $cc_basename in 9460 nagfor*) 9461 # NAG Fortran compiler 9462 lt_prog_compiler_wl='-Wl,-Wl,,' 9463 lt_prog_compiler_pic='-PIC' 9464 lt_prog_compiler_static='-Bstatic' 9465 ;; 9466 esac 9467 ;; 9468 9469 mingw* | cygwin* | pw32* | os2* | cegcc*) 9470 # This hack is so that the source file can tell whether it is being 9471 # built for inclusion in a dll (and should export symbols for example). 9472 lt_prog_compiler_pic='-DDLL_EXPORT' 9473 case $host_os in 9474 os2*) 9475 lt_prog_compiler_static='$wl-static' 9476 ;; 9477 esac 9478 ;; 9479 9480 hpux9* | hpux10* | hpux11*) 9481 lt_prog_compiler_wl='-Wl,' 9482 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 9483 # not for PA HP-UX. 9484 case $host_cpu in 9485 hppa*64*|ia64*) 9486 # +Z the default 9487 ;; 9488 *) 9489 lt_prog_compiler_pic='+Z' 9490 ;; 9491 esac 9492 # Is there a better lt_prog_compiler_static that works with the bundled CC? 9493 lt_prog_compiler_static='$wl-a ${wl}archive' 9494 ;; 9495 9496 irix5* | irix6* | nonstopux*) 9497 lt_prog_compiler_wl='-Wl,' 9498 # PIC (with -KPIC) is the default. 9499 lt_prog_compiler_static='-non_shared' 9500 ;; 9501 9502 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 9503 case $cc_basename in 9504 # old Intel for x86_64, which still supported -KPIC. 9505 ecc*) 9506 lt_prog_compiler_wl='-Wl,' 9507 lt_prog_compiler_pic='-KPIC' 9508 lt_prog_compiler_static='-static' 9509 ;; 9510 # icc used to be incompatible with GCC. 9511 # ICC 10 doesn't accept -KPIC any more. 9512 icc* | ifort*) 9513 lt_prog_compiler_wl='-Wl,' 9514 lt_prog_compiler_pic='-fPIC' 9515 lt_prog_compiler_static='-static' 9516 ;; 9517 # Lahey Fortran 8.1. 9518 lf95*) 9519 lt_prog_compiler_wl='-Wl,' 9520 lt_prog_compiler_pic='--shared' 9521 lt_prog_compiler_static='--static' 9522 ;; 9523 nagfor*) 9524 # NAG Fortran compiler 9525 lt_prog_compiler_wl='-Wl,-Wl,,' 9526 lt_prog_compiler_pic='-PIC' 9527 lt_prog_compiler_static='-Bstatic' 9528 ;; 9529 tcc*) 9530 # Fabrice Bellard et al's Tiny C Compiler 9531 lt_prog_compiler_wl='-Wl,' 9532 lt_prog_compiler_pic='-fPIC' 9533 lt_prog_compiler_static='-static' 9534 ;; 9535 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 9536 # Portland Group compilers (*not* the Pentium gcc compiler, 9537 # which looks to be a dead project) 9538 lt_prog_compiler_wl='-Wl,' 9539 lt_prog_compiler_pic='-fpic' 9540 lt_prog_compiler_static='-Bstatic' 9541 ;; 9542 ccc*) 9543 lt_prog_compiler_wl='-Wl,' 9544 # All Alpha code is PIC. 9545 lt_prog_compiler_static='-non_shared' 9546 ;; 9547 xl* | bgxl* | bgf* | mpixl*) 9548 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 9549 lt_prog_compiler_wl='-Wl,' 9550 lt_prog_compiler_pic='-qpic' 9551 lt_prog_compiler_static='-qstaticlink' 9552 ;; 9553 *) 9554 case `$CC -V 2>&1 | $SED 5q` in 9555 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 9556 # Sun Fortran 8.3 passes all unrecognized flags to the linker 9557 lt_prog_compiler_pic='-KPIC' 9558 lt_prog_compiler_static='-Bstatic' 9559 lt_prog_compiler_wl='' 9560 ;; 9561 *Sun\ F* | *Sun*Fortran*) 9562 lt_prog_compiler_pic='-KPIC' 9563 lt_prog_compiler_static='-Bstatic' 9564 lt_prog_compiler_wl='-Qoption ld ' 9565 ;; 9566 *Sun\ C*) 9567 # Sun C 5.9 9568 lt_prog_compiler_pic='-KPIC' 9569 lt_prog_compiler_static='-Bstatic' 9570 lt_prog_compiler_wl='-Wl,' 9571 ;; 9572 *Intel*\ [CF]*Compiler*) 9573 lt_prog_compiler_wl='-Wl,' 9574 lt_prog_compiler_pic='-fPIC' 9575 lt_prog_compiler_static='-static' 9576 ;; 9577 *Portland\ Group*) 9578 lt_prog_compiler_wl='-Wl,' 9579 lt_prog_compiler_pic='-fpic' 9580 lt_prog_compiler_static='-Bstatic' 9581 ;; 9582 esac 9583 ;; 9584 esac 9585 ;; 9586 9587 newsos6) 9588 lt_prog_compiler_pic='-KPIC' 9589 lt_prog_compiler_static='-Bstatic' 9590 ;; 9591 9592 *nto* | *qnx*) 9593 # QNX uses GNU C++, but need to define -shared option too, otherwise 9594 # it will coredump. 9595 lt_prog_compiler_pic='-fPIC -shared' 9596 ;; 9597 9598 osf3* | osf4* | osf5*) 9599 lt_prog_compiler_wl='-Wl,' 9600 # All OSF/1 code is PIC. 9601 lt_prog_compiler_static='-non_shared' 9602 ;; 9603 9604 rdos*) 9605 lt_prog_compiler_static='-non_shared' 9606 ;; 9607 9608 solaris*) 9609 lt_prog_compiler_pic='-KPIC' 9610 lt_prog_compiler_static='-Bstatic' 9611 case $cc_basename in 9612 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 9613 lt_prog_compiler_wl='-Qoption ld ';; 9614 *) 9615 lt_prog_compiler_wl='-Wl,';; 9616 esac 9617 ;; 9618 9619 sunos4*) 9620 lt_prog_compiler_wl='-Qoption ld ' 9621 lt_prog_compiler_pic='-PIC' 9622 lt_prog_compiler_static='-Bstatic' 9623 ;; 9624 9625 sysv4 | sysv4.2uw2* | sysv4.3*) 9626 lt_prog_compiler_wl='-Wl,' 9627 lt_prog_compiler_pic='-KPIC' 9628 lt_prog_compiler_static='-Bstatic' 9629 ;; 9630 9631 sysv4*MP*) 9632 if test -d /usr/nec; then 9633 lt_prog_compiler_pic='-Kconform_pic' 9634 lt_prog_compiler_static='-Bstatic' 9635 fi 9636 ;; 9637 9638 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 9639 lt_prog_compiler_wl='-Wl,' 9640 lt_prog_compiler_pic='-KPIC' 9641 lt_prog_compiler_static='-Bstatic' 9642 ;; 9643 9644 unicos*) 9645 lt_prog_compiler_wl='-Wl,' 9646 lt_prog_compiler_can_build_shared=no 9647 ;; 9648 9649 uts4*) 9650 lt_prog_compiler_pic='-pic' 9651 lt_prog_compiler_static='-Bstatic' 9652 ;; 9653 9654 *) 9655 lt_prog_compiler_can_build_shared=no 9656 ;; 9657 esac 9658 fi 9659 9660case $host_os in 9661 # For platforms that do not support PIC, -DPIC is meaningless: 9662 *djgpp*) 9663 lt_prog_compiler_pic= 9664 ;; 9665 *) 9666 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 9667 ;; 9668esac 9669 9670{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 9671printf %s "checking for $compiler option to produce PIC... " >&6; } 9672if test ${lt_cv_prog_compiler_pic+y} 9673then : 9674 printf %s "(cached) " >&6 9675else case e in #( 9676 e) lt_cv_prog_compiler_pic=$lt_prog_compiler_pic ;; 9677esac 9678fi 9679{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 9680printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; } 9681lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 9682 9683# 9684# Check to make sure the PIC flag actually works. 9685# 9686if test -n "$lt_prog_compiler_pic"; then 9687 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 9688printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 9689if test ${lt_cv_prog_compiler_pic_works+y} 9690then : 9691 printf %s "(cached) " >&6 9692else case e in #( 9693 e) lt_cv_prog_compiler_pic_works=no 9694 ac_outfile=conftest.$ac_objext 9695 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9696 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment 9697 # Insert the option either (1) after the last *FLAGS variable, or 9698 # (2) before a word containing "conftest.", or (3) at the end. 9699 # Note that $ac_compile itself does not contain backslashes and begins 9700 # with a dollar sign (not a hyphen), so the echo should work correctly. 9701 # The option is referenced via a variable to avoid confusing sed. 9702 lt_compile=`echo "$ac_compile" | $SED \ 9703 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9704 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9705 -e 's:$: $lt_compiler_flag:'` 9706 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9707 (eval "$lt_compile" 2>conftest.err) 9708 ac_status=$? 9709 cat conftest.err >&5 9710 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9711 if (exit $ac_status) && test -s "$ac_outfile"; then 9712 # The compiler can only warn and ignore the option if not recognized 9713 # So say no if there are warnings other than the usual output. 9714 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 9715 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9716 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 9717 lt_cv_prog_compiler_pic_works=yes 9718 fi 9719 fi 9720 $RM conftest* 9721 ;; 9722esac 9723fi 9724{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 9725printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; } 9726 9727if test yes = "$lt_cv_prog_compiler_pic_works"; then 9728 case $lt_prog_compiler_pic in 9729 "" | " "*) ;; 9730 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 9731 esac 9732else 9733 lt_prog_compiler_pic= 9734 lt_prog_compiler_can_build_shared=no 9735fi 9736 9737fi 9738 9739 9740 9741 9742 9743 9744 9745 9746 9747 9748 9749# 9750# Check to make sure the static flag actually works. 9751# 9752wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 9753{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 9754printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 9755if test ${lt_cv_prog_compiler_static_works+y} 9756then : 9757 printf %s "(cached) " >&6 9758else case e in #( 9759 e) lt_cv_prog_compiler_static_works=no 9760 save_LDFLAGS=$LDFLAGS 9761 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 9762 echo "$lt_simple_link_test_code" > conftest.$ac_ext 9763 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 9764 # The linker can only warn and ignore the option if not recognized 9765 # So say no if there are warnings 9766 if test -s conftest.err; then 9767 # Append any errors to the config.log. 9768 cat conftest.err 1>&5 9769 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 9770 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9771 if diff conftest.exp conftest.er2 >/dev/null; then 9772 lt_cv_prog_compiler_static_works=yes 9773 fi 9774 else 9775 lt_cv_prog_compiler_static_works=yes 9776 fi 9777 fi 9778 $RM -r conftest* 9779 LDFLAGS=$save_LDFLAGS 9780 ;; 9781esac 9782fi 9783{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 9784printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; } 9785 9786if test yes = "$lt_cv_prog_compiler_static_works"; then 9787 : 9788else 9789 lt_prog_compiler_static= 9790fi 9791 9792 9793 9794 9795 9796 9797 9798 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 9799printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 9800if test ${lt_cv_prog_compiler_c_o+y} 9801then : 9802 printf %s "(cached) " >&6 9803else case e in #( 9804 e) lt_cv_prog_compiler_c_o=no 9805 $RM -r conftest 2>/dev/null 9806 mkdir conftest 9807 cd conftest 9808 mkdir out 9809 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9810 9811 lt_compiler_flag="-o out/conftest2.$ac_objext" 9812 # Insert the option either (1) after the last *FLAGS variable, or 9813 # (2) before a word containing "conftest.", or (3) at the end. 9814 # Note that $ac_compile itself does not contain backslashes and begins 9815 # with a dollar sign (not a hyphen), so the echo should work correctly. 9816 lt_compile=`echo "$ac_compile" | $SED \ 9817 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9818 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9819 -e 's:$: $lt_compiler_flag:'` 9820 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9821 (eval "$lt_compile" 2>out/conftest.err) 9822 ac_status=$? 9823 cat out/conftest.err >&5 9824 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9825 if (exit $ac_status) && test -s out/conftest2.$ac_objext 9826 then 9827 # The compiler can only warn and ignore the option if not recognized 9828 # So say no if there are warnings 9829 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 9830 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 9831 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 9832 lt_cv_prog_compiler_c_o=yes 9833 fi 9834 fi 9835 chmod u+w . 2>&5 9836 $RM conftest* 9837 # SGI C++ compiler will create directory out/ii_files/ for 9838 # template instantiation 9839 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 9840 $RM out/* && rmdir out 9841 cd .. 9842 $RM -r conftest 9843 $RM conftest* 9844 ;; 9845esac 9846fi 9847{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 9848printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; } 9849 9850 9851 9852 9853 9854 9855 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 9856printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 9857if test ${lt_cv_prog_compiler_c_o+y} 9858then : 9859 printf %s "(cached) " >&6 9860else case e in #( 9861 e) lt_cv_prog_compiler_c_o=no 9862 $RM -r conftest 2>/dev/null 9863 mkdir conftest 9864 cd conftest 9865 mkdir out 9866 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9867 9868 lt_compiler_flag="-o out/conftest2.$ac_objext" 9869 # Insert the option either (1) after the last *FLAGS variable, or 9870 # (2) before a word containing "conftest.", or (3) at the end. 9871 # Note that $ac_compile itself does not contain backslashes and begins 9872 # with a dollar sign (not a hyphen), so the echo should work correctly. 9873 lt_compile=`echo "$ac_compile" | $SED \ 9874 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9875 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9876 -e 's:$: $lt_compiler_flag:'` 9877 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9878 (eval "$lt_compile" 2>out/conftest.err) 9879 ac_status=$? 9880 cat out/conftest.err >&5 9881 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9882 if (exit $ac_status) && test -s out/conftest2.$ac_objext 9883 then 9884 # The compiler can only warn and ignore the option if not recognized 9885 # So say no if there are warnings 9886 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 9887 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 9888 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 9889 lt_cv_prog_compiler_c_o=yes 9890 fi 9891 fi 9892 chmod u+w . 2>&5 9893 $RM conftest* 9894 # SGI C++ compiler will create directory out/ii_files/ for 9895 # template instantiation 9896 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 9897 $RM out/* && rmdir out 9898 cd .. 9899 $RM -r conftest 9900 $RM conftest* 9901 ;; 9902esac 9903fi 9904{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 9905printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; } 9906 9907 9908 9909 9910hard_links=nottested 9911if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then 9912 # do not overwrite the value of need_locks provided by the user 9913 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 9914printf %s "checking if we can lock with hard links... " >&6; } 9915 hard_links=yes 9916 $RM conftest* 9917 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9918 touch conftest.a 9919 ln conftest.a conftest.b 2>&5 || hard_links=no 9920 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9921 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 9922printf "%s\n" "$hard_links" >&6; } 9923 if test no = "$hard_links"; then 9924 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 9925printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 9926 need_locks=warn 9927 fi 9928else 9929 need_locks=no 9930fi 9931 9932 9933 9934 9935 9936 9937 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 9938printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 9939 9940 runpath_var= 9941 allow_undefined_flag= 9942 always_export_symbols=no 9943 archive_cmds= 9944 archive_expsym_cmds= 9945 compiler_needs_object=no 9946 enable_shared_with_static_runtimes=no 9947 export_dynamic_flag_spec= 9948 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 9949 hardcode_automatic=no 9950 hardcode_direct=no 9951 hardcode_direct_absolute=no 9952 hardcode_libdir_flag_spec= 9953 hardcode_libdir_separator= 9954 hardcode_minus_L=no 9955 hardcode_shlibpath_var=unsupported 9956 inherit_rpath=no 9957 link_all_deplibs=unknown 9958 module_cmds= 9959 module_expsym_cmds= 9960 old_archive_from_new_cmds= 9961 old_archive_from_expsyms_cmds= 9962 thread_safe_flag_spec= 9963 whole_archive_flag_spec= 9964 # include_expsyms should be a list of space-separated symbols to be *always* 9965 # included in the symbol list 9966 include_expsyms= 9967 # exclude_expsyms can be an extended regexp of symbols to exclude 9968 # it will be wrapped by ' (' and ')$', so one must not match beginning or 9969 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', 9970 # as well as any symbol that contains 'd'. 9971 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 9972 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 9973 # platforms (ab)use it in PIC code, but their linkers get confused if 9974 # the symbol is explicitly referenced. Since portable code cannot 9975 # rely on this symbol name, it's probably fine to never include it in 9976 # preloaded symbol tables. 9977 # Exclude shared library initialization/finalization symbols. 9978 extract_expsyms_cmds= 9979 9980 case $host_os in 9981 cygwin* | mingw* | pw32* | cegcc*) 9982 # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time 9983 # When not using gcc, we currently assume that we are using 9984 # Microsoft Visual C++ or Intel C++ Compiler. 9985 if test yes != "$GCC"; then 9986 with_gnu_ld=no 9987 fi 9988 ;; 9989 interix*) 9990 # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC) 9991 with_gnu_ld=yes 9992 ;; 9993 openbsd* | bitrig*) 9994 with_gnu_ld=no 9995 ;; 9996 esac 9997 9998 ld_shlibs=yes 9999 10000 # On some targets, GNU ld is compatible enough with the native linker 10001 # that we're better off using the native interface for both. 10002 lt_use_gnu_ld_interface=no 10003 if test yes = "$with_gnu_ld"; then 10004 case $host_os in 10005 aix*) 10006 # The AIX port of GNU ld has always aspired to compatibility 10007 # with the native linker. However, as the warning in the GNU ld 10008 # block says, versions before 2.19.5* couldn't really create working 10009 # shared libraries, regardless of the interface used. 10010 case `$LD -v 2>&1` in 10011 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 10012 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 10013 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 10014 *) 10015 lt_use_gnu_ld_interface=yes 10016 ;; 10017 esac 10018 ;; 10019 *) 10020 lt_use_gnu_ld_interface=yes 10021 ;; 10022 esac 10023 fi 10024 10025 if test yes = "$lt_use_gnu_ld_interface"; then 10026 # If archive_cmds runs LD, not CC, wlarc should be empty 10027 wlarc='$wl' 10028 10029 # Set some defaults for GNU ld with shared library support. These 10030 # are reset later if shared libraries are not supported. Putting them 10031 # here allows them to be overridden if necessary. 10032 runpath_var=LD_RUN_PATH 10033 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10034 export_dynamic_flag_spec='$wl--export-dynamic' 10035 # ancient GNU ld didn't support --whole-archive et. al. 10036 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 10037 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 10038 else 10039 whole_archive_flag_spec= 10040 fi 10041 supports_anon_versioning=no 10042 case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in 10043 *GNU\ gold*) supports_anon_versioning=yes ;; 10044 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 10045 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 10046 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 10047 *\ 2.11.*) ;; # other 2.11 versions 10048 *) supports_anon_versioning=yes ;; 10049 esac 10050 10051 # See if GNU ld supports shared libraries. 10052 case $host_os in 10053 aix[3-9]*) 10054 # On AIX/PPC, the GNU linker is very broken 10055 if test ia64 != "$host_cpu"; then 10056 ld_shlibs=no 10057 cat <<_LT_EOF 1>&2 10058 10059*** Warning: the GNU linker, at least up to release 2.19, is reported 10060*** to be unable to reliably create shared libraries on AIX. 10061*** Therefore, libtool is disabling shared libraries support. If you 10062*** really care for shared libraries, you may want to install binutils 10063*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 10064*** You will then need to restart the configuration process. 10065 10066_LT_EOF 10067 fi 10068 ;; 10069 10070 amigaos*) 10071 case $host_cpu in 10072 powerpc) 10073 # see comment about AmigaOS4 .so support 10074 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10075 archive_expsym_cmds='' 10076 ;; 10077 m68k) 10078 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)' 10079 hardcode_libdir_flag_spec='-L$libdir' 10080 hardcode_minus_L=yes 10081 ;; 10082 esac 10083 ;; 10084 10085 beos*) 10086 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10087 allow_undefined_flag=unsupported 10088 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 10089 # support --undefined. This deserves some investigation. FIXME 10090 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10091 else 10092 ld_shlibs=no 10093 fi 10094 ;; 10095 10096 cygwin* | mingw* | pw32* | cegcc*) 10097 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 10098 # as there is no search path for DLLs. 10099 hardcode_libdir_flag_spec='-L$libdir' 10100 export_dynamic_flag_spec='$wl--export-all-symbols' 10101 allow_undefined_flag=unsupported 10102 always_export_symbols=no 10103 enable_shared_with_static_runtimes=yes 10104 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' 10105 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 10106 10107 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 10108 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 10109 # If the export-symbols file already is a .def file, use it as 10110 # is; otherwise, prepend EXPORTS... 10111 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 10112 cp $export_symbols $output_objdir/$soname.def; 10113 else 10114 echo EXPORTS > $output_objdir/$soname.def; 10115 cat $export_symbols >> $output_objdir/$soname.def; 10116 fi~ 10117 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 10118 else 10119 ld_shlibs=no 10120 fi 10121 ;; 10122 10123 haiku*) 10124 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10125 link_all_deplibs=yes 10126 ;; 10127 10128 os2*) 10129 hardcode_libdir_flag_spec='-L$libdir' 10130 hardcode_minus_L=yes 10131 allow_undefined_flag=unsupported 10132 shrext_cmds=.dll 10133 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10134 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10135 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10136 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10137 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 10138 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10139 emximp -o $lib $output_objdir/$libname.def' 10140 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10141 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10142 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10143 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10144 prefix_cmds="$SED"~ 10145 if test EXPORTS = "`$SED 1q $export_symbols`"; then 10146 prefix_cmds="$prefix_cmds -e 1d"; 10147 fi~ 10148 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 10149 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 10150 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10151 emximp -o $lib $output_objdir/$libname.def' 10152 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 10153 enable_shared_with_static_runtimes=yes 10154 file_list_spec='@' 10155 ;; 10156 10157 interix[3-9]*) 10158 hardcode_direct=no 10159 hardcode_shlibpath_var=no 10160 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 10161 export_dynamic_flag_spec='$wl-E' 10162 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 10163 # Instead, shared libraries are loaded at an image base (0x10000000 by 10164 # default) and relocated if they conflict, which is a slow very memory 10165 # consuming and fragmenting process. To avoid this, we pick a random, 10166 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 10167 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 10168 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 10169 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' 10170 ;; 10171 10172 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 10173 tmp_diet=no 10174 if test linux-dietlibc = "$host_os"; then 10175 case $cc_basename in 10176 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 10177 esac 10178 fi 10179 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 10180 && test no = "$tmp_diet" 10181 then 10182 tmp_addflag=' $pic_flag' 10183 tmp_sharedflag='-shared' 10184 case $cc_basename,$host_cpu in 10185 pgcc*) # Portland Group C compiler 10186 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' 10187 tmp_addflag=' $pic_flag' 10188 ;; 10189 pgf77* | pgf90* | pgf95* | pgfortran*) 10190 # Portland Group f77 and f90 compilers 10191 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' 10192 tmp_addflag=' $pic_flag -Mnomain' ;; 10193 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 10194 tmp_addflag=' -i_dynamic' ;; 10195 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 10196 tmp_addflag=' -i_dynamic -nofor_main' ;; 10197 ifc* | ifort*) # Intel Fortran compiler 10198 tmp_addflag=' -nofor_main' ;; 10199 lf95*) # Lahey Fortran 8.1 10200 whole_archive_flag_spec= 10201 tmp_sharedflag='--shared' ;; 10202 nagfor*) # NAGFOR 5.3 10203 tmp_sharedflag='-Wl,-shared' ;; 10204 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 10205 tmp_sharedflag='-qmkshrobj' 10206 tmp_addflag= ;; 10207 nvcc*) # Cuda Compiler Driver 2.2 10208 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' 10209 compiler_needs_object=yes 10210 ;; 10211 esac 10212 case `$CC -V 2>&1 | $SED 5q` in 10213 *Sun\ C*) # Sun C 5.9 10214 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' 10215 compiler_needs_object=yes 10216 tmp_sharedflag='-G' ;; 10217 *Sun\ F*) # Sun Fortran 8.3 10218 tmp_sharedflag='-G' ;; 10219 esac 10220 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10221 10222 if test yes = "$supports_anon_versioning"; then 10223 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 10224 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 10225 echo "local: *; };" >> $output_objdir/$libname.ver~ 10226 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 10227 fi 10228 10229 case $cc_basename in 10230 tcc*) 10231 export_dynamic_flag_spec='-rdynamic' 10232 ;; 10233 xlf* | bgf* | bgxlf* | mpixlf*) 10234 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 10235 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 10236 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10237 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 10238 if test yes = "$supports_anon_versioning"; then 10239 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 10240 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 10241 echo "local: *; };" >> $output_objdir/$libname.ver~ 10242 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 10243 fi 10244 ;; 10245 esac 10246 else 10247 ld_shlibs=no 10248 fi 10249 ;; 10250 10251 netbsd*) 10252 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10253 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 10254 wlarc= 10255 else 10256 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10257 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10258 fi 10259 ;; 10260 10261 solaris*) 10262 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 10263 ld_shlibs=no 10264 cat <<_LT_EOF 1>&2 10265 10266*** Warning: The releases 2.8.* of the GNU linker cannot reliably 10267*** create shared libraries on Solaris systems. Therefore, libtool 10268*** is disabling shared libraries support. We urge you to upgrade GNU 10269*** binutils to release 2.9.1 or newer. Another option is to modify 10270*** your PATH or compiler configuration so that the native linker is 10271*** used, and then restart. 10272 10273_LT_EOF 10274 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10275 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10276 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10277 else 10278 ld_shlibs=no 10279 fi 10280 ;; 10281 10282 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 10283 case `$LD -v 2>&1` in 10284 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 10285 ld_shlibs=no 10286 cat <<_LT_EOF 1>&2 10287 10288*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot 10289*** reliably create shared libraries on SCO systems. Therefore, libtool 10290*** is disabling shared libraries support. We urge you to upgrade GNU 10291*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 10292*** your PATH or compiler configuration so that the native linker is 10293*** used, and then restart. 10294 10295_LT_EOF 10296 ;; 10297 *) 10298 # For security reasons, it is highly recommended that you always 10299 # use absolute paths for naming shared libraries, and exclude the 10300 # DT_RUNPATH tag from executables and libraries. But doing so 10301 # requires that you compile everything twice, which is a pain. 10302 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10303 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10304 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10305 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10306 else 10307 ld_shlibs=no 10308 fi 10309 ;; 10310 esac 10311 ;; 10312 10313 sunos4*) 10314 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 10315 wlarc= 10316 hardcode_direct=yes 10317 hardcode_shlibpath_var=no 10318 ;; 10319 10320 *) 10321 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10322 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10323 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10324 else 10325 ld_shlibs=no 10326 fi 10327 ;; 10328 esac 10329 10330 if test no = "$ld_shlibs"; then 10331 runpath_var= 10332 hardcode_libdir_flag_spec= 10333 export_dynamic_flag_spec= 10334 whole_archive_flag_spec= 10335 fi 10336 else 10337 # PORTME fill in a description of your system's linker (not GNU ld) 10338 case $host_os in 10339 aix3*) 10340 allow_undefined_flag=unsupported 10341 always_export_symbols=yes 10342 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' 10343 # Note: this linker hardcodes the directories in LIBPATH if there 10344 # are no directories specified by -L. 10345 hardcode_minus_L=yes 10346 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then 10347 # Neither direct hardcoding nor static linking is supported with a 10348 # broken collect2. 10349 hardcode_direct=unsupported 10350 fi 10351 ;; 10352 10353 aix[4-9]*) 10354 if test ia64 = "$host_cpu"; then 10355 # On IA64, the linker does run time linking by default, so we don't 10356 # have to do anything special. 10357 aix_use_runtimelinking=no 10358 exp_sym_flag='-Bexport' 10359 no_entry_flag= 10360 else 10361 # If we're using GNU nm, then we don't want the "-C" option. 10362 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 10363 # Without the "-l" option, or with the "-B" option, AIX nm treats 10364 # weak defined symbols like other global defined symbols, whereas 10365 # GNU nm marks them as "W". 10366 # While the 'weak' keyword is ignored in the Export File, we need 10367 # it in the Import File for the 'aix-soname' feature, so we have 10368 # to replace the "-B" option with "-P" for AIX nm. 10369 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 10370 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' 10371 else 10372 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' 10373 fi 10374 aix_use_runtimelinking=no 10375 10376 # Test if we are trying to use run time linking or normal 10377 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 10378 # have runtime linking enabled, and use it for executables. 10379 # For shared libraries, we enable/disable runtime linking 10380 # depending on the kind of the shared library created - 10381 # when "with_aix_soname,aix_use_runtimelinking" is: 10382 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 10383 # "aix,yes" lib.so shared, rtl:yes, for executables 10384 # lib.a static archive 10385 # "both,no" lib.so.V(shr.o) shared, rtl:yes 10386 # lib.a(lib.so.V) shared, rtl:no, for executables 10387 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 10388 # lib.a(lib.so.V) shared, rtl:no 10389 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 10390 # lib.a static archive 10391 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 10392 for ld_flag in $LDFLAGS; do 10393 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then 10394 aix_use_runtimelinking=yes 10395 break 10396 fi 10397 done 10398 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 10399 # With aix-soname=svr4, we create the lib.so.V shared archives only, 10400 # so we don't have lib.a shared libs to link our executables. 10401 # We have to force runtime linking in this case. 10402 aix_use_runtimelinking=yes 10403 LDFLAGS="$LDFLAGS -Wl,-brtl" 10404 fi 10405 ;; 10406 esac 10407 10408 exp_sym_flag='-bexport' 10409 no_entry_flag='-bnoentry' 10410 fi 10411 10412 # When large executables or shared objects are built, AIX ld can 10413 # have problems creating the table of contents. If linking a library 10414 # or program results in "error TOC overflow" add -mminimal-toc to 10415 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 10416 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 10417 10418 archive_cmds='' 10419 hardcode_direct=yes 10420 hardcode_direct_absolute=yes 10421 hardcode_libdir_separator=':' 10422 link_all_deplibs=yes 10423 file_list_spec='$wl-f,' 10424 case $with_aix_soname,$aix_use_runtimelinking in 10425 aix,*) ;; # traditional, no import file 10426 svr4,* | *,yes) # use import file 10427 # The Import File defines what to hardcode. 10428 hardcode_direct=no 10429 hardcode_direct_absolute=no 10430 ;; 10431 esac 10432 10433 if test yes = "$GCC"; then 10434 case $host_os in aix4.[012]|aix4.[012].*) 10435 # We only want to do this on AIX 4.2 and lower, the check 10436 # below for broken collect2 doesn't work under 4.3+ 10437 collect2name=`$CC -print-prog-name=collect2` 10438 if test -f "$collect2name" && 10439 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 10440 then 10441 # We have reworked collect2 10442 : 10443 else 10444 # We have old collect2 10445 hardcode_direct=unsupported 10446 # It fails to find uninstalled libraries when the uninstalled 10447 # path is not listed in the libpath. Setting hardcode_minus_L 10448 # to unsupported forces relinking 10449 hardcode_minus_L=yes 10450 hardcode_libdir_flag_spec='-L$libdir' 10451 hardcode_libdir_separator= 10452 fi 10453 ;; 10454 esac 10455 shared_flag='-shared' 10456 if test yes = "$aix_use_runtimelinking"; then 10457 shared_flag="$shared_flag "'$wl-G' 10458 fi 10459 # Need to ensure runtime linking is disabled for the traditional 10460 # shared library, or the linker may eventually find shared libraries 10461 # /with/ Import File - we do not want to mix them. 10462 shared_flag_aix='-shared' 10463 shared_flag_svr4='-shared $wl-G' 10464 else 10465 # not using gcc 10466 if test ia64 = "$host_cpu"; then 10467 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 10468 # chokes on -Wl,-G. The following line is correct: 10469 shared_flag='-G' 10470 else 10471 if test yes = "$aix_use_runtimelinking"; then 10472 shared_flag='$wl-G' 10473 else 10474 shared_flag='$wl-bM:SRE' 10475 fi 10476 shared_flag_aix='$wl-bM:SRE' 10477 shared_flag_svr4='$wl-G' 10478 fi 10479 fi 10480 10481 export_dynamic_flag_spec='$wl-bexpall' 10482 # It seems that -bexpall does not export symbols beginning with 10483 # underscore (_), so it is better to generate a list of symbols to export. 10484 always_export_symbols=yes 10485 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 10486 # Warning - without using the other runtime loading flags (-brtl), 10487 # -berok will link without error, but may produce a broken library. 10488 allow_undefined_flag='-berok' 10489 # Determine the default libpath from the value encoded in an 10490 # empty executable. 10491 if test set = "${lt_cv_aix_libpath+set}"; then 10492 aix_libpath=$lt_cv_aix_libpath 10493else 10494 if test ${lt_cv_aix_libpath_+y} 10495then : 10496 printf %s "(cached) " >&6 10497else case e in #( 10498 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10499/* end confdefs.h. */ 10500 10501int 10502main (void) 10503{ 10504 10505 ; 10506 return 0; 10507} 10508_ACEOF 10509if ac_fn_c_try_link "$LINENO" 10510then : 10511 10512 lt_aix_libpath_sed=' 10513 /Import File Strings/,/^$/ { 10514 /^0/ { 10515 s/^0 *\([^ ]*\) *$/\1/ 10516 p 10517 } 10518 }' 10519 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10520 # Check for a 64-bit object if we didn't find anything. 10521 if test -z "$lt_cv_aix_libpath_"; then 10522 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10523 fi 10524fi 10525rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10526 conftest$ac_exeext conftest.$ac_ext 10527 if test -z "$lt_cv_aix_libpath_"; then 10528 lt_cv_aix_libpath_=/usr/lib:/lib 10529 fi 10530 ;; 10531esac 10532fi 10533 10534 aix_libpath=$lt_cv_aix_libpath_ 10535fi 10536 10537 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 10538 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 10539 else 10540 if test ia64 = "$host_cpu"; then 10541 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib' 10542 allow_undefined_flag="-z nodefs" 10543 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" 10544 else 10545 # Determine the default libpath from the value encoded in an 10546 # empty executable. 10547 if test set = "${lt_cv_aix_libpath+set}"; then 10548 aix_libpath=$lt_cv_aix_libpath 10549else 10550 if test ${lt_cv_aix_libpath_+y} 10551then : 10552 printf %s "(cached) " >&6 10553else case e in #( 10554 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10555/* end confdefs.h. */ 10556 10557int 10558main (void) 10559{ 10560 10561 ; 10562 return 0; 10563} 10564_ACEOF 10565if ac_fn_c_try_link "$LINENO" 10566then : 10567 10568 lt_aix_libpath_sed=' 10569 /Import File Strings/,/^$/ { 10570 /^0/ { 10571 s/^0 *\([^ ]*\) *$/\1/ 10572 p 10573 } 10574 }' 10575 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10576 # Check for a 64-bit object if we didn't find anything. 10577 if test -z "$lt_cv_aix_libpath_"; then 10578 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10579 fi 10580fi 10581rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10582 conftest$ac_exeext conftest.$ac_ext 10583 if test -z "$lt_cv_aix_libpath_"; then 10584 lt_cv_aix_libpath_=/usr/lib:/lib 10585 fi 10586 ;; 10587esac 10588fi 10589 10590 aix_libpath=$lt_cv_aix_libpath_ 10591fi 10592 10593 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 10594 # Warning - without using the other run time loading flags, 10595 # -berok will link without error, but may produce a broken library. 10596 no_undefined_flag=' $wl-bernotok' 10597 allow_undefined_flag=' $wl-berok' 10598 if test yes = "$with_gnu_ld"; then 10599 # We only use this code for GNU lds that support --whole-archive. 10600 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive' 10601 else 10602 # Exported symbols can be pulled into shared objects from archives 10603 whole_archive_flag_spec='$convenience' 10604 fi 10605 archive_cmds_need_lc=yes 10606 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 10607 # -brtl affects multiple linker settings, -berok does not and is overridden later 10608 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 10609 if test svr4 != "$with_aix_soname"; then 10610 # This is similar to how AIX traditionally builds its shared libraries. 10611 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' 10612 fi 10613 if test aix != "$with_aix_soname"; then 10614 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' 10615 else 10616 # used by -dlpreopen to get the symbols 10617 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 10618 fi 10619 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d' 10620 fi 10621 fi 10622 ;; 10623 10624 amigaos*) 10625 case $host_cpu in 10626 powerpc) 10627 # see comment about AmigaOS4 .so support 10628 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10629 archive_expsym_cmds='' 10630 ;; 10631 m68k) 10632 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)' 10633 hardcode_libdir_flag_spec='-L$libdir' 10634 hardcode_minus_L=yes 10635 ;; 10636 esac 10637 ;; 10638 10639 bsdi[45]*) 10640 export_dynamic_flag_spec=-rdynamic 10641 ;; 10642 10643 cygwin* | mingw* | pw32* | cegcc*) 10644 # When not using gcc, we currently assume that we are using 10645 # Microsoft Visual C++ or Intel C++ Compiler. 10646 # hardcode_libdir_flag_spec is actually meaningless, as there is 10647 # no search path for DLLs. 10648 case $cc_basename in 10649 cl* | icl*) 10650 # Native MSVC or ICC 10651 hardcode_libdir_flag_spec=' ' 10652 allow_undefined_flag=unsupported 10653 always_export_symbols=yes 10654 file_list_spec='@' 10655 # Tell ltmain to make .lib files, not .a files. 10656 libext=lib 10657 # Tell ltmain to make .dll files, not .so files. 10658 shrext_cmds=.dll 10659 # FIXME: Setting linknames here is a bad hack. 10660 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 10661 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 10662 cp "$export_symbols" "$output_objdir/$soname.def"; 10663 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 10664 else 10665 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 10666 fi~ 10667 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 10668 linknames=' 10669 # The linker will not automatically build a static lib if we build a DLL. 10670 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 10671 enable_shared_with_static_runtimes=yes 10672 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 10673 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 10674 # Don't use ranlib 10675 old_postinstall_cmds='chmod 644 $oldlib' 10676 postlink_cmds='lt_outputfile="@OUTPUT@"~ 10677 lt_tool_outputfile="@TOOL_OUTPUT@"~ 10678 case $lt_outputfile in 10679 *.exe|*.EXE) ;; 10680 *) 10681 lt_outputfile=$lt_outputfile.exe 10682 lt_tool_outputfile=$lt_tool_outputfile.exe 10683 ;; 10684 esac~ 10685 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 10686 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 10687 $RM "$lt_outputfile.manifest"; 10688 fi' 10689 ;; 10690 *) 10691 # Assume MSVC and ICC wrapper 10692 hardcode_libdir_flag_spec=' ' 10693 allow_undefined_flag=unsupported 10694 # Tell ltmain to make .lib files, not .a files. 10695 libext=lib 10696 # Tell ltmain to make .dll files, not .so files. 10697 shrext_cmds=.dll 10698 # FIXME: Setting linknames here is a bad hack. 10699 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 10700 # The linker will automatically build a .lib file if we build a DLL. 10701 old_archive_from_new_cmds='true' 10702 # FIXME: Should let the user specify the lib program. 10703 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 10704 enable_shared_with_static_runtimes=yes 10705 ;; 10706 esac 10707 ;; 10708 10709 darwin* | rhapsody*) 10710 10711 10712 archive_cmds_need_lc=no 10713 hardcode_direct=no 10714 hardcode_automatic=yes 10715 hardcode_shlibpath_var=unsupported 10716 if test yes = "$lt_cv_ld_force_load"; then 10717 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\"`' 10718 10719 else 10720 whole_archive_flag_spec='' 10721 fi 10722 link_all_deplibs=yes 10723 allow_undefined_flag=$_lt_dar_allow_undefined 10724 case $cc_basename in 10725 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 10726 *) _lt_dar_can_shared=$GCC ;; 10727 esac 10728 if test yes = "$_lt_dar_can_shared"; then 10729 output_verbose_link_cmd=func_echo_all 10730 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" 10731 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 10732 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" 10733 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" 10734 10735 else 10736 ld_shlibs=no 10737 fi 10738 10739 ;; 10740 10741 dgux*) 10742 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10743 hardcode_libdir_flag_spec='-L$libdir' 10744 hardcode_shlibpath_var=no 10745 ;; 10746 10747 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 10748 # support. Future versions do this automatically, but an explicit c++rt0.o 10749 # does not break anything, and helps significantly (at the cost of a little 10750 # extra space). 10751 freebsd2.2*) 10752 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 10753 hardcode_libdir_flag_spec='-R$libdir' 10754 hardcode_direct=yes 10755 hardcode_shlibpath_var=no 10756 ;; 10757 10758 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 10759 freebsd2.*) 10760 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 10761 hardcode_direct=yes 10762 hardcode_minus_L=yes 10763 hardcode_shlibpath_var=no 10764 ;; 10765 10766 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 10767 freebsd* | dragonfly* | midnightbsd*) 10768 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10769 hardcode_libdir_flag_spec='-R$libdir' 10770 hardcode_direct=yes 10771 hardcode_shlibpath_var=no 10772 ;; 10773 10774 hpux9*) 10775 if test yes = "$GCC"; then 10776 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' 10777 else 10778 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' 10779 fi 10780 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 10781 hardcode_libdir_separator=: 10782 hardcode_direct=yes 10783 10784 # hardcode_minus_L: Not really in the search PATH, 10785 # but as the default location of the library. 10786 hardcode_minus_L=yes 10787 export_dynamic_flag_spec='$wl-E' 10788 ;; 10789 10790 hpux10*) 10791 if test yes,no = "$GCC,$with_gnu_ld"; then 10792 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10793 else 10794 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 10795 fi 10796 if test no = "$with_gnu_ld"; then 10797 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 10798 hardcode_libdir_separator=: 10799 hardcode_direct=yes 10800 hardcode_direct_absolute=yes 10801 export_dynamic_flag_spec='$wl-E' 10802 # hardcode_minus_L: Not really in the search PATH, 10803 # but as the default location of the library. 10804 hardcode_minus_L=yes 10805 fi 10806 ;; 10807 10808 hpux11*) 10809 if test yes,no = "$GCC,$with_gnu_ld"; then 10810 case $host_cpu in 10811 hppa*64*) 10812 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 10813 ;; 10814 ia64*) 10815 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 10816 ;; 10817 *) 10818 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10819 ;; 10820 esac 10821 else 10822 case $host_cpu in 10823 hppa*64*) 10824 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 10825 ;; 10826 ia64*) 10827 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 10828 ;; 10829 *) 10830 10831 # Older versions of the 11.00 compiler do not understand -b yet 10832 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 10833 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 10834printf %s "checking if $CC understands -b... " >&6; } 10835if test ${lt_cv_prog_compiler__b+y} 10836then : 10837 printf %s "(cached) " >&6 10838else case e in #( 10839 e) lt_cv_prog_compiler__b=no 10840 save_LDFLAGS=$LDFLAGS 10841 LDFLAGS="$LDFLAGS -b" 10842 echo "$lt_simple_link_test_code" > conftest.$ac_ext 10843 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 10844 # The linker can only warn and ignore the option if not recognized 10845 # So say no if there are warnings 10846 if test -s conftest.err; then 10847 # Append any errors to the config.log. 10848 cat conftest.err 1>&5 10849 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 10850 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 10851 if diff conftest.exp conftest.er2 >/dev/null; then 10852 lt_cv_prog_compiler__b=yes 10853 fi 10854 else 10855 lt_cv_prog_compiler__b=yes 10856 fi 10857 fi 10858 $RM -r conftest* 10859 LDFLAGS=$save_LDFLAGS 10860 ;; 10861esac 10862fi 10863{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 10864printf "%s\n" "$lt_cv_prog_compiler__b" >&6; } 10865 10866if test yes = "$lt_cv_prog_compiler__b"; then 10867 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10868else 10869 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 10870fi 10871 10872 ;; 10873 esac 10874 fi 10875 if test no = "$with_gnu_ld"; then 10876 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 10877 hardcode_libdir_separator=: 10878 10879 case $host_cpu in 10880 hppa*64*|ia64*) 10881 hardcode_direct=no 10882 hardcode_shlibpath_var=no 10883 ;; 10884 *) 10885 hardcode_direct=yes 10886 hardcode_direct_absolute=yes 10887 export_dynamic_flag_spec='$wl-E' 10888 10889 # hardcode_minus_L: Not really in the search PATH, 10890 # but as the default location of the library. 10891 hardcode_minus_L=yes 10892 ;; 10893 esac 10894 fi 10895 ;; 10896 10897 irix5* | irix6* | nonstopux*) 10898 if test yes = "$GCC"; then 10899 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' 10900 # Try to use the -exported_symbol ld option, if it does not 10901 # work, assume that -exports_file does not work either and 10902 # implicitly export all symbols. 10903 # This should be the same for all languages, so no per-tag cache variable. 10904 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 10905printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 10906if test ${lt_cv_irix_exported_symbol+y} 10907then : 10908 printf %s "(cached) " >&6 10909else case e in #( 10910 e) save_LDFLAGS=$LDFLAGS 10911 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" 10912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10913/* end confdefs.h. */ 10914int foo (void) { return 0; } 10915_ACEOF 10916if ac_fn_c_try_link "$LINENO" 10917then : 10918 lt_cv_irix_exported_symbol=yes 10919else case e in #( 10920 e) lt_cv_irix_exported_symbol=no ;; 10921esac 10922fi 10923rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10924 conftest$ac_exeext conftest.$ac_ext 10925 LDFLAGS=$save_LDFLAGS ;; 10926esac 10927fi 10928{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 10929printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; } 10930 if test yes = "$lt_cv_irix_exported_symbol"; then 10931 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' 10932 fi 10933 else 10934 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' 10935 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' 10936 fi 10937 archive_cmds_need_lc='no' 10938 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10939 hardcode_libdir_separator=: 10940 inherit_rpath=yes 10941 link_all_deplibs=yes 10942 ;; 10943 10944 linux*) 10945 case $cc_basename in 10946 tcc*) 10947 # Fabrice Bellard et al's Tiny C Compiler 10948 ld_shlibs=yes 10949 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10950 ;; 10951 esac 10952 ;; 10953 10954 netbsd*) 10955 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10956 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 10957 else 10958 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 10959 fi 10960 hardcode_libdir_flag_spec='-R$libdir' 10961 hardcode_direct=yes 10962 hardcode_shlibpath_var=no 10963 ;; 10964 10965 newsos6) 10966 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10967 hardcode_direct=yes 10968 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10969 hardcode_libdir_separator=: 10970 hardcode_shlibpath_var=no 10971 ;; 10972 10973 *nto* | *qnx*) 10974 ;; 10975 10976 openbsd* | bitrig*) 10977 if test -f /usr/libexec/ld.so; then 10978 hardcode_direct=yes 10979 hardcode_shlibpath_var=no 10980 hardcode_direct_absolute=yes 10981 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 10982 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10983 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' 10984 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 10985 export_dynamic_flag_spec='$wl-E' 10986 else 10987 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10988 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 10989 fi 10990 else 10991 ld_shlibs=no 10992 fi 10993 ;; 10994 10995 os2*) 10996 hardcode_libdir_flag_spec='-L$libdir' 10997 hardcode_minus_L=yes 10998 allow_undefined_flag=unsupported 10999 shrext_cmds=.dll 11000 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 11001 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 11002 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 11003 $ECHO EXPORTS >> $output_objdir/$libname.def~ 11004 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 11005 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 11006 emximp -o $lib $output_objdir/$libname.def' 11007 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 11008 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 11009 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 11010 $ECHO EXPORTS >> $output_objdir/$libname.def~ 11011 prefix_cmds="$SED"~ 11012 if test EXPORTS = "`$SED 1q $export_symbols`"; then 11013 prefix_cmds="$prefix_cmds -e 1d"; 11014 fi~ 11015 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 11016 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 11017 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 11018 emximp -o $lib $output_objdir/$libname.def' 11019 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 11020 enable_shared_with_static_runtimes=yes 11021 file_list_spec='@' 11022 ;; 11023 11024 osf3*) 11025 if test yes = "$GCC"; then 11026 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 11027 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' 11028 else 11029 allow_undefined_flag=' -expect_unresolved \*' 11030 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' 11031 fi 11032 archive_cmds_need_lc='no' 11033 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 11034 hardcode_libdir_separator=: 11035 ;; 11036 11037 osf4* | osf5*) # as osf3* with the addition of -msym flag 11038 if test yes = "$GCC"; then 11039 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 11040 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' 11041 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 11042 else 11043 allow_undefined_flag=' -expect_unresolved \*' 11044 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' 11045 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~ 11046 $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' 11047 11048 # Both c and cxx compiler support -rpath directly 11049 hardcode_libdir_flag_spec='-rpath $libdir' 11050 fi 11051 archive_cmds_need_lc='no' 11052 hardcode_libdir_separator=: 11053 ;; 11054 11055 solaris*) 11056 no_undefined_flag=' -z defs' 11057 if test yes = "$GCC"; then 11058 wlarc='$wl' 11059 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 11060 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 11061 $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' 11062 else 11063 case `$CC -V 2>&1` in 11064 *"Compilers 5.0"*) 11065 wlarc='' 11066 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' 11067 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 11068 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 11069 ;; 11070 *) 11071 wlarc='$wl' 11072 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' 11073 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 11074 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 11075 ;; 11076 esac 11077 fi 11078 hardcode_libdir_flag_spec='-R$libdir' 11079 hardcode_shlibpath_var=no 11080 case $host_os in 11081 solaris2.[0-5] | solaris2.[0-5].*) ;; 11082 *) 11083 # The compiler driver will combine and reorder linker options, 11084 # but understands '-z linker_flag'. GCC discards it without '$wl', 11085 # but is careful enough not to reorder. 11086 # Supported since Solaris 2.6 (maybe 2.5.1?) 11087 if test yes = "$GCC"; then 11088 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 11089 else 11090 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 11091 fi 11092 ;; 11093 esac 11094 link_all_deplibs=yes 11095 ;; 11096 11097 sunos4*) 11098 if test sequent = "$host_vendor"; then 11099 # Use $CC to link under sequent, because it throws in some extra .o 11100 # files that make .init and .fini sections work. 11101 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' 11102 else 11103 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 11104 fi 11105 hardcode_libdir_flag_spec='-L$libdir' 11106 hardcode_direct=yes 11107 hardcode_minus_L=yes 11108 hardcode_shlibpath_var=no 11109 ;; 11110 11111 sysv4) 11112 case $host_vendor in 11113 sni) 11114 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11115 hardcode_direct=yes # is this really true??? 11116 ;; 11117 siemens) 11118 ## LD is ld it makes a PLAMLIB 11119 ## CC just makes a GrossModule. 11120 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 11121 reload_cmds='$CC -r -o $output$reload_objs' 11122 hardcode_direct=no 11123 ;; 11124 motorola) 11125 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11126 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 11127 ;; 11128 esac 11129 runpath_var='LD_RUN_PATH' 11130 hardcode_shlibpath_var=no 11131 ;; 11132 11133 sysv4.3*) 11134 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11135 hardcode_shlibpath_var=no 11136 export_dynamic_flag_spec='-Bexport' 11137 ;; 11138 11139 sysv4*MP*) 11140 if test -d /usr/nec; then 11141 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11142 hardcode_shlibpath_var=no 11143 runpath_var=LD_RUN_PATH 11144 hardcode_runpath_var=yes 11145 ld_shlibs=yes 11146 fi 11147 ;; 11148 11149 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 11150 no_undefined_flag='$wl-z,text' 11151 archive_cmds_need_lc=no 11152 hardcode_shlibpath_var=no 11153 runpath_var='LD_RUN_PATH' 11154 11155 if test yes = "$GCC"; then 11156 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11157 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11158 else 11159 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11160 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11161 fi 11162 ;; 11163 11164 sysv5* | sco3.2v5* | sco5v6*) 11165 # Note: We CANNOT use -z defs as we might desire, because we do not 11166 # link with -lc, and that would cause any symbols used from libc to 11167 # always be unresolved, which means just about no library would 11168 # ever link correctly. If we're not using GNU ld we use -z text 11169 # though, which does catch some bad symbols but isn't as heavy-handed 11170 # as -z defs. 11171 no_undefined_flag='$wl-z,text' 11172 allow_undefined_flag='$wl-z,nodefs' 11173 archive_cmds_need_lc=no 11174 hardcode_shlibpath_var=no 11175 hardcode_libdir_flag_spec='$wl-R,$libdir' 11176 hardcode_libdir_separator=':' 11177 link_all_deplibs=yes 11178 export_dynamic_flag_spec='$wl-Bexport' 11179 runpath_var='LD_RUN_PATH' 11180 11181 if test yes = "$GCC"; then 11182 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11183 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11184 else 11185 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11186 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11187 fi 11188 ;; 11189 11190 uts4*) 11191 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11192 hardcode_libdir_flag_spec='-L$libdir' 11193 hardcode_shlibpath_var=no 11194 ;; 11195 11196 *) 11197 ld_shlibs=no 11198 ;; 11199 esac 11200 11201 if test sni = "$host_vendor"; then 11202 case $host in 11203 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 11204 export_dynamic_flag_spec='$wl-Blargedynsym' 11205 ;; 11206 esac 11207 fi 11208 fi 11209 11210{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 11211printf "%s\n" "$ld_shlibs" >&6; } 11212test no = "$ld_shlibs" && can_build_shared=no 11213 11214with_gnu_ld=$with_gnu_ld 11215 11216 11217 11218 11219 11220 11221 11222 11223 11224 11225 11226 11227 11228 11229 11230# 11231# Do we need to explicitly link libc? 11232# 11233case "x$archive_cmds_need_lc" in 11234x|xyes) 11235 # Assume -lc should be added 11236 archive_cmds_need_lc=yes 11237 11238 if test yes,yes = "$GCC,$enable_shared"; then 11239 case $archive_cmds in 11240 *'~'*) 11241 # FIXME: we may have to deal with multi-command sequences. 11242 ;; 11243 '$CC '*) 11244 # Test whether the compiler implicitly links with -lc since on some 11245 # systems, -lgcc has to come before -lc. If gcc already passes -lc 11246 # to ld, don't add -lc before -lgcc. 11247 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 11248printf %s "checking whether -lc should be explicitly linked in... " >&6; } 11249if test ${lt_cv_archive_cmds_need_lc+y} 11250then : 11251 printf %s "(cached) " >&6 11252else case e in #( 11253 e) $RM conftest* 11254 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 11255 11256 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 11257 (eval $ac_compile) 2>&5 11258 ac_status=$? 11259 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11260 test $ac_status = 0; } 2>conftest.err; then 11261 soname=conftest 11262 lib=conftest 11263 libobjs=conftest.$ac_objext 11264 deplibs= 11265 wl=$lt_prog_compiler_wl 11266 pic_flag=$lt_prog_compiler_pic 11267 compiler_flags=-v 11268 linker_flags=-v 11269 verstring= 11270 output_objdir=. 11271 libname=conftest 11272 lt_save_allow_undefined_flag=$allow_undefined_flag 11273 allow_undefined_flag= 11274 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 11275 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 11276 ac_status=$? 11277 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11278 test $ac_status = 0; } 11279 then 11280 lt_cv_archive_cmds_need_lc=no 11281 else 11282 lt_cv_archive_cmds_need_lc=yes 11283 fi 11284 allow_undefined_flag=$lt_save_allow_undefined_flag 11285 else 11286 cat conftest.err 1>&5 11287 fi 11288 $RM conftest* 11289 ;; 11290esac 11291fi 11292{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 11293printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; } 11294 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 11295 ;; 11296 esac 11297 fi 11298 ;; 11299esac 11300 11301 11302 11303 11304 11305 11306 11307 11308 11309 11310 11311 11312 11313 11314 11315 11316 11317 11318 11319 11320 11321 11322 11323 11324 11325 11326 11327 11328 11329 11330 11331 11332 11333 11334 11335 11336 11337 11338 11339 11340 11341 11342 11343 11344 11345 11346 11347 11348 11349 11350 11351 11352 11353 11354 11355 11356 11357 11358 11359 11360 11361 11362 11363 11364 11365 11366 11367 11368 11369 11370 11371 11372 11373 11374 11375 11376 11377 11378 11379 11380 11381 11382 11383 11384 11385 11386 11387 11388 11389 11390 11391 11392 11393 11394 11395 11396 11397 11398 11399 11400 11401 11402 11403 11404 11405 11406 11407 11408 11409 11410 11411 11412 11413 11414 11415 11416 11417 11418 11419 11420 11421 11422 11423 11424 11425 11426 11427 11428 11429 11430 11431 11432 11433 11434 11435 11436 11437 11438 11439 11440 11441 11442 11443 11444 11445 11446 11447 11448 11449 11450 11451 11452 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 11453printf %s "checking dynamic linker characteristics... " >&6; } 11454 11455if test yes = "$GCC"; then 11456 case $host_os in 11457 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; 11458 *) lt_awk_arg='/^libraries:/' ;; 11459 esac 11460 case $host_os in 11461 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;; 11462 *) lt_sed_strip_eq='s|=/|/|g' ;; 11463 esac 11464 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 11465 case $lt_search_path_spec in 11466 *\;*) 11467 # if the path contains ";" then we assume it to be the separator 11468 # otherwise default to the standard path separator (i.e. ":") - it is 11469 # assumed that no part of a normal pathname contains ";" but that should 11470 # okay in the real world where ";" in dirpaths is itself problematic. 11471 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 11472 ;; 11473 *) 11474 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 11475 ;; 11476 esac 11477 # Ok, now we have the path, separated by spaces, we can step through it 11478 # and add multilib dir if necessary... 11479 lt_tmp_lt_search_path_spec= 11480 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 11481 # ...but if some path component already ends with the multilib dir we assume 11482 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). 11483 case "$lt_multi_os_dir; $lt_search_path_spec " in 11484 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) 11485 lt_multi_os_dir= 11486 ;; 11487 esac 11488 for lt_sys_path in $lt_search_path_spec; do 11489 if test -d "$lt_sys_path$lt_multi_os_dir"; then 11490 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" 11491 elif test -n "$lt_multi_os_dir"; then 11492 test -d "$lt_sys_path" && \ 11493 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 11494 fi 11495 done 11496 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 11497BEGIN {RS = " "; FS = "/|\n";} { 11498 lt_foo = ""; 11499 lt_count = 0; 11500 for (lt_i = NF; lt_i > 0; lt_i--) { 11501 if ($lt_i != "" && $lt_i != ".") { 11502 if ($lt_i == "..") { 11503 lt_count++; 11504 } else { 11505 if (lt_count == 0) { 11506 lt_foo = "/" $lt_i lt_foo; 11507 } else { 11508 lt_count--; 11509 } 11510 } 11511 } 11512 } 11513 if (lt_foo != "") { lt_freq[lt_foo]++; } 11514 if (lt_freq[lt_foo] == 1) { print lt_foo; } 11515}'` 11516 # AWK program above erroneously prepends '/' to C:/dos/paths 11517 # for these hosts. 11518 case $host_os in 11519 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 11520 $SED 's|/\([A-Za-z]:\)|\1|g'` ;; 11521 esac 11522 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 11523else 11524 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 11525fi 11526library_names_spec= 11527libname_spec='lib$name' 11528soname_spec= 11529shrext_cmds=.so 11530postinstall_cmds= 11531postuninstall_cmds= 11532finish_cmds= 11533finish_eval= 11534shlibpath_var= 11535shlibpath_overrides_runpath=unknown 11536version_type=none 11537dynamic_linker="$host_os ld.so" 11538sys_lib_dlsearch_path_spec="/lib /usr/lib" 11539need_lib_prefix=unknown 11540hardcode_into_libs=no 11541 11542# when you set need_version to no, make sure it does not cause -set_version 11543# flags to be left without arguments 11544need_version=unknown 11545 11546 11547 11548case $host_os in 11549aix3*) 11550 version_type=linux # correct to gnu/linux during the next big refactor 11551 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 11552 shlibpath_var=LIBPATH 11553 11554 # AIX 3 has no versioning support, so we append a major version to the name. 11555 soname_spec='$libname$release$shared_ext$major' 11556 ;; 11557 11558aix[4-9]*) 11559 version_type=linux # correct to gnu/linux during the next big refactor 11560 need_lib_prefix=no 11561 need_version=no 11562 hardcode_into_libs=yes 11563 if test ia64 = "$host_cpu"; then 11564 # AIX 5 supports IA64 11565 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 11566 shlibpath_var=LD_LIBRARY_PATH 11567 else 11568 # With GCC up to 2.95.x, collect2 would create an import file 11569 # for dependence libraries. The import file would start with 11570 # the line '#! .'. This would cause the generated library to 11571 # depend on '.', always an invalid library. This was fixed in 11572 # development snapshots of GCC prior to 3.0. 11573 case $host_os in 11574 aix4 | aix4.[01] | aix4.[01].*) 11575 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 11576 echo ' yes ' 11577 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 11578 : 11579 else 11580 can_build_shared=no 11581 fi 11582 ;; 11583 esac 11584 # Using Import Files as archive members, it is possible to support 11585 # filename-based versioning of shared library archives on AIX. While 11586 # this would work for both with and without runtime linking, it will 11587 # prevent static linking of such archives. So we do filename-based 11588 # shared library versioning with .so extension only, which is used 11589 # when both runtime linking and shared linking is enabled. 11590 # Unfortunately, runtime linking may impact performance, so we do 11591 # not want this to be the default eventually. Also, we use the 11592 # versioned .so libs for executables only if there is the -brtl 11593 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. 11594 # To allow for filename-based versioning support, we need to create 11595 # libNAME.so.V as an archive file, containing: 11596 # *) an Import File, referring to the versioned filename of the 11597 # archive as well as the shared archive member, telling the 11598 # bitwidth (32 or 64) of that shared object, and providing the 11599 # list of exported symbols of that shared object, eventually 11600 # decorated with the 'weak' keyword 11601 # *) the shared object with the F_LOADONLY flag set, to really avoid 11602 # it being seen by the linker. 11603 # At run time we better use the real file rather than another symlink, 11604 # but for link time we create the symlink libNAME.so -> libNAME.so.V 11605 11606 case $with_aix_soname,$aix_use_runtimelinking in 11607 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 11608 # soname into executable. Probably we can add versioning support to 11609 # collect2, so additional links can be useful in future. 11610 aix,yes) # traditional libtool 11611 dynamic_linker='AIX unversionable lib.so' 11612 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 11613 # instead of lib<name>.a to let people know that these are not 11614 # typical AIX shared libraries. 11615 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11616 ;; 11617 aix,no) # traditional AIX only 11618 dynamic_linker='AIX lib.a(lib.so.V)' 11619 # We preserve .a as extension for shared libraries through AIX4.2 11620 # and later when we are not doing run time linking. 11621 library_names_spec='$libname$release.a $libname.a' 11622 soname_spec='$libname$release$shared_ext$major' 11623 ;; 11624 svr4,*) # full svr4 only 11625 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 11626 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 11627 # We do not specify a path in Import Files, so LIBPATH fires. 11628 shlibpath_overrides_runpath=yes 11629 ;; 11630 *,yes) # both, prefer svr4 11631 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 11632 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 11633 # unpreferred sharedlib libNAME.a needs extra handling 11634 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"' 11635 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"' 11636 # We do not specify a path in Import Files, so LIBPATH fires. 11637 shlibpath_overrides_runpath=yes 11638 ;; 11639 *,no) # both, prefer aix 11640 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 11641 library_names_spec='$libname$release.a $libname.a' 11642 soname_spec='$libname$release$shared_ext$major' 11643 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 11644 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)' 11645 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"' 11646 ;; 11647 esac 11648 shlibpath_var=LIBPATH 11649 fi 11650 ;; 11651 11652amigaos*) 11653 case $host_cpu in 11654 powerpc) 11655 # Since July 2007 AmigaOS4 officially supports .so libraries. 11656 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 11657 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11658 ;; 11659 m68k) 11660 library_names_spec='$libname.ixlibrary $libname.a' 11661 # Create ${libname}_ixlibrary.a entries in /sys/libs. 11662 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' 11663 ;; 11664 esac 11665 ;; 11666 11667beos*) 11668 library_names_spec='$libname$shared_ext' 11669 dynamic_linker="$host_os ld.so" 11670 shlibpath_var=LIBRARY_PATH 11671 ;; 11672 11673bsdi[45]*) 11674 version_type=linux # correct to gnu/linux during the next big refactor 11675 need_version=no 11676 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11677 soname_spec='$libname$release$shared_ext$major' 11678 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 11679 shlibpath_var=LD_LIBRARY_PATH 11680 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 11681 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 11682 # the default ld.so.conf also contains /usr/contrib/lib and 11683 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 11684 # libtool to hard-code these into programs 11685 ;; 11686 11687cygwin* | mingw* | pw32* | cegcc*) 11688 version_type=windows 11689 shrext_cmds=.dll 11690 need_version=no 11691 need_lib_prefix=no 11692 11693 case $GCC,$cc_basename in 11694 yes,*) 11695 # gcc 11696 library_names_spec='$libname.dll.a' 11697 # DLL is installed to $(libdir)/../bin by postinstall_cmds 11698 postinstall_cmds='base_file=`basename \$file`~ 11699 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 11700 dldir=$destdir/`dirname \$dlpath`~ 11701 test -d \$dldir || mkdir -p \$dldir~ 11702 $install_prog $dir/$dlname \$dldir/$dlname~ 11703 chmod a+x \$dldir/$dlname~ 11704 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 11705 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 11706 fi' 11707 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 11708 dlpath=$dir/\$dldll~ 11709 $RM \$dlpath' 11710 shlibpath_overrides_runpath=yes 11711 11712 case $host_os in 11713 cygwin*) 11714 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 11715 soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11716 11717 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 11718 ;; 11719 mingw* | cegcc*) 11720 # MinGW DLLs use traditional 'lib' prefix 11721 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11722 ;; 11723 pw32*) 11724 # pw32 DLLs use 'pw' prefix rather than 'lib' 11725 library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11726 ;; 11727 esac 11728 dynamic_linker='Win32 ld.exe' 11729 ;; 11730 11731 *,cl* | *,icl*) 11732 # Native MSVC or ICC 11733 libname_spec='$name' 11734 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11735 library_names_spec='$libname.dll.lib' 11736 11737 case $build_os in 11738 mingw*) 11739 sys_lib_search_path_spec= 11740 lt_save_ifs=$IFS 11741 IFS=';' 11742 for lt_path in $LIB 11743 do 11744 IFS=$lt_save_ifs 11745 # Let DOS variable expansion print the short 8.3 style file name. 11746 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 11747 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 11748 done 11749 IFS=$lt_save_ifs 11750 # Convert to MSYS style. 11751 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 11752 ;; 11753 cygwin*) 11754 # Convert to unix form, then to dos form, then back to unix form 11755 # but this time dos style (no spaces!) so that the unix form looks 11756 # like /cygdrive/c/PROGRA~1:/cygdr... 11757 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 11758 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 11759 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 11760 ;; 11761 *) 11762 sys_lib_search_path_spec=$LIB 11763 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 11764 # It is most probably a Windows format PATH. 11765 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 11766 else 11767 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 11768 fi 11769 # FIXME: find the short name or the path components, as spaces are 11770 # common. (e.g. "Program Files" -> "PROGRA~1") 11771 ;; 11772 esac 11773 11774 # DLL is installed to $(libdir)/../bin by postinstall_cmds 11775 postinstall_cmds='base_file=`basename \$file`~ 11776 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 11777 dldir=$destdir/`dirname \$dlpath`~ 11778 test -d \$dldir || mkdir -p \$dldir~ 11779 $install_prog $dir/$dlname \$dldir/$dlname' 11780 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 11781 dlpath=$dir/\$dldll~ 11782 $RM \$dlpath' 11783 shlibpath_overrides_runpath=yes 11784 dynamic_linker='Win32 link.exe' 11785 ;; 11786 11787 *) 11788 # Assume MSVC and ICC wrapper 11789 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 11790 dynamic_linker='Win32 ld.exe' 11791 ;; 11792 esac 11793 # FIXME: first we should search . and the directory the executable is in 11794 shlibpath_var=PATH 11795 ;; 11796 11797darwin* | rhapsody*) 11798 dynamic_linker="$host_os dyld" 11799 version_type=darwin 11800 need_lib_prefix=no 11801 need_version=no 11802 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' 11803 soname_spec='$libname$release$major$shared_ext' 11804 shlibpath_overrides_runpath=yes 11805 shlibpath_var=DYLD_LIBRARY_PATH 11806 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 11807 11808 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 11809 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 11810 ;; 11811 11812dgux*) 11813 version_type=linux # correct to gnu/linux during the next big refactor 11814 need_lib_prefix=no 11815 need_version=no 11816 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11817 soname_spec='$libname$release$shared_ext$major' 11818 shlibpath_var=LD_LIBRARY_PATH 11819 ;; 11820 11821freebsd* | dragonfly* | midnightbsd*) 11822 # DragonFly does not have aout. When/if they implement a new 11823 # versioning mechanism, adjust this. 11824 if test -x /usr/bin/objformat; then 11825 objformat=`/usr/bin/objformat` 11826 else 11827 case $host_os in 11828 freebsd[23].*) objformat=aout ;; 11829 *) objformat=elf ;; 11830 esac 11831 fi 11832 version_type=freebsd-$objformat 11833 case $version_type in 11834 freebsd-elf*) 11835 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11836 soname_spec='$libname$release$shared_ext$major' 11837 need_version=no 11838 need_lib_prefix=no 11839 ;; 11840 freebsd-*) 11841 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11842 need_version=yes 11843 ;; 11844 esac 11845 shlibpath_var=LD_LIBRARY_PATH 11846 case $host_os in 11847 freebsd2.*) 11848 shlibpath_overrides_runpath=yes 11849 ;; 11850 freebsd3.[01]* | freebsdelf3.[01]*) 11851 shlibpath_overrides_runpath=yes 11852 hardcode_into_libs=yes 11853 ;; 11854 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 11855 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 11856 shlibpath_overrides_runpath=no 11857 hardcode_into_libs=yes 11858 ;; 11859 *) # from 4.6 on, and DragonFly 11860 shlibpath_overrides_runpath=yes 11861 hardcode_into_libs=yes 11862 ;; 11863 esac 11864 ;; 11865 11866haiku*) 11867 version_type=linux # correct to gnu/linux during the next big refactor 11868 need_lib_prefix=no 11869 need_version=no 11870 dynamic_linker="$host_os runtime_loader" 11871 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11872 soname_spec='$libname$release$shared_ext$major' 11873 shlibpath_var=LIBRARY_PATH 11874 shlibpath_overrides_runpath=no 11875 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 11876 hardcode_into_libs=yes 11877 ;; 11878 11879hpux9* | hpux10* | hpux11*) 11880 # Give a soname corresponding to the major version so that dld.sl refuses to 11881 # link against other versions. 11882 version_type=sunos 11883 need_lib_prefix=no 11884 need_version=no 11885 case $host_cpu in 11886 ia64*) 11887 shrext_cmds='.so' 11888 hardcode_into_libs=yes 11889 dynamic_linker="$host_os dld.so" 11890 shlibpath_var=LD_LIBRARY_PATH 11891 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11892 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11893 soname_spec='$libname$release$shared_ext$major' 11894 if test 32 = "$HPUX_IA64_MODE"; then 11895 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 11896 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 11897 else 11898 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 11899 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 11900 fi 11901 ;; 11902 hppa*64*) 11903 shrext_cmds='.sl' 11904 hardcode_into_libs=yes 11905 dynamic_linker="$host_os dld.sl" 11906 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 11907 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11908 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11909 soname_spec='$libname$release$shared_ext$major' 11910 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 11911 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11912 ;; 11913 *) 11914 shrext_cmds='.sl' 11915 dynamic_linker="$host_os dld.sl" 11916 shlibpath_var=SHLIB_PATH 11917 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 11918 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11919 soname_spec='$libname$release$shared_ext$major' 11920 ;; 11921 esac 11922 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 11923 postinstall_cmds='chmod 555 $lib' 11924 # or fails outright, so override atomically: 11925 install_override_mode=555 11926 ;; 11927 11928interix[3-9]*) 11929 version_type=linux # correct to gnu/linux during the next big refactor 11930 need_lib_prefix=no 11931 need_version=no 11932 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11933 soname_spec='$libname$release$shared_ext$major' 11934 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 11935 shlibpath_var=LD_LIBRARY_PATH 11936 shlibpath_overrides_runpath=no 11937 hardcode_into_libs=yes 11938 ;; 11939 11940irix5* | irix6* | nonstopux*) 11941 case $host_os in 11942 nonstopux*) version_type=nonstopux ;; 11943 *) 11944 if test yes = "$lt_cv_prog_gnu_ld"; then 11945 version_type=linux # correct to gnu/linux during the next big refactor 11946 else 11947 version_type=irix 11948 fi ;; 11949 esac 11950 need_lib_prefix=no 11951 need_version=no 11952 soname_spec='$libname$release$shared_ext$major' 11953 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 11954 case $host_os in 11955 irix5* | nonstopux*) 11956 libsuff= shlibsuff= 11957 ;; 11958 *) 11959 case $LD in # libtool.m4 will add one of these switches to LD 11960 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 11961 libsuff= shlibsuff= libmagic=32-bit;; 11962 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 11963 libsuff=32 shlibsuff=N32 libmagic=N32;; 11964 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 11965 libsuff=64 shlibsuff=64 libmagic=64-bit;; 11966 *) libsuff= shlibsuff= libmagic=never-match;; 11967 esac 11968 ;; 11969 esac 11970 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 11971 shlibpath_overrides_runpath=no 11972 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 11973 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 11974 hardcode_into_libs=yes 11975 ;; 11976 11977# No shared lib support for Linux oldld, aout, or coff. 11978linux*oldld* | linux*aout* | linux*coff*) 11979 dynamic_linker=no 11980 ;; 11981 11982linux*android*) 11983 version_type=none # Android doesn't support versioned libraries. 11984 need_lib_prefix=no 11985 need_version=no 11986 library_names_spec='$libname$release$shared_ext' 11987 soname_spec='$libname$release$shared_ext' 11988 finish_cmds= 11989 shlibpath_var=LD_LIBRARY_PATH 11990 shlibpath_overrides_runpath=yes 11991 11992 # This implies no fast_install, which is unacceptable. 11993 # Some rework will be needed to allow for fast_install 11994 # before this can be enabled. 11995 hardcode_into_libs=yes 11996 11997 dynamic_linker='Android linker' 11998 # Don't embed -rpath directories since the linker doesn't support them. 11999 hardcode_libdir_flag_spec='-L$libdir' 12000 ;; 12001 12002# This must be glibc/ELF. 12003linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 12004 version_type=linux # correct to gnu/linux during the next big refactor 12005 need_lib_prefix=no 12006 need_version=no 12007 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12008 soname_spec='$libname$release$shared_ext$major' 12009 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 12010 shlibpath_var=LD_LIBRARY_PATH 12011 shlibpath_overrides_runpath=no 12012 12013 # Some binutils ld are patched to set DT_RUNPATH 12014 if test ${lt_cv_shlibpath_overrides_runpath+y} 12015then : 12016 printf %s "(cached) " >&6 12017else case e in #( 12018 e) lt_cv_shlibpath_overrides_runpath=no 12019 save_LDFLAGS=$LDFLAGS 12020 save_libdir=$libdir 12021 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 12022 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 12023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12024/* end confdefs.h. */ 12025 12026int 12027main (void) 12028{ 12029 12030 ; 12031 return 0; 12032} 12033_ACEOF 12034if ac_fn_c_try_link "$LINENO" 12035then : 12036 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null 12037then : 12038 lt_cv_shlibpath_overrides_runpath=yes 12039fi 12040fi 12041rm -f core conftest.err conftest.$ac_objext conftest.beam \ 12042 conftest$ac_exeext conftest.$ac_ext 12043 LDFLAGS=$save_LDFLAGS 12044 libdir=$save_libdir 12045 ;; 12046esac 12047fi 12048 12049 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 12050 12051 # This implies no fast_install, which is unacceptable. 12052 # Some rework will be needed to allow for fast_install 12053 # before this can be enabled. 12054 hardcode_into_libs=yes 12055 12056 # Ideally, we could use ldconfig to report *all* directores which are 12057 # searched for libraries, however this is still not possible. Aside from not 12058 # being certain /sbin/ldconfig is available, command 12059 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 12060 # even though it is searched at run-time. Try to do the best guess by 12061 # appending ld.so.conf contents (and includes) to the search path. 12062 if test -f /etc/ld.so.conf; then 12063 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' ' '` 12064 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 12065 fi 12066 12067 # We used to test for /lib/ld.so.1 and disable shared libraries on 12068 # powerpc, because MkLinux only supported shared libraries with the 12069 # GNU dynamic linker. Since this was broken with cross compilers, 12070 # most powerpc-linux boxes support dynamic linking these days and 12071 # people can always --disable-shared, the test was removed, and we 12072 # assume the GNU/Linux dynamic linker is in use. 12073 dynamic_linker='GNU/Linux ld.so' 12074 ;; 12075 12076netbsd*) 12077 version_type=sunos 12078 need_lib_prefix=no 12079 need_version=no 12080 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 12081 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 12082 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 12083 dynamic_linker='NetBSD (a.out) ld.so' 12084 else 12085 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12086 soname_spec='$libname$release$shared_ext$major' 12087 dynamic_linker='NetBSD ld.elf_so' 12088 fi 12089 shlibpath_var=LD_LIBRARY_PATH 12090 shlibpath_overrides_runpath=yes 12091 hardcode_into_libs=yes 12092 ;; 12093 12094newsos6) 12095 version_type=linux # correct to gnu/linux during the next big refactor 12096 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12097 shlibpath_var=LD_LIBRARY_PATH 12098 shlibpath_overrides_runpath=yes 12099 ;; 12100 12101*nto* | *qnx*) 12102 version_type=qnx 12103 need_lib_prefix=no 12104 need_version=no 12105 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12106 soname_spec='$libname$release$shared_ext$major' 12107 shlibpath_var=LD_LIBRARY_PATH 12108 shlibpath_overrides_runpath=no 12109 hardcode_into_libs=yes 12110 dynamic_linker='ldqnx.so' 12111 ;; 12112 12113openbsd* | bitrig*) 12114 version_type=sunos 12115 sys_lib_dlsearch_path_spec=/usr/lib 12116 need_lib_prefix=no 12117 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 12118 need_version=no 12119 else 12120 need_version=yes 12121 fi 12122 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 12123 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 12124 shlibpath_var=LD_LIBRARY_PATH 12125 shlibpath_overrides_runpath=yes 12126 ;; 12127 12128os2*) 12129 libname_spec='$name' 12130 version_type=windows 12131 shrext_cmds=.dll 12132 need_version=no 12133 need_lib_prefix=no 12134 # OS/2 can only load a DLL with a base name of 8 characters or less. 12135 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 12136 v=$($ECHO $release$versuffix | tr -d .-); 12137 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 12138 $ECHO $n$v`$shared_ext' 12139 library_names_spec='${libname}_dll.$libext' 12140 dynamic_linker='OS/2 ld.exe' 12141 shlibpath_var=BEGINLIBPATH 12142 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 12143 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 12144 postinstall_cmds='base_file=`basename \$file`~ 12145 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 12146 dldir=$destdir/`dirname \$dlpath`~ 12147 test -d \$dldir || mkdir -p \$dldir~ 12148 $install_prog $dir/$dlname \$dldir/$dlname~ 12149 chmod a+x \$dldir/$dlname~ 12150 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 12151 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 12152 fi' 12153 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 12154 dlpath=$dir/\$dldll~ 12155 $RM \$dlpath' 12156 ;; 12157 12158osf3* | osf4* | osf5*) 12159 version_type=osf 12160 need_lib_prefix=no 12161 need_version=no 12162 soname_spec='$libname$release$shared_ext$major' 12163 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12164 shlibpath_var=LD_LIBRARY_PATH 12165 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 12166 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 12167 ;; 12168 12169rdos*) 12170 dynamic_linker=no 12171 ;; 12172 12173solaris*) 12174 version_type=linux # correct to gnu/linux during the next big refactor 12175 need_lib_prefix=no 12176 need_version=no 12177 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12178 soname_spec='$libname$release$shared_ext$major' 12179 shlibpath_var=LD_LIBRARY_PATH 12180 shlibpath_overrides_runpath=yes 12181 hardcode_into_libs=yes 12182 # ldd complains unless libraries are executable 12183 postinstall_cmds='chmod +x $lib' 12184 ;; 12185 12186sunos4*) 12187 version_type=sunos 12188 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 12189 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 12190 shlibpath_var=LD_LIBRARY_PATH 12191 shlibpath_overrides_runpath=yes 12192 if test yes = "$with_gnu_ld"; then 12193 need_lib_prefix=no 12194 fi 12195 need_version=yes 12196 ;; 12197 12198sysv4 | sysv4.3*) 12199 version_type=linux # correct to gnu/linux during the next big refactor 12200 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12201 soname_spec='$libname$release$shared_ext$major' 12202 shlibpath_var=LD_LIBRARY_PATH 12203 case $host_vendor in 12204 sni) 12205 shlibpath_overrides_runpath=no 12206 need_lib_prefix=no 12207 runpath_var=LD_RUN_PATH 12208 ;; 12209 siemens) 12210 need_lib_prefix=no 12211 ;; 12212 motorola) 12213 need_lib_prefix=no 12214 need_version=no 12215 shlibpath_overrides_runpath=no 12216 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 12217 ;; 12218 esac 12219 ;; 12220 12221sysv4*MP*) 12222 if test -d /usr/nec; then 12223 version_type=linux # correct to gnu/linux during the next big refactor 12224 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 12225 soname_spec='$libname$shared_ext.$major' 12226 shlibpath_var=LD_LIBRARY_PATH 12227 fi 12228 ;; 12229 12230sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 12231 version_type=sco 12232 need_lib_prefix=no 12233 need_version=no 12234 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 12235 soname_spec='$libname$release$shared_ext$major' 12236 shlibpath_var=LD_LIBRARY_PATH 12237 shlibpath_overrides_runpath=yes 12238 hardcode_into_libs=yes 12239 if test yes = "$with_gnu_ld"; then 12240 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 12241 else 12242 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 12243 case $host_os in 12244 sco3.2v5*) 12245 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 12246 ;; 12247 esac 12248 fi 12249 sys_lib_dlsearch_path_spec='/usr/lib' 12250 ;; 12251 12252tpf*) 12253 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 12254 version_type=linux # correct to gnu/linux during the next big refactor 12255 need_lib_prefix=no 12256 need_version=no 12257 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12258 shlibpath_var=LD_LIBRARY_PATH 12259 shlibpath_overrides_runpath=no 12260 hardcode_into_libs=yes 12261 ;; 12262 12263uts4*) 12264 version_type=linux # correct to gnu/linux during the next big refactor 12265 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12266 soname_spec='$libname$release$shared_ext$major' 12267 shlibpath_var=LD_LIBRARY_PATH 12268 ;; 12269 12270*) 12271 dynamic_linker=no 12272 ;; 12273esac 12274{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 12275printf "%s\n" "$dynamic_linker" >&6; } 12276test no = "$dynamic_linker" && can_build_shared=no 12277 12278variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 12279if test yes = "$GCC"; then 12280 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 12281fi 12282 12283if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 12284 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 12285fi 12286 12287if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 12288 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 12289fi 12290 12291# remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 12292configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 12293 12294# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 12295func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 12296 12297# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 12298configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 12299 12300 12301 12302 12303 12304 12305 12306 12307 12308 12309 12310 12311 12312 12313 12314 12315 12316 12317 12318 12319 12320 12321 12322 12323 12324 12325 12326 12327 12328 12329 12330 12331 12332 12333 12334 12335 12336 12337 12338 12339 12340 12341 12342 12343 12344 12345 12346 12347 12348 12349 12350 12351 12352 12353 12354 12355 12356 12357 12358 12359 12360 12361 12362 12363 12364 12365 12366 12367 12368 12369 12370 12371 12372 12373 12374 12375 12376 12377 12378 12379 12380 12381 12382 12383 12384 12385 12386 12387 12388 12389 12390 12391 12392 12393 12394 12395 12396 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 12397printf %s "checking how to hardcode library paths into programs... " >&6; } 12398hardcode_action= 12399if test -n "$hardcode_libdir_flag_spec" || 12400 test -n "$runpath_var" || 12401 test yes = "$hardcode_automatic"; then 12402 12403 # We can hardcode non-existent directories. 12404 if test no != "$hardcode_direct" && 12405 # If the only mechanism to avoid hardcoding is shlibpath_var, we 12406 # have to relink, otherwise we might link with an installed library 12407 # when we should be linking with a yet-to-be-installed one 12408 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" && 12409 test no != "$hardcode_minus_L"; then 12410 # Linking always hardcodes the temporary library directory. 12411 hardcode_action=relink 12412 else 12413 # We can link without hardcoding, and we can hardcode nonexisting dirs. 12414 hardcode_action=immediate 12415 fi 12416else 12417 # We cannot hardcode anything, or else we can only hardcode existing 12418 # directories. 12419 hardcode_action=unsupported 12420fi 12421{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 12422printf "%s\n" "$hardcode_action" >&6; } 12423 12424if test relink = "$hardcode_action" || 12425 test yes = "$inherit_rpath"; then 12426 # Fast installation is not supported 12427 enable_fast_install=no 12428elif test yes = "$shlibpath_overrides_runpath" || 12429 test no = "$enable_shared"; then 12430 # Fast installation is not necessary 12431 enable_fast_install=needless 12432fi 12433 12434 12435 12436 12437 12438 12439 if test yes != "$enable_dlopen"; then 12440 enable_dlopen=unknown 12441 enable_dlopen_self=unknown 12442 enable_dlopen_self_static=unknown 12443else 12444 lt_cv_dlopen=no 12445 lt_cv_dlopen_libs= 12446 12447 case $host_os in 12448 beos*) 12449 lt_cv_dlopen=load_add_on 12450 lt_cv_dlopen_libs= 12451 lt_cv_dlopen_self=yes 12452 ;; 12453 12454 mingw* | pw32* | cegcc*) 12455 lt_cv_dlopen=LoadLibrary 12456 lt_cv_dlopen_libs= 12457 ;; 12458 12459 cygwin*) 12460 lt_cv_dlopen=dlopen 12461 lt_cv_dlopen_libs= 12462 ;; 12463 12464 darwin*) 12465 # if libdl is installed we need to link against it 12466 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 12467printf %s "checking for dlopen in -ldl... " >&6; } 12468if test ${ac_cv_lib_dl_dlopen+y} 12469then : 12470 printf %s "(cached) " >&6 12471else case e in #( 12472 e) ac_check_lib_save_LIBS=$LIBS 12473LIBS="-ldl $LIBS" 12474cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12475/* end confdefs.h. */ 12476 12477/* Override any GCC internal prototype to avoid an error. 12478 Use char because int might match the return type of a GCC 12479 builtin and then its argument prototype would still apply. 12480 The 'extern "C"' is for builds by C++ compilers; 12481 although this is not generally supported in C code supporting it here 12482 has little cost and some practical benefit (sr 110532). */ 12483#ifdef __cplusplus 12484extern "C" 12485#endif 12486char dlopen (void); 12487int 12488main (void) 12489{ 12490return dlopen (); 12491 ; 12492 return 0; 12493} 12494_ACEOF 12495if ac_fn_c_try_link "$LINENO" 12496then : 12497 ac_cv_lib_dl_dlopen=yes 12498else case e in #( 12499 e) ac_cv_lib_dl_dlopen=no ;; 12500esac 12501fi 12502rm -f core conftest.err conftest.$ac_objext conftest.beam \ 12503 conftest$ac_exeext conftest.$ac_ext 12504LIBS=$ac_check_lib_save_LIBS ;; 12505esac 12506fi 12507{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 12508printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; } 12509if test "x$ac_cv_lib_dl_dlopen" = xyes 12510then : 12511 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 12512else case e in #( 12513 e) 12514 lt_cv_dlopen=dyld 12515 lt_cv_dlopen_libs= 12516 lt_cv_dlopen_self=yes 12517 ;; 12518esac 12519fi 12520 12521 ;; 12522 12523 tpf*) 12524 # Don't try to run any link tests for TPF. We know it's impossible 12525 # because TPF is a cross-compiler, and we know how we open DSOs. 12526 lt_cv_dlopen=dlopen 12527 lt_cv_dlopen_libs= 12528 lt_cv_dlopen_self=no 12529 ;; 12530 12531 *) 12532 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 12533if test "x$ac_cv_func_shl_load" = xyes 12534then : 12535 lt_cv_dlopen=shl_load 12536else case e in #( 12537 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 12538printf %s "checking for shl_load in -ldld... " >&6; } 12539if test ${ac_cv_lib_dld_shl_load+y} 12540then : 12541 printf %s "(cached) " >&6 12542else case e in #( 12543 e) ac_check_lib_save_LIBS=$LIBS 12544LIBS="-ldld $LIBS" 12545cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12546/* end confdefs.h. */ 12547 12548/* Override any GCC internal prototype to avoid an error. 12549 Use char because int might match the return type of a GCC 12550 builtin and then its argument prototype would still apply. 12551 The 'extern "C"' is for builds by C++ compilers; 12552 although this is not generally supported in C code supporting it here 12553 has little cost and some practical benefit (sr 110532). */ 12554#ifdef __cplusplus 12555extern "C" 12556#endif 12557char shl_load (void); 12558int 12559main (void) 12560{ 12561return shl_load (); 12562 ; 12563 return 0; 12564} 12565_ACEOF 12566if ac_fn_c_try_link "$LINENO" 12567then : 12568 ac_cv_lib_dld_shl_load=yes 12569else case e in #( 12570 e) ac_cv_lib_dld_shl_load=no ;; 12571esac 12572fi 12573rm -f core conftest.err conftest.$ac_objext conftest.beam \ 12574 conftest$ac_exeext conftest.$ac_ext 12575LIBS=$ac_check_lib_save_LIBS ;; 12576esac 12577fi 12578{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 12579printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; } 12580if test "x$ac_cv_lib_dld_shl_load" = xyes 12581then : 12582 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld 12583else case e in #( 12584 e) ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 12585if test "x$ac_cv_func_dlopen" = xyes 12586then : 12587 lt_cv_dlopen=dlopen 12588else case e in #( 12589 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 12590printf %s "checking for dlopen in -ldl... " >&6; } 12591if test ${ac_cv_lib_dl_dlopen+y} 12592then : 12593 printf %s "(cached) " >&6 12594else case e in #( 12595 e) ac_check_lib_save_LIBS=$LIBS 12596LIBS="-ldl $LIBS" 12597cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12598/* end confdefs.h. */ 12599 12600/* Override any GCC internal prototype to avoid an error. 12601 Use char because int might match the return type of a GCC 12602 builtin and then its argument prototype would still apply. 12603 The 'extern "C"' is for builds by C++ compilers; 12604 although this is not generally supported in C code supporting it here 12605 has little cost and some practical benefit (sr 110532). */ 12606#ifdef __cplusplus 12607extern "C" 12608#endif 12609char dlopen (void); 12610int 12611main (void) 12612{ 12613return dlopen (); 12614 ; 12615 return 0; 12616} 12617_ACEOF 12618if ac_fn_c_try_link "$LINENO" 12619then : 12620 ac_cv_lib_dl_dlopen=yes 12621else case e in #( 12622 e) ac_cv_lib_dl_dlopen=no ;; 12623esac 12624fi 12625rm -f core conftest.err conftest.$ac_objext conftest.beam \ 12626 conftest$ac_exeext conftest.$ac_ext 12627LIBS=$ac_check_lib_save_LIBS ;; 12628esac 12629fi 12630{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 12631printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; } 12632if test "x$ac_cv_lib_dl_dlopen" = xyes 12633then : 12634 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 12635else case e in #( 12636 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 12637printf %s "checking for dlopen in -lsvld... " >&6; } 12638if test ${ac_cv_lib_svld_dlopen+y} 12639then : 12640 printf %s "(cached) " >&6 12641else case e in #( 12642 e) ac_check_lib_save_LIBS=$LIBS 12643LIBS="-lsvld $LIBS" 12644cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12645/* end confdefs.h. */ 12646 12647/* Override any GCC internal prototype to avoid an error. 12648 Use char because int might match the return type of a GCC 12649 builtin and then its argument prototype would still apply. 12650 The 'extern "C"' is for builds by C++ compilers; 12651 although this is not generally supported in C code supporting it here 12652 has little cost and some practical benefit (sr 110532). */ 12653#ifdef __cplusplus 12654extern "C" 12655#endif 12656char dlopen (void); 12657int 12658main (void) 12659{ 12660return dlopen (); 12661 ; 12662 return 0; 12663} 12664_ACEOF 12665if ac_fn_c_try_link "$LINENO" 12666then : 12667 ac_cv_lib_svld_dlopen=yes 12668else case e in #( 12669 e) ac_cv_lib_svld_dlopen=no ;; 12670esac 12671fi 12672rm -f core conftest.err conftest.$ac_objext conftest.beam \ 12673 conftest$ac_exeext conftest.$ac_ext 12674LIBS=$ac_check_lib_save_LIBS ;; 12675esac 12676fi 12677{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 12678printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; } 12679if test "x$ac_cv_lib_svld_dlopen" = xyes 12680then : 12681 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld 12682else case e in #( 12683 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 12684printf %s "checking for dld_link in -ldld... " >&6; } 12685if test ${ac_cv_lib_dld_dld_link+y} 12686then : 12687 printf %s "(cached) " >&6 12688else case e in #( 12689 e) ac_check_lib_save_LIBS=$LIBS 12690LIBS="-ldld $LIBS" 12691cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12692/* end confdefs.h. */ 12693 12694/* Override any GCC internal prototype to avoid an error. 12695 Use char because int might match the return type of a GCC 12696 builtin and then its argument prototype would still apply. 12697 The 'extern "C"' is for builds by C++ compilers; 12698 although this is not generally supported in C code supporting it here 12699 has little cost and some practical benefit (sr 110532). */ 12700#ifdef __cplusplus 12701extern "C" 12702#endif 12703char dld_link (void); 12704int 12705main (void) 12706{ 12707return dld_link (); 12708 ; 12709 return 0; 12710} 12711_ACEOF 12712if ac_fn_c_try_link "$LINENO" 12713then : 12714 ac_cv_lib_dld_dld_link=yes 12715else case e in #( 12716 e) ac_cv_lib_dld_dld_link=no ;; 12717esac 12718fi 12719rm -f core conftest.err conftest.$ac_objext conftest.beam \ 12720 conftest$ac_exeext conftest.$ac_ext 12721LIBS=$ac_check_lib_save_LIBS ;; 12722esac 12723fi 12724{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 12725printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; } 12726if test "x$ac_cv_lib_dld_dld_link" = xyes 12727then : 12728 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld 12729fi 12730 12731 ;; 12732esac 12733fi 12734 12735 ;; 12736esac 12737fi 12738 12739 ;; 12740esac 12741fi 12742 12743 ;; 12744esac 12745fi 12746 12747 ;; 12748esac 12749fi 12750 12751 ;; 12752 esac 12753 12754 if test no = "$lt_cv_dlopen"; then 12755 enable_dlopen=no 12756 else 12757 enable_dlopen=yes 12758 fi 12759 12760 case $lt_cv_dlopen in 12761 dlopen) 12762 save_CPPFLAGS=$CPPFLAGS 12763 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 12764 12765 save_LDFLAGS=$LDFLAGS 12766 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 12767 12768 save_LIBS=$LIBS 12769 LIBS="$lt_cv_dlopen_libs $LIBS" 12770 12771 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 12772printf %s "checking whether a program can dlopen itself... " >&6; } 12773if test ${lt_cv_dlopen_self+y} 12774then : 12775 printf %s "(cached) " >&6 12776else case e in #( 12777 e) if test yes = "$cross_compiling"; then : 12778 lt_cv_dlopen_self=cross 12779else 12780 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 12781 lt_status=$lt_dlunknown 12782 cat > conftest.$ac_ext <<_LT_EOF 12783#line $LINENO "configure" 12784#include "confdefs.h" 12785 12786#if HAVE_DLFCN_H 12787#include <dlfcn.h> 12788#endif 12789 12790#include <stdio.h> 12791 12792#ifdef RTLD_GLOBAL 12793# define LT_DLGLOBAL RTLD_GLOBAL 12794#else 12795# ifdef DL_GLOBAL 12796# define LT_DLGLOBAL DL_GLOBAL 12797# else 12798# define LT_DLGLOBAL 0 12799# endif 12800#endif 12801 12802/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 12803 find out it does not work in some platform. */ 12804#ifndef LT_DLLAZY_OR_NOW 12805# ifdef RTLD_LAZY 12806# define LT_DLLAZY_OR_NOW RTLD_LAZY 12807# else 12808# ifdef DL_LAZY 12809# define LT_DLLAZY_OR_NOW DL_LAZY 12810# else 12811# ifdef RTLD_NOW 12812# define LT_DLLAZY_OR_NOW RTLD_NOW 12813# else 12814# ifdef DL_NOW 12815# define LT_DLLAZY_OR_NOW DL_NOW 12816# else 12817# define LT_DLLAZY_OR_NOW 0 12818# endif 12819# endif 12820# endif 12821# endif 12822#endif 12823 12824/* When -fvisibility=hidden is used, assume the code has been annotated 12825 correspondingly for the symbols needed. */ 12826#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 12827int fnord () __attribute__((visibility("default"))); 12828#endif 12829 12830int fnord () { return 42; } 12831int main () 12832{ 12833 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 12834 int status = $lt_dlunknown; 12835 12836 if (self) 12837 { 12838 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 12839 else 12840 { 12841 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 12842 else puts (dlerror ()); 12843 } 12844 /* dlclose (self); */ 12845 } 12846 else 12847 puts (dlerror ()); 12848 12849 return status; 12850} 12851_LT_EOF 12852 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 12853 (eval $ac_link) 2>&5 12854 ac_status=$? 12855 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12856 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 12857 (./conftest; exit; ) >&5 2>/dev/null 12858 lt_status=$? 12859 case x$lt_status in 12860 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 12861 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 12862 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 12863 esac 12864 else : 12865 # compilation failed 12866 lt_cv_dlopen_self=no 12867 fi 12868fi 12869rm -fr conftest* 12870 12871 ;; 12872esac 12873fi 12874{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 12875printf "%s\n" "$lt_cv_dlopen_self" >&6; } 12876 12877 if test yes = "$lt_cv_dlopen_self"; then 12878 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 12879 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 12880printf %s "checking whether a statically linked program can dlopen itself... " >&6; } 12881if test ${lt_cv_dlopen_self_static+y} 12882then : 12883 printf %s "(cached) " >&6 12884else case e in #( 12885 e) if test yes = "$cross_compiling"; then : 12886 lt_cv_dlopen_self_static=cross 12887else 12888 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 12889 lt_status=$lt_dlunknown 12890 cat > conftest.$ac_ext <<_LT_EOF 12891#line $LINENO "configure" 12892#include "confdefs.h" 12893 12894#if HAVE_DLFCN_H 12895#include <dlfcn.h> 12896#endif 12897 12898#include <stdio.h> 12899 12900#ifdef RTLD_GLOBAL 12901# define LT_DLGLOBAL RTLD_GLOBAL 12902#else 12903# ifdef DL_GLOBAL 12904# define LT_DLGLOBAL DL_GLOBAL 12905# else 12906# define LT_DLGLOBAL 0 12907# endif 12908#endif 12909 12910/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 12911 find out it does not work in some platform. */ 12912#ifndef LT_DLLAZY_OR_NOW 12913# ifdef RTLD_LAZY 12914# define LT_DLLAZY_OR_NOW RTLD_LAZY 12915# else 12916# ifdef DL_LAZY 12917# define LT_DLLAZY_OR_NOW DL_LAZY 12918# else 12919# ifdef RTLD_NOW 12920# define LT_DLLAZY_OR_NOW RTLD_NOW 12921# else 12922# ifdef DL_NOW 12923# define LT_DLLAZY_OR_NOW DL_NOW 12924# else 12925# define LT_DLLAZY_OR_NOW 0 12926# endif 12927# endif 12928# endif 12929# endif 12930#endif 12931 12932/* When -fvisibility=hidden is used, assume the code has been annotated 12933 correspondingly for the symbols needed. */ 12934#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 12935int fnord () __attribute__((visibility("default"))); 12936#endif 12937 12938int fnord () { return 42; } 12939int main () 12940{ 12941 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 12942 int status = $lt_dlunknown; 12943 12944 if (self) 12945 { 12946 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 12947 else 12948 { 12949 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 12950 else puts (dlerror ()); 12951 } 12952 /* dlclose (self); */ 12953 } 12954 else 12955 puts (dlerror ()); 12956 12957 return status; 12958} 12959_LT_EOF 12960 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 12961 (eval $ac_link) 2>&5 12962 ac_status=$? 12963 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12964 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 12965 (./conftest; exit; ) >&5 2>/dev/null 12966 lt_status=$? 12967 case x$lt_status in 12968 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 12969 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 12970 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 12971 esac 12972 else : 12973 # compilation failed 12974 lt_cv_dlopen_self_static=no 12975 fi 12976fi 12977rm -fr conftest* 12978 12979 ;; 12980esac 12981fi 12982{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 12983printf "%s\n" "$lt_cv_dlopen_self_static" >&6; } 12984 fi 12985 12986 CPPFLAGS=$save_CPPFLAGS 12987 LDFLAGS=$save_LDFLAGS 12988 LIBS=$save_LIBS 12989 ;; 12990 esac 12991 12992 case $lt_cv_dlopen_self in 12993 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 12994 *) enable_dlopen_self=unknown ;; 12995 esac 12996 12997 case $lt_cv_dlopen_self_static in 12998 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 12999 *) enable_dlopen_self_static=unknown ;; 13000 esac 13001fi 13002 13003 13004 13005 13006 13007 13008 13009 13010 13011 13012 13013 13014 13015 13016 13017 13018 13019striplib= 13020old_striplib= 13021{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 13022printf %s "checking whether stripping libraries is possible... " >&6; } 13023if test -z "$STRIP"; then 13024 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13025printf "%s\n" "no" >&6; } 13026else 13027 if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 13028 old_striplib="$STRIP --strip-debug" 13029 striplib="$STRIP --strip-unneeded" 13030 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13031printf "%s\n" "yes" >&6; } 13032 else 13033 case $host_os in 13034 darwin*) 13035 # FIXME - insert some real tests, host_os isn't really good enough 13036 striplib="$STRIP -x" 13037 old_striplib="$STRIP -S" 13038 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13039printf "%s\n" "yes" >&6; } 13040 ;; 13041 freebsd*) 13042 if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then 13043 old_striplib="$STRIP --strip-debug" 13044 striplib="$STRIP --strip-unneeded" 13045 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13046printf "%s\n" "yes" >&6; } 13047 else 13048 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13049printf "%s\n" "no" >&6; } 13050 fi 13051 ;; 13052 *) 13053 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13054printf "%s\n" "no" >&6; } 13055 ;; 13056 esac 13057 fi 13058fi 13059 13060 13061 13062 13063 13064 13065 13066 13067 13068 13069 13070 13071 # Report what library types will actually be built 13072 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 13073printf %s "checking if libtool supports shared libraries... " >&6; } 13074 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 13075printf "%s\n" "$can_build_shared" >&6; } 13076 13077 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 13078printf %s "checking whether to build shared libraries... " >&6; } 13079 test no = "$can_build_shared" && enable_shared=no 13080 13081 # On AIX, shared libraries and static libraries use the same namespace, and 13082 # are all built from PIC. 13083 case $host_os in 13084 aix3*) 13085 test yes = "$enable_shared" && enable_static=no 13086 if test -n "$RANLIB"; then 13087 archive_cmds="$archive_cmds~\$RANLIB \$lib" 13088 postinstall_cmds='$RANLIB $lib' 13089 fi 13090 ;; 13091 13092 aix[4-9]*) 13093 if test ia64 != "$host_cpu"; then 13094 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in 13095 yes,aix,yes) ;; # shared object as lib.so file only 13096 yes,svr4,*) ;; # shared object as lib.so archive member only 13097 yes,*) enable_static=no ;; # shared object in lib.a archive as well 13098 esac 13099 fi 13100 ;; 13101 esac 13102 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 13103printf "%s\n" "$enable_shared" >&6; } 13104 13105 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 13106printf %s "checking whether to build static libraries... " >&6; } 13107 # Make sure either enable_shared or enable_static is yes. 13108 test yes = "$enable_shared" || enable_static=yes 13109 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 13110printf "%s\n" "$enable_static" >&6; } 13111 13112 13113 13114 13115fi 13116ac_ext=c 13117ac_cpp='$CPP $CPPFLAGS' 13118ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13119ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13120ac_compiler_gnu=$ac_cv_c_compiler_gnu 13121 13122CC=$lt_save_CC 13123 13124 13125 13126 13127 13128 13129 13130 13131 13132 13133 13134 13135 13136 13137 13138 ac_config_commands="$ac_config_commands libtool" 13139 13140 13141 13142 13143# Only expand once: 13144 13145 13146 13147# Require xorg-macros minimum of 1.12 for DocBook external references 13148 13149 13150 13151 13152 13153 13154 13155 13156 13157 13158 13159{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5 13160printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; } 13161if test ${ac_cv_c_undeclared_builtin_options+y} 13162then : 13163 printf %s "(cached) " >&6 13164else case e in #( 13165 e) ac_save_CFLAGS=$CFLAGS 13166 ac_cv_c_undeclared_builtin_options='cannot detect' 13167 for ac_arg in '' -fno-builtin; do 13168 CFLAGS="$ac_save_CFLAGS $ac_arg" 13169 # This test program should *not* compile successfully. 13170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13171/* end confdefs.h. */ 13172 13173int 13174main (void) 13175{ 13176(void) strchr; 13177 ; 13178 return 0; 13179} 13180_ACEOF 13181if ac_fn_c_try_compile "$LINENO" 13182then : 13183 13184else case e in #( 13185 e) # This test program should compile successfully. 13186 # No library function is consistently available on 13187 # freestanding implementations, so test against a dummy 13188 # declaration. Include always-available headers on the 13189 # off chance that they somehow elicit warnings. 13190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13191/* end confdefs.h. */ 13192#include <float.h> 13193#include <limits.h> 13194#include <stdarg.h> 13195#include <stddef.h> 13196extern void ac_decl (int, char *); 13197 13198int 13199main (void) 13200{ 13201(void) ac_decl (0, (char *) 0); 13202 (void) ac_decl; 13203 13204 ; 13205 return 0; 13206} 13207_ACEOF 13208if ac_fn_c_try_compile "$LINENO" 13209then : 13210 if test x"$ac_arg" = x 13211then : 13212 ac_cv_c_undeclared_builtin_options='none needed' 13213else case e in #( 13214 e) ac_cv_c_undeclared_builtin_options=$ac_arg ;; 13215esac 13216fi 13217 break 13218fi 13219rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 13220esac 13221fi 13222rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13223 done 13224 CFLAGS=$ac_save_CFLAGS 13225 ;; 13226esac 13227fi 13228{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5 13229printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; } 13230 case $ac_cv_c_undeclared_builtin_options in #( 13231 'cannot detect') : 13232 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 13233printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 13234as_fn_error $? "cannot make $CC report undeclared builtins 13235See 'config.log' for more details" "$LINENO" 5; } ;; #( 13236 'none needed') : 13237 ac_c_undeclared_builtin_options='' ;; #( 13238 *) : 13239 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;; 13240esac 13241 13242 13243 13244 13245 13246ac_fn_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 13247if test "x$ac_cv_have_decl___clang__" = xyes 13248then : 13249 CLANGCC="yes" 13250else case e in #( 13251 e) CLANGCC="no" ;; 13252esac 13253fi 13254ac_fn_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 13255if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes 13256then : 13257 INTELCC="yes" 13258else case e in #( 13259 e) INTELCC="no" ;; 13260esac 13261fi 13262ac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 13263if test "x$ac_cv_have_decl___SUNPRO_C" = xyes 13264then : 13265 SUNCC="yes" 13266else case e in #( 13267 e) SUNCC="no" ;; 13268esac 13269fi 13270 13271 13272 13273 13274 13275 13276 13277 13278if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 13279 if test -n "$ac_tool_prefix"; then 13280 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 13281set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 13282{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13283printf %s "checking for $ac_word... " >&6; } 13284if test ${ac_cv_path_PKG_CONFIG+y} 13285then : 13286 printf %s "(cached) " >&6 13287else case e in #( 13288 e) case $PKG_CONFIG in 13289 [\\/]* | ?:[\\/]*) 13290 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 13291 ;; 13292 *) 13293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13294for as_dir in $PATH 13295do 13296 IFS=$as_save_IFS 13297 case $as_dir in #((( 13298 '') as_dir=./ ;; 13299 */) ;; 13300 *) as_dir=$as_dir/ ;; 13301 esac 13302 for ac_exec_ext in '' $ac_executable_extensions; do 13303 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 13304 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 13305 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 13306 break 2 13307 fi 13308done 13309 done 13310IFS=$as_save_IFS 13311 13312 ;; 13313esac ;; 13314esac 13315fi 13316PKG_CONFIG=$ac_cv_path_PKG_CONFIG 13317if test -n "$PKG_CONFIG"; then 13318 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 13319printf "%s\n" "$PKG_CONFIG" >&6; } 13320else 13321 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13322printf "%s\n" "no" >&6; } 13323fi 13324 13325 13326fi 13327if test -z "$ac_cv_path_PKG_CONFIG"; then 13328 ac_pt_PKG_CONFIG=$PKG_CONFIG 13329 # Extract the first word of "pkg-config", so it can be a program name with args. 13330set dummy pkg-config; ac_word=$2 13331{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13332printf %s "checking for $ac_word... " >&6; } 13333if test ${ac_cv_path_ac_pt_PKG_CONFIG+y} 13334then : 13335 printf %s "(cached) " >&6 13336else case e in #( 13337 e) case $ac_pt_PKG_CONFIG in 13338 [\\/]* | ?:[\\/]*) 13339 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 13340 ;; 13341 *) 13342 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13343for as_dir in $PATH 13344do 13345 IFS=$as_save_IFS 13346 case $as_dir in #((( 13347 '') as_dir=./ ;; 13348 */) ;; 13349 *) as_dir=$as_dir/ ;; 13350 esac 13351 for ac_exec_ext in '' $ac_executable_extensions; do 13352 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 13353 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 13354 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 13355 break 2 13356 fi 13357done 13358 done 13359IFS=$as_save_IFS 13360 13361 ;; 13362esac ;; 13363esac 13364fi 13365ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 13366if test -n "$ac_pt_PKG_CONFIG"; then 13367 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 13368printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; } 13369else 13370 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13371printf "%s\n" "no" >&6; } 13372fi 13373 13374 if test "x$ac_pt_PKG_CONFIG" = x; then 13375 PKG_CONFIG="" 13376 else 13377 case $cross_compiling:$ac_tool_warned in 13378yes:) 13379{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13380printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13381ac_tool_warned=yes ;; 13382esac 13383 PKG_CONFIG=$ac_pt_PKG_CONFIG 13384 fi 13385else 13386 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 13387fi 13388 13389fi 13390if test -n "$PKG_CONFIG"; then 13391 _pkg_min_version=0.9.0 13392 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 13393printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; } 13394 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 13395 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13396printf "%s\n" "yes" >&6; } 13397 else 13398 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13399printf "%s\n" "no" >&6; } 13400 PKG_CONFIG="" 13401 fi 13402fi 13403 13404 13405 13406 13407 13408# Check whether --enable-selective-werror was given. 13409if test ${enable_selective_werror+y} 13410then : 13411 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval 13412else case e in #( 13413 e) SELECTIVE_WERROR=yes ;; 13414esac 13415fi 13416 13417 13418 13419 13420 13421# -v is too short to test reliably with XORG_TESTSET_CFLAG 13422if test "x$SUNCC" = "xyes"; then 13423 BASE_CFLAGS="-v" 13424else 13425 BASE_CFLAGS="" 13426fi 13427 13428# This chunk of warnings were those that existed in the legacy CWARNFLAGS 13429 13430 13431 13432 13433 13434 13435 13436 13437 13438 13439 13440 13441 13442xorg_testset_save_CFLAGS="$CFLAGS" 13443 13444if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13445 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13446 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13447printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13448if test ${xorg_cv_cc_flag_unknown_warning_option+y} 13449then : 13450 printf %s "(cached) " >&6 13451else case e in #( 13452 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13453/* end confdefs.h. */ 13454int i; 13455_ACEOF 13456if ac_fn_c_try_compile "$LINENO" 13457then : 13458 xorg_cv_cc_flag_unknown_warning_option=yes 13459else case e in #( 13460 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 13461esac 13462fi 13463rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 13464esac 13465fi 13466{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13467printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13468 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13469 CFLAGS="$xorg_testset_save_CFLAGS" 13470fi 13471 13472if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13473 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13474 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13475 fi 13476 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13477 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13478printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13479if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 13480then : 13481 printf %s "(cached) " >&6 13482else case e in #( 13483 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13484/* end confdefs.h. */ 13485int i; 13486_ACEOF 13487if ac_fn_c_try_compile "$LINENO" 13488then : 13489 xorg_cv_cc_flag_unused_command_line_argument=yes 13490else case e in #( 13491 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 13492esac 13493fi 13494rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 13495esac 13496fi 13497{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13498printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13499 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13500 CFLAGS="$xorg_testset_save_CFLAGS" 13501fi 13502 13503found="no" 13504 13505 if test $found = "no" ; then 13506 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13507 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13508 fi 13509 13510 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13511 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13512 fi 13513 13514 CFLAGS="$CFLAGS -Wall" 13515 13516 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5 13517printf %s "checking if $CC supports -Wall... " >&6; } 13518 cacheid=xorg_cv_cc_flag__Wall 13519 if eval test \${$cacheid+y} 13520then : 13521 printf %s "(cached) " >&6 13522else case e in #( 13523 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13524/* end confdefs.h. */ 13525int i; 13526int 13527main (void) 13528{ 13529 13530 ; 13531 return 0; 13532} 13533_ACEOF 13534if ac_fn_c_try_link "$LINENO" 13535then : 13536 eval $cacheid=yes 13537else case e in #( 13538 e) eval $cacheid=no ;; 13539esac 13540fi 13541rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13542 conftest$ac_exeext conftest.$ac_ext ;; 13543esac 13544fi 13545 13546 13547 CFLAGS="$xorg_testset_save_CFLAGS" 13548 13549 eval supported=\$$cacheid 13550 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13551printf "%s\n" "$supported" >&6; } 13552 if test "$supported" = "yes" ; then 13553 BASE_CFLAGS="$BASE_CFLAGS -Wall" 13554 found="yes" 13555 fi 13556 fi 13557 13558 13559 13560 13561 13562 13563 13564 13565 13566 13567 13568 13569 13570 13571 13572xorg_testset_save_CFLAGS="$CFLAGS" 13573 13574if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13575 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13576 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13577printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13578if test ${xorg_cv_cc_flag_unknown_warning_option+y} 13579then : 13580 printf %s "(cached) " >&6 13581else case e in #( 13582 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13583/* end confdefs.h. */ 13584int i; 13585_ACEOF 13586if ac_fn_c_try_compile "$LINENO" 13587then : 13588 xorg_cv_cc_flag_unknown_warning_option=yes 13589else case e in #( 13590 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 13591esac 13592fi 13593rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 13594esac 13595fi 13596{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13597printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13598 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13599 CFLAGS="$xorg_testset_save_CFLAGS" 13600fi 13601 13602if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13603 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13604 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13605 fi 13606 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13607 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13608printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13609if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 13610then : 13611 printf %s "(cached) " >&6 13612else case e in #( 13613 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13614/* end confdefs.h. */ 13615int i; 13616_ACEOF 13617if ac_fn_c_try_compile "$LINENO" 13618then : 13619 xorg_cv_cc_flag_unused_command_line_argument=yes 13620else case e in #( 13621 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 13622esac 13623fi 13624rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 13625esac 13626fi 13627{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13628printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13629 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13630 CFLAGS="$xorg_testset_save_CFLAGS" 13631fi 13632 13633found="no" 13634 13635 if test $found = "no" ; then 13636 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13637 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13638 fi 13639 13640 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13641 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13642 fi 13643 13644 CFLAGS="$CFLAGS -Wpointer-arith" 13645 13646 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5 13647printf %s "checking if $CC supports -Wpointer-arith... " >&6; } 13648 cacheid=xorg_cv_cc_flag__Wpointer_arith 13649 if eval test \${$cacheid+y} 13650then : 13651 printf %s "(cached) " >&6 13652else case e in #( 13653 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13654/* end confdefs.h. */ 13655int i; 13656int 13657main (void) 13658{ 13659 13660 ; 13661 return 0; 13662} 13663_ACEOF 13664if ac_fn_c_try_link "$LINENO" 13665then : 13666 eval $cacheid=yes 13667else case e in #( 13668 e) eval $cacheid=no ;; 13669esac 13670fi 13671rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13672 conftest$ac_exeext conftest.$ac_ext ;; 13673esac 13674fi 13675 13676 13677 CFLAGS="$xorg_testset_save_CFLAGS" 13678 13679 eval supported=\$$cacheid 13680 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13681printf "%s\n" "$supported" >&6; } 13682 if test "$supported" = "yes" ; then 13683 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith" 13684 found="yes" 13685 fi 13686 fi 13687 13688 13689 13690 13691 13692 13693 13694 13695 13696 13697 13698 13699 13700 13701 13702xorg_testset_save_CFLAGS="$CFLAGS" 13703 13704if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13705 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13706 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13707printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13708if test ${xorg_cv_cc_flag_unknown_warning_option+y} 13709then : 13710 printf %s "(cached) " >&6 13711else case e in #( 13712 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13713/* end confdefs.h. */ 13714int i; 13715_ACEOF 13716if ac_fn_c_try_compile "$LINENO" 13717then : 13718 xorg_cv_cc_flag_unknown_warning_option=yes 13719else case e in #( 13720 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 13721esac 13722fi 13723rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 13724esac 13725fi 13726{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13727printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13728 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13729 CFLAGS="$xorg_testset_save_CFLAGS" 13730fi 13731 13732if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13733 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13734 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13735 fi 13736 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13737 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13738printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13739if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 13740then : 13741 printf %s "(cached) " >&6 13742else case e in #( 13743 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13744/* end confdefs.h. */ 13745int i; 13746_ACEOF 13747if ac_fn_c_try_compile "$LINENO" 13748then : 13749 xorg_cv_cc_flag_unused_command_line_argument=yes 13750else case e in #( 13751 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 13752esac 13753fi 13754rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 13755esac 13756fi 13757{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13758printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13759 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13760 CFLAGS="$xorg_testset_save_CFLAGS" 13761fi 13762 13763found="no" 13764 13765 if test $found = "no" ; then 13766 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13767 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13768 fi 13769 13770 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13771 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13772 fi 13773 13774 CFLAGS="$CFLAGS -Wmissing-declarations" 13775 13776 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5 13777printf %s "checking if $CC supports -Wmissing-declarations... " >&6; } 13778 cacheid=xorg_cv_cc_flag__Wmissing_declarations 13779 if eval test \${$cacheid+y} 13780then : 13781 printf %s "(cached) " >&6 13782else case e in #( 13783 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13784/* end confdefs.h. */ 13785int i; 13786int 13787main (void) 13788{ 13789 13790 ; 13791 return 0; 13792} 13793_ACEOF 13794if ac_fn_c_try_link "$LINENO" 13795then : 13796 eval $cacheid=yes 13797else case e in #( 13798 e) eval $cacheid=no ;; 13799esac 13800fi 13801rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13802 conftest$ac_exeext conftest.$ac_ext ;; 13803esac 13804fi 13805 13806 13807 CFLAGS="$xorg_testset_save_CFLAGS" 13808 13809 eval supported=\$$cacheid 13810 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13811printf "%s\n" "$supported" >&6; } 13812 if test "$supported" = "yes" ; then 13813 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations" 13814 found="yes" 13815 fi 13816 fi 13817 13818 13819 13820 13821 13822 13823 13824 13825 13826 13827 13828 13829 13830 13831 13832xorg_testset_save_CFLAGS="$CFLAGS" 13833 13834if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13835 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13836 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13837printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13838if test ${xorg_cv_cc_flag_unknown_warning_option+y} 13839then : 13840 printf %s "(cached) " >&6 13841else case e in #( 13842 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13843/* end confdefs.h. */ 13844int i; 13845_ACEOF 13846if ac_fn_c_try_compile "$LINENO" 13847then : 13848 xorg_cv_cc_flag_unknown_warning_option=yes 13849else case e in #( 13850 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 13851esac 13852fi 13853rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 13854esac 13855fi 13856{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13857printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13858 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13859 CFLAGS="$xorg_testset_save_CFLAGS" 13860fi 13861 13862if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13863 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13864 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13865 fi 13866 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13867 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13868printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13869if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 13870then : 13871 printf %s "(cached) " >&6 13872else case e in #( 13873 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13874/* end confdefs.h. */ 13875int i; 13876_ACEOF 13877if ac_fn_c_try_compile "$LINENO" 13878then : 13879 xorg_cv_cc_flag_unused_command_line_argument=yes 13880else case e in #( 13881 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 13882esac 13883fi 13884rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 13885esac 13886fi 13887{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13888printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13889 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13890 CFLAGS="$xorg_testset_save_CFLAGS" 13891fi 13892 13893found="no" 13894 13895 if test $found = "no" ; then 13896 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13897 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13898 fi 13899 13900 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13901 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13902 fi 13903 13904 CFLAGS="$CFLAGS -Wformat=2" 13905 13906 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5 13907printf %s "checking if $CC supports -Wformat=2... " >&6; } 13908 cacheid=xorg_cv_cc_flag__Wformat_2 13909 if eval test \${$cacheid+y} 13910then : 13911 printf %s "(cached) " >&6 13912else case e in #( 13913 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13914/* end confdefs.h. */ 13915int i; 13916int 13917main (void) 13918{ 13919 13920 ; 13921 return 0; 13922} 13923_ACEOF 13924if ac_fn_c_try_link "$LINENO" 13925then : 13926 eval $cacheid=yes 13927else case e in #( 13928 e) eval $cacheid=no ;; 13929esac 13930fi 13931rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13932 conftest$ac_exeext conftest.$ac_ext ;; 13933esac 13934fi 13935 13936 13937 CFLAGS="$xorg_testset_save_CFLAGS" 13938 13939 eval supported=\$$cacheid 13940 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13941printf "%s\n" "$supported" >&6; } 13942 if test "$supported" = "yes" ; then 13943 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2" 13944 found="yes" 13945 fi 13946 fi 13947 13948 if test $found = "no" ; then 13949 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13950 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13951 fi 13952 13953 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13954 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13955 fi 13956 13957 CFLAGS="$CFLAGS -Wformat" 13958 13959 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5 13960printf %s "checking if $CC supports -Wformat... " >&6; } 13961 cacheid=xorg_cv_cc_flag__Wformat 13962 if eval test \${$cacheid+y} 13963then : 13964 printf %s "(cached) " >&6 13965else case e in #( 13966 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13967/* end confdefs.h. */ 13968int i; 13969int 13970main (void) 13971{ 13972 13973 ; 13974 return 0; 13975} 13976_ACEOF 13977if ac_fn_c_try_link "$LINENO" 13978then : 13979 eval $cacheid=yes 13980else case e in #( 13981 e) eval $cacheid=no ;; 13982esac 13983fi 13984rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13985 conftest$ac_exeext conftest.$ac_ext ;; 13986esac 13987fi 13988 13989 13990 CFLAGS="$xorg_testset_save_CFLAGS" 13991 13992 eval supported=\$$cacheid 13993 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13994printf "%s\n" "$supported" >&6; } 13995 if test "$supported" = "yes" ; then 13996 BASE_CFLAGS="$BASE_CFLAGS -Wformat" 13997 found="yes" 13998 fi 13999 fi 14000 14001 14002 14003 14004 14005 14006 14007 14008 14009 14010 14011 14012 14013 14014 14015 14016 14017xorg_testset_save_CFLAGS="$CFLAGS" 14018 14019if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14020 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14021 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14022printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14023if test ${xorg_cv_cc_flag_unknown_warning_option+y} 14024then : 14025 printf %s "(cached) " >&6 14026else case e in #( 14027 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14028/* end confdefs.h. */ 14029int i; 14030_ACEOF 14031if ac_fn_c_try_compile "$LINENO" 14032then : 14033 xorg_cv_cc_flag_unknown_warning_option=yes 14034else case e in #( 14035 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 14036esac 14037fi 14038rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 14039esac 14040fi 14041{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14042printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14043 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14044 CFLAGS="$xorg_testset_save_CFLAGS" 14045fi 14046 14047if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14048 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14049 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14050 fi 14051 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14052 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14053printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14054if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 14055then : 14056 printf %s "(cached) " >&6 14057else case e in #( 14058 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14059/* end confdefs.h. */ 14060int i; 14061_ACEOF 14062if ac_fn_c_try_compile "$LINENO" 14063then : 14064 xorg_cv_cc_flag_unused_command_line_argument=yes 14065else case e in #( 14066 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 14067esac 14068fi 14069rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 14070esac 14071fi 14072{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14073printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14074 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14075 CFLAGS="$xorg_testset_save_CFLAGS" 14076fi 14077 14078found="no" 14079 14080 if test $found = "no" ; then 14081 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14082 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14083 fi 14084 14085 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14086 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14087 fi 14088 14089 CFLAGS="$CFLAGS -Wstrict-prototypes" 14090 14091 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5 14092printf %s "checking if $CC supports -Wstrict-prototypes... " >&6; } 14093 cacheid=xorg_cv_cc_flag__Wstrict_prototypes 14094 if eval test \${$cacheid+y} 14095then : 14096 printf %s "(cached) " >&6 14097else case e in #( 14098 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14099/* end confdefs.h. */ 14100int i; 14101int 14102main (void) 14103{ 14104 14105 ; 14106 return 0; 14107} 14108_ACEOF 14109if ac_fn_c_try_link "$LINENO" 14110then : 14111 eval $cacheid=yes 14112else case e in #( 14113 e) eval $cacheid=no ;; 14114esac 14115fi 14116rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14117 conftest$ac_exeext conftest.$ac_ext ;; 14118esac 14119fi 14120 14121 14122 CFLAGS="$xorg_testset_save_CFLAGS" 14123 14124 eval supported=\$$cacheid 14125 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14126printf "%s\n" "$supported" >&6; } 14127 if test "$supported" = "yes" ; then 14128 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes" 14129 found="yes" 14130 fi 14131 fi 14132 14133 14134 14135 14136 14137 14138 14139 14140 14141 14142 14143 14144 14145 14146 14147xorg_testset_save_CFLAGS="$CFLAGS" 14148 14149if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14150 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14151 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14152printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14153if test ${xorg_cv_cc_flag_unknown_warning_option+y} 14154then : 14155 printf %s "(cached) " >&6 14156else case e in #( 14157 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14158/* end confdefs.h. */ 14159int i; 14160_ACEOF 14161if ac_fn_c_try_compile "$LINENO" 14162then : 14163 xorg_cv_cc_flag_unknown_warning_option=yes 14164else case e in #( 14165 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 14166esac 14167fi 14168rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 14169esac 14170fi 14171{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14172printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14173 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14174 CFLAGS="$xorg_testset_save_CFLAGS" 14175fi 14176 14177if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14178 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14179 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14180 fi 14181 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14182 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14183printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14184if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 14185then : 14186 printf %s "(cached) " >&6 14187else case e in #( 14188 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14189/* end confdefs.h. */ 14190int i; 14191_ACEOF 14192if ac_fn_c_try_compile "$LINENO" 14193then : 14194 xorg_cv_cc_flag_unused_command_line_argument=yes 14195else case e in #( 14196 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 14197esac 14198fi 14199rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 14200esac 14201fi 14202{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14203printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14204 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14205 CFLAGS="$xorg_testset_save_CFLAGS" 14206fi 14207 14208found="no" 14209 14210 if test $found = "no" ; then 14211 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14212 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14213 fi 14214 14215 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14216 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14217 fi 14218 14219 CFLAGS="$CFLAGS -Wmissing-prototypes" 14220 14221 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5 14222printf %s "checking if $CC supports -Wmissing-prototypes... " >&6; } 14223 cacheid=xorg_cv_cc_flag__Wmissing_prototypes 14224 if eval test \${$cacheid+y} 14225then : 14226 printf %s "(cached) " >&6 14227else case e in #( 14228 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14229/* end confdefs.h. */ 14230int i; 14231int 14232main (void) 14233{ 14234 14235 ; 14236 return 0; 14237} 14238_ACEOF 14239if ac_fn_c_try_link "$LINENO" 14240then : 14241 eval $cacheid=yes 14242else case e in #( 14243 e) eval $cacheid=no ;; 14244esac 14245fi 14246rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14247 conftest$ac_exeext conftest.$ac_ext ;; 14248esac 14249fi 14250 14251 14252 CFLAGS="$xorg_testset_save_CFLAGS" 14253 14254 eval supported=\$$cacheid 14255 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14256printf "%s\n" "$supported" >&6; } 14257 if test "$supported" = "yes" ; then 14258 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes" 14259 found="yes" 14260 fi 14261 fi 14262 14263 14264 14265 14266 14267 14268 14269 14270 14271 14272 14273 14274 14275 14276 14277xorg_testset_save_CFLAGS="$CFLAGS" 14278 14279if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14280 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14281 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14282printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14283if test ${xorg_cv_cc_flag_unknown_warning_option+y} 14284then : 14285 printf %s "(cached) " >&6 14286else case e in #( 14287 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14288/* end confdefs.h. */ 14289int i; 14290_ACEOF 14291if ac_fn_c_try_compile "$LINENO" 14292then : 14293 xorg_cv_cc_flag_unknown_warning_option=yes 14294else case e in #( 14295 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 14296esac 14297fi 14298rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 14299esac 14300fi 14301{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14302printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14303 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14304 CFLAGS="$xorg_testset_save_CFLAGS" 14305fi 14306 14307if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14308 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14309 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14310 fi 14311 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14312 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14313printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14314if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 14315then : 14316 printf %s "(cached) " >&6 14317else case e in #( 14318 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14319/* end confdefs.h. */ 14320int i; 14321_ACEOF 14322if ac_fn_c_try_compile "$LINENO" 14323then : 14324 xorg_cv_cc_flag_unused_command_line_argument=yes 14325else case e in #( 14326 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 14327esac 14328fi 14329rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 14330esac 14331fi 14332{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14333printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14334 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14335 CFLAGS="$xorg_testset_save_CFLAGS" 14336fi 14337 14338found="no" 14339 14340 if test $found = "no" ; then 14341 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14342 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14343 fi 14344 14345 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14346 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14347 fi 14348 14349 CFLAGS="$CFLAGS -Wnested-externs" 14350 14351 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5 14352printf %s "checking if $CC supports -Wnested-externs... " >&6; } 14353 cacheid=xorg_cv_cc_flag__Wnested_externs 14354 if eval test \${$cacheid+y} 14355then : 14356 printf %s "(cached) " >&6 14357else case e in #( 14358 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14359/* end confdefs.h. */ 14360int i; 14361int 14362main (void) 14363{ 14364 14365 ; 14366 return 0; 14367} 14368_ACEOF 14369if ac_fn_c_try_link "$LINENO" 14370then : 14371 eval $cacheid=yes 14372else case e in #( 14373 e) eval $cacheid=no ;; 14374esac 14375fi 14376rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14377 conftest$ac_exeext conftest.$ac_ext ;; 14378esac 14379fi 14380 14381 14382 CFLAGS="$xorg_testset_save_CFLAGS" 14383 14384 eval supported=\$$cacheid 14385 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14386printf "%s\n" "$supported" >&6; } 14387 if test "$supported" = "yes" ; then 14388 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs" 14389 found="yes" 14390 fi 14391 fi 14392 14393 14394 14395 14396 14397 14398 14399 14400 14401 14402 14403 14404 14405 14406 14407xorg_testset_save_CFLAGS="$CFLAGS" 14408 14409if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14410 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14411 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14412printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14413if test ${xorg_cv_cc_flag_unknown_warning_option+y} 14414then : 14415 printf %s "(cached) " >&6 14416else case e in #( 14417 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14418/* end confdefs.h. */ 14419int i; 14420_ACEOF 14421if ac_fn_c_try_compile "$LINENO" 14422then : 14423 xorg_cv_cc_flag_unknown_warning_option=yes 14424else case e in #( 14425 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 14426esac 14427fi 14428rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 14429esac 14430fi 14431{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14432printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14433 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14434 CFLAGS="$xorg_testset_save_CFLAGS" 14435fi 14436 14437if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14438 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14439 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14440 fi 14441 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14442 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14443printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14444if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 14445then : 14446 printf %s "(cached) " >&6 14447else case e in #( 14448 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14449/* end confdefs.h. */ 14450int i; 14451_ACEOF 14452if ac_fn_c_try_compile "$LINENO" 14453then : 14454 xorg_cv_cc_flag_unused_command_line_argument=yes 14455else case e in #( 14456 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 14457esac 14458fi 14459rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 14460esac 14461fi 14462{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14463printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14464 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14465 CFLAGS="$xorg_testset_save_CFLAGS" 14466fi 14467 14468found="no" 14469 14470 if test $found = "no" ; then 14471 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14472 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14473 fi 14474 14475 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14476 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14477 fi 14478 14479 CFLAGS="$CFLAGS -Wbad-function-cast" 14480 14481 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5 14482printf %s "checking if $CC supports -Wbad-function-cast... " >&6; } 14483 cacheid=xorg_cv_cc_flag__Wbad_function_cast 14484 if eval test \${$cacheid+y} 14485then : 14486 printf %s "(cached) " >&6 14487else case e in #( 14488 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14489/* end confdefs.h. */ 14490int i; 14491int 14492main (void) 14493{ 14494 14495 ; 14496 return 0; 14497} 14498_ACEOF 14499if ac_fn_c_try_link "$LINENO" 14500then : 14501 eval $cacheid=yes 14502else case e in #( 14503 e) eval $cacheid=no ;; 14504esac 14505fi 14506rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14507 conftest$ac_exeext conftest.$ac_ext ;; 14508esac 14509fi 14510 14511 14512 CFLAGS="$xorg_testset_save_CFLAGS" 14513 14514 eval supported=\$$cacheid 14515 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14516printf "%s\n" "$supported" >&6; } 14517 if test "$supported" = "yes" ; then 14518 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast" 14519 found="yes" 14520 fi 14521 fi 14522 14523 14524 14525 14526 14527 14528 14529 14530 14531 14532 14533 14534 14535 14536 14537xorg_testset_save_CFLAGS="$CFLAGS" 14538 14539if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14540 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14541 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14542printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14543if test ${xorg_cv_cc_flag_unknown_warning_option+y} 14544then : 14545 printf %s "(cached) " >&6 14546else case e in #( 14547 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14548/* end confdefs.h. */ 14549int i; 14550_ACEOF 14551if ac_fn_c_try_compile "$LINENO" 14552then : 14553 xorg_cv_cc_flag_unknown_warning_option=yes 14554else case e in #( 14555 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 14556esac 14557fi 14558rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 14559esac 14560fi 14561{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14562printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14563 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14564 CFLAGS="$xorg_testset_save_CFLAGS" 14565fi 14566 14567if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14568 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14569 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14570 fi 14571 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14572 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14573printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14574if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 14575then : 14576 printf %s "(cached) " >&6 14577else case e in #( 14578 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14579/* end confdefs.h. */ 14580int i; 14581_ACEOF 14582if ac_fn_c_try_compile "$LINENO" 14583then : 14584 xorg_cv_cc_flag_unused_command_line_argument=yes 14585else case e in #( 14586 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 14587esac 14588fi 14589rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 14590esac 14591fi 14592{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14593printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14594 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14595 CFLAGS="$xorg_testset_save_CFLAGS" 14596fi 14597 14598found="no" 14599 14600 if test $found = "no" ; then 14601 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14602 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14603 fi 14604 14605 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14606 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14607 fi 14608 14609 CFLAGS="$CFLAGS -Wold-style-definition" 14610 14611 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5 14612printf %s "checking if $CC supports -Wold-style-definition... " >&6; } 14613 cacheid=xorg_cv_cc_flag__Wold_style_definition 14614 if eval test \${$cacheid+y} 14615then : 14616 printf %s "(cached) " >&6 14617else case e in #( 14618 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14619/* end confdefs.h. */ 14620int i; 14621int 14622main (void) 14623{ 14624 14625 ; 14626 return 0; 14627} 14628_ACEOF 14629if ac_fn_c_try_link "$LINENO" 14630then : 14631 eval $cacheid=yes 14632else case e in #( 14633 e) eval $cacheid=no ;; 14634esac 14635fi 14636rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14637 conftest$ac_exeext conftest.$ac_ext ;; 14638esac 14639fi 14640 14641 14642 CFLAGS="$xorg_testset_save_CFLAGS" 14643 14644 eval supported=\$$cacheid 14645 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14646printf "%s\n" "$supported" >&6; } 14647 if test "$supported" = "yes" ; then 14648 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition" 14649 found="yes" 14650 fi 14651 fi 14652 14653 if test $found = "no" ; then 14654 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14655 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14656 fi 14657 14658 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14659 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14660 fi 14661 14662 CFLAGS="$CFLAGS -fd" 14663 14664 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5 14665printf %s "checking if $CC supports -fd... " >&6; } 14666 cacheid=xorg_cv_cc_flag__fd 14667 if eval test \${$cacheid+y} 14668then : 14669 printf %s "(cached) " >&6 14670else case e in #( 14671 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14672/* end confdefs.h. */ 14673int i; 14674int 14675main (void) 14676{ 14677 14678 ; 14679 return 0; 14680} 14681_ACEOF 14682if ac_fn_c_try_link "$LINENO" 14683then : 14684 eval $cacheid=yes 14685else case e in #( 14686 e) eval $cacheid=no ;; 14687esac 14688fi 14689rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14690 conftest$ac_exeext conftest.$ac_ext ;; 14691esac 14692fi 14693 14694 14695 CFLAGS="$xorg_testset_save_CFLAGS" 14696 14697 eval supported=\$$cacheid 14698 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14699printf "%s\n" "$supported" >&6; } 14700 if test "$supported" = "yes" ; then 14701 BASE_CFLAGS="$BASE_CFLAGS -fd" 14702 found="yes" 14703 fi 14704 fi 14705 14706 14707 14708 14709 14710 14711 14712 14713 14714 14715 14716 14717 14718 14719 14720xorg_testset_save_CFLAGS="$CFLAGS" 14721 14722if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14723 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14724 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14725printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14726if test ${xorg_cv_cc_flag_unknown_warning_option+y} 14727then : 14728 printf %s "(cached) " >&6 14729else case e in #( 14730 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14731/* end confdefs.h. */ 14732int i; 14733_ACEOF 14734if ac_fn_c_try_compile "$LINENO" 14735then : 14736 xorg_cv_cc_flag_unknown_warning_option=yes 14737else case e in #( 14738 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 14739esac 14740fi 14741rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 14742esac 14743fi 14744{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14745printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14746 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14747 CFLAGS="$xorg_testset_save_CFLAGS" 14748fi 14749 14750if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14751 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14752 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14753 fi 14754 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14755 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14756printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14757if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 14758then : 14759 printf %s "(cached) " >&6 14760else case e in #( 14761 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14762/* end confdefs.h. */ 14763int i; 14764_ACEOF 14765if ac_fn_c_try_compile "$LINENO" 14766then : 14767 xorg_cv_cc_flag_unused_command_line_argument=yes 14768else case e in #( 14769 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 14770esac 14771fi 14772rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 14773esac 14774fi 14775{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14776printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14777 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14778 CFLAGS="$xorg_testset_save_CFLAGS" 14779fi 14780 14781found="no" 14782 14783 if test $found = "no" ; then 14784 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14785 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14786 fi 14787 14788 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14789 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14790 fi 14791 14792 CFLAGS="$CFLAGS -Wdeclaration-after-statement" 14793 14794 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5 14795printf %s "checking if $CC supports -Wdeclaration-after-statement... " >&6; } 14796 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement 14797 if eval test \${$cacheid+y} 14798then : 14799 printf %s "(cached) " >&6 14800else case e in #( 14801 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14802/* end confdefs.h. */ 14803int i; 14804int 14805main (void) 14806{ 14807 14808 ; 14809 return 0; 14810} 14811_ACEOF 14812if ac_fn_c_try_link "$LINENO" 14813then : 14814 eval $cacheid=yes 14815else case e in #( 14816 e) eval $cacheid=no ;; 14817esac 14818fi 14819rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14820 conftest$ac_exeext conftest.$ac_ext ;; 14821esac 14822fi 14823 14824 14825 CFLAGS="$xorg_testset_save_CFLAGS" 14826 14827 eval supported=\$$cacheid 14828 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14829printf "%s\n" "$supported" >&6; } 14830 if test "$supported" = "yes" ; then 14831 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement" 14832 found="yes" 14833 fi 14834 fi 14835 14836 14837 14838 14839 14840# This chunk adds additional warnings that could catch undesired effects. 14841 14842 14843 14844 14845 14846 14847 14848 14849 14850 14851 14852 14853 14854xorg_testset_save_CFLAGS="$CFLAGS" 14855 14856if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14857 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14858 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14859printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14860if test ${xorg_cv_cc_flag_unknown_warning_option+y} 14861then : 14862 printf %s "(cached) " >&6 14863else case e in #( 14864 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14865/* end confdefs.h. */ 14866int i; 14867_ACEOF 14868if ac_fn_c_try_compile "$LINENO" 14869then : 14870 xorg_cv_cc_flag_unknown_warning_option=yes 14871else case e in #( 14872 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 14873esac 14874fi 14875rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 14876esac 14877fi 14878{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14879printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14880 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14881 CFLAGS="$xorg_testset_save_CFLAGS" 14882fi 14883 14884if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14885 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14886 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14887 fi 14888 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14889 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14890printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14891if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 14892then : 14893 printf %s "(cached) " >&6 14894else case e in #( 14895 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14896/* end confdefs.h. */ 14897int i; 14898_ACEOF 14899if ac_fn_c_try_compile "$LINENO" 14900then : 14901 xorg_cv_cc_flag_unused_command_line_argument=yes 14902else case e in #( 14903 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 14904esac 14905fi 14906rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 14907esac 14908fi 14909{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14910printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14911 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14912 CFLAGS="$xorg_testset_save_CFLAGS" 14913fi 14914 14915found="no" 14916 14917 if test $found = "no" ; then 14918 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14919 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14920 fi 14921 14922 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14923 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14924 fi 14925 14926 CFLAGS="$CFLAGS -Wunused" 14927 14928 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5 14929printf %s "checking if $CC supports -Wunused... " >&6; } 14930 cacheid=xorg_cv_cc_flag__Wunused 14931 if eval test \${$cacheid+y} 14932then : 14933 printf %s "(cached) " >&6 14934else case e in #( 14935 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14936/* end confdefs.h. */ 14937int i; 14938int 14939main (void) 14940{ 14941 14942 ; 14943 return 0; 14944} 14945_ACEOF 14946if ac_fn_c_try_link "$LINENO" 14947then : 14948 eval $cacheid=yes 14949else case e in #( 14950 e) eval $cacheid=no ;; 14951esac 14952fi 14953rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14954 conftest$ac_exeext conftest.$ac_ext ;; 14955esac 14956fi 14957 14958 14959 CFLAGS="$xorg_testset_save_CFLAGS" 14960 14961 eval supported=\$$cacheid 14962 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14963printf "%s\n" "$supported" >&6; } 14964 if test "$supported" = "yes" ; then 14965 BASE_CFLAGS="$BASE_CFLAGS -Wunused" 14966 found="yes" 14967 fi 14968 fi 14969 14970 14971 14972 14973 14974 14975 14976 14977 14978 14979 14980 14981 14982 14983 14984xorg_testset_save_CFLAGS="$CFLAGS" 14985 14986if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14987 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14988 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14989printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14990if test ${xorg_cv_cc_flag_unknown_warning_option+y} 14991then : 14992 printf %s "(cached) " >&6 14993else case e in #( 14994 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14995/* end confdefs.h. */ 14996int i; 14997_ACEOF 14998if ac_fn_c_try_compile "$LINENO" 14999then : 15000 xorg_cv_cc_flag_unknown_warning_option=yes 15001else case e in #( 15002 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 15003esac 15004fi 15005rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 15006esac 15007fi 15008{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15009printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15010 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15011 CFLAGS="$xorg_testset_save_CFLAGS" 15012fi 15013 15014if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15015 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15016 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15017 fi 15018 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15019 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15020printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15021if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 15022then : 15023 printf %s "(cached) " >&6 15024else case e in #( 15025 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15026/* end confdefs.h. */ 15027int i; 15028_ACEOF 15029if ac_fn_c_try_compile "$LINENO" 15030then : 15031 xorg_cv_cc_flag_unused_command_line_argument=yes 15032else case e in #( 15033 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 15034esac 15035fi 15036rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 15037esac 15038fi 15039{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15040printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15041 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15042 CFLAGS="$xorg_testset_save_CFLAGS" 15043fi 15044 15045found="no" 15046 15047 if test $found = "no" ; then 15048 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15049 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15050 fi 15051 15052 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15053 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15054 fi 15055 15056 CFLAGS="$CFLAGS -Wuninitialized" 15057 15058 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5 15059printf %s "checking if $CC supports -Wuninitialized... " >&6; } 15060 cacheid=xorg_cv_cc_flag__Wuninitialized 15061 if eval test \${$cacheid+y} 15062then : 15063 printf %s "(cached) " >&6 15064else case e in #( 15065 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15066/* end confdefs.h. */ 15067int i; 15068int 15069main (void) 15070{ 15071 15072 ; 15073 return 0; 15074} 15075_ACEOF 15076if ac_fn_c_try_link "$LINENO" 15077then : 15078 eval $cacheid=yes 15079else case e in #( 15080 e) eval $cacheid=no ;; 15081esac 15082fi 15083rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15084 conftest$ac_exeext conftest.$ac_ext ;; 15085esac 15086fi 15087 15088 15089 CFLAGS="$xorg_testset_save_CFLAGS" 15090 15091 eval supported=\$$cacheid 15092 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15093printf "%s\n" "$supported" >&6; } 15094 if test "$supported" = "yes" ; then 15095 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized" 15096 found="yes" 15097 fi 15098 fi 15099 15100 15101 15102 15103 15104 15105 15106 15107 15108 15109 15110 15111 15112 15113 15114xorg_testset_save_CFLAGS="$CFLAGS" 15115 15116if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15117 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15118 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15119printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15120if test ${xorg_cv_cc_flag_unknown_warning_option+y} 15121then : 15122 printf %s "(cached) " >&6 15123else case e in #( 15124 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15125/* end confdefs.h. */ 15126int i; 15127_ACEOF 15128if ac_fn_c_try_compile "$LINENO" 15129then : 15130 xorg_cv_cc_flag_unknown_warning_option=yes 15131else case e in #( 15132 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 15133esac 15134fi 15135rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 15136esac 15137fi 15138{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15139printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15140 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15141 CFLAGS="$xorg_testset_save_CFLAGS" 15142fi 15143 15144if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15145 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15146 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15147 fi 15148 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15149 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15150printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15151if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 15152then : 15153 printf %s "(cached) " >&6 15154else case e in #( 15155 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15156/* end confdefs.h. */ 15157int i; 15158_ACEOF 15159if ac_fn_c_try_compile "$LINENO" 15160then : 15161 xorg_cv_cc_flag_unused_command_line_argument=yes 15162else case e in #( 15163 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 15164esac 15165fi 15166rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 15167esac 15168fi 15169{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15170printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15171 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15172 CFLAGS="$xorg_testset_save_CFLAGS" 15173fi 15174 15175found="no" 15176 15177 if test $found = "no" ; then 15178 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15179 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15180 fi 15181 15182 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15183 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15184 fi 15185 15186 CFLAGS="$CFLAGS -Wshadow" 15187 15188 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5 15189printf %s "checking if $CC supports -Wshadow... " >&6; } 15190 cacheid=xorg_cv_cc_flag__Wshadow 15191 if eval test \${$cacheid+y} 15192then : 15193 printf %s "(cached) " >&6 15194else case e in #( 15195 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15196/* end confdefs.h. */ 15197int i; 15198int 15199main (void) 15200{ 15201 15202 ; 15203 return 0; 15204} 15205_ACEOF 15206if ac_fn_c_try_link "$LINENO" 15207then : 15208 eval $cacheid=yes 15209else case e in #( 15210 e) eval $cacheid=no ;; 15211esac 15212fi 15213rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15214 conftest$ac_exeext conftest.$ac_ext ;; 15215esac 15216fi 15217 15218 15219 CFLAGS="$xorg_testset_save_CFLAGS" 15220 15221 eval supported=\$$cacheid 15222 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15223printf "%s\n" "$supported" >&6; } 15224 if test "$supported" = "yes" ; then 15225 BASE_CFLAGS="$BASE_CFLAGS -Wshadow" 15226 found="yes" 15227 fi 15228 fi 15229 15230 15231 15232 15233 15234 15235 15236 15237 15238 15239 15240 15241 15242 15243 15244xorg_testset_save_CFLAGS="$CFLAGS" 15245 15246if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15247 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15248 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15249printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15250if test ${xorg_cv_cc_flag_unknown_warning_option+y} 15251then : 15252 printf %s "(cached) " >&6 15253else case e in #( 15254 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15255/* end confdefs.h. */ 15256int i; 15257_ACEOF 15258if ac_fn_c_try_compile "$LINENO" 15259then : 15260 xorg_cv_cc_flag_unknown_warning_option=yes 15261else case e in #( 15262 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 15263esac 15264fi 15265rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 15266esac 15267fi 15268{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15269printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15270 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15271 CFLAGS="$xorg_testset_save_CFLAGS" 15272fi 15273 15274if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15275 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15276 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15277 fi 15278 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15279 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15280printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15281if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 15282then : 15283 printf %s "(cached) " >&6 15284else case e in #( 15285 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15286/* end confdefs.h. */ 15287int i; 15288_ACEOF 15289if ac_fn_c_try_compile "$LINENO" 15290then : 15291 xorg_cv_cc_flag_unused_command_line_argument=yes 15292else case e in #( 15293 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 15294esac 15295fi 15296rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 15297esac 15298fi 15299{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15300printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15301 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15302 CFLAGS="$xorg_testset_save_CFLAGS" 15303fi 15304 15305found="no" 15306 15307 if test $found = "no" ; then 15308 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15309 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15310 fi 15311 15312 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15313 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15314 fi 15315 15316 CFLAGS="$CFLAGS -Wmissing-noreturn" 15317 15318 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5 15319printf %s "checking if $CC supports -Wmissing-noreturn... " >&6; } 15320 cacheid=xorg_cv_cc_flag__Wmissing_noreturn 15321 if eval test \${$cacheid+y} 15322then : 15323 printf %s "(cached) " >&6 15324else case e in #( 15325 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15326/* end confdefs.h. */ 15327int i; 15328int 15329main (void) 15330{ 15331 15332 ; 15333 return 0; 15334} 15335_ACEOF 15336if ac_fn_c_try_link "$LINENO" 15337then : 15338 eval $cacheid=yes 15339else case e in #( 15340 e) eval $cacheid=no ;; 15341esac 15342fi 15343rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15344 conftest$ac_exeext conftest.$ac_ext ;; 15345esac 15346fi 15347 15348 15349 CFLAGS="$xorg_testset_save_CFLAGS" 15350 15351 eval supported=\$$cacheid 15352 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15353printf "%s\n" "$supported" >&6; } 15354 if test "$supported" = "yes" ; then 15355 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn" 15356 found="yes" 15357 fi 15358 fi 15359 15360 15361 15362 15363 15364 15365 15366 15367 15368 15369 15370 15371 15372 15373 15374xorg_testset_save_CFLAGS="$CFLAGS" 15375 15376if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15377 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15378 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15379printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15380if test ${xorg_cv_cc_flag_unknown_warning_option+y} 15381then : 15382 printf %s "(cached) " >&6 15383else case e in #( 15384 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15385/* end confdefs.h. */ 15386int i; 15387_ACEOF 15388if ac_fn_c_try_compile "$LINENO" 15389then : 15390 xorg_cv_cc_flag_unknown_warning_option=yes 15391else case e in #( 15392 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 15393esac 15394fi 15395rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 15396esac 15397fi 15398{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15399printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15400 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15401 CFLAGS="$xorg_testset_save_CFLAGS" 15402fi 15403 15404if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15405 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15406 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15407 fi 15408 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15409 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15410printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15411if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 15412then : 15413 printf %s "(cached) " >&6 15414else case e in #( 15415 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15416/* end confdefs.h. */ 15417int i; 15418_ACEOF 15419if ac_fn_c_try_compile "$LINENO" 15420then : 15421 xorg_cv_cc_flag_unused_command_line_argument=yes 15422else case e in #( 15423 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 15424esac 15425fi 15426rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 15427esac 15428fi 15429{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15430printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15431 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15432 CFLAGS="$xorg_testset_save_CFLAGS" 15433fi 15434 15435found="no" 15436 15437 if test $found = "no" ; then 15438 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15439 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15440 fi 15441 15442 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15443 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15444 fi 15445 15446 CFLAGS="$CFLAGS -Wmissing-format-attribute" 15447 15448 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5 15449printf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; } 15450 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute 15451 if eval test \${$cacheid+y} 15452then : 15453 printf %s "(cached) " >&6 15454else case e in #( 15455 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15456/* end confdefs.h. */ 15457int i; 15458int 15459main (void) 15460{ 15461 15462 ; 15463 return 0; 15464} 15465_ACEOF 15466if ac_fn_c_try_link "$LINENO" 15467then : 15468 eval $cacheid=yes 15469else case e in #( 15470 e) eval $cacheid=no ;; 15471esac 15472fi 15473rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15474 conftest$ac_exeext conftest.$ac_ext ;; 15475esac 15476fi 15477 15478 15479 CFLAGS="$xorg_testset_save_CFLAGS" 15480 15481 eval supported=\$$cacheid 15482 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15483printf "%s\n" "$supported" >&6; } 15484 if test "$supported" = "yes" ; then 15485 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute" 15486 found="yes" 15487 fi 15488 fi 15489 15490 15491 15492 15493 15494 15495 15496 15497 15498 15499 15500 15501 15502 15503 15504xorg_testset_save_CFLAGS="$CFLAGS" 15505 15506if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15507 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15508 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15509printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15510if test ${xorg_cv_cc_flag_unknown_warning_option+y} 15511then : 15512 printf %s "(cached) " >&6 15513else case e in #( 15514 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15515/* end confdefs.h. */ 15516int i; 15517_ACEOF 15518if ac_fn_c_try_compile "$LINENO" 15519then : 15520 xorg_cv_cc_flag_unknown_warning_option=yes 15521else case e in #( 15522 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 15523esac 15524fi 15525rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 15526esac 15527fi 15528{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15529printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15530 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15531 CFLAGS="$xorg_testset_save_CFLAGS" 15532fi 15533 15534if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15535 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15536 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15537 fi 15538 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15539 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15540printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15541if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 15542then : 15543 printf %s "(cached) " >&6 15544else case e in #( 15545 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15546/* end confdefs.h. */ 15547int i; 15548_ACEOF 15549if ac_fn_c_try_compile "$LINENO" 15550then : 15551 xorg_cv_cc_flag_unused_command_line_argument=yes 15552else case e in #( 15553 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 15554esac 15555fi 15556rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 15557esac 15558fi 15559{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15560printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15561 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15562 CFLAGS="$xorg_testset_save_CFLAGS" 15563fi 15564 15565found="no" 15566 15567 if test $found = "no" ; then 15568 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15569 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15570 fi 15571 15572 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15573 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15574 fi 15575 15576 CFLAGS="$CFLAGS -Wredundant-decls" 15577 15578 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5 15579printf %s "checking if $CC supports -Wredundant-decls... " >&6; } 15580 cacheid=xorg_cv_cc_flag__Wredundant_decls 15581 if eval test \${$cacheid+y} 15582then : 15583 printf %s "(cached) " >&6 15584else case e in #( 15585 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15586/* end confdefs.h. */ 15587int i; 15588int 15589main (void) 15590{ 15591 15592 ; 15593 return 0; 15594} 15595_ACEOF 15596if ac_fn_c_try_link "$LINENO" 15597then : 15598 eval $cacheid=yes 15599else case e in #( 15600 e) eval $cacheid=no ;; 15601esac 15602fi 15603rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15604 conftest$ac_exeext conftest.$ac_ext ;; 15605esac 15606fi 15607 15608 15609 CFLAGS="$xorg_testset_save_CFLAGS" 15610 15611 eval supported=\$$cacheid 15612 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15613printf "%s\n" "$supported" >&6; } 15614 if test "$supported" = "yes" ; then 15615 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls" 15616 found="yes" 15617 fi 15618 fi 15619 15620 15621 15622 15623 15624 15625 15626 15627 15628 15629 15630 15631 15632 15633 15634xorg_testset_save_CFLAGS="$CFLAGS" 15635 15636if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15637 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15638 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15639printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15640if test ${xorg_cv_cc_flag_unknown_warning_option+y} 15641then : 15642 printf %s "(cached) " >&6 15643else case e in #( 15644 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15645/* end confdefs.h. */ 15646int i; 15647_ACEOF 15648if ac_fn_c_try_compile "$LINENO" 15649then : 15650 xorg_cv_cc_flag_unknown_warning_option=yes 15651else case e in #( 15652 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 15653esac 15654fi 15655rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 15656esac 15657fi 15658{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15659printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15660 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15661 CFLAGS="$xorg_testset_save_CFLAGS" 15662fi 15663 15664if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15665 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15666 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15667 fi 15668 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15669 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15670printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15671if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 15672then : 15673 printf %s "(cached) " >&6 15674else case e in #( 15675 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15676/* end confdefs.h. */ 15677int i; 15678_ACEOF 15679if ac_fn_c_try_compile "$LINENO" 15680then : 15681 xorg_cv_cc_flag_unused_command_line_argument=yes 15682else case e in #( 15683 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 15684esac 15685fi 15686rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 15687esac 15688fi 15689{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15690printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15691 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15692 CFLAGS="$xorg_testset_save_CFLAGS" 15693fi 15694 15695found="no" 15696 15697 if test $found = "no" ; then 15698 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15699 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15700 fi 15701 15702 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15703 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15704 fi 15705 15706 CFLAGS="$CFLAGS -Wlogical-op" 15707 15708 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5 15709printf %s "checking if $CC supports -Wlogical-op... " >&6; } 15710 cacheid=xorg_cv_cc_flag__Wlogical_op 15711 if eval test \${$cacheid+y} 15712then : 15713 printf %s "(cached) " >&6 15714else case e in #( 15715 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15716/* end confdefs.h. */ 15717int i; 15718int 15719main (void) 15720{ 15721 15722 ; 15723 return 0; 15724} 15725_ACEOF 15726if ac_fn_c_try_link "$LINENO" 15727then : 15728 eval $cacheid=yes 15729else case e in #( 15730 e) eval $cacheid=no ;; 15731esac 15732fi 15733rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15734 conftest$ac_exeext conftest.$ac_ext ;; 15735esac 15736fi 15737 15738 15739 CFLAGS="$xorg_testset_save_CFLAGS" 15740 15741 eval supported=\$$cacheid 15742 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15743printf "%s\n" "$supported" >&6; } 15744 if test "$supported" = "yes" ; then 15745 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op" 15746 found="yes" 15747 fi 15748 fi 15749 15750 15751 15752# These are currently disabled because they are noisy. They will be enabled 15753# in the future once the codebase is sufficiently modernized to silence 15754# them. For now, I don't want them to drown out the other warnings. 15755# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses]) 15756# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align]) 15757# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual]) 15758 15759# Turn some warnings into errors, so we don't accidentally get successful builds 15760# when there are problems that should be fixed. 15761 15762if test "x$SELECTIVE_WERROR" = "xyes" ; then 15763 15764 15765 15766 15767 15768 15769 15770 15771 15772 15773 15774 15775 15776xorg_testset_save_CFLAGS="$CFLAGS" 15777 15778if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15779 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15780 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15781printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15782if test ${xorg_cv_cc_flag_unknown_warning_option+y} 15783then : 15784 printf %s "(cached) " >&6 15785else case e in #( 15786 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15787/* end confdefs.h. */ 15788int i; 15789_ACEOF 15790if ac_fn_c_try_compile "$LINENO" 15791then : 15792 xorg_cv_cc_flag_unknown_warning_option=yes 15793else case e in #( 15794 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 15795esac 15796fi 15797rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 15798esac 15799fi 15800{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15801printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15802 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15803 CFLAGS="$xorg_testset_save_CFLAGS" 15804fi 15805 15806if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15807 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15808 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15809 fi 15810 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15811 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15812printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15813if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 15814then : 15815 printf %s "(cached) " >&6 15816else case e in #( 15817 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15818/* end confdefs.h. */ 15819int i; 15820_ACEOF 15821if ac_fn_c_try_compile "$LINENO" 15822then : 15823 xorg_cv_cc_flag_unused_command_line_argument=yes 15824else case e in #( 15825 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 15826esac 15827fi 15828rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 15829esac 15830fi 15831{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15832printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15833 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15834 CFLAGS="$xorg_testset_save_CFLAGS" 15835fi 15836 15837found="no" 15838 15839 if test $found = "no" ; then 15840 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15841 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15842 fi 15843 15844 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15845 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15846 fi 15847 15848 CFLAGS="$CFLAGS -Werror=implicit" 15849 15850 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5 15851printf %s "checking if $CC supports -Werror=implicit... " >&6; } 15852 cacheid=xorg_cv_cc_flag__Werror_implicit 15853 if eval test \${$cacheid+y} 15854then : 15855 printf %s "(cached) " >&6 15856else case e in #( 15857 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15858/* end confdefs.h. */ 15859int i; 15860int 15861main (void) 15862{ 15863 15864 ; 15865 return 0; 15866} 15867_ACEOF 15868if ac_fn_c_try_link "$LINENO" 15869then : 15870 eval $cacheid=yes 15871else case e in #( 15872 e) eval $cacheid=no ;; 15873esac 15874fi 15875rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15876 conftest$ac_exeext conftest.$ac_ext ;; 15877esac 15878fi 15879 15880 15881 CFLAGS="$xorg_testset_save_CFLAGS" 15882 15883 eval supported=\$$cacheid 15884 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15885printf "%s\n" "$supported" >&6; } 15886 if test "$supported" = "yes" ; then 15887 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit" 15888 found="yes" 15889 fi 15890 fi 15891 15892 if test $found = "no" ; then 15893 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15894 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15895 fi 15896 15897 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15898 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15899 fi 15900 15901 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 15902 15903 { 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 15904printf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; } 15905 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED 15906 if eval test \${$cacheid+y} 15907then : 15908 printf %s "(cached) " >&6 15909else case e in #( 15910 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15911/* end confdefs.h. */ 15912int i; 15913int 15914main (void) 15915{ 15916 15917 ; 15918 return 0; 15919} 15920_ACEOF 15921if ac_fn_c_try_link "$LINENO" 15922then : 15923 eval $cacheid=yes 15924else case e in #( 15925 e) eval $cacheid=no ;; 15926esac 15927fi 15928rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15929 conftest$ac_exeext conftest.$ac_ext ;; 15930esac 15931fi 15932 15933 15934 CFLAGS="$xorg_testset_save_CFLAGS" 15935 15936 eval supported=\$$cacheid 15937 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15938printf "%s\n" "$supported" >&6; } 15939 if test "$supported" = "yes" ; then 15940 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 15941 found="yes" 15942 fi 15943 fi 15944 15945 15946 15947 15948 15949 15950 15951 15952 15953 15954 15955 15956 15957 15958 15959xorg_testset_save_CFLAGS="$CFLAGS" 15960 15961if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15962 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15963 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15964printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15965if test ${xorg_cv_cc_flag_unknown_warning_option+y} 15966then : 15967 printf %s "(cached) " >&6 15968else case e in #( 15969 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15970/* end confdefs.h. */ 15971int i; 15972_ACEOF 15973if ac_fn_c_try_compile "$LINENO" 15974then : 15975 xorg_cv_cc_flag_unknown_warning_option=yes 15976else case e in #( 15977 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 15978esac 15979fi 15980rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 15981esac 15982fi 15983{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15984printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15985 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15986 CFLAGS="$xorg_testset_save_CFLAGS" 15987fi 15988 15989if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15990 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15991 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15992 fi 15993 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15994 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15995printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15996if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 15997then : 15998 printf %s "(cached) " >&6 15999else case e in #( 16000 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16001/* end confdefs.h. */ 16002int i; 16003_ACEOF 16004if ac_fn_c_try_compile "$LINENO" 16005then : 16006 xorg_cv_cc_flag_unused_command_line_argument=yes 16007else case e in #( 16008 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 16009esac 16010fi 16011rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 16012esac 16013fi 16014{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16015printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16016 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16017 CFLAGS="$xorg_testset_save_CFLAGS" 16018fi 16019 16020found="no" 16021 16022 if test $found = "no" ; then 16023 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16024 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16025 fi 16026 16027 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16028 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16029 fi 16030 16031 CFLAGS="$CFLAGS -Werror=nonnull" 16032 16033 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5 16034printf %s "checking if $CC supports -Werror=nonnull... " >&6; } 16035 cacheid=xorg_cv_cc_flag__Werror_nonnull 16036 if eval test \${$cacheid+y} 16037then : 16038 printf %s "(cached) " >&6 16039else case e in #( 16040 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16041/* end confdefs.h. */ 16042int i; 16043int 16044main (void) 16045{ 16046 16047 ; 16048 return 0; 16049} 16050_ACEOF 16051if ac_fn_c_try_link "$LINENO" 16052then : 16053 eval $cacheid=yes 16054else case e in #( 16055 e) eval $cacheid=no ;; 16056esac 16057fi 16058rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16059 conftest$ac_exeext conftest.$ac_ext ;; 16060esac 16061fi 16062 16063 16064 CFLAGS="$xorg_testset_save_CFLAGS" 16065 16066 eval supported=\$$cacheid 16067 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16068printf "%s\n" "$supported" >&6; } 16069 if test "$supported" = "yes" ; then 16070 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull" 16071 found="yes" 16072 fi 16073 fi 16074 16075 16076 16077 16078 16079 16080 16081 16082 16083 16084 16085 16086 16087 16088 16089xorg_testset_save_CFLAGS="$CFLAGS" 16090 16091if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16092 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16093 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16094printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16095if test ${xorg_cv_cc_flag_unknown_warning_option+y} 16096then : 16097 printf %s "(cached) " >&6 16098else case e in #( 16099 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16100/* end confdefs.h. */ 16101int i; 16102_ACEOF 16103if ac_fn_c_try_compile "$LINENO" 16104then : 16105 xorg_cv_cc_flag_unknown_warning_option=yes 16106else case e in #( 16107 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 16108esac 16109fi 16110rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 16111esac 16112fi 16113{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16114printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16115 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16116 CFLAGS="$xorg_testset_save_CFLAGS" 16117fi 16118 16119if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16120 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16121 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16122 fi 16123 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16124 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16125printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16126if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 16127then : 16128 printf %s "(cached) " >&6 16129else case e in #( 16130 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16131/* end confdefs.h. */ 16132int i; 16133_ACEOF 16134if ac_fn_c_try_compile "$LINENO" 16135then : 16136 xorg_cv_cc_flag_unused_command_line_argument=yes 16137else case e in #( 16138 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 16139esac 16140fi 16141rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 16142esac 16143fi 16144{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16145printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16146 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16147 CFLAGS="$xorg_testset_save_CFLAGS" 16148fi 16149 16150found="no" 16151 16152 if test $found = "no" ; then 16153 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16154 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16155 fi 16156 16157 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16158 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16159 fi 16160 16161 CFLAGS="$CFLAGS -Werror=init-self" 16162 16163 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5 16164printf %s "checking if $CC supports -Werror=init-self... " >&6; } 16165 cacheid=xorg_cv_cc_flag__Werror_init_self 16166 if eval test \${$cacheid+y} 16167then : 16168 printf %s "(cached) " >&6 16169else case e in #( 16170 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16171/* end confdefs.h. */ 16172int i; 16173int 16174main (void) 16175{ 16176 16177 ; 16178 return 0; 16179} 16180_ACEOF 16181if ac_fn_c_try_link "$LINENO" 16182then : 16183 eval $cacheid=yes 16184else case e in #( 16185 e) eval $cacheid=no ;; 16186esac 16187fi 16188rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16189 conftest$ac_exeext conftest.$ac_ext ;; 16190esac 16191fi 16192 16193 16194 CFLAGS="$xorg_testset_save_CFLAGS" 16195 16196 eval supported=\$$cacheid 16197 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16198printf "%s\n" "$supported" >&6; } 16199 if test "$supported" = "yes" ; then 16200 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self" 16201 found="yes" 16202 fi 16203 fi 16204 16205 16206 16207 16208 16209 16210 16211 16212 16213 16214 16215 16216 16217 16218 16219xorg_testset_save_CFLAGS="$CFLAGS" 16220 16221if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16222 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16223 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16224printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16225if test ${xorg_cv_cc_flag_unknown_warning_option+y} 16226then : 16227 printf %s "(cached) " >&6 16228else case e in #( 16229 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16230/* end confdefs.h. */ 16231int i; 16232_ACEOF 16233if ac_fn_c_try_compile "$LINENO" 16234then : 16235 xorg_cv_cc_flag_unknown_warning_option=yes 16236else case e in #( 16237 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 16238esac 16239fi 16240rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 16241esac 16242fi 16243{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16244printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16245 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16246 CFLAGS="$xorg_testset_save_CFLAGS" 16247fi 16248 16249if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16250 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16251 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16252 fi 16253 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16254 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16255printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16256if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 16257then : 16258 printf %s "(cached) " >&6 16259else case e in #( 16260 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16261/* end confdefs.h. */ 16262int i; 16263_ACEOF 16264if ac_fn_c_try_compile "$LINENO" 16265then : 16266 xorg_cv_cc_flag_unused_command_line_argument=yes 16267else case e in #( 16268 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 16269esac 16270fi 16271rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 16272esac 16273fi 16274{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16275printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16276 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16277 CFLAGS="$xorg_testset_save_CFLAGS" 16278fi 16279 16280found="no" 16281 16282 if test $found = "no" ; then 16283 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16284 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16285 fi 16286 16287 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16288 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16289 fi 16290 16291 CFLAGS="$CFLAGS -Werror=main" 16292 16293 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5 16294printf %s "checking if $CC supports -Werror=main... " >&6; } 16295 cacheid=xorg_cv_cc_flag__Werror_main 16296 if eval test \${$cacheid+y} 16297then : 16298 printf %s "(cached) " >&6 16299else case e in #( 16300 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16301/* end confdefs.h. */ 16302int i; 16303int 16304main (void) 16305{ 16306 16307 ; 16308 return 0; 16309} 16310_ACEOF 16311if ac_fn_c_try_link "$LINENO" 16312then : 16313 eval $cacheid=yes 16314else case e in #( 16315 e) eval $cacheid=no ;; 16316esac 16317fi 16318rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16319 conftest$ac_exeext conftest.$ac_ext ;; 16320esac 16321fi 16322 16323 16324 CFLAGS="$xorg_testset_save_CFLAGS" 16325 16326 eval supported=\$$cacheid 16327 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16328printf "%s\n" "$supported" >&6; } 16329 if test "$supported" = "yes" ; then 16330 BASE_CFLAGS="$BASE_CFLAGS -Werror=main" 16331 found="yes" 16332 fi 16333 fi 16334 16335 16336 16337 16338 16339 16340 16341 16342 16343 16344 16345 16346 16347 16348 16349xorg_testset_save_CFLAGS="$CFLAGS" 16350 16351if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16352 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16353 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16354printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16355if test ${xorg_cv_cc_flag_unknown_warning_option+y} 16356then : 16357 printf %s "(cached) " >&6 16358else case e in #( 16359 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16360/* end confdefs.h. */ 16361int i; 16362_ACEOF 16363if ac_fn_c_try_compile "$LINENO" 16364then : 16365 xorg_cv_cc_flag_unknown_warning_option=yes 16366else case e in #( 16367 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 16368esac 16369fi 16370rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 16371esac 16372fi 16373{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16374printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16375 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16376 CFLAGS="$xorg_testset_save_CFLAGS" 16377fi 16378 16379if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16380 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16381 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16382 fi 16383 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16384 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16385printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16386if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 16387then : 16388 printf %s "(cached) " >&6 16389else case e in #( 16390 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16391/* end confdefs.h. */ 16392int i; 16393_ACEOF 16394if ac_fn_c_try_compile "$LINENO" 16395then : 16396 xorg_cv_cc_flag_unused_command_line_argument=yes 16397else case e in #( 16398 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 16399esac 16400fi 16401rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 16402esac 16403fi 16404{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16405printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16406 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16407 CFLAGS="$xorg_testset_save_CFLAGS" 16408fi 16409 16410found="no" 16411 16412 if test $found = "no" ; then 16413 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16414 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16415 fi 16416 16417 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16418 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16419 fi 16420 16421 CFLAGS="$CFLAGS -Werror=missing-braces" 16422 16423 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5 16424printf %s "checking if $CC supports -Werror=missing-braces... " >&6; } 16425 cacheid=xorg_cv_cc_flag__Werror_missing_braces 16426 if eval test \${$cacheid+y} 16427then : 16428 printf %s "(cached) " >&6 16429else case e in #( 16430 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16431/* end confdefs.h. */ 16432int i; 16433int 16434main (void) 16435{ 16436 16437 ; 16438 return 0; 16439} 16440_ACEOF 16441if ac_fn_c_try_link "$LINENO" 16442then : 16443 eval $cacheid=yes 16444else case e in #( 16445 e) eval $cacheid=no ;; 16446esac 16447fi 16448rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16449 conftest$ac_exeext conftest.$ac_ext ;; 16450esac 16451fi 16452 16453 16454 CFLAGS="$xorg_testset_save_CFLAGS" 16455 16456 eval supported=\$$cacheid 16457 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16458printf "%s\n" "$supported" >&6; } 16459 if test "$supported" = "yes" ; then 16460 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces" 16461 found="yes" 16462 fi 16463 fi 16464 16465 16466 16467 16468 16469 16470 16471 16472 16473 16474 16475 16476 16477 16478 16479xorg_testset_save_CFLAGS="$CFLAGS" 16480 16481if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16482 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16483 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16484printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16485if test ${xorg_cv_cc_flag_unknown_warning_option+y} 16486then : 16487 printf %s "(cached) " >&6 16488else case e in #( 16489 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16490/* end confdefs.h. */ 16491int i; 16492_ACEOF 16493if ac_fn_c_try_compile "$LINENO" 16494then : 16495 xorg_cv_cc_flag_unknown_warning_option=yes 16496else case e in #( 16497 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 16498esac 16499fi 16500rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 16501esac 16502fi 16503{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16504printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16505 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16506 CFLAGS="$xorg_testset_save_CFLAGS" 16507fi 16508 16509if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16510 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16511 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16512 fi 16513 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16514 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16515printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16516if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 16517then : 16518 printf %s "(cached) " >&6 16519else case e in #( 16520 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16521/* end confdefs.h. */ 16522int i; 16523_ACEOF 16524if ac_fn_c_try_compile "$LINENO" 16525then : 16526 xorg_cv_cc_flag_unused_command_line_argument=yes 16527else case e in #( 16528 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 16529esac 16530fi 16531rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 16532esac 16533fi 16534{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16535printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16536 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16537 CFLAGS="$xorg_testset_save_CFLAGS" 16538fi 16539 16540found="no" 16541 16542 if test $found = "no" ; then 16543 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16544 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16545 fi 16546 16547 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16548 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16549 fi 16550 16551 CFLAGS="$CFLAGS -Werror=sequence-point" 16552 16553 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5 16554printf %s "checking if $CC supports -Werror=sequence-point... " >&6; } 16555 cacheid=xorg_cv_cc_flag__Werror_sequence_point 16556 if eval test \${$cacheid+y} 16557then : 16558 printf %s "(cached) " >&6 16559else case e in #( 16560 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16561/* end confdefs.h. */ 16562int i; 16563int 16564main (void) 16565{ 16566 16567 ; 16568 return 0; 16569} 16570_ACEOF 16571if ac_fn_c_try_link "$LINENO" 16572then : 16573 eval $cacheid=yes 16574else case e in #( 16575 e) eval $cacheid=no ;; 16576esac 16577fi 16578rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16579 conftest$ac_exeext conftest.$ac_ext ;; 16580esac 16581fi 16582 16583 16584 CFLAGS="$xorg_testset_save_CFLAGS" 16585 16586 eval supported=\$$cacheid 16587 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16588printf "%s\n" "$supported" >&6; } 16589 if test "$supported" = "yes" ; then 16590 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point" 16591 found="yes" 16592 fi 16593 fi 16594 16595 16596 16597 16598 16599 16600 16601 16602 16603 16604 16605 16606 16607 16608 16609xorg_testset_save_CFLAGS="$CFLAGS" 16610 16611if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16612 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16613 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16614printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16615if test ${xorg_cv_cc_flag_unknown_warning_option+y} 16616then : 16617 printf %s "(cached) " >&6 16618else case e in #( 16619 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16620/* end confdefs.h. */ 16621int i; 16622_ACEOF 16623if ac_fn_c_try_compile "$LINENO" 16624then : 16625 xorg_cv_cc_flag_unknown_warning_option=yes 16626else case e in #( 16627 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 16628esac 16629fi 16630rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 16631esac 16632fi 16633{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16634printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16635 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16636 CFLAGS="$xorg_testset_save_CFLAGS" 16637fi 16638 16639if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16640 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16641 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16642 fi 16643 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16644 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16645printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16646if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 16647then : 16648 printf %s "(cached) " >&6 16649else case e in #( 16650 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16651/* end confdefs.h. */ 16652int i; 16653_ACEOF 16654if ac_fn_c_try_compile "$LINENO" 16655then : 16656 xorg_cv_cc_flag_unused_command_line_argument=yes 16657else case e in #( 16658 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 16659esac 16660fi 16661rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 16662esac 16663fi 16664{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16665printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16666 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16667 CFLAGS="$xorg_testset_save_CFLAGS" 16668fi 16669 16670found="no" 16671 16672 if test $found = "no" ; then 16673 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16674 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16675 fi 16676 16677 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16678 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16679 fi 16680 16681 CFLAGS="$CFLAGS -Werror=return-type" 16682 16683 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5 16684printf %s "checking if $CC supports -Werror=return-type... " >&6; } 16685 cacheid=xorg_cv_cc_flag__Werror_return_type 16686 if eval test \${$cacheid+y} 16687then : 16688 printf %s "(cached) " >&6 16689else case e in #( 16690 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16691/* end confdefs.h. */ 16692int i; 16693int 16694main (void) 16695{ 16696 16697 ; 16698 return 0; 16699} 16700_ACEOF 16701if ac_fn_c_try_link "$LINENO" 16702then : 16703 eval $cacheid=yes 16704else case e in #( 16705 e) eval $cacheid=no ;; 16706esac 16707fi 16708rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16709 conftest$ac_exeext conftest.$ac_ext ;; 16710esac 16711fi 16712 16713 16714 CFLAGS="$xorg_testset_save_CFLAGS" 16715 16716 eval supported=\$$cacheid 16717 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16718printf "%s\n" "$supported" >&6; } 16719 if test "$supported" = "yes" ; then 16720 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type" 16721 found="yes" 16722 fi 16723 fi 16724 16725 if test $found = "no" ; then 16726 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16727 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16728 fi 16729 16730 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16731 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16732 fi 16733 16734 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 16735 16736 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5 16737printf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; } 16738 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT 16739 if eval test \${$cacheid+y} 16740then : 16741 printf %s "(cached) " >&6 16742else case e in #( 16743 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16744/* end confdefs.h. */ 16745int i; 16746int 16747main (void) 16748{ 16749 16750 ; 16751 return 0; 16752} 16753_ACEOF 16754if ac_fn_c_try_link "$LINENO" 16755then : 16756 eval $cacheid=yes 16757else case e in #( 16758 e) eval $cacheid=no ;; 16759esac 16760fi 16761rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16762 conftest$ac_exeext conftest.$ac_ext ;; 16763esac 16764fi 16765 16766 16767 CFLAGS="$xorg_testset_save_CFLAGS" 16768 16769 eval supported=\$$cacheid 16770 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16771printf "%s\n" "$supported" >&6; } 16772 if test "$supported" = "yes" ; then 16773 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 16774 found="yes" 16775 fi 16776 fi 16777 16778 16779 16780 16781 16782 16783 16784 16785 16786 16787 16788 16789 16790 16791 16792xorg_testset_save_CFLAGS="$CFLAGS" 16793 16794if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16795 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16796 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16797printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16798if test ${xorg_cv_cc_flag_unknown_warning_option+y} 16799then : 16800 printf %s "(cached) " >&6 16801else case e in #( 16802 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16803/* end confdefs.h. */ 16804int i; 16805_ACEOF 16806if ac_fn_c_try_compile "$LINENO" 16807then : 16808 xorg_cv_cc_flag_unknown_warning_option=yes 16809else case e in #( 16810 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 16811esac 16812fi 16813rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 16814esac 16815fi 16816{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16817printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16818 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16819 CFLAGS="$xorg_testset_save_CFLAGS" 16820fi 16821 16822if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16823 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16824 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16825 fi 16826 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16827 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16828printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16829if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 16830then : 16831 printf %s "(cached) " >&6 16832else case e in #( 16833 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16834/* end confdefs.h. */ 16835int i; 16836_ACEOF 16837if ac_fn_c_try_compile "$LINENO" 16838then : 16839 xorg_cv_cc_flag_unused_command_line_argument=yes 16840else case e in #( 16841 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 16842esac 16843fi 16844rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 16845esac 16846fi 16847{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16848printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16849 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16850 CFLAGS="$xorg_testset_save_CFLAGS" 16851fi 16852 16853found="no" 16854 16855 if test $found = "no" ; then 16856 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16857 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16858 fi 16859 16860 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16861 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16862 fi 16863 16864 CFLAGS="$CFLAGS -Werror=trigraphs" 16865 16866 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5 16867printf %s "checking if $CC supports -Werror=trigraphs... " >&6; } 16868 cacheid=xorg_cv_cc_flag__Werror_trigraphs 16869 if eval test \${$cacheid+y} 16870then : 16871 printf %s "(cached) " >&6 16872else case e in #( 16873 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16874/* end confdefs.h. */ 16875int i; 16876int 16877main (void) 16878{ 16879 16880 ; 16881 return 0; 16882} 16883_ACEOF 16884if ac_fn_c_try_link "$LINENO" 16885then : 16886 eval $cacheid=yes 16887else case e in #( 16888 e) eval $cacheid=no ;; 16889esac 16890fi 16891rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16892 conftest$ac_exeext conftest.$ac_ext ;; 16893esac 16894fi 16895 16896 16897 CFLAGS="$xorg_testset_save_CFLAGS" 16898 16899 eval supported=\$$cacheid 16900 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16901printf "%s\n" "$supported" >&6; } 16902 if test "$supported" = "yes" ; then 16903 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs" 16904 found="yes" 16905 fi 16906 fi 16907 16908 16909 16910 16911 16912 16913 16914 16915 16916 16917 16918 16919 16920 16921 16922xorg_testset_save_CFLAGS="$CFLAGS" 16923 16924if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16925 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16926 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16927printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16928if test ${xorg_cv_cc_flag_unknown_warning_option+y} 16929then : 16930 printf %s "(cached) " >&6 16931else case e in #( 16932 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16933/* end confdefs.h. */ 16934int i; 16935_ACEOF 16936if ac_fn_c_try_compile "$LINENO" 16937then : 16938 xorg_cv_cc_flag_unknown_warning_option=yes 16939else case e in #( 16940 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 16941esac 16942fi 16943rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 16944esac 16945fi 16946{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16947printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16948 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16949 CFLAGS="$xorg_testset_save_CFLAGS" 16950fi 16951 16952if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16953 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16954 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16955 fi 16956 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16957 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16958printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16959if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 16960then : 16961 printf %s "(cached) " >&6 16962else case e in #( 16963 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16964/* end confdefs.h. */ 16965int i; 16966_ACEOF 16967if ac_fn_c_try_compile "$LINENO" 16968then : 16969 xorg_cv_cc_flag_unused_command_line_argument=yes 16970else case e in #( 16971 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 16972esac 16973fi 16974rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 16975esac 16976fi 16977{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16978printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16979 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16980 CFLAGS="$xorg_testset_save_CFLAGS" 16981fi 16982 16983found="no" 16984 16985 if test $found = "no" ; then 16986 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16987 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16988 fi 16989 16990 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16991 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16992 fi 16993 16994 CFLAGS="$CFLAGS -Werror=array-bounds" 16995 16996 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5 16997printf %s "checking if $CC supports -Werror=array-bounds... " >&6; } 16998 cacheid=xorg_cv_cc_flag__Werror_array_bounds 16999 if eval test \${$cacheid+y} 17000then : 17001 printf %s "(cached) " >&6 17002else case e in #( 17003 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17004/* end confdefs.h. */ 17005int i; 17006int 17007main (void) 17008{ 17009 17010 ; 17011 return 0; 17012} 17013_ACEOF 17014if ac_fn_c_try_link "$LINENO" 17015then : 17016 eval $cacheid=yes 17017else case e in #( 17018 e) eval $cacheid=no ;; 17019esac 17020fi 17021rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17022 conftest$ac_exeext conftest.$ac_ext ;; 17023esac 17024fi 17025 17026 17027 CFLAGS="$xorg_testset_save_CFLAGS" 17028 17029 eval supported=\$$cacheid 17030 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17031printf "%s\n" "$supported" >&6; } 17032 if test "$supported" = "yes" ; then 17033 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds" 17034 found="yes" 17035 fi 17036 fi 17037 17038 17039 17040 17041 17042 17043 17044 17045 17046 17047 17048 17049 17050 17051 17052xorg_testset_save_CFLAGS="$CFLAGS" 17053 17054if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17055 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17056 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17057printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17058if test ${xorg_cv_cc_flag_unknown_warning_option+y} 17059then : 17060 printf %s "(cached) " >&6 17061else case e in #( 17062 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17063/* end confdefs.h. */ 17064int i; 17065_ACEOF 17066if ac_fn_c_try_compile "$LINENO" 17067then : 17068 xorg_cv_cc_flag_unknown_warning_option=yes 17069else case e in #( 17070 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 17071esac 17072fi 17073rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 17074esac 17075fi 17076{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17077printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17078 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17079 CFLAGS="$xorg_testset_save_CFLAGS" 17080fi 17081 17082if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17083 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17084 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17085 fi 17086 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17087 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17088printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17089if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 17090then : 17091 printf %s "(cached) " >&6 17092else case e in #( 17093 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17094/* end confdefs.h. */ 17095int i; 17096_ACEOF 17097if ac_fn_c_try_compile "$LINENO" 17098then : 17099 xorg_cv_cc_flag_unused_command_line_argument=yes 17100else case e in #( 17101 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 17102esac 17103fi 17104rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 17105esac 17106fi 17107{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17108printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17109 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17110 CFLAGS="$xorg_testset_save_CFLAGS" 17111fi 17112 17113found="no" 17114 17115 if test $found = "no" ; then 17116 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17117 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17118 fi 17119 17120 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17121 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17122 fi 17123 17124 CFLAGS="$CFLAGS -Werror=write-strings" 17125 17126 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5 17127printf %s "checking if $CC supports -Werror=write-strings... " >&6; } 17128 cacheid=xorg_cv_cc_flag__Werror_write_strings 17129 if eval test \${$cacheid+y} 17130then : 17131 printf %s "(cached) " >&6 17132else case e in #( 17133 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17134/* end confdefs.h. */ 17135int i; 17136int 17137main (void) 17138{ 17139 17140 ; 17141 return 0; 17142} 17143_ACEOF 17144if ac_fn_c_try_link "$LINENO" 17145then : 17146 eval $cacheid=yes 17147else case e in #( 17148 e) eval $cacheid=no ;; 17149esac 17150fi 17151rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17152 conftest$ac_exeext conftest.$ac_ext ;; 17153esac 17154fi 17155 17156 17157 CFLAGS="$xorg_testset_save_CFLAGS" 17158 17159 eval supported=\$$cacheid 17160 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17161printf "%s\n" "$supported" >&6; } 17162 if test "$supported" = "yes" ; then 17163 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings" 17164 found="yes" 17165 fi 17166 fi 17167 17168 17169 17170 17171 17172 17173 17174 17175 17176 17177 17178 17179 17180 17181 17182xorg_testset_save_CFLAGS="$CFLAGS" 17183 17184if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17185 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17186 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17187printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17188if test ${xorg_cv_cc_flag_unknown_warning_option+y} 17189then : 17190 printf %s "(cached) " >&6 17191else case e in #( 17192 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17193/* end confdefs.h. */ 17194int i; 17195_ACEOF 17196if ac_fn_c_try_compile "$LINENO" 17197then : 17198 xorg_cv_cc_flag_unknown_warning_option=yes 17199else case e in #( 17200 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 17201esac 17202fi 17203rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 17204esac 17205fi 17206{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17207printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17208 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17209 CFLAGS="$xorg_testset_save_CFLAGS" 17210fi 17211 17212if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17213 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17214 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17215 fi 17216 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17217 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17218printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17219if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 17220then : 17221 printf %s "(cached) " >&6 17222else case e in #( 17223 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17224/* end confdefs.h. */ 17225int i; 17226_ACEOF 17227if ac_fn_c_try_compile "$LINENO" 17228then : 17229 xorg_cv_cc_flag_unused_command_line_argument=yes 17230else case e in #( 17231 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 17232esac 17233fi 17234rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 17235esac 17236fi 17237{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17238printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17239 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17240 CFLAGS="$xorg_testset_save_CFLAGS" 17241fi 17242 17243found="no" 17244 17245 if test $found = "no" ; then 17246 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17247 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17248 fi 17249 17250 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17251 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17252 fi 17253 17254 CFLAGS="$CFLAGS -Werror=address" 17255 17256 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5 17257printf %s "checking if $CC supports -Werror=address... " >&6; } 17258 cacheid=xorg_cv_cc_flag__Werror_address 17259 if eval test \${$cacheid+y} 17260then : 17261 printf %s "(cached) " >&6 17262else case e in #( 17263 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17264/* end confdefs.h. */ 17265int i; 17266int 17267main (void) 17268{ 17269 17270 ; 17271 return 0; 17272} 17273_ACEOF 17274if ac_fn_c_try_link "$LINENO" 17275then : 17276 eval $cacheid=yes 17277else case e in #( 17278 e) eval $cacheid=no ;; 17279esac 17280fi 17281rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17282 conftest$ac_exeext conftest.$ac_ext ;; 17283esac 17284fi 17285 17286 17287 CFLAGS="$xorg_testset_save_CFLAGS" 17288 17289 eval supported=\$$cacheid 17290 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17291printf "%s\n" "$supported" >&6; } 17292 if test "$supported" = "yes" ; then 17293 BASE_CFLAGS="$BASE_CFLAGS -Werror=address" 17294 found="yes" 17295 fi 17296 fi 17297 17298 17299 17300 17301 17302 17303 17304 17305 17306 17307 17308 17309 17310 17311 17312xorg_testset_save_CFLAGS="$CFLAGS" 17313 17314if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17315 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17316 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17317printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17318if test ${xorg_cv_cc_flag_unknown_warning_option+y} 17319then : 17320 printf %s "(cached) " >&6 17321else case e in #( 17322 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17323/* end confdefs.h. */ 17324int i; 17325_ACEOF 17326if ac_fn_c_try_compile "$LINENO" 17327then : 17328 xorg_cv_cc_flag_unknown_warning_option=yes 17329else case e in #( 17330 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 17331esac 17332fi 17333rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 17334esac 17335fi 17336{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17337printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17338 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17339 CFLAGS="$xorg_testset_save_CFLAGS" 17340fi 17341 17342if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17343 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17344 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17345 fi 17346 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17347 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17348printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17349if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 17350then : 17351 printf %s "(cached) " >&6 17352else case e in #( 17353 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17354/* end confdefs.h. */ 17355int i; 17356_ACEOF 17357if ac_fn_c_try_compile "$LINENO" 17358then : 17359 xorg_cv_cc_flag_unused_command_line_argument=yes 17360else case e in #( 17361 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 17362esac 17363fi 17364rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 17365esac 17366fi 17367{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17368printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17369 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17370 CFLAGS="$xorg_testset_save_CFLAGS" 17371fi 17372 17373found="no" 17374 17375 if test $found = "no" ; then 17376 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17377 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17378 fi 17379 17380 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17381 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17382 fi 17383 17384 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast" 17385 17386 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5 17387printf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; } 17388 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast 17389 if eval test \${$cacheid+y} 17390then : 17391 printf %s "(cached) " >&6 17392else case e in #( 17393 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17394/* end confdefs.h. */ 17395int i; 17396int 17397main (void) 17398{ 17399 17400 ; 17401 return 0; 17402} 17403_ACEOF 17404if ac_fn_c_try_link "$LINENO" 17405then : 17406 eval $cacheid=yes 17407else case e in #( 17408 e) eval $cacheid=no ;; 17409esac 17410fi 17411rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17412 conftest$ac_exeext conftest.$ac_ext ;; 17413esac 17414fi 17415 17416 17417 CFLAGS="$xorg_testset_save_CFLAGS" 17418 17419 eval supported=\$$cacheid 17420 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17421printf "%s\n" "$supported" >&6; } 17422 if test "$supported" = "yes" ; then 17423 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast" 17424 found="yes" 17425 fi 17426 fi 17427 17428 if test $found = "no" ; then 17429 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17430 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17431 fi 17432 17433 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17434 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17435 fi 17436 17437 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 17438 17439 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5 17440printf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; } 17441 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION 17442 if eval test \${$cacheid+y} 17443then : 17444 printf %s "(cached) " >&6 17445else case e in #( 17446 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17447/* end confdefs.h. */ 17448int i; 17449int 17450main (void) 17451{ 17452 17453 ; 17454 return 0; 17455} 17456_ACEOF 17457if ac_fn_c_try_link "$LINENO" 17458then : 17459 eval $cacheid=yes 17460else case e in #( 17461 e) eval $cacheid=no ;; 17462esac 17463fi 17464rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17465 conftest$ac_exeext conftest.$ac_ext ;; 17466esac 17467fi 17468 17469 17470 CFLAGS="$xorg_testset_save_CFLAGS" 17471 17472 eval supported=\$$cacheid 17473 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17474printf "%s\n" "$supported" >&6; } 17475 if test "$supported" = "yes" ; then 17476 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 17477 found="yes" 17478 fi 17479 fi 17480 17481 17482 17483 17484 17485 17486 17487 17488 17489 17490 17491 17492 17493 17494 17495xorg_testset_save_CFLAGS="$CFLAGS" 17496 17497if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17498 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17499 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17500printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17501if test ${xorg_cv_cc_flag_unknown_warning_option+y} 17502then : 17503 printf %s "(cached) " >&6 17504else case e in #( 17505 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17506/* end confdefs.h. */ 17507int i; 17508_ACEOF 17509if ac_fn_c_try_compile "$LINENO" 17510then : 17511 xorg_cv_cc_flag_unknown_warning_option=yes 17512else case e in #( 17513 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 17514esac 17515fi 17516rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 17517esac 17518fi 17519{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17520printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17521 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17522 CFLAGS="$xorg_testset_save_CFLAGS" 17523fi 17524 17525if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17526 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17527 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17528 fi 17529 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17530 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17531printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17532if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 17533then : 17534 printf %s "(cached) " >&6 17535else case e in #( 17536 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17537/* end confdefs.h. */ 17538int i; 17539_ACEOF 17540if ac_fn_c_try_compile "$LINENO" 17541then : 17542 xorg_cv_cc_flag_unused_command_line_argument=yes 17543else case e in #( 17544 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 17545esac 17546fi 17547rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 17548esac 17549fi 17550{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17551printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17552 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17553 CFLAGS="$xorg_testset_save_CFLAGS" 17554fi 17555 17556found="no" 17557 17558 if test $found = "no" ; then 17559 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17560 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17561 fi 17562 17563 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17564 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17565 fi 17566 17567 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast" 17568 17569 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5 17570printf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; } 17571 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast 17572 if eval test \${$cacheid+y} 17573then : 17574 printf %s "(cached) " >&6 17575else case e in #( 17576 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17577/* end confdefs.h. */ 17578int i; 17579int 17580main (void) 17581{ 17582 17583 ; 17584 return 0; 17585} 17586_ACEOF 17587if ac_fn_c_try_link "$LINENO" 17588then : 17589 eval $cacheid=yes 17590else case e in #( 17591 e) eval $cacheid=no ;; 17592esac 17593fi 17594rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17595 conftest$ac_exeext conftest.$ac_ext ;; 17596esac 17597fi 17598 17599 17600 CFLAGS="$xorg_testset_save_CFLAGS" 17601 17602 eval supported=\$$cacheid 17603 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17604printf "%s\n" "$supported" >&6; } 17605 if test "$supported" = "yes" ; then 17606 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast" 17607 found="yes" 17608 fi 17609 fi 17610 17611 # Also -errwarn=E_BAD_PTR_INT_COMBINATION 17612else 17613{ 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 17614printf "%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;} 17615 17616 17617 17618 17619 17620 17621 17622 17623 17624 17625 17626 17627 17628xorg_testset_save_CFLAGS="$CFLAGS" 17629 17630if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17631 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17632 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17633printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17634if test ${xorg_cv_cc_flag_unknown_warning_option+y} 17635then : 17636 printf %s "(cached) " >&6 17637else case e in #( 17638 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17639/* end confdefs.h. */ 17640int i; 17641_ACEOF 17642if ac_fn_c_try_compile "$LINENO" 17643then : 17644 xorg_cv_cc_flag_unknown_warning_option=yes 17645else case e in #( 17646 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 17647esac 17648fi 17649rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 17650esac 17651fi 17652{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17653printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17654 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17655 CFLAGS="$xorg_testset_save_CFLAGS" 17656fi 17657 17658if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17659 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17660 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17661 fi 17662 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17663 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17664printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17665if test ${xorg_cv_cc_flag_unused_command_line_argument+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_unused_command_line_argument=yes 17676else case e in #( 17677 e) xorg_cv_cc_flag_unused_command_line_argument=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_unused_command_line_argument" >&5 17684printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17685 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17686 CFLAGS="$xorg_testset_save_CFLAGS" 17687fi 17688 17689found="no" 17690 17691 if test $found = "no" ; then 17692 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17693 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17694 fi 17695 17696 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17697 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17698 fi 17699 17700 CFLAGS="$CFLAGS -Wimplicit" 17701 17702 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5 17703printf %s "checking if $CC supports -Wimplicit... " >&6; } 17704 cacheid=xorg_cv_cc_flag__Wimplicit 17705 if eval test \${$cacheid+y} 17706then : 17707 printf %s "(cached) " >&6 17708else case e in #( 17709 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17710/* end confdefs.h. */ 17711int i; 17712int 17713main (void) 17714{ 17715 17716 ; 17717 return 0; 17718} 17719_ACEOF 17720if ac_fn_c_try_link "$LINENO" 17721then : 17722 eval $cacheid=yes 17723else case e in #( 17724 e) eval $cacheid=no ;; 17725esac 17726fi 17727rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17728 conftest$ac_exeext conftest.$ac_ext ;; 17729esac 17730fi 17731 17732 17733 CFLAGS="$xorg_testset_save_CFLAGS" 17734 17735 eval supported=\$$cacheid 17736 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17737printf "%s\n" "$supported" >&6; } 17738 if test "$supported" = "yes" ; then 17739 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit" 17740 found="yes" 17741 fi 17742 fi 17743 17744 17745 17746 17747 17748 17749 17750 17751 17752 17753 17754 17755 17756 17757 17758xorg_testset_save_CFLAGS="$CFLAGS" 17759 17760if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17761 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17762 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17763printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17764if test ${xorg_cv_cc_flag_unknown_warning_option+y} 17765then : 17766 printf %s "(cached) " >&6 17767else case e in #( 17768 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17769/* end confdefs.h. */ 17770int i; 17771_ACEOF 17772if ac_fn_c_try_compile "$LINENO" 17773then : 17774 xorg_cv_cc_flag_unknown_warning_option=yes 17775else case e in #( 17776 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 17777esac 17778fi 17779rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 17780esac 17781fi 17782{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17783printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17784 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17785 CFLAGS="$xorg_testset_save_CFLAGS" 17786fi 17787 17788if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17789 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17790 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17791 fi 17792 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17793 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17794printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17795if test ${xorg_cv_cc_flag_unused_command_line_argument+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_unused_command_line_argument=yes 17806else case e in #( 17807 e) xorg_cv_cc_flag_unused_command_line_argument=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_unused_command_line_argument" >&5 17814printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17815 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17816 CFLAGS="$xorg_testset_save_CFLAGS" 17817fi 17818 17819found="no" 17820 17821 if test $found = "no" ; then 17822 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17823 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17824 fi 17825 17826 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17827 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17828 fi 17829 17830 CFLAGS="$CFLAGS -Wnonnull" 17831 17832 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5 17833printf %s "checking if $CC supports -Wnonnull... " >&6; } 17834 cacheid=xorg_cv_cc_flag__Wnonnull 17835 if eval test \${$cacheid+y} 17836then : 17837 printf %s "(cached) " >&6 17838else case e in #( 17839 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17840/* end confdefs.h. */ 17841int i; 17842int 17843main (void) 17844{ 17845 17846 ; 17847 return 0; 17848} 17849_ACEOF 17850if ac_fn_c_try_link "$LINENO" 17851then : 17852 eval $cacheid=yes 17853else case e in #( 17854 e) eval $cacheid=no ;; 17855esac 17856fi 17857rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17858 conftest$ac_exeext conftest.$ac_ext ;; 17859esac 17860fi 17861 17862 17863 CFLAGS="$xorg_testset_save_CFLAGS" 17864 17865 eval supported=\$$cacheid 17866 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17867printf "%s\n" "$supported" >&6; } 17868 if test "$supported" = "yes" ; then 17869 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull" 17870 found="yes" 17871 fi 17872 fi 17873 17874 17875 17876 17877 17878 17879 17880 17881 17882 17883 17884 17885 17886 17887 17888xorg_testset_save_CFLAGS="$CFLAGS" 17889 17890if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17891 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17892 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17893printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17894if test ${xorg_cv_cc_flag_unknown_warning_option+y} 17895then : 17896 printf %s "(cached) " >&6 17897else case e in #( 17898 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17899/* end confdefs.h. */ 17900int i; 17901_ACEOF 17902if ac_fn_c_try_compile "$LINENO" 17903then : 17904 xorg_cv_cc_flag_unknown_warning_option=yes 17905else case e in #( 17906 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 17907esac 17908fi 17909rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 17910esac 17911fi 17912{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17913printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17914 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17915 CFLAGS="$xorg_testset_save_CFLAGS" 17916fi 17917 17918if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17919 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17920 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17921 fi 17922 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17923 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17924printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17925if test ${xorg_cv_cc_flag_unused_command_line_argument+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_unused_command_line_argument=yes 17936else case e in #( 17937 e) xorg_cv_cc_flag_unused_command_line_argument=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_unused_command_line_argument" >&5 17944printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17945 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17946 CFLAGS="$xorg_testset_save_CFLAGS" 17947fi 17948 17949found="no" 17950 17951 if test $found = "no" ; then 17952 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17953 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17954 fi 17955 17956 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17957 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17958 fi 17959 17960 CFLAGS="$CFLAGS -Winit-self" 17961 17962 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5 17963printf %s "checking if $CC supports -Winit-self... " >&6; } 17964 cacheid=xorg_cv_cc_flag__Winit_self 17965 if eval test \${$cacheid+y} 17966then : 17967 printf %s "(cached) " >&6 17968else case e in #( 17969 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17970/* end confdefs.h. */ 17971int i; 17972int 17973main (void) 17974{ 17975 17976 ; 17977 return 0; 17978} 17979_ACEOF 17980if ac_fn_c_try_link "$LINENO" 17981then : 17982 eval $cacheid=yes 17983else case e in #( 17984 e) eval $cacheid=no ;; 17985esac 17986fi 17987rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17988 conftest$ac_exeext conftest.$ac_ext ;; 17989esac 17990fi 17991 17992 17993 CFLAGS="$xorg_testset_save_CFLAGS" 17994 17995 eval supported=\$$cacheid 17996 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17997printf "%s\n" "$supported" >&6; } 17998 if test "$supported" = "yes" ; then 17999 BASE_CFLAGS="$BASE_CFLAGS -Winit-self" 18000 found="yes" 18001 fi 18002 fi 18003 18004 18005 18006 18007 18008 18009 18010 18011 18012 18013 18014 18015 18016 18017 18018xorg_testset_save_CFLAGS="$CFLAGS" 18019 18020if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18021 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18022 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18023printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18024if test ${xorg_cv_cc_flag_unknown_warning_option+y} 18025then : 18026 printf %s "(cached) " >&6 18027else case e in #( 18028 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18029/* end confdefs.h. */ 18030int i; 18031_ACEOF 18032if ac_fn_c_try_compile "$LINENO" 18033then : 18034 xorg_cv_cc_flag_unknown_warning_option=yes 18035else case e in #( 18036 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 18037esac 18038fi 18039rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 18040esac 18041fi 18042{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18043printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18044 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18045 CFLAGS="$xorg_testset_save_CFLAGS" 18046fi 18047 18048if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18049 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18050 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18051 fi 18052 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18053 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18054printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18055if test ${xorg_cv_cc_flag_unused_command_line_argument+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_unused_command_line_argument=yes 18066else case e in #( 18067 e) xorg_cv_cc_flag_unused_command_line_argument=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_unused_command_line_argument" >&5 18074printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18075 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18076 CFLAGS="$xorg_testset_save_CFLAGS" 18077fi 18078 18079found="no" 18080 18081 if test $found = "no" ; then 18082 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18083 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18084 fi 18085 18086 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18087 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18088 fi 18089 18090 CFLAGS="$CFLAGS -Wmain" 18091 18092 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5 18093printf %s "checking if $CC supports -Wmain... " >&6; } 18094 cacheid=xorg_cv_cc_flag__Wmain 18095 if eval test \${$cacheid+y} 18096then : 18097 printf %s "(cached) " >&6 18098else case e in #( 18099 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18100/* end confdefs.h. */ 18101int i; 18102int 18103main (void) 18104{ 18105 18106 ; 18107 return 0; 18108} 18109_ACEOF 18110if ac_fn_c_try_link "$LINENO" 18111then : 18112 eval $cacheid=yes 18113else case e in #( 18114 e) eval $cacheid=no ;; 18115esac 18116fi 18117rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18118 conftest$ac_exeext conftest.$ac_ext ;; 18119esac 18120fi 18121 18122 18123 CFLAGS="$xorg_testset_save_CFLAGS" 18124 18125 eval supported=\$$cacheid 18126 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18127printf "%s\n" "$supported" >&6; } 18128 if test "$supported" = "yes" ; then 18129 BASE_CFLAGS="$BASE_CFLAGS -Wmain" 18130 found="yes" 18131 fi 18132 fi 18133 18134 18135 18136 18137 18138 18139 18140 18141 18142 18143 18144 18145 18146 18147 18148xorg_testset_save_CFLAGS="$CFLAGS" 18149 18150if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18151 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18152 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18153printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18154if test ${xorg_cv_cc_flag_unknown_warning_option+y} 18155then : 18156 printf %s "(cached) " >&6 18157else case e in #( 18158 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18159/* end confdefs.h. */ 18160int i; 18161_ACEOF 18162if ac_fn_c_try_compile "$LINENO" 18163then : 18164 xorg_cv_cc_flag_unknown_warning_option=yes 18165else case e in #( 18166 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 18167esac 18168fi 18169rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 18170esac 18171fi 18172{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18173printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18174 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18175 CFLAGS="$xorg_testset_save_CFLAGS" 18176fi 18177 18178if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18179 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18180 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18181 fi 18182 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18183 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18184printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18185if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 18186then : 18187 printf %s "(cached) " >&6 18188else case e in #( 18189 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18190/* end confdefs.h. */ 18191int i; 18192_ACEOF 18193if ac_fn_c_try_compile "$LINENO" 18194then : 18195 xorg_cv_cc_flag_unused_command_line_argument=yes 18196else case e in #( 18197 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 18198esac 18199fi 18200rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 18201esac 18202fi 18203{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18204printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18205 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18206 CFLAGS="$xorg_testset_save_CFLAGS" 18207fi 18208 18209found="no" 18210 18211 if test $found = "no" ; then 18212 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18213 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18214 fi 18215 18216 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18217 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18218 fi 18219 18220 CFLAGS="$CFLAGS -Wmissing-braces" 18221 18222 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5 18223printf %s "checking if $CC supports -Wmissing-braces... " >&6; } 18224 cacheid=xorg_cv_cc_flag__Wmissing_braces 18225 if eval test \${$cacheid+y} 18226then : 18227 printf %s "(cached) " >&6 18228else case e in #( 18229 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18230/* end confdefs.h. */ 18231int i; 18232int 18233main (void) 18234{ 18235 18236 ; 18237 return 0; 18238} 18239_ACEOF 18240if ac_fn_c_try_link "$LINENO" 18241then : 18242 eval $cacheid=yes 18243else case e in #( 18244 e) eval $cacheid=no ;; 18245esac 18246fi 18247rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18248 conftest$ac_exeext conftest.$ac_ext ;; 18249esac 18250fi 18251 18252 18253 CFLAGS="$xorg_testset_save_CFLAGS" 18254 18255 eval supported=\$$cacheid 18256 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18257printf "%s\n" "$supported" >&6; } 18258 if test "$supported" = "yes" ; then 18259 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces" 18260 found="yes" 18261 fi 18262 fi 18263 18264 18265 18266 18267 18268 18269 18270 18271 18272 18273 18274 18275 18276 18277 18278xorg_testset_save_CFLAGS="$CFLAGS" 18279 18280if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18281 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18282 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18283printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18284if test ${xorg_cv_cc_flag_unknown_warning_option+y} 18285then : 18286 printf %s "(cached) " >&6 18287else case e in #( 18288 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18289/* end confdefs.h. */ 18290int i; 18291_ACEOF 18292if ac_fn_c_try_compile "$LINENO" 18293then : 18294 xorg_cv_cc_flag_unknown_warning_option=yes 18295else case e in #( 18296 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 18297esac 18298fi 18299rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 18300esac 18301fi 18302{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18303printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18304 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18305 CFLAGS="$xorg_testset_save_CFLAGS" 18306fi 18307 18308if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18309 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18310 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18311 fi 18312 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18313 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18314printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18315if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 18316then : 18317 printf %s "(cached) " >&6 18318else case e in #( 18319 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18320/* end confdefs.h. */ 18321int i; 18322_ACEOF 18323if ac_fn_c_try_compile "$LINENO" 18324then : 18325 xorg_cv_cc_flag_unused_command_line_argument=yes 18326else case e in #( 18327 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 18328esac 18329fi 18330rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 18331esac 18332fi 18333{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18334printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18335 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18336 CFLAGS="$xorg_testset_save_CFLAGS" 18337fi 18338 18339found="no" 18340 18341 if test $found = "no" ; then 18342 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18343 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18344 fi 18345 18346 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18347 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18348 fi 18349 18350 CFLAGS="$CFLAGS -Wsequence-point" 18351 18352 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5 18353printf %s "checking if $CC supports -Wsequence-point... " >&6; } 18354 cacheid=xorg_cv_cc_flag__Wsequence_point 18355 if eval test \${$cacheid+y} 18356then : 18357 printf %s "(cached) " >&6 18358else case e in #( 18359 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18360/* end confdefs.h. */ 18361int i; 18362int 18363main (void) 18364{ 18365 18366 ; 18367 return 0; 18368} 18369_ACEOF 18370if ac_fn_c_try_link "$LINENO" 18371then : 18372 eval $cacheid=yes 18373else case e in #( 18374 e) eval $cacheid=no ;; 18375esac 18376fi 18377rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18378 conftest$ac_exeext conftest.$ac_ext ;; 18379esac 18380fi 18381 18382 18383 CFLAGS="$xorg_testset_save_CFLAGS" 18384 18385 eval supported=\$$cacheid 18386 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18387printf "%s\n" "$supported" >&6; } 18388 if test "$supported" = "yes" ; then 18389 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point" 18390 found="yes" 18391 fi 18392 fi 18393 18394 18395 18396 18397 18398 18399 18400 18401 18402 18403 18404 18405 18406 18407 18408xorg_testset_save_CFLAGS="$CFLAGS" 18409 18410if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18411 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18412 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18413printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18414if test ${xorg_cv_cc_flag_unknown_warning_option+y} 18415then : 18416 printf %s "(cached) " >&6 18417else case e in #( 18418 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18419/* end confdefs.h. */ 18420int i; 18421_ACEOF 18422if ac_fn_c_try_compile "$LINENO" 18423then : 18424 xorg_cv_cc_flag_unknown_warning_option=yes 18425else case e in #( 18426 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 18427esac 18428fi 18429rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 18430esac 18431fi 18432{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18433printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18434 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18435 CFLAGS="$xorg_testset_save_CFLAGS" 18436fi 18437 18438if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18439 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18440 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18441 fi 18442 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18443 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18444printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18445if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 18446then : 18447 printf %s "(cached) " >&6 18448else case e in #( 18449 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18450/* end confdefs.h. */ 18451int i; 18452_ACEOF 18453if ac_fn_c_try_compile "$LINENO" 18454then : 18455 xorg_cv_cc_flag_unused_command_line_argument=yes 18456else case e in #( 18457 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 18458esac 18459fi 18460rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 18461esac 18462fi 18463{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18464printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18465 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18466 CFLAGS="$xorg_testset_save_CFLAGS" 18467fi 18468 18469found="no" 18470 18471 if test $found = "no" ; then 18472 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18473 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18474 fi 18475 18476 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18477 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18478 fi 18479 18480 CFLAGS="$CFLAGS -Wreturn-type" 18481 18482 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5 18483printf %s "checking if $CC supports -Wreturn-type... " >&6; } 18484 cacheid=xorg_cv_cc_flag__Wreturn_type 18485 if eval test \${$cacheid+y} 18486then : 18487 printf %s "(cached) " >&6 18488else case e in #( 18489 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18490/* end confdefs.h. */ 18491int i; 18492int 18493main (void) 18494{ 18495 18496 ; 18497 return 0; 18498} 18499_ACEOF 18500if ac_fn_c_try_link "$LINENO" 18501then : 18502 eval $cacheid=yes 18503else case e in #( 18504 e) eval $cacheid=no ;; 18505esac 18506fi 18507rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18508 conftest$ac_exeext conftest.$ac_ext ;; 18509esac 18510fi 18511 18512 18513 CFLAGS="$xorg_testset_save_CFLAGS" 18514 18515 eval supported=\$$cacheid 18516 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18517printf "%s\n" "$supported" >&6; } 18518 if test "$supported" = "yes" ; then 18519 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type" 18520 found="yes" 18521 fi 18522 fi 18523 18524 18525 18526 18527 18528 18529 18530 18531 18532 18533 18534 18535 18536 18537 18538xorg_testset_save_CFLAGS="$CFLAGS" 18539 18540if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18541 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18542 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18543printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18544if test ${xorg_cv_cc_flag_unknown_warning_option+y} 18545then : 18546 printf %s "(cached) " >&6 18547else case e in #( 18548 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18549/* end confdefs.h. */ 18550int i; 18551_ACEOF 18552if ac_fn_c_try_compile "$LINENO" 18553then : 18554 xorg_cv_cc_flag_unknown_warning_option=yes 18555else case e in #( 18556 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 18557esac 18558fi 18559rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 18560esac 18561fi 18562{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18563printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18564 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18565 CFLAGS="$xorg_testset_save_CFLAGS" 18566fi 18567 18568if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18569 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18570 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18571 fi 18572 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18573 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18574printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18575if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 18576then : 18577 printf %s "(cached) " >&6 18578else case e in #( 18579 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18580/* end confdefs.h. */ 18581int i; 18582_ACEOF 18583if ac_fn_c_try_compile "$LINENO" 18584then : 18585 xorg_cv_cc_flag_unused_command_line_argument=yes 18586else case e in #( 18587 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 18588esac 18589fi 18590rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 18591esac 18592fi 18593{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18594printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18595 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18596 CFLAGS="$xorg_testset_save_CFLAGS" 18597fi 18598 18599found="no" 18600 18601 if test $found = "no" ; then 18602 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18603 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18604 fi 18605 18606 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18607 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18608 fi 18609 18610 CFLAGS="$CFLAGS -Wtrigraphs" 18611 18612 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5 18613printf %s "checking if $CC supports -Wtrigraphs... " >&6; } 18614 cacheid=xorg_cv_cc_flag__Wtrigraphs 18615 if eval test \${$cacheid+y} 18616then : 18617 printf %s "(cached) " >&6 18618else case e in #( 18619 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18620/* end confdefs.h. */ 18621int i; 18622int 18623main (void) 18624{ 18625 18626 ; 18627 return 0; 18628} 18629_ACEOF 18630if ac_fn_c_try_link "$LINENO" 18631then : 18632 eval $cacheid=yes 18633else case e in #( 18634 e) eval $cacheid=no ;; 18635esac 18636fi 18637rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18638 conftest$ac_exeext conftest.$ac_ext ;; 18639esac 18640fi 18641 18642 18643 CFLAGS="$xorg_testset_save_CFLAGS" 18644 18645 eval supported=\$$cacheid 18646 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18647printf "%s\n" "$supported" >&6; } 18648 if test "$supported" = "yes" ; then 18649 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs" 18650 found="yes" 18651 fi 18652 fi 18653 18654 18655 18656 18657 18658 18659 18660 18661 18662 18663 18664 18665 18666 18667 18668xorg_testset_save_CFLAGS="$CFLAGS" 18669 18670if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18671 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18672 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18673printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18674if test ${xorg_cv_cc_flag_unknown_warning_option+y} 18675then : 18676 printf %s "(cached) " >&6 18677else case e in #( 18678 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18679/* end confdefs.h. */ 18680int i; 18681_ACEOF 18682if ac_fn_c_try_compile "$LINENO" 18683then : 18684 xorg_cv_cc_flag_unknown_warning_option=yes 18685else case e in #( 18686 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 18687esac 18688fi 18689rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 18690esac 18691fi 18692{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18693printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18694 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18695 CFLAGS="$xorg_testset_save_CFLAGS" 18696fi 18697 18698if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18699 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18700 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18701 fi 18702 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18703 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18704printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18705if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 18706then : 18707 printf %s "(cached) " >&6 18708else case e in #( 18709 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18710/* end confdefs.h. */ 18711int i; 18712_ACEOF 18713if ac_fn_c_try_compile "$LINENO" 18714then : 18715 xorg_cv_cc_flag_unused_command_line_argument=yes 18716else case e in #( 18717 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 18718esac 18719fi 18720rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 18721esac 18722fi 18723{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18724printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18725 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18726 CFLAGS="$xorg_testset_save_CFLAGS" 18727fi 18728 18729found="no" 18730 18731 if test $found = "no" ; then 18732 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18733 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18734 fi 18735 18736 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18737 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18738 fi 18739 18740 CFLAGS="$CFLAGS -Warray-bounds" 18741 18742 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5 18743printf %s "checking if $CC supports -Warray-bounds... " >&6; } 18744 cacheid=xorg_cv_cc_flag__Warray_bounds 18745 if eval test \${$cacheid+y} 18746then : 18747 printf %s "(cached) " >&6 18748else case e in #( 18749 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18750/* end confdefs.h. */ 18751int i; 18752int 18753main (void) 18754{ 18755 18756 ; 18757 return 0; 18758} 18759_ACEOF 18760if ac_fn_c_try_link "$LINENO" 18761then : 18762 eval $cacheid=yes 18763else case e in #( 18764 e) eval $cacheid=no ;; 18765esac 18766fi 18767rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18768 conftest$ac_exeext conftest.$ac_ext ;; 18769esac 18770fi 18771 18772 18773 CFLAGS="$xorg_testset_save_CFLAGS" 18774 18775 eval supported=\$$cacheid 18776 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18777printf "%s\n" "$supported" >&6; } 18778 if test "$supported" = "yes" ; then 18779 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds" 18780 found="yes" 18781 fi 18782 fi 18783 18784 18785 18786 18787 18788 18789 18790 18791 18792 18793 18794 18795 18796 18797 18798xorg_testset_save_CFLAGS="$CFLAGS" 18799 18800if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18801 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18802 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18803printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18804if test ${xorg_cv_cc_flag_unknown_warning_option+y} 18805then : 18806 printf %s "(cached) " >&6 18807else case e in #( 18808 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18809/* end confdefs.h. */ 18810int i; 18811_ACEOF 18812if ac_fn_c_try_compile "$LINENO" 18813then : 18814 xorg_cv_cc_flag_unknown_warning_option=yes 18815else case e in #( 18816 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 18817esac 18818fi 18819rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 18820esac 18821fi 18822{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18823printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18824 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18825 CFLAGS="$xorg_testset_save_CFLAGS" 18826fi 18827 18828if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18829 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18830 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18831 fi 18832 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18833 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18834printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18835if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 18836then : 18837 printf %s "(cached) " >&6 18838else case e in #( 18839 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18840/* end confdefs.h. */ 18841int i; 18842_ACEOF 18843if ac_fn_c_try_compile "$LINENO" 18844then : 18845 xorg_cv_cc_flag_unused_command_line_argument=yes 18846else case e in #( 18847 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 18848esac 18849fi 18850rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 18851esac 18852fi 18853{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18854printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18855 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18856 CFLAGS="$xorg_testset_save_CFLAGS" 18857fi 18858 18859found="no" 18860 18861 if test $found = "no" ; then 18862 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18863 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18864 fi 18865 18866 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18867 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18868 fi 18869 18870 CFLAGS="$CFLAGS -Wwrite-strings" 18871 18872 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5 18873printf %s "checking if $CC supports -Wwrite-strings... " >&6; } 18874 cacheid=xorg_cv_cc_flag__Wwrite_strings 18875 if eval test \${$cacheid+y} 18876then : 18877 printf %s "(cached) " >&6 18878else case e in #( 18879 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18880/* end confdefs.h. */ 18881int i; 18882int 18883main (void) 18884{ 18885 18886 ; 18887 return 0; 18888} 18889_ACEOF 18890if ac_fn_c_try_link "$LINENO" 18891then : 18892 eval $cacheid=yes 18893else case e in #( 18894 e) eval $cacheid=no ;; 18895esac 18896fi 18897rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18898 conftest$ac_exeext conftest.$ac_ext ;; 18899esac 18900fi 18901 18902 18903 CFLAGS="$xorg_testset_save_CFLAGS" 18904 18905 eval supported=\$$cacheid 18906 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18907printf "%s\n" "$supported" >&6; } 18908 if test "$supported" = "yes" ; then 18909 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings" 18910 found="yes" 18911 fi 18912 fi 18913 18914 18915 18916 18917 18918 18919 18920 18921 18922 18923 18924 18925 18926 18927 18928xorg_testset_save_CFLAGS="$CFLAGS" 18929 18930if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18931 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18932 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18933printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18934if test ${xorg_cv_cc_flag_unknown_warning_option+y} 18935then : 18936 printf %s "(cached) " >&6 18937else case e in #( 18938 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18939/* end confdefs.h. */ 18940int i; 18941_ACEOF 18942if ac_fn_c_try_compile "$LINENO" 18943then : 18944 xorg_cv_cc_flag_unknown_warning_option=yes 18945else case e in #( 18946 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 18947esac 18948fi 18949rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 18950esac 18951fi 18952{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18953printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18954 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18955 CFLAGS="$xorg_testset_save_CFLAGS" 18956fi 18957 18958if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18959 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18960 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18961 fi 18962 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18963 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18964printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18965if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 18966then : 18967 printf %s "(cached) " >&6 18968else case e in #( 18969 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18970/* end confdefs.h. */ 18971int i; 18972_ACEOF 18973if ac_fn_c_try_compile "$LINENO" 18974then : 18975 xorg_cv_cc_flag_unused_command_line_argument=yes 18976else case e in #( 18977 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 18978esac 18979fi 18980rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 18981esac 18982fi 18983{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18984printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18985 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18986 CFLAGS="$xorg_testset_save_CFLAGS" 18987fi 18988 18989found="no" 18990 18991 if test $found = "no" ; then 18992 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18993 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18994 fi 18995 18996 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18997 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18998 fi 18999 19000 CFLAGS="$CFLAGS -Waddress" 19001 19002 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5 19003printf %s "checking if $CC supports -Waddress... " >&6; } 19004 cacheid=xorg_cv_cc_flag__Waddress 19005 if eval test \${$cacheid+y} 19006then : 19007 printf %s "(cached) " >&6 19008else case e in #( 19009 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19010/* end confdefs.h. */ 19011int i; 19012int 19013main (void) 19014{ 19015 19016 ; 19017 return 0; 19018} 19019_ACEOF 19020if ac_fn_c_try_link "$LINENO" 19021then : 19022 eval $cacheid=yes 19023else case e in #( 19024 e) eval $cacheid=no ;; 19025esac 19026fi 19027rm -f core conftest.err conftest.$ac_objext conftest.beam \ 19028 conftest$ac_exeext conftest.$ac_ext ;; 19029esac 19030fi 19031 19032 19033 CFLAGS="$xorg_testset_save_CFLAGS" 19034 19035 eval supported=\$$cacheid 19036 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 19037printf "%s\n" "$supported" >&6; } 19038 if test "$supported" = "yes" ; then 19039 BASE_CFLAGS="$BASE_CFLAGS -Waddress" 19040 found="yes" 19041 fi 19042 fi 19043 19044 19045 19046 19047 19048 19049 19050 19051 19052 19053 19054 19055 19056 19057 19058xorg_testset_save_CFLAGS="$CFLAGS" 19059 19060if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 19061 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19062 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 19063printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 19064if test ${xorg_cv_cc_flag_unknown_warning_option+y} 19065then : 19066 printf %s "(cached) " >&6 19067else case e in #( 19068 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19069/* end confdefs.h. */ 19070int i; 19071_ACEOF 19072if ac_fn_c_try_compile "$LINENO" 19073then : 19074 xorg_cv_cc_flag_unknown_warning_option=yes 19075else case e in #( 19076 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 19077esac 19078fi 19079rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 19080esac 19081fi 19082{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 19083printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 19084 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 19085 CFLAGS="$xorg_testset_save_CFLAGS" 19086fi 19087 19088if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 19089 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19090 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19091 fi 19092 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19093 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 19094printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 19095if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 19096then : 19097 printf %s "(cached) " >&6 19098else case e in #( 19099 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19100/* end confdefs.h. */ 19101int i; 19102_ACEOF 19103if ac_fn_c_try_compile "$LINENO" 19104then : 19105 xorg_cv_cc_flag_unused_command_line_argument=yes 19106else case e in #( 19107 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 19108esac 19109fi 19110rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 19111esac 19112fi 19113{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 19114printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 19115 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 19116 CFLAGS="$xorg_testset_save_CFLAGS" 19117fi 19118 19119found="no" 19120 19121 if test $found = "no" ; then 19122 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19123 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19124 fi 19125 19126 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 19127 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19128 fi 19129 19130 CFLAGS="$CFLAGS -Wint-to-pointer-cast" 19131 19132 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5 19133printf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; } 19134 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast 19135 if eval test \${$cacheid+y} 19136then : 19137 printf %s "(cached) " >&6 19138else case e in #( 19139 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19140/* end confdefs.h. */ 19141int i; 19142int 19143main (void) 19144{ 19145 19146 ; 19147 return 0; 19148} 19149_ACEOF 19150if ac_fn_c_try_link "$LINENO" 19151then : 19152 eval $cacheid=yes 19153else case e in #( 19154 e) eval $cacheid=no ;; 19155esac 19156fi 19157rm -f core conftest.err conftest.$ac_objext conftest.beam \ 19158 conftest$ac_exeext conftest.$ac_ext ;; 19159esac 19160fi 19161 19162 19163 CFLAGS="$xorg_testset_save_CFLAGS" 19164 19165 eval supported=\$$cacheid 19166 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 19167printf "%s\n" "$supported" >&6; } 19168 if test "$supported" = "yes" ; then 19169 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast" 19170 found="yes" 19171 fi 19172 fi 19173 19174 19175 19176 19177 19178 19179 19180 19181 19182 19183 19184 19185 19186 19187 19188xorg_testset_save_CFLAGS="$CFLAGS" 19189 19190if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 19191 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19192 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 19193printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 19194if test ${xorg_cv_cc_flag_unknown_warning_option+y} 19195then : 19196 printf %s "(cached) " >&6 19197else case e in #( 19198 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19199/* end confdefs.h. */ 19200int i; 19201_ACEOF 19202if ac_fn_c_try_compile "$LINENO" 19203then : 19204 xorg_cv_cc_flag_unknown_warning_option=yes 19205else case e in #( 19206 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 19207esac 19208fi 19209rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 19210esac 19211fi 19212{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 19213printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 19214 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 19215 CFLAGS="$xorg_testset_save_CFLAGS" 19216fi 19217 19218if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 19219 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19220 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19221 fi 19222 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19223 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 19224printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 19225if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 19226then : 19227 printf %s "(cached) " >&6 19228else case e in #( 19229 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19230/* end confdefs.h. */ 19231int i; 19232_ACEOF 19233if ac_fn_c_try_compile "$LINENO" 19234then : 19235 xorg_cv_cc_flag_unused_command_line_argument=yes 19236else case e in #( 19237 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 19238esac 19239fi 19240rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 19241esac 19242fi 19243{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 19244printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 19245 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 19246 CFLAGS="$xorg_testset_save_CFLAGS" 19247fi 19248 19249found="no" 19250 19251 if test $found = "no" ; then 19252 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19253 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19254 fi 19255 19256 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 19257 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19258 fi 19259 19260 CFLAGS="$CFLAGS -Wpointer-to-int-cast" 19261 19262 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5 19263printf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; } 19264 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast 19265 if eval test \${$cacheid+y} 19266then : 19267 printf %s "(cached) " >&6 19268else case e in #( 19269 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19270/* end confdefs.h. */ 19271int i; 19272int 19273main (void) 19274{ 19275 19276 ; 19277 return 0; 19278} 19279_ACEOF 19280if ac_fn_c_try_link "$LINENO" 19281then : 19282 eval $cacheid=yes 19283else case e in #( 19284 e) eval $cacheid=no ;; 19285esac 19286fi 19287rm -f core conftest.err conftest.$ac_objext conftest.beam \ 19288 conftest$ac_exeext conftest.$ac_ext ;; 19289esac 19290fi 19291 19292 19293 CFLAGS="$xorg_testset_save_CFLAGS" 19294 19295 eval supported=\$$cacheid 19296 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 19297printf "%s\n" "$supported" >&6; } 19298 if test "$supported" = "yes" ; then 19299 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast" 19300 found="yes" 19301 fi 19302 fi 19303 19304 19305fi 19306 19307 19308 19309 19310 19311 19312 19313 CWARNFLAGS="$BASE_CFLAGS" 19314 if test "x$GCC" = xyes ; then 19315 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing" 19316 fi 19317 19318 19319 19320 19321 19322 19323 19324 19325# Check whether --enable-strict-compilation was given. 19326if test ${enable_strict_compilation+y} 19327then : 19328 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 19329else case e in #( 19330 e) STRICT_COMPILE=no ;; 19331esac 19332fi 19333 19334 19335 19336 19337 19338 19339STRICT_CFLAGS="" 19340 19341 19342 19343 19344 19345 19346 19347 19348 19349 19350 19351 19352 19353xorg_testset_save_CFLAGS="$CFLAGS" 19354 19355if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 19356 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19357 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 19358printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 19359if test ${xorg_cv_cc_flag_unknown_warning_option+y} 19360then : 19361 printf %s "(cached) " >&6 19362else case e in #( 19363 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19364/* end confdefs.h. */ 19365int i; 19366_ACEOF 19367if ac_fn_c_try_compile "$LINENO" 19368then : 19369 xorg_cv_cc_flag_unknown_warning_option=yes 19370else case e in #( 19371 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 19372esac 19373fi 19374rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 19375esac 19376fi 19377{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 19378printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 19379 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 19380 CFLAGS="$xorg_testset_save_CFLAGS" 19381fi 19382 19383if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 19384 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19385 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19386 fi 19387 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19388 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 19389printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 19390if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 19391then : 19392 printf %s "(cached) " >&6 19393else case e in #( 19394 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19395/* end confdefs.h. */ 19396int i; 19397_ACEOF 19398if ac_fn_c_try_compile "$LINENO" 19399then : 19400 xorg_cv_cc_flag_unused_command_line_argument=yes 19401else case e in #( 19402 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 19403esac 19404fi 19405rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 19406esac 19407fi 19408{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 19409printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 19410 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 19411 CFLAGS="$xorg_testset_save_CFLAGS" 19412fi 19413 19414found="no" 19415 19416 if test $found = "no" ; then 19417 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19418 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19419 fi 19420 19421 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 19422 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19423 fi 19424 19425 CFLAGS="$CFLAGS -pedantic" 19426 19427 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5 19428printf %s "checking if $CC supports -pedantic... " >&6; } 19429 cacheid=xorg_cv_cc_flag__pedantic 19430 if eval test \${$cacheid+y} 19431then : 19432 printf %s "(cached) " >&6 19433else case e in #( 19434 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19435/* end confdefs.h. */ 19436int i; 19437int 19438main (void) 19439{ 19440 19441 ; 19442 return 0; 19443} 19444_ACEOF 19445if ac_fn_c_try_link "$LINENO" 19446then : 19447 eval $cacheid=yes 19448else case e in #( 19449 e) eval $cacheid=no ;; 19450esac 19451fi 19452rm -f core conftest.err conftest.$ac_objext conftest.beam \ 19453 conftest$ac_exeext conftest.$ac_ext ;; 19454esac 19455fi 19456 19457 19458 CFLAGS="$xorg_testset_save_CFLAGS" 19459 19460 eval supported=\$$cacheid 19461 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 19462printf "%s\n" "$supported" >&6; } 19463 if test "$supported" = "yes" ; then 19464 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic" 19465 found="yes" 19466 fi 19467 fi 19468 19469 19470 19471 19472 19473 19474 19475 19476 19477 19478 19479 19480 19481 19482 19483xorg_testset_save_CFLAGS="$CFLAGS" 19484 19485if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 19486 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19487 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 19488printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 19489if test ${xorg_cv_cc_flag_unknown_warning_option+y} 19490then : 19491 printf %s "(cached) " >&6 19492else case e in #( 19493 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19494/* end confdefs.h. */ 19495int i; 19496_ACEOF 19497if ac_fn_c_try_compile "$LINENO" 19498then : 19499 xorg_cv_cc_flag_unknown_warning_option=yes 19500else case e in #( 19501 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 19502esac 19503fi 19504rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 19505esac 19506fi 19507{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 19508printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 19509 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 19510 CFLAGS="$xorg_testset_save_CFLAGS" 19511fi 19512 19513if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 19514 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19515 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19516 fi 19517 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19518 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 19519printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 19520if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 19521then : 19522 printf %s "(cached) " >&6 19523else case e in #( 19524 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19525/* end confdefs.h. */ 19526int i; 19527_ACEOF 19528if ac_fn_c_try_compile "$LINENO" 19529then : 19530 xorg_cv_cc_flag_unused_command_line_argument=yes 19531else case e in #( 19532 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 19533esac 19534fi 19535rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 19536esac 19537fi 19538{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 19539printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 19540 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 19541 CFLAGS="$xorg_testset_save_CFLAGS" 19542fi 19543 19544found="no" 19545 19546 if test $found = "no" ; then 19547 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19548 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19549 fi 19550 19551 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 19552 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19553 fi 19554 19555 CFLAGS="$CFLAGS -Werror" 19556 19557 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5 19558printf %s "checking if $CC supports -Werror... " >&6; } 19559 cacheid=xorg_cv_cc_flag__Werror 19560 if eval test \${$cacheid+y} 19561then : 19562 printf %s "(cached) " >&6 19563else case e in #( 19564 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19565/* end confdefs.h. */ 19566int i; 19567int 19568main (void) 19569{ 19570 19571 ; 19572 return 0; 19573} 19574_ACEOF 19575if ac_fn_c_try_link "$LINENO" 19576then : 19577 eval $cacheid=yes 19578else case e in #( 19579 e) eval $cacheid=no ;; 19580esac 19581fi 19582rm -f core conftest.err conftest.$ac_objext conftest.beam \ 19583 conftest$ac_exeext conftest.$ac_ext ;; 19584esac 19585fi 19586 19587 19588 CFLAGS="$xorg_testset_save_CFLAGS" 19589 19590 eval supported=\$$cacheid 19591 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 19592printf "%s\n" "$supported" >&6; } 19593 if test "$supported" = "yes" ; then 19594 STRICT_CFLAGS="$STRICT_CFLAGS -Werror" 19595 found="yes" 19596 fi 19597 fi 19598 19599 if test $found = "no" ; then 19600 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19601 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19602 fi 19603 19604 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 19605 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19606 fi 19607 19608 CFLAGS="$CFLAGS -errwarn" 19609 19610 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5 19611printf %s "checking if $CC supports -errwarn... " >&6; } 19612 cacheid=xorg_cv_cc_flag__errwarn 19613 if eval test \${$cacheid+y} 19614then : 19615 printf %s "(cached) " >&6 19616else case e in #( 19617 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19618/* end confdefs.h. */ 19619int i; 19620int 19621main (void) 19622{ 19623 19624 ; 19625 return 0; 19626} 19627_ACEOF 19628if ac_fn_c_try_link "$LINENO" 19629then : 19630 eval $cacheid=yes 19631else case e in #( 19632 e) eval $cacheid=no ;; 19633esac 19634fi 19635rm -f core conftest.err conftest.$ac_objext conftest.beam \ 19636 conftest$ac_exeext conftest.$ac_ext ;; 19637esac 19638fi 19639 19640 19641 CFLAGS="$xorg_testset_save_CFLAGS" 19642 19643 eval supported=\$$cacheid 19644 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 19645printf "%s\n" "$supported" >&6; } 19646 if test "$supported" = "yes" ; then 19647 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn" 19648 found="yes" 19649 fi 19650 fi 19651 19652 19653 19654# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not 19655# activate it with -Werror, so we add it here explicitly. 19656 19657 19658 19659 19660 19661 19662 19663 19664 19665 19666 19667 19668 19669xorg_testset_save_CFLAGS="$CFLAGS" 19670 19671if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 19672 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19673 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 19674printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 19675if test ${xorg_cv_cc_flag_unknown_warning_option+y} 19676then : 19677 printf %s "(cached) " >&6 19678else case e in #( 19679 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19680/* end confdefs.h. */ 19681int i; 19682_ACEOF 19683if ac_fn_c_try_compile "$LINENO" 19684then : 19685 xorg_cv_cc_flag_unknown_warning_option=yes 19686else case e in #( 19687 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 19688esac 19689fi 19690rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 19691esac 19692fi 19693{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 19694printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 19695 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 19696 CFLAGS="$xorg_testset_save_CFLAGS" 19697fi 19698 19699if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 19700 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19701 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19702 fi 19703 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19704 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 19705printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 19706if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 19707then : 19708 printf %s "(cached) " >&6 19709else case e in #( 19710 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19711/* end confdefs.h. */ 19712int i; 19713_ACEOF 19714if ac_fn_c_try_compile "$LINENO" 19715then : 19716 xorg_cv_cc_flag_unused_command_line_argument=yes 19717else case e in #( 19718 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 19719esac 19720fi 19721rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 19722esac 19723fi 19724{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 19725printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 19726 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 19727 CFLAGS="$xorg_testset_save_CFLAGS" 19728fi 19729 19730found="no" 19731 19732 if test $found = "no" ; then 19733 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19734 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19735 fi 19736 19737 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 19738 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19739 fi 19740 19741 CFLAGS="$CFLAGS -Werror=attributes" 19742 19743 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5 19744printf %s "checking if $CC supports -Werror=attributes... " >&6; } 19745 cacheid=xorg_cv_cc_flag__Werror_attributes 19746 if eval test \${$cacheid+y} 19747then : 19748 printf %s "(cached) " >&6 19749else case e in #( 19750 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19751/* end confdefs.h. */ 19752int i; 19753int 19754main (void) 19755{ 19756 19757 ; 19758 return 0; 19759} 19760_ACEOF 19761if ac_fn_c_try_link "$LINENO" 19762then : 19763 eval $cacheid=yes 19764else case e in #( 19765 e) eval $cacheid=no ;; 19766esac 19767fi 19768rm -f core conftest.err conftest.$ac_objext conftest.beam \ 19769 conftest$ac_exeext conftest.$ac_ext ;; 19770esac 19771fi 19772 19773 19774 CFLAGS="$xorg_testset_save_CFLAGS" 19775 19776 eval supported=\$$cacheid 19777 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 19778printf "%s\n" "$supported" >&6; } 19779 if test "$supported" = "yes" ; then 19780 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes" 19781 found="yes" 19782 fi 19783 fi 19784 19785 19786 19787if test "x$STRICT_COMPILE" = "xyes"; then 19788 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS" 19789 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 19790fi 19791 19792 19793 19794 19795 19796 19797 19798 19799cat >>confdefs.h <<_ACEOF 19800#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 19801_ACEOF 19802 19803 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 19804 if test "x$PVM" = "x"; then 19805 PVM="0" 19806 fi 19807 19808printf "%s\n" "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h 19809 19810 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 19811 if test "x$PVP" = "x"; then 19812 PVP="0" 19813 fi 19814 19815printf "%s\n" "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h 19816 19817 19818 19819CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \ 19820mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 19821|| (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \ 19822touch \$(top_srcdir)/ChangeLog; \ 19823echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))" 19824 19825 19826 19827 19828macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros` 19829INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \ 19830mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \ 19831|| (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \ 19832touch \$(top_srcdir)/INSTALL; \ 19833echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))" 19834 19835 19836 19837 19838 19839 19840case $host_os in 19841 solaris*) 19842 # Solaris 2.0 - 11.3 use SysV man page section numbers, so we 19843 # check for a man page file found in later versions that use 19844 # traditional section numbers instead 19845 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5 19846printf %s "checking for /usr/share/man/man7/attributes.7... " >&6; } 19847if test ${ac_cv_file__usr_share_man_man7_attributes_7+y} 19848then : 19849 printf %s "(cached) " >&6 19850else case e in #( 19851 e) test "$cross_compiling" = yes && 19852 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 19853if test -r "/usr/share/man/man7/attributes.7"; then 19854 ac_cv_file__usr_share_man_man7_attributes_7=yes 19855else 19856 ac_cv_file__usr_share_man_man7_attributes_7=no 19857fi ;; 19858esac 19859fi 19860{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5 19861printf "%s\n" "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; } 19862if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes 19863then : 19864 SYSV_MAN_SECTIONS=false 19865else case e in #( 19866 e) SYSV_MAN_SECTIONS=true ;; 19867esac 19868fi 19869 19870 ;; 19871 *) SYSV_MAN_SECTIONS=false ;; 19872esac 19873 19874if test x$APP_MAN_SUFFIX = x ; then 19875 APP_MAN_SUFFIX=1 19876fi 19877if test x$APP_MAN_DIR = x ; then 19878 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 19879fi 19880 19881if test x$LIB_MAN_SUFFIX = x ; then 19882 LIB_MAN_SUFFIX=3 19883fi 19884if test x$LIB_MAN_DIR = x ; then 19885 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 19886fi 19887 19888if test x$FILE_MAN_SUFFIX = x ; then 19889 case $SYSV_MAN_SECTIONS in 19890 true) FILE_MAN_SUFFIX=4 ;; 19891 *) FILE_MAN_SUFFIX=5 ;; 19892 esac 19893fi 19894if test x$FILE_MAN_DIR = x ; then 19895 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 19896fi 19897 19898if test x$MISC_MAN_SUFFIX = x ; then 19899 case $SYSV_MAN_SECTIONS in 19900 true) MISC_MAN_SUFFIX=5 ;; 19901 *) MISC_MAN_SUFFIX=7 ;; 19902 esac 19903fi 19904if test x$MISC_MAN_DIR = x ; then 19905 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 19906fi 19907 19908if test x$DRIVER_MAN_SUFFIX = x ; then 19909 case $SYSV_MAN_SECTIONS in 19910 true) DRIVER_MAN_SUFFIX=7 ;; 19911 *) DRIVER_MAN_SUFFIX=4 ;; 19912 esac 19913fi 19914if test x$DRIVER_MAN_DIR = x ; then 19915 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 19916fi 19917 19918if test x$ADMIN_MAN_SUFFIX = x ; then 19919 case $SYSV_MAN_SECTIONS in 19920 true) ADMIN_MAN_SUFFIX=1m ;; 19921 *) ADMIN_MAN_SUFFIX=8 ;; 19922 esac 19923fi 19924if test x$ADMIN_MAN_DIR = x ; then 19925 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 19926fi 19927 19928 19929 19930 19931 19932 19933 19934 19935 19936 19937 19938 19939 19940 19941 19942XORG_MAN_PAGE="X Version 11" 19943 19944MAN_SUBSTS="\ 19945 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 19946 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 19947 -e 's|__xservername__|Xorg|g' \ 19948 -e 's|__xconfigfile__|xorg.conf|g' \ 19949 -e 's|__projectroot__|\$(prefix)|g' \ 19950 -e 's|__apploaddir__|\$(appdefaultdir)|g' \ 19951 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \ 19952 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \ 19953 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \ 19954 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \ 19955 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \ 19956 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'" 19957 19958 19959 19960# Check whether --enable-silent-rules was given. 19961if test ${enable_silent_rules+y} 19962then : 19963 enableval=$enable_silent_rules; 19964fi 19965 19966case $enable_silent_rules in # ((( 19967 yes) AM_DEFAULT_VERBOSITY=0;; 19968 no) AM_DEFAULT_VERBOSITY=1;; 19969 *) AM_DEFAULT_VERBOSITY=0;; 19970esac 19971am_make=${MAKE-make} 19972{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 19973printf %s "checking whether $am_make supports nested variables... " >&6; } 19974if test ${am_cv_make_support_nested_variables+y} 19975then : 19976 printf %s "(cached) " >&6 19977else case e in #( 19978 e) if printf "%s\n" 'TRUE=$(BAR$(V)) 19979BAR0=false 19980BAR1=true 19981V=1 19982am__doit: 19983 @$(TRUE) 19984.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 19985 am_cv_make_support_nested_variables=yes 19986else 19987 am_cv_make_support_nested_variables=no 19988fi ;; 19989esac 19990fi 19991{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 19992printf "%s\n" "$am_cv_make_support_nested_variables" >&6; } 19993if test $am_cv_make_support_nested_variables = yes; then 19994 AM_V='$(V)' 19995 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 19996else 19997 AM_V=$AM_DEFAULT_VERBOSITY 19998 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 19999fi 20000AM_BACKSLASH='\' 20001 20002 20003 20004 20005 20006# Check whether --enable-specs was given. 20007if test ${enable_specs+y} 20008then : 20009 enableval=$enable_specs; build_specs=$enableval 20010else case e in #( 20011 e) build_specs=yes ;; 20012esac 20013fi 20014 20015 20016 if test x$build_specs = xyes; then 20017 ENABLE_SPECS_TRUE= 20018 ENABLE_SPECS_FALSE='#' 20019else 20020 ENABLE_SPECS_TRUE='#' 20021 ENABLE_SPECS_FALSE= 20022fi 20023 20024{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build functional specifications" >&5 20025printf %s "checking whether to build functional specifications... " >&6; } 20026{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $build_specs" >&5 20027printf "%s\n" "$build_specs" >&6; } 20028 20029 20030 20031 20032 20033# Check whether --with-xmlto was given. 20034if test ${with_xmlto+y} 20035then : 20036 withval=$with_xmlto; use_xmlto=$withval 20037else case e in #( 20038 e) use_xmlto=auto ;; 20039esac 20040fi 20041 20042 20043 20044if test "x$use_xmlto" = x"auto"; then 20045 # Extract the first word of "xmlto", so it can be a program name with args. 20046set dummy xmlto; ac_word=$2 20047{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 20048printf %s "checking for $ac_word... " >&6; } 20049if test ${ac_cv_path_XMLTO+y} 20050then : 20051 printf %s "(cached) " >&6 20052else case e in #( 20053 e) case $XMLTO in 20054 [\\/]* | ?:[\\/]*) 20055 ac_cv_path_XMLTO="$XMLTO" # Let the user override the test with a path. 20056 ;; 20057 *) 20058 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20059for as_dir in $PATH 20060do 20061 IFS=$as_save_IFS 20062 case $as_dir in #((( 20063 '') as_dir=./ ;; 20064 */) ;; 20065 *) as_dir=$as_dir/ ;; 20066 esac 20067 for ac_exec_ext in '' $ac_executable_extensions; do 20068 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 20069 ac_cv_path_XMLTO="$as_dir$ac_word$ac_exec_ext" 20070 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 20071 break 2 20072 fi 20073done 20074 done 20075IFS=$as_save_IFS 20076 20077 ;; 20078esac ;; 20079esac 20080fi 20081XMLTO=$ac_cv_path_XMLTO 20082if test -n "$XMLTO"; then 20083 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XMLTO" >&5 20084printf "%s\n" "$XMLTO" >&6; } 20085else 20086 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 20087printf "%s\n" "no" >&6; } 20088fi 20089 20090 20091 if test "x$XMLTO" = "x"; then 20092 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: xmlto not found - documentation targets will be skipped" >&5 20093printf "%s\n" "$as_me: WARNING: xmlto not found - documentation targets will be skipped" >&2;} 20094 have_xmlto=no 20095 else 20096 have_xmlto=yes 20097 fi 20098elif test "x$use_xmlto" = x"yes" ; then 20099 # Extract the first word of "xmlto", so it can be a program name with args. 20100set dummy xmlto; ac_word=$2 20101{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 20102printf %s "checking for $ac_word... " >&6; } 20103if test ${ac_cv_path_XMLTO+y} 20104then : 20105 printf %s "(cached) " >&6 20106else case e in #( 20107 e) case $XMLTO in 20108 [\\/]* | ?:[\\/]*) 20109 ac_cv_path_XMLTO="$XMLTO" # Let the user override the test with a path. 20110 ;; 20111 *) 20112 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20113for as_dir in $PATH 20114do 20115 IFS=$as_save_IFS 20116 case $as_dir in #((( 20117 '') as_dir=./ ;; 20118 */) ;; 20119 *) as_dir=$as_dir/ ;; 20120 esac 20121 for ac_exec_ext in '' $ac_executable_extensions; do 20122 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 20123 ac_cv_path_XMLTO="$as_dir$ac_word$ac_exec_ext" 20124 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 20125 break 2 20126 fi 20127done 20128 done 20129IFS=$as_save_IFS 20130 20131 ;; 20132esac ;; 20133esac 20134fi 20135XMLTO=$ac_cv_path_XMLTO 20136if test -n "$XMLTO"; then 20137 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XMLTO" >&5 20138printf "%s\n" "$XMLTO" >&6; } 20139else 20140 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 20141printf "%s\n" "no" >&6; } 20142fi 20143 20144 20145 if test "x$XMLTO" = "x"; then 20146 as_fn_error $? "--with-xmlto=yes specified but xmlto not found in PATH" "$LINENO" 5 20147 fi 20148 have_xmlto=yes 20149elif test "x$use_xmlto" = x"no" ; then 20150 if test "x$XMLTO" != "x"; then 20151 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ignoring XMLTO environment variable since --with-xmlto=no was specified" >&5 20152printf "%s\n" "$as_me: WARNING: ignoring XMLTO environment variable since --with-xmlto=no was specified" >&2;} 20153 fi 20154 have_xmlto=no 20155else 20156 as_fn_error $? "--with-xmlto expects 'yes' or 'no'" "$LINENO" 5 20157fi 20158 20159# Test for a minimum version of xmlto, if provided. 20160if test "$have_xmlto" = yes; then 20161 # scrape the xmlto version 20162 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the xmlto version" >&5 20163printf %s "checking the xmlto version... " >&6; } 20164 xmlto_version=`$XMLTO --version 2>/dev/null | cut -d' ' -f3` 20165 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xmlto_version" >&5 20166printf "%s\n" "$xmlto_version" >&6; } 20167 as_arg_v1=$xmlto_version 20168as_arg_v2=0.0.22 20169awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null 20170case $? in #( 20171 1) : 20172 if test "x$use_xmlto" = xauto; then 20173 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: xmlto version $xmlto_version found, but 0.0.22 needed" >&5 20174printf "%s\n" "$as_me: WARNING: xmlto version $xmlto_version found, but 0.0.22 needed" >&2;} 20175 have_xmlto=no 20176 else 20177 as_fn_error $? "xmlto version $xmlto_version found, but 0.0.22 needed" "$LINENO" 5 20178 fi ;; #( 20179 0) : 20180 ;; #( 20181 2) : 20182 ;; #( 20183 *) : 20184 ;; 20185esac 20186fi 20187 20188# Test for the ability of xmlto to generate a text target 20189# 20190# NOTE: xmlto 0.0.27 or higher return a non-zero return code in the 20191# following test for empty XML docbook files. 20192# For compatibility reasons use the following empty XML docbook file and if 20193# it fails try it again with a non-empty XML file. 20194have_xmlto_text=no 20195cat > conftest.xml << "EOF" 20196EOF 20197if test "$have_xmlto" = yes 20198then : 20199 if $XMLTO --skip-validation txt conftest.xml >/dev/null 2>&1 20200then : 20201 have_xmlto_text=yes 20202else case e in #( 20203 e) # Try it again with a non-empty XML file. 20204 cat > conftest.xml << "EOF" 20205<x></x> 20206EOF 20207 if $XMLTO --skip-validation txt conftest.xml >/dev/null 2>&1 20208then : 20209 have_xmlto_text=yes 20210else case e in #( 20211 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: xmlto cannot generate text format, this format skipped" >&5 20212printf "%s\n" "$as_me: WARNING: xmlto cannot generate text format, this format skipped" >&2;} ;; 20213esac 20214fi ;; 20215esac 20216fi 20217fi 20218rm -f conftest.xml 20219 if test $have_xmlto_text = yes; then 20220 HAVE_XMLTO_TEXT_TRUE= 20221 HAVE_XMLTO_TEXT_FALSE='#' 20222else 20223 HAVE_XMLTO_TEXT_TRUE='#' 20224 HAVE_XMLTO_TEXT_FALSE= 20225fi 20226 20227 if test "$have_xmlto" = yes; then 20228 HAVE_XMLTO_TRUE= 20229 HAVE_XMLTO_FALSE='#' 20230else 20231 HAVE_XMLTO_TRUE='#' 20232 HAVE_XMLTO_FALSE= 20233fi 20234 20235 20236 20237 20238 20239 20240# Check whether --with-fop was given. 20241if test ${with_fop+y} 20242then : 20243 withval=$with_fop; use_fop=$withval 20244else case e in #( 20245 e) use_fop=auto ;; 20246esac 20247fi 20248 20249 20250 20251if test "x$use_fop" = x"auto"; then 20252 # Extract the first word of "fop", so it can be a program name with args. 20253set dummy fop; ac_word=$2 20254{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 20255printf %s "checking for $ac_word... " >&6; } 20256if test ${ac_cv_path_FOP+y} 20257then : 20258 printf %s "(cached) " >&6 20259else case e in #( 20260 e) case $FOP in 20261 [\\/]* | ?:[\\/]*) 20262 ac_cv_path_FOP="$FOP" # Let the user override the test with a path. 20263 ;; 20264 *) 20265 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20266for as_dir in $PATH 20267do 20268 IFS=$as_save_IFS 20269 case $as_dir in #((( 20270 '') as_dir=./ ;; 20271 */) ;; 20272 *) as_dir=$as_dir/ ;; 20273 esac 20274 for ac_exec_ext in '' $ac_executable_extensions; do 20275 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 20276 ac_cv_path_FOP="$as_dir$ac_word$ac_exec_ext" 20277 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 20278 break 2 20279 fi 20280done 20281 done 20282IFS=$as_save_IFS 20283 20284 ;; 20285esac ;; 20286esac 20287fi 20288FOP=$ac_cv_path_FOP 20289if test -n "$FOP"; then 20290 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FOP" >&5 20291printf "%s\n" "$FOP" >&6; } 20292else 20293 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 20294printf "%s\n" "no" >&6; } 20295fi 20296 20297 20298 if test "x$FOP" = "x"; then 20299 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: fop not found - documentation targets will be skipped" >&5 20300printf "%s\n" "$as_me: WARNING: fop not found - documentation targets will be skipped" >&2;} 20301 have_fop=no 20302 else 20303 have_fop=yes 20304 fi 20305elif test "x$use_fop" = x"yes" ; then 20306 # Extract the first word of "fop", so it can be a program name with args. 20307set dummy fop; ac_word=$2 20308{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 20309printf %s "checking for $ac_word... " >&6; } 20310if test ${ac_cv_path_FOP+y} 20311then : 20312 printf %s "(cached) " >&6 20313else case e in #( 20314 e) case $FOP in 20315 [\\/]* | ?:[\\/]*) 20316 ac_cv_path_FOP="$FOP" # Let the user override the test with a path. 20317 ;; 20318 *) 20319 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20320for as_dir in $PATH 20321do 20322 IFS=$as_save_IFS 20323 case $as_dir in #((( 20324 '') as_dir=./ ;; 20325 */) ;; 20326 *) as_dir=$as_dir/ ;; 20327 esac 20328 for ac_exec_ext in '' $ac_executable_extensions; do 20329 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 20330 ac_cv_path_FOP="$as_dir$ac_word$ac_exec_ext" 20331 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 20332 break 2 20333 fi 20334done 20335 done 20336IFS=$as_save_IFS 20337 20338 ;; 20339esac ;; 20340esac 20341fi 20342FOP=$ac_cv_path_FOP 20343if test -n "$FOP"; then 20344 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FOP" >&5 20345printf "%s\n" "$FOP" >&6; } 20346else 20347 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 20348printf "%s\n" "no" >&6; } 20349fi 20350 20351 20352 if test "x$FOP" = "x"; then 20353 as_fn_error $? "--with-fop=yes specified but fop not found in PATH" "$LINENO" 5 20354 fi 20355 have_fop=yes 20356elif test "x$use_fop" = x"no" ; then 20357 if test "x$FOP" != "x"; then 20358 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ignoring FOP environment variable since --with-fop=no was specified" >&5 20359printf "%s\n" "$as_me: WARNING: ignoring FOP environment variable since --with-fop=no was specified" >&2;} 20360 fi 20361 have_fop=no 20362else 20363 as_fn_error $? "--with-fop expects 'yes' or 'no'" "$LINENO" 5 20364fi 20365 20366# Test for a minimum version of fop, if provided. 20367 20368 if test "$have_fop" = yes; then 20369 HAVE_FOP_TRUE= 20370 HAVE_FOP_FALSE='#' 20371else 20372 HAVE_FOP_TRUE='#' 20373 HAVE_FOP_FALSE= 20374fi 20375 20376 20377 20378 20379# Preserves the interface, should it be implemented later 20380 20381 20382 20383# Check whether --with-xsltproc was given. 20384if test ${with_xsltproc+y} 20385then : 20386 withval=$with_xsltproc; use_xsltproc=$withval 20387else case e in #( 20388 e) use_xsltproc=auto ;; 20389esac 20390fi 20391 20392 20393 20394if test "x$use_xsltproc" = x"auto"; then 20395 # Extract the first word of "xsltproc", so it can be a program name with args. 20396set dummy xsltproc; ac_word=$2 20397{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 20398printf %s "checking for $ac_word... " >&6; } 20399if test ${ac_cv_path_XSLTPROC+y} 20400then : 20401 printf %s "(cached) " >&6 20402else case e in #( 20403 e) case $XSLTPROC in 20404 [\\/]* | ?:[\\/]*) 20405 ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path. 20406 ;; 20407 *) 20408 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20409for as_dir in $PATH 20410do 20411 IFS=$as_save_IFS 20412 case $as_dir in #((( 20413 '') as_dir=./ ;; 20414 */) ;; 20415 *) as_dir=$as_dir/ ;; 20416 esac 20417 for ac_exec_ext in '' $ac_executable_extensions; do 20418 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 20419 ac_cv_path_XSLTPROC="$as_dir$ac_word$ac_exec_ext" 20420 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 20421 break 2 20422 fi 20423done 20424 done 20425IFS=$as_save_IFS 20426 20427 ;; 20428esac ;; 20429esac 20430fi 20431XSLTPROC=$ac_cv_path_XSLTPROC 20432if test -n "$XSLTPROC"; then 20433 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5 20434printf "%s\n" "$XSLTPROC" >&6; } 20435else 20436 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 20437printf "%s\n" "no" >&6; } 20438fi 20439 20440 20441 if test "x$XSLTPROC" = "x"; then 20442 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: xsltproc not found - cannot transform XML documents" >&5 20443printf "%s\n" "$as_me: WARNING: xsltproc not found - cannot transform XML documents" >&2;} 20444 have_xsltproc=no 20445 else 20446 have_xsltproc=yes 20447 fi 20448elif test "x$use_xsltproc" = x"yes" ; then 20449 # Extract the first word of "xsltproc", so it can be a program name with args. 20450set dummy xsltproc; ac_word=$2 20451{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 20452printf %s "checking for $ac_word... " >&6; } 20453if test ${ac_cv_path_XSLTPROC+y} 20454then : 20455 printf %s "(cached) " >&6 20456else case e in #( 20457 e) case $XSLTPROC in 20458 [\\/]* | ?:[\\/]*) 20459 ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path. 20460 ;; 20461 *) 20462 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20463for as_dir in $PATH 20464do 20465 IFS=$as_save_IFS 20466 case $as_dir in #((( 20467 '') as_dir=./ ;; 20468 */) ;; 20469 *) as_dir=$as_dir/ ;; 20470 esac 20471 for ac_exec_ext in '' $ac_executable_extensions; do 20472 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 20473 ac_cv_path_XSLTPROC="$as_dir$ac_word$ac_exec_ext" 20474 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 20475 break 2 20476 fi 20477done 20478 done 20479IFS=$as_save_IFS 20480 20481 ;; 20482esac ;; 20483esac 20484fi 20485XSLTPROC=$ac_cv_path_XSLTPROC 20486if test -n "$XSLTPROC"; then 20487 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5 20488printf "%s\n" "$XSLTPROC" >&6; } 20489else 20490 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 20491printf "%s\n" "no" >&6; } 20492fi 20493 20494 20495 if test "x$XSLTPROC" = "x"; then 20496 as_fn_error $? "--with-xsltproc=yes specified but xsltproc not found in PATH" "$LINENO" 5 20497 fi 20498 have_xsltproc=yes 20499elif test "x$use_xsltproc" = x"no" ; then 20500 if test "x$XSLTPROC" != "x"; then 20501 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ignoring XSLTPROC environment variable since --with-xsltproc=no was specified" >&5 20502printf "%s\n" "$as_me: WARNING: ignoring XSLTPROC environment variable since --with-xsltproc=no was specified" >&2;} 20503 fi 20504 have_xsltproc=no 20505else 20506 as_fn_error $? "--with-xsltproc expects 'yes' or 'no'" "$LINENO" 5 20507fi 20508 20509 if test "$have_xsltproc" = yes; then 20510 HAVE_XSLTPROC_TRUE= 20511 HAVE_XSLTPROC_FALSE='#' 20512else 20513 HAVE_XSLTPROC_TRUE='#' 20514 HAVE_XSLTPROC_FALSE= 20515fi 20516 20517 20518 20519{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for X.Org SGML entities >= 1.8" >&5 20520printf %s "checking for X.Org SGML entities >= 1.8... " >&6; } 20521XORG_SGML_PATH= 20522if test -n "$PKG_CONFIG" && \ 20523 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-sgml-doctools >= 1.8\""; } >&5 20524 ($PKG_CONFIG --exists --print-errors "xorg-sgml-doctools >= 1.8") 2>&5 20525 ac_status=$? 20526 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 20527 test $ac_status = 0; }; then 20528 XORG_SGML_PATH=`$PKG_CONFIG --variable=sgmlrootdir xorg-sgml-doctools` 20529else 20530 : 20531 20532fi 20533 20534# Define variables STYLESHEET_SRCDIR and XSL_STYLESHEET containing 20535# the path and the name of the doc stylesheet 20536if test "x$XORG_SGML_PATH" != "x" ; then 20537 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XORG_SGML_PATH" >&5 20538printf "%s\n" "$XORG_SGML_PATH" >&6; } 20539 STYLESHEET_SRCDIR=$XORG_SGML_PATH/X11 20540 XSL_STYLESHEET=$STYLESHEET_SRCDIR/xorg.xsl 20541else 20542 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 20543printf "%s\n" "no" >&6; } 20544fi 20545 20546 20547 20548 20549 if test "x$XSL_STYLESHEET" != "x"; then 20550 HAVE_STYLESHEETS_TRUE= 20551 HAVE_STYLESHEETS_FALSE='#' 20552else 20553 HAVE_STYLESHEETS_TRUE='#' 20554 HAVE_STYLESHEETS_FALSE= 20555fi 20556 20557 20558 20559# Check whether --enable-malloc0returnsnull was given. 20560if test ${enable_malloc0returnsnull+y} 20561then : 20562 enableval=$enable_malloc0returnsnull; MALLOC_ZERO_RETURNS_NULL=$enableval 20563else case e in #( 20564 e) MALLOC_ZERO_RETURNS_NULL=auto ;; 20565esac 20566fi 20567 20568 20569{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether malloc(0) returns NULL" >&5 20570printf %s "checking whether malloc(0) returns NULL... " >&6; } 20571if test "x$MALLOC_ZERO_RETURNS_NULL" = xauto; then 20572if test ${xorg_cv_malloc0_returns_null+y} 20573then : 20574 printf %s "(cached) " >&6 20575else case e in #( 20576 e) if test "$cross_compiling" = yes 20577then : 20578 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 20579printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 20580as_fn_error $? "cannot run test program while cross compiling 20581See 'config.log' for more details" "$LINENO" 5; } 20582else case e in #( 20583 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20584/* end confdefs.h. */ 20585 20586#include <stdlib.h> 20587 20588int 20589main (void) 20590{ 20591 20592 char *m0, *r0, *c0, *p; 20593 m0 = malloc(0); 20594 p = malloc(10); 20595 r0 = realloc(p,0); 20596 c0 = calloc(0,10); 20597 exit((m0 == 0 || r0 == 0 || c0 == 0) ? 0 : 1); 20598 20599 ; 20600 return 0; 20601} 20602_ACEOF 20603if ac_fn_c_try_run "$LINENO" 20604then : 20605 xorg_cv_malloc0_returns_null=yes 20606else case e in #( 20607 e) xorg_cv_malloc0_returns_null=no ;; 20608esac 20609fi 20610rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 20611 conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 20612esac 20613fi 20614 ;; 20615esac 20616fi 20617 20618MALLOC_ZERO_RETURNS_NULL=$xorg_cv_malloc0_returns_null 20619fi 20620{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MALLOC_ZERO_RETURNS_NULL" >&5 20621printf "%s\n" "$MALLOC_ZERO_RETURNS_NULL" >&6; } 20622 20623if test "x$MALLOC_ZERO_RETURNS_NULL" = xyes; then 20624 MALLOC_ZERO_CFLAGS="-DMALLOC_0_RETURNS_NULL" 20625 XMALLOC_ZERO_CFLAGS=$MALLOC_ZERO_CFLAGS 20626 XTMALLOC_ZERO_CFLAGS="$MALLOC_ZERO_CFLAGS -DXTMALLOC_BC" 20627else 20628 MALLOC_ZERO_CFLAGS="" 20629 XMALLOC_ZERO_CFLAGS="" 20630 XTMALLOC_ZERO_CFLAGS="" 20631fi 20632 20633 20634 20635 20636 20637 20638# Determine .so library version per platform 20639# based on SharedXextRev in monolith xc/config/cf/*Lib.tmpl 20640if test "x$XEXT_SOREV" = "x" ; then 20641 case $host_os in 20642 openbsd*) XEXT_SOREV=8:0 ;; 20643 solaris*) XEXT_SOREV=0 ;; 20644 *) XEXT_SOREV=6:4:0 ;; 20645 esac 20646fi 20647 20648 20649# Obtain compiler/linker options for dependencies 20650 20651pkg_failed=no 20652{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XEXT" >&5 20653printf %s "checking for XEXT... " >&6; } 20654 20655if test -n "$XEXT_CFLAGS"; then 20656 pkg_cv_XEXT_CFLAGS="$XEXT_CFLAGS" 20657 elif test -n "$PKG_CONFIG"; then 20658 if test -n "$PKG_CONFIG" && \ 20659 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto >= 7.0.13 x11 >= 1.6 xextproto >= 7.1.99\""; } >&5 20660 ($PKG_CONFIG --exists --print-errors "xproto >= 7.0.13 x11 >= 1.6 xextproto >= 7.1.99") 2>&5 20661 ac_status=$? 20662 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 20663 test $ac_status = 0; }; then 20664 pkg_cv_XEXT_CFLAGS=`$PKG_CONFIG --cflags "xproto >= 7.0.13 x11 >= 1.6 xextproto >= 7.1.99" 2>/dev/null` 20665 test "x$?" != "x0" && pkg_failed=yes 20666else 20667 pkg_failed=yes 20668fi 20669 else 20670 pkg_failed=untried 20671fi 20672if test -n "$XEXT_LIBS"; then 20673 pkg_cv_XEXT_LIBS="$XEXT_LIBS" 20674 elif test -n "$PKG_CONFIG"; then 20675 if test -n "$PKG_CONFIG" && \ 20676 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto >= 7.0.13 x11 >= 1.6 xextproto >= 7.1.99\""; } >&5 20677 ($PKG_CONFIG --exists --print-errors "xproto >= 7.0.13 x11 >= 1.6 xextproto >= 7.1.99") 2>&5 20678 ac_status=$? 20679 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 20680 test $ac_status = 0; }; then 20681 pkg_cv_XEXT_LIBS=`$PKG_CONFIG --libs "xproto >= 7.0.13 x11 >= 1.6 xextproto >= 7.1.99" 2>/dev/null` 20682 test "x$?" != "x0" && pkg_failed=yes 20683else 20684 pkg_failed=yes 20685fi 20686 else 20687 pkg_failed=untried 20688fi 20689 20690 20691 20692if test $pkg_failed = yes; then 20693 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 20694printf "%s\n" "no" >&6; } 20695 20696if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 20697 _pkg_short_errors_supported=yes 20698else 20699 _pkg_short_errors_supported=no 20700fi 20701 if test $_pkg_short_errors_supported = yes; then 20702 XEXT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xproto >= 7.0.13 x11 >= 1.6 xextproto >= 7.1.99" 2>&1` 20703 else 20704 XEXT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xproto >= 7.0.13 x11 >= 1.6 xextproto >= 7.1.99" 2>&1` 20705 fi 20706 # Put the nasty error message in config.log where it belongs 20707 echo "$XEXT_PKG_ERRORS" >&5 20708 20709 as_fn_error $? "Package requirements (xproto >= 7.0.13 x11 >= 1.6 xextproto >= 7.1.99) were not met: 20710 20711$XEXT_PKG_ERRORS 20712 20713Consider adjusting the PKG_CONFIG_PATH environment variable if you 20714installed software in a non-standard prefix. 20715 20716Alternatively, you may set the environment variables XEXT_CFLAGS 20717and XEXT_LIBS to avoid the need to call pkg-config. 20718See the pkg-config man page for more details." "$LINENO" 5 20719elif test $pkg_failed = untried; then 20720 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 20721printf "%s\n" "no" >&6; } 20722 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 20723printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 20724as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 20725is in your PATH or set the PKG_CONFIG environment variable to the full 20726path to pkg-config. 20727 20728Alternatively, you may set the environment variables XEXT_CFLAGS 20729and XEXT_LIBS to avoid the need to call pkg-config. 20730See the pkg-config man page for more details. 20731 20732To get pkg-config, see <http://pkg-config.freedesktop.org/>. 20733See 'config.log' for more details" "$LINENO" 5; } 20734else 20735 XEXT_CFLAGS=$pkg_cv_XEXT_CFLAGS 20736 XEXT_LIBS=$pkg_cv_XEXT_LIBS 20737 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 20738printf "%s\n" "yes" >&6; } 20739 20740fi 20741 20742 20743 20744 20745 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __builtin_popcountl" >&5 20746printf %s "checking for __builtin_popcountl... " >&6; } 20747if test ${ax_cv_have___builtin_popcountl+y} 20748then : 20749 printf %s "(cached) " >&6 20750else case e in #( 20751 e) 20752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20753/* end confdefs.h. */ 20754 20755int 20756main (void) 20757{ 20758 20759 __builtin_popcountl(0) 20760 20761 ; 20762 return 0; 20763} 20764_ACEOF 20765if ac_fn_c_try_link "$LINENO" 20766then : 20767 ax_cv_have___builtin_popcountl=yes 20768else case e in #( 20769 e) ax_cv_have___builtin_popcountl=no ;; 20770esac 20771fi 20772rm -f core conftest.err conftest.$ac_objext conftest.beam \ 20773 conftest$ac_exeext conftest.$ac_ext 20774 ;; 20775esac 20776fi 20777{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_have___builtin_popcountl" >&5 20778printf "%s\n" "$ax_cv_have___builtin_popcountl" >&6; } 20779 20780 if test yes = $ax_cv_have___builtin_popcountl 20781then : 20782 20783printf "%s\n" "#define HAVE___BUILTIN_POPCOUNTL 1" >>confdefs.h 20784 20785fi 20786 20787 20788 20789ac_fn_c_check_func "$LINENO" "reallocarray" "ac_cv_func_reallocarray" 20790if test "x$ac_cv_func_reallocarray" = xyes 20791then : 20792 printf "%s\n" "#define HAVE_REALLOCARRAY 1" >>confdefs.h 20793 20794else case e in #( 20795 e) case " $LIBOBJS " in 20796 *" reallocarray.$ac_objext "* ) ;; 20797 *) LIBOBJS="$LIBOBJS reallocarray.$ac_objext" 20798 ;; 20799esac 20800 ;; 20801esac 20802fi 20803 20804 20805# Allow checking code with lint, sparse, etc. 20806 20807 20808 20809 20810 20811# Check whether --with-lint was given. 20812if test ${with_lint+y} 20813then : 20814 withval=$with_lint; use_lint=$withval 20815else case e in #( 20816 e) use_lint=no ;; 20817esac 20818fi 20819 20820 20821# Obtain platform specific info like program name and options 20822# The lint program on FreeBSD and NetBSD is different from the one on Solaris 20823case $host_os in 20824 *linux* | *openbsd* | kfreebsd*-gnu | darwin* | cygwin*) 20825 lint_name=splint 20826 lint_options="-badflag" 20827 ;; 20828 *freebsd* | *netbsd*) 20829 lint_name=lint 20830 lint_options="-u -b" 20831 ;; 20832 *solaris*) 20833 lint_name=lint 20834 lint_options="-u -b -h -erroff=E_INDISTING_FROM_TRUNC2" 20835 ;; 20836esac 20837 20838# Test for the presence of the program (either guessed by the code or spelled out by the user) 20839if test "x$use_lint" = x"yes" ; then 20840 # Extract the first word of "$lint_name", so it can be a program name with args. 20841set dummy $lint_name; ac_word=$2 20842{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 20843printf %s "checking for $ac_word... " >&6; } 20844if test ${ac_cv_path_LINT+y} 20845then : 20846 printf %s "(cached) " >&6 20847else case e in #( 20848 e) case $LINT in 20849 [\\/]* | ?:[\\/]*) 20850 ac_cv_path_LINT="$LINT" # Let the user override the test with a path. 20851 ;; 20852 *) 20853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20854for as_dir in $PATH 20855do 20856 IFS=$as_save_IFS 20857 case $as_dir in #((( 20858 '') as_dir=./ ;; 20859 */) ;; 20860 *) as_dir=$as_dir/ ;; 20861 esac 20862 for ac_exec_ext in '' $ac_executable_extensions; do 20863 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 20864 ac_cv_path_LINT="$as_dir$ac_word$ac_exec_ext" 20865 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 20866 break 2 20867 fi 20868done 20869 done 20870IFS=$as_save_IFS 20871 20872 ;; 20873esac ;; 20874esac 20875fi 20876LINT=$ac_cv_path_LINT 20877if test -n "$LINT"; then 20878 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LINT" >&5 20879printf "%s\n" "$LINT" >&6; } 20880else 20881 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 20882printf "%s\n" "no" >&6; } 20883fi 20884 20885 20886 if test "x$LINT" = "x"; then 20887 as_fn_error $? "--with-lint=yes specified but lint-style tool not found in PATH" "$LINENO" 5 20888 fi 20889elif test "x$use_lint" = x"no" ; then 20890 if test "x$LINT" != "x"; then 20891 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&5 20892printf "%s\n" "$as_me: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&2;} 20893 fi 20894else 20895 as_fn_error $? "--with-lint expects 'yes' or 'no'. Use LINT variable to specify path." "$LINENO" 5 20896fi 20897 20898# User supplied flags override default flags 20899if test "x$LINT_FLAGS" != "x"; then 20900 lint_options=$LINT_FLAGS 20901fi 20902 20903LINT_FLAGS=$lint_options 20904 20905 if test "x$LINT" != x; then 20906 LINT_TRUE= 20907 LINT_FALSE='#' 20908else 20909 LINT_TRUE='#' 20910 LINT_FALSE= 20911fi 20912 20913 20914 20915 20916 20917# Check whether --enable-lint-library was given. 20918if test ${enable_lint_library+y} 20919then : 20920 enableval=$enable_lint_library; make_lint_lib=$enableval 20921else case e in #( 20922 e) make_lint_lib=no ;; 20923esac 20924fi 20925 20926 20927if test "x$make_lint_lib" = x"yes" ; then 20928 LINTLIB=llib-lXext.ln 20929 if test "x$LINT" = "x"; then 20930 as_fn_error $? "Cannot make lint library without --with-lint" "$LINENO" 5 20931 fi 20932elif test "x$make_lint_lib" != x"no" ; then 20933 as_fn_error $? "--enable-lint-library expects 'yes' or 'no'." "$LINENO" 5 20934fi 20935 20936 20937 if test x$make_lint_lib != xno; then 20938 MAKE_LINT_LIB_TRUE= 20939 MAKE_LINT_LIB_FALSE='#' 20940else 20941 MAKE_LINT_LIB_TRUE='#' 20942 MAKE_LINT_LIB_FALSE= 20943fi 20944 20945 20946 20947 20948ac_config_files="$ac_config_files Makefile man/Makefile src/Makefile specs/Makefile xext.pc" 20949 20950cat >confcache <<\_ACEOF 20951# This file is a shell script that caches the results of configure 20952# tests run on this system so they can be shared between configure 20953# scripts and configure runs, see configure's option --config-cache. 20954# It is not useful on other systems. If it contains results you don't 20955# want to keep, you may remove or edit it. 20956# 20957# config.status only pays attention to the cache file if you give it 20958# the --recheck option to rerun configure. 20959# 20960# 'ac_cv_env_foo' variables (set or unset) will be overridden when 20961# loading this file, other *unset* 'ac_cv_foo' will be assigned the 20962# following values. 20963 20964_ACEOF 20965 20966# The following way of writing the cache mishandles newlines in values, 20967# but we know of no workaround that is simple, portable, and efficient. 20968# So, we kill variables containing newlines. 20969# Ultrix sh set writes to stderr and can't be redirected directly, 20970# and sets the high bit in the cache file unless we assign to the vars. 20971( 20972 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 20973 eval ac_val=\$$ac_var 20974 case $ac_val in #( 20975 *${as_nl}*) 20976 case $ac_var in #( 20977 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 20978printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 20979 esac 20980 case $ac_var in #( 20981 _ | IFS | as_nl) ;; #( 20982 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 20983 *) { eval $ac_var=; unset $ac_var;} ;; 20984 esac ;; 20985 esac 20986 done 20987 20988 (set) 2>&1 | 20989 case $as_nl`(ac_space=' '; set) 2>&1` in #( 20990 *${as_nl}ac_space=\ *) 20991 # 'set' does not quote correctly, so add quotes: double-quote 20992 # substitution turns \\\\ into \\, and sed turns \\ into \. 20993 sed -n \ 20994 "s/'/'\\\\''/g; 20995 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 20996 ;; #( 20997 *) 20998 # 'set' quotes correctly as required by POSIX, so do not add quotes. 20999 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 21000 ;; 21001 esac | 21002 sort 21003) | 21004 sed ' 21005 /^ac_cv_env_/b end 21006 t clear 21007 :clear 21008 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/ 21009 t end 21010 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 21011 :end' >>confcache 21012if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 21013 if test -w "$cache_file"; then 21014 if test "x$cache_file" != "x/dev/null"; then 21015 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 21016printf "%s\n" "$as_me: updating cache $cache_file" >&6;} 21017 if test ! -f "$cache_file" || test -h "$cache_file"; then 21018 cat confcache >"$cache_file" 21019 else 21020 case $cache_file in #( 21021 */* | ?:*) 21022 mv -f confcache "$cache_file"$$ && 21023 mv -f "$cache_file"$$ "$cache_file" ;; #( 21024 *) 21025 mv -f confcache "$cache_file" ;; 21026 esac 21027 fi 21028 fi 21029 else 21030 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 21031printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;} 21032 fi 21033fi 21034rm -f confcache 21035 21036test "x$prefix" = xNONE && prefix=$ac_default_prefix 21037# Let make expand exec_prefix. 21038test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 21039 21040DEFS=-DHAVE_CONFIG_H 21041 21042ac_libobjs= 21043ac_ltlibobjs= 21044U= 21045for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 21046 # 1. Remove the extension, and $U if already installed. 21047 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 21048 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"` 21049 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 21050 # will be set to the directory where LIBOBJS objects are built. 21051 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 21052 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 21053done 21054LIBOBJS=$ac_libobjs 21055 21056LTLIBOBJS=$ac_ltlibobjs 21057 21058 21059{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 21060printf %s "checking that generated files are newer than configure... " >&6; } 21061 if test -n "$am_sleep_pid"; then 21062 # Hide warnings about reused PIDs. 21063 wait $am_sleep_pid 2>/dev/null 21064 fi 21065 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5 21066printf "%s\n" "done" >&6; } 21067if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 21068 as_fn_error $? "conditional \"AMDEP\" was never defined. 21069Usually this means the macro was only invoked conditionally." "$LINENO" 5 21070fi 21071if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 21072 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 21073Usually this means the macro was only invoked conditionally." "$LINENO" 5 21074fi 21075 if test -n "$EXEEXT"; then 21076 am__EXEEXT_TRUE= 21077 am__EXEEXT_FALSE='#' 21078else 21079 am__EXEEXT_TRUE='#' 21080 am__EXEEXT_FALSE= 21081fi 21082 21083if test -z "${ENABLE_SPECS_TRUE}" && test -z "${ENABLE_SPECS_FALSE}"; then 21084 as_fn_error $? "conditional \"ENABLE_SPECS\" was never defined. 21085Usually this means the macro was only invoked conditionally." "$LINENO" 5 21086fi 21087if test -z "${HAVE_XMLTO_TEXT_TRUE}" && test -z "${HAVE_XMLTO_TEXT_FALSE}"; then 21088 as_fn_error $? "conditional \"HAVE_XMLTO_TEXT\" was never defined. 21089Usually this means the macro was only invoked conditionally." "$LINENO" 5 21090fi 21091if test -z "${HAVE_XMLTO_TRUE}" && test -z "${HAVE_XMLTO_FALSE}"; then 21092 as_fn_error $? "conditional \"HAVE_XMLTO\" was never defined. 21093Usually this means the macro was only invoked conditionally." "$LINENO" 5 21094fi 21095if test -z "${HAVE_FOP_TRUE}" && test -z "${HAVE_FOP_FALSE}"; then 21096 as_fn_error $? "conditional \"HAVE_FOP\" was never defined. 21097Usually this means the macro was only invoked conditionally." "$LINENO" 5 21098fi 21099if test -z "${HAVE_XSLTPROC_TRUE}" && test -z "${HAVE_XSLTPROC_FALSE}"; then 21100 as_fn_error $? "conditional \"HAVE_XSLTPROC\" was never defined. 21101Usually this means the macro was only invoked conditionally." "$LINENO" 5 21102fi 21103if test -z "${HAVE_STYLESHEETS_TRUE}" && test -z "${HAVE_STYLESHEETS_FALSE}"; then 21104 as_fn_error $? "conditional \"HAVE_STYLESHEETS\" was never defined. 21105Usually this means the macro was only invoked conditionally." "$LINENO" 5 21106fi 21107if test -z "${LINT_TRUE}" && test -z "${LINT_FALSE}"; then 21108 as_fn_error $? "conditional \"LINT\" was never defined. 21109Usually this means the macro was only invoked conditionally." "$LINENO" 5 21110fi 21111if test -z "${MAKE_LINT_LIB_TRUE}" && test -z "${MAKE_LINT_LIB_FALSE}"; then 21112 as_fn_error $? "conditional \"MAKE_LINT_LIB\" was never defined. 21113Usually this means the macro was only invoked conditionally." "$LINENO" 5 21114fi 21115 21116: "${CONFIG_STATUS=./config.status}" 21117ac_write_fail=0 21118ac_clean_files_save=$ac_clean_files 21119ac_clean_files="$ac_clean_files $CONFIG_STATUS" 21120{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 21121printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;} 21122as_write_fail=0 21123cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 21124#! $SHELL 21125# Generated by $as_me. 21126# Run this file to recreate the current configuration. 21127# Compiler output produced by configure, useful for debugging 21128# configure, is in config.log if it exists. 21129 21130debug=false 21131ac_cs_recheck=false 21132ac_cs_silent=false 21133 21134SHELL=\${CONFIG_SHELL-$SHELL} 21135export SHELL 21136_ASEOF 21137cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 21138## -------------------- ## 21139## M4sh Initialization. ## 21140## -------------------- ## 21141 21142# Be more Bourne compatible 21143DUALCASE=1; export DUALCASE # for MKS sh 21144if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 21145then : 21146 emulate sh 21147 NULLCMD=: 21148 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 21149 # is contrary to our usage. Disable this feature. 21150 alias -g '${1+"$@"}'='"$@"' 21151 setopt NO_GLOB_SUBST 21152else case e in #( 21153 e) case `(set -o) 2>/dev/null` in #( 21154 *posix*) : 21155 set -o posix ;; #( 21156 *) : 21157 ;; 21158esac ;; 21159esac 21160fi 21161 21162 21163 21164# Reset variables that may have inherited troublesome values from 21165# the environment. 21166 21167# IFS needs to be set, to space, tab, and newline, in precisely that order. 21168# (If _AS_PATH_WALK were called with IFS unset, it would have the 21169# side effect of setting IFS to empty, thus disabling word splitting.) 21170# Quoting is to prevent editors from complaining about space-tab. 21171as_nl=' 21172' 21173export as_nl 21174IFS=" "" $as_nl" 21175 21176PS1='$ ' 21177PS2='> ' 21178PS4='+ ' 21179 21180# Ensure predictable behavior from utilities with locale-dependent output. 21181LC_ALL=C 21182export LC_ALL 21183LANGUAGE=C 21184export LANGUAGE 21185 21186# We cannot yet rely on "unset" to work, but we need these variables 21187# to be unset--not just set to an empty or harmless value--now, to 21188# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct 21189# also avoids known problems related to "unset" and subshell syntax 21190# in other old shells (e.g. bash 2.01 and pdksh 5.2.14). 21191for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH 21192do eval test \${$as_var+y} \ 21193 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 21194done 21195 21196# Ensure that fds 0, 1, and 2 are open. 21197if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi 21198if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi 21199if (exec 3>&2) ; then :; else exec 2>/dev/null; fi 21200 21201# The user is always right. 21202if ${PATH_SEPARATOR+false} :; then 21203 PATH_SEPARATOR=: 21204 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 21205 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 21206 PATH_SEPARATOR=';' 21207 } 21208fi 21209 21210 21211# Find who we are. Look in the path if we contain no directory separator. 21212as_myself= 21213case $0 in #(( 21214 *[\\/]* ) as_myself=$0 ;; 21215 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21216for as_dir in $PATH 21217do 21218 IFS=$as_save_IFS 21219 case $as_dir in #((( 21220 '') as_dir=./ ;; 21221 */) ;; 21222 *) as_dir=$as_dir/ ;; 21223 esac 21224 test -r "$as_dir$0" && as_myself=$as_dir$0 && break 21225 done 21226IFS=$as_save_IFS 21227 21228 ;; 21229esac 21230# We did not find ourselves, most probably we were run as 'sh COMMAND' 21231# in which case we are not to be found in the path. 21232if test "x$as_myself" = x; then 21233 as_myself=$0 21234fi 21235if test ! -f "$as_myself"; then 21236 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 21237 exit 1 21238fi 21239 21240 21241 21242# as_fn_error STATUS ERROR [LINENO LOG_FD] 21243# ---------------------------------------- 21244# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 21245# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 21246# script with STATUS, using 1 if that was 0. 21247as_fn_error () 21248{ 21249 as_status=$1; test $as_status -eq 0 && as_status=1 21250 if test "$4"; then 21251 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 21252 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 21253 fi 21254 printf "%s\n" "$as_me: error: $2" >&2 21255 as_fn_exit $as_status 21256} # as_fn_error 21257 21258 21259# as_fn_set_status STATUS 21260# ----------------------- 21261# Set $? to STATUS, without forking. 21262as_fn_set_status () 21263{ 21264 return $1 21265} # as_fn_set_status 21266 21267# as_fn_exit STATUS 21268# ----------------- 21269# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 21270as_fn_exit () 21271{ 21272 set +e 21273 as_fn_set_status $1 21274 exit $1 21275} # as_fn_exit 21276 21277# as_fn_unset VAR 21278# --------------- 21279# Portably unset VAR. 21280as_fn_unset () 21281{ 21282 { eval $1=; unset $1;} 21283} 21284as_unset=as_fn_unset 21285 21286# as_fn_append VAR VALUE 21287# ---------------------- 21288# Append the text in VALUE to the end of the definition contained in VAR. Take 21289# advantage of any shell optimizations that allow amortized linear growth over 21290# repeated appends, instead of the typical quadratic growth present in naive 21291# implementations. 21292if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null 21293then : 21294 eval 'as_fn_append () 21295 { 21296 eval $1+=\$2 21297 }' 21298else case e in #( 21299 e) as_fn_append () 21300 { 21301 eval $1=\$$1\$2 21302 } ;; 21303esac 21304fi # as_fn_append 21305 21306# as_fn_arith ARG... 21307# ------------------ 21308# Perform arithmetic evaluation on the ARGs, and store the result in the 21309# global $as_val. Take advantage of shells that can avoid forks. The arguments 21310# must be portable across $(()) and expr. 21311if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null 21312then : 21313 eval 'as_fn_arith () 21314 { 21315 as_val=$(( $* )) 21316 }' 21317else case e in #( 21318 e) as_fn_arith () 21319 { 21320 as_val=`expr "$@" || test $? -eq 1` 21321 } ;; 21322esac 21323fi # as_fn_arith 21324 21325 21326if expr a : '\(a\)' >/dev/null 2>&1 && 21327 test "X`expr 00001 : '.*\(...\)'`" = X001; then 21328 as_expr=expr 21329else 21330 as_expr=false 21331fi 21332 21333if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 21334 as_basename=basename 21335else 21336 as_basename=false 21337fi 21338 21339if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 21340 as_dirname=dirname 21341else 21342 as_dirname=false 21343fi 21344 21345as_me=`$as_basename -- "$0" || 21346$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 21347 X"$0" : 'X\(//\)$' \| \ 21348 X"$0" : 'X\(/\)' \| . 2>/dev/null || 21349printf "%s\n" X/"$0" | 21350 sed '/^.*\/\([^/][^/]*\)\/*$/{ 21351 s//\1/ 21352 q 21353 } 21354 /^X\/\(\/\/\)$/{ 21355 s//\1/ 21356 q 21357 } 21358 /^X\/\(\/\).*/{ 21359 s//\1/ 21360 q 21361 } 21362 s/.*/./; q'` 21363 21364# Avoid depending upon Character Ranges. 21365as_cr_letters='abcdefghijklmnopqrstuvwxyz' 21366as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 21367as_cr_Letters=$as_cr_letters$as_cr_LETTERS 21368as_cr_digits='0123456789' 21369as_cr_alnum=$as_cr_Letters$as_cr_digits 21370 21371 21372# Determine whether it's possible to make 'echo' print without a newline. 21373# These variables are no longer used directly by Autoconf, but are AC_SUBSTed 21374# for compatibility with existing Makefiles. 21375ECHO_C= ECHO_N= ECHO_T= 21376case `echo -n x` in #((((( 21377-n*) 21378 case `echo 'xy\c'` in 21379 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 21380 xy) ECHO_C='\c';; 21381 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 21382 ECHO_T=' ';; 21383 esac;; 21384*) 21385 ECHO_N='-n';; 21386esac 21387 21388# For backward compatibility with old third-party macros, we provide 21389# the shell variables $as_echo and $as_echo_n. New code should use 21390# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. 21391as_echo='printf %s\n' 21392as_echo_n='printf %s' 21393 21394rm -f conf$$ conf$$.exe conf$$.file 21395if test -d conf$$.dir; then 21396 rm -f conf$$.dir/conf$$.file 21397else 21398 rm -f conf$$.dir 21399 mkdir conf$$.dir 2>/dev/null 21400fi 21401if (echo >conf$$.file) 2>/dev/null; then 21402 if ln -s conf$$.file conf$$ 2>/dev/null; then 21403 as_ln_s='ln -s' 21404 # ... but there are two gotchas: 21405 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail. 21406 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable. 21407 # In both cases, we have to default to 'cp -pR'. 21408 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 21409 as_ln_s='cp -pR' 21410 elif ln conf$$.file conf$$ 2>/dev/null; then 21411 as_ln_s=ln 21412 else 21413 as_ln_s='cp -pR' 21414 fi 21415else 21416 as_ln_s='cp -pR' 21417fi 21418rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 21419rmdir conf$$.dir 2>/dev/null 21420 21421 21422# as_fn_mkdir_p 21423# ------------- 21424# Create "$as_dir" as a directory, including parents if necessary. 21425as_fn_mkdir_p () 21426{ 21427 21428 case $as_dir in #( 21429 -*) as_dir=./$as_dir;; 21430 esac 21431 test -d "$as_dir" || eval $as_mkdir_p || { 21432 as_dirs= 21433 while :; do 21434 case $as_dir in #( 21435 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 21436 *) as_qdir=$as_dir;; 21437 esac 21438 as_dirs="'$as_qdir' $as_dirs" 21439 as_dir=`$as_dirname -- "$as_dir" || 21440$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21441 X"$as_dir" : 'X\(//\)[^/]' \| \ 21442 X"$as_dir" : 'X\(//\)$' \| \ 21443 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 21444printf "%s\n" X"$as_dir" | 21445 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 21446 s//\1/ 21447 q 21448 } 21449 /^X\(\/\/\)[^/].*/{ 21450 s//\1/ 21451 q 21452 } 21453 /^X\(\/\/\)$/{ 21454 s//\1/ 21455 q 21456 } 21457 /^X\(\/\).*/{ 21458 s//\1/ 21459 q 21460 } 21461 s/.*/./; q'` 21462 test -d "$as_dir" && break 21463 done 21464 test -z "$as_dirs" || eval "mkdir $as_dirs" 21465 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 21466 21467 21468} # as_fn_mkdir_p 21469if mkdir -p . 2>/dev/null; then 21470 as_mkdir_p='mkdir -p "$as_dir"' 21471else 21472 test -d ./-p && rmdir ./-p 21473 as_mkdir_p=false 21474fi 21475 21476 21477# as_fn_executable_p FILE 21478# ----------------------- 21479# Test if FILE is an executable regular file. 21480as_fn_executable_p () 21481{ 21482 test -f "$1" && test -x "$1" 21483} # as_fn_executable_p 21484as_test_x='test -x' 21485as_executable_p=as_fn_executable_p 21486 21487# Sed expression to map a string onto a valid CPP name. 21488as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" 21489as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated 21490 21491# Sed expression to map a string onto a valid variable name. 21492as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g" 21493as_tr_sh="eval sed '$as_sed_sh'" # deprecated 21494 21495 21496exec 6>&1 21497## ----------------------------------- ## 21498## Main body of $CONFIG_STATUS script. ## 21499## ----------------------------------- ## 21500_ASEOF 21501test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 21502 21503cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21504# Save the log message, to keep $0 and so on meaningful, and to 21505# report actual input values of CONFIG_FILES etc. instead of their 21506# values after options handling. 21507ac_log=" 21508This file was extended by libXext $as_me 1.3.6, which was 21509generated by GNU Autoconf 2.72. Invocation command line was 21510 21511 CONFIG_FILES = $CONFIG_FILES 21512 CONFIG_HEADERS = $CONFIG_HEADERS 21513 CONFIG_LINKS = $CONFIG_LINKS 21514 CONFIG_COMMANDS = $CONFIG_COMMANDS 21515 $ $0 $@ 21516 21517on `(hostname || uname -n) 2>/dev/null | sed 1q` 21518" 21519 21520_ACEOF 21521 21522case $ac_config_files in *" 21523"*) set x $ac_config_files; shift; ac_config_files=$*;; 21524esac 21525 21526case $ac_config_headers in *" 21527"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 21528esac 21529 21530 21531cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21532# Files that config.status was made for. 21533config_files="$ac_config_files" 21534config_headers="$ac_config_headers" 21535config_commands="$ac_config_commands" 21536 21537_ACEOF 21538 21539cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21540ac_cs_usage="\ 21541'$as_me' instantiates files and other configuration actions 21542from templates according to the current configuration. Unless the files 21543and actions are specified as TAGs, all are instantiated by default. 21544 21545Usage: $0 [OPTION]... [TAG]... 21546 21547 -h, --help print this help, then exit 21548 -V, --version print version number and configuration settings, then exit 21549 --config print configuration, then exit 21550 -q, --quiet, --silent 21551 do not print progress messages 21552 -d, --debug don't remove temporary files 21553 --recheck update $as_me by reconfiguring in the same conditions 21554 --file=FILE[:TEMPLATE] 21555 instantiate the configuration file FILE 21556 --header=FILE[:TEMPLATE] 21557 instantiate the configuration header FILE 21558 21559Configuration files: 21560$config_files 21561 21562Configuration headers: 21563$config_headers 21564 21565Configuration commands: 21566$config_commands 21567 21568Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libxext/-/issues>." 21569 21570_ACEOF 21571ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"` 21572ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"` 21573cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21574ac_cs_config='$ac_cs_config_escaped' 21575ac_cs_version="\\ 21576libXext config.status 1.3.6 21577configured by $0, generated by GNU Autoconf 2.72, 21578 with options \\"\$ac_cs_config\\" 21579 21580Copyright (C) 2023 Free Software Foundation, Inc. 21581This config.status script is free software; the Free Software Foundation 21582gives unlimited permission to copy, distribute and modify it." 21583 21584ac_pwd='$ac_pwd' 21585srcdir='$srcdir' 21586INSTALL='$INSTALL' 21587MKDIR_P='$MKDIR_P' 21588AWK='$AWK' 21589test -n "\$AWK" || AWK=awk 21590_ACEOF 21591 21592cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21593# The default lists apply if the user does not specify any file. 21594ac_need_defaults=: 21595while test $# != 0 21596do 21597 case $1 in 21598 --*=?*) 21599 ac_option=`expr "X$1" : 'X\([^=]*\)='` 21600 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 21601 ac_shift=: 21602 ;; 21603 --*=) 21604 ac_option=`expr "X$1" : 'X\([^=]*\)='` 21605 ac_optarg= 21606 ac_shift=: 21607 ;; 21608 *) 21609 ac_option=$1 21610 ac_optarg=$2 21611 ac_shift=shift 21612 ;; 21613 esac 21614 21615 case $ac_option in 21616 # Handling of the options. 21617 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 21618 ac_cs_recheck=: ;; 21619 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 21620 printf "%s\n" "$ac_cs_version"; exit ;; 21621 --config | --confi | --conf | --con | --co | --c ) 21622 printf "%s\n" "$ac_cs_config"; exit ;; 21623 --debug | --debu | --deb | --de | --d | -d ) 21624 debug=: ;; 21625 --file | --fil | --fi | --f ) 21626 $ac_shift 21627 case $ac_optarg in 21628 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 21629 '') as_fn_error $? "missing file argument" ;; 21630 esac 21631 as_fn_append CONFIG_FILES " '$ac_optarg'" 21632 ac_need_defaults=false;; 21633 --header | --heade | --head | --hea ) 21634 $ac_shift 21635 case $ac_optarg in 21636 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 21637 esac 21638 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 21639 ac_need_defaults=false;; 21640 --he | --h) 21641 # Conflict between --help and --header 21642 as_fn_error $? "ambiguous option: '$1' 21643Try '$0 --help' for more information.";; 21644 --help | --hel | -h ) 21645 printf "%s\n" "$ac_cs_usage"; exit ;; 21646 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 21647 | -silent | --silent | --silen | --sile | --sil | --si | --s) 21648 ac_cs_silent=: ;; 21649 21650 # This is an error. 21651 -*) as_fn_error $? "unrecognized option: '$1' 21652Try '$0 --help' for more information." ;; 21653 21654 *) as_fn_append ac_config_targets " $1" 21655 ac_need_defaults=false ;; 21656 21657 esac 21658 shift 21659done 21660 21661ac_configure_extra_args= 21662 21663if $ac_cs_silent; then 21664 exec 6>/dev/null 21665 ac_configure_extra_args="$ac_configure_extra_args --silent" 21666fi 21667 21668_ACEOF 21669cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21670if \$ac_cs_recheck; then 21671 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 21672 shift 21673 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6 21674 CONFIG_SHELL='$SHELL' 21675 export CONFIG_SHELL 21676 exec "\$@" 21677fi 21678 21679_ACEOF 21680cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21681exec 5>>config.log 21682{ 21683 echo 21684 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 21685## Running $as_me. ## 21686_ASBOX 21687 printf "%s\n" "$ac_log" 21688} >&5 21689 21690_ACEOF 21691cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21692# 21693# INIT-COMMANDS 21694# 21695AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}" 21696 21697 21698# The HP-UX ksh and POSIX shell print the target directory to stdout 21699# if CDPATH is set. 21700(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 21701 21702sed_quote_subst='$sed_quote_subst' 21703double_quote_subst='$double_quote_subst' 21704delay_variable_subst='$delay_variable_subst' 21705macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 21706macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 21707enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 21708enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 21709pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 21710enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 21711shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`' 21712SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 21713ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 21714PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 21715host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 21716host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 21717host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 21718build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 21719build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 21720build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 21721SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 21722Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 21723GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 21724EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 21725FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 21726LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 21727NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 21728LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 21729max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 21730ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 21731exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 21732lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 21733lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 21734lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 21735lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 21736lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 21737reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 21738reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 21739FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`' 21740OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 21741deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 21742file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 21743file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 21744want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 21745DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 21746sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 21747AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 21748lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`' 21749AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 21750archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 21751STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 21752RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 21753old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 21754old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 21755old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 21756lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 21757CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 21758CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 21759compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 21760GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 21761lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 21762lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 21763lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`' 21764lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 21765lt_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"`' 21766lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`' 21767nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 21768lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 21769lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`' 21770objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 21771MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 21772lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 21773lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 21774lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 21775lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 21776lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 21777need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 21778MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 21779DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 21780NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 21781LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 21782OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 21783OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 21784libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 21785shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 21786extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 21787archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 21788enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 21789export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 21790whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 21791compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 21792old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 21793old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 21794archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 21795archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 21796module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 21797module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 21798with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 21799allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 21800no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 21801hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 21802hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 21803hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 21804hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 21805hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 21806hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 21807hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 21808inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 21809link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 21810always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 21811export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 21812exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 21813include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 21814prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 21815postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 21816file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 21817variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 21818need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 21819need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 21820version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 21821runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 21822shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 21823shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 21824libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 21825library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 21826soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 21827install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 21828postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 21829postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 21830finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 21831finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 21832hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 21833sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 21834configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`' 21835configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`' 21836hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 21837enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 21838enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 21839enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 21840old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 21841striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 21842 21843LTCC='$LTCC' 21844LTCFLAGS='$LTCFLAGS' 21845compiler='$compiler_DEFAULT' 21846 21847# A function that is used when there is no print builtin or printf. 21848func_fallback_echo () 21849{ 21850 eval 'cat <<_LTECHO_EOF 21851\$1 21852_LTECHO_EOF' 21853} 21854 21855# Quote evaled strings. 21856for var in SHELL \ 21857ECHO \ 21858PATH_SEPARATOR \ 21859SED \ 21860GREP \ 21861EGREP \ 21862FGREP \ 21863LD \ 21864NM \ 21865LN_S \ 21866lt_SP2NL \ 21867lt_NL2SP \ 21868reload_flag \ 21869FILECMD \ 21870OBJDUMP \ 21871deplibs_check_method \ 21872file_magic_cmd \ 21873file_magic_glob \ 21874want_nocaseglob \ 21875DLLTOOL \ 21876sharedlib_from_linklib_cmd \ 21877AR \ 21878archiver_list_spec \ 21879STRIP \ 21880RANLIB \ 21881CC \ 21882CFLAGS \ 21883compiler \ 21884lt_cv_sys_global_symbol_pipe \ 21885lt_cv_sys_global_symbol_to_cdecl \ 21886lt_cv_sys_global_symbol_to_import \ 21887lt_cv_sys_global_symbol_to_c_name_address \ 21888lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 21889lt_cv_nm_interface \ 21890nm_file_list_spec \ 21891lt_cv_truncate_bin \ 21892lt_prog_compiler_no_builtin_flag \ 21893lt_prog_compiler_pic \ 21894lt_prog_compiler_wl \ 21895lt_prog_compiler_static \ 21896lt_cv_prog_compiler_c_o \ 21897need_locks \ 21898MANIFEST_TOOL \ 21899DSYMUTIL \ 21900NMEDIT \ 21901LIPO \ 21902OTOOL \ 21903OTOOL64 \ 21904shrext_cmds \ 21905export_dynamic_flag_spec \ 21906whole_archive_flag_spec \ 21907compiler_needs_object \ 21908with_gnu_ld \ 21909allow_undefined_flag \ 21910no_undefined_flag \ 21911hardcode_libdir_flag_spec \ 21912hardcode_libdir_separator \ 21913exclude_expsyms \ 21914include_expsyms \ 21915file_list_spec \ 21916variables_saved_for_relink \ 21917libname_spec \ 21918library_names_spec \ 21919soname_spec \ 21920install_override_mode \ 21921finish_eval \ 21922old_striplib \ 21923striplib; do 21924 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 21925 *[\\\\\\\`\\"\\\$]*) 21926 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 21927 ;; 21928 *) 21929 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 21930 ;; 21931 esac 21932done 21933 21934# Double-quote double-evaled strings. 21935for var in reload_cmds \ 21936old_postinstall_cmds \ 21937old_postuninstall_cmds \ 21938old_archive_cmds \ 21939extract_expsyms_cmds \ 21940old_archive_from_new_cmds \ 21941old_archive_from_expsyms_cmds \ 21942archive_cmds \ 21943archive_expsym_cmds \ 21944module_cmds \ 21945module_expsym_cmds \ 21946export_symbols_cmds \ 21947prelink_cmds \ 21948postlink_cmds \ 21949postinstall_cmds \ 21950postuninstall_cmds \ 21951finish_cmds \ 21952sys_lib_search_path_spec \ 21953configure_time_dlsearch_path \ 21954configure_time_lt_sys_library_path; do 21955 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 21956 *[\\\\\\\`\\"\\\$]*) 21957 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 21958 ;; 21959 *) 21960 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 21961 ;; 21962 esac 21963done 21964 21965ac_aux_dir='$ac_aux_dir' 21966 21967# See if we are running on zsh, and set the options that allow our 21968# commands through without removal of \ escapes INIT. 21969if test -n "\${ZSH_VERSION+set}"; then 21970 setopt NO_GLOB_SUBST 21971fi 21972 21973 21974 PACKAGE='$PACKAGE' 21975 VERSION='$VERSION' 21976 RM='$RM' 21977 ofile='$ofile' 21978 21979 21980 21981 21982_ACEOF 21983 21984cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21985 21986# Handling of arguments. 21987for ac_config_target in $ac_config_targets 21988do 21989 case $ac_config_target in 21990 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 21991 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 21992 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 21993 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 21994 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 21995 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 21996 "specs/Makefile") CONFIG_FILES="$CONFIG_FILES specs/Makefile" ;; 21997 "xext.pc") CONFIG_FILES="$CONFIG_FILES xext.pc" ;; 21998 21999 *) as_fn_error $? "invalid argument: '$ac_config_target'" "$LINENO" 5;; 22000 esac 22001done 22002 22003 22004# If the user did not use the arguments to specify the items to instantiate, 22005# then the envvar interface is used. Set only those that are not. 22006# We use the long form for the default assignment because of an extremely 22007# bizarre bug on SunOS 4.1.3. 22008if $ac_need_defaults; then 22009 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files 22010 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers 22011 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands 22012fi 22013 22014# Have a temporary directory for convenience. Make it in the build tree 22015# simply because there is no reason against having it here, and in addition, 22016# creating and moving files from /tmp can sometimes cause problems. 22017# Hook for its removal unless debugging. 22018# Note that there is a small window in which the directory will not be cleaned: 22019# after its creation but before its name has been assigned to '$tmp'. 22020$debug || 22021{ 22022 tmp= ac_tmp= 22023 trap 'exit_status=$? 22024 : "${ac_tmp:=$tmp}" 22025 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 22026' 0 22027 trap 'as_fn_exit 1' 1 2 13 15 22028} 22029# Create a (secure) tmp directory for tmp files. 22030 22031{ 22032 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 22033 test -d "$tmp" 22034} || 22035{ 22036 tmp=./conf$$-$RANDOM 22037 (umask 077 && mkdir "$tmp") 22038} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 22039ac_tmp=$tmp 22040 22041# Set up the scripts for CONFIG_FILES section. 22042# No need to generate them if there are no CONFIG_FILES. 22043# This happens for instance with './config.status config.h'. 22044if test -n "$CONFIG_FILES"; then 22045 22046 22047ac_cr=`echo X | tr X '\015'` 22048# On cygwin, bash can eat \r inside `` if the user requested igncr. 22049# But we know of no other shell where ac_cr would be empty at this 22050# point, so we can use a bashism as a fallback. 22051if test "x$ac_cr" = x; then 22052 eval ac_cr=\$\'\\r\' 22053fi 22054ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 22055if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 22056 ac_cs_awk_cr='\\r' 22057else 22058 ac_cs_awk_cr=$ac_cr 22059fi 22060 22061echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 22062_ACEOF 22063 22064 22065{ 22066 echo "cat >conf$$subs.awk <<_ACEOF" && 22067 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 22068 echo "_ACEOF" 22069} >conf$$subs.sh || 22070 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 22071ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 22072ac_delim='%!_!# ' 22073for ac_last_try in false false false false false :; do 22074 . ./conf$$subs.sh || 22075 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 22076 22077 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 22078 if test $ac_delim_n = $ac_delim_num; then 22079 break 22080 elif $ac_last_try; then 22081 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 22082 else 22083 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 22084 fi 22085done 22086rm -f conf$$subs.sh 22087 22088cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 22089cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 22090_ACEOF 22091sed -n ' 22092h 22093s/^/S["/; s/!.*/"]=/ 22094p 22095g 22096s/^[^!]*!// 22097:repl 22098t repl 22099s/'"$ac_delim"'$// 22100t delim 22101:nl 22102h 22103s/\(.\{148\}\)..*/\1/ 22104t more1 22105s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 22106p 22107n 22108b repl 22109:more1 22110s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 22111p 22112g 22113s/.\{148\}// 22114t nl 22115:delim 22116h 22117s/\(.\{148\}\)..*/\1/ 22118t more2 22119s/["\\]/\\&/g; s/^/"/; s/$/"/ 22120p 22121b 22122:more2 22123s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 22124p 22125g 22126s/.\{148\}// 22127t delim 22128' <conf$$subs.awk | sed ' 22129/^[^""]/{ 22130 N 22131 s/\n// 22132} 22133' >>$CONFIG_STATUS || ac_write_fail=1 22134rm -f conf$$subs.awk 22135cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 22136_ACAWK 22137cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 22138 for (key in S) S_is_set[key] = 1 22139 FS = "" 22140 22141} 22142{ 22143 line = $ 0 22144 nfields = split(line, field, "@") 22145 substed = 0 22146 len = length(field[1]) 22147 for (i = 2; i < nfields; i++) { 22148 key = field[i] 22149 keylen = length(key) 22150 if (S_is_set[key]) { 22151 value = S[key] 22152 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 22153 len += length(value) + length(field[++i]) 22154 substed = 1 22155 } else 22156 len += 1 + keylen 22157 } 22158 22159 print line 22160} 22161 22162_ACAWK 22163_ACEOF 22164cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 22165if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 22166 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 22167else 22168 cat 22169fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 22170 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 22171_ACEOF 22172 22173# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 22174# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 22175# trailing colons and then remove the whole line if VPATH becomes empty 22176# (actually we leave an empty line to preserve line numbers). 22177if test "x$srcdir" = x.; then 22178 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 22179h 22180s/// 22181s/^/:/ 22182s/[ ]*$/:/ 22183s/:\$(srcdir):/:/g 22184s/:\${srcdir}:/:/g 22185s/:@srcdir@:/:/g 22186s/^:*// 22187s/:*$// 22188x 22189s/\(=[ ]*\).*/\1/ 22190G 22191s/\n// 22192s/^[^=]*=[ ]*$// 22193}' 22194fi 22195 22196cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 22197fi # test -n "$CONFIG_FILES" 22198 22199# Set up the scripts for CONFIG_HEADERS section. 22200# No need to generate them if there are no CONFIG_HEADERS. 22201# This happens for instance with './config.status Makefile'. 22202if test -n "$CONFIG_HEADERS"; then 22203cat >"$ac_tmp/defines.awk" <<\_ACAWK || 22204BEGIN { 22205_ACEOF 22206 22207# Transform confdefs.h into an awk script 'defines.awk', embedded as 22208# here-document in config.status, that substitutes the proper values into 22209# config.h.in to produce config.h. 22210 22211# Create a delimiter string that does not exist in confdefs.h, to ease 22212# handling of long lines. 22213ac_delim='%!_!# ' 22214for ac_last_try in false false :; do 22215 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 22216 if test -z "$ac_tt"; then 22217 break 22218 elif $ac_last_try; then 22219 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 22220 else 22221 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 22222 fi 22223done 22224 22225# For the awk script, D is an array of macro values keyed by name, 22226# likewise P contains macro parameters if any. Preserve backslash 22227# newline sequences. 22228 22229ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 22230sed -n ' 22231s/.\{148\}/&'"$ac_delim"'/g 22232t rset 22233:rset 22234s/^[ ]*#[ ]*define[ ][ ]*/ / 22235t def 22236d 22237:def 22238s/\\$// 22239t bsnl 22240s/["\\]/\\&/g 22241s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 22242D["\1"]=" \3"/p 22243s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 22244d 22245:bsnl 22246s/["\\]/\\&/g 22247s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 22248D["\1"]=" \3\\\\\\n"\\/p 22249t cont 22250s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 22251t cont 22252d 22253:cont 22254n 22255s/.\{148\}/&'"$ac_delim"'/g 22256t clear 22257:clear 22258s/\\$// 22259t bsnlc 22260s/["\\]/\\&/g; s/^/"/; s/$/"/p 22261d 22262:bsnlc 22263s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 22264b cont 22265' <confdefs.h | sed ' 22266s/'"$ac_delim"'/"\\\ 22267"/g' >>$CONFIG_STATUS || ac_write_fail=1 22268 22269cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 22270 for (key in D) D_is_set[key] = 1 22271 FS = "" 22272} 22273/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 22274 line = \$ 0 22275 split(line, arg, " ") 22276 if (arg[1] == "#") { 22277 defundef = arg[2] 22278 mac1 = arg[3] 22279 } else { 22280 defundef = substr(arg[1], 2) 22281 mac1 = arg[2] 22282 } 22283 split(mac1, mac2, "(") #) 22284 macro = mac2[1] 22285 prefix = substr(line, 1, index(line, defundef) - 1) 22286 if (D_is_set[macro]) { 22287 # Preserve the white space surrounding the "#". 22288 print prefix "define", macro P[macro] D[macro] 22289 next 22290 } else { 22291 # Replace #undef with comments. This is necessary, for example, 22292 # in the case of _POSIX_SOURCE, which is predefined and required 22293 # on some systems where configure will not decide to define it. 22294 if (defundef == "undef") { 22295 print "/*", prefix defundef, macro, "*/" 22296 next 22297 } 22298 } 22299} 22300{ print } 22301_ACAWK 22302_ACEOF 22303cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 22304 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 22305fi # test -n "$CONFIG_HEADERS" 22306 22307 22308eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 22309shift 22310for ac_tag 22311do 22312 case $ac_tag in 22313 :[FHLC]) ac_mode=$ac_tag; continue;; 22314 esac 22315 case $ac_mode$ac_tag in 22316 :[FHL]*:*);; 22317 :L* | :C*:*) as_fn_error $? "invalid tag '$ac_tag'" "$LINENO" 5;; 22318 :[FH]-) ac_tag=-:-;; 22319 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 22320 esac 22321 ac_save_IFS=$IFS 22322 IFS=: 22323 set x $ac_tag 22324 IFS=$ac_save_IFS 22325 shift 22326 ac_file=$1 22327 shift 22328 22329 case $ac_mode in 22330 :L) ac_source=$1;; 22331 :[FH]) 22332 ac_file_inputs= 22333 for ac_f 22334 do 22335 case $ac_f in 22336 -) ac_f="$ac_tmp/stdin";; 22337 *) # Look for the file first in the build tree, then in the source tree 22338 # (if the path is not absolute). The absolute path cannot be DOS-style, 22339 # because $ac_f cannot contain ':'. 22340 test -f "$ac_f" || 22341 case $ac_f in 22342 [\\/$]*) false;; 22343 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 22344 esac || 22345 as_fn_error 1 "cannot find input file: '$ac_f'" "$LINENO" 5;; 22346 esac 22347 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 22348 as_fn_append ac_file_inputs " '$ac_f'" 22349 done 22350 22351 # Let's still pretend it is 'configure' which instantiates (i.e., don't 22352 # use $as_me), people would be surprised to read: 22353 # /* config.h. Generated by config.status. */ 22354 configure_input='Generated from '` 22355 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 22356 `' by configure.' 22357 if test x"$ac_file" != x-; then 22358 configure_input="$ac_file. $configure_input" 22359 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 22360printf "%s\n" "$as_me: creating $ac_file" >&6;} 22361 fi 22362 # Neutralize special characters interpreted by sed in replacement strings. 22363 case $configure_input in #( 22364 *\&* | *\|* | *\\* ) 22365 ac_sed_conf_input=`printf "%s\n" "$configure_input" | 22366 sed 's/[\\\\&|]/\\\\&/g'`;; #( 22367 *) ac_sed_conf_input=$configure_input;; 22368 esac 22369 22370 case $ac_tag in 22371 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 22372 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 22373 esac 22374 ;; 22375 esac 22376 22377 ac_dir=`$as_dirname -- "$ac_file" || 22378$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22379 X"$ac_file" : 'X\(//\)[^/]' \| \ 22380 X"$ac_file" : 'X\(//\)$' \| \ 22381 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 22382printf "%s\n" X"$ac_file" | 22383 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 22384 s//\1/ 22385 q 22386 } 22387 /^X\(\/\/\)[^/].*/{ 22388 s//\1/ 22389 q 22390 } 22391 /^X\(\/\/\)$/{ 22392 s//\1/ 22393 q 22394 } 22395 /^X\(\/\).*/{ 22396 s//\1/ 22397 q 22398 } 22399 s/.*/./; q'` 22400 as_dir="$ac_dir"; as_fn_mkdir_p 22401 ac_builddir=. 22402 22403case "$ac_dir" in 22404.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 22405*) 22406 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 22407 # A ".." for each directory in $ac_dir_suffix. 22408 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 22409 case $ac_top_builddir_sub in 22410 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 22411 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 22412 esac ;; 22413esac 22414ac_abs_top_builddir=$ac_pwd 22415ac_abs_builddir=$ac_pwd$ac_dir_suffix 22416# for backward compatibility: 22417ac_top_builddir=$ac_top_build_prefix 22418 22419case $srcdir in 22420 .) # We are building in place. 22421 ac_srcdir=. 22422 ac_top_srcdir=$ac_top_builddir_sub 22423 ac_abs_top_srcdir=$ac_pwd ;; 22424 [\\/]* | ?:[\\/]* ) # Absolute name. 22425 ac_srcdir=$srcdir$ac_dir_suffix; 22426 ac_top_srcdir=$srcdir 22427 ac_abs_top_srcdir=$srcdir ;; 22428 *) # Relative name. 22429 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 22430 ac_top_srcdir=$ac_top_build_prefix$srcdir 22431 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 22432esac 22433ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 22434 22435 22436 case $ac_mode in 22437 :F) 22438 # 22439 # CONFIG_FILE 22440 # 22441 22442 case $INSTALL in 22443 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 22444 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 22445 esac 22446 ac_MKDIR_P=$MKDIR_P 22447 case $MKDIR_P in 22448 [\\/$]* | ?:[\\/]* ) ;; 22449 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 22450 esac 22451_ACEOF 22452 22453cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 22454# If the template does not know about datarootdir, expand it. 22455# FIXME: This hack should be removed a few years after 2.60. 22456ac_datarootdir_hack=; ac_datarootdir_seen= 22457ac_sed_dataroot=' 22458/datarootdir/ { 22459 p 22460 q 22461} 22462/@datadir@/p 22463/@docdir@/p 22464/@infodir@/p 22465/@localedir@/p 22466/@mandir@/p' 22467case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 22468*datarootdir*) ac_datarootdir_seen=yes;; 22469*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 22470 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 22471printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 22472_ACEOF 22473cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 22474 ac_datarootdir_hack=' 22475 s&@datadir@&$datadir&g 22476 s&@docdir@&$docdir&g 22477 s&@infodir@&$infodir&g 22478 s&@localedir@&$localedir&g 22479 s&@mandir@&$mandir&g 22480 s&\\\${datarootdir}&$datarootdir&g' ;; 22481esac 22482_ACEOF 22483 22484# Neutralize VPATH when '$srcdir' = '.'. 22485# Shell code in configure.ac might set extrasub. 22486# FIXME: do we really want to maintain this feature? 22487cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 22488ac_sed_extra="$ac_vpsub 22489$extrasub 22490_ACEOF 22491cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 22492:t 22493/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 22494s|@configure_input@|$ac_sed_conf_input|;t t 22495s&@top_builddir@&$ac_top_builddir_sub&;t t 22496s&@top_build_prefix@&$ac_top_build_prefix&;t t 22497s&@srcdir@&$ac_srcdir&;t t 22498s&@abs_srcdir@&$ac_abs_srcdir&;t t 22499s&@top_srcdir@&$ac_top_srcdir&;t t 22500s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 22501s&@builddir@&$ac_builddir&;t t 22502s&@abs_builddir@&$ac_abs_builddir&;t t 22503s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 22504s&@INSTALL@&$ac_INSTALL&;t t 22505s&@MKDIR_P@&$ac_MKDIR_P&;t t 22506$ac_datarootdir_hack 22507" 22508eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 22509 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 22510 22511test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 22512 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 22513 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 22514 "$ac_tmp/out"`; test -z "$ac_out"; } && 22515 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable 'datarootdir' 22516which seems to be undefined. Please make sure it is defined" >&5 22517printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable 'datarootdir' 22518which seems to be undefined. Please make sure it is defined" >&2;} 22519 22520 rm -f "$ac_tmp/stdin" 22521 case $ac_file in 22522 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 22523 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 22524 esac \ 22525 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 22526 ;; 22527 :H) 22528 # 22529 # CONFIG_HEADER 22530 # 22531 if test x"$ac_file" != x-; then 22532 { 22533 printf "%s\n" "/* $configure_input */" >&1 \ 22534 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 22535 } >"$ac_tmp/config.h" \ 22536 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 22537 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 22538 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 22539printf "%s\n" "$as_me: $ac_file is unchanged" >&6;} 22540 else 22541 rm -f "$ac_file" 22542 mv "$ac_tmp/config.h" "$ac_file" \ 22543 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 22544 fi 22545 else 22546 printf "%s\n" "/* $configure_input */" >&1 \ 22547 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 22548 || as_fn_error $? "could not create -" "$LINENO" 5 22549 fi 22550# Compute "$ac_file"'s index in $config_headers. 22551_am_arg="$ac_file" 22552_am_stamp_count=1 22553for _am_header in $config_headers :; do 22554 case $_am_header in 22555 $_am_arg | $_am_arg:* ) 22556 break ;; 22557 * ) 22558 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 22559 esac 22560done 22561echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 22562$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22563 X"$_am_arg" : 'X\(//\)[^/]' \| \ 22564 X"$_am_arg" : 'X\(//\)$' \| \ 22565 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 22566printf "%s\n" X"$_am_arg" | 22567 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 22568 s//\1/ 22569 q 22570 } 22571 /^X\(\/\/\)[^/].*/{ 22572 s//\1/ 22573 q 22574 } 22575 /^X\(\/\/\)$/{ 22576 s//\1/ 22577 q 22578 } 22579 /^X\(\/\).*/{ 22580 s//\1/ 22581 q 22582 } 22583 s/.*/./; q'`/stamp-h$_am_stamp_count 22584 ;; 22585 22586 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 22587printf "%s\n" "$as_me: executing $ac_file commands" >&6;} 22588 ;; 22589 esac 22590 22591 22592 case $ac_file$ac_mode in 22593 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 22594 # Older Autoconf quotes --file arguments for eval, but not when files 22595 # are listed without --file. Let's play safe and only enable the eval 22596 # if we detect the quoting. 22597 # TODO: see whether this extra hack can be removed once we start 22598 # requiring Autoconf 2.70 or later. 22599 case $CONFIG_FILES in #( 22600 *\'*) : 22601 eval set x "$CONFIG_FILES" ;; #( 22602 *) : 22603 set x $CONFIG_FILES ;; #( 22604 *) : 22605 ;; 22606esac 22607 shift 22608 # Used to flag and report bootstrapping failures. 22609 am_rc=0 22610 for am_mf 22611 do 22612 # Strip MF so we end up with the name of the file. 22613 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'` 22614 # Check whether this is an Automake generated Makefile which includes 22615 # dependency-tracking related rules and includes. 22616 # Grep'ing the whole file directly is not great: AIX grep has a line 22617 # limit of 2048, but all sed's we know have understand at least 4000. 22618 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \ 22619 || continue 22620 am_dirpart=`$as_dirname -- "$am_mf" || 22621$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22622 X"$am_mf" : 'X\(//\)[^/]' \| \ 22623 X"$am_mf" : 'X\(//\)$' \| \ 22624 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 22625printf "%s\n" X"$am_mf" | 22626 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 22627 s//\1/ 22628 q 22629 } 22630 /^X\(\/\/\)[^/].*/{ 22631 s//\1/ 22632 q 22633 } 22634 /^X\(\/\/\)$/{ 22635 s//\1/ 22636 q 22637 } 22638 /^X\(\/\).*/{ 22639 s//\1/ 22640 q 22641 } 22642 s/.*/./; q'` 22643 am_filepart=`$as_basename -- "$am_mf" || 22644$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \ 22645 X"$am_mf" : 'X\(//\)$' \| \ 22646 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 22647printf "%s\n" X/"$am_mf" | 22648 sed '/^.*\/\([^/][^/]*\)\/*$/{ 22649 s//\1/ 22650 q 22651 } 22652 /^X\/\(\/\/\)$/{ 22653 s//\1/ 22654 q 22655 } 22656 /^X\/\(\/\).*/{ 22657 s//\1/ 22658 q 22659 } 22660 s/.*/./; q'` 22661 { echo "$as_me:$LINENO: cd "$am_dirpart" \ 22662 && sed -e '/# am--include-marker/d' "$am_filepart" \ 22663 | $MAKE -f - am--depfiles" >&5 22664 (cd "$am_dirpart" \ 22665 && sed -e '/# am--include-marker/d' "$am_filepart" \ 22666 | $MAKE -f - am--depfiles) >&5 2>&5 22667 ac_status=$? 22668 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22669 (exit $ac_status); } || am_rc=$? 22670 done 22671 if test $am_rc -ne 0; then 22672 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 22673printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 22674as_fn_error $? "Something went wrong bootstrapping makefile fragments 22675 for automatic dependency tracking. If GNU make was not used, consider 22676 re-running the configure script with MAKE=\"gmake\" (or whatever is 22677 necessary). You can also try re-running configure with the 22678 '--disable-dependency-tracking' option to at least be able to build 22679 the package (albeit without support for automatic dependency tracking). 22680See 'config.log' for more details" "$LINENO" 5; } 22681 fi 22682 { am_dirpart=; unset am_dirpart;} 22683 { am_filepart=; unset am_filepart;} 22684 { am_mf=; unset am_mf;} 22685 { am_rc=; unset am_rc;} 22686 rm -f conftest-deps.mk 22687} 22688 ;; 22689 "libtool":C) 22690 22691 # See if we are running on zsh, and set the options that allow our 22692 # commands through without removal of \ escapes. 22693 if test -n "${ZSH_VERSION+set}"; then 22694 setopt NO_GLOB_SUBST 22695 fi 22696 22697 cfgfile=${ofile}T 22698 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 22699 $RM "$cfgfile" 22700 22701 cat <<_LT_EOF >> "$cfgfile" 22702#! $SHELL 22703# Generated automatically by $as_me ($PACKAGE) $VERSION 22704# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 22705# NOTE: Changes made to this file will be lost: look at ltmain.sh. 22706 22707# Provide generalized library-building support services. 22708# Written by Gordon Matzigkeit, 1996 22709 22710# Copyright (C) 2014 Free Software Foundation, Inc. 22711# This is free software; see the source for copying conditions. There is NO 22712# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 22713 22714# GNU Libtool is free software; you can redistribute it and/or modify 22715# it under the terms of the GNU General Public License as published by 22716# the Free Software Foundation; either version 2 of of the License, or 22717# (at your option) any later version. 22718# 22719# As a special exception to the GNU General Public License, if you 22720# distribute this file as part of a program or library that is built 22721# using GNU Libtool, you may include this file under the same 22722# distribution terms that you use for the rest of that program. 22723# 22724# GNU Libtool is distributed in the hope that it will be useful, but 22725# WITHOUT ANY WARRANTY; without even the implied warranty of 22726# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 22727# GNU General Public License for more details. 22728# 22729# You should have received a copy of the GNU General Public License 22730# along with this program. If not, see <http://www.gnu.org/licenses/>. 22731 22732 22733# The names of the tagged configurations supported by this script. 22734available_tags='' 22735 22736# Configured defaults for sys_lib_dlsearch_path munging. 22737: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} 22738 22739# ### BEGIN LIBTOOL CONFIG 22740 22741# Which release of libtool.m4 was used? 22742macro_version=$macro_version 22743macro_revision=$macro_revision 22744 22745# Whether or not to build shared libraries. 22746build_libtool_libs=$enable_shared 22747 22748# Whether or not to build static libraries. 22749build_old_libs=$enable_static 22750 22751# What type of objects to build. 22752pic_mode=$pic_mode 22753 22754# Whether or not to optimize for fast installation. 22755fast_install=$enable_fast_install 22756 22757# Shared archive member basename,for filename based shared library versioning on AIX. 22758shared_archive_member_spec=$shared_archive_member_spec 22759 22760# Shell to use when invoking shell scripts. 22761SHELL=$lt_SHELL 22762 22763# An echo program that protects backslashes. 22764ECHO=$lt_ECHO 22765 22766# The PATH separator for the build system. 22767PATH_SEPARATOR=$lt_PATH_SEPARATOR 22768 22769# The host system. 22770host_alias=$host_alias 22771host=$host 22772host_os=$host_os 22773 22774# The build system. 22775build_alias=$build_alias 22776build=$build 22777build_os=$build_os 22778 22779# A sed program that does not truncate output. 22780SED=$lt_SED 22781 22782# Sed that helps us avoid accidentally triggering echo(1) options like -n. 22783Xsed="\$SED -e 1s/^X//" 22784 22785# A grep program that handles long lines. 22786GREP=$lt_GREP 22787 22788# An ERE matcher. 22789EGREP=$lt_EGREP 22790 22791# A literal string matcher. 22792FGREP=$lt_FGREP 22793 22794# A BSD- or MS-compatible name lister. 22795NM=$lt_NM 22796 22797# Whether we need soft or hard links. 22798LN_S=$lt_LN_S 22799 22800# What is the maximum length of a command? 22801max_cmd_len=$max_cmd_len 22802 22803# Object file suffix (normally "o"). 22804objext=$ac_objext 22805 22806# Executable file suffix (normally ""). 22807exeext=$exeext 22808 22809# whether the shell understands "unset". 22810lt_unset=$lt_unset 22811 22812# turn spaces into newlines. 22813SP2NL=$lt_lt_SP2NL 22814 22815# turn newlines into spaces. 22816NL2SP=$lt_lt_NL2SP 22817 22818# convert \$build file names to \$host format. 22819to_host_file_cmd=$lt_cv_to_host_file_cmd 22820 22821# convert \$build files to toolchain format. 22822to_tool_file_cmd=$lt_cv_to_tool_file_cmd 22823 22824# A file(cmd) program that detects file types. 22825FILECMD=$lt_FILECMD 22826 22827# An object symbol dumper. 22828OBJDUMP=$lt_OBJDUMP 22829 22830# Method to check whether dependent libraries are shared objects. 22831deplibs_check_method=$lt_deplibs_check_method 22832 22833# Command to use when deplibs_check_method = "file_magic". 22834file_magic_cmd=$lt_file_magic_cmd 22835 22836# How to find potential files when deplibs_check_method = "file_magic". 22837file_magic_glob=$lt_file_magic_glob 22838 22839# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 22840want_nocaseglob=$lt_want_nocaseglob 22841 22842# DLL creation program. 22843DLLTOOL=$lt_DLLTOOL 22844 22845# Command to associate shared and link libraries. 22846sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 22847 22848# The archiver. 22849AR=$lt_AR 22850 22851# Flags to create an archive (by configure). 22852lt_ar_flags=$lt_ar_flags 22853 22854# Flags to create an archive. 22855AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"} 22856 22857# How to feed a file listing to the archiver. 22858archiver_list_spec=$lt_archiver_list_spec 22859 22860# A symbol stripping program. 22861STRIP=$lt_STRIP 22862 22863# Commands used to install an old-style archive. 22864RANLIB=$lt_RANLIB 22865old_postinstall_cmds=$lt_old_postinstall_cmds 22866old_postuninstall_cmds=$lt_old_postuninstall_cmds 22867 22868# Whether to use a lock for old archive extraction. 22869lock_old_archive_extraction=$lock_old_archive_extraction 22870 22871# A C compiler. 22872LTCC=$lt_CC 22873 22874# LTCC compiler flags. 22875LTCFLAGS=$lt_CFLAGS 22876 22877# Take the output of nm and produce a listing of raw symbols and C names. 22878global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 22879 22880# Transform the output of nm in a proper C declaration. 22881global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 22882 22883# Transform the output of nm into a list of symbols to manually relocate. 22884global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import 22885 22886# Transform the output of nm in a C name address pair. 22887global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 22888 22889# Transform the output of nm in a C name address pair when lib prefix is needed. 22890global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 22891 22892# The name lister interface. 22893nm_interface=$lt_lt_cv_nm_interface 22894 22895# Specify filename containing input files for \$NM. 22896nm_file_list_spec=$lt_nm_file_list_spec 22897 22898# The root where to search for dependent libraries,and where our libraries should be installed. 22899lt_sysroot=$lt_sysroot 22900 22901# Command to truncate a binary pipe. 22902lt_truncate_bin=$lt_lt_cv_truncate_bin 22903 22904# The name of the directory that contains temporary libtool files. 22905objdir=$objdir 22906 22907# Used to examine libraries when file_magic_cmd begins with "file". 22908MAGIC_CMD=$MAGIC_CMD 22909 22910# Must we lock files when doing compilation? 22911need_locks=$lt_need_locks 22912 22913# Manifest tool. 22914MANIFEST_TOOL=$lt_MANIFEST_TOOL 22915 22916# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 22917DSYMUTIL=$lt_DSYMUTIL 22918 22919# Tool to change global to local symbols on Mac OS X. 22920NMEDIT=$lt_NMEDIT 22921 22922# Tool to manipulate fat objects and archives on Mac OS X. 22923LIPO=$lt_LIPO 22924 22925# ldd/readelf like tool for Mach-O binaries on Mac OS X. 22926OTOOL=$lt_OTOOL 22927 22928# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 22929OTOOL64=$lt_OTOOL64 22930 22931# Old archive suffix (normally "a"). 22932libext=$libext 22933 22934# Shared library suffix (normally ".so"). 22935shrext_cmds=$lt_shrext_cmds 22936 22937# The commands to extract the exported symbol list from a shared archive. 22938extract_expsyms_cmds=$lt_extract_expsyms_cmds 22939 22940# Variables whose values should be saved in libtool wrapper scripts and 22941# restored at link time. 22942variables_saved_for_relink=$lt_variables_saved_for_relink 22943 22944# Do we need the "lib" prefix for modules? 22945need_lib_prefix=$need_lib_prefix 22946 22947# Do we need a version for libraries? 22948need_version=$need_version 22949 22950# Library versioning type. 22951version_type=$version_type 22952 22953# Shared library runtime path variable. 22954runpath_var=$runpath_var 22955 22956# Shared library path variable. 22957shlibpath_var=$shlibpath_var 22958 22959# Is shlibpath searched before the hard-coded library search path? 22960shlibpath_overrides_runpath=$shlibpath_overrides_runpath 22961 22962# Format of library name prefix. 22963libname_spec=$lt_libname_spec 22964 22965# List of archive names. First name is the real one, the rest are links. 22966# The last name is the one that the linker finds with -lNAME 22967library_names_spec=$lt_library_names_spec 22968 22969# The coded name of the library, if different from the real name. 22970soname_spec=$lt_soname_spec 22971 22972# Permission mode override for installation of shared libraries. 22973install_override_mode=$lt_install_override_mode 22974 22975# Command to use after installation of a shared archive. 22976postinstall_cmds=$lt_postinstall_cmds 22977 22978# Command to use after uninstallation of a shared archive. 22979postuninstall_cmds=$lt_postuninstall_cmds 22980 22981# Commands used to finish a libtool library installation in a directory. 22982finish_cmds=$lt_finish_cmds 22983 22984# As "finish_cmds", except a single script fragment to be evaled but 22985# not shown. 22986finish_eval=$lt_finish_eval 22987 22988# Whether we should hardcode library paths into libraries. 22989hardcode_into_libs=$hardcode_into_libs 22990 22991# Compile-time system search path for libraries. 22992sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 22993 22994# Detected run-time system search path for libraries. 22995sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path 22996 22997# Explicit LT_SYS_LIBRARY_PATH set during ./configure time. 22998configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path 22999 23000# Whether dlopen is supported. 23001dlopen_support=$enable_dlopen 23002 23003# Whether dlopen of programs is supported. 23004dlopen_self=$enable_dlopen_self 23005 23006# Whether dlopen of statically linked programs is supported. 23007dlopen_self_static=$enable_dlopen_self_static 23008 23009# Commands to strip libraries. 23010old_striplib=$lt_old_striplib 23011striplib=$lt_striplib 23012 23013 23014# The linker used to build libraries. 23015LD=$lt_LD 23016 23017# How to create reloadable object files. 23018reload_flag=$lt_reload_flag 23019reload_cmds=$lt_reload_cmds 23020 23021# Commands used to build an old-style archive. 23022old_archive_cmds=$lt_old_archive_cmds 23023 23024# A language specific compiler. 23025CC=$lt_compiler 23026 23027# Is the compiler the GNU compiler? 23028with_gcc=$GCC 23029 23030# Compiler flag to turn off builtin functions. 23031no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 23032 23033# Additional compiler flags for building library objects. 23034pic_flag=$lt_lt_prog_compiler_pic 23035 23036# How to pass a linker flag through the compiler. 23037wl=$lt_lt_prog_compiler_wl 23038 23039# Compiler flag to prevent dynamic linking. 23040link_static_flag=$lt_lt_prog_compiler_static 23041 23042# Does compiler simultaneously support -c and -o options? 23043compiler_c_o=$lt_lt_cv_prog_compiler_c_o 23044 23045# Whether or not to add -lc for building shared libraries. 23046build_libtool_need_lc=$archive_cmds_need_lc 23047 23048# Whether or not to disallow shared libs when runtime libs are static. 23049allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 23050 23051# Compiler flag to allow reflexive dlopens. 23052export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 23053 23054# Compiler flag to generate shared objects directly from archives. 23055whole_archive_flag_spec=$lt_whole_archive_flag_spec 23056 23057# Whether the compiler copes with passing no objects directly. 23058compiler_needs_object=$lt_compiler_needs_object 23059 23060# Create an old-style archive from a shared archive. 23061old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 23062 23063# Create a temporary old-style archive to link instead of a shared archive. 23064old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 23065 23066# Commands used to build a shared archive. 23067archive_cmds=$lt_archive_cmds 23068archive_expsym_cmds=$lt_archive_expsym_cmds 23069 23070# Commands used to build a loadable module if different from building 23071# a shared archive. 23072module_cmds=$lt_module_cmds 23073module_expsym_cmds=$lt_module_expsym_cmds 23074 23075# Whether we are building with GNU ld or not. 23076with_gnu_ld=$lt_with_gnu_ld 23077 23078# Flag that allows shared libraries with undefined symbols to be built. 23079allow_undefined_flag=$lt_allow_undefined_flag 23080 23081# Flag that enforces no undefined symbols. 23082no_undefined_flag=$lt_no_undefined_flag 23083 23084# Flag to hardcode \$libdir into a binary during linking. 23085# This must work even if \$libdir does not exist 23086hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 23087 23088# Whether we need a single "-rpath" flag with a separated argument. 23089hardcode_libdir_separator=$lt_hardcode_libdir_separator 23090 23091# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 23092# DIR into the resulting binary. 23093hardcode_direct=$hardcode_direct 23094 23095# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 23096# DIR into the resulting binary and the resulting library dependency is 23097# "absolute",i.e impossible to change by setting \$shlibpath_var if the 23098# library is relocated. 23099hardcode_direct_absolute=$hardcode_direct_absolute 23100 23101# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 23102# into the resulting binary. 23103hardcode_minus_L=$hardcode_minus_L 23104 23105# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 23106# into the resulting binary. 23107hardcode_shlibpath_var=$hardcode_shlibpath_var 23108 23109# Set to "yes" if building a shared library automatically hardcodes DIR 23110# into the library and all subsequent libraries and executables linked 23111# against it. 23112hardcode_automatic=$hardcode_automatic 23113 23114# Set to yes if linker adds runtime paths of dependent libraries 23115# to runtime path list. 23116inherit_rpath=$inherit_rpath 23117 23118# Whether libtool must link a program against all its dependency libraries. 23119link_all_deplibs=$link_all_deplibs 23120 23121# Set to "yes" if exported symbols are required. 23122always_export_symbols=$always_export_symbols 23123 23124# The commands to list exported symbols. 23125export_symbols_cmds=$lt_export_symbols_cmds 23126 23127# Symbols that should not be listed in the preloaded symbols. 23128exclude_expsyms=$lt_exclude_expsyms 23129 23130# Symbols that must always be exported. 23131include_expsyms=$lt_include_expsyms 23132 23133# Commands necessary for linking programs (against libraries) with templates. 23134prelink_cmds=$lt_prelink_cmds 23135 23136# Commands necessary for finishing linking programs. 23137postlink_cmds=$lt_postlink_cmds 23138 23139# Specify filename containing input files. 23140file_list_spec=$lt_file_list_spec 23141 23142# How to hardcode a shared library path into an executable. 23143hardcode_action=$hardcode_action 23144 23145# ### END LIBTOOL CONFIG 23146 23147_LT_EOF 23148 23149 cat <<'_LT_EOF' >> "$cfgfile" 23150 23151# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE 23152 23153# func_munge_path_list VARIABLE PATH 23154# ----------------------------------- 23155# VARIABLE is name of variable containing _space_ separated list of 23156# directories to be munged by the contents of PATH, which is string 23157# having a format: 23158# "DIR[:DIR]:" 23159# string "DIR[ DIR]" will be prepended to VARIABLE 23160# ":DIR[:DIR]" 23161# string "DIR[ DIR]" will be appended to VARIABLE 23162# "DIRP[:DIRP]::[DIRA:]DIRA" 23163# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 23164# "DIRA[ DIRA]" will be appended to VARIABLE 23165# "DIR[:DIR]" 23166# VARIABLE will be replaced by "DIR[ DIR]" 23167func_munge_path_list () 23168{ 23169 case x$2 in 23170 x) 23171 ;; 23172 *:) 23173 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 23174 ;; 23175 x:*) 23176 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 23177 ;; 23178 *::*) 23179 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 23180 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 23181 ;; 23182 *) 23183 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 23184 ;; 23185 esac 23186} 23187 23188 23189# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 23190func_cc_basename () 23191{ 23192 for cc_temp in $*""; do 23193 case $cc_temp in 23194 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 23195 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 23196 \-*) ;; 23197 *) break;; 23198 esac 23199 done 23200 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 23201} 23202 23203 23204# ### END FUNCTIONS SHARED WITH CONFIGURE 23205 23206_LT_EOF 23207 23208 case $host_os in 23209 aix3*) 23210 cat <<\_LT_EOF >> "$cfgfile" 23211# AIX sometimes has problems with the GCC collect2 program. For some 23212# reason, if we set the COLLECT_NAMES environment variable, the problems 23213# vanish in a puff of smoke. 23214if test set != "${COLLECT_NAMES+set}"; then 23215 COLLECT_NAMES= 23216 export COLLECT_NAMES 23217fi 23218_LT_EOF 23219 ;; 23220 esac 23221 23222 23223 23224ltmain=$ac_aux_dir/ltmain.sh 23225 23226 23227 # We use sed instead of cat because bash on DJGPP gets confused if 23228 # if finds mixed CR/LF and LF-only lines. Since sed operates in 23229 # text mode, it properly converts lines to CR/LF. This bash problem 23230 # is reportedly fixed, but why not run on old versions too? 23231 $SED '$q' "$ltmain" >> "$cfgfile" \ 23232 || (rm -f "$cfgfile"; exit 1) 23233 23234 mv -f "$cfgfile" "$ofile" || 23235 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 23236 chmod +x "$ofile" 23237 23238 ;; 23239 23240 esac 23241done # for ac_tag 23242 23243 23244as_fn_exit 0 23245_ACEOF 23246ac_clean_files=$ac_clean_files_save 23247 23248test $ac_write_fail = 0 || 23249 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 23250 23251 23252# configure is writing to config.log, and then calls config.status. 23253# config.status does its own redirection, appending to config.log. 23254# Unfortunately, on DOS this fails, as config.log is still kept open 23255# by configure, so config.status won't be able to write to it; its 23256# output is simply discarded. So we exec the FD to /dev/null, 23257# effectively closing config.log, so it can be properly (re)opened and 23258# appended to by config.status. When coming back to configure, we 23259# need to make the FD available again. 23260if test "$no_create" != yes; then 23261 ac_cs_success=: 23262 ac_config_status_args= 23263 test "$silent" = yes && 23264 ac_config_status_args="$ac_config_status_args --quiet" 23265 exec 5>/dev/null 23266 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 23267 exec 5>>config.log 23268 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 23269 # would make configure fail if this is the last instruction. 23270 $ac_cs_success || as_fn_exit 1 23271fi 23272if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 23273 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 23274printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 23275fi 23276 23277 23278