configure revision 60da515c
1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.71 for libXfont2 2.0.5. 4# 5# Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libXfont/issues>. 6# 7# 8# Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation, 9# Inc. 10# 11# 12# This configure script is free software; the Free Software Foundation 13# gives unlimited permission to copy, distribute and modify it. 14## -------------------- ## 15## M4sh Initialization. ## 16## -------------------- ## 17 18# Be more Bourne compatible 19DUALCASE=1; export DUALCASE # for MKS sh 20as_nop=: 21if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 22then : 23 emulate sh 24 NULLCMD=: 25 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 26 # is contrary to our usage. Disable this feature. 27 alias -g '${1+"$@"}'='"$@"' 28 setopt NO_GLOB_SUBST 29else $as_nop 30 case `(set -o) 2>/dev/null` in #( 31 *posix*) : 32 set -o posix ;; #( 33 *) : 34 ;; 35esac 36fi 37 38 39 40# Reset variables that may have inherited troublesome values from 41# the environment. 42 43# IFS needs to be set, to space, tab, and newline, in precisely that order. 44# (If _AS_PATH_WALK were called with IFS unset, it would have the 45# side effect of setting IFS to empty, thus disabling word splitting.) 46# Quoting is to prevent editors from complaining about space-tab. 47as_nl=' 48' 49export as_nl 50IFS=" "" $as_nl" 51 52PS1='$ ' 53PS2='> ' 54PS4='+ ' 55 56# Ensure predictable behavior from utilities with locale-dependent output. 57LC_ALL=C 58export LC_ALL 59LANGUAGE=C 60export LANGUAGE 61 62# We cannot yet rely on "unset" to work, but we need these variables 63# to be unset--not just set to an empty or harmless value--now, to 64# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct 65# also avoids known problems related to "unset" and subshell syntax 66# in other old shells (e.g. bash 2.01 and pdksh 5.2.14). 67for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH 68do eval test \${$as_var+y} \ 69 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 70done 71 72# Ensure that fds 0, 1, and 2 are open. 73if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi 74if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi 75if (exec 3>&2) ; then :; else exec 2>/dev/null; fi 76 77# The user is always right. 78if ${PATH_SEPARATOR+false} :; then 79 PATH_SEPARATOR=: 80 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 81 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 82 PATH_SEPARATOR=';' 83 } 84fi 85 86 87# Find who we are. Look in the path if we contain no directory separator. 88as_myself= 89case $0 in #(( 90 *[\\/]* ) as_myself=$0 ;; 91 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 92for as_dir in $PATH 93do 94 IFS=$as_save_IFS 95 case $as_dir in #((( 96 '') as_dir=./ ;; 97 */) ;; 98 *) as_dir=$as_dir/ ;; 99 esac 100 test -r "$as_dir$0" && as_myself=$as_dir$0 && break 101 done 102IFS=$as_save_IFS 103 104 ;; 105esac 106# We did not find ourselves, most probably we were run as `sh COMMAND' 107# in which case we are not to be found in the path. 108if test "x$as_myself" = x; then 109 as_myself=$0 110fi 111if test ! -f "$as_myself"; then 112 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 113 exit 1 114fi 115 116 117# Use a proper internal environment variable to ensure we don't fall 118 # into an infinite loop, continuously re-executing ourselves. 119 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 120 _as_can_reexec=no; export _as_can_reexec; 121 # We cannot yet assume a decent shell, so we have to provide a 122# neutralization value for shells without unset; and this also 123# works around shells that cannot unset nonexistent variables. 124# Preserve -v and -x to the replacement shell. 125BASH_ENV=/dev/null 126ENV=/dev/null 127(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 128case $- in # (((( 129 *v*x* | *x*v* ) as_opts=-vx ;; 130 *v* ) as_opts=-v ;; 131 *x* ) as_opts=-x ;; 132 * ) as_opts= ;; 133esac 134exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 135# Admittedly, this is quite paranoid, since all the known shells bail 136# out after a failed `exec'. 137printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2 138exit 255 139 fi 140 # We don't want this to propagate to other subprocesses. 141 { _as_can_reexec=; unset _as_can_reexec;} 142if test "x$CONFIG_SHELL" = x; then 143 as_bourne_compatible="as_nop=: 144if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 145then : 146 emulate sh 147 NULLCMD=: 148 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 149 # is contrary to our usage. Disable this feature. 150 alias -g '\${1+\"\$@\"}'='\"\$@\"' 151 setopt NO_GLOB_SUBST 152else \$as_nop 153 case \`(set -o) 2>/dev/null\` in #( 154 *posix*) : 155 set -o posix ;; #( 156 *) : 157 ;; 158esac 159fi 160" 161 as_required="as_fn_return () { (exit \$1); } 162as_fn_success () { as_fn_return 0; } 163as_fn_failure () { as_fn_return 1; } 164as_fn_ret_success () { return 0; } 165as_fn_ret_failure () { return 1; } 166 167exitcode=0 168as_fn_success || { exitcode=1; echo as_fn_success failed.; } 169as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 170as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 171as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 172if ( set x; as_fn_ret_success y && test x = \"\$1\" ) 173then : 174 175else \$as_nop 176 exitcode=1; echo positional parameters were not saved. 177fi 178test x\$exitcode = x0 || exit 1 179blah=\$(echo \$(echo blah)) 180test x\"\$blah\" = xblah || exit 1 181test -x / || exit 1" 182 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 183 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 184 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 185 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 186 187 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( 188 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 189 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 190 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 191 PATH=/empty FPATH=/empty; export PATH FPATH 192 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ 193 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1 194test \$(( 1 + 1 )) = 2 || exit 1" 195 if (eval "$as_required") 2>/dev/null 196then : 197 as_have_required=yes 198else $as_nop 199 as_have_required=no 200fi 201 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null 202then : 203 204else $as_nop 205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 206as_found=false 207for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 208do 209 IFS=$as_save_IFS 210 case $as_dir in #((( 211 '') as_dir=./ ;; 212 */) ;; 213 *) as_dir=$as_dir/ ;; 214 esac 215 as_found=: 216 case $as_dir in #( 217 /*) 218 for as_base in sh bash ksh sh5; do 219 # Try only shells that exist, to save several forks. 220 as_shell=$as_dir$as_base 221 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 222 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null 223then : 224 CONFIG_SHELL=$as_shell as_have_required=yes 225 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null 226then : 227 break 2 228fi 229fi 230 done;; 231 esac 232 as_found=false 233done 234IFS=$as_save_IFS 235if $as_found 236then : 237 238else $as_nop 239 if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 240 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null 241then : 242 CONFIG_SHELL=$SHELL as_have_required=yes 243fi 244fi 245 246 247 if test "x$CONFIG_SHELL" != x 248then : 249 export CONFIG_SHELL 250 # We cannot yet assume a decent shell, so we have to provide a 251# neutralization value for shells without unset; and this also 252# works around shells that cannot unset nonexistent variables. 253# Preserve -v and -x to the replacement shell. 254BASH_ENV=/dev/null 255ENV=/dev/null 256(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 257case $- in # (((( 258 *v*x* | *x*v* ) as_opts=-vx ;; 259 *v* ) as_opts=-v ;; 260 *x* ) as_opts=-x ;; 261 * ) as_opts= ;; 262esac 263exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 264# Admittedly, this is quite paranoid, since all the known shells bail 265# out after a failed `exec'. 266printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2 267exit 255 268fi 269 270 if test x$as_have_required = xno 271then : 272 printf "%s\n" "$0: This script requires a shell more modern than all" 273 printf "%s\n" "$0: the shells that I found on your system." 274 if test ${ZSH_VERSION+y} ; then 275 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should" 276 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later." 277 else 278 printf "%s\n" "$0: Please tell bug-autoconf@gnu.org and 279$0: https://gitlab.freedesktop.org/xorg/lib/libXfont/issues 280$0: about your system, including any error possibly output 281$0: before this message. Then install a modern shell, or 282$0: manually run the script under such a shell if you do 283$0: have one." 284 fi 285 exit 1 286fi 287fi 288fi 289SHELL=${CONFIG_SHELL-/bin/sh} 290export SHELL 291# Unset more variables known to interfere with behavior of common tools. 292CLICOLOR_FORCE= GREP_OPTIONS= 293unset CLICOLOR_FORCE GREP_OPTIONS 294 295## --------------------- ## 296## M4sh Shell Functions. ## 297## --------------------- ## 298# as_fn_unset VAR 299# --------------- 300# Portably unset VAR. 301as_fn_unset () 302{ 303 { eval $1=; unset $1;} 304} 305as_unset=as_fn_unset 306 307 308# as_fn_set_status STATUS 309# ----------------------- 310# Set $? to STATUS, without forking. 311as_fn_set_status () 312{ 313 return $1 314} # as_fn_set_status 315 316# as_fn_exit STATUS 317# ----------------- 318# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 319as_fn_exit () 320{ 321 set +e 322 as_fn_set_status $1 323 exit $1 324} # as_fn_exit 325# as_fn_nop 326# --------- 327# Do nothing but, unlike ":", preserve the value of $?. 328as_fn_nop () 329{ 330 return $? 331} 332as_nop=as_fn_nop 333 334# as_fn_mkdir_p 335# ------------- 336# Create "$as_dir" as a directory, including parents if necessary. 337as_fn_mkdir_p () 338{ 339 340 case $as_dir in #( 341 -*) as_dir=./$as_dir;; 342 esac 343 test -d "$as_dir" || eval $as_mkdir_p || { 344 as_dirs= 345 while :; do 346 case $as_dir in #( 347 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 348 *) as_qdir=$as_dir;; 349 esac 350 as_dirs="'$as_qdir' $as_dirs" 351 as_dir=`$as_dirname -- "$as_dir" || 352$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 353 X"$as_dir" : 'X\(//\)[^/]' \| \ 354 X"$as_dir" : 'X\(//\)$' \| \ 355 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 356printf "%s\n" X"$as_dir" | 357 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 358 s//\1/ 359 q 360 } 361 /^X\(\/\/\)[^/].*/{ 362 s//\1/ 363 q 364 } 365 /^X\(\/\/\)$/{ 366 s//\1/ 367 q 368 } 369 /^X\(\/\).*/{ 370 s//\1/ 371 q 372 } 373 s/.*/./; q'` 374 test -d "$as_dir" && break 375 done 376 test -z "$as_dirs" || eval "mkdir $as_dirs" 377 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 378 379 380} # as_fn_mkdir_p 381 382# as_fn_executable_p FILE 383# ----------------------- 384# Test if FILE is an executable regular file. 385as_fn_executable_p () 386{ 387 test -f "$1" && test -x "$1" 388} # as_fn_executable_p 389# as_fn_append VAR VALUE 390# ---------------------- 391# Append the text in VALUE to the end of the definition contained in VAR. Take 392# advantage of any shell optimizations that allow amortized linear growth over 393# repeated appends, instead of the typical quadratic growth present in naive 394# implementations. 395if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null 396then : 397 eval 'as_fn_append () 398 { 399 eval $1+=\$2 400 }' 401else $as_nop 402 as_fn_append () 403 { 404 eval $1=\$$1\$2 405 } 406fi # as_fn_append 407 408# as_fn_arith ARG... 409# ------------------ 410# Perform arithmetic evaluation on the ARGs, and store the result in the 411# global $as_val. Take advantage of shells that can avoid forks. The arguments 412# must be portable across $(()) and expr. 413if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null 414then : 415 eval 'as_fn_arith () 416 { 417 as_val=$(( $* )) 418 }' 419else $as_nop 420 as_fn_arith () 421 { 422 as_val=`expr "$@" || test $? -eq 1` 423 } 424fi # as_fn_arith 425 426# as_fn_nop 427# --------- 428# Do nothing but, unlike ":", preserve the value of $?. 429as_fn_nop () 430{ 431 return $? 432} 433as_nop=as_fn_nop 434 435# as_fn_error STATUS ERROR [LINENO LOG_FD] 436# ---------------------------------------- 437# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 438# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 439# script with STATUS, using 1 if that was 0. 440as_fn_error () 441{ 442 as_status=$1; test $as_status -eq 0 && as_status=1 443 if test "$4"; then 444 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 445 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 446 fi 447 printf "%s\n" "$as_me: error: $2" >&2 448 as_fn_exit $as_status 449} # as_fn_error 450 451if expr a : '\(a\)' >/dev/null 2>&1 && 452 test "X`expr 00001 : '.*\(...\)'`" = X001; then 453 as_expr=expr 454else 455 as_expr=false 456fi 457 458if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 459 as_basename=basename 460else 461 as_basename=false 462fi 463 464if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 465 as_dirname=dirname 466else 467 as_dirname=false 468fi 469 470as_me=`$as_basename -- "$0" || 471$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 472 X"$0" : 'X\(//\)$' \| \ 473 X"$0" : 'X\(/\)' \| . 2>/dev/null || 474printf "%s\n" X/"$0" | 475 sed '/^.*\/\([^/][^/]*\)\/*$/{ 476 s//\1/ 477 q 478 } 479 /^X\/\(\/\/\)$/{ 480 s//\1/ 481 q 482 } 483 /^X\/\(\/\).*/{ 484 s//\1/ 485 q 486 } 487 s/.*/./; q'` 488 489# Avoid depending upon Character Ranges. 490as_cr_letters='abcdefghijklmnopqrstuvwxyz' 491as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 492as_cr_Letters=$as_cr_letters$as_cr_LETTERS 493as_cr_digits='0123456789' 494as_cr_alnum=$as_cr_Letters$as_cr_digits 495 496 497 as_lineno_1=$LINENO as_lineno_1a=$LINENO 498 as_lineno_2=$LINENO as_lineno_2a=$LINENO 499 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 500 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 501 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 502 sed -n ' 503 p 504 /[$]LINENO/= 505 ' <$as_myself | 506 sed ' 507 s/[$]LINENO.*/&-/ 508 t lineno 509 b 510 :lineno 511 N 512 :loop 513 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 514 t loop 515 s/-\n.*// 516 ' >$as_me.lineno && 517 chmod +x "$as_me.lineno" || 518 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 519 520 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 521 # already done that, so ensure we don't try to do so again and fall 522 # in an infinite loop. This has already happened in practice. 523 _as_can_reexec=no; export _as_can_reexec 524 # Don't try to exec as it changes $[0], causing all sort of problems 525 # (the dirname of $[0] is not the place where we might find the 526 # original and so on. Autoconf is especially sensitive to this). 527 . "./$as_me.lineno" 528 # Exit status is that of the last command. 529 exit 530} 531 532 533# Determine whether it's possible to make 'echo' print without a newline. 534# These variables are no longer used directly by Autoconf, but are AC_SUBSTed 535# for compatibility with existing Makefiles. 536ECHO_C= ECHO_N= ECHO_T= 537case `echo -n x` in #((((( 538-n*) 539 case `echo 'xy\c'` in 540 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 541 xy) ECHO_C='\c';; 542 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 543 ECHO_T=' ';; 544 esac;; 545*) 546 ECHO_N='-n';; 547esac 548 549# For backward compatibility with old third-party macros, we provide 550# the shell variables $as_echo and $as_echo_n. New code should use 551# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. 552as_echo='printf %s\n' 553as_echo_n='printf %s' 554 555 556rm -f conf$$ conf$$.exe conf$$.file 557if test -d conf$$.dir; then 558 rm -f conf$$.dir/conf$$.file 559else 560 rm -f conf$$.dir 561 mkdir conf$$.dir 2>/dev/null 562fi 563if (echo >conf$$.file) 2>/dev/null; then 564 if ln -s conf$$.file conf$$ 2>/dev/null; then 565 as_ln_s='ln -s' 566 # ... but there are two gotchas: 567 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 568 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 569 # In both cases, we have to default to `cp -pR'. 570 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 571 as_ln_s='cp -pR' 572 elif ln conf$$.file conf$$ 2>/dev/null; then 573 as_ln_s=ln 574 else 575 as_ln_s='cp -pR' 576 fi 577else 578 as_ln_s='cp -pR' 579fi 580rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 581rmdir conf$$.dir 2>/dev/null 582 583if mkdir -p . 2>/dev/null; then 584 as_mkdir_p='mkdir -p "$as_dir"' 585else 586 test -d ./-p && rmdir ./-p 587 as_mkdir_p=false 588fi 589 590as_test_x='test -x' 591as_executable_p=as_fn_executable_p 592 593# Sed expression to map a string onto a valid CPP name. 594as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 595 596# Sed expression to map a string onto a valid variable name. 597as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 598 599SHELL=${CONFIG_SHELL-/bin/sh} 600 601as_awk_strverscmp=' 602 # Use only awk features that work with 7th edition Unix awk (1978). 603 # My, what an old awk you have, Mr. Solaris! 604 END { 605 while (length(v1) && length(v2)) { 606 # Set d1 to be the next thing to compare from v1, and likewise for d2. 607 # Normally this is a single character, but if v1 and v2 contain digits, 608 # compare them as integers and fractions as strverscmp does. 609 if (v1 ~ /^[0-9]/ && v2 ~ /^[0-9]/) { 610 # Split v1 and v2 into their leading digit string components d1 and d2, 611 # and advance v1 and v2 past the leading digit strings. 612 for (len1 = 1; substr(v1, len1 + 1) ~ /^[0-9]/; len1++) continue 613 for (len2 = 1; substr(v2, len2 + 1) ~ /^[0-9]/; len2++) continue 614 d1 = substr(v1, 1, len1); v1 = substr(v1, len1 + 1) 615 d2 = substr(v2, 1, len2); v2 = substr(v2, len2 + 1) 616 if (d1 ~ /^0/) { 617 if (d2 ~ /^0/) { 618 # Compare two fractions. 619 while (d1 ~ /^0/ && d2 ~ /^0/) { 620 d1 = substr(d1, 2); len1-- 621 d2 = substr(d2, 2); len2-- 622 } 623 if (len1 != len2 && ! (len1 && len2 && substr(d1, 1, 1) == substr(d2, 1, 1))) { 624 # The two components differ in length, and the common prefix 625 # contains only leading zeros. Consider the longer to be less. 626 d1 = -len1 627 d2 = -len2 628 } else { 629 # Otherwise, compare as strings. 630 d1 = "x" d1 631 d2 = "x" d2 632 } 633 } else { 634 # A fraction is less than an integer. 635 exit 1 636 } 637 } else { 638 if (d2 ~ /^0/) { 639 # An integer is greater than a fraction. 640 exit 2 641 } else { 642 # Compare two integers. 643 d1 += 0 644 d2 += 0 645 } 646 } 647 } else { 648 # The normal case, without worrying about digits. 649 d1 = substr(v1, 1, 1); v1 = substr(v1, 2) 650 d2 = substr(v2, 1, 1); v2 = substr(v2, 2) 651 } 652 if (d1 < d2) exit 1 653 if (d1 > d2) exit 2 654 } 655 # Beware Solaris /usr/xgp4/bin/awk (at least through Solaris 10), 656 # which mishandles some comparisons of empty strings to integers. 657 if (length(v2)) exit 1 658 if (length(v1)) exit 2 659 } 660' 661 662test -n "$DJDIR" || exec 7<&0 </dev/null 663exec 6>&1 664 665# Name of the host. 666# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 667# so uname gets run too. 668ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 669 670# 671# Initializations. 672# 673ac_default_prefix=/usr/local 674ac_clean_files= 675ac_config_libobj_dir=. 676LIBOBJS= 677cross_compiling=no 678subdirs= 679MFLAGS= 680MAKEFLAGS= 681 682# Identity of this package. 683PACKAGE_NAME='libXfont2' 684PACKAGE_TARNAME='libXfont2' 685PACKAGE_VERSION='2.0.5' 686PACKAGE_STRING='libXfont2 2.0.5' 687PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/lib/libXfont/issues' 688PACKAGE_URL='' 689 690ac_unique_file="Makefile.am" 691# Factoring default headers for most tests. 692ac_includes_default="\ 693#include <stddef.h> 694#ifdef HAVE_STDIO_H 695# include <stdio.h> 696#endif 697#ifdef HAVE_STDLIB_H 698# include <stdlib.h> 699#endif 700#ifdef HAVE_STRING_H 701# include <string.h> 702#endif 703#ifdef HAVE_INTTYPES_H 704# include <inttypes.h> 705#endif 706#ifdef HAVE_STDINT_H 707# include <stdint.h> 708#endif 709#ifdef HAVE_STRINGS_H 710# include <strings.h> 711#endif 712#ifdef HAVE_SYS_TYPES_H 713# include <sys/types.h> 714#endif 715#ifdef HAVE_SYS_STAT_H 716# include <sys/stat.h> 717#endif 718#ifdef HAVE_UNISTD_H 719# include <unistd.h> 720#endif" 721 722ac_header_c_list= 723ac_config_libobj_dir=src/util 724ac_subst_vars='am__EXEEXT_FALSE 725am__EXEEXT_TRUE 726LTLIBOBJS 727OS_CFLAGS 728XFONT_LIBS 729XFONT_CFLAGS 730MATH_LIBS 731XFONT_FC_FALSE 732XFONT_FC_TRUE 733XFONT_FONTFILE_FALSE 734XFONT_FONTFILE_TRUE 735XFONT_BITMAP_FALSE 736XFONT_BITMAP_TRUE 737XFONT_SNFFORMAT_FALSE 738XFONT_SNFFORMAT_TRUE 739XFONT_BDFFORMAT_FALSE 740XFONT_BDFFORMAT_TRUE 741XFONT_PCF_OR_BUILTIN_FALSE 742XFONT_PCF_OR_BUILTIN_TRUE 743XFONT_PCFFORMAT_FALSE 744XFONT_PCFFORMAT_TRUE 745XFONT_BUILTINS_FALSE 746XFONT_BUILTINS_TRUE 747Z_LIBS 748X_BZIP2_FONT_COMPRESSION_FALSE 749X_BZIP2_FONT_COMPRESSION_TRUE 750X_GZIP_FONT_COMPRESSION 751FREETYPE_REQUIRES 752ft_config 753FREETYPE_LIBS 754FREETYPE_CFLAGS 755XFONT_FREETYPE_FALSE 756XFONT_FREETYPE_TRUE 757LIBOBJS 758HAVE_STYLESHEETS_FALSE 759HAVE_STYLESHEETS_TRUE 760XSL_STYLESHEET 761STYLESHEET_SRCDIR 762XORG_SGML_PATH 763HAVE_FOP_FALSE 764HAVE_FOP_TRUE 765FOP 766HAVE_XMLTO_FALSE 767HAVE_XMLTO_TRUE 768HAVE_XMLTO_TEXT_FALSE 769HAVE_XMLTO_TEXT_TRUE 770XMLTO 771ENABLE_DEVEL_DOCS_FALSE 772ENABLE_DEVEL_DOCS_TRUE 773MAN_SUBSTS 774XORG_MAN_PAGE 775ADMIN_MAN_DIR 776DRIVER_MAN_DIR 777MISC_MAN_DIR 778FILE_MAN_DIR 779LIB_MAN_DIR 780APP_MAN_DIR 781ADMIN_MAN_SUFFIX 782DRIVER_MAN_SUFFIX 783MISC_MAN_SUFFIX 784FILE_MAN_SUFFIX 785LIB_MAN_SUFFIX 786APP_MAN_SUFFIX 787INSTALL_CMD 788PKG_CONFIG_LIBDIR 789PKG_CONFIG_PATH 790PKG_CONFIG 791CHANGELOG_CMD 792STRICT_CFLAGS 793CWARNFLAGS 794BASE_CFLAGS 795LT_SYS_LIBRARY_PATH 796OTOOL64 797OTOOL 798LIPO 799NMEDIT 800DSYMUTIL 801MANIFEST_TOOL 802RANLIB 803ac_ct_AR 804AR 805DLLTOOL 806OBJDUMP 807LN_S 808NM 809ac_ct_DUMPBIN 810DUMPBIN 811LD 812FGREP 813EGREP 814GREP 815SED 816host_os 817host_vendor 818host_cpu 819host 820build_os 821build_vendor 822build_cpu 823build 824LIBTOOL 825am__fastdepCC_FALSE 826am__fastdepCC_TRUE 827CCDEPMODE 828am__nodep 829AMDEPBACKSLASH 830AMDEP_FALSE 831AMDEP_TRUE 832am__include 833DEPDIR 834OBJEXT 835EXEEXT 836ac_ct_CC 837CPPFLAGS 838LDFLAGS 839CFLAGS 840CC 841AM_BACKSLASH 842AM_DEFAULT_VERBOSITY 843AM_DEFAULT_V 844AM_V 845CSCOPE 846ETAGS 847CTAGS 848am__untar 849am__tar 850AMTAR 851am__leading_dot 852SET_MAKE 853AWK 854mkdir_p 855MKDIR_P 856INSTALL_STRIP_PROGRAM 857STRIP 858install_sh 859MAKEINFO 860AUTOHEADER 861AUTOMAKE 862AUTOCONF 863ACLOCAL 864VERSION 865PACKAGE 866CYGPATH_W 867am__isrc 868INSTALL_DATA 869INSTALL_SCRIPT 870INSTALL_PROGRAM 871target_alias 872host_alias 873build_alias 874LIBS 875ECHO_T 876ECHO_N 877ECHO_C 878DEFS 879mandir 880localedir 881libdir 882psdir 883pdfdir 884dvidir 885htmldir 886infodir 887docdir 888oldincludedir 889includedir 890runstatedir 891localstatedir 892sharedstatedir 893sysconfdir 894datadir 895datarootdir 896libexecdir 897sbindir 898bindir 899program_transform_name 900prefix 901exec_prefix 902PACKAGE_URL 903PACKAGE_BUGREPORT 904PACKAGE_STRING 905PACKAGE_VERSION 906PACKAGE_TARNAME 907PACKAGE_NAME 908PATH_SEPARATOR 909SHELL 910am__quote' 911ac_subst_files='' 912ac_user_opts=' 913enable_option_checking 914enable_silent_rules 915enable_dependency_tracking 916enable_shared 917enable_static 918with_pic 919enable_fast_install 920with_aix_soname 921with_gnu_ld 922with_sysroot 923enable_libtool_lock 924enable_selective_werror 925enable_strict_compilation 926enable_devel_docs 927with_xmlto 928with_fop 929enable_freetype 930with_freetype_config 931with_bzip2 932enable_builtins 933enable_pcfformat 934enable_bdfformat 935enable_snfformat 936enable_fc 937enable_unix_transport 938enable_tcp_transport 939enable_ipv6 940enable_local_transport 941' 942 ac_precious_vars='build_alias 943host_alias 944target_alias 945CC 946CFLAGS 947LDFLAGS 948LIBS 949CPPFLAGS 950LT_SYS_LIBRARY_PATH 951PKG_CONFIG 952PKG_CONFIG_PATH 953PKG_CONFIG_LIBDIR 954XMLTO 955FOP 956FREETYPE_CFLAGS 957FREETYPE_LIBS 958XFONT_CFLAGS 959XFONT_LIBS' 960 961 962# Initialize some variables set by options. 963ac_init_help= 964ac_init_version=false 965ac_unrecognized_opts= 966ac_unrecognized_sep= 967# The variables have the same names as the options, with 968# dashes changed to underlines. 969cache_file=/dev/null 970exec_prefix=NONE 971no_create= 972no_recursion= 973prefix=NONE 974program_prefix=NONE 975program_suffix=NONE 976program_transform_name=s,x,x, 977silent= 978site= 979srcdir= 980verbose= 981x_includes=NONE 982x_libraries=NONE 983 984# Installation directory options. 985# These are left unexpanded so users can "make install exec_prefix=/foo" 986# and all the variables that are supposed to be based on exec_prefix 987# by default will actually change. 988# Use braces instead of parens because sh, perl, etc. also accept them. 989# (The list follows the same order as the GNU Coding Standards.) 990bindir='${exec_prefix}/bin' 991sbindir='${exec_prefix}/sbin' 992libexecdir='${exec_prefix}/libexec' 993datarootdir='${prefix}/share' 994datadir='${datarootdir}' 995sysconfdir='${prefix}/etc' 996sharedstatedir='${prefix}/com' 997localstatedir='${prefix}/var' 998runstatedir='${localstatedir}/run' 999includedir='${prefix}/include' 1000oldincludedir='/usr/include' 1001docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 1002infodir='${datarootdir}/info' 1003htmldir='${docdir}' 1004dvidir='${docdir}' 1005pdfdir='${docdir}' 1006psdir='${docdir}' 1007libdir='${exec_prefix}/lib' 1008localedir='${datarootdir}/locale' 1009mandir='${datarootdir}/man' 1010 1011ac_prev= 1012ac_dashdash= 1013for ac_option 1014do 1015 # If the previous option needs an argument, assign it. 1016 if test -n "$ac_prev"; then 1017 eval $ac_prev=\$ac_option 1018 ac_prev= 1019 continue 1020 fi 1021 1022 case $ac_option in 1023 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 1024 *=) ac_optarg= ;; 1025 *) ac_optarg=yes ;; 1026 esac 1027 1028 case $ac_dashdash$ac_option in 1029 --) 1030 ac_dashdash=yes ;; 1031 1032 -bindir | --bindir | --bindi | --bind | --bin | --bi) 1033 ac_prev=bindir ;; 1034 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 1035 bindir=$ac_optarg ;; 1036 1037 -build | --build | --buil | --bui | --bu) 1038 ac_prev=build_alias ;; 1039 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 1040 build_alias=$ac_optarg ;; 1041 1042 -cache-file | --cache-file | --cache-fil | --cache-fi \ 1043 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 1044 ac_prev=cache_file ;; 1045 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 1046 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 1047 cache_file=$ac_optarg ;; 1048 1049 --config-cache | -C) 1050 cache_file=config.cache ;; 1051 1052 -datadir | --datadir | --datadi | --datad) 1053 ac_prev=datadir ;; 1054 -datadir=* | --datadir=* | --datadi=* | --datad=*) 1055 datadir=$ac_optarg ;; 1056 1057 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 1058 | --dataroo | --dataro | --datar) 1059 ac_prev=datarootdir ;; 1060 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 1061 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 1062 datarootdir=$ac_optarg ;; 1063 1064 -disable-* | --disable-*) 1065 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 1066 # Reject names that are not valid shell variable names. 1067 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1068 as_fn_error $? "invalid feature name: \`$ac_useropt'" 1069 ac_useropt_orig=$ac_useropt 1070 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1071 case $ac_user_opts in 1072 *" 1073"enable_$ac_useropt" 1074"*) ;; 1075 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 1076 ac_unrecognized_sep=', ';; 1077 esac 1078 eval enable_$ac_useropt=no ;; 1079 1080 -docdir | --docdir | --docdi | --doc | --do) 1081 ac_prev=docdir ;; 1082 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1083 docdir=$ac_optarg ;; 1084 1085 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1086 ac_prev=dvidir ;; 1087 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1088 dvidir=$ac_optarg ;; 1089 1090 -enable-* | --enable-*) 1091 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1092 # Reject names that are not valid shell variable names. 1093 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1094 as_fn_error $? "invalid feature name: \`$ac_useropt'" 1095 ac_useropt_orig=$ac_useropt 1096 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1097 case $ac_user_opts in 1098 *" 1099"enable_$ac_useropt" 1100"*) ;; 1101 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1102 ac_unrecognized_sep=', ';; 1103 esac 1104 eval enable_$ac_useropt=\$ac_optarg ;; 1105 1106 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1107 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1108 | --exec | --exe | --ex) 1109 ac_prev=exec_prefix ;; 1110 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1111 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1112 | --exec=* | --exe=* | --ex=*) 1113 exec_prefix=$ac_optarg ;; 1114 1115 -gas | --gas | --ga | --g) 1116 # Obsolete; use --with-gas. 1117 with_gas=yes ;; 1118 1119 -help | --help | --hel | --he | -h) 1120 ac_init_help=long ;; 1121 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1122 ac_init_help=recursive ;; 1123 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1124 ac_init_help=short ;; 1125 1126 -host | --host | --hos | --ho) 1127 ac_prev=host_alias ;; 1128 -host=* | --host=* | --hos=* | --ho=*) 1129 host_alias=$ac_optarg ;; 1130 1131 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1132 ac_prev=htmldir ;; 1133 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1134 | --ht=*) 1135 htmldir=$ac_optarg ;; 1136 1137 -includedir | --includedir | --includedi | --included | --include \ 1138 | --includ | --inclu | --incl | --inc) 1139 ac_prev=includedir ;; 1140 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1141 | --includ=* | --inclu=* | --incl=* | --inc=*) 1142 includedir=$ac_optarg ;; 1143 1144 -infodir | --infodir | --infodi | --infod | --info | --inf) 1145 ac_prev=infodir ;; 1146 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1147 infodir=$ac_optarg ;; 1148 1149 -libdir | --libdir | --libdi | --libd) 1150 ac_prev=libdir ;; 1151 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1152 libdir=$ac_optarg ;; 1153 1154 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1155 | --libexe | --libex | --libe) 1156 ac_prev=libexecdir ;; 1157 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1158 | --libexe=* | --libex=* | --libe=*) 1159 libexecdir=$ac_optarg ;; 1160 1161 -localedir | --localedir | --localedi | --localed | --locale) 1162 ac_prev=localedir ;; 1163 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1164 localedir=$ac_optarg ;; 1165 1166 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1167 | --localstate | --localstat | --localsta | --localst | --locals) 1168 ac_prev=localstatedir ;; 1169 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1170 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1171 localstatedir=$ac_optarg ;; 1172 1173 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1174 ac_prev=mandir ;; 1175 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1176 mandir=$ac_optarg ;; 1177 1178 -nfp | --nfp | --nf) 1179 # Obsolete; use --without-fp. 1180 with_fp=no ;; 1181 1182 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1183 | --no-cr | --no-c | -n) 1184 no_create=yes ;; 1185 1186 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1187 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1188 no_recursion=yes ;; 1189 1190 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1191 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1192 | --oldin | --oldi | --old | --ol | --o) 1193 ac_prev=oldincludedir ;; 1194 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1195 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1196 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1197 oldincludedir=$ac_optarg ;; 1198 1199 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1200 ac_prev=prefix ;; 1201 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1202 prefix=$ac_optarg ;; 1203 1204 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1205 | --program-pre | --program-pr | --program-p) 1206 ac_prev=program_prefix ;; 1207 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1208 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1209 program_prefix=$ac_optarg ;; 1210 1211 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1212 | --program-suf | --program-su | --program-s) 1213 ac_prev=program_suffix ;; 1214 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1215 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1216 program_suffix=$ac_optarg ;; 1217 1218 -program-transform-name | --program-transform-name \ 1219 | --program-transform-nam | --program-transform-na \ 1220 | --program-transform-n | --program-transform- \ 1221 | --program-transform | --program-transfor \ 1222 | --program-transfo | --program-transf \ 1223 | --program-trans | --program-tran \ 1224 | --progr-tra | --program-tr | --program-t) 1225 ac_prev=program_transform_name ;; 1226 -program-transform-name=* | --program-transform-name=* \ 1227 | --program-transform-nam=* | --program-transform-na=* \ 1228 | --program-transform-n=* | --program-transform-=* \ 1229 | --program-transform=* | --program-transfor=* \ 1230 | --program-transfo=* | --program-transf=* \ 1231 | --program-trans=* | --program-tran=* \ 1232 | --progr-tra=* | --program-tr=* | --program-t=*) 1233 program_transform_name=$ac_optarg ;; 1234 1235 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1236 ac_prev=pdfdir ;; 1237 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1238 pdfdir=$ac_optarg ;; 1239 1240 -psdir | --psdir | --psdi | --psd | --ps) 1241 ac_prev=psdir ;; 1242 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1243 psdir=$ac_optarg ;; 1244 1245 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1246 | -silent | --silent | --silen | --sile | --sil) 1247 silent=yes ;; 1248 1249 -runstatedir | --runstatedir | --runstatedi | --runstated \ 1250 | --runstate | --runstat | --runsta | --runst | --runs \ 1251 | --run | --ru | --r) 1252 ac_prev=runstatedir ;; 1253 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ 1254 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ 1255 | --run=* | --ru=* | --r=*) 1256 runstatedir=$ac_optarg ;; 1257 1258 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1259 ac_prev=sbindir ;; 1260 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1261 | --sbi=* | --sb=*) 1262 sbindir=$ac_optarg ;; 1263 1264 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1265 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1266 | --sharedst | --shareds | --shared | --share | --shar \ 1267 | --sha | --sh) 1268 ac_prev=sharedstatedir ;; 1269 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1270 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1271 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1272 | --sha=* | --sh=*) 1273 sharedstatedir=$ac_optarg ;; 1274 1275 -site | --site | --sit) 1276 ac_prev=site ;; 1277 -site=* | --site=* | --sit=*) 1278 site=$ac_optarg ;; 1279 1280 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1281 ac_prev=srcdir ;; 1282 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1283 srcdir=$ac_optarg ;; 1284 1285 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1286 | --syscon | --sysco | --sysc | --sys | --sy) 1287 ac_prev=sysconfdir ;; 1288 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1289 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1290 sysconfdir=$ac_optarg ;; 1291 1292 -target | --target | --targe | --targ | --tar | --ta | --t) 1293 ac_prev=target_alias ;; 1294 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1295 target_alias=$ac_optarg ;; 1296 1297 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1298 verbose=yes ;; 1299 1300 -version | --version | --versio | --versi | --vers | -V) 1301 ac_init_version=: ;; 1302 1303 -with-* | --with-*) 1304 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1305 # Reject names that are not valid shell variable names. 1306 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1307 as_fn_error $? "invalid package name: \`$ac_useropt'" 1308 ac_useropt_orig=$ac_useropt 1309 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1310 case $ac_user_opts in 1311 *" 1312"with_$ac_useropt" 1313"*) ;; 1314 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1315 ac_unrecognized_sep=', ';; 1316 esac 1317 eval with_$ac_useropt=\$ac_optarg ;; 1318 1319 -without-* | --without-*) 1320 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1321 # Reject names that are not valid shell variable names. 1322 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1323 as_fn_error $? "invalid package name: \`$ac_useropt'" 1324 ac_useropt_orig=$ac_useropt 1325 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1326 case $ac_user_opts in 1327 *" 1328"with_$ac_useropt" 1329"*) ;; 1330 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1331 ac_unrecognized_sep=', ';; 1332 esac 1333 eval with_$ac_useropt=no ;; 1334 1335 --x) 1336 # Obsolete; use --with-x. 1337 with_x=yes ;; 1338 1339 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1340 | --x-incl | --x-inc | --x-in | --x-i) 1341 ac_prev=x_includes ;; 1342 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1343 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1344 x_includes=$ac_optarg ;; 1345 1346 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1347 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1348 ac_prev=x_libraries ;; 1349 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1350 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1351 x_libraries=$ac_optarg ;; 1352 1353 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1354Try \`$0 --help' for more information" 1355 ;; 1356 1357 *=*) 1358 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1359 # Reject names that are not valid shell variable names. 1360 case $ac_envvar in #( 1361 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1362 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1363 esac 1364 eval $ac_envvar=\$ac_optarg 1365 export $ac_envvar ;; 1366 1367 *) 1368 # FIXME: should be removed in autoconf 3.0. 1369 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2 1370 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1371 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2 1372 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1373 ;; 1374 1375 esac 1376done 1377 1378if test -n "$ac_prev"; then 1379 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1380 as_fn_error $? "missing argument to $ac_option" 1381fi 1382 1383if test -n "$ac_unrecognized_opts"; then 1384 case $enable_option_checking in 1385 no) ;; 1386 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1387 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1388 esac 1389fi 1390 1391# Check all directory arguments for consistency. 1392for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1393 datadir sysconfdir sharedstatedir localstatedir includedir \ 1394 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1395 libdir localedir mandir runstatedir 1396do 1397 eval ac_val=\$$ac_var 1398 # Remove trailing slashes. 1399 case $ac_val in 1400 */ ) 1401 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1402 eval $ac_var=\$ac_val;; 1403 esac 1404 # Be sure to have absolute directory names. 1405 case $ac_val in 1406 [\\/$]* | ?:[\\/]* ) continue;; 1407 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1408 esac 1409 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1410done 1411 1412# There might be people who depend on the old broken behavior: `$host' 1413# used to hold the argument of --host etc. 1414# FIXME: To remove some day. 1415build=$build_alias 1416host=$host_alias 1417target=$target_alias 1418 1419# FIXME: To remove some day. 1420if test "x$host_alias" != x; then 1421 if test "x$build_alias" = x; then 1422 cross_compiling=maybe 1423 elif test "x$build_alias" != "x$host_alias"; then 1424 cross_compiling=yes 1425 fi 1426fi 1427 1428ac_tool_prefix= 1429test -n "$host_alias" && ac_tool_prefix=$host_alias- 1430 1431test "$silent" = yes && exec 6>/dev/null 1432 1433 1434ac_pwd=`pwd` && test -n "$ac_pwd" && 1435ac_ls_di=`ls -di .` && 1436ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1437 as_fn_error $? "working directory cannot be determined" 1438test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1439 as_fn_error $? "pwd does not report name of working directory" 1440 1441 1442# Find the source files, if location was not specified. 1443if test -z "$srcdir"; then 1444 ac_srcdir_defaulted=yes 1445 # Try the directory containing this script, then the parent directory. 1446 ac_confdir=`$as_dirname -- "$as_myself" || 1447$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1448 X"$as_myself" : 'X\(//\)[^/]' \| \ 1449 X"$as_myself" : 'X\(//\)$' \| \ 1450 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1451printf "%s\n" X"$as_myself" | 1452 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1453 s//\1/ 1454 q 1455 } 1456 /^X\(\/\/\)[^/].*/{ 1457 s//\1/ 1458 q 1459 } 1460 /^X\(\/\/\)$/{ 1461 s//\1/ 1462 q 1463 } 1464 /^X\(\/\).*/{ 1465 s//\1/ 1466 q 1467 } 1468 s/.*/./; q'` 1469 srcdir=$ac_confdir 1470 if test ! -r "$srcdir/$ac_unique_file"; then 1471 srcdir=.. 1472 fi 1473else 1474 ac_srcdir_defaulted=no 1475fi 1476if test ! -r "$srcdir/$ac_unique_file"; then 1477 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1478 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1479fi 1480ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1481ac_abs_confdir=`( 1482 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1483 pwd)` 1484# When building in place, set srcdir=. 1485if test "$ac_abs_confdir" = "$ac_pwd"; then 1486 srcdir=. 1487fi 1488# Remove unnecessary trailing slashes from srcdir. 1489# Double slashes in file names in object file debugging info 1490# mess up M-x gdb in Emacs. 1491case $srcdir in 1492*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1493esac 1494for ac_var in $ac_precious_vars; do 1495 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1496 eval ac_env_${ac_var}_value=\$${ac_var} 1497 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1498 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1499done 1500 1501# 1502# Report the --help message. 1503# 1504if test "$ac_init_help" = "long"; then 1505 # Omit some internal or obsolete options to make the list less imposing. 1506 # This message is too long to be a string in the A/UX 3.1 sh. 1507 cat <<_ACEOF 1508\`configure' configures libXfont2 2.0.5 to adapt to many kinds of systems. 1509 1510Usage: $0 [OPTION]... [VAR=VALUE]... 1511 1512To assign environment variables (e.g., CC, CFLAGS...), specify them as 1513VAR=VALUE. See below for descriptions of some of the useful variables. 1514 1515Defaults for the options are specified in brackets. 1516 1517Configuration: 1518 -h, --help display this help and exit 1519 --help=short display options specific to this package 1520 --help=recursive display the short help of all the included packages 1521 -V, --version display version information and exit 1522 -q, --quiet, --silent do not print \`checking ...' messages 1523 --cache-file=FILE cache test results in FILE [disabled] 1524 -C, --config-cache alias for \`--cache-file=config.cache' 1525 -n, --no-create do not create output files 1526 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1527 1528Installation directories: 1529 --prefix=PREFIX install architecture-independent files in PREFIX 1530 [$ac_default_prefix] 1531 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1532 [PREFIX] 1533 1534By default, \`make install' will install all the files in 1535\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1536an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1537for instance \`--prefix=\$HOME'. 1538 1539For better control, use the options below. 1540 1541Fine tuning of the installation directories: 1542 --bindir=DIR user executables [EPREFIX/bin] 1543 --sbindir=DIR system admin executables [EPREFIX/sbin] 1544 --libexecdir=DIR program executables [EPREFIX/libexec] 1545 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1546 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1547 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1548 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] 1549 --libdir=DIR object code libraries [EPREFIX/lib] 1550 --includedir=DIR C header files [PREFIX/include] 1551 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1552 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1553 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1554 --infodir=DIR info documentation [DATAROOTDIR/info] 1555 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1556 --mandir=DIR man documentation [DATAROOTDIR/man] 1557 --docdir=DIR documentation root [DATAROOTDIR/doc/libXfont2] 1558 --htmldir=DIR html documentation [DOCDIR] 1559 --dvidir=DIR dvi documentation [DOCDIR] 1560 --pdfdir=DIR pdf documentation [DOCDIR] 1561 --psdir=DIR ps documentation [DOCDIR] 1562_ACEOF 1563 1564 cat <<\_ACEOF 1565 1566Program names: 1567 --program-prefix=PREFIX prepend PREFIX to installed program names 1568 --program-suffix=SUFFIX append SUFFIX to installed program names 1569 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1570 1571System types: 1572 --build=BUILD configure for building on BUILD [guessed] 1573 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1574_ACEOF 1575fi 1576 1577if test -n "$ac_init_help"; then 1578 case $ac_init_help in 1579 short | recursive ) echo "Configuration of libXfont2 2.0.5:";; 1580 esac 1581 cat <<\_ACEOF 1582 1583Optional Features: 1584 --disable-option-checking ignore unrecognized --enable/--with options 1585 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1586 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1587 --enable-silent-rules less verbose build output (undo: "make V=1") 1588 --disable-silent-rules verbose build output (undo: "make V=0") 1589 --enable-dependency-tracking 1590 do not reject slow dependency extractors 1591 --disable-dependency-tracking 1592 speeds up one-time build 1593 --enable-shared[=PKGS] build shared libraries [default=yes] 1594 --enable-static[=PKGS] build static libraries [default=yes] 1595 --enable-fast-install[=PKGS] 1596 optimize for fast installation [default=yes] 1597 --disable-libtool-lock avoid locking (might break parallel builds) 1598 --disable-selective-werror 1599 Turn off selective compiler errors. (default: 1600 enabled) 1601 --enable-strict-compilation 1602 Enable all warnings from compiler and make them 1603 errors (default: disabled) 1604 --enable-devel-docs Enable building the developer documentation 1605 (default: yes) 1606 --disable-freetype Build freetype backend (default: enabled) 1607 --disable-builtins Support builtin fonts (default: enabled) 1608 --disable-pcfformat Support PCF format bitmap fonts (default: enabled) 1609 --disable-bdfformat Support BDF format bitmap fonts (default: enabled) 1610 --enable-snfformat Support SNF format bitmap fonts (default: disabled) 1611 --disable-fc Support connections to xfs servers (default: 1612 enabled) 1613 --enable-unix-transport Enable UNIX domain socket transport 1614 --enable-tcp-transport Enable TCP socket transport 1615 --enable-ipv6 Enable IPv6 support 1616 --enable-local-transport 1617 Enable os-specific local transport 1618 1619Optional Packages: 1620 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1621 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1622 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1623 both] 1624 --with-aix-soname=aix|svr4|both 1625 shared library versioning (aka "SONAME") variant to 1626 provide on AIX, [default=aix]. 1627 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1628 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the 1629 compiler's sysroot if not specified). 1630 --with-xmlto Use xmlto to regenerate documentation (default: 1631 auto) 1632 --with-fop Use fop to regenerate documentation (default: auto) 1633 --with-freetype-config=PROG 1634 Use FreeType configuration program PROG 1635 --with-bzip2 Use libbz2 to support bzip2 compressed bitmap fonts 1636 (default: no) 1637 1638Some influential environment variables: 1639 CC C compiler command 1640 CFLAGS C compiler flags 1641 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1642 nonstandard directory <lib dir> 1643 LIBS libraries to pass to the linker, e.g. -l<library> 1644 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1645 you have headers in a nonstandard directory <include dir> 1646 LT_SYS_LIBRARY_PATH 1647 User-defined run-time library search path. 1648 PKG_CONFIG path to pkg-config utility 1649 PKG_CONFIG_PATH 1650 directories to add to pkg-config's search path 1651 PKG_CONFIG_LIBDIR 1652 path overriding pkg-config's built-in search path 1653 XMLTO Path to xmlto command 1654 FOP Path to fop command 1655 FREETYPE_CFLAGS 1656 C compiler flags for FREETYPE, overriding pkg-config 1657 FREETYPE_LIBS 1658 linker flags for FREETYPE, overriding pkg-config 1659 XFONT_CFLAGS 1660 C compiler flags for XFONT, overriding pkg-config 1661 XFONT_LIBS linker flags for XFONT, overriding pkg-config 1662 1663Use these variables to override the choices made by `configure' or to help 1664it to find libraries and programs with nonstandard names/locations. 1665 1666Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libXfont/issues>. 1667_ACEOF 1668ac_status=$? 1669fi 1670 1671if test "$ac_init_help" = "recursive"; then 1672 # If there are subdirs, report their specific --help. 1673 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1674 test -d "$ac_dir" || 1675 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1676 continue 1677 ac_builddir=. 1678 1679case "$ac_dir" in 1680.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1681*) 1682 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 1683 # A ".." for each directory in $ac_dir_suffix. 1684 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1685 case $ac_top_builddir_sub in 1686 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1687 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1688 esac ;; 1689esac 1690ac_abs_top_builddir=$ac_pwd 1691ac_abs_builddir=$ac_pwd$ac_dir_suffix 1692# for backward compatibility: 1693ac_top_builddir=$ac_top_build_prefix 1694 1695case $srcdir in 1696 .) # We are building in place. 1697 ac_srcdir=. 1698 ac_top_srcdir=$ac_top_builddir_sub 1699 ac_abs_top_srcdir=$ac_pwd ;; 1700 [\\/]* | ?:[\\/]* ) # Absolute name. 1701 ac_srcdir=$srcdir$ac_dir_suffix; 1702 ac_top_srcdir=$srcdir 1703 ac_abs_top_srcdir=$srcdir ;; 1704 *) # Relative name. 1705 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1706 ac_top_srcdir=$ac_top_build_prefix$srcdir 1707 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1708esac 1709ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1710 1711 cd "$ac_dir" || { ac_status=$?; continue; } 1712 # Check for configure.gnu first; this name is used for a wrapper for 1713 # Metaconfig's "Configure" on case-insensitive file systems. 1714 if test -f "$ac_srcdir/configure.gnu"; then 1715 echo && 1716 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1717 elif test -f "$ac_srcdir/configure"; then 1718 echo && 1719 $SHELL "$ac_srcdir/configure" --help=recursive 1720 else 1721 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1722 fi || ac_status=$? 1723 cd "$ac_pwd" || { ac_status=$?; break; } 1724 done 1725fi 1726 1727test -n "$ac_init_help" && exit $ac_status 1728if $ac_init_version; then 1729 cat <<\_ACEOF 1730libXfont2 configure 2.0.5 1731generated by GNU Autoconf 2.71 1732 1733Copyright (C) 2021 Free Software Foundation, Inc. 1734This configure script is free software; the Free Software Foundation 1735gives unlimited permission to copy, distribute and modify it. 1736_ACEOF 1737 exit 1738fi 1739 1740## ------------------------ ## 1741## Autoconf initialization. ## 1742## ------------------------ ## 1743 1744# ac_fn_c_try_compile LINENO 1745# -------------------------- 1746# Try to compile conftest.$ac_ext, and return whether this succeeded. 1747ac_fn_c_try_compile () 1748{ 1749 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1750 rm -f conftest.$ac_objext conftest.beam 1751 if { { ac_try="$ac_compile" 1752case "(($ac_try" in 1753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1754 *) ac_try_echo=$ac_try;; 1755esac 1756eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1757printf "%s\n" "$ac_try_echo"; } >&5 1758 (eval "$ac_compile") 2>conftest.err 1759 ac_status=$? 1760 if test -s conftest.err; then 1761 grep -v '^ *+' conftest.err >conftest.er1 1762 cat conftest.er1 >&5 1763 mv -f conftest.er1 conftest.err 1764 fi 1765 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1766 test $ac_status = 0; } && { 1767 test -z "$ac_c_werror_flag" || 1768 test ! -s conftest.err 1769 } && test -s conftest.$ac_objext 1770then : 1771 ac_retval=0 1772else $as_nop 1773 printf "%s\n" "$as_me: failed program was:" >&5 1774sed 's/^/| /' conftest.$ac_ext >&5 1775 1776 ac_retval=1 1777fi 1778 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1779 as_fn_set_status $ac_retval 1780 1781} # ac_fn_c_try_compile 1782 1783# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1784# ------------------------------------------------------- 1785# Tests whether HEADER exists and can be compiled using the include files in 1786# INCLUDES, setting the cache variable VAR accordingly. 1787ac_fn_c_check_header_compile () 1788{ 1789 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1790 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1791printf %s "checking for $2... " >&6; } 1792if eval test \${$3+y} 1793then : 1794 printf %s "(cached) " >&6 1795else $as_nop 1796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1797/* end confdefs.h. */ 1798$4 1799#include <$2> 1800_ACEOF 1801if ac_fn_c_try_compile "$LINENO" 1802then : 1803 eval "$3=yes" 1804else $as_nop 1805 eval "$3=no" 1806fi 1807rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1808fi 1809eval ac_res=\$$3 1810 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1811printf "%s\n" "$ac_res" >&6; } 1812 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1813 1814} # ac_fn_c_check_header_compile 1815 1816# ac_fn_c_try_link LINENO 1817# ----------------------- 1818# Try to link conftest.$ac_ext, and return whether this succeeded. 1819ac_fn_c_try_link () 1820{ 1821 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1822 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext 1823 if { { ac_try="$ac_link" 1824case "(($ac_try" in 1825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1826 *) ac_try_echo=$ac_try;; 1827esac 1828eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1829printf "%s\n" "$ac_try_echo"; } >&5 1830 (eval "$ac_link") 2>conftest.err 1831 ac_status=$? 1832 if test -s conftest.err; then 1833 grep -v '^ *+' conftest.err >conftest.er1 1834 cat conftest.er1 >&5 1835 mv -f conftest.er1 conftest.err 1836 fi 1837 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1838 test $ac_status = 0; } && { 1839 test -z "$ac_c_werror_flag" || 1840 test ! -s conftest.err 1841 } && test -s conftest$ac_exeext && { 1842 test "$cross_compiling" = yes || 1843 test -x conftest$ac_exeext 1844 } 1845then : 1846 ac_retval=0 1847else $as_nop 1848 printf "%s\n" "$as_me: failed program was:" >&5 1849sed 's/^/| /' conftest.$ac_ext >&5 1850 1851 ac_retval=1 1852fi 1853 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1854 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1855 # interfere with the next link command; also delete a directory that is 1856 # left behind by Apple's compiler. We do this before executing the actions. 1857 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1858 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1859 as_fn_set_status $ac_retval 1860 1861} # ac_fn_c_try_link 1862 1863# ac_fn_c_check_func LINENO FUNC VAR 1864# ---------------------------------- 1865# Tests whether FUNC exists, setting the cache variable VAR accordingly 1866ac_fn_c_check_func () 1867{ 1868 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1869 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1870printf %s "checking for $2... " >&6; } 1871if eval test \${$3+y} 1872then : 1873 printf %s "(cached) " >&6 1874else $as_nop 1875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1876/* end confdefs.h. */ 1877/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1878 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1879#define $2 innocuous_$2 1880 1881/* System header to define __stub macros and hopefully few prototypes, 1882 which can conflict with char $2 (); below. */ 1883 1884#include <limits.h> 1885#undef $2 1886 1887/* Override any GCC internal prototype to avoid an error. 1888 Use char because int might match the return type of a GCC 1889 builtin and then its argument prototype would still apply. */ 1890#ifdef __cplusplus 1891extern "C" 1892#endif 1893char $2 (); 1894/* The GNU C library defines this for functions which it implements 1895 to always fail with ENOSYS. Some functions are actually named 1896 something starting with __ and the normal name is an alias. */ 1897#if defined __stub_$2 || defined __stub___$2 1898choke me 1899#endif 1900 1901int 1902main (void) 1903{ 1904return $2 (); 1905 ; 1906 return 0; 1907} 1908_ACEOF 1909if ac_fn_c_try_link "$LINENO" 1910then : 1911 eval "$3=yes" 1912else $as_nop 1913 eval "$3=no" 1914fi 1915rm -f core conftest.err conftest.$ac_objext conftest.beam \ 1916 conftest$ac_exeext conftest.$ac_ext 1917fi 1918eval ac_res=\$$3 1919 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1920printf "%s\n" "$ac_res" >&6; } 1921 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1922 1923} # ac_fn_c_check_func 1924 1925# ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR 1926# ------------------------------------------------------------------ 1927# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 1928# accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR. 1929ac_fn_check_decl () 1930{ 1931 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1932 as_decl_name=`echo $2|sed 's/ *(.*//'` 1933 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 1934printf %s "checking whether $as_decl_name is declared... " >&6; } 1935if eval test \${$3+y} 1936then : 1937 printf %s "(cached) " >&6 1938else $as_nop 1939 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 1940 eval ac_save_FLAGS=\$$6 1941 as_fn_append $6 " $5" 1942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1943/* end confdefs.h. */ 1944$4 1945int 1946main (void) 1947{ 1948#ifndef $as_decl_name 1949#ifdef __cplusplus 1950 (void) $as_decl_use; 1951#else 1952 (void) $as_decl_name; 1953#endif 1954#endif 1955 1956 ; 1957 return 0; 1958} 1959_ACEOF 1960if ac_fn_c_try_compile "$LINENO" 1961then : 1962 eval "$3=yes" 1963else $as_nop 1964 eval "$3=no" 1965fi 1966rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1967 eval $6=\$ac_save_FLAGS 1968 1969fi 1970eval ac_res=\$$3 1971 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1972printf "%s\n" "$ac_res" >&6; } 1973 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1974 1975} # ac_fn_check_decl 1976 1977# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES 1978# ---------------------------------------------------- 1979# Tries to find if the field MEMBER exists in type AGGR, after including 1980# INCLUDES, setting cache variable VAR accordingly. 1981ac_fn_c_check_member () 1982{ 1983 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1984 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 1985printf %s "checking for $2.$3... " >&6; } 1986if eval test \${$4+y} 1987then : 1988 printf %s "(cached) " >&6 1989else $as_nop 1990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1991/* end confdefs.h. */ 1992$5 1993int 1994main (void) 1995{ 1996static $2 ac_aggr; 1997if (ac_aggr.$3) 1998return 0; 1999 ; 2000 return 0; 2001} 2002_ACEOF 2003if ac_fn_c_try_compile "$LINENO" 2004then : 2005 eval "$4=yes" 2006else $as_nop 2007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2008/* end confdefs.h. */ 2009$5 2010int 2011main (void) 2012{ 2013static $2 ac_aggr; 2014if (sizeof ac_aggr.$3) 2015return 0; 2016 ; 2017 return 0; 2018} 2019_ACEOF 2020if ac_fn_c_try_compile "$LINENO" 2021then : 2022 eval "$4=yes" 2023else $as_nop 2024 eval "$4=no" 2025fi 2026rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 2027fi 2028rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 2029fi 2030eval ac_res=\$$4 2031 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2032printf "%s\n" "$ac_res" >&6; } 2033 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2034 2035} # ac_fn_c_check_member 2036 2037# ac_fn_c_check_type LINENO TYPE VAR INCLUDES 2038# ------------------------------------------- 2039# Tests whether TYPE exists after having included INCLUDES, setting cache 2040# variable VAR accordingly. 2041ac_fn_c_check_type () 2042{ 2043 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2044 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2045printf %s "checking for $2... " >&6; } 2046if eval test \${$3+y} 2047then : 2048 printf %s "(cached) " >&6 2049else $as_nop 2050 eval "$3=no" 2051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2052/* end confdefs.h. */ 2053$4 2054int 2055main (void) 2056{ 2057if (sizeof ($2)) 2058 return 0; 2059 ; 2060 return 0; 2061} 2062_ACEOF 2063if ac_fn_c_try_compile "$LINENO" 2064then : 2065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2066/* end confdefs.h. */ 2067$4 2068int 2069main (void) 2070{ 2071if (sizeof (($2))) 2072 return 0; 2073 ; 2074 return 0; 2075} 2076_ACEOF 2077if ac_fn_c_try_compile "$LINENO" 2078then : 2079 2080else $as_nop 2081 eval "$3=yes" 2082fi 2083rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 2084fi 2085rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 2086fi 2087eval ac_res=\$$3 2088 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2089printf "%s\n" "$ac_res" >&6; } 2090 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2091 2092} # ac_fn_c_check_type 2093ac_configure_args_raw= 2094for ac_arg 2095do 2096 case $ac_arg in 2097 *\'*) 2098 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2099 esac 2100 as_fn_append ac_configure_args_raw " '$ac_arg'" 2101done 2102 2103case $ac_configure_args_raw in 2104 *$as_nl*) 2105 ac_safe_unquote= ;; 2106 *) 2107 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab. 2108 ac_unsafe_a="$ac_unsafe_z#~" 2109 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g" 2110 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;; 2111esac 2112 2113cat >config.log <<_ACEOF 2114This file contains any messages produced by compilers while 2115running configure, to aid debugging if configure makes a mistake. 2116 2117It was created by libXfont2 $as_me 2.0.5, which was 2118generated by GNU Autoconf 2.71. Invocation command line was 2119 2120 $ $0$ac_configure_args_raw 2121 2122_ACEOF 2123exec 5>>config.log 2124{ 2125cat <<_ASUNAME 2126## --------- ## 2127## Platform. ## 2128## --------- ## 2129 2130hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2131uname -m = `(uname -m) 2>/dev/null || echo unknown` 2132uname -r = `(uname -r) 2>/dev/null || echo unknown` 2133uname -s = `(uname -s) 2>/dev/null || echo unknown` 2134uname -v = `(uname -v) 2>/dev/null || echo unknown` 2135 2136/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2137/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2138 2139/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2140/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2141/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2142/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2143/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2144/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2145/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2146 2147_ASUNAME 2148 2149as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2150for as_dir in $PATH 2151do 2152 IFS=$as_save_IFS 2153 case $as_dir in #((( 2154 '') as_dir=./ ;; 2155 */) ;; 2156 *) as_dir=$as_dir/ ;; 2157 esac 2158 printf "%s\n" "PATH: $as_dir" 2159 done 2160IFS=$as_save_IFS 2161 2162} >&5 2163 2164cat >&5 <<_ACEOF 2165 2166 2167## ----------- ## 2168## Core tests. ## 2169## ----------- ## 2170 2171_ACEOF 2172 2173 2174# Keep a trace of the command line. 2175# Strip out --no-create and --no-recursion so they do not pile up. 2176# Strip out --silent because we don't want to record it for future runs. 2177# Also quote any args containing shell meta-characters. 2178# Make two passes to allow for proper duplicate-argument suppression. 2179ac_configure_args= 2180ac_configure_args0= 2181ac_configure_args1= 2182ac_must_keep_next=false 2183for ac_pass in 1 2 2184do 2185 for ac_arg 2186 do 2187 case $ac_arg in 2188 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2189 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2190 | -silent | --silent | --silen | --sile | --sil) 2191 continue ;; 2192 *\'*) 2193 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2194 esac 2195 case $ac_pass in 2196 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2197 2) 2198 as_fn_append ac_configure_args1 " '$ac_arg'" 2199 if test $ac_must_keep_next = true; then 2200 ac_must_keep_next=false # Got value, back to normal. 2201 else 2202 case $ac_arg in 2203 *=* | --config-cache | -C | -disable-* | --disable-* \ 2204 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2205 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2206 | -with-* | --with-* | -without-* | --without-* | --x) 2207 case "$ac_configure_args0 " in 2208 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2209 esac 2210 ;; 2211 -* ) ac_must_keep_next=true ;; 2212 esac 2213 fi 2214 as_fn_append ac_configure_args " '$ac_arg'" 2215 ;; 2216 esac 2217 done 2218done 2219{ ac_configure_args0=; unset ac_configure_args0;} 2220{ ac_configure_args1=; unset ac_configure_args1;} 2221 2222# When interrupted or exit'd, cleanup temporary files, and complete 2223# config.log. We remove comments because anyway the quotes in there 2224# would cause problems or look ugly. 2225# WARNING: Use '\'' to represent an apostrophe within the trap. 2226# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2227trap 'exit_status=$? 2228 # Sanitize IFS. 2229 IFS=" "" $as_nl" 2230 # Save into config.log some information that might help in debugging. 2231 { 2232 echo 2233 2234 printf "%s\n" "## ---------------- ## 2235## Cache variables. ## 2236## ---------------- ##" 2237 echo 2238 # The following way of writing the cache mishandles newlines in values, 2239( 2240 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2241 eval ac_val=\$$ac_var 2242 case $ac_val in #( 2243 *${as_nl}*) 2244 case $ac_var in #( 2245 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2246printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2247 esac 2248 case $ac_var in #( 2249 _ | IFS | as_nl) ;; #( 2250 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2251 *) { eval $ac_var=; unset $ac_var;} ;; 2252 esac ;; 2253 esac 2254 done 2255 (set) 2>&1 | 2256 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2257 *${as_nl}ac_space=\ *) 2258 sed -n \ 2259 "s/'\''/'\''\\\\'\'''\''/g; 2260 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2261 ;; #( 2262 *) 2263 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2264 ;; 2265 esac | 2266 sort 2267) 2268 echo 2269 2270 printf "%s\n" "## ----------------- ## 2271## Output variables. ## 2272## ----------------- ##" 2273 echo 2274 for ac_var in $ac_subst_vars 2275 do 2276 eval ac_val=\$$ac_var 2277 case $ac_val in 2278 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2279 esac 2280 printf "%s\n" "$ac_var='\''$ac_val'\''" 2281 done | sort 2282 echo 2283 2284 if test -n "$ac_subst_files"; then 2285 printf "%s\n" "## ------------------- ## 2286## File substitutions. ## 2287## ------------------- ##" 2288 echo 2289 for ac_var in $ac_subst_files 2290 do 2291 eval ac_val=\$$ac_var 2292 case $ac_val in 2293 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2294 esac 2295 printf "%s\n" "$ac_var='\''$ac_val'\''" 2296 done | sort 2297 echo 2298 fi 2299 2300 if test -s confdefs.h; then 2301 printf "%s\n" "## ----------- ## 2302## confdefs.h. ## 2303## ----------- ##" 2304 echo 2305 cat confdefs.h 2306 echo 2307 fi 2308 test "$ac_signal" != 0 && 2309 printf "%s\n" "$as_me: caught signal $ac_signal" 2310 printf "%s\n" "$as_me: exit $exit_status" 2311 } >&5 2312 rm -f core *.core core.conftest.* && 2313 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2314 exit $exit_status 2315' 0 2316for ac_signal in 1 2 13 15; do 2317 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2318done 2319ac_signal=0 2320 2321# confdefs.h avoids OS command line length limits that DEFS can exceed. 2322rm -f -r conftest* confdefs.h 2323 2324printf "%s\n" "/* confdefs.h */" > confdefs.h 2325 2326# Predefined preprocessor variables. 2327 2328printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h 2329 2330printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h 2331 2332printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h 2333 2334printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h 2335 2336printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h 2337 2338printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h 2339 2340 2341# Let the site file select an alternate cache file if it wants to. 2342# Prefer an explicitly selected file to automatically selected ones. 2343if test -n "$CONFIG_SITE"; then 2344 ac_site_files="$CONFIG_SITE" 2345elif test "x$prefix" != xNONE; then 2346 ac_site_files="$prefix/share/config.site $prefix/etc/config.site" 2347else 2348 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 2349fi 2350 2351for ac_site_file in $ac_site_files 2352do 2353 case $ac_site_file in #( 2354 */*) : 2355 ;; #( 2356 *) : 2357 ac_site_file=./$ac_site_file ;; 2358esac 2359 if test -f "$ac_site_file" && test -r "$ac_site_file"; then 2360 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2361printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;} 2362 sed 's/^/| /' "$ac_site_file" >&5 2363 . "$ac_site_file" \ 2364 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2365printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 2366as_fn_error $? "failed to load site script $ac_site_file 2367See \`config.log' for more details" "$LINENO" 5; } 2368 fi 2369done 2370 2371if test -r "$cache_file"; then 2372 # Some versions of bash will fail to source /dev/null (special files 2373 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2374 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2375 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2376printf "%s\n" "$as_me: loading cache $cache_file" >&6;} 2377 case $cache_file in 2378 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2379 *) . "./$cache_file";; 2380 esac 2381 fi 2382else 2383 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2384printf "%s\n" "$as_me: creating cache $cache_file" >&6;} 2385 >$cache_file 2386fi 2387 2388as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H" 2389# Test code for whether the C compiler supports C89 (global declarations) 2390ac_c_conftest_c89_globals=' 2391/* Does the compiler advertise C89 conformance? 2392 Do not test the value of __STDC__, because some compilers set it to 0 2393 while being otherwise adequately conformant. */ 2394#if !defined __STDC__ 2395# error "Compiler does not advertise C89 conformance" 2396#endif 2397 2398#include <stddef.h> 2399#include <stdarg.h> 2400struct stat; 2401/* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */ 2402struct buf { int x; }; 2403struct buf * (*rcsopen) (struct buf *, struct stat *, int); 2404static char *e (p, i) 2405 char **p; 2406 int i; 2407{ 2408 return p[i]; 2409} 2410static char *f (char * (*g) (char **, int), char **p, ...) 2411{ 2412 char *s; 2413 va_list v; 2414 va_start (v,p); 2415 s = g (p, va_arg (v,int)); 2416 va_end (v); 2417 return s; 2418} 2419 2420/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 2421 function prototypes and stuff, but not \xHH hex character constants. 2422 These do not provoke an error unfortunately, instead are silently treated 2423 as an "x". The following induces an error, until -std is added to get 2424 proper ANSI mode. Curiously \x00 != x always comes out true, for an 2425 array size at least. It is necessary to write \x00 == 0 to get something 2426 that is true only with -std. */ 2427int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1]; 2428 2429/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 2430 inside strings and character constants. */ 2431#define FOO(x) '\''x'\'' 2432int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1]; 2433 2434int test (int i, double x); 2435struct s1 {int (*f) (int a);}; 2436struct s2 {int (*f) (double a);}; 2437int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int), 2438 int, int);' 2439 2440# Test code for whether the C compiler supports C89 (body of main). 2441ac_c_conftest_c89_main=' 2442ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]); 2443' 2444 2445# Test code for whether the C compiler supports C99 (global declarations) 2446ac_c_conftest_c99_globals=' 2447// Does the compiler advertise C99 conformance? 2448#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L 2449# error "Compiler does not advertise C99 conformance" 2450#endif 2451 2452#include <stdbool.h> 2453extern int puts (const char *); 2454extern int printf (const char *, ...); 2455extern int dprintf (int, const char *, ...); 2456extern void *malloc (size_t); 2457 2458// Check varargs macros. These examples are taken from C99 6.10.3.5. 2459// dprintf is used instead of fprintf to avoid needing to declare 2460// FILE and stderr. 2461#define debug(...) dprintf (2, __VA_ARGS__) 2462#define showlist(...) puts (#__VA_ARGS__) 2463#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 2464static void 2465test_varargs_macros (void) 2466{ 2467 int x = 1234; 2468 int y = 5678; 2469 debug ("Flag"); 2470 debug ("X = %d\n", x); 2471 showlist (The first, second, and third items.); 2472 report (x>y, "x is %d but y is %d", x, y); 2473} 2474 2475// Check long long types. 2476#define BIG64 18446744073709551615ull 2477#define BIG32 4294967295ul 2478#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 2479#if !BIG_OK 2480 #error "your preprocessor is broken" 2481#endif 2482#if BIG_OK 2483#else 2484 #error "your preprocessor is broken" 2485#endif 2486static long long int bignum = -9223372036854775807LL; 2487static unsigned long long int ubignum = BIG64; 2488 2489struct incomplete_array 2490{ 2491 int datasize; 2492 double data[]; 2493}; 2494 2495struct named_init { 2496 int number; 2497 const wchar_t *name; 2498 double average; 2499}; 2500 2501typedef const char *ccp; 2502 2503static inline int 2504test_restrict (ccp restrict text) 2505{ 2506 // See if C++-style comments work. 2507 // Iterate through items via the restricted pointer. 2508 // Also check for declarations in for loops. 2509 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i) 2510 continue; 2511 return 0; 2512} 2513 2514// Check varargs and va_copy. 2515static bool 2516test_varargs (const char *format, ...) 2517{ 2518 va_list args; 2519 va_start (args, format); 2520 va_list args_copy; 2521 va_copy (args_copy, args); 2522 2523 const char *str = ""; 2524 int number = 0; 2525 float fnumber = 0; 2526 2527 while (*format) 2528 { 2529 switch (*format++) 2530 { 2531 case '\''s'\'': // string 2532 str = va_arg (args_copy, const char *); 2533 break; 2534 case '\''d'\'': // int 2535 number = va_arg (args_copy, int); 2536 break; 2537 case '\''f'\'': // float 2538 fnumber = va_arg (args_copy, double); 2539 break; 2540 default: 2541 break; 2542 } 2543 } 2544 va_end (args_copy); 2545 va_end (args); 2546 2547 return *str && number && fnumber; 2548} 2549' 2550 2551# Test code for whether the C compiler supports C99 (body of main). 2552ac_c_conftest_c99_main=' 2553 // Check bool. 2554 _Bool success = false; 2555 success |= (argc != 0); 2556 2557 // Check restrict. 2558 if (test_restrict ("String literal") == 0) 2559 success = true; 2560 char *restrict newvar = "Another string"; 2561 2562 // Check varargs. 2563 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234); 2564 test_varargs_macros (); 2565 2566 // Check flexible array members. 2567 struct incomplete_array *ia = 2568 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 2569 ia->datasize = 10; 2570 for (int i = 0; i < ia->datasize; ++i) 2571 ia->data[i] = i * 1.234; 2572 2573 // Check named initializers. 2574 struct named_init ni = { 2575 .number = 34, 2576 .name = L"Test wide string", 2577 .average = 543.34343, 2578 }; 2579 2580 ni.number = 58; 2581 2582 int dynamic_array[ni.number]; 2583 dynamic_array[0] = argv[0][0]; 2584 dynamic_array[ni.number - 1] = 543; 2585 2586 // work around unused variable warnings 2587 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\'' 2588 || dynamic_array[ni.number - 1] != 543); 2589' 2590 2591# Test code for whether the C compiler supports C11 (global declarations) 2592ac_c_conftest_c11_globals=' 2593// Does the compiler advertise C11 conformance? 2594#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L 2595# error "Compiler does not advertise C11 conformance" 2596#endif 2597 2598// Check _Alignas. 2599char _Alignas (double) aligned_as_double; 2600char _Alignas (0) no_special_alignment; 2601extern char aligned_as_int; 2602char _Alignas (0) _Alignas (int) aligned_as_int; 2603 2604// Check _Alignof. 2605enum 2606{ 2607 int_alignment = _Alignof (int), 2608 int_array_alignment = _Alignof (int[100]), 2609 char_alignment = _Alignof (char) 2610}; 2611_Static_assert (0 < -_Alignof (int), "_Alignof is signed"); 2612 2613// Check _Noreturn. 2614int _Noreturn does_not_return (void) { for (;;) continue; } 2615 2616// Check _Static_assert. 2617struct test_static_assert 2618{ 2619 int x; 2620 _Static_assert (sizeof (int) <= sizeof (long int), 2621 "_Static_assert does not work in struct"); 2622 long int y; 2623}; 2624 2625// Check UTF-8 literals. 2626#define u8 syntax error! 2627char const utf8_literal[] = u8"happens to be ASCII" "another string"; 2628 2629// Check duplicate typedefs. 2630typedef long *long_ptr; 2631typedef long int *long_ptr; 2632typedef long_ptr long_ptr; 2633 2634// Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1. 2635struct anonymous 2636{ 2637 union { 2638 struct { int i; int j; }; 2639 struct { int k; long int l; } w; 2640 }; 2641 int m; 2642} v1; 2643' 2644 2645# Test code for whether the C compiler supports C11 (body of main). 2646ac_c_conftest_c11_main=' 2647 _Static_assert ((offsetof (struct anonymous, i) 2648 == offsetof (struct anonymous, w.k)), 2649 "Anonymous union alignment botch"); 2650 v1.i = 2; 2651 v1.w.k = 5; 2652 ok |= v1.i != 5; 2653' 2654 2655# Test code for whether the C compiler supports C11 (complete). 2656ac_c_conftest_c11_program="${ac_c_conftest_c89_globals} 2657${ac_c_conftest_c99_globals} 2658${ac_c_conftest_c11_globals} 2659 2660int 2661main (int argc, char **argv) 2662{ 2663 int ok = 0; 2664 ${ac_c_conftest_c89_main} 2665 ${ac_c_conftest_c99_main} 2666 ${ac_c_conftest_c11_main} 2667 return ok; 2668} 2669" 2670 2671# Test code for whether the C compiler supports C99 (complete). 2672ac_c_conftest_c99_program="${ac_c_conftest_c89_globals} 2673${ac_c_conftest_c99_globals} 2674 2675int 2676main (int argc, char **argv) 2677{ 2678 int ok = 0; 2679 ${ac_c_conftest_c89_main} 2680 ${ac_c_conftest_c99_main} 2681 return ok; 2682} 2683" 2684 2685# Test code for whether the C compiler supports C89 (complete). 2686ac_c_conftest_c89_program="${ac_c_conftest_c89_globals} 2687 2688int 2689main (int argc, char **argv) 2690{ 2691 int ok = 0; 2692 ${ac_c_conftest_c89_main} 2693 return ok; 2694} 2695" 2696 2697as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H" 2698as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H" 2699as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H" 2700as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H" 2701as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H" 2702as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H" 2703as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H" 2704as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H" 2705as_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H" 2706as_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H" 2707 2708# Auxiliary files required by this configure script. 2709ac_aux_files="config.guess config.sub ltmain.sh compile missing install-sh" 2710 2711# Locations in which to look for auxiliary files. 2712ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.." 2713 2714# Search for a directory containing all of the required auxiliary files, 2715# $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates. 2716# If we don't find one directory that contains all the files we need, 2717# we report the set of missing files from the *first* directory in 2718# $ac_aux_dir_candidates and give up. 2719ac_missing_aux_files="" 2720ac_first_candidate=: 2721printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5 2722as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2723as_found=false 2724for as_dir in $ac_aux_dir_candidates 2725do 2726 IFS=$as_save_IFS 2727 case $as_dir in #((( 2728 '') as_dir=./ ;; 2729 */) ;; 2730 *) as_dir=$as_dir/ ;; 2731 esac 2732 as_found=: 2733 2734 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5 2735 ac_aux_dir_found=yes 2736 ac_install_sh= 2737 for ac_aux in $ac_aux_files 2738 do 2739 # As a special case, if "install-sh" is required, that requirement 2740 # can be satisfied by any of "install-sh", "install.sh", or "shtool", 2741 # and $ac_install_sh is set appropriately for whichever one is found. 2742 if test x"$ac_aux" = x"install-sh" 2743 then 2744 if test -f "${as_dir}install-sh"; then 2745 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5 2746 ac_install_sh="${as_dir}install-sh -c" 2747 elif test -f "${as_dir}install.sh"; then 2748 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5 2749 ac_install_sh="${as_dir}install.sh -c" 2750 elif test -f "${as_dir}shtool"; then 2751 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5 2752 ac_install_sh="${as_dir}shtool install -c" 2753 else 2754 ac_aux_dir_found=no 2755 if $ac_first_candidate; then 2756 ac_missing_aux_files="${ac_missing_aux_files} install-sh" 2757 else 2758 break 2759 fi 2760 fi 2761 else 2762 if test -f "${as_dir}${ac_aux}"; then 2763 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5 2764 else 2765 ac_aux_dir_found=no 2766 if $ac_first_candidate; then 2767 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}" 2768 else 2769 break 2770 fi 2771 fi 2772 fi 2773 done 2774 if test "$ac_aux_dir_found" = yes; then 2775 ac_aux_dir="$as_dir" 2776 break 2777 fi 2778 ac_first_candidate=false 2779 2780 as_found=false 2781done 2782IFS=$as_save_IFS 2783if $as_found 2784then : 2785 2786else $as_nop 2787 as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 2788fi 2789 2790 2791# These three variables are undocumented and unsupported, 2792# and are intended to be withdrawn in a future Autoconf release. 2793# They can cause serious problems if a builder's source tree is in a directory 2794# whose full name contains unusual characters. 2795if test -f "${ac_aux_dir}config.guess"; then 2796 ac_config_guess="$SHELL ${ac_aux_dir}config.guess" 2797fi 2798if test -f "${ac_aux_dir}config.sub"; then 2799 ac_config_sub="$SHELL ${ac_aux_dir}config.sub" 2800fi 2801if test -f "$ac_aux_dir/configure"; then 2802 ac_configure="$SHELL ${ac_aux_dir}configure" 2803fi 2804 2805# Check that the precious variables saved in the cache have kept the same 2806# value. 2807ac_cache_corrupted=false 2808for ac_var in $ac_precious_vars; do 2809 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2810 eval ac_new_set=\$ac_env_${ac_var}_set 2811 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2812 eval ac_new_val=\$ac_env_${ac_var}_value 2813 case $ac_old_set,$ac_new_set in 2814 set,) 2815 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2816printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2817 ac_cache_corrupted=: ;; 2818 ,set) 2819 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2820printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2821 ac_cache_corrupted=: ;; 2822 ,);; 2823 *) 2824 if test "x$ac_old_val" != "x$ac_new_val"; then 2825 # differences in whitespace do not lead to failure. 2826 ac_old_val_w=`echo x $ac_old_val` 2827 ac_new_val_w=`echo x $ac_new_val` 2828 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2829 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2830printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2831 ac_cache_corrupted=: 2832 else 2833 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2834printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2835 eval $ac_var=\$ac_old_val 2836 fi 2837 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2838printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;} 2839 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2840printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;} 2841 fi;; 2842 esac 2843 # Pass precious variables to config.status. 2844 if test "$ac_new_set" = set; then 2845 case $ac_new_val in 2846 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2847 *) ac_arg=$ac_var=$ac_new_val ;; 2848 esac 2849 case " $ac_configure_args " in 2850 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2851 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2852 esac 2853 fi 2854done 2855if $ac_cache_corrupted; then 2856 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2857printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 2858 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2859printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;} 2860 as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file' 2861 and start over" "$LINENO" 5 2862fi 2863## -------------------- ## 2864## Main body of script. ## 2865## -------------------- ## 2866 2867ac_ext=c 2868ac_cpp='$CPP $CPPFLAGS' 2869ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2870ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2871ac_compiler_gnu=$ac_cv_c_compiler_gnu 2872 2873 2874 2875ac_config_headers="$ac_config_headers config.h" 2876 2877 2878# Initialize Automake 2879am__api_version='1.16' 2880 2881 2882 2883 # Find a good install program. We prefer a C program (faster), 2884# so one script is as good as another. But avoid the broken or 2885# incompatible versions: 2886# SysV /etc/install, /usr/sbin/install 2887# SunOS /usr/etc/install 2888# IRIX /sbin/install 2889# AIX /bin/install 2890# AmigaOS /C/install, which installs bootblocks on floppy discs 2891# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2892# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2893# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2894# OS/2's system install, which has a completely different semantic 2895# ./install, which can be erroneously created by make from ./install.sh. 2896# Reject install programs that cannot install multiple files. 2897{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2898printf %s "checking for a BSD-compatible install... " >&6; } 2899if test -z "$INSTALL"; then 2900if test ${ac_cv_path_install+y} 2901then : 2902 printf %s "(cached) " >&6 2903else $as_nop 2904 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2905for as_dir in $PATH 2906do 2907 IFS=$as_save_IFS 2908 case $as_dir in #((( 2909 '') as_dir=./ ;; 2910 */) ;; 2911 *) as_dir=$as_dir/ ;; 2912 esac 2913 # Account for fact that we put trailing slashes in our PATH walk. 2914case $as_dir in #(( 2915 ./ | /[cC]/* | \ 2916 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2917 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2918 /usr/ucb/* ) ;; 2919 *) 2920 # OSF1 and SCO ODT 3.0 have their own names for install. 2921 # Don't use installbsd from OSF since it installs stuff as root 2922 # by default. 2923 for ac_prog in ginstall scoinst install; do 2924 for ac_exec_ext in '' $ac_executable_extensions; do 2925 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then 2926 if test $ac_prog = install && 2927 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2928 # AIX install. It has an incompatible calling convention. 2929 : 2930 elif test $ac_prog = install && 2931 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2932 # program-specific install script used by HP pwplus--don't use. 2933 : 2934 else 2935 rm -rf conftest.one conftest.two conftest.dir 2936 echo one > conftest.one 2937 echo two > conftest.two 2938 mkdir conftest.dir 2939 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" && 2940 test -s conftest.one && test -s conftest.two && 2941 test -s conftest.dir/conftest.one && 2942 test -s conftest.dir/conftest.two 2943 then 2944 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c" 2945 break 3 2946 fi 2947 fi 2948 fi 2949 done 2950 done 2951 ;; 2952esac 2953 2954 done 2955IFS=$as_save_IFS 2956 2957rm -rf conftest.one conftest.two conftest.dir 2958 2959fi 2960 if test ${ac_cv_path_install+y}; then 2961 INSTALL=$ac_cv_path_install 2962 else 2963 # As a last resort, use the slow shell script. Don't cache a 2964 # value for INSTALL within a source directory, because that will 2965 # break other packages using the cache if that directory is 2966 # removed, or if the value is a relative name. 2967 INSTALL=$ac_install_sh 2968 fi 2969fi 2970{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2971printf "%s\n" "$INSTALL" >&6; } 2972 2973# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2974# It thinks the first close brace ends the variable substitution. 2975test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2976 2977test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2978 2979test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2980 2981{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2982printf %s "checking whether build environment is sane... " >&6; } 2983# Reject unsafe characters in $srcdir or the absolute working directory 2984# name. Accept space and tab only in the latter. 2985am_lf=' 2986' 2987case `pwd` in 2988 *[\\\"\#\$\&\'\`$am_lf]*) 2989 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2990esac 2991case $srcdir in 2992 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2993 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 2994esac 2995 2996# Do 'set' in a subshell so we don't clobber the current shell's 2997# arguments. Must try -L first in case configure is actually a 2998# symlink; some systems play weird games with the mod time of symlinks 2999# (eg FreeBSD returns the mod time of the symlink's containing 3000# directory). 3001if ( 3002 am_has_slept=no 3003 for am_try in 1 2; do 3004 echo "timestamp, slept: $am_has_slept" > conftest.file 3005 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 3006 if test "$*" = "X"; then 3007 # -L didn't work. 3008 set X `ls -t "$srcdir/configure" conftest.file` 3009 fi 3010 if test "$*" != "X $srcdir/configure conftest.file" \ 3011 && test "$*" != "X conftest.file $srcdir/configure"; then 3012 3013 # If neither matched, then we have a broken ls. This can happen 3014 # if, for instance, CONFIG_SHELL is bash and it inherits a 3015 # broken ls alias from the environment. This has actually 3016 # happened. Such a system could not be considered "sane". 3017 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 3018 alias in your environment" "$LINENO" 5 3019 fi 3020 if test "$2" = conftest.file || test $am_try -eq 2; then 3021 break 3022 fi 3023 # Just in case. 3024 sleep 1 3025 am_has_slept=yes 3026 done 3027 test "$2" = conftest.file 3028 ) 3029then 3030 # Ok. 3031 : 3032else 3033 as_fn_error $? "newly created file is older than distributed files! 3034Check your system clock" "$LINENO" 5 3035fi 3036{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3037printf "%s\n" "yes" >&6; } 3038# If we didn't sleep, we still need to ensure time stamps of config.status and 3039# generated files are strictly newer. 3040am_sleep_pid= 3041if grep 'slept: no' conftest.file >/dev/null 2>&1; then 3042 ( sleep 1 ) & 3043 am_sleep_pid=$! 3044fi 3045 3046rm -f conftest.file 3047 3048test "$program_prefix" != NONE && 3049 program_transform_name="s&^&$program_prefix&;$program_transform_name" 3050# Use a double $ so make ignores it. 3051test "$program_suffix" != NONE && 3052 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 3053# Double any \ or $. 3054# By default was `s,x,x', remove it if useless. 3055ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 3056program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"` 3057 3058 3059# Expand $ac_aux_dir to an absolute path. 3060am_aux_dir=`cd "$ac_aux_dir" && pwd` 3061 3062 3063 if test x"${MISSING+set}" != xset; then 3064 MISSING="\${SHELL} '$am_aux_dir/missing'" 3065fi 3066# Use eval to expand $SHELL 3067if eval "$MISSING --is-lightweight"; then 3068 am_missing_run="$MISSING " 3069else 3070 am_missing_run= 3071 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 3072printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 3073fi 3074 3075if test x"${install_sh+set}" != xset; then 3076 case $am_aux_dir in 3077 *\ * | *\ *) 3078 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 3079 *) 3080 install_sh="\${SHELL} $am_aux_dir/install-sh" 3081 esac 3082fi 3083 3084# Installed binaries are usually stripped using 'strip' when the user 3085# run "make install-strip". However 'strip' might not be the right 3086# tool to use in cross-compilation environments, therefore Automake 3087# will honor the 'STRIP' environment variable to overrule this program. 3088if test "$cross_compiling" != no; then 3089 if test -n "$ac_tool_prefix"; then 3090 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 3091set dummy ${ac_tool_prefix}strip; ac_word=$2 3092{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3093printf %s "checking for $ac_word... " >&6; } 3094if test ${ac_cv_prog_STRIP+y} 3095then : 3096 printf %s "(cached) " >&6 3097else $as_nop 3098 if test -n "$STRIP"; then 3099 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 3100else 3101as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3102for as_dir in $PATH 3103do 3104 IFS=$as_save_IFS 3105 case $as_dir in #((( 3106 '') as_dir=./ ;; 3107 */) ;; 3108 *) as_dir=$as_dir/ ;; 3109 esac 3110 for ac_exec_ext in '' $ac_executable_extensions; do 3111 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3112 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 3113 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3114 break 2 3115 fi 3116done 3117 done 3118IFS=$as_save_IFS 3119 3120fi 3121fi 3122STRIP=$ac_cv_prog_STRIP 3123if test -n "$STRIP"; then 3124 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 3125printf "%s\n" "$STRIP" >&6; } 3126else 3127 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3128printf "%s\n" "no" >&6; } 3129fi 3130 3131 3132fi 3133if test -z "$ac_cv_prog_STRIP"; then 3134 ac_ct_STRIP=$STRIP 3135 # Extract the first word of "strip", so it can be a program name with args. 3136set dummy strip; ac_word=$2 3137{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3138printf %s "checking for $ac_word... " >&6; } 3139if test ${ac_cv_prog_ac_ct_STRIP+y} 3140then : 3141 printf %s "(cached) " >&6 3142else $as_nop 3143 if test -n "$ac_ct_STRIP"; then 3144 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 3145else 3146as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3147for as_dir in $PATH 3148do 3149 IFS=$as_save_IFS 3150 case $as_dir in #((( 3151 '') as_dir=./ ;; 3152 */) ;; 3153 *) as_dir=$as_dir/ ;; 3154 esac 3155 for ac_exec_ext in '' $ac_executable_extensions; do 3156 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3157 ac_cv_prog_ac_ct_STRIP="strip" 3158 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3159 break 2 3160 fi 3161done 3162 done 3163IFS=$as_save_IFS 3164 3165fi 3166fi 3167ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 3168if test -n "$ac_ct_STRIP"; then 3169 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 3170printf "%s\n" "$ac_ct_STRIP" >&6; } 3171else 3172 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3173printf "%s\n" "no" >&6; } 3174fi 3175 3176 if test "x$ac_ct_STRIP" = x; then 3177 STRIP=":" 3178 else 3179 case $cross_compiling:$ac_tool_warned in 3180yes:) 3181{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3182printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3183ac_tool_warned=yes ;; 3184esac 3185 STRIP=$ac_ct_STRIP 3186 fi 3187else 3188 STRIP="$ac_cv_prog_STRIP" 3189fi 3190 3191fi 3192INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 3193 3194 3195 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5 3196printf %s "checking for a race-free mkdir -p... " >&6; } 3197if test -z "$MKDIR_P"; then 3198 if test ${ac_cv_path_mkdir+y} 3199then : 3200 printf %s "(cached) " >&6 3201else $as_nop 3202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3203for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 3204do 3205 IFS=$as_save_IFS 3206 case $as_dir in #((( 3207 '') as_dir=./ ;; 3208 */) ;; 3209 *) as_dir=$as_dir/ ;; 3210 esac 3211 for ac_prog in mkdir gmkdir; do 3212 for ac_exec_ext in '' $ac_executable_extensions; do 3213 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue 3214 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #( 3215 'mkdir ('*'coreutils) '* | \ 3216 'BusyBox '* | \ 3217 'mkdir (fileutils) '4.1*) 3218 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext 3219 break 3;; 3220 esac 3221 done 3222 done 3223 done 3224IFS=$as_save_IFS 3225 3226fi 3227 3228 test -d ./--version && rmdir ./--version 3229 if test ${ac_cv_path_mkdir+y}; then 3230 MKDIR_P="$ac_cv_path_mkdir -p" 3231 else 3232 # As a last resort, use the slow shell script. Don't cache a 3233 # value for MKDIR_P within a source directory, because that will 3234 # break other packages using the cache if that directory is 3235 # removed, or if the value is a relative name. 3236 MKDIR_P="$ac_install_sh -d" 3237 fi 3238fi 3239{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 3240printf "%s\n" "$MKDIR_P" >&6; } 3241 3242for ac_prog in gawk mawk nawk awk 3243do 3244 # Extract the first word of "$ac_prog", so it can be a program name with args. 3245set dummy $ac_prog; ac_word=$2 3246{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3247printf %s "checking for $ac_word... " >&6; } 3248if test ${ac_cv_prog_AWK+y} 3249then : 3250 printf %s "(cached) " >&6 3251else $as_nop 3252 if test -n "$AWK"; then 3253 ac_cv_prog_AWK="$AWK" # Let the user override the test. 3254else 3255as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3256for as_dir in $PATH 3257do 3258 IFS=$as_save_IFS 3259 case $as_dir in #((( 3260 '') as_dir=./ ;; 3261 */) ;; 3262 *) as_dir=$as_dir/ ;; 3263 esac 3264 for ac_exec_ext in '' $ac_executable_extensions; do 3265 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3266 ac_cv_prog_AWK="$ac_prog" 3267 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3268 break 2 3269 fi 3270done 3271 done 3272IFS=$as_save_IFS 3273 3274fi 3275fi 3276AWK=$ac_cv_prog_AWK 3277if test -n "$AWK"; then 3278 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 3279printf "%s\n" "$AWK" >&6; } 3280else 3281 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3282printf "%s\n" "no" >&6; } 3283fi 3284 3285 3286 test -n "$AWK" && break 3287done 3288 3289{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 3290printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 3291set x ${MAKE-make} 3292ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 3293if eval test \${ac_cv_prog_make_${ac_make}_set+y} 3294then : 3295 printf %s "(cached) " >&6 3296else $as_nop 3297 cat >conftest.make <<\_ACEOF 3298SHELL = /bin/sh 3299all: 3300 @echo '@@@%%%=$(MAKE)=@@@%%%' 3301_ACEOF 3302# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 3303case `${MAKE-make} -f conftest.make 2>/dev/null` in 3304 *@@@%%%=?*=@@@%%%*) 3305 eval ac_cv_prog_make_${ac_make}_set=yes;; 3306 *) 3307 eval ac_cv_prog_make_${ac_make}_set=no;; 3308esac 3309rm -f conftest.make 3310fi 3311if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 3312 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3313printf "%s\n" "yes" >&6; } 3314 SET_MAKE= 3315else 3316 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3317printf "%s\n" "no" >&6; } 3318 SET_MAKE="MAKE=${MAKE-make}" 3319fi 3320 3321rm -rf .tst 2>/dev/null 3322mkdir .tst 2>/dev/null 3323if test -d .tst; then 3324 am__leading_dot=. 3325else 3326 am__leading_dot=_ 3327fi 3328rmdir .tst 2>/dev/null 3329 3330# Check whether --enable-silent-rules was given. 3331if test ${enable_silent_rules+y} 3332then : 3333 enableval=$enable_silent_rules; 3334fi 3335 3336case $enable_silent_rules in # ((( 3337 yes) AM_DEFAULT_VERBOSITY=0;; 3338 no) AM_DEFAULT_VERBOSITY=1;; 3339 *) AM_DEFAULT_VERBOSITY=1;; 3340esac 3341am_make=${MAKE-make} 3342{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 3343printf %s "checking whether $am_make supports nested variables... " >&6; } 3344if test ${am_cv_make_support_nested_variables+y} 3345then : 3346 printf %s "(cached) " >&6 3347else $as_nop 3348 if printf "%s\n" 'TRUE=$(BAR$(V)) 3349BAR0=false 3350BAR1=true 3351V=1 3352am__doit: 3353 @$(TRUE) 3354.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 3355 am_cv_make_support_nested_variables=yes 3356else 3357 am_cv_make_support_nested_variables=no 3358fi 3359fi 3360{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 3361printf "%s\n" "$am_cv_make_support_nested_variables" >&6; } 3362if test $am_cv_make_support_nested_variables = yes; then 3363 AM_V='$(V)' 3364 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 3365else 3366 AM_V=$AM_DEFAULT_VERBOSITY 3367 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 3368fi 3369AM_BACKSLASH='\' 3370 3371if test "`cd $srcdir && pwd`" != "`pwd`"; then 3372 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 3373 # is not polluted with repeated "-I." 3374 am__isrc=' -I$(srcdir)' 3375 # test to see if srcdir already configured 3376 if test -f $srcdir/config.status; then 3377 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 3378 fi 3379fi 3380 3381# test whether we have cygpath 3382if test -z "$CYGPATH_W"; then 3383 if (cygpath --version) >/dev/null 2>/dev/null; then 3384 CYGPATH_W='cygpath -w' 3385 else 3386 CYGPATH_W=echo 3387 fi 3388fi 3389 3390 3391# Define the identity of the package. 3392 PACKAGE='libXfont2' 3393 VERSION='2.0.5' 3394 3395 3396printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h 3397 3398 3399printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h 3400 3401# Some tools Automake needs. 3402 3403ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 3404 3405 3406AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 3407 3408 3409AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 3410 3411 3412AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 3413 3414 3415MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 3416 3417# For better backward compatibility. To be removed once Automake 1.9.x 3418# dies out for good. For more background, see: 3419# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 3420# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 3421mkdir_p='$(MKDIR_P)' 3422 3423# We need awk for the "check" target (and possibly the TAP driver). The 3424# system "awk" is bad on some platforms. 3425# Always define AMTAR for backward compatibility. Yes, it's still used 3426# in the wild :-( We should find a proper way to deprecate it ... 3427AMTAR='$${TAR-tar}' 3428 3429 3430# We'll loop over all known methods to create a tar archive until one works. 3431_am_tools='gnutar pax cpio none' 3432 3433am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 3434 3435 3436 3437 3438 3439# Variables for tags utilities; see am/tags.am 3440if test -z "$CTAGS"; then 3441 CTAGS=ctags 3442fi 3443 3444if test -z "$ETAGS"; then 3445 ETAGS=etags 3446fi 3447 3448if test -z "$CSCOPE"; then 3449 CSCOPE=cscope 3450fi 3451 3452 3453 3454# POSIX will say in a future version that running "rm -f" with no argument 3455# is OK; and we want to be able to make that assumption in our Makefile 3456# recipes. So use an aggressive probe to check that the usage we want is 3457# actually supported "in the wild" to an acceptable degree. 3458# See automake bug#10828. 3459# To make any issue more visible, cause the running configure to be aborted 3460# by default if the 'rm' program in use doesn't match our expectations; the 3461# user can still override this though. 3462if rm -f && rm -fr && rm -rf; then : OK; else 3463 cat >&2 <<'END' 3464Oops! 3465 3466Your 'rm' program seems unable to run without file operands specified 3467on the command line, even when the '-f' option is present. This is contrary 3468to the behaviour of most rm programs out there, and not conforming with 3469the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 3470 3471Please tell bug-automake@gnu.org about your system, including the value 3472of your $PATH and any error possibly output before this message. This 3473can help us improve future automake versions. 3474 3475END 3476 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 3477 echo 'Configuration will proceed anyway, since you have set the' >&2 3478 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 3479 echo >&2 3480 else 3481 cat >&2 <<'END' 3482Aborting the configuration process, to ensure you take notice of the issue. 3483 3484You can download and install GNU coreutils to get an 'rm' implementation 3485that behaves properly: <https://www.gnu.org/software/coreutils/>. 3486 3487If you want to complete the configuration process using your problematic 3488'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 3489to "yes", and re-run configure. 3490 3491END 3492 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 3493 fi 3494fi 3495 3496 3497# Set common system defines for POSIX extensions, such as _GNU_SOURCE 3498# Must be called before any macros that run the compiler (like 3499# AC_PROG_LIBTOOL) to avoid autoconf errors. 3500 3501 3502 3503 3504 3505 3506 3507 3508 3509DEPDIR="${am__leading_dot}deps" 3510 3511ac_config_commands="$ac_config_commands depfiles" 3512 3513{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5 3514printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; } 3515cat > confinc.mk << 'END' 3516am__doit: 3517 @echo this is the am__doit target >confinc.out 3518.PHONY: am__doit 3519END 3520am__include="#" 3521am__quote= 3522# BSD make does it like this. 3523echo '.include "confinc.mk" # ignored' > confmf.BSD 3524# Other make implementations (GNU, Solaris 10, AIX) do it like this. 3525echo 'include confinc.mk # ignored' > confmf.GNU 3526_am_result=no 3527for s in GNU BSD; do 3528 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5 3529 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5 3530 ac_status=$? 3531 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3532 (exit $ac_status); } 3533 case $?:`cat confinc.out 2>/dev/null` in #( 3534 '0:this is the am__doit target') : 3535 case $s in #( 3536 BSD) : 3537 am__include='.include' am__quote='"' ;; #( 3538 *) : 3539 am__include='include' am__quote='' ;; 3540esac ;; #( 3541 *) : 3542 ;; 3543esac 3544 if test "$am__include" != "#"; then 3545 _am_result="yes ($s style)" 3546 break 3547 fi 3548done 3549rm -f confinc.* confmf.* 3550{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5 3551printf "%s\n" "${_am_result}" >&6; } 3552 3553# Check whether --enable-dependency-tracking was given. 3554if test ${enable_dependency_tracking+y} 3555then : 3556 enableval=$enable_dependency_tracking; 3557fi 3558 3559if test "x$enable_dependency_tracking" != xno; then 3560 am_depcomp="$ac_aux_dir/depcomp" 3561 AMDEPBACKSLASH='\' 3562 am__nodep='_no' 3563fi 3564 if test "x$enable_dependency_tracking" != xno; then 3565 AMDEP_TRUE= 3566 AMDEP_FALSE='#' 3567else 3568 AMDEP_TRUE='#' 3569 AMDEP_FALSE= 3570fi 3571 3572 3573ac_ext=c 3574ac_cpp='$CPP $CPPFLAGS' 3575ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3576ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3577ac_compiler_gnu=$ac_cv_c_compiler_gnu 3578if test -n "$ac_tool_prefix"; then 3579 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3580set dummy ${ac_tool_prefix}gcc; ac_word=$2 3581{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3582printf %s "checking for $ac_word... " >&6; } 3583if test ${ac_cv_prog_CC+y} 3584then : 3585 printf %s "(cached) " >&6 3586else $as_nop 3587 if test -n "$CC"; then 3588 ac_cv_prog_CC="$CC" # Let the user override the test. 3589else 3590as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3591for as_dir in $PATH 3592do 3593 IFS=$as_save_IFS 3594 case $as_dir in #((( 3595 '') as_dir=./ ;; 3596 */) ;; 3597 *) as_dir=$as_dir/ ;; 3598 esac 3599 for ac_exec_ext in '' $ac_executable_extensions; do 3600 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3601 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3602 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3603 break 2 3604 fi 3605done 3606 done 3607IFS=$as_save_IFS 3608 3609fi 3610fi 3611CC=$ac_cv_prog_CC 3612if test -n "$CC"; then 3613 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3614printf "%s\n" "$CC" >&6; } 3615else 3616 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3617printf "%s\n" "no" >&6; } 3618fi 3619 3620 3621fi 3622if test -z "$ac_cv_prog_CC"; then 3623 ac_ct_CC=$CC 3624 # Extract the first word of "gcc", so it can be a program name with args. 3625set dummy gcc; ac_word=$2 3626{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3627printf %s "checking for $ac_word... " >&6; } 3628if test ${ac_cv_prog_ac_ct_CC+y} 3629then : 3630 printf %s "(cached) " >&6 3631else $as_nop 3632 if test -n "$ac_ct_CC"; then 3633 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3634else 3635as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3636for as_dir in $PATH 3637do 3638 IFS=$as_save_IFS 3639 case $as_dir in #((( 3640 '') as_dir=./ ;; 3641 */) ;; 3642 *) as_dir=$as_dir/ ;; 3643 esac 3644 for ac_exec_ext in '' $ac_executable_extensions; do 3645 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3646 ac_cv_prog_ac_ct_CC="gcc" 3647 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3648 break 2 3649 fi 3650done 3651 done 3652IFS=$as_save_IFS 3653 3654fi 3655fi 3656ac_ct_CC=$ac_cv_prog_ac_ct_CC 3657if test -n "$ac_ct_CC"; then 3658 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3659printf "%s\n" "$ac_ct_CC" >&6; } 3660else 3661 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3662printf "%s\n" "no" >&6; } 3663fi 3664 3665 if test "x$ac_ct_CC" = x; then 3666 CC="" 3667 else 3668 case $cross_compiling:$ac_tool_warned in 3669yes:) 3670{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3671printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3672ac_tool_warned=yes ;; 3673esac 3674 CC=$ac_ct_CC 3675 fi 3676else 3677 CC="$ac_cv_prog_CC" 3678fi 3679 3680if test -z "$CC"; then 3681 if test -n "$ac_tool_prefix"; then 3682 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3683set dummy ${ac_tool_prefix}cc; ac_word=$2 3684{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3685printf %s "checking for $ac_word... " >&6; } 3686if test ${ac_cv_prog_CC+y} 3687then : 3688 printf %s "(cached) " >&6 3689else $as_nop 3690 if test -n "$CC"; then 3691 ac_cv_prog_CC="$CC" # Let the user override the test. 3692else 3693as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3694for as_dir in $PATH 3695do 3696 IFS=$as_save_IFS 3697 case $as_dir in #((( 3698 '') as_dir=./ ;; 3699 */) ;; 3700 *) as_dir=$as_dir/ ;; 3701 esac 3702 for ac_exec_ext in '' $ac_executable_extensions; do 3703 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3704 ac_cv_prog_CC="${ac_tool_prefix}cc" 3705 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3706 break 2 3707 fi 3708done 3709 done 3710IFS=$as_save_IFS 3711 3712fi 3713fi 3714CC=$ac_cv_prog_CC 3715if test -n "$CC"; then 3716 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3717printf "%s\n" "$CC" >&6; } 3718else 3719 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3720printf "%s\n" "no" >&6; } 3721fi 3722 3723 3724 fi 3725fi 3726if test -z "$CC"; then 3727 # Extract the first word of "cc", so it can be a program name with args. 3728set dummy cc; ac_word=$2 3729{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3730printf %s "checking for $ac_word... " >&6; } 3731if test ${ac_cv_prog_CC+y} 3732then : 3733 printf %s "(cached) " >&6 3734else $as_nop 3735 if test -n "$CC"; then 3736 ac_cv_prog_CC="$CC" # Let the user override the test. 3737else 3738 ac_prog_rejected=no 3739as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3740for as_dir in $PATH 3741do 3742 IFS=$as_save_IFS 3743 case $as_dir in #((( 3744 '') as_dir=./ ;; 3745 */) ;; 3746 *) as_dir=$as_dir/ ;; 3747 esac 3748 for ac_exec_ext in '' $ac_executable_extensions; do 3749 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3750 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3751 ac_prog_rejected=yes 3752 continue 3753 fi 3754 ac_cv_prog_CC="cc" 3755 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3756 break 2 3757 fi 3758done 3759 done 3760IFS=$as_save_IFS 3761 3762if test $ac_prog_rejected = yes; then 3763 # We found a bogon in the path, so make sure we never use it. 3764 set dummy $ac_cv_prog_CC 3765 shift 3766 if test $# != 0; then 3767 # We chose a different compiler from the bogus one. 3768 # However, it has the same basename, so the bogon will be chosen 3769 # first if we set CC to just the basename; use the full file name. 3770 shift 3771 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@" 3772 fi 3773fi 3774fi 3775fi 3776CC=$ac_cv_prog_CC 3777if test -n "$CC"; then 3778 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3779printf "%s\n" "$CC" >&6; } 3780else 3781 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3782printf "%s\n" "no" >&6; } 3783fi 3784 3785 3786fi 3787if test -z "$CC"; then 3788 if test -n "$ac_tool_prefix"; then 3789 for ac_prog in cl.exe 3790 do 3791 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3792set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3793{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3794printf %s "checking for $ac_word... " >&6; } 3795if test ${ac_cv_prog_CC+y} 3796then : 3797 printf %s "(cached) " >&6 3798else $as_nop 3799 if test -n "$CC"; then 3800 ac_cv_prog_CC="$CC" # Let the user override the test. 3801else 3802as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3803for as_dir in $PATH 3804do 3805 IFS=$as_save_IFS 3806 case $as_dir in #((( 3807 '') as_dir=./ ;; 3808 */) ;; 3809 *) as_dir=$as_dir/ ;; 3810 esac 3811 for ac_exec_ext in '' $ac_executable_extensions; do 3812 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3813 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3814 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3815 break 2 3816 fi 3817done 3818 done 3819IFS=$as_save_IFS 3820 3821fi 3822fi 3823CC=$ac_cv_prog_CC 3824if test -n "$CC"; then 3825 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3826printf "%s\n" "$CC" >&6; } 3827else 3828 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3829printf "%s\n" "no" >&6; } 3830fi 3831 3832 3833 test -n "$CC" && break 3834 done 3835fi 3836if test -z "$CC"; then 3837 ac_ct_CC=$CC 3838 for ac_prog in cl.exe 3839do 3840 # Extract the first word of "$ac_prog", so it can be a program name with args. 3841set dummy $ac_prog; ac_word=$2 3842{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3843printf %s "checking for $ac_word... " >&6; } 3844if test ${ac_cv_prog_ac_ct_CC+y} 3845then : 3846 printf %s "(cached) " >&6 3847else $as_nop 3848 if test -n "$ac_ct_CC"; then 3849 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3850else 3851as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3852for as_dir in $PATH 3853do 3854 IFS=$as_save_IFS 3855 case $as_dir in #((( 3856 '') as_dir=./ ;; 3857 */) ;; 3858 *) as_dir=$as_dir/ ;; 3859 esac 3860 for ac_exec_ext in '' $ac_executable_extensions; do 3861 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3862 ac_cv_prog_ac_ct_CC="$ac_prog" 3863 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3864 break 2 3865 fi 3866done 3867 done 3868IFS=$as_save_IFS 3869 3870fi 3871fi 3872ac_ct_CC=$ac_cv_prog_ac_ct_CC 3873if test -n "$ac_ct_CC"; then 3874 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3875printf "%s\n" "$ac_ct_CC" >&6; } 3876else 3877 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3878printf "%s\n" "no" >&6; } 3879fi 3880 3881 3882 test -n "$ac_ct_CC" && break 3883done 3884 3885 if test "x$ac_ct_CC" = x; then 3886 CC="" 3887 else 3888 case $cross_compiling:$ac_tool_warned in 3889yes:) 3890{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3891printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3892ac_tool_warned=yes ;; 3893esac 3894 CC=$ac_ct_CC 3895 fi 3896fi 3897 3898fi 3899if test -z "$CC"; then 3900 if test -n "$ac_tool_prefix"; then 3901 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args. 3902set dummy ${ac_tool_prefix}clang; ac_word=$2 3903{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3904printf %s "checking for $ac_word... " >&6; } 3905if test ${ac_cv_prog_CC+y} 3906then : 3907 printf %s "(cached) " >&6 3908else $as_nop 3909 if test -n "$CC"; then 3910 ac_cv_prog_CC="$CC" # Let the user override the test. 3911else 3912as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3913for as_dir in $PATH 3914do 3915 IFS=$as_save_IFS 3916 case $as_dir in #((( 3917 '') as_dir=./ ;; 3918 */) ;; 3919 *) as_dir=$as_dir/ ;; 3920 esac 3921 for ac_exec_ext in '' $ac_executable_extensions; do 3922 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3923 ac_cv_prog_CC="${ac_tool_prefix}clang" 3924 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3925 break 2 3926 fi 3927done 3928 done 3929IFS=$as_save_IFS 3930 3931fi 3932fi 3933CC=$ac_cv_prog_CC 3934if test -n "$CC"; then 3935 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3936printf "%s\n" "$CC" >&6; } 3937else 3938 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3939printf "%s\n" "no" >&6; } 3940fi 3941 3942 3943fi 3944if test -z "$ac_cv_prog_CC"; then 3945 ac_ct_CC=$CC 3946 # Extract the first word of "clang", so it can be a program name with args. 3947set dummy clang; ac_word=$2 3948{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3949printf %s "checking for $ac_word... " >&6; } 3950if test ${ac_cv_prog_ac_ct_CC+y} 3951then : 3952 printf %s "(cached) " >&6 3953else $as_nop 3954 if test -n "$ac_ct_CC"; then 3955 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3956else 3957as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3958for as_dir in $PATH 3959do 3960 IFS=$as_save_IFS 3961 case $as_dir in #((( 3962 '') as_dir=./ ;; 3963 */) ;; 3964 *) as_dir=$as_dir/ ;; 3965 esac 3966 for ac_exec_ext in '' $ac_executable_extensions; do 3967 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3968 ac_cv_prog_ac_ct_CC="clang" 3969 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3970 break 2 3971 fi 3972done 3973 done 3974IFS=$as_save_IFS 3975 3976fi 3977fi 3978ac_ct_CC=$ac_cv_prog_ac_ct_CC 3979if test -n "$ac_ct_CC"; then 3980 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3981printf "%s\n" "$ac_ct_CC" >&6; } 3982else 3983 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3984printf "%s\n" "no" >&6; } 3985fi 3986 3987 if test "x$ac_ct_CC" = x; then 3988 CC="" 3989 else 3990 case $cross_compiling:$ac_tool_warned in 3991yes:) 3992{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3993printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3994ac_tool_warned=yes ;; 3995esac 3996 CC=$ac_ct_CC 3997 fi 3998else 3999 CC="$ac_cv_prog_CC" 4000fi 4001 4002fi 4003 4004 4005test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4006printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 4007as_fn_error $? "no acceptable C compiler found in \$PATH 4008See \`config.log' for more details" "$LINENO" 5; } 4009 4010# Provide some information about the compiler. 4011printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 4012set X $ac_compile 4013ac_compiler=$2 4014for ac_option in --version -v -V -qversion -version; do 4015 { { ac_try="$ac_compiler $ac_option >&5" 4016case "(($ac_try" in 4017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4018 *) ac_try_echo=$ac_try;; 4019esac 4020eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4021printf "%s\n" "$ac_try_echo"; } >&5 4022 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 4023 ac_status=$? 4024 if test -s conftest.err; then 4025 sed '10a\ 4026... rest of stderr output deleted ... 4027 10q' conftest.err >conftest.er1 4028 cat conftest.er1 >&5 4029 fi 4030 rm -f conftest.er1 conftest.err 4031 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4032 test $ac_status = 0; } 4033done 4034 4035cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4036/* end confdefs.h. */ 4037 4038int 4039main (void) 4040{ 4041 4042 ; 4043 return 0; 4044} 4045_ACEOF 4046ac_clean_files_save=$ac_clean_files 4047ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 4048# Try to create an executable without -o first, disregard a.out. 4049# It will help us diagnose broken compilers, and finding out an intuition 4050# of exeext. 4051{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 4052printf %s "checking whether the C compiler works... " >&6; } 4053ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 4054 4055# The possible output files: 4056ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 4057 4058ac_rmfiles= 4059for ac_file in $ac_files 4060do 4061 case $ac_file in 4062 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 4063 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 4064 esac 4065done 4066rm -f $ac_rmfiles 4067 4068if { { ac_try="$ac_link_default" 4069case "(($ac_try" in 4070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4071 *) ac_try_echo=$ac_try;; 4072esac 4073eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4074printf "%s\n" "$ac_try_echo"; } >&5 4075 (eval "$ac_link_default") 2>&5 4076 ac_status=$? 4077 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4078 test $ac_status = 0; } 4079then : 4080 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 4081# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 4082# in a Makefile. We should not override ac_cv_exeext if it was cached, 4083# so that the user can short-circuit this test for compilers unknown to 4084# Autoconf. 4085for ac_file in $ac_files '' 4086do 4087 test -f "$ac_file" || continue 4088 case $ac_file in 4089 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 4090 ;; 4091 [ab].out ) 4092 # We found the default executable, but exeext='' is most 4093 # certainly right. 4094 break;; 4095 *.* ) 4096 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no; 4097 then :; else 4098 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 4099 fi 4100 # We set ac_cv_exeext here because the later test for it is not 4101 # safe: cross compilers may not add the suffix if given an `-o' 4102 # argument, so we may need to know it at that point already. 4103 # Even if this section looks crufty: it has the advantage of 4104 # actually working. 4105 break;; 4106 * ) 4107 break;; 4108 esac 4109done 4110test "$ac_cv_exeext" = no && ac_cv_exeext= 4111 4112else $as_nop 4113 ac_file='' 4114fi 4115if test -z "$ac_file" 4116then : 4117 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4118printf "%s\n" "no" >&6; } 4119printf "%s\n" "$as_me: failed program was:" >&5 4120sed 's/^/| /' conftest.$ac_ext >&5 4121 4122{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4123printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 4124as_fn_error 77 "C compiler cannot create executables 4125See \`config.log' for more details" "$LINENO" 5; } 4126else $as_nop 4127 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4128printf "%s\n" "yes" >&6; } 4129fi 4130{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 4131printf %s "checking for C compiler default output file name... " >&6; } 4132{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 4133printf "%s\n" "$ac_file" >&6; } 4134ac_exeext=$ac_cv_exeext 4135 4136rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 4137ac_clean_files=$ac_clean_files_save 4138{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 4139printf %s "checking for suffix of executables... " >&6; } 4140if { { ac_try="$ac_link" 4141case "(($ac_try" in 4142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4143 *) ac_try_echo=$ac_try;; 4144esac 4145eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4146printf "%s\n" "$ac_try_echo"; } >&5 4147 (eval "$ac_link") 2>&5 4148 ac_status=$? 4149 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4150 test $ac_status = 0; } 4151then : 4152 # If both `conftest.exe' and `conftest' are `present' (well, observable) 4153# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 4154# work properly (i.e., refer to `conftest.exe'), while it won't with 4155# `rm'. 4156for ac_file in conftest.exe conftest conftest.*; do 4157 test -f "$ac_file" || continue 4158 case $ac_file in 4159 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 4160 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 4161 break;; 4162 * ) break;; 4163 esac 4164done 4165else $as_nop 4166 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4167printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 4168as_fn_error $? "cannot compute suffix of executables: cannot compile and link 4169See \`config.log' for more details" "$LINENO" 5; } 4170fi 4171rm -f conftest conftest$ac_cv_exeext 4172{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 4173printf "%s\n" "$ac_cv_exeext" >&6; } 4174 4175rm -f conftest.$ac_ext 4176EXEEXT=$ac_cv_exeext 4177ac_exeext=$EXEEXT 4178cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4179/* end confdefs.h. */ 4180#include <stdio.h> 4181int 4182main (void) 4183{ 4184FILE *f = fopen ("conftest.out", "w"); 4185 return ferror (f) || fclose (f) != 0; 4186 4187 ; 4188 return 0; 4189} 4190_ACEOF 4191ac_clean_files="$ac_clean_files conftest.out" 4192# Check that the compiler produces executables we can run. If not, either 4193# the compiler is broken, or we cross compile. 4194{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 4195printf %s "checking whether we are cross compiling... " >&6; } 4196if test "$cross_compiling" != yes; then 4197 { { ac_try="$ac_link" 4198case "(($ac_try" in 4199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4200 *) ac_try_echo=$ac_try;; 4201esac 4202eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4203printf "%s\n" "$ac_try_echo"; } >&5 4204 (eval "$ac_link") 2>&5 4205 ac_status=$? 4206 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4207 test $ac_status = 0; } 4208 if { ac_try='./conftest$ac_cv_exeext' 4209 { { case "(($ac_try" in 4210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4211 *) ac_try_echo=$ac_try;; 4212esac 4213eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4214printf "%s\n" "$ac_try_echo"; } >&5 4215 (eval "$ac_try") 2>&5 4216 ac_status=$? 4217 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4218 test $ac_status = 0; }; }; then 4219 cross_compiling=no 4220 else 4221 if test "$cross_compiling" = maybe; then 4222 cross_compiling=yes 4223 else 4224 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4225printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 4226as_fn_error 77 "cannot run C compiled programs. 4227If you meant to cross compile, use \`--host'. 4228See \`config.log' for more details" "$LINENO" 5; } 4229 fi 4230 fi 4231fi 4232{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 4233printf "%s\n" "$cross_compiling" >&6; } 4234 4235rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 4236ac_clean_files=$ac_clean_files_save 4237{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 4238printf %s "checking for suffix of object files... " >&6; } 4239if test ${ac_cv_objext+y} 4240then : 4241 printf %s "(cached) " >&6 4242else $as_nop 4243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4244/* end confdefs.h. */ 4245 4246int 4247main (void) 4248{ 4249 4250 ; 4251 return 0; 4252} 4253_ACEOF 4254rm -f conftest.o conftest.obj 4255if { { ac_try="$ac_compile" 4256case "(($ac_try" in 4257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4258 *) ac_try_echo=$ac_try;; 4259esac 4260eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4261printf "%s\n" "$ac_try_echo"; } >&5 4262 (eval "$ac_compile") 2>&5 4263 ac_status=$? 4264 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4265 test $ac_status = 0; } 4266then : 4267 for ac_file in conftest.o conftest.obj conftest.*; do 4268 test -f "$ac_file" || continue; 4269 case $ac_file in 4270 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 4271 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 4272 break;; 4273 esac 4274done 4275else $as_nop 4276 printf "%s\n" "$as_me: failed program was:" >&5 4277sed 's/^/| /' conftest.$ac_ext >&5 4278 4279{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4280printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 4281as_fn_error $? "cannot compute suffix of object files: cannot compile 4282See \`config.log' for more details" "$LINENO" 5; } 4283fi 4284rm -f conftest.$ac_cv_objext conftest.$ac_ext 4285fi 4286{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 4287printf "%s\n" "$ac_cv_objext" >&6; } 4288OBJEXT=$ac_cv_objext 4289ac_objext=$OBJEXT 4290{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5 4291printf %s "checking whether the compiler supports GNU C... " >&6; } 4292if test ${ac_cv_c_compiler_gnu+y} 4293then : 4294 printf %s "(cached) " >&6 4295else $as_nop 4296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4297/* end confdefs.h. */ 4298 4299int 4300main (void) 4301{ 4302#ifndef __GNUC__ 4303 choke me 4304#endif 4305 4306 ; 4307 return 0; 4308} 4309_ACEOF 4310if ac_fn_c_try_compile "$LINENO" 4311then : 4312 ac_compiler_gnu=yes 4313else $as_nop 4314 ac_compiler_gnu=no 4315fi 4316rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4317ac_cv_c_compiler_gnu=$ac_compiler_gnu 4318 4319fi 4320{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 4321printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; } 4322ac_compiler_gnu=$ac_cv_c_compiler_gnu 4323 4324if test $ac_compiler_gnu = yes; then 4325 GCC=yes 4326else 4327 GCC= 4328fi 4329ac_test_CFLAGS=${CFLAGS+y} 4330ac_save_CFLAGS=$CFLAGS 4331{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 4332printf %s "checking whether $CC accepts -g... " >&6; } 4333if test ${ac_cv_prog_cc_g+y} 4334then : 4335 printf %s "(cached) " >&6 4336else $as_nop 4337 ac_save_c_werror_flag=$ac_c_werror_flag 4338 ac_c_werror_flag=yes 4339 ac_cv_prog_cc_g=no 4340 CFLAGS="-g" 4341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4342/* end confdefs.h. */ 4343 4344int 4345main (void) 4346{ 4347 4348 ; 4349 return 0; 4350} 4351_ACEOF 4352if ac_fn_c_try_compile "$LINENO" 4353then : 4354 ac_cv_prog_cc_g=yes 4355else $as_nop 4356 CFLAGS="" 4357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4358/* end confdefs.h. */ 4359 4360int 4361main (void) 4362{ 4363 4364 ; 4365 return 0; 4366} 4367_ACEOF 4368if ac_fn_c_try_compile "$LINENO" 4369then : 4370 4371else $as_nop 4372 ac_c_werror_flag=$ac_save_c_werror_flag 4373 CFLAGS="-g" 4374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4375/* end confdefs.h. */ 4376 4377int 4378main (void) 4379{ 4380 4381 ; 4382 return 0; 4383} 4384_ACEOF 4385if ac_fn_c_try_compile "$LINENO" 4386then : 4387 ac_cv_prog_cc_g=yes 4388fi 4389rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4390fi 4391rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4392fi 4393rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4394 ac_c_werror_flag=$ac_save_c_werror_flag 4395fi 4396{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 4397printf "%s\n" "$ac_cv_prog_cc_g" >&6; } 4398if test $ac_test_CFLAGS; then 4399 CFLAGS=$ac_save_CFLAGS 4400elif test $ac_cv_prog_cc_g = yes; then 4401 if test "$GCC" = yes; then 4402 CFLAGS="-g -O2" 4403 else 4404 CFLAGS="-g" 4405 fi 4406else 4407 if test "$GCC" = yes; then 4408 CFLAGS="-O2" 4409 else 4410 CFLAGS= 4411 fi 4412fi 4413ac_prog_cc_stdc=no 4414if test x$ac_prog_cc_stdc = xno 4415then : 4416 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5 4417printf %s "checking for $CC option to enable C11 features... " >&6; } 4418if test ${ac_cv_prog_cc_c11+y} 4419then : 4420 printf %s "(cached) " >&6 4421else $as_nop 4422 ac_cv_prog_cc_c11=no 4423ac_save_CC=$CC 4424cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4425/* end confdefs.h. */ 4426$ac_c_conftest_c11_program 4427_ACEOF 4428for ac_arg in '' -std=gnu11 4429do 4430 CC="$ac_save_CC $ac_arg" 4431 if ac_fn_c_try_compile "$LINENO" 4432then : 4433 ac_cv_prog_cc_c11=$ac_arg 4434fi 4435rm -f core conftest.err conftest.$ac_objext conftest.beam 4436 test "x$ac_cv_prog_cc_c11" != "xno" && break 4437done 4438rm -f conftest.$ac_ext 4439CC=$ac_save_CC 4440fi 4441 4442if test "x$ac_cv_prog_cc_c11" = xno 4443then : 4444 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4445printf "%s\n" "unsupported" >&6; } 4446else $as_nop 4447 if test "x$ac_cv_prog_cc_c11" = x 4448then : 4449 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4450printf "%s\n" "none needed" >&6; } 4451else $as_nop 4452 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5 4453printf "%s\n" "$ac_cv_prog_cc_c11" >&6; } 4454 CC="$CC $ac_cv_prog_cc_c11" 4455fi 4456 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11 4457 ac_prog_cc_stdc=c11 4458fi 4459fi 4460if test x$ac_prog_cc_stdc = xno 4461then : 4462 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5 4463printf %s "checking for $CC option to enable C99 features... " >&6; } 4464if test ${ac_cv_prog_cc_c99+y} 4465then : 4466 printf %s "(cached) " >&6 4467else $as_nop 4468 ac_cv_prog_cc_c99=no 4469ac_save_CC=$CC 4470cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4471/* end confdefs.h. */ 4472$ac_c_conftest_c99_program 4473_ACEOF 4474for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99= 4475do 4476 CC="$ac_save_CC $ac_arg" 4477 if ac_fn_c_try_compile "$LINENO" 4478then : 4479 ac_cv_prog_cc_c99=$ac_arg 4480fi 4481rm -f core conftest.err conftest.$ac_objext conftest.beam 4482 test "x$ac_cv_prog_cc_c99" != "xno" && break 4483done 4484rm -f conftest.$ac_ext 4485CC=$ac_save_CC 4486fi 4487 4488if test "x$ac_cv_prog_cc_c99" = xno 4489then : 4490 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4491printf "%s\n" "unsupported" >&6; } 4492else $as_nop 4493 if test "x$ac_cv_prog_cc_c99" = x 4494then : 4495 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4496printf "%s\n" "none needed" >&6; } 4497else $as_nop 4498 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 4499printf "%s\n" "$ac_cv_prog_cc_c99" >&6; } 4500 CC="$CC $ac_cv_prog_cc_c99" 4501fi 4502 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 4503 ac_prog_cc_stdc=c99 4504fi 4505fi 4506if test x$ac_prog_cc_stdc = xno 4507then : 4508 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5 4509printf %s "checking for $CC option to enable C89 features... " >&6; } 4510if test ${ac_cv_prog_cc_c89+y} 4511then : 4512 printf %s "(cached) " >&6 4513else $as_nop 4514 ac_cv_prog_cc_c89=no 4515ac_save_CC=$CC 4516cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4517/* end confdefs.h. */ 4518$ac_c_conftest_c89_program 4519_ACEOF 4520for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4521do 4522 CC="$ac_save_CC $ac_arg" 4523 if ac_fn_c_try_compile "$LINENO" 4524then : 4525 ac_cv_prog_cc_c89=$ac_arg 4526fi 4527rm -f core conftest.err conftest.$ac_objext conftest.beam 4528 test "x$ac_cv_prog_cc_c89" != "xno" && break 4529done 4530rm -f conftest.$ac_ext 4531CC=$ac_save_CC 4532fi 4533 4534if test "x$ac_cv_prog_cc_c89" = xno 4535then : 4536 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4537printf "%s\n" "unsupported" >&6; } 4538else $as_nop 4539 if test "x$ac_cv_prog_cc_c89" = x 4540then : 4541 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4542printf "%s\n" "none needed" >&6; } 4543else $as_nop 4544 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4545printf "%s\n" "$ac_cv_prog_cc_c89" >&6; } 4546 CC="$CC $ac_cv_prog_cc_c89" 4547fi 4548 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 4549 ac_prog_cc_stdc=c89 4550fi 4551fi 4552 4553ac_ext=c 4554ac_cpp='$CPP $CPPFLAGS' 4555ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4556ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4557ac_compiler_gnu=$ac_cv_c_compiler_gnu 4558 4559 4560 ac_ext=c 4561ac_cpp='$CPP $CPPFLAGS' 4562ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4563ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4564ac_compiler_gnu=$ac_cv_c_compiler_gnu 4565{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 4566printf %s "checking whether $CC understands -c and -o together... " >&6; } 4567if test ${am_cv_prog_cc_c_o+y} 4568then : 4569 printf %s "(cached) " >&6 4570else $as_nop 4571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4572/* end confdefs.h. */ 4573 4574int 4575main (void) 4576{ 4577 4578 ; 4579 return 0; 4580} 4581_ACEOF 4582 # Make sure it works both with $CC and with simple cc. 4583 # Following AC_PROG_CC_C_O, we do the test twice because some 4584 # compilers refuse to overwrite an existing .o file with -o, 4585 # though they will create one. 4586 am_cv_prog_cc_c_o=yes 4587 for am_i in 1 2; do 4588 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 4589 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 4590 ac_status=$? 4591 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4592 (exit $ac_status); } \ 4593 && test -f conftest2.$ac_objext; then 4594 : OK 4595 else 4596 am_cv_prog_cc_c_o=no 4597 break 4598 fi 4599 done 4600 rm -f core conftest* 4601 unset am_i 4602fi 4603{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 4604printf "%s\n" "$am_cv_prog_cc_c_o" >&6; } 4605if test "$am_cv_prog_cc_c_o" != yes; then 4606 # Losing compiler, so override with the script. 4607 # FIXME: It is wrong to rewrite CC. 4608 # But if we don't then we get into trouble of one sort or another. 4609 # A longer-term fix would be to have automake use am__CC in this case, 4610 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 4611 CC="$am_aux_dir/compile $CC" 4612fi 4613ac_ext=c 4614ac_cpp='$CPP $CPPFLAGS' 4615ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4616ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4617ac_compiler_gnu=$ac_cv_c_compiler_gnu 4618 4619 4620depcc="$CC" am_compiler_list= 4621 4622{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4623printf %s "checking dependency style of $depcc... " >&6; } 4624if test ${am_cv_CC_dependencies_compiler_type+y} 4625then : 4626 printf %s "(cached) " >&6 4627else $as_nop 4628 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4629 # We make a subdir and do the tests there. Otherwise we can end up 4630 # making bogus files that we don't know about and never remove. For 4631 # instance it was reported that on HP-UX the gcc test will end up 4632 # making a dummy file named 'D' -- because '-MD' means "put the output 4633 # in D". 4634 rm -rf conftest.dir 4635 mkdir conftest.dir 4636 # Copy depcomp to subdir because otherwise we won't find it if we're 4637 # using a relative directory. 4638 cp "$am_depcomp" conftest.dir 4639 cd conftest.dir 4640 # We will build objects and dependencies in a subdirectory because 4641 # it helps to detect inapplicable dependency modes. For instance 4642 # both Tru64's cc and ICC support -MD to output dependencies as a 4643 # side effect of compilation, but ICC will put the dependencies in 4644 # the current directory while Tru64 will put them in the object 4645 # directory. 4646 mkdir sub 4647 4648 am_cv_CC_dependencies_compiler_type=none 4649 if test "$am_compiler_list" = ""; then 4650 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4651 fi 4652 am__universal=false 4653 case " $depcc " in #( 4654 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4655 esac 4656 4657 for depmode in $am_compiler_list; do 4658 # Setup a source with many dependencies, because some compilers 4659 # like to wrap large dependency lists on column 80 (with \), and 4660 # we should not choose a depcomp mode which is confused by this. 4661 # 4662 # We need to recreate these files for each test, as the compiler may 4663 # overwrite some of them when testing with obscure command lines. 4664 # This happens at least with the AIX C compiler. 4665 : > sub/conftest.c 4666 for i in 1 2 3 4 5 6; do 4667 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4668 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4669 # Solaris 10 /bin/sh. 4670 echo '/* dummy */' > sub/conftst$i.h 4671 done 4672 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4673 4674 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4675 # mode. It turns out that the SunPro C++ compiler does not properly 4676 # handle '-M -o', and we need to detect this. Also, some Intel 4677 # versions had trouble with output in subdirs. 4678 am__obj=sub/conftest.${OBJEXT-o} 4679 am__minus_obj="-o $am__obj" 4680 case $depmode in 4681 gcc) 4682 # This depmode causes a compiler race in universal mode. 4683 test "$am__universal" = false || continue 4684 ;; 4685 nosideeffect) 4686 # After this tag, mechanisms are not by side-effect, so they'll 4687 # only be used when explicitly requested. 4688 if test "x$enable_dependency_tracking" = xyes; then 4689 continue 4690 else 4691 break 4692 fi 4693 ;; 4694 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4695 # This compiler won't grok '-c -o', but also, the minuso test has 4696 # not run yet. These depmodes are late enough in the game, and 4697 # so weak that their functioning should not be impacted. 4698 am__obj=conftest.${OBJEXT-o} 4699 am__minus_obj= 4700 ;; 4701 none) break ;; 4702 esac 4703 if depmode=$depmode \ 4704 source=sub/conftest.c object=$am__obj \ 4705 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4706 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4707 >/dev/null 2>conftest.err && 4708 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4709 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4710 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4711 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4712 # icc doesn't choke on unknown options, it will just issue warnings 4713 # or remarks (even with -Werror). So we grep stderr for any message 4714 # that says an option was ignored or not supported. 4715 # When given -MP, icc 7.0 and 7.1 complain thusly: 4716 # icc: Command line warning: ignoring option '-M'; no argument required 4717 # The diagnosis changed in icc 8.0: 4718 # icc: Command line remark: option '-MP' not supported 4719 if (grep 'ignoring option' conftest.err || 4720 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4721 am_cv_CC_dependencies_compiler_type=$depmode 4722 break 4723 fi 4724 fi 4725 done 4726 4727 cd .. 4728 rm -rf conftest.dir 4729else 4730 am_cv_CC_dependencies_compiler_type=none 4731fi 4732 4733fi 4734{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4735printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; } 4736CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4737 4738 if 4739 test "x$enable_dependency_tracking" != xno \ 4740 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4741 am__fastdepCC_TRUE= 4742 am__fastdepCC_FALSE='#' 4743else 4744 am__fastdepCC_TRUE='#' 4745 am__fastdepCC_FALSE= 4746fi 4747 4748 4749 4750ac_header= ac_cache= 4751for ac_item in $ac_header_c_list 4752do 4753 if test $ac_cache; then 4754 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default" 4755 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then 4756 printf "%s\n" "#define $ac_item 1" >> confdefs.h 4757 fi 4758 ac_header= ac_cache= 4759 elif test $ac_header; then 4760 ac_cache=$ac_item 4761 else 4762 ac_header=$ac_item 4763 fi 4764done 4765 4766 4767 4768 4769 4770 4771 4772 4773if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes 4774then : 4775 4776printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h 4777 4778fi 4779 4780 4781 4782 4783 4784 4785 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 4786printf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; } 4787if test ${ac_cv_safe_to_define___extensions__+y} 4788then : 4789 printf %s "(cached) " >&6 4790else $as_nop 4791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4792/* end confdefs.h. */ 4793 4794# define __EXTENSIONS__ 1 4795 $ac_includes_default 4796int 4797main (void) 4798{ 4799 4800 ; 4801 return 0; 4802} 4803_ACEOF 4804if ac_fn_c_try_compile "$LINENO" 4805then : 4806 ac_cv_safe_to_define___extensions__=yes 4807else $as_nop 4808 ac_cv_safe_to_define___extensions__=no 4809fi 4810rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4811fi 4812{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 4813printf "%s\n" "$ac_cv_safe_to_define___extensions__" >&6; } 4814 4815 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5 4816printf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; } 4817if test ${ac_cv_should_define__xopen_source+y} 4818then : 4819 printf %s "(cached) " >&6 4820else $as_nop 4821 ac_cv_should_define__xopen_source=no 4822 if test $ac_cv_header_wchar_h = yes 4823then : 4824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4825/* end confdefs.h. */ 4826 4827 #include <wchar.h> 4828 mbstate_t x; 4829int 4830main (void) 4831{ 4832 4833 ; 4834 return 0; 4835} 4836_ACEOF 4837if ac_fn_c_try_compile "$LINENO" 4838then : 4839 4840else $as_nop 4841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4842/* end confdefs.h. */ 4843 4844 #define _XOPEN_SOURCE 500 4845 #include <wchar.h> 4846 mbstate_t x; 4847int 4848main (void) 4849{ 4850 4851 ; 4852 return 0; 4853} 4854_ACEOF 4855if ac_fn_c_try_compile "$LINENO" 4856then : 4857 ac_cv_should_define__xopen_source=yes 4858fi 4859rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4860fi 4861rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4862fi 4863fi 4864{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5 4865printf "%s\n" "$ac_cv_should_define__xopen_source" >&6; } 4866 4867 printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h 4868 4869 printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h 4870 4871 printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h 4872 4873 printf "%s\n" "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h 4874 4875 printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h 4876 4877 printf "%s\n" "#define _OPENBSD_SOURCE 1" >>confdefs.h 4878 4879 printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h 4880 4881 printf "%s\n" "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h 4882 4883 printf "%s\n" "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h 4884 4885 printf "%s\n" "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h 4886 4887 printf "%s\n" "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h 4888 4889 printf "%s\n" "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h 4890 4891 printf "%s\n" "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h 4892 4893 printf "%s\n" "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h 4894 4895 printf "%s\n" "#define _TANDEM_SOURCE 1" >>confdefs.h 4896 4897 if test $ac_cv_header_minix_config_h = yes 4898then : 4899 MINIX=yes 4900 printf "%s\n" "#define _MINIX 1" >>confdefs.h 4901 4902 printf "%s\n" "#define _POSIX_SOURCE 1" >>confdefs.h 4903 4904 printf "%s\n" "#define _POSIX_1_SOURCE 2" >>confdefs.h 4905 4906else $as_nop 4907 MINIX= 4908fi 4909 if test $ac_cv_safe_to_define___extensions__ = yes 4910then : 4911 printf "%s\n" "#define __EXTENSIONS__ 1" >>confdefs.h 4912 4913fi 4914 if test $ac_cv_should_define__xopen_source = yes 4915then : 4916 printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h 4917 4918fi 4919 4920 4921# Initialize libtool 4922case `pwd` in 4923 *\ * | *\ *) 4924 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 4925printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 4926esac 4927 4928 4929 4930macro_version='2.4.6' 4931macro_revision='2.4.6' 4932 4933 4934 4935 4936 4937 4938 4939 4940 4941 4942 4943 4944 4945 4946ltmain=$ac_aux_dir/ltmain.sh 4947 4948 4949 4950 # Make sure we can run config.sub. 4951$SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 || 4952 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5 4953 4954{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 4955printf %s "checking build system type... " >&6; } 4956if test ${ac_cv_build+y} 4957then : 4958 printf %s "(cached) " >&6 4959else $as_nop 4960 ac_build_alias=$build_alias 4961test "x$ac_build_alias" = x && 4962 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"` 4963test "x$ac_build_alias" = x && 4964 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 4965ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` || 4966 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5 4967 4968fi 4969{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 4970printf "%s\n" "$ac_cv_build" >&6; } 4971case $ac_cv_build in 4972*-*-*) ;; 4973*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 4974esac 4975build=$ac_cv_build 4976ac_save_IFS=$IFS; IFS='-' 4977set x $ac_cv_build 4978shift 4979build_cpu=$1 4980build_vendor=$2 4981shift; shift 4982# Remember, the first character of IFS is used to create $*, 4983# except with old shells: 4984build_os=$* 4985IFS=$ac_save_IFS 4986case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 4987 4988 4989{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 4990printf %s "checking host system type... " >&6; } 4991if test ${ac_cv_host+y} 4992then : 4993 printf %s "(cached) " >&6 4994else $as_nop 4995 if test "x$host_alias" = x; then 4996 ac_cv_host=$ac_cv_build 4997else 4998 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` || 4999 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5 5000fi 5001 5002fi 5003{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 5004printf "%s\n" "$ac_cv_host" >&6; } 5005case $ac_cv_host in 5006*-*-*) ;; 5007*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 5008esac 5009host=$ac_cv_host 5010ac_save_IFS=$IFS; IFS='-' 5011set x $ac_cv_host 5012shift 5013host_cpu=$1 5014host_vendor=$2 5015shift; shift 5016# Remember, the first character of IFS is used to create $*, 5017# except with old shells: 5018host_os=$* 5019IFS=$ac_save_IFS 5020case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 5021 5022 5023# Backslashify metacharacters that are still active within 5024# double-quoted strings. 5025sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 5026 5027# Same as above, but do not quote variable references. 5028double_quote_subst='s/\(["`\\]\)/\\\1/g' 5029 5030# Sed substitution to delay expansion of an escaped shell variable in a 5031# double_quote_subst'ed string. 5032delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 5033 5034# Sed substitution to delay expansion of an escaped single quote. 5035delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 5036 5037# Sed substitution to avoid accidental globbing in evaled expressions 5038no_glob_subst='s/\*/\\\*/g' 5039 5040ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 5041ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 5042ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 5043 5044{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 5045printf %s "checking how to print strings... " >&6; } 5046# Test print first, because it will be a builtin if present. 5047if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 5048 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 5049 ECHO='print -r --' 5050elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 5051 ECHO='printf %s\n' 5052else 5053 # Use this function as a fallback that always works. 5054 func_fallback_echo () 5055 { 5056 eval 'cat <<_LTECHO_EOF 5057$1 5058_LTECHO_EOF' 5059 } 5060 ECHO='func_fallback_echo' 5061fi 5062 5063# func_echo_all arg... 5064# Invoke $ECHO with all args, space-separated. 5065func_echo_all () 5066{ 5067 $ECHO "" 5068} 5069 5070case $ECHO in 5071 printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5 5072printf "%s\n" "printf" >&6; } ;; 5073 print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 5074printf "%s\n" "print -r" >&6; } ;; 5075 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5 5076printf "%s\n" "cat" >&6; } ;; 5077esac 5078 5079 5080 5081 5082 5083 5084 5085 5086 5087 5088 5089 5090 5091 5092{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 5093printf %s "checking for a sed that does not truncate output... " >&6; } 5094if test ${ac_cv_path_SED+y} 5095then : 5096 printf %s "(cached) " >&6 5097else $as_nop 5098 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 5099 for ac_i in 1 2 3 4 5 6 7; do 5100 ac_script="$ac_script$as_nl$ac_script" 5101 done 5102 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 5103 { ac_script=; unset ac_script;} 5104 if test -z "$SED"; then 5105 ac_path_SED_found=false 5106 # Loop through the user's path and test for each of PROGNAME-LIST 5107 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5108for as_dir in $PATH 5109do 5110 IFS=$as_save_IFS 5111 case $as_dir in #((( 5112 '') as_dir=./ ;; 5113 */) ;; 5114 *) as_dir=$as_dir/ ;; 5115 esac 5116 for ac_prog in sed gsed 5117 do 5118 for ac_exec_ext in '' $ac_executable_extensions; do 5119 ac_path_SED="$as_dir$ac_prog$ac_exec_ext" 5120 as_fn_executable_p "$ac_path_SED" || continue 5121# Check for GNU ac_path_SED and select it if it is found. 5122 # Check for GNU $ac_path_SED 5123case `"$ac_path_SED" --version 2>&1` in 5124*GNU*) 5125 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 5126*) 5127 ac_count=0 5128 printf %s 0123456789 >"conftest.in" 5129 while : 5130 do 5131 cat "conftest.in" "conftest.in" >"conftest.tmp" 5132 mv "conftest.tmp" "conftest.in" 5133 cp "conftest.in" "conftest.nl" 5134 printf "%s\n" '' >> "conftest.nl" 5135 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 5136 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5137 as_fn_arith $ac_count + 1 && ac_count=$as_val 5138 if test $ac_count -gt ${ac_path_SED_max-0}; then 5139 # Best one so far, save it but keep looking for a better one 5140 ac_cv_path_SED="$ac_path_SED" 5141 ac_path_SED_max=$ac_count 5142 fi 5143 # 10*(2^10) chars as input seems more than enough 5144 test $ac_count -gt 10 && break 5145 done 5146 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5147esac 5148 5149 $ac_path_SED_found && break 3 5150 done 5151 done 5152 done 5153IFS=$as_save_IFS 5154 if test -z "$ac_cv_path_SED"; then 5155 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 5156 fi 5157else 5158 ac_cv_path_SED=$SED 5159fi 5160 5161fi 5162{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 5163printf "%s\n" "$ac_cv_path_SED" >&6; } 5164 SED="$ac_cv_path_SED" 5165 rm -f conftest.sed 5166 5167test -z "$SED" && SED=sed 5168Xsed="$SED -e 1s/^X//" 5169 5170 5171 5172 5173 5174 5175 5176 5177 5178 5179 5180{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 5181printf %s "checking for grep that handles long lines and -e... " >&6; } 5182if test ${ac_cv_path_GREP+y} 5183then : 5184 printf %s "(cached) " >&6 5185else $as_nop 5186 if test -z "$GREP"; then 5187 ac_path_GREP_found=false 5188 # Loop through the user's path and test for each of PROGNAME-LIST 5189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5190for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5191do 5192 IFS=$as_save_IFS 5193 case $as_dir in #((( 5194 '') as_dir=./ ;; 5195 */) ;; 5196 *) as_dir=$as_dir/ ;; 5197 esac 5198 for ac_prog in grep ggrep 5199 do 5200 for ac_exec_ext in '' $ac_executable_extensions; do 5201 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext" 5202 as_fn_executable_p "$ac_path_GREP" || continue 5203# Check for GNU ac_path_GREP and select it if it is found. 5204 # Check for GNU $ac_path_GREP 5205case `"$ac_path_GREP" --version 2>&1` in 5206*GNU*) 5207 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 5208*) 5209 ac_count=0 5210 printf %s 0123456789 >"conftest.in" 5211 while : 5212 do 5213 cat "conftest.in" "conftest.in" >"conftest.tmp" 5214 mv "conftest.tmp" "conftest.in" 5215 cp "conftest.in" "conftest.nl" 5216 printf "%s\n" 'GREP' >> "conftest.nl" 5217 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 5218 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5219 as_fn_arith $ac_count + 1 && ac_count=$as_val 5220 if test $ac_count -gt ${ac_path_GREP_max-0}; then 5221 # Best one so far, save it but keep looking for a better one 5222 ac_cv_path_GREP="$ac_path_GREP" 5223 ac_path_GREP_max=$ac_count 5224 fi 5225 # 10*(2^10) chars as input seems more than enough 5226 test $ac_count -gt 10 && break 5227 done 5228 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5229esac 5230 5231 $ac_path_GREP_found && break 3 5232 done 5233 done 5234 done 5235IFS=$as_save_IFS 5236 if test -z "$ac_cv_path_GREP"; then 5237 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5238 fi 5239else 5240 ac_cv_path_GREP=$GREP 5241fi 5242 5243fi 5244{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 5245printf "%s\n" "$ac_cv_path_GREP" >&6; } 5246 GREP="$ac_cv_path_GREP" 5247 5248 5249{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 5250printf %s "checking for egrep... " >&6; } 5251if test ${ac_cv_path_EGREP+y} 5252then : 5253 printf %s "(cached) " >&6 5254else $as_nop 5255 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 5256 then ac_cv_path_EGREP="$GREP -E" 5257 else 5258 if test -z "$EGREP"; then 5259 ac_path_EGREP_found=false 5260 # Loop through the user's path and test for each of PROGNAME-LIST 5261 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5262for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5263do 5264 IFS=$as_save_IFS 5265 case $as_dir in #((( 5266 '') as_dir=./ ;; 5267 */) ;; 5268 *) as_dir=$as_dir/ ;; 5269 esac 5270 for ac_prog in egrep 5271 do 5272 for ac_exec_ext in '' $ac_executable_extensions; do 5273 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext" 5274 as_fn_executable_p "$ac_path_EGREP" || continue 5275# Check for GNU ac_path_EGREP and select it if it is found. 5276 # Check for GNU $ac_path_EGREP 5277case `"$ac_path_EGREP" --version 2>&1` in 5278*GNU*) 5279 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 5280*) 5281 ac_count=0 5282 printf %s 0123456789 >"conftest.in" 5283 while : 5284 do 5285 cat "conftest.in" "conftest.in" >"conftest.tmp" 5286 mv "conftest.tmp" "conftest.in" 5287 cp "conftest.in" "conftest.nl" 5288 printf "%s\n" 'EGREP' >> "conftest.nl" 5289 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 5290 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5291 as_fn_arith $ac_count + 1 && ac_count=$as_val 5292 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 5293 # Best one so far, save it but keep looking for a better one 5294 ac_cv_path_EGREP="$ac_path_EGREP" 5295 ac_path_EGREP_max=$ac_count 5296 fi 5297 # 10*(2^10) chars as input seems more than enough 5298 test $ac_count -gt 10 && break 5299 done 5300 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5301esac 5302 5303 $ac_path_EGREP_found && break 3 5304 done 5305 done 5306 done 5307IFS=$as_save_IFS 5308 if test -z "$ac_cv_path_EGREP"; then 5309 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5310 fi 5311else 5312 ac_cv_path_EGREP=$EGREP 5313fi 5314 5315 fi 5316fi 5317{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 5318printf "%s\n" "$ac_cv_path_EGREP" >&6; } 5319 EGREP="$ac_cv_path_EGREP" 5320 5321 5322{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 5323printf %s "checking for fgrep... " >&6; } 5324if test ${ac_cv_path_FGREP+y} 5325then : 5326 printf %s "(cached) " >&6 5327else $as_nop 5328 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 5329 then ac_cv_path_FGREP="$GREP -F" 5330 else 5331 if test -z "$FGREP"; then 5332 ac_path_FGREP_found=false 5333 # Loop through the user's path and test for each of PROGNAME-LIST 5334 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5335for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5336do 5337 IFS=$as_save_IFS 5338 case $as_dir in #((( 5339 '') as_dir=./ ;; 5340 */) ;; 5341 *) as_dir=$as_dir/ ;; 5342 esac 5343 for ac_prog in fgrep 5344 do 5345 for ac_exec_ext in '' $ac_executable_extensions; do 5346 ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext" 5347 as_fn_executable_p "$ac_path_FGREP" || continue 5348# Check for GNU ac_path_FGREP and select it if it is found. 5349 # Check for GNU $ac_path_FGREP 5350case `"$ac_path_FGREP" --version 2>&1` in 5351*GNU*) 5352 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 5353*) 5354 ac_count=0 5355 printf %s 0123456789 >"conftest.in" 5356 while : 5357 do 5358 cat "conftest.in" "conftest.in" >"conftest.tmp" 5359 mv "conftest.tmp" "conftest.in" 5360 cp "conftest.in" "conftest.nl" 5361 printf "%s\n" 'FGREP' >> "conftest.nl" 5362 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 5363 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5364 as_fn_arith $ac_count + 1 && ac_count=$as_val 5365 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 5366 # Best one so far, save it but keep looking for a better one 5367 ac_cv_path_FGREP="$ac_path_FGREP" 5368 ac_path_FGREP_max=$ac_count 5369 fi 5370 # 10*(2^10) chars as input seems more than enough 5371 test $ac_count -gt 10 && break 5372 done 5373 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5374esac 5375 5376 $ac_path_FGREP_found && break 3 5377 done 5378 done 5379 done 5380IFS=$as_save_IFS 5381 if test -z "$ac_cv_path_FGREP"; then 5382 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5383 fi 5384else 5385 ac_cv_path_FGREP=$FGREP 5386fi 5387 5388 fi 5389fi 5390{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 5391printf "%s\n" "$ac_cv_path_FGREP" >&6; } 5392 FGREP="$ac_cv_path_FGREP" 5393 5394 5395test -z "$GREP" && GREP=grep 5396 5397 5398 5399 5400 5401 5402 5403 5404 5405 5406 5407 5408 5409 5410 5411 5412 5413 5414 5415# Check whether --with-gnu-ld was given. 5416if test ${with_gnu_ld+y} 5417then : 5418 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 5419else $as_nop 5420 with_gnu_ld=no 5421fi 5422 5423ac_prog=ld 5424if test yes = "$GCC"; then 5425 # Check if gcc -print-prog-name=ld gives a path. 5426 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 5427printf %s "checking for ld used by $CC... " >&6; } 5428 case $host in 5429 *-*-mingw*) 5430 # gcc leaves a trailing carriage return, which upsets mingw 5431 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 5432 *) 5433 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 5434 esac 5435 case $ac_prog in 5436 # Accept absolute paths. 5437 [\\/]* | ?:[\\/]*) 5438 re_direlt='/[^/][^/]*/\.\./' 5439 # Canonicalize the pathname of ld 5440 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 5441 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 5442 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 5443 done 5444 test -z "$LD" && LD=$ac_prog 5445 ;; 5446 "") 5447 # If it fails, then pretend we aren't using GCC. 5448 ac_prog=ld 5449 ;; 5450 *) 5451 # If it is relative, then search for the first ld in PATH. 5452 with_gnu_ld=unknown 5453 ;; 5454 esac 5455elif test yes = "$with_gnu_ld"; then 5456 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 5457printf %s "checking for GNU ld... " >&6; } 5458else 5459 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 5460printf %s "checking for non-GNU ld... " >&6; } 5461fi 5462if test ${lt_cv_path_LD+y} 5463then : 5464 printf %s "(cached) " >&6 5465else $as_nop 5466 if test -z "$LD"; then 5467 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 5468 for ac_dir in $PATH; do 5469 IFS=$lt_save_ifs 5470 test -z "$ac_dir" && ac_dir=. 5471 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 5472 lt_cv_path_LD=$ac_dir/$ac_prog 5473 # Check to see if the program is GNU ld. I'd rather use --version, 5474 # but apparently some variants of GNU ld only accept -v. 5475 # Break only if it was the GNU/non-GNU ld that we prefer. 5476 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 5477 *GNU* | *'with BFD'*) 5478 test no != "$with_gnu_ld" && break 5479 ;; 5480 *) 5481 test yes != "$with_gnu_ld" && break 5482 ;; 5483 esac 5484 fi 5485 done 5486 IFS=$lt_save_ifs 5487else 5488 lt_cv_path_LD=$LD # Let the user override the test with a path. 5489fi 5490fi 5491 5492LD=$lt_cv_path_LD 5493if test -n "$LD"; then 5494 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 5495printf "%s\n" "$LD" >&6; } 5496else 5497 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5498printf "%s\n" "no" >&6; } 5499fi 5500test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 5501{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 5502printf %s "checking if the linker ($LD) is GNU ld... " >&6; } 5503if test ${lt_cv_prog_gnu_ld+y} 5504then : 5505 printf %s "(cached) " >&6 5506else $as_nop 5507 # I'd rather use --version here, but apparently some GNU lds only accept -v. 5508case `$LD -v 2>&1 </dev/null` in 5509*GNU* | *'with BFD'*) 5510 lt_cv_prog_gnu_ld=yes 5511 ;; 5512*) 5513 lt_cv_prog_gnu_ld=no 5514 ;; 5515esac 5516fi 5517{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 5518printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; } 5519with_gnu_ld=$lt_cv_prog_gnu_ld 5520 5521 5522 5523 5524 5525 5526 5527 5528 5529{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 5530printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 5531if test ${lt_cv_path_NM+y} 5532then : 5533 printf %s "(cached) " >&6 5534else $as_nop 5535 if test -n "$NM"; then 5536 # Let the user override the test. 5537 lt_cv_path_NM=$NM 5538else 5539 lt_nm_to_check=${ac_tool_prefix}nm 5540 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 5541 lt_nm_to_check="$lt_nm_to_check nm" 5542 fi 5543 for lt_tmp_nm in $lt_nm_to_check; do 5544 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 5545 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 5546 IFS=$lt_save_ifs 5547 test -z "$ac_dir" && ac_dir=. 5548 tmp_nm=$ac_dir/$lt_tmp_nm 5549 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then 5550 # Check to see if the nm accepts a BSD-compat flag. 5551 # Adding the 'sed 1q' prevents false positives on HP-UX, which says: 5552 # nm: unknown option "B" ignored 5553 # Tru64's nm complains that /dev/null is an invalid object file 5554 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty 5555 case $build_os in 5556 mingw*) lt_bad_file=conftest.nm/nofile ;; 5557 *) lt_bad_file=/dev/null ;; 5558 esac 5559 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in 5560 *$lt_bad_file* | *'Invalid file or object type'*) 5561 lt_cv_path_NM="$tmp_nm -B" 5562 break 2 5563 ;; 5564 *) 5565 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 5566 */dev/null*) 5567 lt_cv_path_NM="$tmp_nm -p" 5568 break 2 5569 ;; 5570 *) 5571 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 5572 continue # so that we can try to find one that supports BSD flags 5573 ;; 5574 esac 5575 ;; 5576 esac 5577 fi 5578 done 5579 IFS=$lt_save_ifs 5580 done 5581 : ${lt_cv_path_NM=no} 5582fi 5583fi 5584{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 5585printf "%s\n" "$lt_cv_path_NM" >&6; } 5586if test no != "$lt_cv_path_NM"; then 5587 NM=$lt_cv_path_NM 5588else 5589 # Didn't find any BSD compatible name lister, look for dumpbin. 5590 if test -n "$DUMPBIN"; then : 5591 # Let the user override the test. 5592 else 5593 if test -n "$ac_tool_prefix"; then 5594 for ac_prog in dumpbin "link -dump" 5595 do 5596 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5597set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5598{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5599printf %s "checking for $ac_word... " >&6; } 5600if test ${ac_cv_prog_DUMPBIN+y} 5601then : 5602 printf %s "(cached) " >&6 5603else $as_nop 5604 if test -n "$DUMPBIN"; then 5605 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 5606else 5607as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5608for as_dir in $PATH 5609do 5610 IFS=$as_save_IFS 5611 case $as_dir in #((( 5612 '') as_dir=./ ;; 5613 */) ;; 5614 *) as_dir=$as_dir/ ;; 5615 esac 5616 for ac_exec_ext in '' $ac_executable_extensions; do 5617 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5618 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 5619 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5620 break 2 5621 fi 5622done 5623 done 5624IFS=$as_save_IFS 5625 5626fi 5627fi 5628DUMPBIN=$ac_cv_prog_DUMPBIN 5629if test -n "$DUMPBIN"; then 5630 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 5631printf "%s\n" "$DUMPBIN" >&6; } 5632else 5633 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5634printf "%s\n" "no" >&6; } 5635fi 5636 5637 5638 test -n "$DUMPBIN" && break 5639 done 5640fi 5641if test -z "$DUMPBIN"; then 5642 ac_ct_DUMPBIN=$DUMPBIN 5643 for ac_prog in dumpbin "link -dump" 5644do 5645 # Extract the first word of "$ac_prog", so it can be a program name with args. 5646set dummy $ac_prog; ac_word=$2 5647{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5648printf %s "checking for $ac_word... " >&6; } 5649if test ${ac_cv_prog_ac_ct_DUMPBIN+y} 5650then : 5651 printf %s "(cached) " >&6 5652else $as_nop 5653 if test -n "$ac_ct_DUMPBIN"; then 5654 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 5655else 5656as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5657for as_dir in $PATH 5658do 5659 IFS=$as_save_IFS 5660 case $as_dir in #((( 5661 '') as_dir=./ ;; 5662 */) ;; 5663 *) as_dir=$as_dir/ ;; 5664 esac 5665 for ac_exec_ext in '' $ac_executable_extensions; do 5666 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5667 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 5668 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5669 break 2 5670 fi 5671done 5672 done 5673IFS=$as_save_IFS 5674 5675fi 5676fi 5677ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 5678if test -n "$ac_ct_DUMPBIN"; then 5679 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 5680printf "%s\n" "$ac_ct_DUMPBIN" >&6; } 5681else 5682 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5683printf "%s\n" "no" >&6; } 5684fi 5685 5686 5687 test -n "$ac_ct_DUMPBIN" && break 5688done 5689 5690 if test "x$ac_ct_DUMPBIN" = x; then 5691 DUMPBIN=":" 5692 else 5693 case $cross_compiling:$ac_tool_warned in 5694yes:) 5695{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5696printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5697ac_tool_warned=yes ;; 5698esac 5699 DUMPBIN=$ac_ct_DUMPBIN 5700 fi 5701fi 5702 5703 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in 5704 *COFF*) 5705 DUMPBIN="$DUMPBIN -symbols -headers" 5706 ;; 5707 *) 5708 DUMPBIN=: 5709 ;; 5710 esac 5711 fi 5712 5713 if test : != "$DUMPBIN"; then 5714 NM=$DUMPBIN 5715 fi 5716fi 5717test -z "$NM" && NM=nm 5718 5719 5720 5721 5722 5723 5724{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 5725printf %s "checking the name lister ($NM) interface... " >&6; } 5726if test ${lt_cv_nm_interface+y} 5727then : 5728 printf %s "(cached) " >&6 5729else $as_nop 5730 lt_cv_nm_interface="BSD nm" 5731 echo "int some_variable = 0;" > conftest.$ac_ext 5732 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 5733 (eval "$ac_compile" 2>conftest.err) 5734 cat conftest.err >&5 5735 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 5736 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 5737 cat conftest.err >&5 5738 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 5739 cat conftest.out >&5 5740 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 5741 lt_cv_nm_interface="MS dumpbin" 5742 fi 5743 rm -f conftest* 5744fi 5745{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 5746printf "%s\n" "$lt_cv_nm_interface" >&6; } 5747 5748{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 5749printf %s "checking whether ln -s works... " >&6; } 5750LN_S=$as_ln_s 5751if test "$LN_S" = "ln -s"; then 5752 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5753printf "%s\n" "yes" >&6; } 5754else 5755 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 5756printf "%s\n" "no, using $LN_S" >&6; } 5757fi 5758 5759# find the maximum length of command line arguments 5760{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 5761printf %s "checking the maximum length of command line arguments... " >&6; } 5762if test ${lt_cv_sys_max_cmd_len+y} 5763then : 5764 printf %s "(cached) " >&6 5765else $as_nop 5766 i=0 5767 teststring=ABCD 5768 5769 case $build_os in 5770 msdosdjgpp*) 5771 # On DJGPP, this test can blow up pretty badly due to problems in libc 5772 # (any single argument exceeding 2000 bytes causes a buffer overrun 5773 # during glob expansion). Even if it were fixed, the result of this 5774 # check would be larger than it should be. 5775 lt_cv_sys_max_cmd_len=12288; # 12K is about right 5776 ;; 5777 5778 gnu*) 5779 # Under GNU Hurd, this test is not required because there is 5780 # no limit to the length of command line arguments. 5781 # Libtool will interpret -1 as no limit whatsoever 5782 lt_cv_sys_max_cmd_len=-1; 5783 ;; 5784 5785 cygwin* | mingw* | cegcc*) 5786 # On Win9x/ME, this test blows up -- it succeeds, but takes 5787 # about 5 minutes as the teststring grows exponentially. 5788 # Worse, since 9x/ME are not pre-emptively multitasking, 5789 # you end up with a "frozen" computer, even though with patience 5790 # the test eventually succeeds (with a max line length of 256k). 5791 # Instead, let's just punt: use the minimum linelength reported by 5792 # all of the supported platforms: 8192 (on NT/2K/XP). 5793 lt_cv_sys_max_cmd_len=8192; 5794 ;; 5795 5796 mint*) 5797 # On MiNT this can take a long time and run out of memory. 5798 lt_cv_sys_max_cmd_len=8192; 5799 ;; 5800 5801 amigaos*) 5802 # On AmigaOS with pdksh, this test takes hours, literally. 5803 # So we just punt and use a minimum line length of 8192. 5804 lt_cv_sys_max_cmd_len=8192; 5805 ;; 5806 5807 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*) 5808 # This has been around since 386BSD, at least. Likely further. 5809 if test -x /sbin/sysctl; then 5810 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 5811 elif test -x /usr/sbin/sysctl; then 5812 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 5813 else 5814 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 5815 fi 5816 # And add a safety zone 5817 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5818 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5819 ;; 5820 5821 interix*) 5822 # We know the value 262144 and hardcode it with a safety zone (like BSD) 5823 lt_cv_sys_max_cmd_len=196608 5824 ;; 5825 5826 os2*) 5827 # The test takes a long time on OS/2. 5828 lt_cv_sys_max_cmd_len=8192 5829 ;; 5830 5831 osf*) 5832 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 5833 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 5834 # nice to cause kernel panics so lets avoid the loop below. 5835 # First set a reasonable default. 5836 lt_cv_sys_max_cmd_len=16384 5837 # 5838 if test -x /sbin/sysconfig; then 5839 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 5840 *1*) lt_cv_sys_max_cmd_len=-1 ;; 5841 esac 5842 fi 5843 ;; 5844 sco3.2v5*) 5845 lt_cv_sys_max_cmd_len=102400 5846 ;; 5847 sysv5* | sco5v6* | sysv4.2uw2*) 5848 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 5849 if test -n "$kargmax"; then 5850 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 5851 else 5852 lt_cv_sys_max_cmd_len=32768 5853 fi 5854 ;; 5855 *) 5856 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 5857 if test -n "$lt_cv_sys_max_cmd_len" && \ 5858 test undefined != "$lt_cv_sys_max_cmd_len"; then 5859 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5860 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5861 else 5862 # Make teststring a little bigger before we do anything with it. 5863 # a 1K string should be a reasonable start. 5864 for i in 1 2 3 4 5 6 7 8; do 5865 teststring=$teststring$teststring 5866 done 5867 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 5868 # If test is not a shell built-in, we'll probably end up computing a 5869 # maximum length that is only half of the actual maximum length, but 5870 # we can't tell. 5871 while { test X`env echo "$teststring$teststring" 2>/dev/null` \ 5872 = "X$teststring$teststring"; } >/dev/null 2>&1 && 5873 test 17 != "$i" # 1/2 MB should be enough 5874 do 5875 i=`expr $i + 1` 5876 teststring=$teststring$teststring 5877 done 5878 # Only check the string length outside the loop. 5879 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 5880 teststring= 5881 # Add a significant safety factor because C++ compilers can tack on 5882 # massive amounts of additional arguments before passing them to the 5883 # linker. It appears as though 1/2 is a usable value. 5884 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 5885 fi 5886 ;; 5887 esac 5888 5889fi 5890 5891if test -n "$lt_cv_sys_max_cmd_len"; then 5892 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 5893printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; } 5894else 5895 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5 5896printf "%s\n" "none" >&6; } 5897fi 5898max_cmd_len=$lt_cv_sys_max_cmd_len 5899 5900 5901 5902 5903 5904 5905: ${CP="cp -f"} 5906: ${MV="mv -f"} 5907: ${RM="rm -f"} 5908 5909if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 5910 lt_unset=unset 5911else 5912 lt_unset=false 5913fi 5914 5915 5916 5917 5918 5919# test EBCDIC or ASCII 5920case `echo X|tr X '\101'` in 5921 A) # ASCII based system 5922 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 5923 lt_SP2NL='tr \040 \012' 5924 lt_NL2SP='tr \015\012 \040\040' 5925 ;; 5926 *) # EBCDIC based system 5927 lt_SP2NL='tr \100 \n' 5928 lt_NL2SP='tr \r\n \100\100' 5929 ;; 5930esac 5931 5932 5933 5934 5935 5936 5937 5938 5939 5940{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 5941printf %s "checking how to convert $build file names to $host format... " >&6; } 5942if test ${lt_cv_to_host_file_cmd+y} 5943then : 5944 printf %s "(cached) " >&6 5945else $as_nop 5946 case $host in 5947 *-*-mingw* ) 5948 case $build in 5949 *-*-mingw* ) # actually msys 5950 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 5951 ;; 5952 *-*-cygwin* ) 5953 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 5954 ;; 5955 * ) # otherwise, assume *nix 5956 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 5957 ;; 5958 esac 5959 ;; 5960 *-*-cygwin* ) 5961 case $build in 5962 *-*-mingw* ) # actually msys 5963 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 5964 ;; 5965 *-*-cygwin* ) 5966 lt_cv_to_host_file_cmd=func_convert_file_noop 5967 ;; 5968 * ) # otherwise, assume *nix 5969 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 5970 ;; 5971 esac 5972 ;; 5973 * ) # unhandled hosts (and "normal" native builds) 5974 lt_cv_to_host_file_cmd=func_convert_file_noop 5975 ;; 5976esac 5977 5978fi 5979 5980to_host_file_cmd=$lt_cv_to_host_file_cmd 5981{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 5982printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; } 5983 5984 5985 5986 5987 5988{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 5989printf %s "checking how to convert $build file names to toolchain format... " >&6; } 5990if test ${lt_cv_to_tool_file_cmd+y} 5991then : 5992 printf %s "(cached) " >&6 5993else $as_nop 5994 #assume ordinary cross tools, or native build. 5995lt_cv_to_tool_file_cmd=func_convert_file_noop 5996case $host in 5997 *-*-mingw* ) 5998 case $build in 5999 *-*-mingw* ) # actually msys 6000 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 6001 ;; 6002 esac 6003 ;; 6004esac 6005 6006fi 6007 6008to_tool_file_cmd=$lt_cv_to_tool_file_cmd 6009{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 6010printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; } 6011 6012 6013 6014 6015 6016{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 6017printf %s "checking for $LD option to reload object files... " >&6; } 6018if test ${lt_cv_ld_reload_flag+y} 6019then : 6020 printf %s "(cached) " >&6 6021else $as_nop 6022 lt_cv_ld_reload_flag='-r' 6023fi 6024{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 6025printf "%s\n" "$lt_cv_ld_reload_flag" >&6; } 6026reload_flag=$lt_cv_ld_reload_flag 6027case $reload_flag in 6028"" | " "*) ;; 6029*) reload_flag=" $reload_flag" ;; 6030esac 6031reload_cmds='$LD$reload_flag -o $output$reload_objs' 6032case $host_os in 6033 cygwin* | mingw* | pw32* | cegcc*) 6034 if test yes != "$GCC"; then 6035 reload_cmds=false 6036 fi 6037 ;; 6038 darwin*) 6039 if test yes = "$GCC"; then 6040 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' 6041 else 6042 reload_cmds='$LD$reload_flag -o $output$reload_objs' 6043 fi 6044 ;; 6045esac 6046 6047 6048 6049 6050 6051 6052 6053 6054 6055if test -n "$ac_tool_prefix"; then 6056 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 6057set dummy ${ac_tool_prefix}objdump; ac_word=$2 6058{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6059printf %s "checking for $ac_word... " >&6; } 6060if test ${ac_cv_prog_OBJDUMP+y} 6061then : 6062 printf %s "(cached) " >&6 6063else $as_nop 6064 if test -n "$OBJDUMP"; then 6065 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 6066else 6067as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6068for as_dir in $PATH 6069do 6070 IFS=$as_save_IFS 6071 case $as_dir in #((( 6072 '') as_dir=./ ;; 6073 */) ;; 6074 *) as_dir=$as_dir/ ;; 6075 esac 6076 for ac_exec_ext in '' $ac_executable_extensions; do 6077 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6078 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 6079 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6080 break 2 6081 fi 6082done 6083 done 6084IFS=$as_save_IFS 6085 6086fi 6087fi 6088OBJDUMP=$ac_cv_prog_OBJDUMP 6089if test -n "$OBJDUMP"; then 6090 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 6091printf "%s\n" "$OBJDUMP" >&6; } 6092else 6093 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6094printf "%s\n" "no" >&6; } 6095fi 6096 6097 6098fi 6099if test -z "$ac_cv_prog_OBJDUMP"; then 6100 ac_ct_OBJDUMP=$OBJDUMP 6101 # Extract the first word of "objdump", so it can be a program name with args. 6102set dummy objdump; ac_word=$2 6103{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6104printf %s "checking for $ac_word... " >&6; } 6105if test ${ac_cv_prog_ac_ct_OBJDUMP+y} 6106then : 6107 printf %s "(cached) " >&6 6108else $as_nop 6109 if test -n "$ac_ct_OBJDUMP"; then 6110 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 6111else 6112as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6113for as_dir in $PATH 6114do 6115 IFS=$as_save_IFS 6116 case $as_dir in #((( 6117 '') as_dir=./ ;; 6118 */) ;; 6119 *) as_dir=$as_dir/ ;; 6120 esac 6121 for ac_exec_ext in '' $ac_executable_extensions; do 6122 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6123 ac_cv_prog_ac_ct_OBJDUMP="objdump" 6124 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6125 break 2 6126 fi 6127done 6128 done 6129IFS=$as_save_IFS 6130 6131fi 6132fi 6133ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 6134if test -n "$ac_ct_OBJDUMP"; then 6135 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 6136printf "%s\n" "$ac_ct_OBJDUMP" >&6; } 6137else 6138 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6139printf "%s\n" "no" >&6; } 6140fi 6141 6142 if test "x$ac_ct_OBJDUMP" = x; then 6143 OBJDUMP="false" 6144 else 6145 case $cross_compiling:$ac_tool_warned in 6146yes:) 6147{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6148printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6149ac_tool_warned=yes ;; 6150esac 6151 OBJDUMP=$ac_ct_OBJDUMP 6152 fi 6153else 6154 OBJDUMP="$ac_cv_prog_OBJDUMP" 6155fi 6156 6157test -z "$OBJDUMP" && OBJDUMP=objdump 6158 6159 6160 6161 6162 6163 6164 6165 6166 6167{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 6168printf %s "checking how to recognize dependent libraries... " >&6; } 6169if test ${lt_cv_deplibs_check_method+y} 6170then : 6171 printf %s "(cached) " >&6 6172else $as_nop 6173 lt_cv_file_magic_cmd='$MAGIC_CMD' 6174lt_cv_file_magic_test_file= 6175lt_cv_deplibs_check_method='unknown' 6176# Need to set the preceding variable on all platforms that support 6177# interlibrary dependencies. 6178# 'none' -- dependencies not supported. 6179# 'unknown' -- same as none, but documents that we really don't know. 6180# 'pass_all' -- all dependencies passed with no checks. 6181# 'test_compile' -- check by making test program. 6182# 'file_magic [[regex]]' -- check by looking for files in library path 6183# that responds to the $file_magic_cmd with a given extended regex. 6184# If you have 'file' or equivalent on your system and you're not sure 6185# whether 'pass_all' will *always* work, you probably want this one. 6186 6187case $host_os in 6188aix[4-9]*) 6189 lt_cv_deplibs_check_method=pass_all 6190 ;; 6191 6192beos*) 6193 lt_cv_deplibs_check_method=pass_all 6194 ;; 6195 6196bsdi[45]*) 6197 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 6198 lt_cv_file_magic_cmd='/usr/bin/file -L' 6199 lt_cv_file_magic_test_file=/shlib/libc.so 6200 ;; 6201 6202cygwin*) 6203 # func_win32_libid is a shell function defined in ltmain.sh 6204 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 6205 lt_cv_file_magic_cmd='func_win32_libid' 6206 ;; 6207 6208mingw* | pw32*) 6209 # Base MSYS/MinGW do not provide the 'file' command needed by 6210 # func_win32_libid shell function, so use a weaker test based on 'objdump', 6211 # unless we find 'file', for example because we are cross-compiling. 6212 if ( file / ) >/dev/null 2>&1; then 6213 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 6214 lt_cv_file_magic_cmd='func_win32_libid' 6215 else 6216 # Keep this pattern in sync with the one in func_win32_libid. 6217 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 6218 lt_cv_file_magic_cmd='$OBJDUMP -f' 6219 fi 6220 ;; 6221 6222cegcc*) 6223 # use the weaker test based on 'objdump'. See mingw*. 6224 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 6225 lt_cv_file_magic_cmd='$OBJDUMP -f' 6226 ;; 6227 6228darwin* | rhapsody*) 6229 lt_cv_deplibs_check_method=pass_all 6230 ;; 6231 6232freebsd* | dragonfly*) 6233 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 6234 case $host_cpu in 6235 i*86 ) 6236 # Not sure whether the presence of OpenBSD here was a mistake. 6237 # Let's accept both of them until this is cleared up. 6238 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 6239 lt_cv_file_magic_cmd=/usr/bin/file 6240 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 6241 ;; 6242 esac 6243 else 6244 lt_cv_deplibs_check_method=pass_all 6245 fi 6246 ;; 6247 6248haiku*) 6249 lt_cv_deplibs_check_method=pass_all 6250 ;; 6251 6252hpux10.20* | hpux11*) 6253 lt_cv_file_magic_cmd=/usr/bin/file 6254 case $host_cpu in 6255 ia64*) 6256 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 6257 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 6258 ;; 6259 hppa*64*) 6260 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]' 6261 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 6262 ;; 6263 *) 6264 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 6265 lt_cv_file_magic_test_file=/usr/lib/libc.sl 6266 ;; 6267 esac 6268 ;; 6269 6270interix[3-9]*) 6271 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 6272 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 6273 ;; 6274 6275irix5* | irix6* | nonstopux*) 6276 case $LD in 6277 *-32|*"-32 ") libmagic=32-bit;; 6278 *-n32|*"-n32 ") libmagic=N32;; 6279 *-64|*"-64 ") libmagic=64-bit;; 6280 *) libmagic=never-match;; 6281 esac 6282 lt_cv_deplibs_check_method=pass_all 6283 ;; 6284 6285# This must be glibc/ELF. 6286linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 6287 lt_cv_deplibs_check_method=pass_all 6288 ;; 6289 6290netbsd*) 6291 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 6292 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6293 else 6294 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 6295 fi 6296 ;; 6297 6298newos6*) 6299 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 6300 lt_cv_file_magic_cmd=/usr/bin/file 6301 lt_cv_file_magic_test_file=/usr/lib/libnls.so 6302 ;; 6303 6304*nto* | *qnx*) 6305 lt_cv_deplibs_check_method=pass_all 6306 ;; 6307 6308openbsd* | bitrig*) 6309 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 6310 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 6311 else 6312 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6313 fi 6314 ;; 6315 6316osf3* | osf4* | osf5*) 6317 lt_cv_deplibs_check_method=pass_all 6318 ;; 6319 6320rdos*) 6321 lt_cv_deplibs_check_method=pass_all 6322 ;; 6323 6324solaris*) 6325 lt_cv_deplibs_check_method=pass_all 6326 ;; 6327 6328sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 6329 lt_cv_deplibs_check_method=pass_all 6330 ;; 6331 6332sysv4 | sysv4.3*) 6333 case $host_vendor in 6334 motorola) 6335 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]' 6336 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 6337 ;; 6338 ncr) 6339 lt_cv_deplibs_check_method=pass_all 6340 ;; 6341 sequent) 6342 lt_cv_file_magic_cmd='/bin/file' 6343 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 6344 ;; 6345 sni) 6346 lt_cv_file_magic_cmd='/bin/file' 6347 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 6348 lt_cv_file_magic_test_file=/lib/libc.so 6349 ;; 6350 siemens) 6351 lt_cv_deplibs_check_method=pass_all 6352 ;; 6353 pc) 6354 lt_cv_deplibs_check_method=pass_all 6355 ;; 6356 esac 6357 ;; 6358 6359tpf*) 6360 lt_cv_deplibs_check_method=pass_all 6361 ;; 6362os2*) 6363 lt_cv_deplibs_check_method=pass_all 6364 ;; 6365esac 6366 6367fi 6368{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 6369printf "%s\n" "$lt_cv_deplibs_check_method" >&6; } 6370 6371file_magic_glob= 6372want_nocaseglob=no 6373if test "$build" = "$host"; then 6374 case $host_os in 6375 mingw* | pw32*) 6376 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 6377 want_nocaseglob=yes 6378 else 6379 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 6380 fi 6381 ;; 6382 esac 6383fi 6384 6385file_magic_cmd=$lt_cv_file_magic_cmd 6386deplibs_check_method=$lt_cv_deplibs_check_method 6387test -z "$deplibs_check_method" && deplibs_check_method=unknown 6388 6389 6390 6391 6392 6393 6394 6395 6396 6397 6398 6399 6400 6401 6402 6403 6404 6405 6406 6407 6408 6409 6410if test -n "$ac_tool_prefix"; then 6411 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 6412set dummy ${ac_tool_prefix}dlltool; ac_word=$2 6413{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6414printf %s "checking for $ac_word... " >&6; } 6415if test ${ac_cv_prog_DLLTOOL+y} 6416then : 6417 printf %s "(cached) " >&6 6418else $as_nop 6419 if test -n "$DLLTOOL"; then 6420 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 6421else 6422as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6423for as_dir in $PATH 6424do 6425 IFS=$as_save_IFS 6426 case $as_dir in #((( 6427 '') as_dir=./ ;; 6428 */) ;; 6429 *) as_dir=$as_dir/ ;; 6430 esac 6431 for ac_exec_ext in '' $ac_executable_extensions; do 6432 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6433 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 6434 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6435 break 2 6436 fi 6437done 6438 done 6439IFS=$as_save_IFS 6440 6441fi 6442fi 6443DLLTOOL=$ac_cv_prog_DLLTOOL 6444if test -n "$DLLTOOL"; then 6445 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 6446printf "%s\n" "$DLLTOOL" >&6; } 6447else 6448 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6449printf "%s\n" "no" >&6; } 6450fi 6451 6452 6453fi 6454if test -z "$ac_cv_prog_DLLTOOL"; then 6455 ac_ct_DLLTOOL=$DLLTOOL 6456 # Extract the first word of "dlltool", so it can be a program name with args. 6457set dummy dlltool; ac_word=$2 6458{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6459printf %s "checking for $ac_word... " >&6; } 6460if test ${ac_cv_prog_ac_ct_DLLTOOL+y} 6461then : 6462 printf %s "(cached) " >&6 6463else $as_nop 6464 if test -n "$ac_ct_DLLTOOL"; then 6465 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 6466else 6467as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6468for as_dir in $PATH 6469do 6470 IFS=$as_save_IFS 6471 case $as_dir in #((( 6472 '') as_dir=./ ;; 6473 */) ;; 6474 *) as_dir=$as_dir/ ;; 6475 esac 6476 for ac_exec_ext in '' $ac_executable_extensions; do 6477 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6478 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 6479 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6480 break 2 6481 fi 6482done 6483 done 6484IFS=$as_save_IFS 6485 6486fi 6487fi 6488ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 6489if test -n "$ac_ct_DLLTOOL"; then 6490 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 6491printf "%s\n" "$ac_ct_DLLTOOL" >&6; } 6492else 6493 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6494printf "%s\n" "no" >&6; } 6495fi 6496 6497 if test "x$ac_ct_DLLTOOL" = x; then 6498 DLLTOOL="false" 6499 else 6500 case $cross_compiling:$ac_tool_warned in 6501yes:) 6502{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6503printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6504ac_tool_warned=yes ;; 6505esac 6506 DLLTOOL=$ac_ct_DLLTOOL 6507 fi 6508else 6509 DLLTOOL="$ac_cv_prog_DLLTOOL" 6510fi 6511 6512test -z "$DLLTOOL" && DLLTOOL=dlltool 6513 6514 6515 6516 6517 6518 6519 6520 6521 6522 6523{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 6524printf %s "checking how to associate runtime and link libraries... " >&6; } 6525if test ${lt_cv_sharedlib_from_linklib_cmd+y} 6526then : 6527 printf %s "(cached) " >&6 6528else $as_nop 6529 lt_cv_sharedlib_from_linklib_cmd='unknown' 6530 6531case $host_os in 6532cygwin* | mingw* | pw32* | cegcc*) 6533 # two different shell functions defined in ltmain.sh; 6534 # decide which one to use based on capabilities of $DLLTOOL 6535 case `$DLLTOOL --help 2>&1` in 6536 *--identify-strict*) 6537 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 6538 ;; 6539 *) 6540 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 6541 ;; 6542 esac 6543 ;; 6544*) 6545 # fallback: assume linklib IS sharedlib 6546 lt_cv_sharedlib_from_linklib_cmd=$ECHO 6547 ;; 6548esac 6549 6550fi 6551{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 6552printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 6553sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 6554test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 6555 6556 6557 6558 6559 6560 6561 6562if test -n "$ac_tool_prefix"; then 6563 for ac_prog in ar 6564 do 6565 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 6566set dummy $ac_tool_prefix$ac_prog; ac_word=$2 6567{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6568printf %s "checking for $ac_word... " >&6; } 6569if test ${ac_cv_prog_AR+y} 6570then : 6571 printf %s "(cached) " >&6 6572else $as_nop 6573 if test -n "$AR"; then 6574 ac_cv_prog_AR="$AR" # Let the user override the test. 6575else 6576as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6577for as_dir in $PATH 6578do 6579 IFS=$as_save_IFS 6580 case $as_dir in #((( 6581 '') as_dir=./ ;; 6582 */) ;; 6583 *) as_dir=$as_dir/ ;; 6584 esac 6585 for ac_exec_ext in '' $ac_executable_extensions; do 6586 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6587 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 6588 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6589 break 2 6590 fi 6591done 6592 done 6593IFS=$as_save_IFS 6594 6595fi 6596fi 6597AR=$ac_cv_prog_AR 6598if test -n "$AR"; then 6599 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 6600printf "%s\n" "$AR" >&6; } 6601else 6602 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6603printf "%s\n" "no" >&6; } 6604fi 6605 6606 6607 test -n "$AR" && break 6608 done 6609fi 6610if test -z "$AR"; then 6611 ac_ct_AR=$AR 6612 for ac_prog in ar 6613do 6614 # Extract the first word of "$ac_prog", so it can be a program name with args. 6615set dummy $ac_prog; ac_word=$2 6616{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6617printf %s "checking for $ac_word... " >&6; } 6618if test ${ac_cv_prog_ac_ct_AR+y} 6619then : 6620 printf %s "(cached) " >&6 6621else $as_nop 6622 if test -n "$ac_ct_AR"; then 6623 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 6624else 6625as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6626for as_dir in $PATH 6627do 6628 IFS=$as_save_IFS 6629 case $as_dir in #((( 6630 '') as_dir=./ ;; 6631 */) ;; 6632 *) as_dir=$as_dir/ ;; 6633 esac 6634 for ac_exec_ext in '' $ac_executable_extensions; do 6635 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6636 ac_cv_prog_ac_ct_AR="$ac_prog" 6637 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6638 break 2 6639 fi 6640done 6641 done 6642IFS=$as_save_IFS 6643 6644fi 6645fi 6646ac_ct_AR=$ac_cv_prog_ac_ct_AR 6647if test -n "$ac_ct_AR"; then 6648 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 6649printf "%s\n" "$ac_ct_AR" >&6; } 6650else 6651 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6652printf "%s\n" "no" >&6; } 6653fi 6654 6655 6656 test -n "$ac_ct_AR" && break 6657done 6658 6659 if test "x$ac_ct_AR" = x; then 6660 AR="false" 6661 else 6662 case $cross_compiling:$ac_tool_warned in 6663yes:) 6664{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6665printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6666ac_tool_warned=yes ;; 6667esac 6668 AR=$ac_ct_AR 6669 fi 6670fi 6671 6672: ${AR=ar} 6673: ${AR_FLAGS=cru} 6674 6675 6676 6677 6678 6679 6680 6681 6682 6683 6684 6685{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 6686printf %s "checking for archiver @FILE support... " >&6; } 6687if test ${lt_cv_ar_at_file+y} 6688then : 6689 printf %s "(cached) " >&6 6690else $as_nop 6691 lt_cv_ar_at_file=no 6692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6693/* end confdefs.h. */ 6694 6695int 6696main (void) 6697{ 6698 6699 ; 6700 return 0; 6701} 6702_ACEOF 6703if ac_fn_c_try_compile "$LINENO" 6704then : 6705 echo conftest.$ac_objext > conftest.lst 6706 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 6707 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 6708 (eval $lt_ar_try) 2>&5 6709 ac_status=$? 6710 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6711 test $ac_status = 0; } 6712 if test 0 -eq "$ac_status"; then 6713 # Ensure the archiver fails upon bogus file names. 6714 rm -f conftest.$ac_objext libconftest.a 6715 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 6716 (eval $lt_ar_try) 2>&5 6717 ac_status=$? 6718 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6719 test $ac_status = 0; } 6720 if test 0 -ne "$ac_status"; then 6721 lt_cv_ar_at_file=@ 6722 fi 6723 fi 6724 rm -f conftest.* libconftest.a 6725 6726fi 6727rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6728 6729fi 6730{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 6731printf "%s\n" "$lt_cv_ar_at_file" >&6; } 6732 6733if test no = "$lt_cv_ar_at_file"; then 6734 archiver_list_spec= 6735else 6736 archiver_list_spec=$lt_cv_ar_at_file 6737fi 6738 6739 6740 6741 6742 6743 6744 6745if test -n "$ac_tool_prefix"; then 6746 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 6747set dummy ${ac_tool_prefix}strip; ac_word=$2 6748{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6749printf %s "checking for $ac_word... " >&6; } 6750if test ${ac_cv_prog_STRIP+y} 6751then : 6752 printf %s "(cached) " >&6 6753else $as_nop 6754 if test -n "$STRIP"; then 6755 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 6756else 6757as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6758for as_dir in $PATH 6759do 6760 IFS=$as_save_IFS 6761 case $as_dir in #((( 6762 '') as_dir=./ ;; 6763 */) ;; 6764 *) as_dir=$as_dir/ ;; 6765 esac 6766 for ac_exec_ext in '' $ac_executable_extensions; do 6767 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6768 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 6769 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6770 break 2 6771 fi 6772done 6773 done 6774IFS=$as_save_IFS 6775 6776fi 6777fi 6778STRIP=$ac_cv_prog_STRIP 6779if test -n "$STRIP"; then 6780 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 6781printf "%s\n" "$STRIP" >&6; } 6782else 6783 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6784printf "%s\n" "no" >&6; } 6785fi 6786 6787 6788fi 6789if test -z "$ac_cv_prog_STRIP"; then 6790 ac_ct_STRIP=$STRIP 6791 # Extract the first word of "strip", so it can be a program name with args. 6792set dummy strip; ac_word=$2 6793{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6794printf %s "checking for $ac_word... " >&6; } 6795if test ${ac_cv_prog_ac_ct_STRIP+y} 6796then : 6797 printf %s "(cached) " >&6 6798else $as_nop 6799 if test -n "$ac_ct_STRIP"; then 6800 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 6801else 6802as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6803for as_dir in $PATH 6804do 6805 IFS=$as_save_IFS 6806 case $as_dir in #((( 6807 '') as_dir=./ ;; 6808 */) ;; 6809 *) as_dir=$as_dir/ ;; 6810 esac 6811 for ac_exec_ext in '' $ac_executable_extensions; do 6812 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6813 ac_cv_prog_ac_ct_STRIP="strip" 6814 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6815 break 2 6816 fi 6817done 6818 done 6819IFS=$as_save_IFS 6820 6821fi 6822fi 6823ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 6824if test -n "$ac_ct_STRIP"; then 6825 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 6826printf "%s\n" "$ac_ct_STRIP" >&6; } 6827else 6828 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6829printf "%s\n" "no" >&6; } 6830fi 6831 6832 if test "x$ac_ct_STRIP" = x; then 6833 STRIP=":" 6834 else 6835 case $cross_compiling:$ac_tool_warned in 6836yes:) 6837{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6838printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6839ac_tool_warned=yes ;; 6840esac 6841 STRIP=$ac_ct_STRIP 6842 fi 6843else 6844 STRIP="$ac_cv_prog_STRIP" 6845fi 6846 6847test -z "$STRIP" && STRIP=: 6848 6849 6850 6851 6852 6853 6854if test -n "$ac_tool_prefix"; then 6855 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 6856set dummy ${ac_tool_prefix}ranlib; ac_word=$2 6857{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6858printf %s "checking for $ac_word... " >&6; } 6859if test ${ac_cv_prog_RANLIB+y} 6860then : 6861 printf %s "(cached) " >&6 6862else $as_nop 6863 if test -n "$RANLIB"; then 6864 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 6865else 6866as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6867for as_dir in $PATH 6868do 6869 IFS=$as_save_IFS 6870 case $as_dir in #((( 6871 '') as_dir=./ ;; 6872 */) ;; 6873 *) as_dir=$as_dir/ ;; 6874 esac 6875 for ac_exec_ext in '' $ac_executable_extensions; do 6876 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6877 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 6878 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6879 break 2 6880 fi 6881done 6882 done 6883IFS=$as_save_IFS 6884 6885fi 6886fi 6887RANLIB=$ac_cv_prog_RANLIB 6888if test -n "$RANLIB"; then 6889 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 6890printf "%s\n" "$RANLIB" >&6; } 6891else 6892 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6893printf "%s\n" "no" >&6; } 6894fi 6895 6896 6897fi 6898if test -z "$ac_cv_prog_RANLIB"; then 6899 ac_ct_RANLIB=$RANLIB 6900 # Extract the first word of "ranlib", so it can be a program name with args. 6901set dummy ranlib; ac_word=$2 6902{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6903printf %s "checking for $ac_word... " >&6; } 6904if test ${ac_cv_prog_ac_ct_RANLIB+y} 6905then : 6906 printf %s "(cached) " >&6 6907else $as_nop 6908 if test -n "$ac_ct_RANLIB"; then 6909 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 6910else 6911as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6912for as_dir in $PATH 6913do 6914 IFS=$as_save_IFS 6915 case $as_dir in #((( 6916 '') as_dir=./ ;; 6917 */) ;; 6918 *) as_dir=$as_dir/ ;; 6919 esac 6920 for ac_exec_ext in '' $ac_executable_extensions; do 6921 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6922 ac_cv_prog_ac_ct_RANLIB="ranlib" 6923 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6924 break 2 6925 fi 6926done 6927 done 6928IFS=$as_save_IFS 6929 6930fi 6931fi 6932ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 6933if test -n "$ac_ct_RANLIB"; then 6934 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 6935printf "%s\n" "$ac_ct_RANLIB" >&6; } 6936else 6937 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6938printf "%s\n" "no" >&6; } 6939fi 6940 6941 if test "x$ac_ct_RANLIB" = x; then 6942 RANLIB=":" 6943 else 6944 case $cross_compiling:$ac_tool_warned in 6945yes:) 6946{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6947printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6948ac_tool_warned=yes ;; 6949esac 6950 RANLIB=$ac_ct_RANLIB 6951 fi 6952else 6953 RANLIB="$ac_cv_prog_RANLIB" 6954fi 6955 6956test -z "$RANLIB" && RANLIB=: 6957 6958 6959 6960 6961 6962 6963# Determine commands to create old-style static archives. 6964old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 6965old_postinstall_cmds='chmod 644 $oldlib' 6966old_postuninstall_cmds= 6967 6968if test -n "$RANLIB"; then 6969 case $host_os in 6970 bitrig* | openbsd*) 6971 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 6972 ;; 6973 *) 6974 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 6975 ;; 6976 esac 6977 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 6978fi 6979 6980case $host_os in 6981 darwin*) 6982 lock_old_archive_extraction=yes ;; 6983 *) 6984 lock_old_archive_extraction=no ;; 6985esac 6986 6987 6988 6989 6990 6991 6992 6993 6994 6995 6996 6997 6998 6999 7000 7001 7002 7003 7004 7005 7006 7007 7008 7009 7010 7011 7012 7013 7014 7015 7016 7017 7018 7019 7020 7021 7022 7023 7024 7025# If no C compiler was specified, use CC. 7026LTCC=${LTCC-"$CC"} 7027 7028# If no C compiler flags were specified, use CFLAGS. 7029LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 7030 7031# Allow CC to be a program name with arguments. 7032compiler=$CC 7033 7034 7035# Check for command to grab the raw symbol name followed by C symbol from nm. 7036{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 7037printf %s "checking command to parse $NM output from $compiler object... " >&6; } 7038if test ${lt_cv_sys_global_symbol_pipe+y} 7039then : 7040 printf %s "(cached) " >&6 7041else $as_nop 7042 7043# These are sane defaults that work on at least a few old systems. 7044# [They come from Ultrix. What could be older than Ultrix?!! ;)] 7045 7046# Character class describing NM global symbol codes. 7047symcode='[BCDEGRST]' 7048 7049# Regexp to match symbols that can be accessed directly from C. 7050sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 7051 7052# Define system-specific variables. 7053case $host_os in 7054aix*) 7055 symcode='[BCDT]' 7056 ;; 7057cygwin* | mingw* | pw32* | cegcc*) 7058 symcode='[ABCDGISTW]' 7059 ;; 7060hpux*) 7061 if test ia64 = "$host_cpu"; then 7062 symcode='[ABCDEGRST]' 7063 fi 7064 ;; 7065irix* | nonstopux*) 7066 symcode='[BCDEGRST]' 7067 ;; 7068osf*) 7069 symcode='[BCDEGQRST]' 7070 ;; 7071solaris*) 7072 symcode='[BDRT]' 7073 ;; 7074sco3.2v5*) 7075 symcode='[DT]' 7076 ;; 7077sysv4.2uw2*) 7078 symcode='[DT]' 7079 ;; 7080sysv5* | sco5v6* | unixware* | OpenUNIX*) 7081 symcode='[ABDT]' 7082 ;; 7083sysv4) 7084 symcode='[DFNSTU]' 7085 ;; 7086esac 7087 7088# If we're using GNU nm, then use its standard symbol codes. 7089case `$NM -V 2>&1` in 7090*GNU* | *'with BFD'*) 7091 symcode='[ABCDGIRSTW]' ;; 7092esac 7093 7094if test "$lt_cv_nm_interface" = "MS dumpbin"; then 7095 # Gets list of data symbols to import. 7096 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'" 7097 # Adjust the below global symbol transforms to fixup imported variables. 7098 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" 7099 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" 7100 lt_c_name_lib_hook="\ 7101 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ 7102 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" 7103else 7104 # Disable hooks by default. 7105 lt_cv_sys_global_symbol_to_import= 7106 lt_cdecl_hook= 7107 lt_c_name_hook= 7108 lt_c_name_lib_hook= 7109fi 7110 7111# Transform an extracted symbol line into a proper C declaration. 7112# Some systems (esp. on ia64) link data and code symbols differently, 7113# so use this general approach. 7114lt_cv_sys_global_symbol_to_cdecl="sed -n"\ 7115$lt_cdecl_hook\ 7116" -e 's/^T .* \(.*\)$/extern int \1();/p'"\ 7117" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" 7118 7119# Transform an extracted symbol line into symbol name and symbol address 7120lt_cv_sys_global_symbol_to_c_name_address="sed -n"\ 7121$lt_c_name_hook\ 7122" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 7123" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" 7124 7125# Transform an extracted symbol line into symbol name with lib prefix and 7126# symbol address. 7127lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\ 7128$lt_c_name_lib_hook\ 7129" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 7130" -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ 7131" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" 7132 7133# Handle CRLF in mingw tool chain 7134opt_cr= 7135case $build_os in 7136mingw*) 7137 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 7138 ;; 7139esac 7140 7141# Try without a prefix underscore, then with it. 7142for ac_symprfx in "" "_"; do 7143 7144 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 7145 symxfrm="\\1 $ac_symprfx\\2 \\2" 7146 7147 # Write the raw and C identifiers. 7148 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 7149 # Fake it for dumpbin and say T for any non-static function, 7150 # D for any global variable and I for any imported variable. 7151 # Also find C++ and __fastcall symbols from MSVC++, 7152 # which start with @ or ?. 7153 lt_cv_sys_global_symbol_pipe="$AWK '"\ 7154" {last_section=section; section=\$ 3};"\ 7155" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 7156" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 7157" /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ 7158" /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ 7159" /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ 7160" \$ 0!~/External *\|/{next};"\ 7161" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 7162" {if(hide[section]) next};"\ 7163" {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ 7164" {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ 7165" s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ 7166" s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ 7167" ' prfx=^$ac_symprfx" 7168 else 7169 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 7170 fi 7171 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 7172 7173 # Check to see that the pipe works correctly. 7174 pipe_works=no 7175 7176 rm -f conftest* 7177 cat > conftest.$ac_ext <<_LT_EOF 7178#ifdef __cplusplus 7179extern "C" { 7180#endif 7181char nm_test_var; 7182void nm_test_func(void); 7183void nm_test_func(void){} 7184#ifdef __cplusplus 7185} 7186#endif 7187int main(){nm_test_var='a';nm_test_func();return(0);} 7188_LT_EOF 7189 7190 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7191 (eval $ac_compile) 2>&5 7192 ac_status=$? 7193 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7194 test $ac_status = 0; }; then 7195 # Now try to grab the symbols. 7196 nlist=conftest.nm 7197 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 7198 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 7199 ac_status=$? 7200 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7201 test $ac_status = 0; } && test -s "$nlist"; then 7202 # Try sorting and uniquifying the output. 7203 if sort "$nlist" | uniq > "$nlist"T; then 7204 mv -f "$nlist"T "$nlist" 7205 else 7206 rm -f "$nlist"T 7207 fi 7208 7209 # Make sure that we snagged all the symbols we need. 7210 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 7211 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 7212 cat <<_LT_EOF > conftest.$ac_ext 7213/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 7214#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE 7215/* DATA imports from DLLs on WIN32 can't be const, because runtime 7216 relocations are performed -- see ld's documentation on pseudo-relocs. */ 7217# define LT_DLSYM_CONST 7218#elif defined __osf__ 7219/* This system does not cope well with relocations in const data. */ 7220# define LT_DLSYM_CONST 7221#else 7222# define LT_DLSYM_CONST const 7223#endif 7224 7225#ifdef __cplusplus 7226extern "C" { 7227#endif 7228 7229_LT_EOF 7230 # Now generate the symbol file. 7231 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 7232 7233 cat <<_LT_EOF >> conftest.$ac_ext 7234 7235/* The mapping between symbol names and symbols. */ 7236LT_DLSYM_CONST struct { 7237 const char *name; 7238 void *address; 7239} 7240lt__PROGRAM__LTX_preloaded_symbols[] = 7241{ 7242 { "@PROGRAM@", (void *) 0 }, 7243_LT_EOF 7244 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 7245 cat <<\_LT_EOF >> conftest.$ac_ext 7246 {0, (void *) 0} 7247}; 7248 7249/* This works around a problem in FreeBSD linker */ 7250#ifdef FREEBSD_WORKAROUND 7251static const void *lt_preloaded_setup() { 7252 return lt__PROGRAM__LTX_preloaded_symbols; 7253} 7254#endif 7255 7256#ifdef __cplusplus 7257} 7258#endif 7259_LT_EOF 7260 # Now try linking the two files. 7261 mv conftest.$ac_objext conftstm.$ac_objext 7262 lt_globsym_save_LIBS=$LIBS 7263 lt_globsym_save_CFLAGS=$CFLAGS 7264 LIBS=conftstm.$ac_objext 7265 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 7266 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 7267 (eval $ac_link) 2>&5 7268 ac_status=$? 7269 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7270 test $ac_status = 0; } && test -s conftest$ac_exeext; then 7271 pipe_works=yes 7272 fi 7273 LIBS=$lt_globsym_save_LIBS 7274 CFLAGS=$lt_globsym_save_CFLAGS 7275 else 7276 echo "cannot find nm_test_func in $nlist" >&5 7277 fi 7278 else 7279 echo "cannot find nm_test_var in $nlist" >&5 7280 fi 7281 else 7282 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 7283 fi 7284 else 7285 echo "$progname: failed program was:" >&5 7286 cat conftest.$ac_ext >&5 7287 fi 7288 rm -rf conftest* conftst* 7289 7290 # Do not use the global_symbol_pipe unless it works. 7291 if test yes = "$pipe_works"; then 7292 break 7293 else 7294 lt_cv_sys_global_symbol_pipe= 7295 fi 7296done 7297 7298fi 7299 7300if test -z "$lt_cv_sys_global_symbol_pipe"; then 7301 lt_cv_sys_global_symbol_to_cdecl= 7302fi 7303if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 7304 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5 7305printf "%s\n" "failed" >&6; } 7306else 7307 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5 7308printf "%s\n" "ok" >&6; } 7309fi 7310 7311# Response file support. 7312if test "$lt_cv_nm_interface" = "MS dumpbin"; then 7313 nm_file_list_spec='@' 7314elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 7315 nm_file_list_spec='@' 7316fi 7317 7318 7319 7320 7321 7322 7323 7324 7325 7326 7327 7328 7329 7330 7331 7332 7333 7334 7335 7336 7337 7338 7339 7340 7341 7342 7343 7344 7345 7346 7347 7348 7349 7350 7351 7352 7353 7354{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 7355printf %s "checking for sysroot... " >&6; } 7356 7357# Check whether --with-sysroot was given. 7358if test ${with_sysroot+y} 7359then : 7360 withval=$with_sysroot; 7361else $as_nop 7362 with_sysroot=no 7363fi 7364 7365 7366lt_sysroot= 7367case $with_sysroot in #( 7368 yes) 7369 if test yes = "$GCC"; then 7370 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 7371 fi 7372 ;; #( 7373 /*) 7374 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 7375 ;; #( 7376 no|'') 7377 ;; #( 7378 *) 7379 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5 7380printf "%s\n" "$with_sysroot" >&6; } 7381 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 7382 ;; 7383esac 7384 7385 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 7386printf "%s\n" "${lt_sysroot:-no}" >&6; } 7387 7388 7389 7390 7391 7392{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5 7393printf %s "checking for a working dd... " >&6; } 7394if test ${ac_cv_path_lt_DD+y} 7395then : 7396 printf %s "(cached) " >&6 7397else $as_nop 7398 printf 0123456789abcdef0123456789abcdef >conftest.i 7399cat conftest.i conftest.i >conftest2.i 7400: ${lt_DD:=$DD} 7401if test -z "$lt_DD"; then 7402 ac_path_lt_DD_found=false 7403 # Loop through the user's path and test for each of PROGNAME-LIST 7404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7405for as_dir in $PATH 7406do 7407 IFS=$as_save_IFS 7408 case $as_dir in #((( 7409 '') as_dir=./ ;; 7410 */) ;; 7411 *) as_dir=$as_dir/ ;; 7412 esac 7413 for ac_prog in dd 7414 do 7415 for ac_exec_ext in '' $ac_executable_extensions; do 7416 ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext" 7417 as_fn_executable_p "$ac_path_lt_DD" || continue 7418if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 7419 cmp -s conftest.i conftest.out \ 7420 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: 7421fi 7422 $ac_path_lt_DD_found && break 3 7423 done 7424 done 7425 done 7426IFS=$as_save_IFS 7427 if test -z "$ac_cv_path_lt_DD"; then 7428 : 7429 fi 7430else 7431 ac_cv_path_lt_DD=$lt_DD 7432fi 7433 7434rm -f conftest.i conftest2.i conftest.out 7435fi 7436{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 7437printf "%s\n" "$ac_cv_path_lt_DD" >&6; } 7438 7439 7440{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5 7441printf %s "checking how to truncate binary pipes... " >&6; } 7442if test ${lt_cv_truncate_bin+y} 7443then : 7444 printf %s "(cached) " >&6 7445else $as_nop 7446 printf 0123456789abcdef0123456789abcdef >conftest.i 7447cat conftest.i conftest.i >conftest2.i 7448lt_cv_truncate_bin= 7449if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 7450 cmp -s conftest.i conftest.out \ 7451 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" 7452fi 7453rm -f conftest.i conftest2.i conftest.out 7454test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" 7455fi 7456{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 7457printf "%s\n" "$lt_cv_truncate_bin" >&6; } 7458 7459 7460 7461 7462 7463 7464 7465# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 7466func_cc_basename () 7467{ 7468 for cc_temp in $*""; do 7469 case $cc_temp in 7470 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 7471 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 7472 \-*) ;; 7473 *) break;; 7474 esac 7475 done 7476 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 7477} 7478 7479# Check whether --enable-libtool-lock was given. 7480if test ${enable_libtool_lock+y} 7481then : 7482 enableval=$enable_libtool_lock; 7483fi 7484 7485test no = "$enable_libtool_lock" || enable_libtool_lock=yes 7486 7487# Some flags need to be propagated to the compiler or linker for good 7488# libtool support. 7489case $host in 7490ia64-*-hpux*) 7491 # Find out what ABI is being produced by ac_compile, and set mode 7492 # options accordingly. 7493 echo 'int i;' > conftest.$ac_ext 7494 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7495 (eval $ac_compile) 2>&5 7496 ac_status=$? 7497 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7498 test $ac_status = 0; }; then 7499 case `/usr/bin/file conftest.$ac_objext` in 7500 *ELF-32*) 7501 HPUX_IA64_MODE=32 7502 ;; 7503 *ELF-64*) 7504 HPUX_IA64_MODE=64 7505 ;; 7506 esac 7507 fi 7508 rm -rf conftest* 7509 ;; 7510*-*-irix6*) 7511 # Find out what ABI is being produced by ac_compile, and set linker 7512 # options accordingly. 7513 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 7514 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7515 (eval $ac_compile) 2>&5 7516 ac_status=$? 7517 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7518 test $ac_status = 0; }; then 7519 if test yes = "$lt_cv_prog_gnu_ld"; then 7520 case `/usr/bin/file conftest.$ac_objext` in 7521 *32-bit*) 7522 LD="${LD-ld} -melf32bsmip" 7523 ;; 7524 *N32*) 7525 LD="${LD-ld} -melf32bmipn32" 7526 ;; 7527 *64-bit*) 7528 LD="${LD-ld} -melf64bmip" 7529 ;; 7530 esac 7531 else 7532 case `/usr/bin/file conftest.$ac_objext` in 7533 *32-bit*) 7534 LD="${LD-ld} -32" 7535 ;; 7536 *N32*) 7537 LD="${LD-ld} -n32" 7538 ;; 7539 *64-bit*) 7540 LD="${LD-ld} -64" 7541 ;; 7542 esac 7543 fi 7544 fi 7545 rm -rf conftest* 7546 ;; 7547 7548mips64*-*linux*) 7549 # Find out what ABI is being produced by ac_compile, and set linker 7550 # options accordingly. 7551 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 7552 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7553 (eval $ac_compile) 2>&5 7554 ac_status=$? 7555 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7556 test $ac_status = 0; }; then 7557 emul=elf 7558 case `/usr/bin/file conftest.$ac_objext` in 7559 *32-bit*) 7560 emul="${emul}32" 7561 ;; 7562 *64-bit*) 7563 emul="${emul}64" 7564 ;; 7565 esac 7566 case `/usr/bin/file conftest.$ac_objext` in 7567 *MSB*) 7568 emul="${emul}btsmip" 7569 ;; 7570 *LSB*) 7571 emul="${emul}ltsmip" 7572 ;; 7573 esac 7574 case `/usr/bin/file conftest.$ac_objext` in 7575 *N32*) 7576 emul="${emul}n32" 7577 ;; 7578 esac 7579 LD="${LD-ld} -m $emul" 7580 fi 7581 rm -rf conftest* 7582 ;; 7583 7584x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 7585s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 7586 # Find out what ABI is being produced by ac_compile, and set linker 7587 # options accordingly. Note that the listed cases only cover the 7588 # situations where additional linker options are needed (such as when 7589 # doing 32-bit compilation for a host where ld defaults to 64-bit, or 7590 # vice versa); the common cases where no linker options are needed do 7591 # not appear in the list. 7592 echo 'int i;' > conftest.$ac_ext 7593 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7594 (eval $ac_compile) 2>&5 7595 ac_status=$? 7596 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7597 test $ac_status = 0; }; then 7598 case `/usr/bin/file conftest.o` in 7599 *32-bit*) 7600 case $host in 7601 x86_64-*kfreebsd*-gnu) 7602 LD="${LD-ld} -m elf_i386_fbsd" 7603 ;; 7604 x86_64-*linux*) 7605 case `/usr/bin/file conftest.o` in 7606 *x86-64*) 7607 LD="${LD-ld} -m elf32_x86_64" 7608 ;; 7609 *) 7610 LD="${LD-ld} -m elf_i386" 7611 ;; 7612 esac 7613 ;; 7614 powerpc64le-*linux*) 7615 LD="${LD-ld} -m elf32lppclinux" 7616 ;; 7617 powerpc64-*linux*) 7618 LD="${LD-ld} -m elf32ppclinux" 7619 ;; 7620 s390x-*linux*) 7621 LD="${LD-ld} -m elf_s390" 7622 ;; 7623 sparc64-*linux*) 7624 LD="${LD-ld} -m elf32_sparc" 7625 ;; 7626 esac 7627 ;; 7628 *64-bit*) 7629 case $host in 7630 x86_64-*kfreebsd*-gnu) 7631 LD="${LD-ld} -m elf_x86_64_fbsd" 7632 ;; 7633 x86_64-*linux*) 7634 LD="${LD-ld} -m elf_x86_64" 7635 ;; 7636 powerpcle-*linux*) 7637 LD="${LD-ld} -m elf64lppc" 7638 ;; 7639 powerpc-*linux*) 7640 LD="${LD-ld} -m elf64ppc" 7641 ;; 7642 s390*-*linux*|s390*-*tpf*) 7643 LD="${LD-ld} -m elf64_s390" 7644 ;; 7645 sparc*-*linux*) 7646 LD="${LD-ld} -m elf64_sparc" 7647 ;; 7648 esac 7649 ;; 7650 esac 7651 fi 7652 rm -rf conftest* 7653 ;; 7654 7655*-*-sco3.2v5*) 7656 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 7657 SAVE_CFLAGS=$CFLAGS 7658 CFLAGS="$CFLAGS -belf" 7659 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 7660printf %s "checking whether the C compiler needs -belf... " >&6; } 7661if test ${lt_cv_cc_needs_belf+y} 7662then : 7663 printf %s "(cached) " >&6 7664else $as_nop 7665 ac_ext=c 7666ac_cpp='$CPP $CPPFLAGS' 7667ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7668ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7669ac_compiler_gnu=$ac_cv_c_compiler_gnu 7670 7671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7672/* end confdefs.h. */ 7673 7674int 7675main (void) 7676{ 7677 7678 ; 7679 return 0; 7680} 7681_ACEOF 7682if ac_fn_c_try_link "$LINENO" 7683then : 7684 lt_cv_cc_needs_belf=yes 7685else $as_nop 7686 lt_cv_cc_needs_belf=no 7687fi 7688rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7689 conftest$ac_exeext conftest.$ac_ext 7690 ac_ext=c 7691ac_cpp='$CPP $CPPFLAGS' 7692ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7693ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7694ac_compiler_gnu=$ac_cv_c_compiler_gnu 7695 7696fi 7697{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 7698printf "%s\n" "$lt_cv_cc_needs_belf" >&6; } 7699 if test yes != "$lt_cv_cc_needs_belf"; then 7700 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 7701 CFLAGS=$SAVE_CFLAGS 7702 fi 7703 ;; 7704*-*solaris*) 7705 # Find out what ABI is being produced by ac_compile, and set linker 7706 # options accordingly. 7707 echo 'int i;' > conftest.$ac_ext 7708 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7709 (eval $ac_compile) 2>&5 7710 ac_status=$? 7711 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7712 test $ac_status = 0; }; then 7713 case `/usr/bin/file conftest.o` in 7714 *64-bit*) 7715 case $lt_cv_prog_gnu_ld in 7716 yes*) 7717 case $host in 7718 i?86-*-solaris*|x86_64-*-solaris*) 7719 LD="${LD-ld} -m elf_x86_64" 7720 ;; 7721 sparc*-*-solaris*) 7722 LD="${LD-ld} -m elf64_sparc" 7723 ;; 7724 esac 7725 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 7726 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 7727 LD=${LD-ld}_sol2 7728 fi 7729 ;; 7730 *) 7731 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 7732 LD="${LD-ld} -64" 7733 fi 7734 ;; 7735 esac 7736 ;; 7737 esac 7738 fi 7739 rm -rf conftest* 7740 ;; 7741esac 7742 7743need_locks=$enable_libtool_lock 7744 7745if test -n "$ac_tool_prefix"; then 7746 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 7747set dummy ${ac_tool_prefix}mt; ac_word=$2 7748{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7749printf %s "checking for $ac_word... " >&6; } 7750if test ${ac_cv_prog_MANIFEST_TOOL+y} 7751then : 7752 printf %s "(cached) " >&6 7753else $as_nop 7754 if test -n "$MANIFEST_TOOL"; then 7755 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 7756else 7757as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7758for as_dir in $PATH 7759do 7760 IFS=$as_save_IFS 7761 case $as_dir in #((( 7762 '') as_dir=./ ;; 7763 */) ;; 7764 *) as_dir=$as_dir/ ;; 7765 esac 7766 for ac_exec_ext in '' $ac_executable_extensions; do 7767 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7768 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 7769 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7770 break 2 7771 fi 7772done 7773 done 7774IFS=$as_save_IFS 7775 7776fi 7777fi 7778MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 7779if test -n "$MANIFEST_TOOL"; then 7780 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 7781printf "%s\n" "$MANIFEST_TOOL" >&6; } 7782else 7783 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7784printf "%s\n" "no" >&6; } 7785fi 7786 7787 7788fi 7789if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 7790 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 7791 # Extract the first word of "mt", so it can be a program name with args. 7792set dummy mt; ac_word=$2 7793{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7794printf %s "checking for $ac_word... " >&6; } 7795if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y} 7796then : 7797 printf %s "(cached) " >&6 7798else $as_nop 7799 if test -n "$ac_ct_MANIFEST_TOOL"; then 7800 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 7801else 7802as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7803for as_dir in $PATH 7804do 7805 IFS=$as_save_IFS 7806 case $as_dir in #((( 7807 '') as_dir=./ ;; 7808 */) ;; 7809 *) as_dir=$as_dir/ ;; 7810 esac 7811 for ac_exec_ext in '' $ac_executable_extensions; do 7812 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7813 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 7814 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7815 break 2 7816 fi 7817done 7818 done 7819IFS=$as_save_IFS 7820 7821fi 7822fi 7823ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 7824if test -n "$ac_ct_MANIFEST_TOOL"; then 7825 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 7826printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; } 7827else 7828 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7829printf "%s\n" "no" >&6; } 7830fi 7831 7832 if test "x$ac_ct_MANIFEST_TOOL" = x; then 7833 MANIFEST_TOOL=":" 7834 else 7835 case $cross_compiling:$ac_tool_warned in 7836yes:) 7837{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7838printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7839ac_tool_warned=yes ;; 7840esac 7841 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 7842 fi 7843else 7844 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 7845fi 7846 7847test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 7848{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 7849printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 7850if test ${lt_cv_path_mainfest_tool+y} 7851then : 7852 printf %s "(cached) " >&6 7853else $as_nop 7854 lt_cv_path_mainfest_tool=no 7855 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 7856 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 7857 cat conftest.err >&5 7858 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 7859 lt_cv_path_mainfest_tool=yes 7860 fi 7861 rm -f conftest* 7862fi 7863{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 7864printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; } 7865if test yes != "$lt_cv_path_mainfest_tool"; then 7866 MANIFEST_TOOL=: 7867fi 7868 7869 7870 7871 7872 7873 7874 case $host_os in 7875 rhapsody* | darwin*) 7876 if test -n "$ac_tool_prefix"; then 7877 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 7878set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 7879{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7880printf %s "checking for $ac_word... " >&6; } 7881if test ${ac_cv_prog_DSYMUTIL+y} 7882then : 7883 printf %s "(cached) " >&6 7884else $as_nop 7885 if test -n "$DSYMUTIL"; then 7886 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 7887else 7888as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7889for as_dir in $PATH 7890do 7891 IFS=$as_save_IFS 7892 case $as_dir in #((( 7893 '') as_dir=./ ;; 7894 */) ;; 7895 *) as_dir=$as_dir/ ;; 7896 esac 7897 for ac_exec_ext in '' $ac_executable_extensions; do 7898 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7899 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 7900 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7901 break 2 7902 fi 7903done 7904 done 7905IFS=$as_save_IFS 7906 7907fi 7908fi 7909DSYMUTIL=$ac_cv_prog_DSYMUTIL 7910if test -n "$DSYMUTIL"; then 7911 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 7912printf "%s\n" "$DSYMUTIL" >&6; } 7913else 7914 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7915printf "%s\n" "no" >&6; } 7916fi 7917 7918 7919fi 7920if test -z "$ac_cv_prog_DSYMUTIL"; then 7921 ac_ct_DSYMUTIL=$DSYMUTIL 7922 # Extract the first word of "dsymutil", so it can be a program name with args. 7923set dummy dsymutil; ac_word=$2 7924{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7925printf %s "checking for $ac_word... " >&6; } 7926if test ${ac_cv_prog_ac_ct_DSYMUTIL+y} 7927then : 7928 printf %s "(cached) " >&6 7929else $as_nop 7930 if test -n "$ac_ct_DSYMUTIL"; then 7931 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 7932else 7933as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7934for as_dir in $PATH 7935do 7936 IFS=$as_save_IFS 7937 case $as_dir in #((( 7938 '') as_dir=./ ;; 7939 */) ;; 7940 *) as_dir=$as_dir/ ;; 7941 esac 7942 for ac_exec_ext in '' $ac_executable_extensions; do 7943 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7944 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 7945 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7946 break 2 7947 fi 7948done 7949 done 7950IFS=$as_save_IFS 7951 7952fi 7953fi 7954ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 7955if test -n "$ac_ct_DSYMUTIL"; then 7956 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 7957printf "%s\n" "$ac_ct_DSYMUTIL" >&6; } 7958else 7959 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7960printf "%s\n" "no" >&6; } 7961fi 7962 7963 if test "x$ac_ct_DSYMUTIL" = x; then 7964 DSYMUTIL=":" 7965 else 7966 case $cross_compiling:$ac_tool_warned in 7967yes:) 7968{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7969printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7970ac_tool_warned=yes ;; 7971esac 7972 DSYMUTIL=$ac_ct_DSYMUTIL 7973 fi 7974else 7975 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 7976fi 7977 7978 if test -n "$ac_tool_prefix"; then 7979 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 7980set dummy ${ac_tool_prefix}nmedit; ac_word=$2 7981{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7982printf %s "checking for $ac_word... " >&6; } 7983if test ${ac_cv_prog_NMEDIT+y} 7984then : 7985 printf %s "(cached) " >&6 7986else $as_nop 7987 if test -n "$NMEDIT"; then 7988 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 7989else 7990as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7991for as_dir in $PATH 7992do 7993 IFS=$as_save_IFS 7994 case $as_dir in #((( 7995 '') as_dir=./ ;; 7996 */) ;; 7997 *) as_dir=$as_dir/ ;; 7998 esac 7999 for ac_exec_ext in '' $ac_executable_extensions; do 8000 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8001 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 8002 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8003 break 2 8004 fi 8005done 8006 done 8007IFS=$as_save_IFS 8008 8009fi 8010fi 8011NMEDIT=$ac_cv_prog_NMEDIT 8012if test -n "$NMEDIT"; then 8013 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 8014printf "%s\n" "$NMEDIT" >&6; } 8015else 8016 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8017printf "%s\n" "no" >&6; } 8018fi 8019 8020 8021fi 8022if test -z "$ac_cv_prog_NMEDIT"; then 8023 ac_ct_NMEDIT=$NMEDIT 8024 # Extract the first word of "nmedit", so it can be a program name with args. 8025set dummy nmedit; ac_word=$2 8026{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8027printf %s "checking for $ac_word... " >&6; } 8028if test ${ac_cv_prog_ac_ct_NMEDIT+y} 8029then : 8030 printf %s "(cached) " >&6 8031else $as_nop 8032 if test -n "$ac_ct_NMEDIT"; then 8033 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 8034else 8035as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8036for as_dir in $PATH 8037do 8038 IFS=$as_save_IFS 8039 case $as_dir in #((( 8040 '') as_dir=./ ;; 8041 */) ;; 8042 *) as_dir=$as_dir/ ;; 8043 esac 8044 for ac_exec_ext in '' $ac_executable_extensions; do 8045 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8046 ac_cv_prog_ac_ct_NMEDIT="nmedit" 8047 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8048 break 2 8049 fi 8050done 8051 done 8052IFS=$as_save_IFS 8053 8054fi 8055fi 8056ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 8057if test -n "$ac_ct_NMEDIT"; then 8058 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 8059printf "%s\n" "$ac_ct_NMEDIT" >&6; } 8060else 8061 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8062printf "%s\n" "no" >&6; } 8063fi 8064 8065 if test "x$ac_ct_NMEDIT" = x; then 8066 NMEDIT=":" 8067 else 8068 case $cross_compiling:$ac_tool_warned in 8069yes:) 8070{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8071printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8072ac_tool_warned=yes ;; 8073esac 8074 NMEDIT=$ac_ct_NMEDIT 8075 fi 8076else 8077 NMEDIT="$ac_cv_prog_NMEDIT" 8078fi 8079 8080 if test -n "$ac_tool_prefix"; then 8081 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 8082set dummy ${ac_tool_prefix}lipo; ac_word=$2 8083{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8084printf %s "checking for $ac_word... " >&6; } 8085if test ${ac_cv_prog_LIPO+y} 8086then : 8087 printf %s "(cached) " >&6 8088else $as_nop 8089 if test -n "$LIPO"; then 8090 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 8091else 8092as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8093for as_dir in $PATH 8094do 8095 IFS=$as_save_IFS 8096 case $as_dir in #((( 8097 '') as_dir=./ ;; 8098 */) ;; 8099 *) as_dir=$as_dir/ ;; 8100 esac 8101 for ac_exec_ext in '' $ac_executable_extensions; do 8102 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8103 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 8104 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8105 break 2 8106 fi 8107done 8108 done 8109IFS=$as_save_IFS 8110 8111fi 8112fi 8113LIPO=$ac_cv_prog_LIPO 8114if test -n "$LIPO"; then 8115 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 8116printf "%s\n" "$LIPO" >&6; } 8117else 8118 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8119printf "%s\n" "no" >&6; } 8120fi 8121 8122 8123fi 8124if test -z "$ac_cv_prog_LIPO"; then 8125 ac_ct_LIPO=$LIPO 8126 # Extract the first word of "lipo", so it can be a program name with args. 8127set dummy lipo; ac_word=$2 8128{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8129printf %s "checking for $ac_word... " >&6; } 8130if test ${ac_cv_prog_ac_ct_LIPO+y} 8131then : 8132 printf %s "(cached) " >&6 8133else $as_nop 8134 if test -n "$ac_ct_LIPO"; then 8135 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 8136else 8137as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8138for as_dir in $PATH 8139do 8140 IFS=$as_save_IFS 8141 case $as_dir in #((( 8142 '') as_dir=./ ;; 8143 */) ;; 8144 *) as_dir=$as_dir/ ;; 8145 esac 8146 for ac_exec_ext in '' $ac_executable_extensions; do 8147 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8148 ac_cv_prog_ac_ct_LIPO="lipo" 8149 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8150 break 2 8151 fi 8152done 8153 done 8154IFS=$as_save_IFS 8155 8156fi 8157fi 8158ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 8159if test -n "$ac_ct_LIPO"; then 8160 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 8161printf "%s\n" "$ac_ct_LIPO" >&6; } 8162else 8163 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8164printf "%s\n" "no" >&6; } 8165fi 8166 8167 if test "x$ac_ct_LIPO" = x; then 8168 LIPO=":" 8169 else 8170 case $cross_compiling:$ac_tool_warned in 8171yes:) 8172{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8173printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8174ac_tool_warned=yes ;; 8175esac 8176 LIPO=$ac_ct_LIPO 8177 fi 8178else 8179 LIPO="$ac_cv_prog_LIPO" 8180fi 8181 8182 if test -n "$ac_tool_prefix"; then 8183 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 8184set dummy ${ac_tool_prefix}otool; ac_word=$2 8185{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8186printf %s "checking for $ac_word... " >&6; } 8187if test ${ac_cv_prog_OTOOL+y} 8188then : 8189 printf %s "(cached) " >&6 8190else $as_nop 8191 if test -n "$OTOOL"; then 8192 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 8193else 8194as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8195for as_dir in $PATH 8196do 8197 IFS=$as_save_IFS 8198 case $as_dir in #((( 8199 '') as_dir=./ ;; 8200 */) ;; 8201 *) as_dir=$as_dir/ ;; 8202 esac 8203 for ac_exec_ext in '' $ac_executable_extensions; do 8204 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8205 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 8206 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8207 break 2 8208 fi 8209done 8210 done 8211IFS=$as_save_IFS 8212 8213fi 8214fi 8215OTOOL=$ac_cv_prog_OTOOL 8216if test -n "$OTOOL"; then 8217 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 8218printf "%s\n" "$OTOOL" >&6; } 8219else 8220 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8221printf "%s\n" "no" >&6; } 8222fi 8223 8224 8225fi 8226if test -z "$ac_cv_prog_OTOOL"; then 8227 ac_ct_OTOOL=$OTOOL 8228 # Extract the first word of "otool", so it can be a program name with args. 8229set dummy otool; ac_word=$2 8230{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8231printf %s "checking for $ac_word... " >&6; } 8232if test ${ac_cv_prog_ac_ct_OTOOL+y} 8233then : 8234 printf %s "(cached) " >&6 8235else $as_nop 8236 if test -n "$ac_ct_OTOOL"; then 8237 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 8238else 8239as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8240for as_dir in $PATH 8241do 8242 IFS=$as_save_IFS 8243 case $as_dir in #((( 8244 '') as_dir=./ ;; 8245 */) ;; 8246 *) as_dir=$as_dir/ ;; 8247 esac 8248 for ac_exec_ext in '' $ac_executable_extensions; do 8249 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8250 ac_cv_prog_ac_ct_OTOOL="otool" 8251 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8252 break 2 8253 fi 8254done 8255 done 8256IFS=$as_save_IFS 8257 8258fi 8259fi 8260ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 8261if test -n "$ac_ct_OTOOL"; then 8262 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 8263printf "%s\n" "$ac_ct_OTOOL" >&6; } 8264else 8265 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8266printf "%s\n" "no" >&6; } 8267fi 8268 8269 if test "x$ac_ct_OTOOL" = x; then 8270 OTOOL=":" 8271 else 8272 case $cross_compiling:$ac_tool_warned in 8273yes:) 8274{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8275printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8276ac_tool_warned=yes ;; 8277esac 8278 OTOOL=$ac_ct_OTOOL 8279 fi 8280else 8281 OTOOL="$ac_cv_prog_OTOOL" 8282fi 8283 8284 if test -n "$ac_tool_prefix"; then 8285 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 8286set dummy ${ac_tool_prefix}otool64; ac_word=$2 8287{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8288printf %s "checking for $ac_word... " >&6; } 8289if test ${ac_cv_prog_OTOOL64+y} 8290then : 8291 printf %s "(cached) " >&6 8292else $as_nop 8293 if test -n "$OTOOL64"; then 8294 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 8295else 8296as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8297for as_dir in $PATH 8298do 8299 IFS=$as_save_IFS 8300 case $as_dir in #((( 8301 '') as_dir=./ ;; 8302 */) ;; 8303 *) as_dir=$as_dir/ ;; 8304 esac 8305 for ac_exec_ext in '' $ac_executable_extensions; do 8306 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8307 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 8308 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8309 break 2 8310 fi 8311done 8312 done 8313IFS=$as_save_IFS 8314 8315fi 8316fi 8317OTOOL64=$ac_cv_prog_OTOOL64 8318if test -n "$OTOOL64"; then 8319 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 8320printf "%s\n" "$OTOOL64" >&6; } 8321else 8322 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8323printf "%s\n" "no" >&6; } 8324fi 8325 8326 8327fi 8328if test -z "$ac_cv_prog_OTOOL64"; then 8329 ac_ct_OTOOL64=$OTOOL64 8330 # Extract the first word of "otool64", so it can be a program name with args. 8331set dummy otool64; ac_word=$2 8332{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8333printf %s "checking for $ac_word... " >&6; } 8334if test ${ac_cv_prog_ac_ct_OTOOL64+y} 8335then : 8336 printf %s "(cached) " >&6 8337else $as_nop 8338 if test -n "$ac_ct_OTOOL64"; then 8339 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 8340else 8341as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8342for as_dir in $PATH 8343do 8344 IFS=$as_save_IFS 8345 case $as_dir in #((( 8346 '') as_dir=./ ;; 8347 */) ;; 8348 *) as_dir=$as_dir/ ;; 8349 esac 8350 for ac_exec_ext in '' $ac_executable_extensions; do 8351 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8352 ac_cv_prog_ac_ct_OTOOL64="otool64" 8353 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8354 break 2 8355 fi 8356done 8357 done 8358IFS=$as_save_IFS 8359 8360fi 8361fi 8362ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 8363if test -n "$ac_ct_OTOOL64"; then 8364 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 8365printf "%s\n" "$ac_ct_OTOOL64" >&6; } 8366else 8367 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8368printf "%s\n" "no" >&6; } 8369fi 8370 8371 if test "x$ac_ct_OTOOL64" = x; then 8372 OTOOL64=":" 8373 else 8374 case $cross_compiling:$ac_tool_warned in 8375yes:) 8376{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8377printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8378ac_tool_warned=yes ;; 8379esac 8380 OTOOL64=$ac_ct_OTOOL64 8381 fi 8382else 8383 OTOOL64="$ac_cv_prog_OTOOL64" 8384fi 8385 8386 8387 8388 8389 8390 8391 8392 8393 8394 8395 8396 8397 8398 8399 8400 8401 8402 8403 8404 8405 8406 8407 8408 8409 8410 8411 8412 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 8413printf %s "checking for -single_module linker flag... " >&6; } 8414if test ${lt_cv_apple_cc_single_mod+y} 8415then : 8416 printf %s "(cached) " >&6 8417else $as_nop 8418 lt_cv_apple_cc_single_mod=no 8419 if test -z "$LT_MULTI_MODULE"; then 8420 # By default we will add the -single_module flag. You can override 8421 # by either setting the environment variable LT_MULTI_MODULE 8422 # non-empty at configure time, or by adding -multi_module to the 8423 # link flags. 8424 rm -rf libconftest.dylib* 8425 echo "int foo(void){return 1;}" > conftest.c 8426 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 8427-dynamiclib -Wl,-single_module conftest.c" >&5 8428 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 8429 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 8430 _lt_result=$? 8431 # If there is a non-empty error log, and "single_module" 8432 # appears in it, assume the flag caused a linker warning 8433 if test -s conftest.err && $GREP single_module conftest.err; then 8434 cat conftest.err >&5 8435 # Otherwise, if the output was created with a 0 exit code from 8436 # the compiler, it worked. 8437 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then 8438 lt_cv_apple_cc_single_mod=yes 8439 else 8440 cat conftest.err >&5 8441 fi 8442 rm -rf libconftest.dylib* 8443 rm -f conftest.* 8444 fi 8445fi 8446{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 8447printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; } 8448 8449 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 8450printf %s "checking for -exported_symbols_list linker flag... " >&6; } 8451if test ${lt_cv_ld_exported_symbols_list+y} 8452then : 8453 printf %s "(cached) " >&6 8454else $as_nop 8455 lt_cv_ld_exported_symbols_list=no 8456 save_LDFLAGS=$LDFLAGS 8457 echo "_main" > conftest.sym 8458 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 8459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8460/* end confdefs.h. */ 8461 8462int 8463main (void) 8464{ 8465 8466 ; 8467 return 0; 8468} 8469_ACEOF 8470if ac_fn_c_try_link "$LINENO" 8471then : 8472 lt_cv_ld_exported_symbols_list=yes 8473else $as_nop 8474 lt_cv_ld_exported_symbols_list=no 8475fi 8476rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8477 conftest$ac_exeext conftest.$ac_ext 8478 LDFLAGS=$save_LDFLAGS 8479 8480fi 8481{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 8482printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; } 8483 8484 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 8485printf %s "checking for -force_load linker flag... " >&6; } 8486if test ${lt_cv_ld_force_load+y} 8487then : 8488 printf %s "(cached) " >&6 8489else $as_nop 8490 lt_cv_ld_force_load=no 8491 cat > conftest.c << _LT_EOF 8492int forced_loaded() { return 2;} 8493_LT_EOF 8494 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 8495 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 8496 echo "$AR cru libconftest.a conftest.o" >&5 8497 $AR cru libconftest.a conftest.o 2>&5 8498 echo "$RANLIB libconftest.a" >&5 8499 $RANLIB libconftest.a 2>&5 8500 cat > conftest.c << _LT_EOF 8501int main() { return 0;} 8502_LT_EOF 8503 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 8504 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 8505 _lt_result=$? 8506 if test -s conftest.err && $GREP force_load conftest.err; then 8507 cat conftest.err >&5 8508 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then 8509 lt_cv_ld_force_load=yes 8510 else 8511 cat conftest.err >&5 8512 fi 8513 rm -f conftest.err libconftest.a conftest conftest.c 8514 rm -rf conftest.dSYM 8515 8516fi 8517{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 8518printf "%s\n" "$lt_cv_ld_force_load" >&6; } 8519 case $host_os in 8520 rhapsody* | darwin1.[012]) 8521 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; 8522 darwin1.*) 8523 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 8524 darwin*) # darwin 5.x on 8525 # if running on 10.5 or later, the deployment target defaults 8526 # to the OS version, if on x86, and 10.4, the deployment 8527 # target defaults to 10.4. Don't you love it? 8528 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 8529 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 8530 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 8531 10.[012][,.]*) 8532 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 8533 10.*) 8534 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 8535 esac 8536 ;; 8537 esac 8538 if test yes = "$lt_cv_apple_cc_single_mod"; then 8539 _lt_dar_single_mod='$single_module' 8540 fi 8541 if test yes = "$lt_cv_ld_exported_symbols_list"; then 8542 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' 8543 else 8544 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' 8545 fi 8546 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then 8547 _lt_dsymutil='~$DSYMUTIL $lib || :' 8548 else 8549 _lt_dsymutil= 8550 fi 8551 ;; 8552 esac 8553 8554# func_munge_path_list VARIABLE PATH 8555# ----------------------------------- 8556# VARIABLE is name of variable containing _space_ separated list of 8557# directories to be munged by the contents of PATH, which is string 8558# having a format: 8559# "DIR[:DIR]:" 8560# string "DIR[ DIR]" will be prepended to VARIABLE 8561# ":DIR[:DIR]" 8562# string "DIR[ DIR]" will be appended to VARIABLE 8563# "DIRP[:DIRP]::[DIRA:]DIRA" 8564# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 8565# "DIRA[ DIRA]" will be appended to VARIABLE 8566# "DIR[:DIR]" 8567# VARIABLE will be replaced by "DIR[ DIR]" 8568func_munge_path_list () 8569{ 8570 case x$2 in 8571 x) 8572 ;; 8573 *:) 8574 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 8575 ;; 8576 x:*) 8577 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 8578 ;; 8579 *::*) 8580 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 8581 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 8582 ;; 8583 *) 8584 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 8585 ;; 8586 esac 8587} 8588 8589ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 8590" 8591if test "x$ac_cv_header_dlfcn_h" = xyes 8592then : 8593 printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h 8594 8595fi 8596 8597 8598 8599 8600 8601# Set options 8602 8603 8604 8605 enable_dlopen=no 8606 8607 8608 enable_win32_dll=no 8609 8610 8611 # Check whether --enable-shared was given. 8612if test ${enable_shared+y} 8613then : 8614 enableval=$enable_shared; p=${PACKAGE-default} 8615 case $enableval in 8616 yes) enable_shared=yes ;; 8617 no) enable_shared=no ;; 8618 *) 8619 enable_shared=no 8620 # Look at the argument we got. We use all the common list separators. 8621 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8622 for pkg in $enableval; do 8623 IFS=$lt_save_ifs 8624 if test "X$pkg" = "X$p"; then 8625 enable_shared=yes 8626 fi 8627 done 8628 IFS=$lt_save_ifs 8629 ;; 8630 esac 8631else $as_nop 8632 enable_shared=yes 8633fi 8634 8635 8636 8637 8638 8639 8640 8641 8642 8643 # Check whether --enable-static was given. 8644if test ${enable_static+y} 8645then : 8646 enableval=$enable_static; p=${PACKAGE-default} 8647 case $enableval in 8648 yes) enable_static=yes ;; 8649 no) enable_static=no ;; 8650 *) 8651 enable_static=no 8652 # Look at the argument we got. We use all the common list separators. 8653 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8654 for pkg in $enableval; do 8655 IFS=$lt_save_ifs 8656 if test "X$pkg" = "X$p"; then 8657 enable_static=yes 8658 fi 8659 done 8660 IFS=$lt_save_ifs 8661 ;; 8662 esac 8663else $as_nop 8664 enable_static=yes 8665fi 8666 8667 8668 8669 8670 8671 8672 8673 8674 8675 8676# Check whether --with-pic was given. 8677if test ${with_pic+y} 8678then : 8679 withval=$with_pic; lt_p=${PACKAGE-default} 8680 case $withval in 8681 yes|no) pic_mode=$withval ;; 8682 *) 8683 pic_mode=default 8684 # Look at the argument we got. We use all the common list separators. 8685 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8686 for lt_pkg in $withval; do 8687 IFS=$lt_save_ifs 8688 if test "X$lt_pkg" = "X$lt_p"; then 8689 pic_mode=yes 8690 fi 8691 done 8692 IFS=$lt_save_ifs 8693 ;; 8694 esac 8695else $as_nop 8696 pic_mode=default 8697fi 8698 8699 8700 8701 8702 8703 8704 8705 8706 # Check whether --enable-fast-install was given. 8707if test ${enable_fast_install+y} 8708then : 8709 enableval=$enable_fast_install; p=${PACKAGE-default} 8710 case $enableval in 8711 yes) enable_fast_install=yes ;; 8712 no) enable_fast_install=no ;; 8713 *) 8714 enable_fast_install=no 8715 # Look at the argument we got. We use all the common list separators. 8716 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8717 for pkg in $enableval; do 8718 IFS=$lt_save_ifs 8719 if test "X$pkg" = "X$p"; then 8720 enable_fast_install=yes 8721 fi 8722 done 8723 IFS=$lt_save_ifs 8724 ;; 8725 esac 8726else $as_nop 8727 enable_fast_install=yes 8728fi 8729 8730 8731 8732 8733 8734 8735 8736 8737 shared_archive_member_spec= 8738case $host,$enable_shared in 8739power*-*-aix[5-9]*,yes) 8740 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 8741printf %s "checking which variant of shared library versioning to provide... " >&6; } 8742 8743# Check whether --with-aix-soname was given. 8744if test ${with_aix_soname+y} 8745then : 8746 withval=$with_aix_soname; case $withval in 8747 aix|svr4|both) 8748 ;; 8749 *) 8750 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5 8751 ;; 8752 esac 8753 lt_cv_with_aix_soname=$with_aix_soname 8754else $as_nop 8755 if test ${lt_cv_with_aix_soname+y} 8756then : 8757 printf %s "(cached) " >&6 8758else $as_nop 8759 lt_cv_with_aix_soname=aix 8760fi 8761 8762 with_aix_soname=$lt_cv_with_aix_soname 8763fi 8764 8765 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 8766printf "%s\n" "$with_aix_soname" >&6; } 8767 if test aix != "$with_aix_soname"; then 8768 # For the AIX way of multilib, we name the shared archive member 8769 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', 8770 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. 8771 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, 8772 # the AIX toolchain works better with OBJECT_MODE set (default 32). 8773 if test 64 = "${OBJECT_MODE-32}"; then 8774 shared_archive_member_spec=shr_64 8775 else 8776 shared_archive_member_spec=shr 8777 fi 8778 fi 8779 ;; 8780*) 8781 with_aix_soname=aix 8782 ;; 8783esac 8784 8785 8786 8787 8788 8789 8790 8791 8792 8793 8794# This can be used to rebuild libtool when needed 8795LIBTOOL_DEPS=$ltmain 8796 8797# Always use our own libtool. 8798LIBTOOL='$(SHELL) $(top_builddir)/libtool' 8799 8800 8801 8802 8803 8804 8805 8806 8807 8808 8809 8810 8811 8812 8813 8814 8815 8816 8817 8818 8819 8820 8821 8822 8823 8824 8825 8826 8827 8828 8829test -z "$LN_S" && LN_S="ln -s" 8830 8831 8832 8833 8834 8835 8836 8837 8838 8839 8840 8841 8842 8843 8844if test -n "${ZSH_VERSION+set}"; then 8845 setopt NO_GLOB_SUBST 8846fi 8847 8848{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 8849printf %s "checking for objdir... " >&6; } 8850if test ${lt_cv_objdir+y} 8851then : 8852 printf %s "(cached) " >&6 8853else $as_nop 8854 rm -f .libs 2>/dev/null 8855mkdir .libs 2>/dev/null 8856if test -d .libs; then 8857 lt_cv_objdir=.libs 8858else 8859 # MS-DOS does not allow filenames that begin with a dot. 8860 lt_cv_objdir=_libs 8861fi 8862rmdir .libs 2>/dev/null 8863fi 8864{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 8865printf "%s\n" "$lt_cv_objdir" >&6; } 8866objdir=$lt_cv_objdir 8867 8868 8869 8870 8871 8872printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h 8873 8874 8875 8876 8877case $host_os in 8878aix3*) 8879 # AIX sometimes has problems with the GCC collect2 program. For some 8880 # reason, if we set the COLLECT_NAMES environment variable, the problems 8881 # vanish in a puff of smoke. 8882 if test set != "${COLLECT_NAMES+set}"; then 8883 COLLECT_NAMES= 8884 export COLLECT_NAMES 8885 fi 8886 ;; 8887esac 8888 8889# Global variables: 8890ofile=libtool 8891can_build_shared=yes 8892 8893# All known linkers require a '.a' archive for static linking (except MSVC, 8894# which needs '.lib'). 8895libext=a 8896 8897with_gnu_ld=$lt_cv_prog_gnu_ld 8898 8899old_CC=$CC 8900old_CFLAGS=$CFLAGS 8901 8902# Set sane defaults for various variables 8903test -z "$CC" && CC=cc 8904test -z "$LTCC" && LTCC=$CC 8905test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 8906test -z "$LD" && LD=ld 8907test -z "$ac_objext" && ac_objext=o 8908 8909func_cc_basename $compiler 8910cc_basename=$func_cc_basename_result 8911 8912 8913# Only perform the check for file, if the check method requires it 8914test -z "$MAGIC_CMD" && MAGIC_CMD=file 8915case $deplibs_check_method in 8916file_magic*) 8917 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 8918 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 8919printf %s "checking for ${ac_tool_prefix}file... " >&6; } 8920if test ${lt_cv_path_MAGIC_CMD+y} 8921then : 8922 printf %s "(cached) " >&6 8923else $as_nop 8924 case $MAGIC_CMD in 8925[\\/*] | ?:[\\/]*) 8926 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 8927 ;; 8928*) 8929 lt_save_MAGIC_CMD=$MAGIC_CMD 8930 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 8931 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8932 for ac_dir in $ac_dummy; do 8933 IFS=$lt_save_ifs 8934 test -z "$ac_dir" && ac_dir=. 8935 if test -f "$ac_dir/${ac_tool_prefix}file"; then 8936 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file" 8937 if test -n "$file_magic_test_file"; then 8938 case $deplibs_check_method in 8939 "file_magic "*) 8940 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8941 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8942 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8943 $EGREP "$file_magic_regex" > /dev/null; then 8944 : 8945 else 8946 cat <<_LT_EOF 1>&2 8947 8948*** Warning: the command libtool uses to detect shared libraries, 8949*** $file_magic_cmd, produces output that libtool cannot recognize. 8950*** The result is that libtool may fail to recognize shared libraries 8951*** as such. This will affect the creation of libtool libraries that 8952*** depend on shared libraries, but programs linked with such libtool 8953*** libraries will work regardless of this problem. Nevertheless, you 8954*** may want to report the problem to your system manager and/or to 8955*** bug-libtool@gnu.org 8956 8957_LT_EOF 8958 fi ;; 8959 esac 8960 fi 8961 break 8962 fi 8963 done 8964 IFS=$lt_save_ifs 8965 MAGIC_CMD=$lt_save_MAGIC_CMD 8966 ;; 8967esac 8968fi 8969 8970MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8971if test -n "$MAGIC_CMD"; then 8972 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8973printf "%s\n" "$MAGIC_CMD" >&6; } 8974else 8975 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8976printf "%s\n" "no" >&6; } 8977fi 8978 8979 8980 8981 8982 8983if test -z "$lt_cv_path_MAGIC_CMD"; then 8984 if test -n "$ac_tool_prefix"; then 8985 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5 8986printf %s "checking for file... " >&6; } 8987if test ${lt_cv_path_MAGIC_CMD+y} 8988then : 8989 printf %s "(cached) " >&6 8990else $as_nop 8991 case $MAGIC_CMD in 8992[\\/*] | ?:[\\/]*) 8993 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 8994 ;; 8995*) 8996 lt_save_MAGIC_CMD=$MAGIC_CMD 8997 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 8998 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8999 for ac_dir in $ac_dummy; do 9000 IFS=$lt_save_ifs 9001 test -z "$ac_dir" && ac_dir=. 9002 if test -f "$ac_dir/file"; then 9003 lt_cv_path_MAGIC_CMD=$ac_dir/"file" 9004 if test -n "$file_magic_test_file"; then 9005 case $deplibs_check_method in 9006 "file_magic "*) 9007 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 9008 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 9009 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 9010 $EGREP "$file_magic_regex" > /dev/null; then 9011 : 9012 else 9013 cat <<_LT_EOF 1>&2 9014 9015*** Warning: the command libtool uses to detect shared libraries, 9016*** $file_magic_cmd, produces output that libtool cannot recognize. 9017*** The result is that libtool may fail to recognize shared libraries 9018*** as such. This will affect the creation of libtool libraries that 9019*** depend on shared libraries, but programs linked with such libtool 9020*** libraries will work regardless of this problem. Nevertheless, you 9021*** may want to report the problem to your system manager and/or to 9022*** bug-libtool@gnu.org 9023 9024_LT_EOF 9025 fi ;; 9026 esac 9027 fi 9028 break 9029 fi 9030 done 9031 IFS=$lt_save_ifs 9032 MAGIC_CMD=$lt_save_MAGIC_CMD 9033 ;; 9034esac 9035fi 9036 9037MAGIC_CMD=$lt_cv_path_MAGIC_CMD 9038if test -n "$MAGIC_CMD"; then 9039 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 9040printf "%s\n" "$MAGIC_CMD" >&6; } 9041else 9042 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 9043printf "%s\n" "no" >&6; } 9044fi 9045 9046 9047 else 9048 MAGIC_CMD=: 9049 fi 9050fi 9051 9052 fi 9053 ;; 9054esac 9055 9056# Use C for the default configuration in the libtool script 9057 9058lt_save_CC=$CC 9059ac_ext=c 9060ac_cpp='$CPP $CPPFLAGS' 9061ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9062ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9063ac_compiler_gnu=$ac_cv_c_compiler_gnu 9064 9065 9066# Source file extension for C test sources. 9067ac_ext=c 9068 9069# Object file extension for compiled C test sources. 9070objext=o 9071objext=$objext 9072 9073# Code to be used in simple compile tests 9074lt_simple_compile_test_code="int some_variable = 0;" 9075 9076# Code to be used in simple link tests 9077lt_simple_link_test_code='int main(){return(0);}' 9078 9079 9080 9081 9082 9083 9084 9085# If no C compiler was specified, use CC. 9086LTCC=${LTCC-"$CC"} 9087 9088# If no C compiler flags were specified, use CFLAGS. 9089LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 9090 9091# Allow CC to be a program name with arguments. 9092compiler=$CC 9093 9094# Save the default compiler, since it gets overwritten when the other 9095# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 9096compiler_DEFAULT=$CC 9097 9098# save warnings/boilerplate of simple test code 9099ac_outfile=conftest.$ac_objext 9100echo "$lt_simple_compile_test_code" >conftest.$ac_ext 9101eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 9102_lt_compiler_boilerplate=`cat conftest.err` 9103$RM conftest* 9104 9105ac_outfile=conftest.$ac_objext 9106echo "$lt_simple_link_test_code" >conftest.$ac_ext 9107eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 9108_lt_linker_boilerplate=`cat conftest.err` 9109$RM -r conftest* 9110 9111 9112if test -n "$compiler"; then 9113 9114lt_prog_compiler_no_builtin_flag= 9115 9116if test yes = "$GCC"; then 9117 case $cc_basename in 9118 nvcc*) 9119 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 9120 *) 9121 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 9122 esac 9123 9124 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 9125printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 9126if test ${lt_cv_prog_compiler_rtti_exceptions+y} 9127then : 9128 printf %s "(cached) " >&6 9129else $as_nop 9130 lt_cv_prog_compiler_rtti_exceptions=no 9131 ac_outfile=conftest.$ac_objext 9132 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9133 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment 9134 # Insert the option either (1) after the last *FLAGS variable, or 9135 # (2) before a word containing "conftest.", or (3) at the end. 9136 # Note that $ac_compile itself does not contain backslashes and begins 9137 # with a dollar sign (not a hyphen), so the echo should work correctly. 9138 # The option is referenced via a variable to avoid confusing sed. 9139 lt_compile=`echo "$ac_compile" | $SED \ 9140 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9141 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9142 -e 's:$: $lt_compiler_flag:'` 9143 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9144 (eval "$lt_compile" 2>conftest.err) 9145 ac_status=$? 9146 cat conftest.err >&5 9147 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9148 if (exit $ac_status) && test -s "$ac_outfile"; then 9149 # The compiler can only warn and ignore the option if not recognized 9150 # So say no if there are warnings other than the usual output. 9151 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 9152 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9153 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 9154 lt_cv_prog_compiler_rtti_exceptions=yes 9155 fi 9156 fi 9157 $RM conftest* 9158 9159fi 9160{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 9161printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 9162 9163if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then 9164 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 9165else 9166 : 9167fi 9168 9169fi 9170 9171 9172 9173 9174 9175 9176 lt_prog_compiler_wl= 9177lt_prog_compiler_pic= 9178lt_prog_compiler_static= 9179 9180 9181 if test yes = "$GCC"; then 9182 lt_prog_compiler_wl='-Wl,' 9183 lt_prog_compiler_static='-static' 9184 9185 case $host_os in 9186 aix*) 9187 # All AIX code is PIC. 9188 if test ia64 = "$host_cpu"; then 9189 # AIX 5 now supports IA64 processor 9190 lt_prog_compiler_static='-Bstatic' 9191 fi 9192 lt_prog_compiler_pic='-fPIC' 9193 ;; 9194 9195 amigaos*) 9196 case $host_cpu in 9197 powerpc) 9198 # see comment about AmigaOS4 .so support 9199 lt_prog_compiler_pic='-fPIC' 9200 ;; 9201 m68k) 9202 # FIXME: we need at least 68020 code to build shared libraries, but 9203 # adding the '-m68020' flag to GCC prevents building anything better, 9204 # like '-m68040'. 9205 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 9206 ;; 9207 esac 9208 ;; 9209 9210 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 9211 # PIC is the default for these OSes. 9212 ;; 9213 9214 mingw* | cygwin* | pw32* | os2* | cegcc*) 9215 # This hack is so that the source file can tell whether it is being 9216 # built for inclusion in a dll (and should export symbols for example). 9217 # Although the cygwin gcc ignores -fPIC, still need this for old-style 9218 # (--disable-auto-import) libraries 9219 lt_prog_compiler_pic='-DDLL_EXPORT' 9220 case $host_os in 9221 os2*) 9222 lt_prog_compiler_static='$wl-static' 9223 ;; 9224 esac 9225 ;; 9226 9227 darwin* | rhapsody*) 9228 # PIC is the default on this platform 9229 # Common symbols not allowed in MH_DYLIB files 9230 lt_prog_compiler_pic='-fno-common' 9231 ;; 9232 9233 haiku*) 9234 # PIC is the default for Haiku. 9235 # The "-static" flag exists, but is broken. 9236 lt_prog_compiler_static= 9237 ;; 9238 9239 hpux*) 9240 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 9241 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 9242 # sets the default TLS model and affects inlining. 9243 case $host_cpu in 9244 hppa*64*) 9245 # +Z the default 9246 ;; 9247 *) 9248 lt_prog_compiler_pic='-fPIC' 9249 ;; 9250 esac 9251 ;; 9252 9253 interix[3-9]*) 9254 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 9255 # Instead, we relocate shared libraries at runtime. 9256 ;; 9257 9258 msdosdjgpp*) 9259 # Just because we use GCC doesn't mean we suddenly get shared libraries 9260 # on systems that don't support them. 9261 lt_prog_compiler_can_build_shared=no 9262 enable_shared=no 9263 ;; 9264 9265 *nto* | *qnx*) 9266 # QNX uses GNU C++, but need to define -shared option too, otherwise 9267 # it will coredump. 9268 lt_prog_compiler_pic='-fPIC -shared' 9269 ;; 9270 9271 sysv4*MP*) 9272 if test -d /usr/nec; then 9273 lt_prog_compiler_pic=-Kconform_pic 9274 fi 9275 ;; 9276 9277 *) 9278 lt_prog_compiler_pic='-fPIC' 9279 ;; 9280 esac 9281 9282 case $cc_basename in 9283 nvcc*) # Cuda Compiler Driver 2.2 9284 lt_prog_compiler_wl='-Xlinker ' 9285 if test -n "$lt_prog_compiler_pic"; then 9286 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 9287 fi 9288 ;; 9289 esac 9290 else 9291 # PORTME Check for flag to pass linker flags through the system compiler. 9292 case $host_os in 9293 aix*) 9294 lt_prog_compiler_wl='-Wl,' 9295 if test ia64 = "$host_cpu"; then 9296 # AIX 5 now supports IA64 processor 9297 lt_prog_compiler_static='-Bstatic' 9298 else 9299 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 9300 fi 9301 ;; 9302 9303 darwin* | rhapsody*) 9304 # PIC is the default on this platform 9305 # Common symbols not allowed in MH_DYLIB files 9306 lt_prog_compiler_pic='-fno-common' 9307 case $cc_basename in 9308 nagfor*) 9309 # NAG Fortran compiler 9310 lt_prog_compiler_wl='-Wl,-Wl,,' 9311 lt_prog_compiler_pic='-PIC' 9312 lt_prog_compiler_static='-Bstatic' 9313 ;; 9314 esac 9315 ;; 9316 9317 mingw* | cygwin* | pw32* | os2* | cegcc*) 9318 # This hack is so that the source file can tell whether it is being 9319 # built for inclusion in a dll (and should export symbols for example). 9320 lt_prog_compiler_pic='-DDLL_EXPORT' 9321 case $host_os in 9322 os2*) 9323 lt_prog_compiler_static='$wl-static' 9324 ;; 9325 esac 9326 ;; 9327 9328 hpux9* | hpux10* | hpux11*) 9329 lt_prog_compiler_wl='-Wl,' 9330 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 9331 # not for PA HP-UX. 9332 case $host_cpu in 9333 hppa*64*|ia64*) 9334 # +Z the default 9335 ;; 9336 *) 9337 lt_prog_compiler_pic='+Z' 9338 ;; 9339 esac 9340 # Is there a better lt_prog_compiler_static that works with the bundled CC? 9341 lt_prog_compiler_static='$wl-a ${wl}archive' 9342 ;; 9343 9344 irix5* | irix6* | nonstopux*) 9345 lt_prog_compiler_wl='-Wl,' 9346 # PIC (with -KPIC) is the default. 9347 lt_prog_compiler_static='-non_shared' 9348 ;; 9349 9350 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 9351 case $cc_basename in 9352 # old Intel for x86_64, which still supported -KPIC. 9353 ecc*) 9354 lt_prog_compiler_wl='-Wl,' 9355 lt_prog_compiler_pic='-KPIC' 9356 lt_prog_compiler_static='-static' 9357 ;; 9358 # icc used to be incompatible with GCC. 9359 # ICC 10 doesn't accept -KPIC any more. 9360 icc* | ifort*) 9361 lt_prog_compiler_wl='-Wl,' 9362 lt_prog_compiler_pic='-fPIC' 9363 lt_prog_compiler_static='-static' 9364 ;; 9365 # Lahey Fortran 8.1. 9366 lf95*) 9367 lt_prog_compiler_wl='-Wl,' 9368 lt_prog_compiler_pic='--shared' 9369 lt_prog_compiler_static='--static' 9370 ;; 9371 nagfor*) 9372 # NAG Fortran compiler 9373 lt_prog_compiler_wl='-Wl,-Wl,,' 9374 lt_prog_compiler_pic='-PIC' 9375 lt_prog_compiler_static='-Bstatic' 9376 ;; 9377 tcc*) 9378 # Fabrice Bellard et al's Tiny C Compiler 9379 lt_prog_compiler_wl='-Wl,' 9380 lt_prog_compiler_pic='-fPIC' 9381 lt_prog_compiler_static='-static' 9382 ;; 9383 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 9384 # Portland Group compilers (*not* the Pentium gcc compiler, 9385 # which looks to be a dead project) 9386 lt_prog_compiler_wl='-Wl,' 9387 lt_prog_compiler_pic='-fpic' 9388 lt_prog_compiler_static='-Bstatic' 9389 ;; 9390 ccc*) 9391 lt_prog_compiler_wl='-Wl,' 9392 # All Alpha code is PIC. 9393 lt_prog_compiler_static='-non_shared' 9394 ;; 9395 xl* | bgxl* | bgf* | mpixl*) 9396 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 9397 lt_prog_compiler_wl='-Wl,' 9398 lt_prog_compiler_pic='-qpic' 9399 lt_prog_compiler_static='-qstaticlink' 9400 ;; 9401 *) 9402 case `$CC -V 2>&1 | sed 5q` in 9403 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 9404 # Sun Fortran 8.3 passes all unrecognized flags to the linker 9405 lt_prog_compiler_pic='-KPIC' 9406 lt_prog_compiler_static='-Bstatic' 9407 lt_prog_compiler_wl='' 9408 ;; 9409 *Sun\ F* | *Sun*Fortran*) 9410 lt_prog_compiler_pic='-KPIC' 9411 lt_prog_compiler_static='-Bstatic' 9412 lt_prog_compiler_wl='-Qoption ld ' 9413 ;; 9414 *Sun\ C*) 9415 # Sun C 5.9 9416 lt_prog_compiler_pic='-KPIC' 9417 lt_prog_compiler_static='-Bstatic' 9418 lt_prog_compiler_wl='-Wl,' 9419 ;; 9420 *Intel*\ [CF]*Compiler*) 9421 lt_prog_compiler_wl='-Wl,' 9422 lt_prog_compiler_pic='-fPIC' 9423 lt_prog_compiler_static='-static' 9424 ;; 9425 *Portland\ Group*) 9426 lt_prog_compiler_wl='-Wl,' 9427 lt_prog_compiler_pic='-fpic' 9428 lt_prog_compiler_static='-Bstatic' 9429 ;; 9430 esac 9431 ;; 9432 esac 9433 ;; 9434 9435 newsos6) 9436 lt_prog_compiler_pic='-KPIC' 9437 lt_prog_compiler_static='-Bstatic' 9438 ;; 9439 9440 *nto* | *qnx*) 9441 # QNX uses GNU C++, but need to define -shared option too, otherwise 9442 # it will coredump. 9443 lt_prog_compiler_pic='-fPIC -shared' 9444 ;; 9445 9446 osf3* | osf4* | osf5*) 9447 lt_prog_compiler_wl='-Wl,' 9448 # All OSF/1 code is PIC. 9449 lt_prog_compiler_static='-non_shared' 9450 ;; 9451 9452 rdos*) 9453 lt_prog_compiler_static='-non_shared' 9454 ;; 9455 9456 solaris*) 9457 lt_prog_compiler_pic='-KPIC' 9458 lt_prog_compiler_static='-Bstatic' 9459 case $cc_basename in 9460 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 9461 lt_prog_compiler_wl='-Qoption ld ';; 9462 *) 9463 lt_prog_compiler_wl='-Wl,';; 9464 esac 9465 ;; 9466 9467 sunos4*) 9468 lt_prog_compiler_wl='-Qoption ld ' 9469 lt_prog_compiler_pic='-PIC' 9470 lt_prog_compiler_static='-Bstatic' 9471 ;; 9472 9473 sysv4 | sysv4.2uw2* | sysv4.3*) 9474 lt_prog_compiler_wl='-Wl,' 9475 lt_prog_compiler_pic='-KPIC' 9476 lt_prog_compiler_static='-Bstatic' 9477 ;; 9478 9479 sysv4*MP*) 9480 if test -d /usr/nec; then 9481 lt_prog_compiler_pic='-Kconform_pic' 9482 lt_prog_compiler_static='-Bstatic' 9483 fi 9484 ;; 9485 9486 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 9487 lt_prog_compiler_wl='-Wl,' 9488 lt_prog_compiler_pic='-KPIC' 9489 lt_prog_compiler_static='-Bstatic' 9490 ;; 9491 9492 unicos*) 9493 lt_prog_compiler_wl='-Wl,' 9494 lt_prog_compiler_can_build_shared=no 9495 ;; 9496 9497 uts4*) 9498 lt_prog_compiler_pic='-pic' 9499 lt_prog_compiler_static='-Bstatic' 9500 ;; 9501 9502 *) 9503 lt_prog_compiler_can_build_shared=no 9504 ;; 9505 esac 9506 fi 9507 9508case $host_os in 9509 # For platforms that do not support PIC, -DPIC is meaningless: 9510 *djgpp*) 9511 lt_prog_compiler_pic= 9512 ;; 9513 *) 9514 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 9515 ;; 9516esac 9517 9518{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 9519printf %s "checking for $compiler option to produce PIC... " >&6; } 9520if test ${lt_cv_prog_compiler_pic+y} 9521then : 9522 printf %s "(cached) " >&6 9523else $as_nop 9524 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 9525fi 9526{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 9527printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; } 9528lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 9529 9530# 9531# Check to make sure the PIC flag actually works. 9532# 9533if test -n "$lt_prog_compiler_pic"; then 9534 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 9535printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 9536if test ${lt_cv_prog_compiler_pic_works+y} 9537then : 9538 printf %s "(cached) " >&6 9539else $as_nop 9540 lt_cv_prog_compiler_pic_works=no 9541 ac_outfile=conftest.$ac_objext 9542 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9543 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment 9544 # Insert the option either (1) after the last *FLAGS variable, or 9545 # (2) before a word containing "conftest.", or (3) at the end. 9546 # Note that $ac_compile itself does not contain backslashes and begins 9547 # with a dollar sign (not a hyphen), so the echo should work correctly. 9548 # The option is referenced via a variable to avoid confusing sed. 9549 lt_compile=`echo "$ac_compile" | $SED \ 9550 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9551 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9552 -e 's:$: $lt_compiler_flag:'` 9553 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9554 (eval "$lt_compile" 2>conftest.err) 9555 ac_status=$? 9556 cat conftest.err >&5 9557 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9558 if (exit $ac_status) && test -s "$ac_outfile"; then 9559 # The compiler can only warn and ignore the option if not recognized 9560 # So say no if there are warnings other than the usual output. 9561 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 9562 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9563 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 9564 lt_cv_prog_compiler_pic_works=yes 9565 fi 9566 fi 9567 $RM conftest* 9568 9569fi 9570{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 9571printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; } 9572 9573if test yes = "$lt_cv_prog_compiler_pic_works"; then 9574 case $lt_prog_compiler_pic in 9575 "" | " "*) ;; 9576 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 9577 esac 9578else 9579 lt_prog_compiler_pic= 9580 lt_prog_compiler_can_build_shared=no 9581fi 9582 9583fi 9584 9585 9586 9587 9588 9589 9590 9591 9592 9593 9594 9595# 9596# Check to make sure the static flag actually works. 9597# 9598wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 9599{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 9600printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 9601if test ${lt_cv_prog_compiler_static_works+y} 9602then : 9603 printf %s "(cached) " >&6 9604else $as_nop 9605 lt_cv_prog_compiler_static_works=no 9606 save_LDFLAGS=$LDFLAGS 9607 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 9608 echo "$lt_simple_link_test_code" > conftest.$ac_ext 9609 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 9610 # The linker can only warn and ignore the option if not recognized 9611 # So say no if there are warnings 9612 if test -s conftest.err; then 9613 # Append any errors to the config.log. 9614 cat conftest.err 1>&5 9615 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 9616 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9617 if diff conftest.exp conftest.er2 >/dev/null; then 9618 lt_cv_prog_compiler_static_works=yes 9619 fi 9620 else 9621 lt_cv_prog_compiler_static_works=yes 9622 fi 9623 fi 9624 $RM -r conftest* 9625 LDFLAGS=$save_LDFLAGS 9626 9627fi 9628{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 9629printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; } 9630 9631if test yes = "$lt_cv_prog_compiler_static_works"; then 9632 : 9633else 9634 lt_prog_compiler_static= 9635fi 9636 9637 9638 9639 9640 9641 9642 9643 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 9644printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 9645if test ${lt_cv_prog_compiler_c_o+y} 9646then : 9647 printf %s "(cached) " >&6 9648else $as_nop 9649 lt_cv_prog_compiler_c_o=no 9650 $RM -r conftest 2>/dev/null 9651 mkdir conftest 9652 cd conftest 9653 mkdir out 9654 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9655 9656 lt_compiler_flag="-o out/conftest2.$ac_objext" 9657 # Insert the option either (1) after the last *FLAGS variable, or 9658 # (2) before a word containing "conftest.", or (3) at the end. 9659 # Note that $ac_compile itself does not contain backslashes and begins 9660 # with a dollar sign (not a hyphen), so the echo should work correctly. 9661 lt_compile=`echo "$ac_compile" | $SED \ 9662 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9663 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9664 -e 's:$: $lt_compiler_flag:'` 9665 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9666 (eval "$lt_compile" 2>out/conftest.err) 9667 ac_status=$? 9668 cat out/conftest.err >&5 9669 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9670 if (exit $ac_status) && test -s out/conftest2.$ac_objext 9671 then 9672 # The compiler can only warn and ignore the option if not recognized 9673 # So say no if there are warnings 9674 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 9675 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 9676 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 9677 lt_cv_prog_compiler_c_o=yes 9678 fi 9679 fi 9680 chmod u+w . 2>&5 9681 $RM conftest* 9682 # SGI C++ compiler will create directory out/ii_files/ for 9683 # template instantiation 9684 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 9685 $RM out/* && rmdir out 9686 cd .. 9687 $RM -r conftest 9688 $RM conftest* 9689 9690fi 9691{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 9692printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; } 9693 9694 9695 9696 9697 9698 9699 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 9700printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 9701if test ${lt_cv_prog_compiler_c_o+y} 9702then : 9703 printf %s "(cached) " >&6 9704else $as_nop 9705 lt_cv_prog_compiler_c_o=no 9706 $RM -r conftest 2>/dev/null 9707 mkdir conftest 9708 cd conftest 9709 mkdir out 9710 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9711 9712 lt_compiler_flag="-o out/conftest2.$ac_objext" 9713 # Insert the option either (1) after the last *FLAGS variable, or 9714 # (2) before a word containing "conftest.", or (3) at the end. 9715 # Note that $ac_compile itself does not contain backslashes and begins 9716 # with a dollar sign (not a hyphen), so the echo should work correctly. 9717 lt_compile=`echo "$ac_compile" | $SED \ 9718 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9719 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9720 -e 's:$: $lt_compiler_flag:'` 9721 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9722 (eval "$lt_compile" 2>out/conftest.err) 9723 ac_status=$? 9724 cat out/conftest.err >&5 9725 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9726 if (exit $ac_status) && test -s out/conftest2.$ac_objext 9727 then 9728 # The compiler can only warn and ignore the option if not recognized 9729 # So say no if there are warnings 9730 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 9731 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 9732 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 9733 lt_cv_prog_compiler_c_o=yes 9734 fi 9735 fi 9736 chmod u+w . 2>&5 9737 $RM conftest* 9738 # SGI C++ compiler will create directory out/ii_files/ for 9739 # template instantiation 9740 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 9741 $RM out/* && rmdir out 9742 cd .. 9743 $RM -r conftest 9744 $RM conftest* 9745 9746fi 9747{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 9748printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; } 9749 9750 9751 9752 9753hard_links=nottested 9754if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then 9755 # do not overwrite the value of need_locks provided by the user 9756 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 9757printf %s "checking if we can lock with hard links... " >&6; } 9758 hard_links=yes 9759 $RM conftest* 9760 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9761 touch conftest.a 9762 ln conftest.a conftest.b 2>&5 || hard_links=no 9763 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9764 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 9765printf "%s\n" "$hard_links" >&6; } 9766 if test no = "$hard_links"; then 9767 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 9768printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 9769 need_locks=warn 9770 fi 9771else 9772 need_locks=no 9773fi 9774 9775 9776 9777 9778 9779 9780 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 9781printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 9782 9783 runpath_var= 9784 allow_undefined_flag= 9785 always_export_symbols=no 9786 archive_cmds= 9787 archive_expsym_cmds= 9788 compiler_needs_object=no 9789 enable_shared_with_static_runtimes=no 9790 export_dynamic_flag_spec= 9791 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 9792 hardcode_automatic=no 9793 hardcode_direct=no 9794 hardcode_direct_absolute=no 9795 hardcode_libdir_flag_spec= 9796 hardcode_libdir_separator= 9797 hardcode_minus_L=no 9798 hardcode_shlibpath_var=unsupported 9799 inherit_rpath=no 9800 link_all_deplibs=unknown 9801 module_cmds= 9802 module_expsym_cmds= 9803 old_archive_from_new_cmds= 9804 old_archive_from_expsyms_cmds= 9805 thread_safe_flag_spec= 9806 whole_archive_flag_spec= 9807 # include_expsyms should be a list of space-separated symbols to be *always* 9808 # included in the symbol list 9809 include_expsyms= 9810 # exclude_expsyms can be an extended regexp of symbols to exclude 9811 # it will be wrapped by ' (' and ')$', so one must not match beginning or 9812 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', 9813 # as well as any symbol that contains 'd'. 9814 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 9815 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 9816 # platforms (ab)use it in PIC code, but their linkers get confused if 9817 # the symbol is explicitly referenced. Since portable code cannot 9818 # rely on this symbol name, it's probably fine to never include it in 9819 # preloaded symbol tables. 9820 # Exclude shared library initialization/finalization symbols. 9821 extract_expsyms_cmds= 9822 9823 case $host_os in 9824 cygwin* | mingw* | pw32* | cegcc*) 9825 # FIXME: the MSVC++ port hasn't been tested in a loooong time 9826 # When not using gcc, we currently assume that we are using 9827 # Microsoft Visual C++. 9828 if test yes != "$GCC"; then 9829 with_gnu_ld=no 9830 fi 9831 ;; 9832 interix*) 9833 # we just hope/assume this is gcc and not c89 (= MSVC++) 9834 with_gnu_ld=yes 9835 ;; 9836 openbsd* | bitrig*) 9837 with_gnu_ld=no 9838 ;; 9839 esac 9840 9841 ld_shlibs=yes 9842 9843 # On some targets, GNU ld is compatible enough with the native linker 9844 # that we're better off using the native interface for both. 9845 lt_use_gnu_ld_interface=no 9846 if test yes = "$with_gnu_ld"; then 9847 case $host_os in 9848 aix*) 9849 # The AIX port of GNU ld has always aspired to compatibility 9850 # with the native linker. However, as the warning in the GNU ld 9851 # block says, versions before 2.19.5* couldn't really create working 9852 # shared libraries, regardless of the interface used. 9853 case `$LD -v 2>&1` in 9854 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 9855 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 9856 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 9857 *) 9858 lt_use_gnu_ld_interface=yes 9859 ;; 9860 esac 9861 ;; 9862 *) 9863 lt_use_gnu_ld_interface=yes 9864 ;; 9865 esac 9866 fi 9867 9868 if test yes = "$lt_use_gnu_ld_interface"; then 9869 # If archive_cmds runs LD, not CC, wlarc should be empty 9870 wlarc='$wl' 9871 9872 # Set some defaults for GNU ld with shared library support. These 9873 # are reset later if shared libraries are not supported. Putting them 9874 # here allows them to be overridden if necessary. 9875 runpath_var=LD_RUN_PATH 9876 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9877 export_dynamic_flag_spec='$wl--export-dynamic' 9878 # ancient GNU ld didn't support --whole-archive et. al. 9879 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 9880 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 9881 else 9882 whole_archive_flag_spec= 9883 fi 9884 supports_anon_versioning=no 9885 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in 9886 *GNU\ gold*) supports_anon_versioning=yes ;; 9887 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 9888 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 9889 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 9890 *\ 2.11.*) ;; # other 2.11 versions 9891 *) supports_anon_versioning=yes ;; 9892 esac 9893 9894 # See if GNU ld supports shared libraries. 9895 case $host_os in 9896 aix[3-9]*) 9897 # On AIX/PPC, the GNU linker is very broken 9898 if test ia64 != "$host_cpu"; then 9899 ld_shlibs=no 9900 cat <<_LT_EOF 1>&2 9901 9902*** Warning: the GNU linker, at least up to release 2.19, is reported 9903*** to be unable to reliably create shared libraries on AIX. 9904*** Therefore, libtool is disabling shared libraries support. If you 9905*** really care for shared libraries, you may want to install binutils 9906*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 9907*** You will then need to restart the configuration process. 9908 9909_LT_EOF 9910 fi 9911 ;; 9912 9913 amigaos*) 9914 case $host_cpu in 9915 powerpc) 9916 # see comment about AmigaOS4 .so support 9917 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9918 archive_expsym_cmds='' 9919 ;; 9920 m68k) 9921 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)' 9922 hardcode_libdir_flag_spec='-L$libdir' 9923 hardcode_minus_L=yes 9924 ;; 9925 esac 9926 ;; 9927 9928 beos*) 9929 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9930 allow_undefined_flag=unsupported 9931 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 9932 # support --undefined. This deserves some investigation. FIXME 9933 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9934 else 9935 ld_shlibs=no 9936 fi 9937 ;; 9938 9939 cygwin* | mingw* | pw32* | cegcc*) 9940 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 9941 # as there is no search path for DLLs. 9942 hardcode_libdir_flag_spec='-L$libdir' 9943 export_dynamic_flag_spec='$wl--export-all-symbols' 9944 allow_undefined_flag=unsupported 9945 always_export_symbols=no 9946 enable_shared_with_static_runtimes=yes 9947 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' 9948 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 9949 9950 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 9951 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9952 # If the export-symbols file already is a .def file, use it as 9953 # is; otherwise, prepend EXPORTS... 9954 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 9955 cp $export_symbols $output_objdir/$soname.def; 9956 else 9957 echo EXPORTS > $output_objdir/$soname.def; 9958 cat $export_symbols >> $output_objdir/$soname.def; 9959 fi~ 9960 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9961 else 9962 ld_shlibs=no 9963 fi 9964 ;; 9965 9966 haiku*) 9967 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9968 link_all_deplibs=yes 9969 ;; 9970 9971 os2*) 9972 hardcode_libdir_flag_spec='-L$libdir' 9973 hardcode_minus_L=yes 9974 allow_undefined_flag=unsupported 9975 shrext_cmds=.dll 9976 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 9977 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 9978 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 9979 $ECHO EXPORTS >> $output_objdir/$libname.def~ 9980 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 9981 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 9982 emximp -o $lib $output_objdir/$libname.def' 9983 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 9984 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 9985 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 9986 $ECHO EXPORTS >> $output_objdir/$libname.def~ 9987 prefix_cmds="$SED"~ 9988 if test EXPORTS = "`$SED 1q $export_symbols`"; then 9989 prefix_cmds="$prefix_cmds -e 1d"; 9990 fi~ 9991 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 9992 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 9993 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 9994 emximp -o $lib $output_objdir/$libname.def' 9995 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 9996 enable_shared_with_static_runtimes=yes 9997 ;; 9998 9999 interix[3-9]*) 10000 hardcode_direct=no 10001 hardcode_shlibpath_var=no 10002 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 10003 export_dynamic_flag_spec='$wl-E' 10004 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 10005 # Instead, shared libraries are loaded at an image base (0x10000000 by 10006 # default) and relocated if they conflict, which is a slow very memory 10007 # consuming and fragmenting process. To avoid this, we pick a random, 10008 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 10009 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 10010 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 10011 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' 10012 ;; 10013 10014 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 10015 tmp_diet=no 10016 if test linux-dietlibc = "$host_os"; then 10017 case $cc_basename in 10018 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 10019 esac 10020 fi 10021 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 10022 && test no = "$tmp_diet" 10023 then 10024 tmp_addflag=' $pic_flag' 10025 tmp_sharedflag='-shared' 10026 case $cc_basename,$host_cpu in 10027 pgcc*) # Portland Group C compiler 10028 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' 10029 tmp_addflag=' $pic_flag' 10030 ;; 10031 pgf77* | pgf90* | pgf95* | pgfortran*) 10032 # Portland Group f77 and f90 compilers 10033 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' 10034 tmp_addflag=' $pic_flag -Mnomain' ;; 10035 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 10036 tmp_addflag=' -i_dynamic' ;; 10037 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 10038 tmp_addflag=' -i_dynamic -nofor_main' ;; 10039 ifc* | ifort*) # Intel Fortran compiler 10040 tmp_addflag=' -nofor_main' ;; 10041 lf95*) # Lahey Fortran 8.1 10042 whole_archive_flag_spec= 10043 tmp_sharedflag='--shared' ;; 10044 nagfor*) # NAGFOR 5.3 10045 tmp_sharedflag='-Wl,-shared' ;; 10046 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 10047 tmp_sharedflag='-qmkshrobj' 10048 tmp_addflag= ;; 10049 nvcc*) # Cuda Compiler Driver 2.2 10050 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' 10051 compiler_needs_object=yes 10052 ;; 10053 esac 10054 case `$CC -V 2>&1 | sed 5q` in 10055 *Sun\ C*) # Sun C 5.9 10056 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' 10057 compiler_needs_object=yes 10058 tmp_sharedflag='-G' ;; 10059 *Sun\ F*) # Sun Fortran 8.3 10060 tmp_sharedflag='-G' ;; 10061 esac 10062 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10063 10064 if test yes = "$supports_anon_versioning"; then 10065 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 10066 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 10067 echo "local: *; };" >> $output_objdir/$libname.ver~ 10068 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 10069 fi 10070 10071 case $cc_basename in 10072 tcc*) 10073 export_dynamic_flag_spec='-rdynamic' 10074 ;; 10075 xlf* | bgf* | bgxlf* | mpixlf*) 10076 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 10077 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 10078 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10079 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 10080 if test yes = "$supports_anon_versioning"; then 10081 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 10082 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 10083 echo "local: *; };" >> $output_objdir/$libname.ver~ 10084 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 10085 fi 10086 ;; 10087 esac 10088 else 10089 ld_shlibs=no 10090 fi 10091 ;; 10092 10093 netbsd*) 10094 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10095 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 10096 wlarc= 10097 else 10098 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10099 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10100 fi 10101 ;; 10102 10103 solaris*) 10104 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 10105 ld_shlibs=no 10106 cat <<_LT_EOF 1>&2 10107 10108*** Warning: The releases 2.8.* of the GNU linker cannot reliably 10109*** create shared libraries on Solaris systems. Therefore, libtool 10110*** is disabling shared libraries support. We urge you to upgrade GNU 10111*** binutils to release 2.9.1 or newer. Another option is to modify 10112*** your PATH or compiler configuration so that the native linker is 10113*** used, and then restart. 10114 10115_LT_EOF 10116 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10117 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10118 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10119 else 10120 ld_shlibs=no 10121 fi 10122 ;; 10123 10124 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 10125 case `$LD -v 2>&1` in 10126 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 10127 ld_shlibs=no 10128 cat <<_LT_EOF 1>&2 10129 10130*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot 10131*** reliably create shared libraries on SCO systems. Therefore, libtool 10132*** is disabling shared libraries support. We urge you to upgrade GNU 10133*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 10134*** your PATH or compiler configuration so that the native linker is 10135*** used, and then restart. 10136 10137_LT_EOF 10138 ;; 10139 *) 10140 # For security reasons, it is highly recommended that you always 10141 # use absolute paths for naming shared libraries, and exclude the 10142 # DT_RUNPATH tag from executables and libraries. But doing so 10143 # requires that you compile everything twice, which is a pain. 10144 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10145 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10146 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10147 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10148 else 10149 ld_shlibs=no 10150 fi 10151 ;; 10152 esac 10153 ;; 10154 10155 sunos4*) 10156 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 10157 wlarc= 10158 hardcode_direct=yes 10159 hardcode_shlibpath_var=no 10160 ;; 10161 10162 *) 10163 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10164 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10165 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10166 else 10167 ld_shlibs=no 10168 fi 10169 ;; 10170 esac 10171 10172 if test no = "$ld_shlibs"; then 10173 runpath_var= 10174 hardcode_libdir_flag_spec= 10175 export_dynamic_flag_spec= 10176 whole_archive_flag_spec= 10177 fi 10178 else 10179 # PORTME fill in a description of your system's linker (not GNU ld) 10180 case $host_os in 10181 aix3*) 10182 allow_undefined_flag=unsupported 10183 always_export_symbols=yes 10184 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' 10185 # Note: this linker hardcodes the directories in LIBPATH if there 10186 # are no directories specified by -L. 10187 hardcode_minus_L=yes 10188 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then 10189 # Neither direct hardcoding nor static linking is supported with a 10190 # broken collect2. 10191 hardcode_direct=unsupported 10192 fi 10193 ;; 10194 10195 aix[4-9]*) 10196 if test ia64 = "$host_cpu"; then 10197 # On IA64, the linker does run time linking by default, so we don't 10198 # have to do anything special. 10199 aix_use_runtimelinking=no 10200 exp_sym_flag='-Bexport' 10201 no_entry_flag= 10202 else 10203 # If we're using GNU nm, then we don't want the "-C" option. 10204 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 10205 # Without the "-l" option, or with the "-B" option, AIX nm treats 10206 # weak defined symbols like other global defined symbols, whereas 10207 # GNU nm marks them as "W". 10208 # While the 'weak' keyword is ignored in the Export File, we need 10209 # it in the Import File for the 'aix-soname' feature, so we have 10210 # to replace the "-B" option with "-P" for AIX nm. 10211 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 10212 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' 10213 else 10214 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 == "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' 10215 fi 10216 aix_use_runtimelinking=no 10217 10218 # Test if we are trying to use run time linking or normal 10219 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 10220 # have runtime linking enabled, and use it for executables. 10221 # For shared libraries, we enable/disable runtime linking 10222 # depending on the kind of the shared library created - 10223 # when "with_aix_soname,aix_use_runtimelinking" is: 10224 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 10225 # "aix,yes" lib.so shared, rtl:yes, for executables 10226 # lib.a static archive 10227 # "both,no" lib.so.V(shr.o) shared, rtl:yes 10228 # lib.a(lib.so.V) shared, rtl:no, for executables 10229 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 10230 # lib.a(lib.so.V) shared, rtl:no 10231 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 10232 # lib.a static archive 10233 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 10234 for ld_flag in $LDFLAGS; do 10235 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then 10236 aix_use_runtimelinking=yes 10237 break 10238 fi 10239 done 10240 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 10241 # With aix-soname=svr4, we create the lib.so.V shared archives only, 10242 # so we don't have lib.a shared libs to link our executables. 10243 # We have to force runtime linking in this case. 10244 aix_use_runtimelinking=yes 10245 LDFLAGS="$LDFLAGS -Wl,-brtl" 10246 fi 10247 ;; 10248 esac 10249 10250 exp_sym_flag='-bexport' 10251 no_entry_flag='-bnoentry' 10252 fi 10253 10254 # When large executables or shared objects are built, AIX ld can 10255 # have problems creating the table of contents. If linking a library 10256 # or program results in "error TOC overflow" add -mminimal-toc to 10257 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 10258 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 10259 10260 archive_cmds='' 10261 hardcode_direct=yes 10262 hardcode_direct_absolute=yes 10263 hardcode_libdir_separator=':' 10264 link_all_deplibs=yes 10265 file_list_spec='$wl-f,' 10266 case $with_aix_soname,$aix_use_runtimelinking in 10267 aix,*) ;; # traditional, no import file 10268 svr4,* | *,yes) # use import file 10269 # The Import File defines what to hardcode. 10270 hardcode_direct=no 10271 hardcode_direct_absolute=no 10272 ;; 10273 esac 10274 10275 if test yes = "$GCC"; then 10276 case $host_os in aix4.[012]|aix4.[012].*) 10277 # We only want to do this on AIX 4.2 and lower, the check 10278 # below for broken collect2 doesn't work under 4.3+ 10279 collect2name=`$CC -print-prog-name=collect2` 10280 if test -f "$collect2name" && 10281 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 10282 then 10283 # We have reworked collect2 10284 : 10285 else 10286 # We have old collect2 10287 hardcode_direct=unsupported 10288 # It fails to find uninstalled libraries when the uninstalled 10289 # path is not listed in the libpath. Setting hardcode_minus_L 10290 # to unsupported forces relinking 10291 hardcode_minus_L=yes 10292 hardcode_libdir_flag_spec='-L$libdir' 10293 hardcode_libdir_separator= 10294 fi 10295 ;; 10296 esac 10297 shared_flag='-shared' 10298 if test yes = "$aix_use_runtimelinking"; then 10299 shared_flag="$shared_flag "'$wl-G' 10300 fi 10301 # Need to ensure runtime linking is disabled for the traditional 10302 # shared library, or the linker may eventually find shared libraries 10303 # /with/ Import File - we do not want to mix them. 10304 shared_flag_aix='-shared' 10305 shared_flag_svr4='-shared $wl-G' 10306 else 10307 # not using gcc 10308 if test ia64 = "$host_cpu"; then 10309 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 10310 # chokes on -Wl,-G. The following line is correct: 10311 shared_flag='-G' 10312 else 10313 if test yes = "$aix_use_runtimelinking"; then 10314 shared_flag='$wl-G' 10315 else 10316 shared_flag='$wl-bM:SRE' 10317 fi 10318 shared_flag_aix='$wl-bM:SRE' 10319 shared_flag_svr4='$wl-G' 10320 fi 10321 fi 10322 10323 export_dynamic_flag_spec='$wl-bexpall' 10324 # It seems that -bexpall does not export symbols beginning with 10325 # underscore (_), so it is better to generate a list of symbols to export. 10326 always_export_symbols=yes 10327 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 10328 # Warning - without using the other runtime loading flags (-brtl), 10329 # -berok will link without error, but may produce a broken library. 10330 allow_undefined_flag='-berok' 10331 # Determine the default libpath from the value encoded in an 10332 # empty executable. 10333 if test set = "${lt_cv_aix_libpath+set}"; then 10334 aix_libpath=$lt_cv_aix_libpath 10335else 10336 if test ${lt_cv_aix_libpath_+y} 10337then : 10338 printf %s "(cached) " >&6 10339else $as_nop 10340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10341/* end confdefs.h. */ 10342 10343int 10344main (void) 10345{ 10346 10347 ; 10348 return 0; 10349} 10350_ACEOF 10351if ac_fn_c_try_link "$LINENO" 10352then : 10353 10354 lt_aix_libpath_sed=' 10355 /Import File Strings/,/^$/ { 10356 /^0/ { 10357 s/^0 *\([^ ]*\) *$/\1/ 10358 p 10359 } 10360 }' 10361 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10362 # Check for a 64-bit object if we didn't find anything. 10363 if test -z "$lt_cv_aix_libpath_"; then 10364 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10365 fi 10366fi 10367rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10368 conftest$ac_exeext conftest.$ac_ext 10369 if test -z "$lt_cv_aix_libpath_"; then 10370 lt_cv_aix_libpath_=/usr/lib:/lib 10371 fi 10372 10373fi 10374 10375 aix_libpath=$lt_cv_aix_libpath_ 10376fi 10377 10378 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 10379 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 10380 else 10381 if test ia64 = "$host_cpu"; then 10382 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib' 10383 allow_undefined_flag="-z nodefs" 10384 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" 10385 else 10386 # Determine the default libpath from the value encoded in an 10387 # empty executable. 10388 if test set = "${lt_cv_aix_libpath+set}"; then 10389 aix_libpath=$lt_cv_aix_libpath 10390else 10391 if test ${lt_cv_aix_libpath_+y} 10392then : 10393 printf %s "(cached) " >&6 10394else $as_nop 10395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10396/* end confdefs.h. */ 10397 10398int 10399main (void) 10400{ 10401 10402 ; 10403 return 0; 10404} 10405_ACEOF 10406if ac_fn_c_try_link "$LINENO" 10407then : 10408 10409 lt_aix_libpath_sed=' 10410 /Import File Strings/,/^$/ { 10411 /^0/ { 10412 s/^0 *\([^ ]*\) *$/\1/ 10413 p 10414 } 10415 }' 10416 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10417 # Check for a 64-bit object if we didn't find anything. 10418 if test -z "$lt_cv_aix_libpath_"; then 10419 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10420 fi 10421fi 10422rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10423 conftest$ac_exeext conftest.$ac_ext 10424 if test -z "$lt_cv_aix_libpath_"; then 10425 lt_cv_aix_libpath_=/usr/lib:/lib 10426 fi 10427 10428fi 10429 10430 aix_libpath=$lt_cv_aix_libpath_ 10431fi 10432 10433 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 10434 # Warning - without using the other run time loading flags, 10435 # -berok will link without error, but may produce a broken library. 10436 no_undefined_flag=' $wl-bernotok' 10437 allow_undefined_flag=' $wl-berok' 10438 if test yes = "$with_gnu_ld"; then 10439 # We only use this code for GNU lds that support --whole-archive. 10440 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive' 10441 else 10442 # Exported symbols can be pulled into shared objects from archives 10443 whole_archive_flag_spec='$convenience' 10444 fi 10445 archive_cmds_need_lc=yes 10446 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 10447 # -brtl affects multiple linker settings, -berok does not and is overridden later 10448 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 10449 if test svr4 != "$with_aix_soname"; then 10450 # This is similar to how AIX traditionally builds its shared libraries. 10451 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' 10452 fi 10453 if test aix != "$with_aix_soname"; then 10454 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' 10455 else 10456 # used by -dlpreopen to get the symbols 10457 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 10458 fi 10459 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d' 10460 fi 10461 fi 10462 ;; 10463 10464 amigaos*) 10465 case $host_cpu in 10466 powerpc) 10467 # see comment about AmigaOS4 .so support 10468 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10469 archive_expsym_cmds='' 10470 ;; 10471 m68k) 10472 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)' 10473 hardcode_libdir_flag_spec='-L$libdir' 10474 hardcode_minus_L=yes 10475 ;; 10476 esac 10477 ;; 10478 10479 bsdi[45]*) 10480 export_dynamic_flag_spec=-rdynamic 10481 ;; 10482 10483 cygwin* | mingw* | pw32* | cegcc*) 10484 # When not using gcc, we currently assume that we are using 10485 # Microsoft Visual C++. 10486 # hardcode_libdir_flag_spec is actually meaningless, as there is 10487 # no search path for DLLs. 10488 case $cc_basename in 10489 cl*) 10490 # Native MSVC 10491 hardcode_libdir_flag_spec=' ' 10492 allow_undefined_flag=unsupported 10493 always_export_symbols=yes 10494 file_list_spec='@' 10495 # Tell ltmain to make .lib files, not .a files. 10496 libext=lib 10497 # Tell ltmain to make .dll files, not .so files. 10498 shrext_cmds=.dll 10499 # FIXME: Setting linknames here is a bad hack. 10500 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 10501 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 10502 cp "$export_symbols" "$output_objdir/$soname.def"; 10503 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 10504 else 10505 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 10506 fi~ 10507 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 10508 linknames=' 10509 # The linker will not automatically build a static lib if we build a DLL. 10510 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 10511 enable_shared_with_static_runtimes=yes 10512 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 10513 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 10514 # Don't use ranlib 10515 old_postinstall_cmds='chmod 644 $oldlib' 10516 postlink_cmds='lt_outputfile="@OUTPUT@"~ 10517 lt_tool_outputfile="@TOOL_OUTPUT@"~ 10518 case $lt_outputfile in 10519 *.exe|*.EXE) ;; 10520 *) 10521 lt_outputfile=$lt_outputfile.exe 10522 lt_tool_outputfile=$lt_tool_outputfile.exe 10523 ;; 10524 esac~ 10525 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 10526 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 10527 $RM "$lt_outputfile.manifest"; 10528 fi' 10529 ;; 10530 *) 10531 # Assume MSVC wrapper 10532 hardcode_libdir_flag_spec=' ' 10533 allow_undefined_flag=unsupported 10534 # Tell ltmain to make .lib files, not .a files. 10535 libext=lib 10536 # Tell ltmain to make .dll files, not .so files. 10537 shrext_cmds=.dll 10538 # FIXME: Setting linknames here is a bad hack. 10539 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 10540 # The linker will automatically build a .lib file if we build a DLL. 10541 old_archive_from_new_cmds='true' 10542 # FIXME: Should let the user specify the lib program. 10543 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 10544 enable_shared_with_static_runtimes=yes 10545 ;; 10546 esac 10547 ;; 10548 10549 darwin* | rhapsody*) 10550 10551 10552 archive_cmds_need_lc=no 10553 hardcode_direct=no 10554 hardcode_automatic=yes 10555 hardcode_shlibpath_var=unsupported 10556 if test yes = "$lt_cv_ld_force_load"; then 10557 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\"`' 10558 10559 else 10560 whole_archive_flag_spec='' 10561 fi 10562 link_all_deplibs=yes 10563 allow_undefined_flag=$_lt_dar_allow_undefined 10564 case $cc_basename in 10565 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 10566 *) _lt_dar_can_shared=$GCC ;; 10567 esac 10568 if test yes = "$_lt_dar_can_shared"; then 10569 output_verbose_link_cmd=func_echo_all 10570 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" 10571 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 10572 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" 10573 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" 10574 10575 else 10576 ld_shlibs=no 10577 fi 10578 10579 ;; 10580 10581 dgux*) 10582 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10583 hardcode_libdir_flag_spec='-L$libdir' 10584 hardcode_shlibpath_var=no 10585 ;; 10586 10587 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 10588 # support. Future versions do this automatically, but an explicit c++rt0.o 10589 # does not break anything, and helps significantly (at the cost of a little 10590 # extra space). 10591 freebsd2.2*) 10592 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 10593 hardcode_libdir_flag_spec='-R$libdir' 10594 hardcode_direct=yes 10595 hardcode_shlibpath_var=no 10596 ;; 10597 10598 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 10599 freebsd2.*) 10600 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 10601 hardcode_direct=yes 10602 hardcode_minus_L=yes 10603 hardcode_shlibpath_var=no 10604 ;; 10605 10606 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 10607 freebsd* | dragonfly*) 10608 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10609 hardcode_libdir_flag_spec='-R$libdir' 10610 hardcode_direct=yes 10611 hardcode_shlibpath_var=no 10612 ;; 10613 10614 hpux9*) 10615 if test yes = "$GCC"; then 10616 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' 10617 else 10618 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' 10619 fi 10620 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 10621 hardcode_libdir_separator=: 10622 hardcode_direct=yes 10623 10624 # hardcode_minus_L: Not really in the search PATH, 10625 # but as the default location of the library. 10626 hardcode_minus_L=yes 10627 export_dynamic_flag_spec='$wl-E' 10628 ;; 10629 10630 hpux10*) 10631 if test yes,no = "$GCC,$with_gnu_ld"; then 10632 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10633 else 10634 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 10635 fi 10636 if test no = "$with_gnu_ld"; then 10637 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 10638 hardcode_libdir_separator=: 10639 hardcode_direct=yes 10640 hardcode_direct_absolute=yes 10641 export_dynamic_flag_spec='$wl-E' 10642 # hardcode_minus_L: Not really in the search PATH, 10643 # but as the default location of the library. 10644 hardcode_minus_L=yes 10645 fi 10646 ;; 10647 10648 hpux11*) 10649 if test yes,no = "$GCC,$with_gnu_ld"; then 10650 case $host_cpu in 10651 hppa*64*) 10652 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 10653 ;; 10654 ia64*) 10655 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 10656 ;; 10657 *) 10658 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10659 ;; 10660 esac 10661 else 10662 case $host_cpu in 10663 hppa*64*) 10664 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 10665 ;; 10666 ia64*) 10667 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 10668 ;; 10669 *) 10670 10671 # Older versions of the 11.00 compiler do not understand -b yet 10672 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 10673 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 10674printf %s "checking if $CC understands -b... " >&6; } 10675if test ${lt_cv_prog_compiler__b+y} 10676then : 10677 printf %s "(cached) " >&6 10678else $as_nop 10679 lt_cv_prog_compiler__b=no 10680 save_LDFLAGS=$LDFLAGS 10681 LDFLAGS="$LDFLAGS -b" 10682 echo "$lt_simple_link_test_code" > conftest.$ac_ext 10683 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 10684 # The linker can only warn and ignore the option if not recognized 10685 # So say no if there are warnings 10686 if test -s conftest.err; then 10687 # Append any errors to the config.log. 10688 cat conftest.err 1>&5 10689 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 10690 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 10691 if diff conftest.exp conftest.er2 >/dev/null; then 10692 lt_cv_prog_compiler__b=yes 10693 fi 10694 else 10695 lt_cv_prog_compiler__b=yes 10696 fi 10697 fi 10698 $RM -r conftest* 10699 LDFLAGS=$save_LDFLAGS 10700 10701fi 10702{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 10703printf "%s\n" "$lt_cv_prog_compiler__b" >&6; } 10704 10705if test yes = "$lt_cv_prog_compiler__b"; then 10706 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10707else 10708 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 10709fi 10710 10711 ;; 10712 esac 10713 fi 10714 if test no = "$with_gnu_ld"; then 10715 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 10716 hardcode_libdir_separator=: 10717 10718 case $host_cpu in 10719 hppa*64*|ia64*) 10720 hardcode_direct=no 10721 hardcode_shlibpath_var=no 10722 ;; 10723 *) 10724 hardcode_direct=yes 10725 hardcode_direct_absolute=yes 10726 export_dynamic_flag_spec='$wl-E' 10727 10728 # hardcode_minus_L: Not really in the search PATH, 10729 # but as the default location of the library. 10730 hardcode_minus_L=yes 10731 ;; 10732 esac 10733 fi 10734 ;; 10735 10736 irix5* | irix6* | nonstopux*) 10737 if test yes = "$GCC"; then 10738 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' 10739 # Try to use the -exported_symbol ld option, if it does not 10740 # work, assume that -exports_file does not work either and 10741 # implicitly export all symbols. 10742 # This should be the same for all languages, so no per-tag cache variable. 10743 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 10744printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 10745if test ${lt_cv_irix_exported_symbol+y} 10746then : 10747 printf %s "(cached) " >&6 10748else $as_nop 10749 save_LDFLAGS=$LDFLAGS 10750 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" 10751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10752/* end confdefs.h. */ 10753int foo (void) { return 0; } 10754_ACEOF 10755if ac_fn_c_try_link "$LINENO" 10756then : 10757 lt_cv_irix_exported_symbol=yes 10758else $as_nop 10759 lt_cv_irix_exported_symbol=no 10760fi 10761rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10762 conftest$ac_exeext conftest.$ac_ext 10763 LDFLAGS=$save_LDFLAGS 10764fi 10765{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 10766printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; } 10767 if test yes = "$lt_cv_irix_exported_symbol"; then 10768 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' 10769 fi 10770 else 10771 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' 10772 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' 10773 fi 10774 archive_cmds_need_lc='no' 10775 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10776 hardcode_libdir_separator=: 10777 inherit_rpath=yes 10778 link_all_deplibs=yes 10779 ;; 10780 10781 linux*) 10782 case $cc_basename in 10783 tcc*) 10784 # Fabrice Bellard et al's Tiny C Compiler 10785 ld_shlibs=yes 10786 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10787 ;; 10788 esac 10789 ;; 10790 10791 netbsd*) 10792 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10793 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 10794 else 10795 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 10796 fi 10797 hardcode_libdir_flag_spec='-R$libdir' 10798 hardcode_direct=yes 10799 hardcode_shlibpath_var=no 10800 ;; 10801 10802 newsos6) 10803 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10804 hardcode_direct=yes 10805 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10806 hardcode_libdir_separator=: 10807 hardcode_shlibpath_var=no 10808 ;; 10809 10810 *nto* | *qnx*) 10811 ;; 10812 10813 openbsd* | bitrig*) 10814 if test -f /usr/libexec/ld.so; then 10815 hardcode_direct=yes 10816 hardcode_shlibpath_var=no 10817 hardcode_direct_absolute=yes 10818 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 10819 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10820 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' 10821 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 10822 export_dynamic_flag_spec='$wl-E' 10823 else 10824 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10825 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 10826 fi 10827 else 10828 ld_shlibs=no 10829 fi 10830 ;; 10831 10832 os2*) 10833 hardcode_libdir_flag_spec='-L$libdir' 10834 hardcode_minus_L=yes 10835 allow_undefined_flag=unsupported 10836 shrext_cmds=.dll 10837 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10838 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10839 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10840 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10841 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 10842 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10843 emximp -o $lib $output_objdir/$libname.def' 10844 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10845 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10846 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10847 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10848 prefix_cmds="$SED"~ 10849 if test EXPORTS = "`$SED 1q $export_symbols`"; then 10850 prefix_cmds="$prefix_cmds -e 1d"; 10851 fi~ 10852 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 10853 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 10854 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10855 emximp -o $lib $output_objdir/$libname.def' 10856 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 10857 enable_shared_with_static_runtimes=yes 10858 ;; 10859 10860 osf3*) 10861 if test yes = "$GCC"; then 10862 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 10863 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' 10864 else 10865 allow_undefined_flag=' -expect_unresolved \*' 10866 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' 10867 fi 10868 archive_cmds_need_lc='no' 10869 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10870 hardcode_libdir_separator=: 10871 ;; 10872 10873 osf4* | osf5*) # as osf3* with the addition of -msym flag 10874 if test yes = "$GCC"; then 10875 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 10876 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' 10877 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10878 else 10879 allow_undefined_flag=' -expect_unresolved \*' 10880 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' 10881 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~ 10882 $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' 10883 10884 # Both c and cxx compiler support -rpath directly 10885 hardcode_libdir_flag_spec='-rpath $libdir' 10886 fi 10887 archive_cmds_need_lc='no' 10888 hardcode_libdir_separator=: 10889 ;; 10890 10891 solaris*) 10892 no_undefined_flag=' -z defs' 10893 if test yes = "$GCC"; then 10894 wlarc='$wl' 10895 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 10896 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10897 $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' 10898 else 10899 case `$CC -V 2>&1` in 10900 *"Compilers 5.0"*) 10901 wlarc='' 10902 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' 10903 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10904 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 10905 ;; 10906 *) 10907 wlarc='$wl' 10908 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' 10909 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10910 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 10911 ;; 10912 esac 10913 fi 10914 hardcode_libdir_flag_spec='-R$libdir' 10915 hardcode_shlibpath_var=no 10916 case $host_os in 10917 solaris2.[0-5] | solaris2.[0-5].*) ;; 10918 *) 10919 # The compiler driver will combine and reorder linker options, 10920 # but understands '-z linker_flag'. GCC discards it without '$wl', 10921 # but is careful enough not to reorder. 10922 # Supported since Solaris 2.6 (maybe 2.5.1?) 10923 if test yes = "$GCC"; then 10924 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 10925 else 10926 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 10927 fi 10928 ;; 10929 esac 10930 link_all_deplibs=yes 10931 ;; 10932 10933 sunos4*) 10934 if test sequent = "$host_vendor"; then 10935 # Use $CC to link under sequent, because it throws in some extra .o 10936 # files that make .init and .fini sections work. 10937 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' 10938 else 10939 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 10940 fi 10941 hardcode_libdir_flag_spec='-L$libdir' 10942 hardcode_direct=yes 10943 hardcode_minus_L=yes 10944 hardcode_shlibpath_var=no 10945 ;; 10946 10947 sysv4) 10948 case $host_vendor in 10949 sni) 10950 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10951 hardcode_direct=yes # is this really true??? 10952 ;; 10953 siemens) 10954 ## LD is ld it makes a PLAMLIB 10955 ## CC just makes a GrossModule. 10956 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 10957 reload_cmds='$CC -r -o $output$reload_objs' 10958 hardcode_direct=no 10959 ;; 10960 motorola) 10961 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10962 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 10963 ;; 10964 esac 10965 runpath_var='LD_RUN_PATH' 10966 hardcode_shlibpath_var=no 10967 ;; 10968 10969 sysv4.3*) 10970 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10971 hardcode_shlibpath_var=no 10972 export_dynamic_flag_spec='-Bexport' 10973 ;; 10974 10975 sysv4*MP*) 10976 if test -d /usr/nec; then 10977 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10978 hardcode_shlibpath_var=no 10979 runpath_var=LD_RUN_PATH 10980 hardcode_runpath_var=yes 10981 ld_shlibs=yes 10982 fi 10983 ;; 10984 10985 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 10986 no_undefined_flag='$wl-z,text' 10987 archive_cmds_need_lc=no 10988 hardcode_shlibpath_var=no 10989 runpath_var='LD_RUN_PATH' 10990 10991 if test yes = "$GCC"; then 10992 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10993 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10994 else 10995 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10996 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10997 fi 10998 ;; 10999 11000 sysv5* | sco3.2v5* | sco5v6*) 11001 # Note: We CANNOT use -z defs as we might desire, because we do not 11002 # link with -lc, and that would cause any symbols used from libc to 11003 # always be unresolved, which means just about no library would 11004 # ever link correctly. If we're not using GNU ld we use -z text 11005 # though, which does catch some bad symbols but isn't as heavy-handed 11006 # as -z defs. 11007 no_undefined_flag='$wl-z,text' 11008 allow_undefined_flag='$wl-z,nodefs' 11009 archive_cmds_need_lc=no 11010 hardcode_shlibpath_var=no 11011 hardcode_libdir_flag_spec='$wl-R,$libdir' 11012 hardcode_libdir_separator=':' 11013 link_all_deplibs=yes 11014 export_dynamic_flag_spec='$wl-Bexport' 11015 runpath_var='LD_RUN_PATH' 11016 11017 if test yes = "$GCC"; then 11018 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11019 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11020 else 11021 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11022 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11023 fi 11024 ;; 11025 11026 uts4*) 11027 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11028 hardcode_libdir_flag_spec='-L$libdir' 11029 hardcode_shlibpath_var=no 11030 ;; 11031 11032 *) 11033 ld_shlibs=no 11034 ;; 11035 esac 11036 11037 if test sni = "$host_vendor"; then 11038 case $host in 11039 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 11040 export_dynamic_flag_spec='$wl-Blargedynsym' 11041 ;; 11042 esac 11043 fi 11044 fi 11045 11046{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 11047printf "%s\n" "$ld_shlibs" >&6; } 11048test no = "$ld_shlibs" && can_build_shared=no 11049 11050with_gnu_ld=$with_gnu_ld 11051 11052 11053 11054 11055 11056 11057 11058 11059 11060 11061 11062 11063 11064 11065 11066# 11067# Do we need to explicitly link libc? 11068# 11069case "x$archive_cmds_need_lc" in 11070x|xyes) 11071 # Assume -lc should be added 11072 archive_cmds_need_lc=yes 11073 11074 if test yes,yes = "$GCC,$enable_shared"; then 11075 case $archive_cmds in 11076 *'~'*) 11077 # FIXME: we may have to deal with multi-command sequences. 11078 ;; 11079 '$CC '*) 11080 # Test whether the compiler implicitly links with -lc since on some 11081 # systems, -lgcc has to come before -lc. If gcc already passes -lc 11082 # to ld, don't add -lc before -lgcc. 11083 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 11084printf %s "checking whether -lc should be explicitly linked in... " >&6; } 11085if test ${lt_cv_archive_cmds_need_lc+y} 11086then : 11087 printf %s "(cached) " >&6 11088else $as_nop 11089 $RM conftest* 11090 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 11091 11092 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 11093 (eval $ac_compile) 2>&5 11094 ac_status=$? 11095 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11096 test $ac_status = 0; } 2>conftest.err; then 11097 soname=conftest 11098 lib=conftest 11099 libobjs=conftest.$ac_objext 11100 deplibs= 11101 wl=$lt_prog_compiler_wl 11102 pic_flag=$lt_prog_compiler_pic 11103 compiler_flags=-v 11104 linker_flags=-v 11105 verstring= 11106 output_objdir=. 11107 libname=conftest 11108 lt_save_allow_undefined_flag=$allow_undefined_flag 11109 allow_undefined_flag= 11110 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 11111 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 11112 ac_status=$? 11113 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11114 test $ac_status = 0; } 11115 then 11116 lt_cv_archive_cmds_need_lc=no 11117 else 11118 lt_cv_archive_cmds_need_lc=yes 11119 fi 11120 allow_undefined_flag=$lt_save_allow_undefined_flag 11121 else 11122 cat conftest.err 1>&5 11123 fi 11124 $RM conftest* 11125 11126fi 11127{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 11128printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; } 11129 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 11130 ;; 11131 esac 11132 fi 11133 ;; 11134esac 11135 11136 11137 11138 11139 11140 11141 11142 11143 11144 11145 11146 11147 11148 11149 11150 11151 11152 11153 11154 11155 11156 11157 11158 11159 11160 11161 11162 11163 11164 11165 11166 11167 11168 11169 11170 11171 11172 11173 11174 11175 11176 11177 11178 11179 11180 11181 11182 11183 11184 11185 11186 11187 11188 11189 11190 11191 11192 11193 11194 11195 11196 11197 11198 11199 11200 11201 11202 11203 11204 11205 11206 11207 11208 11209 11210 11211 11212 11213 11214 11215 11216 11217 11218 11219 11220 11221 11222 11223 11224 11225 11226 11227 11228 11229 11230 11231 11232 11233 11234 11235 11236 11237 11238 11239 11240 11241 11242 11243 11244 11245 11246 11247 11248 11249 11250 11251 11252 11253 11254 11255 11256 11257 11258 11259 11260 11261 11262 11263 11264 11265 11266 11267 11268 11269 11270 11271 11272 11273 11274 11275 11276 11277 11278 11279 11280 11281 11282 11283 11284 11285 11286 11287 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 11288printf %s "checking dynamic linker characteristics... " >&6; } 11289 11290if test yes = "$GCC"; then 11291 case $host_os in 11292 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; 11293 *) lt_awk_arg='/^libraries:/' ;; 11294 esac 11295 case $host_os in 11296 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;; 11297 *) lt_sed_strip_eq='s|=/|/|g' ;; 11298 esac 11299 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 11300 case $lt_search_path_spec in 11301 *\;*) 11302 # if the path contains ";" then we assume it to be the separator 11303 # otherwise default to the standard path separator (i.e. ":") - it is 11304 # assumed that no part of a normal pathname contains ";" but that should 11305 # okay in the real world where ";" in dirpaths is itself problematic. 11306 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 11307 ;; 11308 *) 11309 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 11310 ;; 11311 esac 11312 # Ok, now we have the path, separated by spaces, we can step through it 11313 # and add multilib dir if necessary... 11314 lt_tmp_lt_search_path_spec= 11315 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 11316 # ...but if some path component already ends with the multilib dir we assume 11317 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). 11318 case "$lt_multi_os_dir; $lt_search_path_spec " in 11319 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) 11320 lt_multi_os_dir= 11321 ;; 11322 esac 11323 for lt_sys_path in $lt_search_path_spec; do 11324 if test -d "$lt_sys_path$lt_multi_os_dir"; then 11325 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" 11326 elif test -n "$lt_multi_os_dir"; then 11327 test -d "$lt_sys_path" && \ 11328 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 11329 fi 11330 done 11331 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 11332BEGIN {RS = " "; FS = "/|\n";} { 11333 lt_foo = ""; 11334 lt_count = 0; 11335 for (lt_i = NF; lt_i > 0; lt_i--) { 11336 if ($lt_i != "" && $lt_i != ".") { 11337 if ($lt_i == "..") { 11338 lt_count++; 11339 } else { 11340 if (lt_count == 0) { 11341 lt_foo = "/" $lt_i lt_foo; 11342 } else { 11343 lt_count--; 11344 } 11345 } 11346 } 11347 } 11348 if (lt_foo != "") { lt_freq[lt_foo]++; } 11349 if (lt_freq[lt_foo] == 1) { print lt_foo; } 11350}'` 11351 # AWK program above erroneously prepends '/' to C:/dos/paths 11352 # for these hosts. 11353 case $host_os in 11354 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 11355 $SED 's|/\([A-Za-z]:\)|\1|g'` ;; 11356 esac 11357 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 11358else 11359 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 11360fi 11361library_names_spec= 11362libname_spec='lib$name' 11363soname_spec= 11364shrext_cmds=.so 11365postinstall_cmds= 11366postuninstall_cmds= 11367finish_cmds= 11368finish_eval= 11369shlibpath_var= 11370shlibpath_overrides_runpath=unknown 11371version_type=none 11372dynamic_linker="$host_os ld.so" 11373sys_lib_dlsearch_path_spec="/lib /usr/lib" 11374need_lib_prefix=unknown 11375hardcode_into_libs=no 11376 11377# when you set need_version to no, make sure it does not cause -set_version 11378# flags to be left without arguments 11379need_version=unknown 11380 11381 11382 11383case $host_os in 11384aix3*) 11385 version_type=linux # correct to gnu/linux during the next big refactor 11386 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 11387 shlibpath_var=LIBPATH 11388 11389 # AIX 3 has no versioning support, so we append a major version to the name. 11390 soname_spec='$libname$release$shared_ext$major' 11391 ;; 11392 11393aix[4-9]*) 11394 version_type=linux # correct to gnu/linux during the next big refactor 11395 need_lib_prefix=no 11396 need_version=no 11397 hardcode_into_libs=yes 11398 if test ia64 = "$host_cpu"; then 11399 # AIX 5 supports IA64 11400 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 11401 shlibpath_var=LD_LIBRARY_PATH 11402 else 11403 # With GCC up to 2.95.x, collect2 would create an import file 11404 # for dependence libraries. The import file would start with 11405 # the line '#! .'. This would cause the generated library to 11406 # depend on '.', always an invalid library. This was fixed in 11407 # development snapshots of GCC prior to 3.0. 11408 case $host_os in 11409 aix4 | aix4.[01] | aix4.[01].*) 11410 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 11411 echo ' yes ' 11412 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 11413 : 11414 else 11415 can_build_shared=no 11416 fi 11417 ;; 11418 esac 11419 # Using Import Files as archive members, it is possible to support 11420 # filename-based versioning of shared library archives on AIX. While 11421 # this would work for both with and without runtime linking, it will 11422 # prevent static linking of such archives. So we do filename-based 11423 # shared library versioning with .so extension only, which is used 11424 # when both runtime linking and shared linking is enabled. 11425 # Unfortunately, runtime linking may impact performance, so we do 11426 # not want this to be the default eventually. Also, we use the 11427 # versioned .so libs for executables only if there is the -brtl 11428 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. 11429 # To allow for filename-based versioning support, we need to create 11430 # libNAME.so.V as an archive file, containing: 11431 # *) an Import File, referring to the versioned filename of the 11432 # archive as well as the shared archive member, telling the 11433 # bitwidth (32 or 64) of that shared object, and providing the 11434 # list of exported symbols of that shared object, eventually 11435 # decorated with the 'weak' keyword 11436 # *) the shared object with the F_LOADONLY flag set, to really avoid 11437 # it being seen by the linker. 11438 # At run time we better use the real file rather than another symlink, 11439 # but for link time we create the symlink libNAME.so -> libNAME.so.V 11440 11441 case $with_aix_soname,$aix_use_runtimelinking in 11442 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 11443 # soname into executable. Probably we can add versioning support to 11444 # collect2, so additional links can be useful in future. 11445 aix,yes) # traditional libtool 11446 dynamic_linker='AIX unversionable lib.so' 11447 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 11448 # instead of lib<name>.a to let people know that these are not 11449 # typical AIX shared libraries. 11450 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11451 ;; 11452 aix,no) # traditional AIX only 11453 dynamic_linker='AIX lib.a(lib.so.V)' 11454 # We preserve .a as extension for shared libraries through AIX4.2 11455 # and later when we are not doing run time linking. 11456 library_names_spec='$libname$release.a $libname.a' 11457 soname_spec='$libname$release$shared_ext$major' 11458 ;; 11459 svr4,*) # full svr4 only 11460 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 11461 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 11462 # We do not specify a path in Import Files, so LIBPATH fires. 11463 shlibpath_overrides_runpath=yes 11464 ;; 11465 *,yes) # both, prefer svr4 11466 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 11467 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 11468 # unpreferred sharedlib libNAME.a needs extra handling 11469 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"' 11470 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"' 11471 # We do not specify a path in Import Files, so LIBPATH fires. 11472 shlibpath_overrides_runpath=yes 11473 ;; 11474 *,no) # both, prefer aix 11475 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 11476 library_names_spec='$libname$release.a $libname.a' 11477 soname_spec='$libname$release$shared_ext$major' 11478 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 11479 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)' 11480 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"' 11481 ;; 11482 esac 11483 shlibpath_var=LIBPATH 11484 fi 11485 ;; 11486 11487amigaos*) 11488 case $host_cpu in 11489 powerpc) 11490 # Since July 2007 AmigaOS4 officially supports .so libraries. 11491 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 11492 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11493 ;; 11494 m68k) 11495 library_names_spec='$libname.ixlibrary $libname.a' 11496 # Create ${libname}_ixlibrary.a entries in /sys/libs. 11497 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' 11498 ;; 11499 esac 11500 ;; 11501 11502beos*) 11503 library_names_spec='$libname$shared_ext' 11504 dynamic_linker="$host_os ld.so" 11505 shlibpath_var=LIBRARY_PATH 11506 ;; 11507 11508bsdi[45]*) 11509 version_type=linux # correct to gnu/linux during the next big refactor 11510 need_version=no 11511 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11512 soname_spec='$libname$release$shared_ext$major' 11513 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 11514 shlibpath_var=LD_LIBRARY_PATH 11515 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 11516 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 11517 # the default ld.so.conf also contains /usr/contrib/lib and 11518 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 11519 # libtool to hard-code these into programs 11520 ;; 11521 11522cygwin* | mingw* | pw32* | cegcc*) 11523 version_type=windows 11524 shrext_cmds=.dll 11525 need_version=no 11526 need_lib_prefix=no 11527 11528 case $GCC,$cc_basename in 11529 yes,*) 11530 # gcc 11531 library_names_spec='$libname.dll.a' 11532 # DLL is installed to $(libdir)/../bin by postinstall_cmds 11533 postinstall_cmds='base_file=`basename \$file`~ 11534 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 11535 dldir=$destdir/`dirname \$dlpath`~ 11536 test -d \$dldir || mkdir -p \$dldir~ 11537 $install_prog $dir/$dlname \$dldir/$dlname~ 11538 chmod a+x \$dldir/$dlname~ 11539 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 11540 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 11541 fi' 11542 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 11543 dlpath=$dir/\$dldll~ 11544 $RM \$dlpath' 11545 shlibpath_overrides_runpath=yes 11546 11547 case $host_os in 11548 cygwin*) 11549 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 11550 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11551 11552 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 11553 ;; 11554 mingw* | cegcc*) 11555 # MinGW DLLs use traditional 'lib' prefix 11556 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11557 ;; 11558 pw32*) 11559 # pw32 DLLs use 'pw' prefix rather than 'lib' 11560 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11561 ;; 11562 esac 11563 dynamic_linker='Win32 ld.exe' 11564 ;; 11565 11566 *,cl*) 11567 # Native MSVC 11568 libname_spec='$name' 11569 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11570 library_names_spec='$libname.dll.lib' 11571 11572 case $build_os in 11573 mingw*) 11574 sys_lib_search_path_spec= 11575 lt_save_ifs=$IFS 11576 IFS=';' 11577 for lt_path in $LIB 11578 do 11579 IFS=$lt_save_ifs 11580 # Let DOS variable expansion print the short 8.3 style file name. 11581 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 11582 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 11583 done 11584 IFS=$lt_save_ifs 11585 # Convert to MSYS style. 11586 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 11587 ;; 11588 cygwin*) 11589 # Convert to unix form, then to dos form, then back to unix form 11590 # but this time dos style (no spaces!) so that the unix form looks 11591 # like /cygdrive/c/PROGRA~1:/cygdr... 11592 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 11593 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 11594 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 11595 ;; 11596 *) 11597 sys_lib_search_path_spec=$LIB 11598 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 11599 # It is most probably a Windows format PATH. 11600 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 11601 else 11602 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 11603 fi 11604 # FIXME: find the short name or the path components, as spaces are 11605 # common. (e.g. "Program Files" -> "PROGRA~1") 11606 ;; 11607 esac 11608 11609 # DLL is installed to $(libdir)/../bin by postinstall_cmds 11610 postinstall_cmds='base_file=`basename \$file`~ 11611 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 11612 dldir=$destdir/`dirname \$dlpath`~ 11613 test -d \$dldir || mkdir -p \$dldir~ 11614 $install_prog $dir/$dlname \$dldir/$dlname' 11615 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 11616 dlpath=$dir/\$dldll~ 11617 $RM \$dlpath' 11618 shlibpath_overrides_runpath=yes 11619 dynamic_linker='Win32 link.exe' 11620 ;; 11621 11622 *) 11623 # Assume MSVC wrapper 11624 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 11625 dynamic_linker='Win32 ld.exe' 11626 ;; 11627 esac 11628 # FIXME: first we should search . and the directory the executable is in 11629 shlibpath_var=PATH 11630 ;; 11631 11632darwin* | rhapsody*) 11633 dynamic_linker="$host_os dyld" 11634 version_type=darwin 11635 need_lib_prefix=no 11636 need_version=no 11637 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' 11638 soname_spec='$libname$release$major$shared_ext' 11639 shlibpath_overrides_runpath=yes 11640 shlibpath_var=DYLD_LIBRARY_PATH 11641 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 11642 11643 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 11644 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 11645 ;; 11646 11647dgux*) 11648 version_type=linux # correct to gnu/linux during the next big refactor 11649 need_lib_prefix=no 11650 need_version=no 11651 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11652 soname_spec='$libname$release$shared_ext$major' 11653 shlibpath_var=LD_LIBRARY_PATH 11654 ;; 11655 11656freebsd* | dragonfly*) 11657 # DragonFly does not have aout. When/if they implement a new 11658 # versioning mechanism, adjust this. 11659 if test -x /usr/bin/objformat; then 11660 objformat=`/usr/bin/objformat` 11661 else 11662 case $host_os in 11663 freebsd[23].*) objformat=aout ;; 11664 *) objformat=elf ;; 11665 esac 11666 fi 11667 version_type=freebsd-$objformat 11668 case $version_type in 11669 freebsd-elf*) 11670 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11671 soname_spec='$libname$release$shared_ext$major' 11672 need_version=no 11673 need_lib_prefix=no 11674 ;; 11675 freebsd-*) 11676 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11677 need_version=yes 11678 ;; 11679 esac 11680 shlibpath_var=LD_LIBRARY_PATH 11681 case $host_os in 11682 freebsd2.*) 11683 shlibpath_overrides_runpath=yes 11684 ;; 11685 freebsd3.[01]* | freebsdelf3.[01]*) 11686 shlibpath_overrides_runpath=yes 11687 hardcode_into_libs=yes 11688 ;; 11689 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 11690 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 11691 shlibpath_overrides_runpath=no 11692 hardcode_into_libs=yes 11693 ;; 11694 *) # from 4.6 on, and DragonFly 11695 shlibpath_overrides_runpath=yes 11696 hardcode_into_libs=yes 11697 ;; 11698 esac 11699 ;; 11700 11701haiku*) 11702 version_type=linux # correct to gnu/linux during the next big refactor 11703 need_lib_prefix=no 11704 need_version=no 11705 dynamic_linker="$host_os runtime_loader" 11706 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11707 soname_spec='$libname$release$shared_ext$major' 11708 shlibpath_var=LIBRARY_PATH 11709 shlibpath_overrides_runpath=no 11710 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 11711 hardcode_into_libs=yes 11712 ;; 11713 11714hpux9* | hpux10* | hpux11*) 11715 # Give a soname corresponding to the major version so that dld.sl refuses to 11716 # link against other versions. 11717 version_type=sunos 11718 need_lib_prefix=no 11719 need_version=no 11720 case $host_cpu in 11721 ia64*) 11722 shrext_cmds='.so' 11723 hardcode_into_libs=yes 11724 dynamic_linker="$host_os dld.so" 11725 shlibpath_var=LD_LIBRARY_PATH 11726 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11727 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11728 soname_spec='$libname$release$shared_ext$major' 11729 if test 32 = "$HPUX_IA64_MODE"; then 11730 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 11731 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 11732 else 11733 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 11734 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 11735 fi 11736 ;; 11737 hppa*64*) 11738 shrext_cmds='.sl' 11739 hardcode_into_libs=yes 11740 dynamic_linker="$host_os dld.sl" 11741 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 11742 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11743 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11744 soname_spec='$libname$release$shared_ext$major' 11745 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 11746 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11747 ;; 11748 *) 11749 shrext_cmds='.sl' 11750 dynamic_linker="$host_os dld.sl" 11751 shlibpath_var=SHLIB_PATH 11752 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 11753 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11754 soname_spec='$libname$release$shared_ext$major' 11755 ;; 11756 esac 11757 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 11758 postinstall_cmds='chmod 555 $lib' 11759 # or fails outright, so override atomically: 11760 install_override_mode=555 11761 ;; 11762 11763interix[3-9]*) 11764 version_type=linux # correct to gnu/linux during the next big refactor 11765 need_lib_prefix=no 11766 need_version=no 11767 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11768 soname_spec='$libname$release$shared_ext$major' 11769 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 11770 shlibpath_var=LD_LIBRARY_PATH 11771 shlibpath_overrides_runpath=no 11772 hardcode_into_libs=yes 11773 ;; 11774 11775irix5* | irix6* | nonstopux*) 11776 case $host_os in 11777 nonstopux*) version_type=nonstopux ;; 11778 *) 11779 if test yes = "$lt_cv_prog_gnu_ld"; then 11780 version_type=linux # correct to gnu/linux during the next big refactor 11781 else 11782 version_type=irix 11783 fi ;; 11784 esac 11785 need_lib_prefix=no 11786 need_version=no 11787 soname_spec='$libname$release$shared_ext$major' 11788 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 11789 case $host_os in 11790 irix5* | nonstopux*) 11791 libsuff= shlibsuff= 11792 ;; 11793 *) 11794 case $LD in # libtool.m4 will add one of these switches to LD 11795 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 11796 libsuff= shlibsuff= libmagic=32-bit;; 11797 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 11798 libsuff=32 shlibsuff=N32 libmagic=N32;; 11799 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 11800 libsuff=64 shlibsuff=64 libmagic=64-bit;; 11801 *) libsuff= shlibsuff= libmagic=never-match;; 11802 esac 11803 ;; 11804 esac 11805 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 11806 shlibpath_overrides_runpath=no 11807 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 11808 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 11809 hardcode_into_libs=yes 11810 ;; 11811 11812# No shared lib support for Linux oldld, aout, or coff. 11813linux*oldld* | linux*aout* | linux*coff*) 11814 dynamic_linker=no 11815 ;; 11816 11817linux*android*) 11818 version_type=none # Android doesn't support versioned libraries. 11819 need_lib_prefix=no 11820 need_version=no 11821 library_names_spec='$libname$release$shared_ext' 11822 soname_spec='$libname$release$shared_ext' 11823 finish_cmds= 11824 shlibpath_var=LD_LIBRARY_PATH 11825 shlibpath_overrides_runpath=yes 11826 11827 # This implies no fast_install, which is unacceptable. 11828 # Some rework will be needed to allow for fast_install 11829 # before this can be enabled. 11830 hardcode_into_libs=yes 11831 11832 dynamic_linker='Android linker' 11833 # Don't embed -rpath directories since the linker doesn't support them. 11834 hardcode_libdir_flag_spec='-L$libdir' 11835 ;; 11836 11837# This must be glibc/ELF. 11838linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 11839 version_type=linux # correct to gnu/linux during the next big refactor 11840 need_lib_prefix=no 11841 need_version=no 11842 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11843 soname_spec='$libname$release$shared_ext$major' 11844 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 11845 shlibpath_var=LD_LIBRARY_PATH 11846 shlibpath_overrides_runpath=no 11847 11848 # Some binutils ld are patched to set DT_RUNPATH 11849 if test ${lt_cv_shlibpath_overrides_runpath+y} 11850then : 11851 printf %s "(cached) " >&6 11852else $as_nop 11853 lt_cv_shlibpath_overrides_runpath=no 11854 save_LDFLAGS=$LDFLAGS 11855 save_libdir=$libdir 11856 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 11857 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 11858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11859/* end confdefs.h. */ 11860 11861int 11862main (void) 11863{ 11864 11865 ; 11866 return 0; 11867} 11868_ACEOF 11869if ac_fn_c_try_link "$LINENO" 11870then : 11871 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null 11872then : 11873 lt_cv_shlibpath_overrides_runpath=yes 11874fi 11875fi 11876rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11877 conftest$ac_exeext conftest.$ac_ext 11878 LDFLAGS=$save_LDFLAGS 11879 libdir=$save_libdir 11880 11881fi 11882 11883 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 11884 11885 # This implies no fast_install, which is unacceptable. 11886 # Some rework will be needed to allow for fast_install 11887 # before this can be enabled. 11888 hardcode_into_libs=yes 11889 11890 # Ideally, we could use ldconfig to report *all* directores which are 11891 # searched for libraries, however this is still not possible. Aside from not 11892 # being certain /sbin/ldconfig is available, command 11893 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 11894 # even though it is searched at run-time. Try to do the best guess by 11895 # appending ld.so.conf contents (and includes) to the search path. 11896 if test -f /etc/ld.so.conf; then 11897 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' ' '` 11898 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 11899 fi 11900 11901 # We used to test for /lib/ld.so.1 and disable shared libraries on 11902 # powerpc, because MkLinux only supported shared libraries with the 11903 # GNU dynamic linker. Since this was broken with cross compilers, 11904 # most powerpc-linux boxes support dynamic linking these days and 11905 # people can always --disable-shared, the test was removed, and we 11906 # assume the GNU/Linux dynamic linker is in use. 11907 dynamic_linker='GNU/Linux ld.so' 11908 ;; 11909 11910netbsd*) 11911 version_type=sunos 11912 need_lib_prefix=no 11913 need_version=no 11914 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 11915 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11916 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11917 dynamic_linker='NetBSD (a.out) ld.so' 11918 else 11919 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11920 soname_spec='$libname$release$shared_ext$major' 11921 dynamic_linker='NetBSD ld.elf_so' 11922 fi 11923 shlibpath_var=LD_LIBRARY_PATH 11924 shlibpath_overrides_runpath=yes 11925 hardcode_into_libs=yes 11926 ;; 11927 11928newsos6) 11929 version_type=linux # correct to gnu/linux during the next big refactor 11930 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11931 shlibpath_var=LD_LIBRARY_PATH 11932 shlibpath_overrides_runpath=yes 11933 ;; 11934 11935*nto* | *qnx*) 11936 version_type=qnx 11937 need_lib_prefix=no 11938 need_version=no 11939 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11940 soname_spec='$libname$release$shared_ext$major' 11941 shlibpath_var=LD_LIBRARY_PATH 11942 shlibpath_overrides_runpath=no 11943 hardcode_into_libs=yes 11944 dynamic_linker='ldqnx.so' 11945 ;; 11946 11947openbsd* | bitrig*) 11948 version_type=sunos 11949 sys_lib_dlsearch_path_spec=/usr/lib 11950 need_lib_prefix=no 11951 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 11952 need_version=no 11953 else 11954 need_version=yes 11955 fi 11956 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11957 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11958 shlibpath_var=LD_LIBRARY_PATH 11959 shlibpath_overrides_runpath=yes 11960 ;; 11961 11962os2*) 11963 libname_spec='$name' 11964 version_type=windows 11965 shrext_cmds=.dll 11966 need_version=no 11967 need_lib_prefix=no 11968 # OS/2 can only load a DLL with a base name of 8 characters or less. 11969 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 11970 v=$($ECHO $release$versuffix | tr -d .-); 11971 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 11972 $ECHO $n$v`$shared_ext' 11973 library_names_spec='${libname}_dll.$libext' 11974 dynamic_linker='OS/2 ld.exe' 11975 shlibpath_var=BEGINLIBPATH 11976 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 11977 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11978 postinstall_cmds='base_file=`basename \$file`~ 11979 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 11980 dldir=$destdir/`dirname \$dlpath`~ 11981 test -d \$dldir || mkdir -p \$dldir~ 11982 $install_prog $dir/$dlname \$dldir/$dlname~ 11983 chmod a+x \$dldir/$dlname~ 11984 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 11985 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 11986 fi' 11987 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 11988 dlpath=$dir/\$dldll~ 11989 $RM \$dlpath' 11990 ;; 11991 11992osf3* | osf4* | osf5*) 11993 version_type=osf 11994 need_lib_prefix=no 11995 need_version=no 11996 soname_spec='$libname$release$shared_ext$major' 11997 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11998 shlibpath_var=LD_LIBRARY_PATH 11999 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 12000 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 12001 ;; 12002 12003rdos*) 12004 dynamic_linker=no 12005 ;; 12006 12007solaris*) 12008 version_type=linux # correct to gnu/linux during the next big refactor 12009 need_lib_prefix=no 12010 need_version=no 12011 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12012 soname_spec='$libname$release$shared_ext$major' 12013 shlibpath_var=LD_LIBRARY_PATH 12014 shlibpath_overrides_runpath=yes 12015 hardcode_into_libs=yes 12016 # ldd complains unless libraries are executable 12017 postinstall_cmds='chmod +x $lib' 12018 ;; 12019 12020sunos4*) 12021 version_type=sunos 12022 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 12023 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 12024 shlibpath_var=LD_LIBRARY_PATH 12025 shlibpath_overrides_runpath=yes 12026 if test yes = "$with_gnu_ld"; then 12027 need_lib_prefix=no 12028 fi 12029 need_version=yes 12030 ;; 12031 12032sysv4 | sysv4.3*) 12033 version_type=linux # correct to gnu/linux during the next big refactor 12034 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12035 soname_spec='$libname$release$shared_ext$major' 12036 shlibpath_var=LD_LIBRARY_PATH 12037 case $host_vendor in 12038 sni) 12039 shlibpath_overrides_runpath=no 12040 need_lib_prefix=no 12041 runpath_var=LD_RUN_PATH 12042 ;; 12043 siemens) 12044 need_lib_prefix=no 12045 ;; 12046 motorola) 12047 need_lib_prefix=no 12048 need_version=no 12049 shlibpath_overrides_runpath=no 12050 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 12051 ;; 12052 esac 12053 ;; 12054 12055sysv4*MP*) 12056 if test -d /usr/nec; then 12057 version_type=linux # correct to gnu/linux during the next big refactor 12058 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 12059 soname_spec='$libname$shared_ext.$major' 12060 shlibpath_var=LD_LIBRARY_PATH 12061 fi 12062 ;; 12063 12064sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 12065 version_type=sco 12066 need_lib_prefix=no 12067 need_version=no 12068 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 12069 soname_spec='$libname$release$shared_ext$major' 12070 shlibpath_var=LD_LIBRARY_PATH 12071 shlibpath_overrides_runpath=yes 12072 hardcode_into_libs=yes 12073 if test yes = "$with_gnu_ld"; then 12074 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 12075 else 12076 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 12077 case $host_os in 12078 sco3.2v5*) 12079 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 12080 ;; 12081 esac 12082 fi 12083 sys_lib_dlsearch_path_spec='/usr/lib' 12084 ;; 12085 12086tpf*) 12087 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 12088 version_type=linux # correct to gnu/linux during the next big refactor 12089 need_lib_prefix=no 12090 need_version=no 12091 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12092 shlibpath_var=LD_LIBRARY_PATH 12093 shlibpath_overrides_runpath=no 12094 hardcode_into_libs=yes 12095 ;; 12096 12097uts4*) 12098 version_type=linux # correct to gnu/linux during the next big refactor 12099 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12100 soname_spec='$libname$release$shared_ext$major' 12101 shlibpath_var=LD_LIBRARY_PATH 12102 ;; 12103 12104*) 12105 dynamic_linker=no 12106 ;; 12107esac 12108{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 12109printf "%s\n" "$dynamic_linker" >&6; } 12110test no = "$dynamic_linker" && can_build_shared=no 12111 12112variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 12113if test yes = "$GCC"; then 12114 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 12115fi 12116 12117if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 12118 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 12119fi 12120 12121if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 12122 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 12123fi 12124 12125# remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 12126configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 12127 12128# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 12129func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 12130 12131# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 12132configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 12133 12134 12135 12136 12137 12138 12139 12140 12141 12142 12143 12144 12145 12146 12147 12148 12149 12150 12151 12152 12153 12154 12155 12156 12157 12158 12159 12160 12161 12162 12163 12164 12165 12166 12167 12168 12169 12170 12171 12172 12173 12174 12175 12176 12177 12178 12179 12180 12181 12182 12183 12184 12185 12186 12187 12188 12189 12190 12191 12192 12193 12194 12195 12196 12197 12198 12199 12200 12201 12202 12203 12204 12205 12206 12207 12208 12209 12210 12211 12212 12213 12214 12215 12216 12217 12218 12219 12220 12221 12222 12223 12224 12225 12226 12227 12228 12229 12230 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 12231printf %s "checking how to hardcode library paths into programs... " >&6; } 12232hardcode_action= 12233if test -n "$hardcode_libdir_flag_spec" || 12234 test -n "$runpath_var" || 12235 test yes = "$hardcode_automatic"; then 12236 12237 # We can hardcode non-existent directories. 12238 if test no != "$hardcode_direct" && 12239 # If the only mechanism to avoid hardcoding is shlibpath_var, we 12240 # have to relink, otherwise we might link with an installed library 12241 # when we should be linking with a yet-to-be-installed one 12242 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" && 12243 test no != "$hardcode_minus_L"; then 12244 # Linking always hardcodes the temporary library directory. 12245 hardcode_action=relink 12246 else 12247 # We can link without hardcoding, and we can hardcode nonexisting dirs. 12248 hardcode_action=immediate 12249 fi 12250else 12251 # We cannot hardcode anything, or else we can only hardcode existing 12252 # directories. 12253 hardcode_action=unsupported 12254fi 12255{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 12256printf "%s\n" "$hardcode_action" >&6; } 12257 12258if test relink = "$hardcode_action" || 12259 test yes = "$inherit_rpath"; then 12260 # Fast installation is not supported 12261 enable_fast_install=no 12262elif test yes = "$shlibpath_overrides_runpath" || 12263 test no = "$enable_shared"; then 12264 # Fast installation is not necessary 12265 enable_fast_install=needless 12266fi 12267 12268 12269 12270 12271 12272 12273 if test yes != "$enable_dlopen"; then 12274 enable_dlopen=unknown 12275 enable_dlopen_self=unknown 12276 enable_dlopen_self_static=unknown 12277else 12278 lt_cv_dlopen=no 12279 lt_cv_dlopen_libs= 12280 12281 case $host_os in 12282 beos*) 12283 lt_cv_dlopen=load_add_on 12284 lt_cv_dlopen_libs= 12285 lt_cv_dlopen_self=yes 12286 ;; 12287 12288 mingw* | pw32* | cegcc*) 12289 lt_cv_dlopen=LoadLibrary 12290 lt_cv_dlopen_libs= 12291 ;; 12292 12293 cygwin*) 12294 lt_cv_dlopen=dlopen 12295 lt_cv_dlopen_libs= 12296 ;; 12297 12298 darwin*) 12299 # if libdl is installed we need to link against it 12300 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 12301printf %s "checking for dlopen in -ldl... " >&6; } 12302if test ${ac_cv_lib_dl_dlopen+y} 12303then : 12304 printf %s "(cached) " >&6 12305else $as_nop 12306 ac_check_lib_save_LIBS=$LIBS 12307LIBS="-ldl $LIBS" 12308cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12309/* end confdefs.h. */ 12310 12311/* Override any GCC internal prototype to avoid an error. 12312 Use char because int might match the return type of a GCC 12313 builtin and then its argument prototype would still apply. */ 12314char dlopen (); 12315int 12316main (void) 12317{ 12318return dlopen (); 12319 ; 12320 return 0; 12321} 12322_ACEOF 12323if ac_fn_c_try_link "$LINENO" 12324then : 12325 ac_cv_lib_dl_dlopen=yes 12326else $as_nop 12327 ac_cv_lib_dl_dlopen=no 12328fi 12329rm -f core conftest.err conftest.$ac_objext conftest.beam \ 12330 conftest$ac_exeext conftest.$ac_ext 12331LIBS=$ac_check_lib_save_LIBS 12332fi 12333{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 12334printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; } 12335if test "x$ac_cv_lib_dl_dlopen" = xyes 12336then : 12337 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 12338else $as_nop 12339 12340 lt_cv_dlopen=dyld 12341 lt_cv_dlopen_libs= 12342 lt_cv_dlopen_self=yes 12343 12344fi 12345 12346 ;; 12347 12348 tpf*) 12349 # Don't try to run any link tests for TPF. We know it's impossible 12350 # because TPF is a cross-compiler, and we know how we open DSOs. 12351 lt_cv_dlopen=dlopen 12352 lt_cv_dlopen_libs= 12353 lt_cv_dlopen_self=no 12354 ;; 12355 12356 *) 12357 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 12358if test "x$ac_cv_func_shl_load" = xyes 12359then : 12360 lt_cv_dlopen=shl_load 12361else $as_nop 12362 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 12363printf %s "checking for shl_load in -ldld... " >&6; } 12364if test ${ac_cv_lib_dld_shl_load+y} 12365then : 12366 printf %s "(cached) " >&6 12367else $as_nop 12368 ac_check_lib_save_LIBS=$LIBS 12369LIBS="-ldld $LIBS" 12370cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12371/* end confdefs.h. */ 12372 12373/* Override any GCC internal prototype to avoid an error. 12374 Use char because int might match the return type of a GCC 12375 builtin and then its argument prototype would still apply. */ 12376char shl_load (); 12377int 12378main (void) 12379{ 12380return shl_load (); 12381 ; 12382 return 0; 12383} 12384_ACEOF 12385if ac_fn_c_try_link "$LINENO" 12386then : 12387 ac_cv_lib_dld_shl_load=yes 12388else $as_nop 12389 ac_cv_lib_dld_shl_load=no 12390fi 12391rm -f core conftest.err conftest.$ac_objext conftest.beam \ 12392 conftest$ac_exeext conftest.$ac_ext 12393LIBS=$ac_check_lib_save_LIBS 12394fi 12395{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 12396printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; } 12397if test "x$ac_cv_lib_dld_shl_load" = xyes 12398then : 12399 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld 12400else $as_nop 12401 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 12402if test "x$ac_cv_func_dlopen" = xyes 12403then : 12404 lt_cv_dlopen=dlopen 12405else $as_nop 12406 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 12407printf %s "checking for dlopen in -ldl... " >&6; } 12408if test ${ac_cv_lib_dl_dlopen+y} 12409then : 12410 printf %s "(cached) " >&6 12411else $as_nop 12412 ac_check_lib_save_LIBS=$LIBS 12413LIBS="-ldl $LIBS" 12414cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12415/* end confdefs.h. */ 12416 12417/* Override any GCC internal prototype to avoid an error. 12418 Use char because int might match the return type of a GCC 12419 builtin and then its argument prototype would still apply. */ 12420char dlopen (); 12421int 12422main (void) 12423{ 12424return dlopen (); 12425 ; 12426 return 0; 12427} 12428_ACEOF 12429if ac_fn_c_try_link "$LINENO" 12430then : 12431 ac_cv_lib_dl_dlopen=yes 12432else $as_nop 12433 ac_cv_lib_dl_dlopen=no 12434fi 12435rm -f core conftest.err conftest.$ac_objext conftest.beam \ 12436 conftest$ac_exeext conftest.$ac_ext 12437LIBS=$ac_check_lib_save_LIBS 12438fi 12439{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 12440printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; } 12441if test "x$ac_cv_lib_dl_dlopen" = xyes 12442then : 12443 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 12444else $as_nop 12445 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 12446printf %s "checking for dlopen in -lsvld... " >&6; } 12447if test ${ac_cv_lib_svld_dlopen+y} 12448then : 12449 printf %s "(cached) " >&6 12450else $as_nop 12451 ac_check_lib_save_LIBS=$LIBS 12452LIBS="-lsvld $LIBS" 12453cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12454/* end confdefs.h. */ 12455 12456/* Override any GCC internal prototype to avoid an error. 12457 Use char because int might match the return type of a GCC 12458 builtin and then its argument prototype would still apply. */ 12459char dlopen (); 12460int 12461main (void) 12462{ 12463return dlopen (); 12464 ; 12465 return 0; 12466} 12467_ACEOF 12468if ac_fn_c_try_link "$LINENO" 12469then : 12470 ac_cv_lib_svld_dlopen=yes 12471else $as_nop 12472 ac_cv_lib_svld_dlopen=no 12473fi 12474rm -f core conftest.err conftest.$ac_objext conftest.beam \ 12475 conftest$ac_exeext conftest.$ac_ext 12476LIBS=$ac_check_lib_save_LIBS 12477fi 12478{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 12479printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; } 12480if test "x$ac_cv_lib_svld_dlopen" = xyes 12481then : 12482 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld 12483else $as_nop 12484 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 12485printf %s "checking for dld_link in -ldld... " >&6; } 12486if test ${ac_cv_lib_dld_dld_link+y} 12487then : 12488 printf %s "(cached) " >&6 12489else $as_nop 12490 ac_check_lib_save_LIBS=$LIBS 12491LIBS="-ldld $LIBS" 12492cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12493/* end confdefs.h. */ 12494 12495/* Override any GCC internal prototype to avoid an error. 12496 Use char because int might match the return type of a GCC 12497 builtin and then its argument prototype would still apply. */ 12498char dld_link (); 12499int 12500main (void) 12501{ 12502return dld_link (); 12503 ; 12504 return 0; 12505} 12506_ACEOF 12507if ac_fn_c_try_link "$LINENO" 12508then : 12509 ac_cv_lib_dld_dld_link=yes 12510else $as_nop 12511 ac_cv_lib_dld_dld_link=no 12512fi 12513rm -f core conftest.err conftest.$ac_objext conftest.beam \ 12514 conftest$ac_exeext conftest.$ac_ext 12515LIBS=$ac_check_lib_save_LIBS 12516fi 12517{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 12518printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; } 12519if test "x$ac_cv_lib_dld_dld_link" = xyes 12520then : 12521 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld 12522fi 12523 12524 12525fi 12526 12527 12528fi 12529 12530 12531fi 12532 12533 12534fi 12535 12536 12537fi 12538 12539 ;; 12540 esac 12541 12542 if test no = "$lt_cv_dlopen"; then 12543 enable_dlopen=no 12544 else 12545 enable_dlopen=yes 12546 fi 12547 12548 case $lt_cv_dlopen in 12549 dlopen) 12550 save_CPPFLAGS=$CPPFLAGS 12551 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 12552 12553 save_LDFLAGS=$LDFLAGS 12554 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 12555 12556 save_LIBS=$LIBS 12557 LIBS="$lt_cv_dlopen_libs $LIBS" 12558 12559 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 12560printf %s "checking whether a program can dlopen itself... " >&6; } 12561if test ${lt_cv_dlopen_self+y} 12562then : 12563 printf %s "(cached) " >&6 12564else $as_nop 12565 if test yes = "$cross_compiling"; then : 12566 lt_cv_dlopen_self=cross 12567else 12568 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 12569 lt_status=$lt_dlunknown 12570 cat > conftest.$ac_ext <<_LT_EOF 12571#line $LINENO "configure" 12572#include "confdefs.h" 12573 12574#if HAVE_DLFCN_H 12575#include <dlfcn.h> 12576#endif 12577 12578#include <stdio.h> 12579 12580#ifdef RTLD_GLOBAL 12581# define LT_DLGLOBAL RTLD_GLOBAL 12582#else 12583# ifdef DL_GLOBAL 12584# define LT_DLGLOBAL DL_GLOBAL 12585# else 12586# define LT_DLGLOBAL 0 12587# endif 12588#endif 12589 12590/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 12591 find out it does not work in some platform. */ 12592#ifndef LT_DLLAZY_OR_NOW 12593# ifdef RTLD_LAZY 12594# define LT_DLLAZY_OR_NOW RTLD_LAZY 12595# else 12596# ifdef DL_LAZY 12597# define LT_DLLAZY_OR_NOW DL_LAZY 12598# else 12599# ifdef RTLD_NOW 12600# define LT_DLLAZY_OR_NOW RTLD_NOW 12601# else 12602# ifdef DL_NOW 12603# define LT_DLLAZY_OR_NOW DL_NOW 12604# else 12605# define LT_DLLAZY_OR_NOW 0 12606# endif 12607# endif 12608# endif 12609# endif 12610#endif 12611 12612/* When -fvisibility=hidden is used, assume the code has been annotated 12613 correspondingly for the symbols needed. */ 12614#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 12615int fnord () __attribute__((visibility("default"))); 12616#endif 12617 12618int fnord () { return 42; } 12619int main () 12620{ 12621 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 12622 int status = $lt_dlunknown; 12623 12624 if (self) 12625 { 12626 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 12627 else 12628 { 12629 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 12630 else puts (dlerror ()); 12631 } 12632 /* dlclose (self); */ 12633 } 12634 else 12635 puts (dlerror ()); 12636 12637 return status; 12638} 12639_LT_EOF 12640 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 12641 (eval $ac_link) 2>&5 12642 ac_status=$? 12643 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12644 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 12645 (./conftest; exit; ) >&5 2>/dev/null 12646 lt_status=$? 12647 case x$lt_status in 12648 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 12649 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 12650 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 12651 esac 12652 else : 12653 # compilation failed 12654 lt_cv_dlopen_self=no 12655 fi 12656fi 12657rm -fr conftest* 12658 12659 12660fi 12661{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 12662printf "%s\n" "$lt_cv_dlopen_self" >&6; } 12663 12664 if test yes = "$lt_cv_dlopen_self"; then 12665 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 12666 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 12667printf %s "checking whether a statically linked program can dlopen itself... " >&6; } 12668if test ${lt_cv_dlopen_self_static+y} 12669then : 12670 printf %s "(cached) " >&6 12671else $as_nop 12672 if test yes = "$cross_compiling"; then : 12673 lt_cv_dlopen_self_static=cross 12674else 12675 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 12676 lt_status=$lt_dlunknown 12677 cat > conftest.$ac_ext <<_LT_EOF 12678#line $LINENO "configure" 12679#include "confdefs.h" 12680 12681#if HAVE_DLFCN_H 12682#include <dlfcn.h> 12683#endif 12684 12685#include <stdio.h> 12686 12687#ifdef RTLD_GLOBAL 12688# define LT_DLGLOBAL RTLD_GLOBAL 12689#else 12690# ifdef DL_GLOBAL 12691# define LT_DLGLOBAL DL_GLOBAL 12692# else 12693# define LT_DLGLOBAL 0 12694# endif 12695#endif 12696 12697/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 12698 find out it does not work in some platform. */ 12699#ifndef LT_DLLAZY_OR_NOW 12700# ifdef RTLD_LAZY 12701# define LT_DLLAZY_OR_NOW RTLD_LAZY 12702# else 12703# ifdef DL_LAZY 12704# define LT_DLLAZY_OR_NOW DL_LAZY 12705# else 12706# ifdef RTLD_NOW 12707# define LT_DLLAZY_OR_NOW RTLD_NOW 12708# else 12709# ifdef DL_NOW 12710# define LT_DLLAZY_OR_NOW DL_NOW 12711# else 12712# define LT_DLLAZY_OR_NOW 0 12713# endif 12714# endif 12715# endif 12716# endif 12717#endif 12718 12719/* When -fvisibility=hidden is used, assume the code has been annotated 12720 correspondingly for the symbols needed. */ 12721#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 12722int fnord () __attribute__((visibility("default"))); 12723#endif 12724 12725int fnord () { return 42; } 12726int main () 12727{ 12728 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 12729 int status = $lt_dlunknown; 12730 12731 if (self) 12732 { 12733 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 12734 else 12735 { 12736 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 12737 else puts (dlerror ()); 12738 } 12739 /* dlclose (self); */ 12740 } 12741 else 12742 puts (dlerror ()); 12743 12744 return status; 12745} 12746_LT_EOF 12747 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 12748 (eval $ac_link) 2>&5 12749 ac_status=$? 12750 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12751 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 12752 (./conftest; exit; ) >&5 2>/dev/null 12753 lt_status=$? 12754 case x$lt_status in 12755 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 12756 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 12757 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 12758 esac 12759 else : 12760 # compilation failed 12761 lt_cv_dlopen_self_static=no 12762 fi 12763fi 12764rm -fr conftest* 12765 12766 12767fi 12768{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 12769printf "%s\n" "$lt_cv_dlopen_self_static" >&6; } 12770 fi 12771 12772 CPPFLAGS=$save_CPPFLAGS 12773 LDFLAGS=$save_LDFLAGS 12774 LIBS=$save_LIBS 12775 ;; 12776 esac 12777 12778 case $lt_cv_dlopen_self in 12779 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 12780 *) enable_dlopen_self=unknown ;; 12781 esac 12782 12783 case $lt_cv_dlopen_self_static in 12784 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 12785 *) enable_dlopen_self_static=unknown ;; 12786 esac 12787fi 12788 12789 12790 12791 12792 12793 12794 12795 12796 12797 12798 12799 12800 12801 12802 12803 12804 12805striplib= 12806old_striplib= 12807{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 12808printf %s "checking whether stripping libraries is possible... " >&6; } 12809if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 12810 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 12811 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 12812 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12813printf "%s\n" "yes" >&6; } 12814else 12815# FIXME - insert some real tests, host_os isn't really good enough 12816 case $host_os in 12817 darwin*) 12818 if test -n "$STRIP"; then 12819 striplib="$STRIP -x" 12820 old_striplib="$STRIP -S" 12821 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12822printf "%s\n" "yes" >&6; } 12823 else 12824 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12825printf "%s\n" "no" >&6; } 12826 fi 12827 ;; 12828 *) 12829 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12830printf "%s\n" "no" >&6; } 12831 ;; 12832 esac 12833fi 12834 12835 12836 12837 12838 12839 12840 12841 12842 12843 12844 12845 12846 # Report what library types will actually be built 12847 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 12848printf %s "checking if libtool supports shared libraries... " >&6; } 12849 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 12850printf "%s\n" "$can_build_shared" >&6; } 12851 12852 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 12853printf %s "checking whether to build shared libraries... " >&6; } 12854 test no = "$can_build_shared" && enable_shared=no 12855 12856 # On AIX, shared libraries and static libraries use the same namespace, and 12857 # are all built from PIC. 12858 case $host_os in 12859 aix3*) 12860 test yes = "$enable_shared" && enable_static=no 12861 if test -n "$RANLIB"; then 12862 archive_cmds="$archive_cmds~\$RANLIB \$lib" 12863 postinstall_cmds='$RANLIB $lib' 12864 fi 12865 ;; 12866 12867 aix[4-9]*) 12868 if test ia64 != "$host_cpu"; then 12869 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in 12870 yes,aix,yes) ;; # shared object as lib.so file only 12871 yes,svr4,*) ;; # shared object as lib.so archive member only 12872 yes,*) enable_static=no ;; # shared object in lib.a archive as well 12873 esac 12874 fi 12875 ;; 12876 esac 12877 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 12878printf "%s\n" "$enable_shared" >&6; } 12879 12880 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 12881printf %s "checking whether to build static libraries... " >&6; } 12882 # Make sure either enable_shared or enable_static is yes. 12883 test yes = "$enable_shared" || enable_static=yes 12884 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 12885printf "%s\n" "$enable_static" >&6; } 12886 12887 12888 12889 12890fi 12891ac_ext=c 12892ac_cpp='$CPP $CPPFLAGS' 12893ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12894ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12895ac_compiler_gnu=$ac_cv_c_compiler_gnu 12896 12897CC=$lt_save_CC 12898 12899 12900 12901 12902 12903 12904 12905 12906 12907 12908 12909 12910 12911 12912 12913 ac_config_commands="$ac_config_commands libtool" 12914 12915 12916 12917 12918# Only expand once: 12919 12920 12921 12922# Require xorg-macros minimum of 1.10 for DocBook XML documentation 12923 12924 12925 12926 12927 12928 12929 12930 12931 12932 12933 12934 12935{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5 12936printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; } 12937if test ${ac_cv_c_undeclared_builtin_options+y} 12938then : 12939 printf %s "(cached) " >&6 12940else $as_nop 12941 ac_save_CFLAGS=$CFLAGS 12942 ac_cv_c_undeclared_builtin_options='cannot detect' 12943 for ac_arg in '' -fno-builtin; do 12944 CFLAGS="$ac_save_CFLAGS $ac_arg" 12945 # This test program should *not* compile successfully. 12946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12947/* end confdefs.h. */ 12948 12949int 12950main (void) 12951{ 12952(void) strchr; 12953 ; 12954 return 0; 12955} 12956_ACEOF 12957if ac_fn_c_try_compile "$LINENO" 12958then : 12959 12960else $as_nop 12961 # This test program should compile successfully. 12962 # No library function is consistently available on 12963 # freestanding implementations, so test against a dummy 12964 # declaration. Include always-available headers on the 12965 # off chance that they somehow elicit warnings. 12966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12967/* end confdefs.h. */ 12968#include <float.h> 12969#include <limits.h> 12970#include <stdarg.h> 12971#include <stddef.h> 12972extern void ac_decl (int, char *); 12973 12974int 12975main (void) 12976{ 12977(void) ac_decl (0, (char *) 0); 12978 (void) ac_decl; 12979 12980 ; 12981 return 0; 12982} 12983_ACEOF 12984if ac_fn_c_try_compile "$LINENO" 12985then : 12986 if test x"$ac_arg" = x 12987then : 12988 ac_cv_c_undeclared_builtin_options='none needed' 12989else $as_nop 12990 ac_cv_c_undeclared_builtin_options=$ac_arg 12991fi 12992 break 12993fi 12994rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 12995fi 12996rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 12997 done 12998 CFLAGS=$ac_save_CFLAGS 12999 13000fi 13001{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5 13002printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; } 13003 case $ac_cv_c_undeclared_builtin_options in #( 13004 'cannot detect') : 13005 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 13006printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 13007as_fn_error $? "cannot make $CC report undeclared builtins 13008See \`config.log' for more details" "$LINENO" 5; } ;; #( 13009 'none needed') : 13010 ac_c_undeclared_builtin_options='' ;; #( 13011 *) : 13012 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;; 13013esac 13014 13015 13016 13017 13018 13019ac_fn_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 13020if test "x$ac_cv_have_decl___clang__" = xyes 13021then : 13022 CLANGCC="yes" 13023else $as_nop 13024 CLANGCC="no" 13025fi 13026ac_fn_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 13027if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes 13028then : 13029 INTELCC="yes" 13030else $as_nop 13031 INTELCC="no" 13032fi 13033ac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 13034if test "x$ac_cv_have_decl___SUNPRO_C" = xyes 13035then : 13036 SUNCC="yes" 13037else $as_nop 13038 SUNCC="no" 13039fi 13040 13041 13042 13043 13044 13045 13046 13047 13048if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 13049 if test -n "$ac_tool_prefix"; then 13050 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 13051set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 13052{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13053printf %s "checking for $ac_word... " >&6; } 13054if test ${ac_cv_path_PKG_CONFIG+y} 13055then : 13056 printf %s "(cached) " >&6 13057else $as_nop 13058 case $PKG_CONFIG in 13059 [\\/]* | ?:[\\/]*) 13060 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 13061 ;; 13062 *) 13063 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13064for as_dir in $PATH 13065do 13066 IFS=$as_save_IFS 13067 case $as_dir in #((( 13068 '') as_dir=./ ;; 13069 */) ;; 13070 *) as_dir=$as_dir/ ;; 13071 esac 13072 for ac_exec_ext in '' $ac_executable_extensions; do 13073 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 13074 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 13075 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 13076 break 2 13077 fi 13078done 13079 done 13080IFS=$as_save_IFS 13081 13082 ;; 13083esac 13084fi 13085PKG_CONFIG=$ac_cv_path_PKG_CONFIG 13086if test -n "$PKG_CONFIG"; then 13087 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 13088printf "%s\n" "$PKG_CONFIG" >&6; } 13089else 13090 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13091printf "%s\n" "no" >&6; } 13092fi 13093 13094 13095fi 13096if test -z "$ac_cv_path_PKG_CONFIG"; then 13097 ac_pt_PKG_CONFIG=$PKG_CONFIG 13098 # Extract the first word of "pkg-config", so it can be a program name with args. 13099set dummy pkg-config; ac_word=$2 13100{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13101printf %s "checking for $ac_word... " >&6; } 13102if test ${ac_cv_path_ac_pt_PKG_CONFIG+y} 13103then : 13104 printf %s "(cached) " >&6 13105else $as_nop 13106 case $ac_pt_PKG_CONFIG in 13107 [\\/]* | ?:[\\/]*) 13108 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 13109 ;; 13110 *) 13111 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13112for as_dir in $PATH 13113do 13114 IFS=$as_save_IFS 13115 case $as_dir in #((( 13116 '') as_dir=./ ;; 13117 */) ;; 13118 *) as_dir=$as_dir/ ;; 13119 esac 13120 for ac_exec_ext in '' $ac_executable_extensions; do 13121 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 13122 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 13123 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 13124 break 2 13125 fi 13126done 13127 done 13128IFS=$as_save_IFS 13129 13130 ;; 13131esac 13132fi 13133ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 13134if test -n "$ac_pt_PKG_CONFIG"; then 13135 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 13136printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; } 13137else 13138 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13139printf "%s\n" "no" >&6; } 13140fi 13141 13142 if test "x$ac_pt_PKG_CONFIG" = x; then 13143 PKG_CONFIG="" 13144 else 13145 case $cross_compiling:$ac_tool_warned in 13146yes:) 13147{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13148printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13149ac_tool_warned=yes ;; 13150esac 13151 PKG_CONFIG=$ac_pt_PKG_CONFIG 13152 fi 13153else 13154 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 13155fi 13156 13157fi 13158if test -n "$PKG_CONFIG"; then 13159 _pkg_min_version=0.9.0 13160 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 13161printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; } 13162 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 13163 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13164printf "%s\n" "yes" >&6; } 13165 else 13166 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13167printf "%s\n" "no" >&6; } 13168 PKG_CONFIG="" 13169 fi 13170fi 13171 13172 13173 13174 13175 13176# Check whether --enable-selective-werror was given. 13177if test ${enable_selective_werror+y} 13178then : 13179 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval 13180else $as_nop 13181 SELECTIVE_WERROR=yes 13182fi 13183 13184 13185 13186 13187 13188# -v is too short to test reliably with XORG_TESTSET_CFLAG 13189if test "x$SUNCC" = "xyes"; then 13190 BASE_CFLAGS="-v" 13191else 13192 BASE_CFLAGS="" 13193fi 13194 13195# This chunk of warnings were those that existed in the legacy CWARNFLAGS 13196 13197 13198 13199 13200 13201 13202 13203 13204 13205 13206 13207 13208 13209xorg_testset_save_CFLAGS="$CFLAGS" 13210 13211if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13212 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13213 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13214printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13215if test ${xorg_cv_cc_flag_unknown_warning_option+y} 13216then : 13217 printf %s "(cached) " >&6 13218else $as_nop 13219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13220/* end confdefs.h. */ 13221int i; 13222_ACEOF 13223if ac_fn_c_try_compile "$LINENO" 13224then : 13225 xorg_cv_cc_flag_unknown_warning_option=yes 13226else $as_nop 13227 xorg_cv_cc_flag_unknown_warning_option=no 13228fi 13229rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13230fi 13231{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13232printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13233 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13234 CFLAGS="$xorg_testset_save_CFLAGS" 13235fi 13236 13237if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13238 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13239 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13240 fi 13241 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13242 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13243printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13244if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 13245then : 13246 printf %s "(cached) " >&6 13247else $as_nop 13248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13249/* end confdefs.h. */ 13250int i; 13251_ACEOF 13252if ac_fn_c_try_compile "$LINENO" 13253then : 13254 xorg_cv_cc_flag_unused_command_line_argument=yes 13255else $as_nop 13256 xorg_cv_cc_flag_unused_command_line_argument=no 13257fi 13258rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13259fi 13260{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13261printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13262 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13263 CFLAGS="$xorg_testset_save_CFLAGS" 13264fi 13265 13266found="no" 13267 13268 if test $found = "no" ; then 13269 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13270 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13271 fi 13272 13273 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13274 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13275 fi 13276 13277 CFLAGS="$CFLAGS -Wall" 13278 13279 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5 13280printf %s "checking if $CC supports -Wall... " >&6; } 13281 cacheid=xorg_cv_cc_flag__Wall 13282 if eval test \${$cacheid+y} 13283then : 13284 printf %s "(cached) " >&6 13285else $as_nop 13286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13287/* end confdefs.h. */ 13288int i; 13289int 13290main (void) 13291{ 13292 13293 ; 13294 return 0; 13295} 13296_ACEOF 13297if ac_fn_c_try_link "$LINENO" 13298then : 13299 eval $cacheid=yes 13300else $as_nop 13301 eval $cacheid=no 13302fi 13303rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13304 conftest$ac_exeext conftest.$ac_ext 13305fi 13306 13307 13308 CFLAGS="$xorg_testset_save_CFLAGS" 13309 13310 eval supported=\$$cacheid 13311 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13312printf "%s\n" "$supported" >&6; } 13313 if test "$supported" = "yes" ; then 13314 BASE_CFLAGS="$BASE_CFLAGS -Wall" 13315 found="yes" 13316 fi 13317 fi 13318 13319 13320 13321 13322 13323 13324 13325 13326 13327 13328 13329 13330 13331 13332 13333xorg_testset_save_CFLAGS="$CFLAGS" 13334 13335if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13336 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13337 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13338printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13339if test ${xorg_cv_cc_flag_unknown_warning_option+y} 13340then : 13341 printf %s "(cached) " >&6 13342else $as_nop 13343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13344/* end confdefs.h. */ 13345int i; 13346_ACEOF 13347if ac_fn_c_try_compile "$LINENO" 13348then : 13349 xorg_cv_cc_flag_unknown_warning_option=yes 13350else $as_nop 13351 xorg_cv_cc_flag_unknown_warning_option=no 13352fi 13353rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13354fi 13355{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13356printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13357 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13358 CFLAGS="$xorg_testset_save_CFLAGS" 13359fi 13360 13361if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13362 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13363 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13364 fi 13365 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13366 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13367printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13368if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 13369then : 13370 printf %s "(cached) " >&6 13371else $as_nop 13372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13373/* end confdefs.h. */ 13374int i; 13375_ACEOF 13376if ac_fn_c_try_compile "$LINENO" 13377then : 13378 xorg_cv_cc_flag_unused_command_line_argument=yes 13379else $as_nop 13380 xorg_cv_cc_flag_unused_command_line_argument=no 13381fi 13382rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13383fi 13384{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13385printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13386 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13387 CFLAGS="$xorg_testset_save_CFLAGS" 13388fi 13389 13390found="no" 13391 13392 if test $found = "no" ; then 13393 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13394 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13395 fi 13396 13397 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13398 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13399 fi 13400 13401 CFLAGS="$CFLAGS -Wpointer-arith" 13402 13403 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5 13404printf %s "checking if $CC supports -Wpointer-arith... " >&6; } 13405 cacheid=xorg_cv_cc_flag__Wpointer_arith 13406 if eval test \${$cacheid+y} 13407then : 13408 printf %s "(cached) " >&6 13409else $as_nop 13410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13411/* end confdefs.h. */ 13412int i; 13413int 13414main (void) 13415{ 13416 13417 ; 13418 return 0; 13419} 13420_ACEOF 13421if ac_fn_c_try_link "$LINENO" 13422then : 13423 eval $cacheid=yes 13424else $as_nop 13425 eval $cacheid=no 13426fi 13427rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13428 conftest$ac_exeext conftest.$ac_ext 13429fi 13430 13431 13432 CFLAGS="$xorg_testset_save_CFLAGS" 13433 13434 eval supported=\$$cacheid 13435 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13436printf "%s\n" "$supported" >&6; } 13437 if test "$supported" = "yes" ; then 13438 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith" 13439 found="yes" 13440 fi 13441 fi 13442 13443 13444 13445 13446 13447 13448 13449 13450 13451 13452 13453 13454 13455 13456 13457xorg_testset_save_CFLAGS="$CFLAGS" 13458 13459if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13460 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13461 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13462printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13463if test ${xorg_cv_cc_flag_unknown_warning_option+y} 13464then : 13465 printf %s "(cached) " >&6 13466else $as_nop 13467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13468/* end confdefs.h. */ 13469int i; 13470_ACEOF 13471if ac_fn_c_try_compile "$LINENO" 13472then : 13473 xorg_cv_cc_flag_unknown_warning_option=yes 13474else $as_nop 13475 xorg_cv_cc_flag_unknown_warning_option=no 13476fi 13477rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13478fi 13479{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13480printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13481 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13482 CFLAGS="$xorg_testset_save_CFLAGS" 13483fi 13484 13485if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13486 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13487 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13488 fi 13489 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13490 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13491printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13492if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 13493then : 13494 printf %s "(cached) " >&6 13495else $as_nop 13496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13497/* end confdefs.h. */ 13498int i; 13499_ACEOF 13500if ac_fn_c_try_compile "$LINENO" 13501then : 13502 xorg_cv_cc_flag_unused_command_line_argument=yes 13503else $as_nop 13504 xorg_cv_cc_flag_unused_command_line_argument=no 13505fi 13506rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13507fi 13508{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13509printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13510 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13511 CFLAGS="$xorg_testset_save_CFLAGS" 13512fi 13513 13514found="no" 13515 13516 if test $found = "no" ; then 13517 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13518 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13519 fi 13520 13521 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13522 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13523 fi 13524 13525 CFLAGS="$CFLAGS -Wmissing-declarations" 13526 13527 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5 13528printf %s "checking if $CC supports -Wmissing-declarations... " >&6; } 13529 cacheid=xorg_cv_cc_flag__Wmissing_declarations 13530 if eval test \${$cacheid+y} 13531then : 13532 printf %s "(cached) " >&6 13533else $as_nop 13534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13535/* end confdefs.h. */ 13536int i; 13537int 13538main (void) 13539{ 13540 13541 ; 13542 return 0; 13543} 13544_ACEOF 13545if ac_fn_c_try_link "$LINENO" 13546then : 13547 eval $cacheid=yes 13548else $as_nop 13549 eval $cacheid=no 13550fi 13551rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13552 conftest$ac_exeext conftest.$ac_ext 13553fi 13554 13555 13556 CFLAGS="$xorg_testset_save_CFLAGS" 13557 13558 eval supported=\$$cacheid 13559 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13560printf "%s\n" "$supported" >&6; } 13561 if test "$supported" = "yes" ; then 13562 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations" 13563 found="yes" 13564 fi 13565 fi 13566 13567 13568 13569 13570 13571 13572 13573 13574 13575 13576 13577 13578 13579 13580 13581xorg_testset_save_CFLAGS="$CFLAGS" 13582 13583if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13584 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13585 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13586printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13587if test ${xorg_cv_cc_flag_unknown_warning_option+y} 13588then : 13589 printf %s "(cached) " >&6 13590else $as_nop 13591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13592/* end confdefs.h. */ 13593int i; 13594_ACEOF 13595if ac_fn_c_try_compile "$LINENO" 13596then : 13597 xorg_cv_cc_flag_unknown_warning_option=yes 13598else $as_nop 13599 xorg_cv_cc_flag_unknown_warning_option=no 13600fi 13601rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13602fi 13603{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13604printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13605 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13606 CFLAGS="$xorg_testset_save_CFLAGS" 13607fi 13608 13609if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13610 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13611 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13612 fi 13613 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13614 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13615printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13616if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 13617then : 13618 printf %s "(cached) " >&6 13619else $as_nop 13620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13621/* end confdefs.h. */ 13622int i; 13623_ACEOF 13624if ac_fn_c_try_compile "$LINENO" 13625then : 13626 xorg_cv_cc_flag_unused_command_line_argument=yes 13627else $as_nop 13628 xorg_cv_cc_flag_unused_command_line_argument=no 13629fi 13630rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13631fi 13632{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13633printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13634 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13635 CFLAGS="$xorg_testset_save_CFLAGS" 13636fi 13637 13638found="no" 13639 13640 if test $found = "no" ; then 13641 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13642 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13643 fi 13644 13645 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13646 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13647 fi 13648 13649 CFLAGS="$CFLAGS -Wformat=2" 13650 13651 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5 13652printf %s "checking if $CC supports -Wformat=2... " >&6; } 13653 cacheid=xorg_cv_cc_flag__Wformat_2 13654 if eval test \${$cacheid+y} 13655then : 13656 printf %s "(cached) " >&6 13657else $as_nop 13658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13659/* end confdefs.h. */ 13660int i; 13661int 13662main (void) 13663{ 13664 13665 ; 13666 return 0; 13667} 13668_ACEOF 13669if ac_fn_c_try_link "$LINENO" 13670then : 13671 eval $cacheid=yes 13672else $as_nop 13673 eval $cacheid=no 13674fi 13675rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13676 conftest$ac_exeext conftest.$ac_ext 13677fi 13678 13679 13680 CFLAGS="$xorg_testset_save_CFLAGS" 13681 13682 eval supported=\$$cacheid 13683 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13684printf "%s\n" "$supported" >&6; } 13685 if test "$supported" = "yes" ; then 13686 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2" 13687 found="yes" 13688 fi 13689 fi 13690 13691 if test $found = "no" ; then 13692 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13693 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13694 fi 13695 13696 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13697 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13698 fi 13699 13700 CFLAGS="$CFLAGS -Wformat" 13701 13702 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5 13703printf %s "checking if $CC supports -Wformat... " >&6; } 13704 cacheid=xorg_cv_cc_flag__Wformat 13705 if eval test \${$cacheid+y} 13706then : 13707 printf %s "(cached) " >&6 13708else $as_nop 13709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13710/* end confdefs.h. */ 13711int i; 13712int 13713main (void) 13714{ 13715 13716 ; 13717 return 0; 13718} 13719_ACEOF 13720if ac_fn_c_try_link "$LINENO" 13721then : 13722 eval $cacheid=yes 13723else $as_nop 13724 eval $cacheid=no 13725fi 13726rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13727 conftest$ac_exeext conftest.$ac_ext 13728fi 13729 13730 13731 CFLAGS="$xorg_testset_save_CFLAGS" 13732 13733 eval supported=\$$cacheid 13734 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13735printf "%s\n" "$supported" >&6; } 13736 if test "$supported" = "yes" ; then 13737 BASE_CFLAGS="$BASE_CFLAGS -Wformat" 13738 found="yes" 13739 fi 13740 fi 13741 13742 13743 13744 13745 13746 13747 13748 13749 13750 13751 13752 13753 13754 13755 13756 13757 13758xorg_testset_save_CFLAGS="$CFLAGS" 13759 13760if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13761 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13762 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13763printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13764if test ${xorg_cv_cc_flag_unknown_warning_option+y} 13765then : 13766 printf %s "(cached) " >&6 13767else $as_nop 13768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13769/* end confdefs.h. */ 13770int i; 13771_ACEOF 13772if ac_fn_c_try_compile "$LINENO" 13773then : 13774 xorg_cv_cc_flag_unknown_warning_option=yes 13775else $as_nop 13776 xorg_cv_cc_flag_unknown_warning_option=no 13777fi 13778rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13779fi 13780{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13781printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13782 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13783 CFLAGS="$xorg_testset_save_CFLAGS" 13784fi 13785 13786if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13787 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13788 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13789 fi 13790 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13791 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13792printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13793if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 13794then : 13795 printf %s "(cached) " >&6 13796else $as_nop 13797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13798/* end confdefs.h. */ 13799int i; 13800_ACEOF 13801if ac_fn_c_try_compile "$LINENO" 13802then : 13803 xorg_cv_cc_flag_unused_command_line_argument=yes 13804else $as_nop 13805 xorg_cv_cc_flag_unused_command_line_argument=no 13806fi 13807rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13808fi 13809{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13810printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13811 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13812 CFLAGS="$xorg_testset_save_CFLAGS" 13813fi 13814 13815found="no" 13816 13817 if test $found = "no" ; then 13818 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13819 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13820 fi 13821 13822 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13823 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13824 fi 13825 13826 CFLAGS="$CFLAGS -Wstrict-prototypes" 13827 13828 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5 13829printf %s "checking if $CC supports -Wstrict-prototypes... " >&6; } 13830 cacheid=xorg_cv_cc_flag__Wstrict_prototypes 13831 if eval test \${$cacheid+y} 13832then : 13833 printf %s "(cached) " >&6 13834else $as_nop 13835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13836/* end confdefs.h. */ 13837int i; 13838int 13839main (void) 13840{ 13841 13842 ; 13843 return 0; 13844} 13845_ACEOF 13846if ac_fn_c_try_link "$LINENO" 13847then : 13848 eval $cacheid=yes 13849else $as_nop 13850 eval $cacheid=no 13851fi 13852rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13853 conftest$ac_exeext conftest.$ac_ext 13854fi 13855 13856 13857 CFLAGS="$xorg_testset_save_CFLAGS" 13858 13859 eval supported=\$$cacheid 13860 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13861printf "%s\n" "$supported" >&6; } 13862 if test "$supported" = "yes" ; then 13863 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes" 13864 found="yes" 13865 fi 13866 fi 13867 13868 13869 13870 13871 13872 13873 13874 13875 13876 13877 13878 13879 13880 13881 13882xorg_testset_save_CFLAGS="$CFLAGS" 13883 13884if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13885 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13886 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13887printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13888if test ${xorg_cv_cc_flag_unknown_warning_option+y} 13889then : 13890 printf %s "(cached) " >&6 13891else $as_nop 13892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13893/* end confdefs.h. */ 13894int i; 13895_ACEOF 13896if ac_fn_c_try_compile "$LINENO" 13897then : 13898 xorg_cv_cc_flag_unknown_warning_option=yes 13899else $as_nop 13900 xorg_cv_cc_flag_unknown_warning_option=no 13901fi 13902rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13903fi 13904{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13905printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13906 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13907 CFLAGS="$xorg_testset_save_CFLAGS" 13908fi 13909 13910if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13911 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13912 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13913 fi 13914 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13915 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13916printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13917if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 13918then : 13919 printf %s "(cached) " >&6 13920else $as_nop 13921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13922/* end confdefs.h. */ 13923int i; 13924_ACEOF 13925if ac_fn_c_try_compile "$LINENO" 13926then : 13927 xorg_cv_cc_flag_unused_command_line_argument=yes 13928else $as_nop 13929 xorg_cv_cc_flag_unused_command_line_argument=no 13930fi 13931rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13932fi 13933{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13934printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13935 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13936 CFLAGS="$xorg_testset_save_CFLAGS" 13937fi 13938 13939found="no" 13940 13941 if test $found = "no" ; then 13942 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13943 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13944 fi 13945 13946 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13947 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13948 fi 13949 13950 CFLAGS="$CFLAGS -Wmissing-prototypes" 13951 13952 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5 13953printf %s "checking if $CC supports -Wmissing-prototypes... " >&6; } 13954 cacheid=xorg_cv_cc_flag__Wmissing_prototypes 13955 if eval test \${$cacheid+y} 13956then : 13957 printf %s "(cached) " >&6 13958else $as_nop 13959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13960/* end confdefs.h. */ 13961int i; 13962int 13963main (void) 13964{ 13965 13966 ; 13967 return 0; 13968} 13969_ACEOF 13970if ac_fn_c_try_link "$LINENO" 13971then : 13972 eval $cacheid=yes 13973else $as_nop 13974 eval $cacheid=no 13975fi 13976rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13977 conftest$ac_exeext conftest.$ac_ext 13978fi 13979 13980 13981 CFLAGS="$xorg_testset_save_CFLAGS" 13982 13983 eval supported=\$$cacheid 13984 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13985printf "%s\n" "$supported" >&6; } 13986 if test "$supported" = "yes" ; then 13987 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes" 13988 found="yes" 13989 fi 13990 fi 13991 13992 13993 13994 13995 13996 13997 13998 13999 14000 14001 14002 14003 14004 14005 14006xorg_testset_save_CFLAGS="$CFLAGS" 14007 14008if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14009 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14010 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14011printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14012if test ${xorg_cv_cc_flag_unknown_warning_option+y} 14013then : 14014 printf %s "(cached) " >&6 14015else $as_nop 14016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14017/* end confdefs.h. */ 14018int i; 14019_ACEOF 14020if ac_fn_c_try_compile "$LINENO" 14021then : 14022 xorg_cv_cc_flag_unknown_warning_option=yes 14023else $as_nop 14024 xorg_cv_cc_flag_unknown_warning_option=no 14025fi 14026rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14027fi 14028{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14029printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14030 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14031 CFLAGS="$xorg_testset_save_CFLAGS" 14032fi 14033 14034if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14035 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14036 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14037 fi 14038 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14039 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14040printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14041if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 14042then : 14043 printf %s "(cached) " >&6 14044else $as_nop 14045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14046/* end confdefs.h. */ 14047int i; 14048_ACEOF 14049if ac_fn_c_try_compile "$LINENO" 14050then : 14051 xorg_cv_cc_flag_unused_command_line_argument=yes 14052else $as_nop 14053 xorg_cv_cc_flag_unused_command_line_argument=no 14054fi 14055rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14056fi 14057{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14058printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14059 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14060 CFLAGS="$xorg_testset_save_CFLAGS" 14061fi 14062 14063found="no" 14064 14065 if test $found = "no" ; then 14066 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14067 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14068 fi 14069 14070 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14071 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14072 fi 14073 14074 CFLAGS="$CFLAGS -Wnested-externs" 14075 14076 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5 14077printf %s "checking if $CC supports -Wnested-externs... " >&6; } 14078 cacheid=xorg_cv_cc_flag__Wnested_externs 14079 if eval test \${$cacheid+y} 14080then : 14081 printf %s "(cached) " >&6 14082else $as_nop 14083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14084/* end confdefs.h. */ 14085int i; 14086int 14087main (void) 14088{ 14089 14090 ; 14091 return 0; 14092} 14093_ACEOF 14094if ac_fn_c_try_link "$LINENO" 14095then : 14096 eval $cacheid=yes 14097else $as_nop 14098 eval $cacheid=no 14099fi 14100rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14101 conftest$ac_exeext conftest.$ac_ext 14102fi 14103 14104 14105 CFLAGS="$xorg_testset_save_CFLAGS" 14106 14107 eval supported=\$$cacheid 14108 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14109printf "%s\n" "$supported" >&6; } 14110 if test "$supported" = "yes" ; then 14111 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs" 14112 found="yes" 14113 fi 14114 fi 14115 14116 14117 14118 14119 14120 14121 14122 14123 14124 14125 14126 14127 14128 14129 14130xorg_testset_save_CFLAGS="$CFLAGS" 14131 14132if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14133 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14134 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14135printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14136if test ${xorg_cv_cc_flag_unknown_warning_option+y} 14137then : 14138 printf %s "(cached) " >&6 14139else $as_nop 14140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14141/* end confdefs.h. */ 14142int i; 14143_ACEOF 14144if ac_fn_c_try_compile "$LINENO" 14145then : 14146 xorg_cv_cc_flag_unknown_warning_option=yes 14147else $as_nop 14148 xorg_cv_cc_flag_unknown_warning_option=no 14149fi 14150rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14151fi 14152{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14153printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14154 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14155 CFLAGS="$xorg_testset_save_CFLAGS" 14156fi 14157 14158if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14159 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14160 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14161 fi 14162 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14163 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14164printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14165if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 14166then : 14167 printf %s "(cached) " >&6 14168else $as_nop 14169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14170/* end confdefs.h. */ 14171int i; 14172_ACEOF 14173if ac_fn_c_try_compile "$LINENO" 14174then : 14175 xorg_cv_cc_flag_unused_command_line_argument=yes 14176else $as_nop 14177 xorg_cv_cc_flag_unused_command_line_argument=no 14178fi 14179rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14180fi 14181{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14182printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14183 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14184 CFLAGS="$xorg_testset_save_CFLAGS" 14185fi 14186 14187found="no" 14188 14189 if test $found = "no" ; then 14190 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14191 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14192 fi 14193 14194 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14195 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14196 fi 14197 14198 CFLAGS="$CFLAGS -Wbad-function-cast" 14199 14200 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5 14201printf %s "checking if $CC supports -Wbad-function-cast... " >&6; } 14202 cacheid=xorg_cv_cc_flag__Wbad_function_cast 14203 if eval test \${$cacheid+y} 14204then : 14205 printf %s "(cached) " >&6 14206else $as_nop 14207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14208/* end confdefs.h. */ 14209int i; 14210int 14211main (void) 14212{ 14213 14214 ; 14215 return 0; 14216} 14217_ACEOF 14218if ac_fn_c_try_link "$LINENO" 14219then : 14220 eval $cacheid=yes 14221else $as_nop 14222 eval $cacheid=no 14223fi 14224rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14225 conftest$ac_exeext conftest.$ac_ext 14226fi 14227 14228 14229 CFLAGS="$xorg_testset_save_CFLAGS" 14230 14231 eval supported=\$$cacheid 14232 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14233printf "%s\n" "$supported" >&6; } 14234 if test "$supported" = "yes" ; then 14235 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast" 14236 found="yes" 14237 fi 14238 fi 14239 14240 14241 14242 14243 14244 14245 14246 14247 14248 14249 14250 14251 14252 14253 14254xorg_testset_save_CFLAGS="$CFLAGS" 14255 14256if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14257 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14258 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14259printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14260if test ${xorg_cv_cc_flag_unknown_warning_option+y} 14261then : 14262 printf %s "(cached) " >&6 14263else $as_nop 14264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14265/* end confdefs.h. */ 14266int i; 14267_ACEOF 14268if ac_fn_c_try_compile "$LINENO" 14269then : 14270 xorg_cv_cc_flag_unknown_warning_option=yes 14271else $as_nop 14272 xorg_cv_cc_flag_unknown_warning_option=no 14273fi 14274rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14275fi 14276{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14277printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14278 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14279 CFLAGS="$xorg_testset_save_CFLAGS" 14280fi 14281 14282if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14283 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14284 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14285 fi 14286 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14287 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14288printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14289if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 14290then : 14291 printf %s "(cached) " >&6 14292else $as_nop 14293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14294/* end confdefs.h. */ 14295int i; 14296_ACEOF 14297if ac_fn_c_try_compile "$LINENO" 14298then : 14299 xorg_cv_cc_flag_unused_command_line_argument=yes 14300else $as_nop 14301 xorg_cv_cc_flag_unused_command_line_argument=no 14302fi 14303rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14304fi 14305{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14306printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14307 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14308 CFLAGS="$xorg_testset_save_CFLAGS" 14309fi 14310 14311found="no" 14312 14313 if test $found = "no" ; then 14314 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14315 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14316 fi 14317 14318 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14319 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14320 fi 14321 14322 CFLAGS="$CFLAGS -Wold-style-definition" 14323 14324 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5 14325printf %s "checking if $CC supports -Wold-style-definition... " >&6; } 14326 cacheid=xorg_cv_cc_flag__Wold_style_definition 14327 if eval test \${$cacheid+y} 14328then : 14329 printf %s "(cached) " >&6 14330else $as_nop 14331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14332/* end confdefs.h. */ 14333int i; 14334int 14335main (void) 14336{ 14337 14338 ; 14339 return 0; 14340} 14341_ACEOF 14342if ac_fn_c_try_link "$LINENO" 14343then : 14344 eval $cacheid=yes 14345else $as_nop 14346 eval $cacheid=no 14347fi 14348rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14349 conftest$ac_exeext conftest.$ac_ext 14350fi 14351 14352 14353 CFLAGS="$xorg_testset_save_CFLAGS" 14354 14355 eval supported=\$$cacheid 14356 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14357printf "%s\n" "$supported" >&6; } 14358 if test "$supported" = "yes" ; then 14359 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition" 14360 found="yes" 14361 fi 14362 fi 14363 14364 if test $found = "no" ; then 14365 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14366 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14367 fi 14368 14369 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14370 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14371 fi 14372 14373 CFLAGS="$CFLAGS -fd" 14374 14375 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5 14376printf %s "checking if $CC supports -fd... " >&6; } 14377 cacheid=xorg_cv_cc_flag__fd 14378 if eval test \${$cacheid+y} 14379then : 14380 printf %s "(cached) " >&6 14381else $as_nop 14382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14383/* end confdefs.h. */ 14384int i; 14385int 14386main (void) 14387{ 14388 14389 ; 14390 return 0; 14391} 14392_ACEOF 14393if ac_fn_c_try_link "$LINENO" 14394then : 14395 eval $cacheid=yes 14396else $as_nop 14397 eval $cacheid=no 14398fi 14399rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14400 conftest$ac_exeext conftest.$ac_ext 14401fi 14402 14403 14404 CFLAGS="$xorg_testset_save_CFLAGS" 14405 14406 eval supported=\$$cacheid 14407 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14408printf "%s\n" "$supported" >&6; } 14409 if test "$supported" = "yes" ; then 14410 BASE_CFLAGS="$BASE_CFLAGS -fd" 14411 found="yes" 14412 fi 14413 fi 14414 14415 14416 14417 14418 14419 14420 14421 14422 14423 14424 14425 14426 14427 14428 14429xorg_testset_save_CFLAGS="$CFLAGS" 14430 14431if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14432 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14433 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14434printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14435if test ${xorg_cv_cc_flag_unknown_warning_option+y} 14436then : 14437 printf %s "(cached) " >&6 14438else $as_nop 14439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14440/* end confdefs.h. */ 14441int i; 14442_ACEOF 14443if ac_fn_c_try_compile "$LINENO" 14444then : 14445 xorg_cv_cc_flag_unknown_warning_option=yes 14446else $as_nop 14447 xorg_cv_cc_flag_unknown_warning_option=no 14448fi 14449rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14450fi 14451{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14452printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14453 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14454 CFLAGS="$xorg_testset_save_CFLAGS" 14455fi 14456 14457if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14458 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14459 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14460 fi 14461 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14462 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14463printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14464if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 14465then : 14466 printf %s "(cached) " >&6 14467else $as_nop 14468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14469/* end confdefs.h. */ 14470int i; 14471_ACEOF 14472if ac_fn_c_try_compile "$LINENO" 14473then : 14474 xorg_cv_cc_flag_unused_command_line_argument=yes 14475else $as_nop 14476 xorg_cv_cc_flag_unused_command_line_argument=no 14477fi 14478rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14479fi 14480{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14481printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14482 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14483 CFLAGS="$xorg_testset_save_CFLAGS" 14484fi 14485 14486found="no" 14487 14488 if test $found = "no" ; then 14489 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14490 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14491 fi 14492 14493 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14494 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14495 fi 14496 14497 CFLAGS="$CFLAGS -Wdeclaration-after-statement" 14498 14499 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5 14500printf %s "checking if $CC supports -Wdeclaration-after-statement... " >&6; } 14501 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement 14502 if eval test \${$cacheid+y} 14503then : 14504 printf %s "(cached) " >&6 14505else $as_nop 14506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14507/* end confdefs.h. */ 14508int i; 14509int 14510main (void) 14511{ 14512 14513 ; 14514 return 0; 14515} 14516_ACEOF 14517if ac_fn_c_try_link "$LINENO" 14518then : 14519 eval $cacheid=yes 14520else $as_nop 14521 eval $cacheid=no 14522fi 14523rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14524 conftest$ac_exeext conftest.$ac_ext 14525fi 14526 14527 14528 CFLAGS="$xorg_testset_save_CFLAGS" 14529 14530 eval supported=\$$cacheid 14531 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14532printf "%s\n" "$supported" >&6; } 14533 if test "$supported" = "yes" ; then 14534 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement" 14535 found="yes" 14536 fi 14537 fi 14538 14539 14540 14541 14542 14543# This chunk adds additional warnings that could catch undesired effects. 14544 14545 14546 14547 14548 14549 14550 14551 14552 14553 14554 14555 14556 14557xorg_testset_save_CFLAGS="$CFLAGS" 14558 14559if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14560 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14561 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14562printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14563if test ${xorg_cv_cc_flag_unknown_warning_option+y} 14564then : 14565 printf %s "(cached) " >&6 14566else $as_nop 14567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14568/* end confdefs.h. */ 14569int i; 14570_ACEOF 14571if ac_fn_c_try_compile "$LINENO" 14572then : 14573 xorg_cv_cc_flag_unknown_warning_option=yes 14574else $as_nop 14575 xorg_cv_cc_flag_unknown_warning_option=no 14576fi 14577rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14578fi 14579{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14580printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14581 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14582 CFLAGS="$xorg_testset_save_CFLAGS" 14583fi 14584 14585if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14586 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14587 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14588 fi 14589 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14590 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14591printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14592if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 14593then : 14594 printf %s "(cached) " >&6 14595else $as_nop 14596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14597/* end confdefs.h. */ 14598int i; 14599_ACEOF 14600if ac_fn_c_try_compile "$LINENO" 14601then : 14602 xorg_cv_cc_flag_unused_command_line_argument=yes 14603else $as_nop 14604 xorg_cv_cc_flag_unused_command_line_argument=no 14605fi 14606rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14607fi 14608{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14609printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14610 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14611 CFLAGS="$xorg_testset_save_CFLAGS" 14612fi 14613 14614found="no" 14615 14616 if test $found = "no" ; then 14617 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14618 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14619 fi 14620 14621 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14622 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14623 fi 14624 14625 CFLAGS="$CFLAGS -Wunused" 14626 14627 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5 14628printf %s "checking if $CC supports -Wunused... " >&6; } 14629 cacheid=xorg_cv_cc_flag__Wunused 14630 if eval test \${$cacheid+y} 14631then : 14632 printf %s "(cached) " >&6 14633else $as_nop 14634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14635/* end confdefs.h. */ 14636int i; 14637int 14638main (void) 14639{ 14640 14641 ; 14642 return 0; 14643} 14644_ACEOF 14645if ac_fn_c_try_link "$LINENO" 14646then : 14647 eval $cacheid=yes 14648else $as_nop 14649 eval $cacheid=no 14650fi 14651rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14652 conftest$ac_exeext conftest.$ac_ext 14653fi 14654 14655 14656 CFLAGS="$xorg_testset_save_CFLAGS" 14657 14658 eval supported=\$$cacheid 14659 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14660printf "%s\n" "$supported" >&6; } 14661 if test "$supported" = "yes" ; then 14662 BASE_CFLAGS="$BASE_CFLAGS -Wunused" 14663 found="yes" 14664 fi 14665 fi 14666 14667 14668 14669 14670 14671 14672 14673 14674 14675 14676 14677 14678 14679 14680 14681xorg_testset_save_CFLAGS="$CFLAGS" 14682 14683if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14684 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14685 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14686printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14687if test ${xorg_cv_cc_flag_unknown_warning_option+y} 14688then : 14689 printf %s "(cached) " >&6 14690else $as_nop 14691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14692/* end confdefs.h. */ 14693int i; 14694_ACEOF 14695if ac_fn_c_try_compile "$LINENO" 14696then : 14697 xorg_cv_cc_flag_unknown_warning_option=yes 14698else $as_nop 14699 xorg_cv_cc_flag_unknown_warning_option=no 14700fi 14701rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14702fi 14703{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14704printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14705 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14706 CFLAGS="$xorg_testset_save_CFLAGS" 14707fi 14708 14709if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14710 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14711 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14712 fi 14713 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14714 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14715printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14716if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 14717then : 14718 printf %s "(cached) " >&6 14719else $as_nop 14720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14721/* end confdefs.h. */ 14722int i; 14723_ACEOF 14724if ac_fn_c_try_compile "$LINENO" 14725then : 14726 xorg_cv_cc_flag_unused_command_line_argument=yes 14727else $as_nop 14728 xorg_cv_cc_flag_unused_command_line_argument=no 14729fi 14730rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14731fi 14732{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14733printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14734 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14735 CFLAGS="$xorg_testset_save_CFLAGS" 14736fi 14737 14738found="no" 14739 14740 if test $found = "no" ; then 14741 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14742 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14743 fi 14744 14745 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14746 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14747 fi 14748 14749 CFLAGS="$CFLAGS -Wuninitialized" 14750 14751 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5 14752printf %s "checking if $CC supports -Wuninitialized... " >&6; } 14753 cacheid=xorg_cv_cc_flag__Wuninitialized 14754 if eval test \${$cacheid+y} 14755then : 14756 printf %s "(cached) " >&6 14757else $as_nop 14758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14759/* end confdefs.h. */ 14760int i; 14761int 14762main (void) 14763{ 14764 14765 ; 14766 return 0; 14767} 14768_ACEOF 14769if ac_fn_c_try_link "$LINENO" 14770then : 14771 eval $cacheid=yes 14772else $as_nop 14773 eval $cacheid=no 14774fi 14775rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14776 conftest$ac_exeext conftest.$ac_ext 14777fi 14778 14779 14780 CFLAGS="$xorg_testset_save_CFLAGS" 14781 14782 eval supported=\$$cacheid 14783 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14784printf "%s\n" "$supported" >&6; } 14785 if test "$supported" = "yes" ; then 14786 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized" 14787 found="yes" 14788 fi 14789 fi 14790 14791 14792 14793 14794 14795 14796 14797 14798 14799 14800 14801 14802 14803 14804 14805xorg_testset_save_CFLAGS="$CFLAGS" 14806 14807if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14808 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14809 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14810printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14811if test ${xorg_cv_cc_flag_unknown_warning_option+y} 14812then : 14813 printf %s "(cached) " >&6 14814else $as_nop 14815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14816/* end confdefs.h. */ 14817int i; 14818_ACEOF 14819if ac_fn_c_try_compile "$LINENO" 14820then : 14821 xorg_cv_cc_flag_unknown_warning_option=yes 14822else $as_nop 14823 xorg_cv_cc_flag_unknown_warning_option=no 14824fi 14825rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14826fi 14827{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14828printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14829 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14830 CFLAGS="$xorg_testset_save_CFLAGS" 14831fi 14832 14833if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14834 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14835 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14836 fi 14837 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14838 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14839printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14840if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 14841then : 14842 printf %s "(cached) " >&6 14843else $as_nop 14844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14845/* end confdefs.h. */ 14846int i; 14847_ACEOF 14848if ac_fn_c_try_compile "$LINENO" 14849then : 14850 xorg_cv_cc_flag_unused_command_line_argument=yes 14851else $as_nop 14852 xorg_cv_cc_flag_unused_command_line_argument=no 14853fi 14854rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14855fi 14856{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14857printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14858 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14859 CFLAGS="$xorg_testset_save_CFLAGS" 14860fi 14861 14862found="no" 14863 14864 if test $found = "no" ; then 14865 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14866 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14867 fi 14868 14869 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14870 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14871 fi 14872 14873 CFLAGS="$CFLAGS -Wshadow" 14874 14875 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5 14876printf %s "checking if $CC supports -Wshadow... " >&6; } 14877 cacheid=xorg_cv_cc_flag__Wshadow 14878 if eval test \${$cacheid+y} 14879then : 14880 printf %s "(cached) " >&6 14881else $as_nop 14882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14883/* end confdefs.h. */ 14884int i; 14885int 14886main (void) 14887{ 14888 14889 ; 14890 return 0; 14891} 14892_ACEOF 14893if ac_fn_c_try_link "$LINENO" 14894then : 14895 eval $cacheid=yes 14896else $as_nop 14897 eval $cacheid=no 14898fi 14899rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14900 conftest$ac_exeext conftest.$ac_ext 14901fi 14902 14903 14904 CFLAGS="$xorg_testset_save_CFLAGS" 14905 14906 eval supported=\$$cacheid 14907 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14908printf "%s\n" "$supported" >&6; } 14909 if test "$supported" = "yes" ; then 14910 BASE_CFLAGS="$BASE_CFLAGS -Wshadow" 14911 found="yes" 14912 fi 14913 fi 14914 14915 14916 14917 14918 14919 14920 14921 14922 14923 14924 14925 14926 14927 14928 14929xorg_testset_save_CFLAGS="$CFLAGS" 14930 14931if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14932 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14933 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14934printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14935if test ${xorg_cv_cc_flag_unknown_warning_option+y} 14936then : 14937 printf %s "(cached) " >&6 14938else $as_nop 14939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14940/* end confdefs.h. */ 14941int i; 14942_ACEOF 14943if ac_fn_c_try_compile "$LINENO" 14944then : 14945 xorg_cv_cc_flag_unknown_warning_option=yes 14946else $as_nop 14947 xorg_cv_cc_flag_unknown_warning_option=no 14948fi 14949rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14950fi 14951{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14952printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14953 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14954 CFLAGS="$xorg_testset_save_CFLAGS" 14955fi 14956 14957if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14958 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14959 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14960 fi 14961 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14962 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14963printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14964if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 14965then : 14966 printf %s "(cached) " >&6 14967else $as_nop 14968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14969/* end confdefs.h. */ 14970int i; 14971_ACEOF 14972if ac_fn_c_try_compile "$LINENO" 14973then : 14974 xorg_cv_cc_flag_unused_command_line_argument=yes 14975else $as_nop 14976 xorg_cv_cc_flag_unused_command_line_argument=no 14977fi 14978rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14979fi 14980{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14981printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14982 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14983 CFLAGS="$xorg_testset_save_CFLAGS" 14984fi 14985 14986found="no" 14987 14988 if test $found = "no" ; then 14989 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14990 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14991 fi 14992 14993 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14994 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14995 fi 14996 14997 CFLAGS="$CFLAGS -Wmissing-noreturn" 14998 14999 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5 15000printf %s "checking if $CC supports -Wmissing-noreturn... " >&6; } 15001 cacheid=xorg_cv_cc_flag__Wmissing_noreturn 15002 if eval test \${$cacheid+y} 15003then : 15004 printf %s "(cached) " >&6 15005else $as_nop 15006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15007/* end confdefs.h. */ 15008int i; 15009int 15010main (void) 15011{ 15012 15013 ; 15014 return 0; 15015} 15016_ACEOF 15017if ac_fn_c_try_link "$LINENO" 15018then : 15019 eval $cacheid=yes 15020else $as_nop 15021 eval $cacheid=no 15022fi 15023rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15024 conftest$ac_exeext conftest.$ac_ext 15025fi 15026 15027 15028 CFLAGS="$xorg_testset_save_CFLAGS" 15029 15030 eval supported=\$$cacheid 15031 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15032printf "%s\n" "$supported" >&6; } 15033 if test "$supported" = "yes" ; then 15034 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn" 15035 found="yes" 15036 fi 15037 fi 15038 15039 15040 15041 15042 15043 15044 15045 15046 15047 15048 15049 15050 15051 15052 15053xorg_testset_save_CFLAGS="$CFLAGS" 15054 15055if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15056 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15057 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15058printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15059if test ${xorg_cv_cc_flag_unknown_warning_option+y} 15060then : 15061 printf %s "(cached) " >&6 15062else $as_nop 15063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15064/* end confdefs.h. */ 15065int i; 15066_ACEOF 15067if ac_fn_c_try_compile "$LINENO" 15068then : 15069 xorg_cv_cc_flag_unknown_warning_option=yes 15070else $as_nop 15071 xorg_cv_cc_flag_unknown_warning_option=no 15072fi 15073rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15074fi 15075{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15076printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15077 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15078 CFLAGS="$xorg_testset_save_CFLAGS" 15079fi 15080 15081if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15082 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15083 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15084 fi 15085 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15086 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15087printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15088if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 15089then : 15090 printf %s "(cached) " >&6 15091else $as_nop 15092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15093/* end confdefs.h. */ 15094int i; 15095_ACEOF 15096if ac_fn_c_try_compile "$LINENO" 15097then : 15098 xorg_cv_cc_flag_unused_command_line_argument=yes 15099else $as_nop 15100 xorg_cv_cc_flag_unused_command_line_argument=no 15101fi 15102rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15103fi 15104{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15105printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15106 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15107 CFLAGS="$xorg_testset_save_CFLAGS" 15108fi 15109 15110found="no" 15111 15112 if test $found = "no" ; then 15113 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15114 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15115 fi 15116 15117 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15118 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15119 fi 15120 15121 CFLAGS="$CFLAGS -Wmissing-format-attribute" 15122 15123 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5 15124printf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; } 15125 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute 15126 if eval test \${$cacheid+y} 15127then : 15128 printf %s "(cached) " >&6 15129else $as_nop 15130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15131/* end confdefs.h. */ 15132int i; 15133int 15134main (void) 15135{ 15136 15137 ; 15138 return 0; 15139} 15140_ACEOF 15141if ac_fn_c_try_link "$LINENO" 15142then : 15143 eval $cacheid=yes 15144else $as_nop 15145 eval $cacheid=no 15146fi 15147rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15148 conftest$ac_exeext conftest.$ac_ext 15149fi 15150 15151 15152 CFLAGS="$xorg_testset_save_CFLAGS" 15153 15154 eval supported=\$$cacheid 15155 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15156printf "%s\n" "$supported" >&6; } 15157 if test "$supported" = "yes" ; then 15158 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute" 15159 found="yes" 15160 fi 15161 fi 15162 15163 15164 15165 15166 15167 15168 15169 15170 15171 15172 15173 15174 15175 15176 15177xorg_testset_save_CFLAGS="$CFLAGS" 15178 15179if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15180 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15181 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15182printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15183if test ${xorg_cv_cc_flag_unknown_warning_option+y} 15184then : 15185 printf %s "(cached) " >&6 15186else $as_nop 15187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15188/* end confdefs.h. */ 15189int i; 15190_ACEOF 15191if ac_fn_c_try_compile "$LINENO" 15192then : 15193 xorg_cv_cc_flag_unknown_warning_option=yes 15194else $as_nop 15195 xorg_cv_cc_flag_unknown_warning_option=no 15196fi 15197rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15198fi 15199{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15200printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15201 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15202 CFLAGS="$xorg_testset_save_CFLAGS" 15203fi 15204 15205if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15206 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15207 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15208 fi 15209 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15210 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15211printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15212if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 15213then : 15214 printf %s "(cached) " >&6 15215else $as_nop 15216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15217/* end confdefs.h. */ 15218int i; 15219_ACEOF 15220if ac_fn_c_try_compile "$LINENO" 15221then : 15222 xorg_cv_cc_flag_unused_command_line_argument=yes 15223else $as_nop 15224 xorg_cv_cc_flag_unused_command_line_argument=no 15225fi 15226rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15227fi 15228{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15229printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15230 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15231 CFLAGS="$xorg_testset_save_CFLAGS" 15232fi 15233 15234found="no" 15235 15236 if test $found = "no" ; then 15237 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15238 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15239 fi 15240 15241 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15242 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15243 fi 15244 15245 CFLAGS="$CFLAGS -Wredundant-decls" 15246 15247 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5 15248printf %s "checking if $CC supports -Wredundant-decls... " >&6; } 15249 cacheid=xorg_cv_cc_flag__Wredundant_decls 15250 if eval test \${$cacheid+y} 15251then : 15252 printf %s "(cached) " >&6 15253else $as_nop 15254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15255/* end confdefs.h. */ 15256int i; 15257int 15258main (void) 15259{ 15260 15261 ; 15262 return 0; 15263} 15264_ACEOF 15265if ac_fn_c_try_link "$LINENO" 15266then : 15267 eval $cacheid=yes 15268else $as_nop 15269 eval $cacheid=no 15270fi 15271rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15272 conftest$ac_exeext conftest.$ac_ext 15273fi 15274 15275 15276 CFLAGS="$xorg_testset_save_CFLAGS" 15277 15278 eval supported=\$$cacheid 15279 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15280printf "%s\n" "$supported" >&6; } 15281 if test "$supported" = "yes" ; then 15282 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls" 15283 found="yes" 15284 fi 15285 fi 15286 15287 15288 15289 15290 15291 15292 15293 15294 15295 15296 15297 15298 15299 15300 15301xorg_testset_save_CFLAGS="$CFLAGS" 15302 15303if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15304 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15305 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15306printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15307if test ${xorg_cv_cc_flag_unknown_warning_option+y} 15308then : 15309 printf %s "(cached) " >&6 15310else $as_nop 15311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15312/* end confdefs.h. */ 15313int i; 15314_ACEOF 15315if ac_fn_c_try_compile "$LINENO" 15316then : 15317 xorg_cv_cc_flag_unknown_warning_option=yes 15318else $as_nop 15319 xorg_cv_cc_flag_unknown_warning_option=no 15320fi 15321rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15322fi 15323{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15324printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15325 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15326 CFLAGS="$xorg_testset_save_CFLAGS" 15327fi 15328 15329if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15330 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15331 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15332 fi 15333 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15334 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15335printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15336if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 15337then : 15338 printf %s "(cached) " >&6 15339else $as_nop 15340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15341/* end confdefs.h. */ 15342int i; 15343_ACEOF 15344if ac_fn_c_try_compile "$LINENO" 15345then : 15346 xorg_cv_cc_flag_unused_command_line_argument=yes 15347else $as_nop 15348 xorg_cv_cc_flag_unused_command_line_argument=no 15349fi 15350rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15351fi 15352{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15353printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15354 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15355 CFLAGS="$xorg_testset_save_CFLAGS" 15356fi 15357 15358found="no" 15359 15360 if test $found = "no" ; then 15361 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15362 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15363 fi 15364 15365 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15366 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15367 fi 15368 15369 CFLAGS="$CFLAGS -Wlogical-op" 15370 15371 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5 15372printf %s "checking if $CC supports -Wlogical-op... " >&6; } 15373 cacheid=xorg_cv_cc_flag__Wlogical_op 15374 if eval test \${$cacheid+y} 15375then : 15376 printf %s "(cached) " >&6 15377else $as_nop 15378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15379/* end confdefs.h. */ 15380int i; 15381int 15382main (void) 15383{ 15384 15385 ; 15386 return 0; 15387} 15388_ACEOF 15389if ac_fn_c_try_link "$LINENO" 15390then : 15391 eval $cacheid=yes 15392else $as_nop 15393 eval $cacheid=no 15394fi 15395rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15396 conftest$ac_exeext conftest.$ac_ext 15397fi 15398 15399 15400 CFLAGS="$xorg_testset_save_CFLAGS" 15401 15402 eval supported=\$$cacheid 15403 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15404printf "%s\n" "$supported" >&6; } 15405 if test "$supported" = "yes" ; then 15406 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op" 15407 found="yes" 15408 fi 15409 fi 15410 15411 15412 15413# These are currently disabled because they are noisy. They will be enabled 15414# in the future once the codebase is sufficiently modernized to silence 15415# them. For now, I don't want them to drown out the other warnings. 15416# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses]) 15417# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align]) 15418# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual]) 15419 15420# Turn some warnings into errors, so we don't accidently get successful builds 15421# when there are problems that should be fixed. 15422 15423if test "x$SELECTIVE_WERROR" = "xyes" ; then 15424 15425 15426 15427 15428 15429 15430 15431 15432 15433 15434 15435 15436 15437xorg_testset_save_CFLAGS="$CFLAGS" 15438 15439if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15440 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15441 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15442printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15443if test ${xorg_cv_cc_flag_unknown_warning_option+y} 15444then : 15445 printf %s "(cached) " >&6 15446else $as_nop 15447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15448/* end confdefs.h. */ 15449int i; 15450_ACEOF 15451if ac_fn_c_try_compile "$LINENO" 15452then : 15453 xorg_cv_cc_flag_unknown_warning_option=yes 15454else $as_nop 15455 xorg_cv_cc_flag_unknown_warning_option=no 15456fi 15457rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15458fi 15459{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15460printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15461 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15462 CFLAGS="$xorg_testset_save_CFLAGS" 15463fi 15464 15465if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15466 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15467 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15468 fi 15469 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15470 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15471printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15472if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 15473then : 15474 printf %s "(cached) " >&6 15475else $as_nop 15476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15477/* end confdefs.h. */ 15478int i; 15479_ACEOF 15480if ac_fn_c_try_compile "$LINENO" 15481then : 15482 xorg_cv_cc_flag_unused_command_line_argument=yes 15483else $as_nop 15484 xorg_cv_cc_flag_unused_command_line_argument=no 15485fi 15486rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15487fi 15488{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15489printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15490 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15491 CFLAGS="$xorg_testset_save_CFLAGS" 15492fi 15493 15494found="no" 15495 15496 if test $found = "no" ; then 15497 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15498 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15499 fi 15500 15501 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15502 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15503 fi 15504 15505 CFLAGS="$CFLAGS -Werror=implicit" 15506 15507 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5 15508printf %s "checking if $CC supports -Werror=implicit... " >&6; } 15509 cacheid=xorg_cv_cc_flag__Werror_implicit 15510 if eval test \${$cacheid+y} 15511then : 15512 printf %s "(cached) " >&6 15513else $as_nop 15514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15515/* end confdefs.h. */ 15516int i; 15517int 15518main (void) 15519{ 15520 15521 ; 15522 return 0; 15523} 15524_ACEOF 15525if ac_fn_c_try_link "$LINENO" 15526then : 15527 eval $cacheid=yes 15528else $as_nop 15529 eval $cacheid=no 15530fi 15531rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15532 conftest$ac_exeext conftest.$ac_ext 15533fi 15534 15535 15536 CFLAGS="$xorg_testset_save_CFLAGS" 15537 15538 eval supported=\$$cacheid 15539 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15540printf "%s\n" "$supported" >&6; } 15541 if test "$supported" = "yes" ; then 15542 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit" 15543 found="yes" 15544 fi 15545 fi 15546 15547 if test $found = "no" ; then 15548 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15549 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15550 fi 15551 15552 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15553 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15554 fi 15555 15556 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 15557 15558 { 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 15559printf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; } 15560 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED 15561 if eval test \${$cacheid+y} 15562then : 15563 printf %s "(cached) " >&6 15564else $as_nop 15565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15566/* end confdefs.h. */ 15567int i; 15568int 15569main (void) 15570{ 15571 15572 ; 15573 return 0; 15574} 15575_ACEOF 15576if ac_fn_c_try_link "$LINENO" 15577then : 15578 eval $cacheid=yes 15579else $as_nop 15580 eval $cacheid=no 15581fi 15582rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15583 conftest$ac_exeext conftest.$ac_ext 15584fi 15585 15586 15587 CFLAGS="$xorg_testset_save_CFLAGS" 15588 15589 eval supported=\$$cacheid 15590 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15591printf "%s\n" "$supported" >&6; } 15592 if test "$supported" = "yes" ; then 15593 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 15594 found="yes" 15595 fi 15596 fi 15597 15598 15599 15600 15601 15602 15603 15604 15605 15606 15607 15608 15609 15610 15611 15612xorg_testset_save_CFLAGS="$CFLAGS" 15613 15614if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15615 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15616 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15617printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15618if test ${xorg_cv_cc_flag_unknown_warning_option+y} 15619then : 15620 printf %s "(cached) " >&6 15621else $as_nop 15622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15623/* end confdefs.h. */ 15624int i; 15625_ACEOF 15626if ac_fn_c_try_compile "$LINENO" 15627then : 15628 xorg_cv_cc_flag_unknown_warning_option=yes 15629else $as_nop 15630 xorg_cv_cc_flag_unknown_warning_option=no 15631fi 15632rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15633fi 15634{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15635printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15636 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15637 CFLAGS="$xorg_testset_save_CFLAGS" 15638fi 15639 15640if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15641 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15642 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15643 fi 15644 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15645 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15646printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15647if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 15648then : 15649 printf %s "(cached) " >&6 15650else $as_nop 15651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15652/* end confdefs.h. */ 15653int i; 15654_ACEOF 15655if ac_fn_c_try_compile "$LINENO" 15656then : 15657 xorg_cv_cc_flag_unused_command_line_argument=yes 15658else $as_nop 15659 xorg_cv_cc_flag_unused_command_line_argument=no 15660fi 15661rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15662fi 15663{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15664printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15665 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15666 CFLAGS="$xorg_testset_save_CFLAGS" 15667fi 15668 15669found="no" 15670 15671 if test $found = "no" ; then 15672 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15673 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15674 fi 15675 15676 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15677 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15678 fi 15679 15680 CFLAGS="$CFLAGS -Werror=nonnull" 15681 15682 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5 15683printf %s "checking if $CC supports -Werror=nonnull... " >&6; } 15684 cacheid=xorg_cv_cc_flag__Werror_nonnull 15685 if eval test \${$cacheid+y} 15686then : 15687 printf %s "(cached) " >&6 15688else $as_nop 15689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15690/* end confdefs.h. */ 15691int i; 15692int 15693main (void) 15694{ 15695 15696 ; 15697 return 0; 15698} 15699_ACEOF 15700if ac_fn_c_try_link "$LINENO" 15701then : 15702 eval $cacheid=yes 15703else $as_nop 15704 eval $cacheid=no 15705fi 15706rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15707 conftest$ac_exeext conftest.$ac_ext 15708fi 15709 15710 15711 CFLAGS="$xorg_testset_save_CFLAGS" 15712 15713 eval supported=\$$cacheid 15714 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15715printf "%s\n" "$supported" >&6; } 15716 if test "$supported" = "yes" ; then 15717 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull" 15718 found="yes" 15719 fi 15720 fi 15721 15722 15723 15724 15725 15726 15727 15728 15729 15730 15731 15732 15733 15734 15735 15736xorg_testset_save_CFLAGS="$CFLAGS" 15737 15738if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15739 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15740 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15741printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15742if test ${xorg_cv_cc_flag_unknown_warning_option+y} 15743then : 15744 printf %s "(cached) " >&6 15745else $as_nop 15746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15747/* end confdefs.h. */ 15748int i; 15749_ACEOF 15750if ac_fn_c_try_compile "$LINENO" 15751then : 15752 xorg_cv_cc_flag_unknown_warning_option=yes 15753else $as_nop 15754 xorg_cv_cc_flag_unknown_warning_option=no 15755fi 15756rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15757fi 15758{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15759printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15760 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15761 CFLAGS="$xorg_testset_save_CFLAGS" 15762fi 15763 15764if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15765 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15766 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15767 fi 15768 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15769 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15770printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15771if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 15772then : 15773 printf %s "(cached) " >&6 15774else $as_nop 15775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15776/* end confdefs.h. */ 15777int i; 15778_ACEOF 15779if ac_fn_c_try_compile "$LINENO" 15780then : 15781 xorg_cv_cc_flag_unused_command_line_argument=yes 15782else $as_nop 15783 xorg_cv_cc_flag_unused_command_line_argument=no 15784fi 15785rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15786fi 15787{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15788printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15789 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15790 CFLAGS="$xorg_testset_save_CFLAGS" 15791fi 15792 15793found="no" 15794 15795 if test $found = "no" ; then 15796 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15797 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15798 fi 15799 15800 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15801 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15802 fi 15803 15804 CFLAGS="$CFLAGS -Werror=init-self" 15805 15806 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5 15807printf %s "checking if $CC supports -Werror=init-self... " >&6; } 15808 cacheid=xorg_cv_cc_flag__Werror_init_self 15809 if eval test \${$cacheid+y} 15810then : 15811 printf %s "(cached) " >&6 15812else $as_nop 15813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15814/* end confdefs.h. */ 15815int i; 15816int 15817main (void) 15818{ 15819 15820 ; 15821 return 0; 15822} 15823_ACEOF 15824if ac_fn_c_try_link "$LINENO" 15825then : 15826 eval $cacheid=yes 15827else $as_nop 15828 eval $cacheid=no 15829fi 15830rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15831 conftest$ac_exeext conftest.$ac_ext 15832fi 15833 15834 15835 CFLAGS="$xorg_testset_save_CFLAGS" 15836 15837 eval supported=\$$cacheid 15838 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15839printf "%s\n" "$supported" >&6; } 15840 if test "$supported" = "yes" ; then 15841 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self" 15842 found="yes" 15843 fi 15844 fi 15845 15846 15847 15848 15849 15850 15851 15852 15853 15854 15855 15856 15857 15858 15859 15860xorg_testset_save_CFLAGS="$CFLAGS" 15861 15862if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15863 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15864 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15865printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15866if test ${xorg_cv_cc_flag_unknown_warning_option+y} 15867then : 15868 printf %s "(cached) " >&6 15869else $as_nop 15870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15871/* end confdefs.h. */ 15872int i; 15873_ACEOF 15874if ac_fn_c_try_compile "$LINENO" 15875then : 15876 xorg_cv_cc_flag_unknown_warning_option=yes 15877else $as_nop 15878 xorg_cv_cc_flag_unknown_warning_option=no 15879fi 15880rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15881fi 15882{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15883printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15884 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15885 CFLAGS="$xorg_testset_save_CFLAGS" 15886fi 15887 15888if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15889 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15890 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15891 fi 15892 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15893 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15894printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15895if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 15896then : 15897 printf %s "(cached) " >&6 15898else $as_nop 15899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15900/* end confdefs.h. */ 15901int i; 15902_ACEOF 15903if ac_fn_c_try_compile "$LINENO" 15904then : 15905 xorg_cv_cc_flag_unused_command_line_argument=yes 15906else $as_nop 15907 xorg_cv_cc_flag_unused_command_line_argument=no 15908fi 15909rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15910fi 15911{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15912printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15913 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15914 CFLAGS="$xorg_testset_save_CFLAGS" 15915fi 15916 15917found="no" 15918 15919 if test $found = "no" ; then 15920 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15921 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15922 fi 15923 15924 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15925 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15926 fi 15927 15928 CFLAGS="$CFLAGS -Werror=main" 15929 15930 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5 15931printf %s "checking if $CC supports -Werror=main... " >&6; } 15932 cacheid=xorg_cv_cc_flag__Werror_main 15933 if eval test \${$cacheid+y} 15934then : 15935 printf %s "(cached) " >&6 15936else $as_nop 15937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15938/* end confdefs.h. */ 15939int i; 15940int 15941main (void) 15942{ 15943 15944 ; 15945 return 0; 15946} 15947_ACEOF 15948if ac_fn_c_try_link "$LINENO" 15949then : 15950 eval $cacheid=yes 15951else $as_nop 15952 eval $cacheid=no 15953fi 15954rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15955 conftest$ac_exeext conftest.$ac_ext 15956fi 15957 15958 15959 CFLAGS="$xorg_testset_save_CFLAGS" 15960 15961 eval supported=\$$cacheid 15962 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15963printf "%s\n" "$supported" >&6; } 15964 if test "$supported" = "yes" ; then 15965 BASE_CFLAGS="$BASE_CFLAGS -Werror=main" 15966 found="yes" 15967 fi 15968 fi 15969 15970 15971 15972 15973 15974 15975 15976 15977 15978 15979 15980 15981 15982 15983 15984xorg_testset_save_CFLAGS="$CFLAGS" 15985 15986if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15987 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15988 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15989printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15990if test ${xorg_cv_cc_flag_unknown_warning_option+y} 15991then : 15992 printf %s "(cached) " >&6 15993else $as_nop 15994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15995/* end confdefs.h. */ 15996int i; 15997_ACEOF 15998if ac_fn_c_try_compile "$LINENO" 15999then : 16000 xorg_cv_cc_flag_unknown_warning_option=yes 16001else $as_nop 16002 xorg_cv_cc_flag_unknown_warning_option=no 16003fi 16004rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16005fi 16006{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16007printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16008 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16009 CFLAGS="$xorg_testset_save_CFLAGS" 16010fi 16011 16012if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16013 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16014 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16015 fi 16016 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16017 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16018printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16019if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 16020then : 16021 printf %s "(cached) " >&6 16022else $as_nop 16023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16024/* end confdefs.h. */ 16025int i; 16026_ACEOF 16027if ac_fn_c_try_compile "$LINENO" 16028then : 16029 xorg_cv_cc_flag_unused_command_line_argument=yes 16030else $as_nop 16031 xorg_cv_cc_flag_unused_command_line_argument=no 16032fi 16033rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16034fi 16035{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16036printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16037 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16038 CFLAGS="$xorg_testset_save_CFLAGS" 16039fi 16040 16041found="no" 16042 16043 if test $found = "no" ; then 16044 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16045 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16046 fi 16047 16048 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16049 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16050 fi 16051 16052 CFLAGS="$CFLAGS -Werror=missing-braces" 16053 16054 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5 16055printf %s "checking if $CC supports -Werror=missing-braces... " >&6; } 16056 cacheid=xorg_cv_cc_flag__Werror_missing_braces 16057 if eval test \${$cacheid+y} 16058then : 16059 printf %s "(cached) " >&6 16060else $as_nop 16061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16062/* end confdefs.h. */ 16063int i; 16064int 16065main (void) 16066{ 16067 16068 ; 16069 return 0; 16070} 16071_ACEOF 16072if ac_fn_c_try_link "$LINENO" 16073then : 16074 eval $cacheid=yes 16075else $as_nop 16076 eval $cacheid=no 16077fi 16078rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16079 conftest$ac_exeext conftest.$ac_ext 16080fi 16081 16082 16083 CFLAGS="$xorg_testset_save_CFLAGS" 16084 16085 eval supported=\$$cacheid 16086 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16087printf "%s\n" "$supported" >&6; } 16088 if test "$supported" = "yes" ; then 16089 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces" 16090 found="yes" 16091 fi 16092 fi 16093 16094 16095 16096 16097 16098 16099 16100 16101 16102 16103 16104 16105 16106 16107 16108xorg_testset_save_CFLAGS="$CFLAGS" 16109 16110if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16111 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16112 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16113printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16114if test ${xorg_cv_cc_flag_unknown_warning_option+y} 16115then : 16116 printf %s "(cached) " >&6 16117else $as_nop 16118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16119/* end confdefs.h. */ 16120int i; 16121_ACEOF 16122if ac_fn_c_try_compile "$LINENO" 16123then : 16124 xorg_cv_cc_flag_unknown_warning_option=yes 16125else $as_nop 16126 xorg_cv_cc_flag_unknown_warning_option=no 16127fi 16128rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16129fi 16130{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16131printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16132 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16133 CFLAGS="$xorg_testset_save_CFLAGS" 16134fi 16135 16136if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16137 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16138 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16139 fi 16140 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16141 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16142printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16143if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 16144then : 16145 printf %s "(cached) " >&6 16146else $as_nop 16147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16148/* end confdefs.h. */ 16149int i; 16150_ACEOF 16151if ac_fn_c_try_compile "$LINENO" 16152then : 16153 xorg_cv_cc_flag_unused_command_line_argument=yes 16154else $as_nop 16155 xorg_cv_cc_flag_unused_command_line_argument=no 16156fi 16157rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16158fi 16159{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16160printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16161 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16162 CFLAGS="$xorg_testset_save_CFLAGS" 16163fi 16164 16165found="no" 16166 16167 if test $found = "no" ; then 16168 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16169 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16170 fi 16171 16172 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16173 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16174 fi 16175 16176 CFLAGS="$CFLAGS -Werror=sequence-point" 16177 16178 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5 16179printf %s "checking if $CC supports -Werror=sequence-point... " >&6; } 16180 cacheid=xorg_cv_cc_flag__Werror_sequence_point 16181 if eval test \${$cacheid+y} 16182then : 16183 printf %s "(cached) " >&6 16184else $as_nop 16185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16186/* end confdefs.h. */ 16187int i; 16188int 16189main (void) 16190{ 16191 16192 ; 16193 return 0; 16194} 16195_ACEOF 16196if ac_fn_c_try_link "$LINENO" 16197then : 16198 eval $cacheid=yes 16199else $as_nop 16200 eval $cacheid=no 16201fi 16202rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16203 conftest$ac_exeext conftest.$ac_ext 16204fi 16205 16206 16207 CFLAGS="$xorg_testset_save_CFLAGS" 16208 16209 eval supported=\$$cacheid 16210 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16211printf "%s\n" "$supported" >&6; } 16212 if test "$supported" = "yes" ; then 16213 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point" 16214 found="yes" 16215 fi 16216 fi 16217 16218 16219 16220 16221 16222 16223 16224 16225 16226 16227 16228 16229 16230 16231 16232xorg_testset_save_CFLAGS="$CFLAGS" 16233 16234if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16235 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16236 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16237printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16238if test ${xorg_cv_cc_flag_unknown_warning_option+y} 16239then : 16240 printf %s "(cached) " >&6 16241else $as_nop 16242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16243/* end confdefs.h. */ 16244int i; 16245_ACEOF 16246if ac_fn_c_try_compile "$LINENO" 16247then : 16248 xorg_cv_cc_flag_unknown_warning_option=yes 16249else $as_nop 16250 xorg_cv_cc_flag_unknown_warning_option=no 16251fi 16252rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16253fi 16254{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16255printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16256 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16257 CFLAGS="$xorg_testset_save_CFLAGS" 16258fi 16259 16260if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16261 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16262 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16263 fi 16264 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16265 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16266printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16267if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 16268then : 16269 printf %s "(cached) " >&6 16270else $as_nop 16271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16272/* end confdefs.h. */ 16273int i; 16274_ACEOF 16275if ac_fn_c_try_compile "$LINENO" 16276then : 16277 xorg_cv_cc_flag_unused_command_line_argument=yes 16278else $as_nop 16279 xorg_cv_cc_flag_unused_command_line_argument=no 16280fi 16281rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16282fi 16283{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16284printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16285 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16286 CFLAGS="$xorg_testset_save_CFLAGS" 16287fi 16288 16289found="no" 16290 16291 if test $found = "no" ; then 16292 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16293 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16294 fi 16295 16296 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16297 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16298 fi 16299 16300 CFLAGS="$CFLAGS -Werror=return-type" 16301 16302 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5 16303printf %s "checking if $CC supports -Werror=return-type... " >&6; } 16304 cacheid=xorg_cv_cc_flag__Werror_return_type 16305 if eval test \${$cacheid+y} 16306then : 16307 printf %s "(cached) " >&6 16308else $as_nop 16309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16310/* end confdefs.h. */ 16311int i; 16312int 16313main (void) 16314{ 16315 16316 ; 16317 return 0; 16318} 16319_ACEOF 16320if ac_fn_c_try_link "$LINENO" 16321then : 16322 eval $cacheid=yes 16323else $as_nop 16324 eval $cacheid=no 16325fi 16326rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16327 conftest$ac_exeext conftest.$ac_ext 16328fi 16329 16330 16331 CFLAGS="$xorg_testset_save_CFLAGS" 16332 16333 eval supported=\$$cacheid 16334 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16335printf "%s\n" "$supported" >&6; } 16336 if test "$supported" = "yes" ; then 16337 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type" 16338 found="yes" 16339 fi 16340 fi 16341 16342 if test $found = "no" ; then 16343 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16344 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16345 fi 16346 16347 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16348 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16349 fi 16350 16351 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 16352 16353 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5 16354printf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; } 16355 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT 16356 if eval test \${$cacheid+y} 16357then : 16358 printf %s "(cached) " >&6 16359else $as_nop 16360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16361/* end confdefs.h. */ 16362int i; 16363int 16364main (void) 16365{ 16366 16367 ; 16368 return 0; 16369} 16370_ACEOF 16371if ac_fn_c_try_link "$LINENO" 16372then : 16373 eval $cacheid=yes 16374else $as_nop 16375 eval $cacheid=no 16376fi 16377rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16378 conftest$ac_exeext conftest.$ac_ext 16379fi 16380 16381 16382 CFLAGS="$xorg_testset_save_CFLAGS" 16383 16384 eval supported=\$$cacheid 16385 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16386printf "%s\n" "$supported" >&6; } 16387 if test "$supported" = "yes" ; then 16388 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 16389 found="yes" 16390 fi 16391 fi 16392 16393 16394 16395 16396 16397 16398 16399 16400 16401 16402 16403 16404 16405 16406 16407xorg_testset_save_CFLAGS="$CFLAGS" 16408 16409if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16410 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16411 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16412printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16413if test ${xorg_cv_cc_flag_unknown_warning_option+y} 16414then : 16415 printf %s "(cached) " >&6 16416else $as_nop 16417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16418/* end confdefs.h. */ 16419int i; 16420_ACEOF 16421if ac_fn_c_try_compile "$LINENO" 16422then : 16423 xorg_cv_cc_flag_unknown_warning_option=yes 16424else $as_nop 16425 xorg_cv_cc_flag_unknown_warning_option=no 16426fi 16427rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16428fi 16429{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16430printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16431 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16432 CFLAGS="$xorg_testset_save_CFLAGS" 16433fi 16434 16435if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16436 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16437 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16438 fi 16439 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16440 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16441printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16442if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 16443then : 16444 printf %s "(cached) " >&6 16445else $as_nop 16446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16447/* end confdefs.h. */ 16448int i; 16449_ACEOF 16450if ac_fn_c_try_compile "$LINENO" 16451then : 16452 xorg_cv_cc_flag_unused_command_line_argument=yes 16453else $as_nop 16454 xorg_cv_cc_flag_unused_command_line_argument=no 16455fi 16456rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16457fi 16458{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16459printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16460 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16461 CFLAGS="$xorg_testset_save_CFLAGS" 16462fi 16463 16464found="no" 16465 16466 if test $found = "no" ; then 16467 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16468 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16469 fi 16470 16471 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16472 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16473 fi 16474 16475 CFLAGS="$CFLAGS -Werror=trigraphs" 16476 16477 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5 16478printf %s "checking if $CC supports -Werror=trigraphs... " >&6; } 16479 cacheid=xorg_cv_cc_flag__Werror_trigraphs 16480 if eval test \${$cacheid+y} 16481then : 16482 printf %s "(cached) " >&6 16483else $as_nop 16484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16485/* end confdefs.h. */ 16486int i; 16487int 16488main (void) 16489{ 16490 16491 ; 16492 return 0; 16493} 16494_ACEOF 16495if ac_fn_c_try_link "$LINENO" 16496then : 16497 eval $cacheid=yes 16498else $as_nop 16499 eval $cacheid=no 16500fi 16501rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16502 conftest$ac_exeext conftest.$ac_ext 16503fi 16504 16505 16506 CFLAGS="$xorg_testset_save_CFLAGS" 16507 16508 eval supported=\$$cacheid 16509 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16510printf "%s\n" "$supported" >&6; } 16511 if test "$supported" = "yes" ; then 16512 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs" 16513 found="yes" 16514 fi 16515 fi 16516 16517 16518 16519 16520 16521 16522 16523 16524 16525 16526 16527 16528 16529 16530 16531xorg_testset_save_CFLAGS="$CFLAGS" 16532 16533if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16534 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16535 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16536printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16537if test ${xorg_cv_cc_flag_unknown_warning_option+y} 16538then : 16539 printf %s "(cached) " >&6 16540else $as_nop 16541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16542/* end confdefs.h. */ 16543int i; 16544_ACEOF 16545if ac_fn_c_try_compile "$LINENO" 16546then : 16547 xorg_cv_cc_flag_unknown_warning_option=yes 16548else $as_nop 16549 xorg_cv_cc_flag_unknown_warning_option=no 16550fi 16551rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16552fi 16553{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16554printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16555 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16556 CFLAGS="$xorg_testset_save_CFLAGS" 16557fi 16558 16559if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16560 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16561 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16562 fi 16563 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16564 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16565printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16566if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 16567then : 16568 printf %s "(cached) " >&6 16569else $as_nop 16570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16571/* end confdefs.h. */ 16572int i; 16573_ACEOF 16574if ac_fn_c_try_compile "$LINENO" 16575then : 16576 xorg_cv_cc_flag_unused_command_line_argument=yes 16577else $as_nop 16578 xorg_cv_cc_flag_unused_command_line_argument=no 16579fi 16580rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16581fi 16582{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16583printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16584 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16585 CFLAGS="$xorg_testset_save_CFLAGS" 16586fi 16587 16588found="no" 16589 16590 if test $found = "no" ; then 16591 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16592 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16593 fi 16594 16595 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16596 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16597 fi 16598 16599 CFLAGS="$CFLAGS -Werror=array-bounds" 16600 16601 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5 16602printf %s "checking if $CC supports -Werror=array-bounds... " >&6; } 16603 cacheid=xorg_cv_cc_flag__Werror_array_bounds 16604 if eval test \${$cacheid+y} 16605then : 16606 printf %s "(cached) " >&6 16607else $as_nop 16608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16609/* end confdefs.h. */ 16610int i; 16611int 16612main (void) 16613{ 16614 16615 ; 16616 return 0; 16617} 16618_ACEOF 16619if ac_fn_c_try_link "$LINENO" 16620then : 16621 eval $cacheid=yes 16622else $as_nop 16623 eval $cacheid=no 16624fi 16625rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16626 conftest$ac_exeext conftest.$ac_ext 16627fi 16628 16629 16630 CFLAGS="$xorg_testset_save_CFLAGS" 16631 16632 eval supported=\$$cacheid 16633 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16634printf "%s\n" "$supported" >&6; } 16635 if test "$supported" = "yes" ; then 16636 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds" 16637 found="yes" 16638 fi 16639 fi 16640 16641 16642 16643 16644 16645 16646 16647 16648 16649 16650 16651 16652 16653 16654 16655xorg_testset_save_CFLAGS="$CFLAGS" 16656 16657if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16658 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16659 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16660printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16661if test ${xorg_cv_cc_flag_unknown_warning_option+y} 16662then : 16663 printf %s "(cached) " >&6 16664else $as_nop 16665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16666/* end confdefs.h. */ 16667int i; 16668_ACEOF 16669if ac_fn_c_try_compile "$LINENO" 16670then : 16671 xorg_cv_cc_flag_unknown_warning_option=yes 16672else $as_nop 16673 xorg_cv_cc_flag_unknown_warning_option=no 16674fi 16675rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16676fi 16677{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16678printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16679 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16680 CFLAGS="$xorg_testset_save_CFLAGS" 16681fi 16682 16683if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16684 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16685 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16686 fi 16687 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16688 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16689printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16690if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 16691then : 16692 printf %s "(cached) " >&6 16693else $as_nop 16694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16695/* end confdefs.h. */ 16696int i; 16697_ACEOF 16698if ac_fn_c_try_compile "$LINENO" 16699then : 16700 xorg_cv_cc_flag_unused_command_line_argument=yes 16701else $as_nop 16702 xorg_cv_cc_flag_unused_command_line_argument=no 16703fi 16704rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16705fi 16706{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16707printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16708 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16709 CFLAGS="$xorg_testset_save_CFLAGS" 16710fi 16711 16712found="no" 16713 16714 if test $found = "no" ; then 16715 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16716 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16717 fi 16718 16719 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16720 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16721 fi 16722 16723 CFLAGS="$CFLAGS -Werror=write-strings" 16724 16725 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5 16726printf %s "checking if $CC supports -Werror=write-strings... " >&6; } 16727 cacheid=xorg_cv_cc_flag__Werror_write_strings 16728 if eval test \${$cacheid+y} 16729then : 16730 printf %s "(cached) " >&6 16731else $as_nop 16732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16733/* end confdefs.h. */ 16734int i; 16735int 16736main (void) 16737{ 16738 16739 ; 16740 return 0; 16741} 16742_ACEOF 16743if ac_fn_c_try_link "$LINENO" 16744then : 16745 eval $cacheid=yes 16746else $as_nop 16747 eval $cacheid=no 16748fi 16749rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16750 conftest$ac_exeext conftest.$ac_ext 16751fi 16752 16753 16754 CFLAGS="$xorg_testset_save_CFLAGS" 16755 16756 eval supported=\$$cacheid 16757 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16758printf "%s\n" "$supported" >&6; } 16759 if test "$supported" = "yes" ; then 16760 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings" 16761 found="yes" 16762 fi 16763 fi 16764 16765 16766 16767 16768 16769 16770 16771 16772 16773 16774 16775 16776 16777 16778 16779xorg_testset_save_CFLAGS="$CFLAGS" 16780 16781if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16782 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16783 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16784printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16785if test ${xorg_cv_cc_flag_unknown_warning_option+y} 16786then : 16787 printf %s "(cached) " >&6 16788else $as_nop 16789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16790/* end confdefs.h. */ 16791int i; 16792_ACEOF 16793if ac_fn_c_try_compile "$LINENO" 16794then : 16795 xorg_cv_cc_flag_unknown_warning_option=yes 16796else $as_nop 16797 xorg_cv_cc_flag_unknown_warning_option=no 16798fi 16799rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16800fi 16801{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16802printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16803 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16804 CFLAGS="$xorg_testset_save_CFLAGS" 16805fi 16806 16807if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16808 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16809 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16810 fi 16811 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16812 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16813printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16814if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 16815then : 16816 printf %s "(cached) " >&6 16817else $as_nop 16818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16819/* end confdefs.h. */ 16820int i; 16821_ACEOF 16822if ac_fn_c_try_compile "$LINENO" 16823then : 16824 xorg_cv_cc_flag_unused_command_line_argument=yes 16825else $as_nop 16826 xorg_cv_cc_flag_unused_command_line_argument=no 16827fi 16828rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16829fi 16830{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16831printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16832 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16833 CFLAGS="$xorg_testset_save_CFLAGS" 16834fi 16835 16836found="no" 16837 16838 if test $found = "no" ; then 16839 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16840 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16841 fi 16842 16843 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16844 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16845 fi 16846 16847 CFLAGS="$CFLAGS -Werror=address" 16848 16849 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5 16850printf %s "checking if $CC supports -Werror=address... " >&6; } 16851 cacheid=xorg_cv_cc_flag__Werror_address 16852 if eval test \${$cacheid+y} 16853then : 16854 printf %s "(cached) " >&6 16855else $as_nop 16856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16857/* end confdefs.h. */ 16858int i; 16859int 16860main (void) 16861{ 16862 16863 ; 16864 return 0; 16865} 16866_ACEOF 16867if ac_fn_c_try_link "$LINENO" 16868then : 16869 eval $cacheid=yes 16870else $as_nop 16871 eval $cacheid=no 16872fi 16873rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16874 conftest$ac_exeext conftest.$ac_ext 16875fi 16876 16877 16878 CFLAGS="$xorg_testset_save_CFLAGS" 16879 16880 eval supported=\$$cacheid 16881 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16882printf "%s\n" "$supported" >&6; } 16883 if test "$supported" = "yes" ; then 16884 BASE_CFLAGS="$BASE_CFLAGS -Werror=address" 16885 found="yes" 16886 fi 16887 fi 16888 16889 16890 16891 16892 16893 16894 16895 16896 16897 16898 16899 16900 16901 16902 16903xorg_testset_save_CFLAGS="$CFLAGS" 16904 16905if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16906 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16907 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16908printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16909if test ${xorg_cv_cc_flag_unknown_warning_option+y} 16910then : 16911 printf %s "(cached) " >&6 16912else $as_nop 16913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16914/* end confdefs.h. */ 16915int i; 16916_ACEOF 16917if ac_fn_c_try_compile "$LINENO" 16918then : 16919 xorg_cv_cc_flag_unknown_warning_option=yes 16920else $as_nop 16921 xorg_cv_cc_flag_unknown_warning_option=no 16922fi 16923rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16924fi 16925{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16926printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16927 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16928 CFLAGS="$xorg_testset_save_CFLAGS" 16929fi 16930 16931if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16932 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16933 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16934 fi 16935 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16936 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16937printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16938if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 16939then : 16940 printf %s "(cached) " >&6 16941else $as_nop 16942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16943/* end confdefs.h. */ 16944int i; 16945_ACEOF 16946if ac_fn_c_try_compile "$LINENO" 16947then : 16948 xorg_cv_cc_flag_unused_command_line_argument=yes 16949else $as_nop 16950 xorg_cv_cc_flag_unused_command_line_argument=no 16951fi 16952rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16953fi 16954{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16955printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16956 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16957 CFLAGS="$xorg_testset_save_CFLAGS" 16958fi 16959 16960found="no" 16961 16962 if test $found = "no" ; then 16963 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16964 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16965 fi 16966 16967 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16968 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16969 fi 16970 16971 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast" 16972 16973 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5 16974printf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; } 16975 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast 16976 if eval test \${$cacheid+y} 16977then : 16978 printf %s "(cached) " >&6 16979else $as_nop 16980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16981/* end confdefs.h. */ 16982int i; 16983int 16984main (void) 16985{ 16986 16987 ; 16988 return 0; 16989} 16990_ACEOF 16991if ac_fn_c_try_link "$LINENO" 16992then : 16993 eval $cacheid=yes 16994else $as_nop 16995 eval $cacheid=no 16996fi 16997rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16998 conftest$ac_exeext conftest.$ac_ext 16999fi 17000 17001 17002 CFLAGS="$xorg_testset_save_CFLAGS" 17003 17004 eval supported=\$$cacheid 17005 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17006printf "%s\n" "$supported" >&6; } 17007 if test "$supported" = "yes" ; then 17008 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast" 17009 found="yes" 17010 fi 17011 fi 17012 17013 if test $found = "no" ; then 17014 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17015 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17016 fi 17017 17018 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17019 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17020 fi 17021 17022 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 17023 17024 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5 17025printf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; } 17026 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION 17027 if eval test \${$cacheid+y} 17028then : 17029 printf %s "(cached) " >&6 17030else $as_nop 17031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17032/* end confdefs.h. */ 17033int i; 17034int 17035main (void) 17036{ 17037 17038 ; 17039 return 0; 17040} 17041_ACEOF 17042if ac_fn_c_try_link "$LINENO" 17043then : 17044 eval $cacheid=yes 17045else $as_nop 17046 eval $cacheid=no 17047fi 17048rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17049 conftest$ac_exeext conftest.$ac_ext 17050fi 17051 17052 17053 CFLAGS="$xorg_testset_save_CFLAGS" 17054 17055 eval supported=\$$cacheid 17056 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17057printf "%s\n" "$supported" >&6; } 17058 if test "$supported" = "yes" ; then 17059 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 17060 found="yes" 17061 fi 17062 fi 17063 17064 17065 17066 17067 17068 17069 17070 17071 17072 17073 17074 17075 17076 17077 17078xorg_testset_save_CFLAGS="$CFLAGS" 17079 17080if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17081 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17082 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17083printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17084if test ${xorg_cv_cc_flag_unknown_warning_option+y} 17085then : 17086 printf %s "(cached) " >&6 17087else $as_nop 17088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17089/* end confdefs.h. */ 17090int i; 17091_ACEOF 17092if ac_fn_c_try_compile "$LINENO" 17093then : 17094 xorg_cv_cc_flag_unknown_warning_option=yes 17095else $as_nop 17096 xorg_cv_cc_flag_unknown_warning_option=no 17097fi 17098rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17099fi 17100{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17101printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17102 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17103 CFLAGS="$xorg_testset_save_CFLAGS" 17104fi 17105 17106if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17107 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17108 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17109 fi 17110 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17111 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17112printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17113if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 17114then : 17115 printf %s "(cached) " >&6 17116else $as_nop 17117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17118/* end confdefs.h. */ 17119int i; 17120_ACEOF 17121if ac_fn_c_try_compile "$LINENO" 17122then : 17123 xorg_cv_cc_flag_unused_command_line_argument=yes 17124else $as_nop 17125 xorg_cv_cc_flag_unused_command_line_argument=no 17126fi 17127rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17128fi 17129{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17130printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17131 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17132 CFLAGS="$xorg_testset_save_CFLAGS" 17133fi 17134 17135found="no" 17136 17137 if test $found = "no" ; then 17138 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17139 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17140 fi 17141 17142 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17143 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17144 fi 17145 17146 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast" 17147 17148 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5 17149printf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; } 17150 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast 17151 if eval test \${$cacheid+y} 17152then : 17153 printf %s "(cached) " >&6 17154else $as_nop 17155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17156/* end confdefs.h. */ 17157int i; 17158int 17159main (void) 17160{ 17161 17162 ; 17163 return 0; 17164} 17165_ACEOF 17166if ac_fn_c_try_link "$LINENO" 17167then : 17168 eval $cacheid=yes 17169else $as_nop 17170 eval $cacheid=no 17171fi 17172rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17173 conftest$ac_exeext conftest.$ac_ext 17174fi 17175 17176 17177 CFLAGS="$xorg_testset_save_CFLAGS" 17178 17179 eval supported=\$$cacheid 17180 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17181printf "%s\n" "$supported" >&6; } 17182 if test "$supported" = "yes" ; then 17183 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast" 17184 found="yes" 17185 fi 17186 fi 17187 17188 # Also -errwarn=E_BAD_PTR_INT_COMBINATION 17189else 17190{ 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 17191printf "%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;} 17192 17193 17194 17195 17196 17197 17198 17199 17200 17201 17202 17203 17204 17205xorg_testset_save_CFLAGS="$CFLAGS" 17206 17207if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17208 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17209 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17210printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17211if test ${xorg_cv_cc_flag_unknown_warning_option+y} 17212then : 17213 printf %s "(cached) " >&6 17214else $as_nop 17215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17216/* end confdefs.h. */ 17217int i; 17218_ACEOF 17219if ac_fn_c_try_compile "$LINENO" 17220then : 17221 xorg_cv_cc_flag_unknown_warning_option=yes 17222else $as_nop 17223 xorg_cv_cc_flag_unknown_warning_option=no 17224fi 17225rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17226fi 17227{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17228printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17229 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17230 CFLAGS="$xorg_testset_save_CFLAGS" 17231fi 17232 17233if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17234 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17235 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17236 fi 17237 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17238 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17239printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17240if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 17241then : 17242 printf %s "(cached) " >&6 17243else $as_nop 17244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17245/* end confdefs.h. */ 17246int i; 17247_ACEOF 17248if ac_fn_c_try_compile "$LINENO" 17249then : 17250 xorg_cv_cc_flag_unused_command_line_argument=yes 17251else $as_nop 17252 xorg_cv_cc_flag_unused_command_line_argument=no 17253fi 17254rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17255fi 17256{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17257printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17258 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17259 CFLAGS="$xorg_testset_save_CFLAGS" 17260fi 17261 17262found="no" 17263 17264 if test $found = "no" ; then 17265 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17266 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17267 fi 17268 17269 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17270 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17271 fi 17272 17273 CFLAGS="$CFLAGS -Wimplicit" 17274 17275 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5 17276printf %s "checking if $CC supports -Wimplicit... " >&6; } 17277 cacheid=xorg_cv_cc_flag__Wimplicit 17278 if eval test \${$cacheid+y} 17279then : 17280 printf %s "(cached) " >&6 17281else $as_nop 17282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17283/* end confdefs.h. */ 17284int i; 17285int 17286main (void) 17287{ 17288 17289 ; 17290 return 0; 17291} 17292_ACEOF 17293if ac_fn_c_try_link "$LINENO" 17294then : 17295 eval $cacheid=yes 17296else $as_nop 17297 eval $cacheid=no 17298fi 17299rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17300 conftest$ac_exeext conftest.$ac_ext 17301fi 17302 17303 17304 CFLAGS="$xorg_testset_save_CFLAGS" 17305 17306 eval supported=\$$cacheid 17307 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17308printf "%s\n" "$supported" >&6; } 17309 if test "$supported" = "yes" ; then 17310 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit" 17311 found="yes" 17312 fi 17313 fi 17314 17315 17316 17317 17318 17319 17320 17321 17322 17323 17324 17325 17326 17327 17328 17329xorg_testset_save_CFLAGS="$CFLAGS" 17330 17331if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17332 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17333 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17334printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17335if test ${xorg_cv_cc_flag_unknown_warning_option+y} 17336then : 17337 printf %s "(cached) " >&6 17338else $as_nop 17339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17340/* end confdefs.h. */ 17341int i; 17342_ACEOF 17343if ac_fn_c_try_compile "$LINENO" 17344then : 17345 xorg_cv_cc_flag_unknown_warning_option=yes 17346else $as_nop 17347 xorg_cv_cc_flag_unknown_warning_option=no 17348fi 17349rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17350fi 17351{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17352printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17353 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17354 CFLAGS="$xorg_testset_save_CFLAGS" 17355fi 17356 17357if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17358 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17359 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17360 fi 17361 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17362 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17363printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17364if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 17365then : 17366 printf %s "(cached) " >&6 17367else $as_nop 17368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17369/* end confdefs.h. */ 17370int i; 17371_ACEOF 17372if ac_fn_c_try_compile "$LINENO" 17373then : 17374 xorg_cv_cc_flag_unused_command_line_argument=yes 17375else $as_nop 17376 xorg_cv_cc_flag_unused_command_line_argument=no 17377fi 17378rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17379fi 17380{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17381printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17382 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17383 CFLAGS="$xorg_testset_save_CFLAGS" 17384fi 17385 17386found="no" 17387 17388 if test $found = "no" ; then 17389 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17390 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17391 fi 17392 17393 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17394 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17395 fi 17396 17397 CFLAGS="$CFLAGS -Wnonnull" 17398 17399 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5 17400printf %s "checking if $CC supports -Wnonnull... " >&6; } 17401 cacheid=xorg_cv_cc_flag__Wnonnull 17402 if eval test \${$cacheid+y} 17403then : 17404 printf %s "(cached) " >&6 17405else $as_nop 17406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17407/* end confdefs.h. */ 17408int i; 17409int 17410main (void) 17411{ 17412 17413 ; 17414 return 0; 17415} 17416_ACEOF 17417if ac_fn_c_try_link "$LINENO" 17418then : 17419 eval $cacheid=yes 17420else $as_nop 17421 eval $cacheid=no 17422fi 17423rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17424 conftest$ac_exeext conftest.$ac_ext 17425fi 17426 17427 17428 CFLAGS="$xorg_testset_save_CFLAGS" 17429 17430 eval supported=\$$cacheid 17431 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17432printf "%s\n" "$supported" >&6; } 17433 if test "$supported" = "yes" ; then 17434 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull" 17435 found="yes" 17436 fi 17437 fi 17438 17439 17440 17441 17442 17443 17444 17445 17446 17447 17448 17449 17450 17451 17452 17453xorg_testset_save_CFLAGS="$CFLAGS" 17454 17455if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17456 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17457 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17458printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17459if test ${xorg_cv_cc_flag_unknown_warning_option+y} 17460then : 17461 printf %s "(cached) " >&6 17462else $as_nop 17463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17464/* end confdefs.h. */ 17465int i; 17466_ACEOF 17467if ac_fn_c_try_compile "$LINENO" 17468then : 17469 xorg_cv_cc_flag_unknown_warning_option=yes 17470else $as_nop 17471 xorg_cv_cc_flag_unknown_warning_option=no 17472fi 17473rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17474fi 17475{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17476printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17477 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17478 CFLAGS="$xorg_testset_save_CFLAGS" 17479fi 17480 17481if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17482 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17483 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17484 fi 17485 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17486 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17487printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17488if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 17489then : 17490 printf %s "(cached) " >&6 17491else $as_nop 17492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17493/* end confdefs.h. */ 17494int i; 17495_ACEOF 17496if ac_fn_c_try_compile "$LINENO" 17497then : 17498 xorg_cv_cc_flag_unused_command_line_argument=yes 17499else $as_nop 17500 xorg_cv_cc_flag_unused_command_line_argument=no 17501fi 17502rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17503fi 17504{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17505printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17506 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17507 CFLAGS="$xorg_testset_save_CFLAGS" 17508fi 17509 17510found="no" 17511 17512 if test $found = "no" ; then 17513 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17514 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17515 fi 17516 17517 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17518 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17519 fi 17520 17521 CFLAGS="$CFLAGS -Winit-self" 17522 17523 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5 17524printf %s "checking if $CC supports -Winit-self... " >&6; } 17525 cacheid=xorg_cv_cc_flag__Winit_self 17526 if eval test \${$cacheid+y} 17527then : 17528 printf %s "(cached) " >&6 17529else $as_nop 17530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17531/* end confdefs.h. */ 17532int i; 17533int 17534main (void) 17535{ 17536 17537 ; 17538 return 0; 17539} 17540_ACEOF 17541if ac_fn_c_try_link "$LINENO" 17542then : 17543 eval $cacheid=yes 17544else $as_nop 17545 eval $cacheid=no 17546fi 17547rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17548 conftest$ac_exeext conftest.$ac_ext 17549fi 17550 17551 17552 CFLAGS="$xorg_testset_save_CFLAGS" 17553 17554 eval supported=\$$cacheid 17555 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17556printf "%s\n" "$supported" >&6; } 17557 if test "$supported" = "yes" ; then 17558 BASE_CFLAGS="$BASE_CFLAGS -Winit-self" 17559 found="yes" 17560 fi 17561 fi 17562 17563 17564 17565 17566 17567 17568 17569 17570 17571 17572 17573 17574 17575 17576 17577xorg_testset_save_CFLAGS="$CFLAGS" 17578 17579if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17580 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17581 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17582printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17583if test ${xorg_cv_cc_flag_unknown_warning_option+y} 17584then : 17585 printf %s "(cached) " >&6 17586else $as_nop 17587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17588/* end confdefs.h. */ 17589int i; 17590_ACEOF 17591if ac_fn_c_try_compile "$LINENO" 17592then : 17593 xorg_cv_cc_flag_unknown_warning_option=yes 17594else $as_nop 17595 xorg_cv_cc_flag_unknown_warning_option=no 17596fi 17597rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17598fi 17599{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17600printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17601 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17602 CFLAGS="$xorg_testset_save_CFLAGS" 17603fi 17604 17605if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17606 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17607 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17608 fi 17609 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17610 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17611printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17612if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 17613then : 17614 printf %s "(cached) " >&6 17615else $as_nop 17616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17617/* end confdefs.h. */ 17618int i; 17619_ACEOF 17620if ac_fn_c_try_compile "$LINENO" 17621then : 17622 xorg_cv_cc_flag_unused_command_line_argument=yes 17623else $as_nop 17624 xorg_cv_cc_flag_unused_command_line_argument=no 17625fi 17626rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17627fi 17628{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17629printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17630 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17631 CFLAGS="$xorg_testset_save_CFLAGS" 17632fi 17633 17634found="no" 17635 17636 if test $found = "no" ; then 17637 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17638 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17639 fi 17640 17641 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17642 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17643 fi 17644 17645 CFLAGS="$CFLAGS -Wmain" 17646 17647 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5 17648printf %s "checking if $CC supports -Wmain... " >&6; } 17649 cacheid=xorg_cv_cc_flag__Wmain 17650 if eval test \${$cacheid+y} 17651then : 17652 printf %s "(cached) " >&6 17653else $as_nop 17654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17655/* end confdefs.h. */ 17656int i; 17657int 17658main (void) 17659{ 17660 17661 ; 17662 return 0; 17663} 17664_ACEOF 17665if ac_fn_c_try_link "$LINENO" 17666then : 17667 eval $cacheid=yes 17668else $as_nop 17669 eval $cacheid=no 17670fi 17671rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17672 conftest$ac_exeext conftest.$ac_ext 17673fi 17674 17675 17676 CFLAGS="$xorg_testset_save_CFLAGS" 17677 17678 eval supported=\$$cacheid 17679 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17680printf "%s\n" "$supported" >&6; } 17681 if test "$supported" = "yes" ; then 17682 BASE_CFLAGS="$BASE_CFLAGS -Wmain" 17683 found="yes" 17684 fi 17685 fi 17686 17687 17688 17689 17690 17691 17692 17693 17694 17695 17696 17697 17698 17699 17700 17701xorg_testset_save_CFLAGS="$CFLAGS" 17702 17703if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17704 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17705 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17706printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17707if test ${xorg_cv_cc_flag_unknown_warning_option+y} 17708then : 17709 printf %s "(cached) " >&6 17710else $as_nop 17711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17712/* end confdefs.h. */ 17713int i; 17714_ACEOF 17715if ac_fn_c_try_compile "$LINENO" 17716then : 17717 xorg_cv_cc_flag_unknown_warning_option=yes 17718else $as_nop 17719 xorg_cv_cc_flag_unknown_warning_option=no 17720fi 17721rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17722fi 17723{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17724printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17725 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17726 CFLAGS="$xorg_testset_save_CFLAGS" 17727fi 17728 17729if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17730 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17731 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17732 fi 17733 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17734 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17735printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17736if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 17737then : 17738 printf %s "(cached) " >&6 17739else $as_nop 17740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17741/* end confdefs.h. */ 17742int i; 17743_ACEOF 17744if ac_fn_c_try_compile "$LINENO" 17745then : 17746 xorg_cv_cc_flag_unused_command_line_argument=yes 17747else $as_nop 17748 xorg_cv_cc_flag_unused_command_line_argument=no 17749fi 17750rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17751fi 17752{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17753printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17754 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17755 CFLAGS="$xorg_testset_save_CFLAGS" 17756fi 17757 17758found="no" 17759 17760 if test $found = "no" ; then 17761 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17762 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17763 fi 17764 17765 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17766 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17767 fi 17768 17769 CFLAGS="$CFLAGS -Wmissing-braces" 17770 17771 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5 17772printf %s "checking if $CC supports -Wmissing-braces... " >&6; } 17773 cacheid=xorg_cv_cc_flag__Wmissing_braces 17774 if eval test \${$cacheid+y} 17775then : 17776 printf %s "(cached) " >&6 17777else $as_nop 17778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17779/* end confdefs.h. */ 17780int i; 17781int 17782main (void) 17783{ 17784 17785 ; 17786 return 0; 17787} 17788_ACEOF 17789if ac_fn_c_try_link "$LINENO" 17790then : 17791 eval $cacheid=yes 17792else $as_nop 17793 eval $cacheid=no 17794fi 17795rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17796 conftest$ac_exeext conftest.$ac_ext 17797fi 17798 17799 17800 CFLAGS="$xorg_testset_save_CFLAGS" 17801 17802 eval supported=\$$cacheid 17803 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17804printf "%s\n" "$supported" >&6; } 17805 if test "$supported" = "yes" ; then 17806 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces" 17807 found="yes" 17808 fi 17809 fi 17810 17811 17812 17813 17814 17815 17816 17817 17818 17819 17820 17821 17822 17823 17824 17825xorg_testset_save_CFLAGS="$CFLAGS" 17826 17827if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17828 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17829 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17830printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17831if test ${xorg_cv_cc_flag_unknown_warning_option+y} 17832then : 17833 printf %s "(cached) " >&6 17834else $as_nop 17835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17836/* end confdefs.h. */ 17837int i; 17838_ACEOF 17839if ac_fn_c_try_compile "$LINENO" 17840then : 17841 xorg_cv_cc_flag_unknown_warning_option=yes 17842else $as_nop 17843 xorg_cv_cc_flag_unknown_warning_option=no 17844fi 17845rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17846fi 17847{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17848printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17849 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17850 CFLAGS="$xorg_testset_save_CFLAGS" 17851fi 17852 17853if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17854 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17855 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17856 fi 17857 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17858 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17859printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17860if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 17861then : 17862 printf %s "(cached) " >&6 17863else $as_nop 17864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17865/* end confdefs.h. */ 17866int i; 17867_ACEOF 17868if ac_fn_c_try_compile "$LINENO" 17869then : 17870 xorg_cv_cc_flag_unused_command_line_argument=yes 17871else $as_nop 17872 xorg_cv_cc_flag_unused_command_line_argument=no 17873fi 17874rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17875fi 17876{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17877printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17878 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17879 CFLAGS="$xorg_testset_save_CFLAGS" 17880fi 17881 17882found="no" 17883 17884 if test $found = "no" ; then 17885 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17886 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17887 fi 17888 17889 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17890 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17891 fi 17892 17893 CFLAGS="$CFLAGS -Wsequence-point" 17894 17895 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5 17896printf %s "checking if $CC supports -Wsequence-point... " >&6; } 17897 cacheid=xorg_cv_cc_flag__Wsequence_point 17898 if eval test \${$cacheid+y} 17899then : 17900 printf %s "(cached) " >&6 17901else $as_nop 17902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17903/* end confdefs.h. */ 17904int i; 17905int 17906main (void) 17907{ 17908 17909 ; 17910 return 0; 17911} 17912_ACEOF 17913if ac_fn_c_try_link "$LINENO" 17914then : 17915 eval $cacheid=yes 17916else $as_nop 17917 eval $cacheid=no 17918fi 17919rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17920 conftest$ac_exeext conftest.$ac_ext 17921fi 17922 17923 17924 CFLAGS="$xorg_testset_save_CFLAGS" 17925 17926 eval supported=\$$cacheid 17927 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17928printf "%s\n" "$supported" >&6; } 17929 if test "$supported" = "yes" ; then 17930 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point" 17931 found="yes" 17932 fi 17933 fi 17934 17935 17936 17937 17938 17939 17940 17941 17942 17943 17944 17945 17946 17947 17948 17949xorg_testset_save_CFLAGS="$CFLAGS" 17950 17951if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17952 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17953 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17954printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17955if test ${xorg_cv_cc_flag_unknown_warning_option+y} 17956then : 17957 printf %s "(cached) " >&6 17958else $as_nop 17959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17960/* end confdefs.h. */ 17961int i; 17962_ACEOF 17963if ac_fn_c_try_compile "$LINENO" 17964then : 17965 xorg_cv_cc_flag_unknown_warning_option=yes 17966else $as_nop 17967 xorg_cv_cc_flag_unknown_warning_option=no 17968fi 17969rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17970fi 17971{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17972printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17973 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17974 CFLAGS="$xorg_testset_save_CFLAGS" 17975fi 17976 17977if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17978 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17979 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17980 fi 17981 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17982 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17983printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17984if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 17985then : 17986 printf %s "(cached) " >&6 17987else $as_nop 17988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17989/* end confdefs.h. */ 17990int i; 17991_ACEOF 17992if ac_fn_c_try_compile "$LINENO" 17993then : 17994 xorg_cv_cc_flag_unused_command_line_argument=yes 17995else $as_nop 17996 xorg_cv_cc_flag_unused_command_line_argument=no 17997fi 17998rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17999fi 18000{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18001printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18002 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18003 CFLAGS="$xorg_testset_save_CFLAGS" 18004fi 18005 18006found="no" 18007 18008 if test $found = "no" ; then 18009 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18010 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18011 fi 18012 18013 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18014 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18015 fi 18016 18017 CFLAGS="$CFLAGS -Wreturn-type" 18018 18019 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5 18020printf %s "checking if $CC supports -Wreturn-type... " >&6; } 18021 cacheid=xorg_cv_cc_flag__Wreturn_type 18022 if eval test \${$cacheid+y} 18023then : 18024 printf %s "(cached) " >&6 18025else $as_nop 18026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18027/* end confdefs.h. */ 18028int i; 18029int 18030main (void) 18031{ 18032 18033 ; 18034 return 0; 18035} 18036_ACEOF 18037if ac_fn_c_try_link "$LINENO" 18038then : 18039 eval $cacheid=yes 18040else $as_nop 18041 eval $cacheid=no 18042fi 18043rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18044 conftest$ac_exeext conftest.$ac_ext 18045fi 18046 18047 18048 CFLAGS="$xorg_testset_save_CFLAGS" 18049 18050 eval supported=\$$cacheid 18051 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18052printf "%s\n" "$supported" >&6; } 18053 if test "$supported" = "yes" ; then 18054 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type" 18055 found="yes" 18056 fi 18057 fi 18058 18059 18060 18061 18062 18063 18064 18065 18066 18067 18068 18069 18070 18071 18072 18073xorg_testset_save_CFLAGS="$CFLAGS" 18074 18075if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18076 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18077 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18078printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18079if test ${xorg_cv_cc_flag_unknown_warning_option+y} 18080then : 18081 printf %s "(cached) " >&6 18082else $as_nop 18083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18084/* end confdefs.h. */ 18085int i; 18086_ACEOF 18087if ac_fn_c_try_compile "$LINENO" 18088then : 18089 xorg_cv_cc_flag_unknown_warning_option=yes 18090else $as_nop 18091 xorg_cv_cc_flag_unknown_warning_option=no 18092fi 18093rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18094fi 18095{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18096printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18097 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18098 CFLAGS="$xorg_testset_save_CFLAGS" 18099fi 18100 18101if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18102 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18103 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18104 fi 18105 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18106 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18107printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18108if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 18109then : 18110 printf %s "(cached) " >&6 18111else $as_nop 18112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18113/* end confdefs.h. */ 18114int i; 18115_ACEOF 18116if ac_fn_c_try_compile "$LINENO" 18117then : 18118 xorg_cv_cc_flag_unused_command_line_argument=yes 18119else $as_nop 18120 xorg_cv_cc_flag_unused_command_line_argument=no 18121fi 18122rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18123fi 18124{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18125printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18126 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18127 CFLAGS="$xorg_testset_save_CFLAGS" 18128fi 18129 18130found="no" 18131 18132 if test $found = "no" ; then 18133 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18134 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18135 fi 18136 18137 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18138 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18139 fi 18140 18141 CFLAGS="$CFLAGS -Wtrigraphs" 18142 18143 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5 18144printf %s "checking if $CC supports -Wtrigraphs... " >&6; } 18145 cacheid=xorg_cv_cc_flag__Wtrigraphs 18146 if eval test \${$cacheid+y} 18147then : 18148 printf %s "(cached) " >&6 18149else $as_nop 18150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18151/* end confdefs.h. */ 18152int i; 18153int 18154main (void) 18155{ 18156 18157 ; 18158 return 0; 18159} 18160_ACEOF 18161if ac_fn_c_try_link "$LINENO" 18162then : 18163 eval $cacheid=yes 18164else $as_nop 18165 eval $cacheid=no 18166fi 18167rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18168 conftest$ac_exeext conftest.$ac_ext 18169fi 18170 18171 18172 CFLAGS="$xorg_testset_save_CFLAGS" 18173 18174 eval supported=\$$cacheid 18175 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18176printf "%s\n" "$supported" >&6; } 18177 if test "$supported" = "yes" ; then 18178 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs" 18179 found="yes" 18180 fi 18181 fi 18182 18183 18184 18185 18186 18187 18188 18189 18190 18191 18192 18193 18194 18195 18196 18197xorg_testset_save_CFLAGS="$CFLAGS" 18198 18199if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18200 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18201 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18202printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18203if test ${xorg_cv_cc_flag_unknown_warning_option+y} 18204then : 18205 printf %s "(cached) " >&6 18206else $as_nop 18207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18208/* end confdefs.h. */ 18209int i; 18210_ACEOF 18211if ac_fn_c_try_compile "$LINENO" 18212then : 18213 xorg_cv_cc_flag_unknown_warning_option=yes 18214else $as_nop 18215 xorg_cv_cc_flag_unknown_warning_option=no 18216fi 18217rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18218fi 18219{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18220printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18221 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18222 CFLAGS="$xorg_testset_save_CFLAGS" 18223fi 18224 18225if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18226 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18227 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18228 fi 18229 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18230 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18231printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18232if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 18233then : 18234 printf %s "(cached) " >&6 18235else $as_nop 18236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18237/* end confdefs.h. */ 18238int i; 18239_ACEOF 18240if ac_fn_c_try_compile "$LINENO" 18241then : 18242 xorg_cv_cc_flag_unused_command_line_argument=yes 18243else $as_nop 18244 xorg_cv_cc_flag_unused_command_line_argument=no 18245fi 18246rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18247fi 18248{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18249printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18250 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18251 CFLAGS="$xorg_testset_save_CFLAGS" 18252fi 18253 18254found="no" 18255 18256 if test $found = "no" ; then 18257 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18258 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18259 fi 18260 18261 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18262 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18263 fi 18264 18265 CFLAGS="$CFLAGS -Warray-bounds" 18266 18267 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5 18268printf %s "checking if $CC supports -Warray-bounds... " >&6; } 18269 cacheid=xorg_cv_cc_flag__Warray_bounds 18270 if eval test \${$cacheid+y} 18271then : 18272 printf %s "(cached) " >&6 18273else $as_nop 18274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18275/* end confdefs.h. */ 18276int i; 18277int 18278main (void) 18279{ 18280 18281 ; 18282 return 0; 18283} 18284_ACEOF 18285if ac_fn_c_try_link "$LINENO" 18286then : 18287 eval $cacheid=yes 18288else $as_nop 18289 eval $cacheid=no 18290fi 18291rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18292 conftest$ac_exeext conftest.$ac_ext 18293fi 18294 18295 18296 CFLAGS="$xorg_testset_save_CFLAGS" 18297 18298 eval supported=\$$cacheid 18299 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18300printf "%s\n" "$supported" >&6; } 18301 if test "$supported" = "yes" ; then 18302 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds" 18303 found="yes" 18304 fi 18305 fi 18306 18307 18308 18309 18310 18311 18312 18313 18314 18315 18316 18317 18318 18319 18320 18321xorg_testset_save_CFLAGS="$CFLAGS" 18322 18323if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18324 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18325 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18326printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18327if test ${xorg_cv_cc_flag_unknown_warning_option+y} 18328then : 18329 printf %s "(cached) " >&6 18330else $as_nop 18331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18332/* end confdefs.h. */ 18333int i; 18334_ACEOF 18335if ac_fn_c_try_compile "$LINENO" 18336then : 18337 xorg_cv_cc_flag_unknown_warning_option=yes 18338else $as_nop 18339 xorg_cv_cc_flag_unknown_warning_option=no 18340fi 18341rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18342fi 18343{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18344printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18345 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18346 CFLAGS="$xorg_testset_save_CFLAGS" 18347fi 18348 18349if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18350 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18351 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18352 fi 18353 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18354 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18355printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18356if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 18357then : 18358 printf %s "(cached) " >&6 18359else $as_nop 18360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18361/* end confdefs.h. */ 18362int i; 18363_ACEOF 18364if ac_fn_c_try_compile "$LINENO" 18365then : 18366 xorg_cv_cc_flag_unused_command_line_argument=yes 18367else $as_nop 18368 xorg_cv_cc_flag_unused_command_line_argument=no 18369fi 18370rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18371fi 18372{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18373printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18374 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18375 CFLAGS="$xorg_testset_save_CFLAGS" 18376fi 18377 18378found="no" 18379 18380 if test $found = "no" ; then 18381 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18382 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18383 fi 18384 18385 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18386 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18387 fi 18388 18389 CFLAGS="$CFLAGS -Wwrite-strings" 18390 18391 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5 18392printf %s "checking if $CC supports -Wwrite-strings... " >&6; } 18393 cacheid=xorg_cv_cc_flag__Wwrite_strings 18394 if eval test \${$cacheid+y} 18395then : 18396 printf %s "(cached) " >&6 18397else $as_nop 18398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18399/* end confdefs.h. */ 18400int i; 18401int 18402main (void) 18403{ 18404 18405 ; 18406 return 0; 18407} 18408_ACEOF 18409if ac_fn_c_try_link "$LINENO" 18410then : 18411 eval $cacheid=yes 18412else $as_nop 18413 eval $cacheid=no 18414fi 18415rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18416 conftest$ac_exeext conftest.$ac_ext 18417fi 18418 18419 18420 CFLAGS="$xorg_testset_save_CFLAGS" 18421 18422 eval supported=\$$cacheid 18423 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18424printf "%s\n" "$supported" >&6; } 18425 if test "$supported" = "yes" ; then 18426 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings" 18427 found="yes" 18428 fi 18429 fi 18430 18431 18432 18433 18434 18435 18436 18437 18438 18439 18440 18441 18442 18443 18444 18445xorg_testset_save_CFLAGS="$CFLAGS" 18446 18447if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18448 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18449 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18450printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18451if test ${xorg_cv_cc_flag_unknown_warning_option+y} 18452then : 18453 printf %s "(cached) " >&6 18454else $as_nop 18455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18456/* end confdefs.h. */ 18457int i; 18458_ACEOF 18459if ac_fn_c_try_compile "$LINENO" 18460then : 18461 xorg_cv_cc_flag_unknown_warning_option=yes 18462else $as_nop 18463 xorg_cv_cc_flag_unknown_warning_option=no 18464fi 18465rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18466fi 18467{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18468printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18469 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18470 CFLAGS="$xorg_testset_save_CFLAGS" 18471fi 18472 18473if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18474 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18475 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18476 fi 18477 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18478 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18479printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18480if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 18481then : 18482 printf %s "(cached) " >&6 18483else $as_nop 18484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18485/* end confdefs.h. */ 18486int i; 18487_ACEOF 18488if ac_fn_c_try_compile "$LINENO" 18489then : 18490 xorg_cv_cc_flag_unused_command_line_argument=yes 18491else $as_nop 18492 xorg_cv_cc_flag_unused_command_line_argument=no 18493fi 18494rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18495fi 18496{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18497printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18498 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18499 CFLAGS="$xorg_testset_save_CFLAGS" 18500fi 18501 18502found="no" 18503 18504 if test $found = "no" ; then 18505 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18506 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18507 fi 18508 18509 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18510 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18511 fi 18512 18513 CFLAGS="$CFLAGS -Waddress" 18514 18515 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5 18516printf %s "checking if $CC supports -Waddress... " >&6; } 18517 cacheid=xorg_cv_cc_flag__Waddress 18518 if eval test \${$cacheid+y} 18519then : 18520 printf %s "(cached) " >&6 18521else $as_nop 18522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18523/* end confdefs.h. */ 18524int i; 18525int 18526main (void) 18527{ 18528 18529 ; 18530 return 0; 18531} 18532_ACEOF 18533if ac_fn_c_try_link "$LINENO" 18534then : 18535 eval $cacheid=yes 18536else $as_nop 18537 eval $cacheid=no 18538fi 18539rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18540 conftest$ac_exeext conftest.$ac_ext 18541fi 18542 18543 18544 CFLAGS="$xorg_testset_save_CFLAGS" 18545 18546 eval supported=\$$cacheid 18547 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18548printf "%s\n" "$supported" >&6; } 18549 if test "$supported" = "yes" ; then 18550 BASE_CFLAGS="$BASE_CFLAGS -Waddress" 18551 found="yes" 18552 fi 18553 fi 18554 18555 18556 18557 18558 18559 18560 18561 18562 18563 18564 18565 18566 18567 18568 18569xorg_testset_save_CFLAGS="$CFLAGS" 18570 18571if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18572 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18573 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18574printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18575if test ${xorg_cv_cc_flag_unknown_warning_option+y} 18576then : 18577 printf %s "(cached) " >&6 18578else $as_nop 18579 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_unknown_warning_option=yes 18586else $as_nop 18587 xorg_cv_cc_flag_unknown_warning_option=no 18588fi 18589rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18590fi 18591{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18592printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18593 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18594 CFLAGS="$xorg_testset_save_CFLAGS" 18595fi 18596 18597if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18598 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18599 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18600 fi 18601 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18602 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18603printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18604if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 18605then : 18606 printf %s "(cached) " >&6 18607else $as_nop 18608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18609/* end confdefs.h. */ 18610int i; 18611_ACEOF 18612if ac_fn_c_try_compile "$LINENO" 18613then : 18614 xorg_cv_cc_flag_unused_command_line_argument=yes 18615else $as_nop 18616 xorg_cv_cc_flag_unused_command_line_argument=no 18617fi 18618rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18619fi 18620{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18621printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18622 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18623 CFLAGS="$xorg_testset_save_CFLAGS" 18624fi 18625 18626found="no" 18627 18628 if test $found = "no" ; then 18629 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18630 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18631 fi 18632 18633 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18634 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18635 fi 18636 18637 CFLAGS="$CFLAGS -Wint-to-pointer-cast" 18638 18639 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5 18640printf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; } 18641 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast 18642 if eval test \${$cacheid+y} 18643then : 18644 printf %s "(cached) " >&6 18645else $as_nop 18646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18647/* end confdefs.h. */ 18648int i; 18649int 18650main (void) 18651{ 18652 18653 ; 18654 return 0; 18655} 18656_ACEOF 18657if ac_fn_c_try_link "$LINENO" 18658then : 18659 eval $cacheid=yes 18660else $as_nop 18661 eval $cacheid=no 18662fi 18663rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18664 conftest$ac_exeext conftest.$ac_ext 18665fi 18666 18667 18668 CFLAGS="$xorg_testset_save_CFLAGS" 18669 18670 eval supported=\$$cacheid 18671 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18672printf "%s\n" "$supported" >&6; } 18673 if test "$supported" = "yes" ; then 18674 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast" 18675 found="yes" 18676 fi 18677 fi 18678 18679 18680 18681 18682 18683 18684 18685 18686 18687 18688 18689 18690 18691 18692 18693xorg_testset_save_CFLAGS="$CFLAGS" 18694 18695if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18696 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18697 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18698printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18699if test ${xorg_cv_cc_flag_unknown_warning_option+y} 18700then : 18701 printf %s "(cached) " >&6 18702else $as_nop 18703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18704/* end confdefs.h. */ 18705int i; 18706_ACEOF 18707if ac_fn_c_try_compile "$LINENO" 18708then : 18709 xorg_cv_cc_flag_unknown_warning_option=yes 18710else $as_nop 18711 xorg_cv_cc_flag_unknown_warning_option=no 18712fi 18713rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18714fi 18715{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18716printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18717 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18718 CFLAGS="$xorg_testset_save_CFLAGS" 18719fi 18720 18721if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18722 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18723 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18724 fi 18725 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18726 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18727printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18728if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 18729then : 18730 printf %s "(cached) " >&6 18731else $as_nop 18732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18733/* end confdefs.h. */ 18734int i; 18735_ACEOF 18736if ac_fn_c_try_compile "$LINENO" 18737then : 18738 xorg_cv_cc_flag_unused_command_line_argument=yes 18739else $as_nop 18740 xorg_cv_cc_flag_unused_command_line_argument=no 18741fi 18742rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18743fi 18744{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18745printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18746 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18747 CFLAGS="$xorg_testset_save_CFLAGS" 18748fi 18749 18750found="no" 18751 18752 if test $found = "no" ; then 18753 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18754 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18755 fi 18756 18757 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18758 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18759 fi 18760 18761 CFLAGS="$CFLAGS -Wpointer-to-int-cast" 18762 18763 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5 18764printf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; } 18765 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast 18766 if eval test \${$cacheid+y} 18767then : 18768 printf %s "(cached) " >&6 18769else $as_nop 18770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18771/* end confdefs.h. */ 18772int i; 18773int 18774main (void) 18775{ 18776 18777 ; 18778 return 0; 18779} 18780_ACEOF 18781if ac_fn_c_try_link "$LINENO" 18782then : 18783 eval $cacheid=yes 18784else $as_nop 18785 eval $cacheid=no 18786fi 18787rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18788 conftest$ac_exeext conftest.$ac_ext 18789fi 18790 18791 18792 CFLAGS="$xorg_testset_save_CFLAGS" 18793 18794 eval supported=\$$cacheid 18795 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18796printf "%s\n" "$supported" >&6; } 18797 if test "$supported" = "yes" ; then 18798 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast" 18799 found="yes" 18800 fi 18801 fi 18802 18803 18804fi 18805 18806 18807 18808 18809 18810 18811 18812 CWARNFLAGS="$BASE_CFLAGS" 18813 if test "x$GCC" = xyes ; then 18814 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing" 18815 fi 18816 18817 18818 18819 18820 18821 18822 18823 18824# Check whether --enable-strict-compilation was given. 18825if test ${enable_strict_compilation+y} 18826then : 18827 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 18828else $as_nop 18829 STRICT_COMPILE=no 18830fi 18831 18832 18833 18834 18835 18836 18837STRICT_CFLAGS="" 18838 18839 18840 18841 18842 18843 18844 18845 18846 18847 18848 18849 18850 18851xorg_testset_save_CFLAGS="$CFLAGS" 18852 18853if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18854 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18855 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18856printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18857if test ${xorg_cv_cc_flag_unknown_warning_option+y} 18858then : 18859 printf %s "(cached) " >&6 18860else $as_nop 18861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18862/* end confdefs.h. */ 18863int i; 18864_ACEOF 18865if ac_fn_c_try_compile "$LINENO" 18866then : 18867 xorg_cv_cc_flag_unknown_warning_option=yes 18868else $as_nop 18869 xorg_cv_cc_flag_unknown_warning_option=no 18870fi 18871rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18872fi 18873{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18874printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18875 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18876 CFLAGS="$xorg_testset_save_CFLAGS" 18877fi 18878 18879if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18880 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18881 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18882 fi 18883 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18884 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18885printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18886if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 18887then : 18888 printf %s "(cached) " >&6 18889else $as_nop 18890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18891/* end confdefs.h. */ 18892int i; 18893_ACEOF 18894if ac_fn_c_try_compile "$LINENO" 18895then : 18896 xorg_cv_cc_flag_unused_command_line_argument=yes 18897else $as_nop 18898 xorg_cv_cc_flag_unused_command_line_argument=no 18899fi 18900rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18901fi 18902{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18903printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18904 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18905 CFLAGS="$xorg_testset_save_CFLAGS" 18906fi 18907 18908found="no" 18909 18910 if test $found = "no" ; then 18911 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18912 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18913 fi 18914 18915 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18916 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18917 fi 18918 18919 CFLAGS="$CFLAGS -pedantic" 18920 18921 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5 18922printf %s "checking if $CC supports -pedantic... " >&6; } 18923 cacheid=xorg_cv_cc_flag__pedantic 18924 if eval test \${$cacheid+y} 18925then : 18926 printf %s "(cached) " >&6 18927else $as_nop 18928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18929/* end confdefs.h. */ 18930int i; 18931int 18932main (void) 18933{ 18934 18935 ; 18936 return 0; 18937} 18938_ACEOF 18939if ac_fn_c_try_link "$LINENO" 18940then : 18941 eval $cacheid=yes 18942else $as_nop 18943 eval $cacheid=no 18944fi 18945rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18946 conftest$ac_exeext conftest.$ac_ext 18947fi 18948 18949 18950 CFLAGS="$xorg_testset_save_CFLAGS" 18951 18952 eval supported=\$$cacheid 18953 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18954printf "%s\n" "$supported" >&6; } 18955 if test "$supported" = "yes" ; then 18956 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic" 18957 found="yes" 18958 fi 18959 fi 18960 18961 18962 18963 18964 18965 18966 18967 18968 18969 18970 18971 18972 18973 18974 18975xorg_testset_save_CFLAGS="$CFLAGS" 18976 18977if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18978 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18979 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18980printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18981if test ${xorg_cv_cc_flag_unknown_warning_option+y} 18982then : 18983 printf %s "(cached) " >&6 18984else $as_nop 18985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18986/* end confdefs.h. */ 18987int i; 18988_ACEOF 18989if ac_fn_c_try_compile "$LINENO" 18990then : 18991 xorg_cv_cc_flag_unknown_warning_option=yes 18992else $as_nop 18993 xorg_cv_cc_flag_unknown_warning_option=no 18994fi 18995rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18996fi 18997{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18998printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18999 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 19000 CFLAGS="$xorg_testset_save_CFLAGS" 19001fi 19002 19003if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 19004 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19005 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19006 fi 19007 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19008 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 19009printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 19010if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 19011then : 19012 printf %s "(cached) " >&6 19013else $as_nop 19014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19015/* end confdefs.h. */ 19016int i; 19017_ACEOF 19018if ac_fn_c_try_compile "$LINENO" 19019then : 19020 xorg_cv_cc_flag_unused_command_line_argument=yes 19021else $as_nop 19022 xorg_cv_cc_flag_unused_command_line_argument=no 19023fi 19024rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 19025fi 19026{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 19027printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 19028 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 19029 CFLAGS="$xorg_testset_save_CFLAGS" 19030fi 19031 19032found="no" 19033 19034 if test $found = "no" ; then 19035 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19036 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19037 fi 19038 19039 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 19040 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19041 fi 19042 19043 CFLAGS="$CFLAGS -Werror" 19044 19045 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5 19046printf %s "checking if $CC supports -Werror... " >&6; } 19047 cacheid=xorg_cv_cc_flag__Werror 19048 if eval test \${$cacheid+y} 19049then : 19050 printf %s "(cached) " >&6 19051else $as_nop 19052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19053/* end confdefs.h. */ 19054int i; 19055int 19056main (void) 19057{ 19058 19059 ; 19060 return 0; 19061} 19062_ACEOF 19063if ac_fn_c_try_link "$LINENO" 19064then : 19065 eval $cacheid=yes 19066else $as_nop 19067 eval $cacheid=no 19068fi 19069rm -f core conftest.err conftest.$ac_objext conftest.beam \ 19070 conftest$ac_exeext conftest.$ac_ext 19071fi 19072 19073 19074 CFLAGS="$xorg_testset_save_CFLAGS" 19075 19076 eval supported=\$$cacheid 19077 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 19078printf "%s\n" "$supported" >&6; } 19079 if test "$supported" = "yes" ; then 19080 STRICT_CFLAGS="$STRICT_CFLAGS -Werror" 19081 found="yes" 19082 fi 19083 fi 19084 19085 if test $found = "no" ; then 19086 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19087 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19088 fi 19089 19090 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 19091 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19092 fi 19093 19094 CFLAGS="$CFLAGS -errwarn" 19095 19096 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5 19097printf %s "checking if $CC supports -errwarn... " >&6; } 19098 cacheid=xorg_cv_cc_flag__errwarn 19099 if eval test \${$cacheid+y} 19100then : 19101 printf %s "(cached) " >&6 19102else $as_nop 19103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19104/* end confdefs.h. */ 19105int i; 19106int 19107main (void) 19108{ 19109 19110 ; 19111 return 0; 19112} 19113_ACEOF 19114if ac_fn_c_try_link "$LINENO" 19115then : 19116 eval $cacheid=yes 19117else $as_nop 19118 eval $cacheid=no 19119fi 19120rm -f core conftest.err conftest.$ac_objext conftest.beam \ 19121 conftest$ac_exeext conftest.$ac_ext 19122fi 19123 19124 19125 CFLAGS="$xorg_testset_save_CFLAGS" 19126 19127 eval supported=\$$cacheid 19128 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 19129printf "%s\n" "$supported" >&6; } 19130 if test "$supported" = "yes" ; then 19131 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn" 19132 found="yes" 19133 fi 19134 fi 19135 19136 19137 19138# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not 19139# activate it with -Werror, so we add it here explicitly. 19140 19141 19142 19143 19144 19145 19146 19147 19148 19149 19150 19151 19152 19153xorg_testset_save_CFLAGS="$CFLAGS" 19154 19155if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 19156 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19157 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 19158printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 19159if test ${xorg_cv_cc_flag_unknown_warning_option+y} 19160then : 19161 printf %s "(cached) " >&6 19162else $as_nop 19163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19164/* end confdefs.h. */ 19165int i; 19166_ACEOF 19167if ac_fn_c_try_compile "$LINENO" 19168then : 19169 xorg_cv_cc_flag_unknown_warning_option=yes 19170else $as_nop 19171 xorg_cv_cc_flag_unknown_warning_option=no 19172fi 19173rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 19174fi 19175{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 19176printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 19177 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 19178 CFLAGS="$xorg_testset_save_CFLAGS" 19179fi 19180 19181if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 19182 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19183 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19184 fi 19185 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19186 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 19187printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 19188if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 19189then : 19190 printf %s "(cached) " >&6 19191else $as_nop 19192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19193/* end confdefs.h. */ 19194int i; 19195_ACEOF 19196if ac_fn_c_try_compile "$LINENO" 19197then : 19198 xorg_cv_cc_flag_unused_command_line_argument=yes 19199else $as_nop 19200 xorg_cv_cc_flag_unused_command_line_argument=no 19201fi 19202rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 19203fi 19204{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 19205printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 19206 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 19207 CFLAGS="$xorg_testset_save_CFLAGS" 19208fi 19209 19210found="no" 19211 19212 if test $found = "no" ; then 19213 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19214 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19215 fi 19216 19217 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 19218 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19219 fi 19220 19221 CFLAGS="$CFLAGS -Werror=attributes" 19222 19223 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5 19224printf %s "checking if $CC supports -Werror=attributes... " >&6; } 19225 cacheid=xorg_cv_cc_flag__Werror_attributes 19226 if eval test \${$cacheid+y} 19227then : 19228 printf %s "(cached) " >&6 19229else $as_nop 19230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19231/* end confdefs.h. */ 19232int i; 19233int 19234main (void) 19235{ 19236 19237 ; 19238 return 0; 19239} 19240_ACEOF 19241if ac_fn_c_try_link "$LINENO" 19242then : 19243 eval $cacheid=yes 19244else $as_nop 19245 eval $cacheid=no 19246fi 19247rm -f core conftest.err conftest.$ac_objext conftest.beam \ 19248 conftest$ac_exeext conftest.$ac_ext 19249fi 19250 19251 19252 CFLAGS="$xorg_testset_save_CFLAGS" 19253 19254 eval supported=\$$cacheid 19255 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 19256printf "%s\n" "$supported" >&6; } 19257 if test "$supported" = "yes" ; then 19258 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes" 19259 found="yes" 19260 fi 19261 fi 19262 19263 19264 19265if test "x$STRICT_COMPILE" = "xyes"; then 19266 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS" 19267 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 19268fi 19269 19270 19271 19272 19273 19274 19275cat >>confdefs.h <<_ACEOF 19276#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 19277_ACEOF 19278 19279 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 19280 if test "x$PVM" = "x"; then 19281 PVM="0" 19282 fi 19283 19284printf "%s\n" "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h 19285 19286 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 19287 if test "x$PVP" = "x"; then 19288 PVP="0" 19289 fi 19290 19291printf "%s\n" "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h 19292 19293 19294 19295CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \ 19296mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 19297|| (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \ 19298touch \$(top_srcdir)/ChangeLog; \ 19299echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))" 19300 19301 19302 19303 19304macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros` 19305INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \ 19306mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \ 19307|| (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \ 19308touch \$(top_srcdir)/INSTALL; \ 19309echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))" 19310 19311 19312 19313 19314 19315 19316case $host_os in 19317 solaris*) 19318 # Solaris 2.0 - 11.3 use SysV man page section numbers, so we 19319 # check for a man page file found in later versions that use 19320 # traditional section numbers instead 19321 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5 19322printf %s "checking for /usr/share/man/man7/attributes.7... " >&6; } 19323if test ${ac_cv_file__usr_share_man_man7_attributes_7+y} 19324then : 19325 printf %s "(cached) " >&6 19326else $as_nop 19327 test "$cross_compiling" = yes && 19328 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 19329if test -r "/usr/share/man/man7/attributes.7"; then 19330 ac_cv_file__usr_share_man_man7_attributes_7=yes 19331else 19332 ac_cv_file__usr_share_man_man7_attributes_7=no 19333fi 19334fi 19335{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5 19336printf "%s\n" "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; } 19337if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes 19338then : 19339 SYSV_MAN_SECTIONS=false 19340else $as_nop 19341 SYSV_MAN_SECTIONS=true 19342fi 19343 19344 ;; 19345 *) SYSV_MAN_SECTIONS=false ;; 19346esac 19347 19348if test x$APP_MAN_SUFFIX = x ; then 19349 APP_MAN_SUFFIX=1 19350fi 19351if test x$APP_MAN_DIR = x ; then 19352 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 19353fi 19354 19355if test x$LIB_MAN_SUFFIX = x ; then 19356 LIB_MAN_SUFFIX=3 19357fi 19358if test x$LIB_MAN_DIR = x ; then 19359 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 19360fi 19361 19362if test x$FILE_MAN_SUFFIX = x ; then 19363 case $SYSV_MAN_SECTIONS in 19364 true) FILE_MAN_SUFFIX=4 ;; 19365 *) FILE_MAN_SUFFIX=5 ;; 19366 esac 19367fi 19368if test x$FILE_MAN_DIR = x ; then 19369 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 19370fi 19371 19372if test x$MISC_MAN_SUFFIX = x ; then 19373 case $SYSV_MAN_SECTIONS in 19374 true) MISC_MAN_SUFFIX=5 ;; 19375 *) MISC_MAN_SUFFIX=7 ;; 19376 esac 19377fi 19378if test x$MISC_MAN_DIR = x ; then 19379 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 19380fi 19381 19382if test x$DRIVER_MAN_SUFFIX = x ; then 19383 case $SYSV_MAN_SECTIONS in 19384 true) DRIVER_MAN_SUFFIX=7 ;; 19385 *) DRIVER_MAN_SUFFIX=4 ;; 19386 esac 19387fi 19388if test x$DRIVER_MAN_DIR = x ; then 19389 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 19390fi 19391 19392if test x$ADMIN_MAN_SUFFIX = x ; then 19393 case $SYSV_MAN_SECTIONS in 19394 true) ADMIN_MAN_SUFFIX=1m ;; 19395 *) ADMIN_MAN_SUFFIX=8 ;; 19396 esac 19397fi 19398if test x$ADMIN_MAN_DIR = x ; then 19399 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 19400fi 19401 19402 19403 19404 19405 19406 19407 19408 19409 19410 19411 19412 19413 19414 19415 19416XORG_MAN_PAGE="X Version 11" 19417 19418MAN_SUBSTS="\ 19419 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 19420 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 19421 -e 's|__xservername__|Xorg|g' \ 19422 -e 's|__xconfigfile__|xorg.conf|g' \ 19423 -e 's|__projectroot__|\$(prefix)|g' \ 19424 -e 's|__apploaddir__|\$(appdefaultdir)|g' \ 19425 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \ 19426 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \ 19427 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \ 19428 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \ 19429 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \ 19430 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'" 19431 19432 19433 19434# Check whether --enable-silent-rules was given. 19435if test ${enable_silent_rules+y} 19436then : 19437 enableval=$enable_silent_rules; 19438fi 19439 19440case $enable_silent_rules in # ((( 19441 yes) AM_DEFAULT_VERBOSITY=0;; 19442 no) AM_DEFAULT_VERBOSITY=1;; 19443 *) AM_DEFAULT_VERBOSITY=0;; 19444esac 19445am_make=${MAKE-make} 19446{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 19447printf %s "checking whether $am_make supports nested variables... " >&6; } 19448if test ${am_cv_make_support_nested_variables+y} 19449then : 19450 printf %s "(cached) " >&6 19451else $as_nop 19452 if printf "%s\n" 'TRUE=$(BAR$(V)) 19453BAR0=false 19454BAR1=true 19455V=1 19456am__doit: 19457 @$(TRUE) 19458.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 19459 am_cv_make_support_nested_variables=yes 19460else 19461 am_cv_make_support_nested_variables=no 19462fi 19463fi 19464{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 19465printf "%s\n" "$am_cv_make_support_nested_variables" >&6; } 19466if test $am_cv_make_support_nested_variables = yes; then 19467 AM_V='$(V)' 19468 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 19469else 19470 AM_V=$AM_DEFAULT_VERBOSITY 19471 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 19472fi 19473AM_BACKSLASH='\' 19474 19475 19476 19477 19478# Check whether --enable-devel-docs was given. 19479if test ${enable_devel_docs+y} 19480then : 19481 enableval=$enable_devel_docs; build_devel_docs=$enableval 19482else $as_nop 19483 build_devel_docs=yes 19484fi 19485 19486 19487 if test x$build_devel_docs = xyes; then 19488 ENABLE_DEVEL_DOCS_TRUE= 19489 ENABLE_DEVEL_DOCS_FALSE='#' 19490else 19491 ENABLE_DEVEL_DOCS_TRUE='#' 19492 ENABLE_DEVEL_DOCS_FALSE= 19493fi 19494 19495{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build developer documentation" >&5 19496printf %s "checking whether to build developer documentation... " >&6; } 19497{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $build_devel_docs" >&5 19498printf "%s\n" "$build_devel_docs" >&6; } 19499 19500 19501 19502 19503 19504# Check whether --with-xmlto was given. 19505if test ${with_xmlto+y} 19506then : 19507 withval=$with_xmlto; use_xmlto=$withval 19508else $as_nop 19509 use_xmlto=auto 19510fi 19511 19512 19513 19514if test "x$use_xmlto" = x"auto"; then 19515 # Extract the first word of "xmlto", so it can be a program name with args. 19516set dummy xmlto; ac_word=$2 19517{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19518printf %s "checking for $ac_word... " >&6; } 19519if test ${ac_cv_path_XMLTO+y} 19520then : 19521 printf %s "(cached) " >&6 19522else $as_nop 19523 case $XMLTO in 19524 [\\/]* | ?:[\\/]*) 19525 ac_cv_path_XMLTO="$XMLTO" # Let the user override the test with a path. 19526 ;; 19527 *) 19528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19529for as_dir in $PATH 19530do 19531 IFS=$as_save_IFS 19532 case $as_dir in #((( 19533 '') as_dir=./ ;; 19534 */) ;; 19535 *) as_dir=$as_dir/ ;; 19536 esac 19537 for ac_exec_ext in '' $ac_executable_extensions; do 19538 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 19539 ac_cv_path_XMLTO="$as_dir$ac_word$ac_exec_ext" 19540 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 19541 break 2 19542 fi 19543done 19544 done 19545IFS=$as_save_IFS 19546 19547 ;; 19548esac 19549fi 19550XMLTO=$ac_cv_path_XMLTO 19551if test -n "$XMLTO"; then 19552 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XMLTO" >&5 19553printf "%s\n" "$XMLTO" >&6; } 19554else 19555 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 19556printf "%s\n" "no" >&6; } 19557fi 19558 19559 19560 if test "x$XMLTO" = "x"; then 19561 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: xmlto not found - documentation targets will be skipped" >&5 19562printf "%s\n" "$as_me: WARNING: xmlto not found - documentation targets will be skipped" >&2;} 19563 have_xmlto=no 19564 else 19565 have_xmlto=yes 19566 fi 19567elif test "x$use_xmlto" = x"yes" ; then 19568 # Extract the first word of "xmlto", so it can be a program name with args. 19569set dummy xmlto; ac_word=$2 19570{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19571printf %s "checking for $ac_word... " >&6; } 19572if test ${ac_cv_path_XMLTO+y} 19573then : 19574 printf %s "(cached) " >&6 19575else $as_nop 19576 case $XMLTO in 19577 [\\/]* | ?:[\\/]*) 19578 ac_cv_path_XMLTO="$XMLTO" # Let the user override the test with a path. 19579 ;; 19580 *) 19581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19582for as_dir in $PATH 19583do 19584 IFS=$as_save_IFS 19585 case $as_dir in #((( 19586 '') as_dir=./ ;; 19587 */) ;; 19588 *) as_dir=$as_dir/ ;; 19589 esac 19590 for ac_exec_ext in '' $ac_executable_extensions; do 19591 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 19592 ac_cv_path_XMLTO="$as_dir$ac_word$ac_exec_ext" 19593 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 19594 break 2 19595 fi 19596done 19597 done 19598IFS=$as_save_IFS 19599 19600 ;; 19601esac 19602fi 19603XMLTO=$ac_cv_path_XMLTO 19604if test -n "$XMLTO"; then 19605 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XMLTO" >&5 19606printf "%s\n" "$XMLTO" >&6; } 19607else 19608 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 19609printf "%s\n" "no" >&6; } 19610fi 19611 19612 19613 if test "x$XMLTO" = "x"; then 19614 as_fn_error $? "--with-xmlto=yes specified but xmlto not found in PATH" "$LINENO" 5 19615 fi 19616 have_xmlto=yes 19617elif test "x$use_xmlto" = x"no" ; then 19618 if test "x$XMLTO" != "x"; then 19619 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ignoring XMLTO environment variable since --with-xmlto=no was specified" >&5 19620printf "%s\n" "$as_me: WARNING: ignoring XMLTO environment variable since --with-xmlto=no was specified" >&2;} 19621 fi 19622 have_xmlto=no 19623else 19624 as_fn_error $? "--with-xmlto expects 'yes' or 'no'" "$LINENO" 5 19625fi 19626 19627# Test for a minimum version of xmlto, if provided. 19628if test "$have_xmlto" = yes; then 19629 # scrape the xmlto version 19630 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the xmlto version" >&5 19631printf %s "checking the xmlto version... " >&6; } 19632 xmlto_version=`$XMLTO --version 2>/dev/null | cut -d' ' -f3` 19633 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xmlto_version" >&5 19634printf "%s\n" "$xmlto_version" >&6; } 19635 as_arg_v1=$xmlto_version 19636as_arg_v2=0.0.22 19637awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null 19638case $? in #( 19639 1) : 19640 if test "x$use_xmlto" = xauto; then 19641 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: xmlto version $xmlto_version found, but 0.0.22 needed" >&5 19642printf "%s\n" "$as_me: WARNING: xmlto version $xmlto_version found, but 0.0.22 needed" >&2;} 19643 have_xmlto=no 19644 else 19645 as_fn_error $? "xmlto version $xmlto_version found, but 0.0.22 needed" "$LINENO" 5 19646 fi ;; #( 19647 0) : 19648 ;; #( 19649 2) : 19650 ;; #( 19651 *) : 19652 ;; 19653esac 19654fi 19655 19656# Test for the ability of xmlto to generate a text target 19657# 19658# NOTE: xmlto 0.0.27 or higher return a non-zero return code in the 19659# following test for empty XML docbook files. 19660# For compatibility reasons use the following empty XML docbook file and if 19661# it fails try it again with a non-empty XML file. 19662have_xmlto_text=no 19663cat > conftest.xml << "EOF" 19664EOF 19665if test "$have_xmlto" = yes 19666then : 19667 if $XMLTO --skip-validation txt conftest.xml >/dev/null 2>&1 19668then : 19669 have_xmlto_text=yes 19670else $as_nop 19671 # Try it again with a non-empty XML file. 19672 cat > conftest.xml << "EOF" 19673<x></x> 19674EOF 19675 if $XMLTO --skip-validation txt conftest.xml >/dev/null 2>&1 19676then : 19677 have_xmlto_text=yes 19678else $as_nop 19679 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: xmlto cannot generate text format, this format skipped" >&5 19680printf "%s\n" "$as_me: WARNING: xmlto cannot generate text format, this format skipped" >&2;} 19681fi 19682fi 19683fi 19684rm -f conftest.xml 19685 if test $have_xmlto_text = yes; then 19686 HAVE_XMLTO_TEXT_TRUE= 19687 HAVE_XMLTO_TEXT_FALSE='#' 19688else 19689 HAVE_XMLTO_TEXT_TRUE='#' 19690 HAVE_XMLTO_TEXT_FALSE= 19691fi 19692 19693 if test "$have_xmlto" = yes; then 19694 HAVE_XMLTO_TRUE= 19695 HAVE_XMLTO_FALSE='#' 19696else 19697 HAVE_XMLTO_TRUE='#' 19698 HAVE_XMLTO_FALSE= 19699fi 19700 19701 19702 19703 19704 19705 19706# Check whether --with-fop was given. 19707if test ${with_fop+y} 19708then : 19709 withval=$with_fop; use_fop=$withval 19710else $as_nop 19711 use_fop=auto 19712fi 19713 19714 19715 19716if test "x$use_fop" = x"auto"; then 19717 # Extract the first word of "fop", so it can be a program name with args. 19718set dummy fop; ac_word=$2 19719{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19720printf %s "checking for $ac_word... " >&6; } 19721if test ${ac_cv_path_FOP+y} 19722then : 19723 printf %s "(cached) " >&6 19724else $as_nop 19725 case $FOP in 19726 [\\/]* | ?:[\\/]*) 19727 ac_cv_path_FOP="$FOP" # Let the user override the test with a path. 19728 ;; 19729 *) 19730 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19731for as_dir in $PATH 19732do 19733 IFS=$as_save_IFS 19734 case $as_dir in #((( 19735 '') as_dir=./ ;; 19736 */) ;; 19737 *) as_dir=$as_dir/ ;; 19738 esac 19739 for ac_exec_ext in '' $ac_executable_extensions; do 19740 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 19741 ac_cv_path_FOP="$as_dir$ac_word$ac_exec_ext" 19742 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 19743 break 2 19744 fi 19745done 19746 done 19747IFS=$as_save_IFS 19748 19749 ;; 19750esac 19751fi 19752FOP=$ac_cv_path_FOP 19753if test -n "$FOP"; then 19754 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FOP" >&5 19755printf "%s\n" "$FOP" >&6; } 19756else 19757 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 19758printf "%s\n" "no" >&6; } 19759fi 19760 19761 19762 if test "x$FOP" = "x"; then 19763 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: fop not found - documentation targets will be skipped" >&5 19764printf "%s\n" "$as_me: WARNING: fop not found - documentation targets will be skipped" >&2;} 19765 have_fop=no 19766 else 19767 have_fop=yes 19768 fi 19769elif test "x$use_fop" = x"yes" ; then 19770 # Extract the first word of "fop", so it can be a program name with args. 19771set dummy fop; ac_word=$2 19772{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19773printf %s "checking for $ac_word... " >&6; } 19774if test ${ac_cv_path_FOP+y} 19775then : 19776 printf %s "(cached) " >&6 19777else $as_nop 19778 case $FOP in 19779 [\\/]* | ?:[\\/]*) 19780 ac_cv_path_FOP="$FOP" # Let the user override the test with a path. 19781 ;; 19782 *) 19783 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19784for as_dir in $PATH 19785do 19786 IFS=$as_save_IFS 19787 case $as_dir in #((( 19788 '') as_dir=./ ;; 19789 */) ;; 19790 *) as_dir=$as_dir/ ;; 19791 esac 19792 for ac_exec_ext in '' $ac_executable_extensions; do 19793 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 19794 ac_cv_path_FOP="$as_dir$ac_word$ac_exec_ext" 19795 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 19796 break 2 19797 fi 19798done 19799 done 19800IFS=$as_save_IFS 19801 19802 ;; 19803esac 19804fi 19805FOP=$ac_cv_path_FOP 19806if test -n "$FOP"; then 19807 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FOP" >&5 19808printf "%s\n" "$FOP" >&6; } 19809else 19810 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 19811printf "%s\n" "no" >&6; } 19812fi 19813 19814 19815 if test "x$FOP" = "x"; then 19816 as_fn_error $? "--with-fop=yes specified but fop not found in PATH" "$LINENO" 5 19817 fi 19818 have_fop=yes 19819elif test "x$use_fop" = x"no" ; then 19820 if test "x$FOP" != "x"; then 19821 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ignoring FOP environment variable since --with-fop=no was specified" >&5 19822printf "%s\n" "$as_me: WARNING: ignoring FOP environment variable since --with-fop=no was specified" >&2;} 19823 fi 19824 have_fop=no 19825else 19826 as_fn_error $? "--with-fop expects 'yes' or 'no'" "$LINENO" 5 19827fi 19828 19829# Test for a minimum version of fop, if provided. 19830 19831 if test "$have_fop" = yes; then 19832 HAVE_FOP_TRUE= 19833 HAVE_FOP_FALSE='#' 19834else 19835 HAVE_FOP_TRUE='#' 19836 HAVE_FOP_FALSE= 19837fi 19838 19839 19840 19841{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for X.Org SGML entities >= 1.7" >&5 19842printf %s "checking for X.Org SGML entities >= 1.7... " >&6; } 19843XORG_SGML_PATH= 19844if test -n "$PKG_CONFIG" && \ 19845 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-sgml-doctools >= 1.7\""; } >&5 19846 ($PKG_CONFIG --exists --print-errors "xorg-sgml-doctools >= 1.7") 2>&5 19847 ac_status=$? 19848 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19849 test $ac_status = 0; }; then 19850 XORG_SGML_PATH=`$PKG_CONFIG --variable=sgmlrootdir xorg-sgml-doctools` 19851else 19852 : 19853 19854fi 19855 19856# Define variables STYLESHEET_SRCDIR and XSL_STYLESHEET containing 19857# the path and the name of the doc stylesheet 19858if test "x$XORG_SGML_PATH" != "x" ; then 19859 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XORG_SGML_PATH" >&5 19860printf "%s\n" "$XORG_SGML_PATH" >&6; } 19861 STYLESHEET_SRCDIR=$XORG_SGML_PATH/X11 19862 XSL_STYLESHEET=$STYLESHEET_SRCDIR/xorg.xsl 19863else 19864 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 19865printf "%s\n" "no" >&6; } 19866fi 19867 19868 19869 19870 19871 if test "x$XSL_STYLESHEET" != "x"; then 19872 HAVE_STYLESHEETS_TRUE= 19873 HAVE_STYLESHEETS_FALSE='#' 19874else 19875 HAVE_STYLESHEETS_TRUE='#' 19876 HAVE_STYLESHEETS_FALSE= 19877fi 19878 19879 19880 19881# Checks for header files. 19882ac_fn_c_check_header_compile "$LINENO" "endian.h" "ac_cv_header_endian_h" "$ac_includes_default" 19883if test "x$ac_cv_header_endian_h" = xyes 19884then : 19885 printf "%s\n" "#define HAVE_ENDIAN_H 1" >>confdefs.h 19886 19887fi 19888ac_fn_c_check_header_compile "$LINENO" "poll.h" "ac_cv_header_poll_h" "$ac_includes_default" 19889if test "x$ac_cv_header_poll_h" = xyes 19890then : 19891 printf "%s\n" "#define HAVE_POLL_H 1" >>confdefs.h 19892 19893fi 19894ac_fn_c_check_header_compile "$LINENO" "sys/poll.h" "ac_cv_header_sys_poll_h" "$ac_includes_default" 19895if test "x$ac_cv_header_sys_poll_h" = xyes 19896then : 19897 printf "%s\n" "#define HAVE_SYS_POLL_H 1" >>confdefs.h 19898 19899fi 19900 19901 19902# Checks for library functions. 19903ac_fn_c_check_func "$LINENO" "poll" "ac_cv_func_poll" 19904if test "x$ac_cv_func_poll" = xyes 19905then : 19906 printf "%s\n" "#define HAVE_POLL 1" >>confdefs.h 19907 19908fi 19909ac_fn_c_check_func "$LINENO" "readlink" "ac_cv_func_readlink" 19910if test "x$ac_cv_func_readlink" = xyes 19911then : 19912 printf "%s\n" "#define HAVE_READLINK 1" >>confdefs.h 19913 19914fi 19915 19916{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing strlcat" >&5 19917printf %s "checking for library containing strlcat... " >&6; } 19918if test ${ac_cv_search_strlcat+y} 19919then : 19920 printf %s "(cached) " >&6 19921else $as_nop 19922 ac_func_search_save_LIBS=$LIBS 19923cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19924/* end confdefs.h. */ 19925 19926/* Override any GCC internal prototype to avoid an error. 19927 Use char because int might match the return type of a GCC 19928 builtin and then its argument prototype would still apply. */ 19929char strlcat (); 19930int 19931main (void) 19932{ 19933return strlcat (); 19934 ; 19935 return 0; 19936} 19937_ACEOF 19938for ac_lib in '' bsd 19939do 19940 if test -z "$ac_lib"; then 19941 ac_res="none required" 19942 else 19943 ac_res=-l$ac_lib 19944 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 19945 fi 19946 if ac_fn_c_try_link "$LINENO" 19947then : 19948 ac_cv_search_strlcat=$ac_res 19949fi 19950rm -f core conftest.err conftest.$ac_objext conftest.beam \ 19951 conftest$ac_exeext 19952 if test ${ac_cv_search_strlcat+y} 19953then : 19954 break 19955fi 19956done 19957if test ${ac_cv_search_strlcat+y} 19958then : 19959 19960else $as_nop 19961 ac_cv_search_strlcat=no 19962fi 19963rm conftest.$ac_ext 19964LIBS=$ac_func_search_save_LIBS 19965fi 19966{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strlcat" >&5 19967printf "%s\n" "$ac_cv_search_strlcat" >&6; } 19968ac_res=$ac_cv_search_strlcat 19969if test "$ac_res" != no 19970then : 19971 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 19972 19973fi 19974 19975if test "$ac_cv_search_strlcat" = "-lbsd"; then 19976 19977printf "%s\n" "#define HAVE_LIBBSD 1" >>confdefs.h 19978 19979fi 19980 19981ac_fn_c_check_func "$LINENO" "reallocarray" "ac_cv_func_reallocarray" 19982if test "x$ac_cv_func_reallocarray" = xyes 19983then : 19984 printf "%s\n" "#define HAVE_REALLOCARRAY 1" >>confdefs.h 19985 19986else $as_nop 19987 case " $LIBOBJS " in 19988 *" reallocarray.$ac_objext "* ) ;; 19989 *) LIBOBJS="$LIBOBJS reallocarray.$ac_objext" 19990 ;; 19991esac 19992 19993fi 19994ac_fn_c_check_func "$LINENO" "realpath" "ac_cv_func_realpath" 19995if test "x$ac_cv_func_realpath" = xyes 19996then : 19997 printf "%s\n" "#define HAVE_REALPATH 1" >>confdefs.h 19998 19999else $as_nop 20000 case " $LIBOBJS " in 20001 *" realpath.$ac_objext "* ) ;; 20002 *) LIBOBJS="$LIBOBJS realpath.$ac_objext" 20003 ;; 20004esac 20005 20006fi 20007ac_fn_c_check_func "$LINENO" "strlcat" "ac_cv_func_strlcat" 20008if test "x$ac_cv_func_strlcat" = xyes 20009then : 20010 printf "%s\n" "#define HAVE_STRLCAT 1" >>confdefs.h 20011 20012else $as_nop 20013 case " $LIBOBJS " in 20014 *" strlcat.$ac_objext "* ) ;; 20015 *) LIBOBJS="$LIBOBJS strlcat.$ac_objext" 20016 ;; 20017esac 20018 20019fi 20020ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy" 20021if test "x$ac_cv_func_strlcpy" = xyes 20022then : 20023 printf "%s\n" "#define HAVE_STRLCPY 1" >>confdefs.h 20024 20025else $as_nop 20026 case " $LIBOBJS " in 20027 *" strlcpy.$ac_objext "* ) ;; 20028 *) LIBOBJS="$LIBOBJS strlcpy.$ac_objext" 20029 ;; 20030esac 20031 20032fi 20033 20034 20035# Check for BSDish err.h 20036ac_fn_c_check_header_compile "$LINENO" "err.h" "ac_cv_header_err_h" "$ac_includes_default" 20037if test "x$ac_cv_header_err_h" = xyes 20038then : 20039 printf "%s\n" "#define HAVE_ERR_H 1" >>confdefs.h 20040 20041fi 20042 20043 20044# If the first PKG_CHECK_MODULES appears inside a conditional, pkg-config 20045# must first be located explicitly. 20046 20047 20048 20049 20050 20051 20052 20053if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 20054 if test -n "$ac_tool_prefix"; then 20055 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 20056set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 20057{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 20058printf %s "checking for $ac_word... " >&6; } 20059if test ${ac_cv_path_PKG_CONFIG+y} 20060then : 20061 printf %s "(cached) " >&6 20062else $as_nop 20063 case $PKG_CONFIG in 20064 [\\/]* | ?:[\\/]*) 20065 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 20066 ;; 20067 *) 20068 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20069for as_dir in $PATH 20070do 20071 IFS=$as_save_IFS 20072 case $as_dir in #((( 20073 '') as_dir=./ ;; 20074 */) ;; 20075 *) as_dir=$as_dir/ ;; 20076 esac 20077 for ac_exec_ext in '' $ac_executable_extensions; do 20078 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 20079 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 20080 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 20081 break 2 20082 fi 20083done 20084 done 20085IFS=$as_save_IFS 20086 20087 ;; 20088esac 20089fi 20090PKG_CONFIG=$ac_cv_path_PKG_CONFIG 20091if test -n "$PKG_CONFIG"; then 20092 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 20093printf "%s\n" "$PKG_CONFIG" >&6; } 20094else 20095 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 20096printf "%s\n" "no" >&6; } 20097fi 20098 20099 20100fi 20101if test -z "$ac_cv_path_PKG_CONFIG"; then 20102 ac_pt_PKG_CONFIG=$PKG_CONFIG 20103 # Extract the first word of "pkg-config", so it can be a program name with args. 20104set dummy pkg-config; ac_word=$2 20105{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 20106printf %s "checking for $ac_word... " >&6; } 20107if test ${ac_cv_path_ac_pt_PKG_CONFIG+y} 20108then : 20109 printf %s "(cached) " >&6 20110else $as_nop 20111 case $ac_pt_PKG_CONFIG in 20112 [\\/]* | ?:[\\/]*) 20113 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 20114 ;; 20115 *) 20116 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20117for as_dir in $PATH 20118do 20119 IFS=$as_save_IFS 20120 case $as_dir in #((( 20121 '') as_dir=./ ;; 20122 */) ;; 20123 *) as_dir=$as_dir/ ;; 20124 esac 20125 for ac_exec_ext in '' $ac_executable_extensions; do 20126 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 20127 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 20128 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 20129 break 2 20130 fi 20131done 20132 done 20133IFS=$as_save_IFS 20134 20135 ;; 20136esac 20137fi 20138ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 20139if test -n "$ac_pt_PKG_CONFIG"; then 20140 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 20141printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; } 20142else 20143 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 20144printf "%s\n" "no" >&6; } 20145fi 20146 20147 if test "x$ac_pt_PKG_CONFIG" = x; then 20148 PKG_CONFIG="" 20149 else 20150 case $cross_compiling:$ac_tool_warned in 20151yes:) 20152{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 20153printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 20154ac_tool_warned=yes ;; 20155esac 20156 PKG_CONFIG=$ac_pt_PKG_CONFIG 20157 fi 20158else 20159 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 20160fi 20161 20162fi 20163if test -n "$PKG_CONFIG"; then 20164 _pkg_min_version=0.9.0 20165 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 20166printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; } 20167 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 20168 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 20169printf "%s\n" "yes" >&6; } 20170 else 20171 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 20172printf "%s\n" "no" >&6; } 20173 PKG_CONFIG="" 20174 fi 20175fi 20176 20177# 20178# select libraries to include 20179# 20180 20181XFONT_FONTFILE=no 20182 20183# 20184# FreeType for all scalable (OpenType, TrueType, PostScript) and 20185# some bitmap formats (BDF & PCF) 20186# 20187# Check whether --enable-freetype was given. 20188if test ${enable_freetype+y} 20189then : 20190 enableval=$enable_freetype; XFONT_FREETYPE=$enableval 20191else $as_nop 20192 XFONT_FREETYPE=yes 20193fi 20194 20195 if test x$XFONT_FREETYPE = xyes; then 20196 XFONT_FREETYPE_TRUE= 20197 XFONT_FREETYPE_FALSE='#' 20198else 20199 XFONT_FREETYPE_TRUE='#' 20200 XFONT_FREETYPE_FALSE= 20201fi 20202 20203if test x$XFONT_FREETYPE = xyes; then 20204 20205printf "%s\n" "#define XFONT_FREETYPE 1" >>confdefs.h 20206 20207 20208# Check whether --with-freetype-config was given. 20209if test ${with_freetype_config+y} 20210then : 20211 withval=$with_freetype_config; freetype_config=$withval 20212else $as_nop 20213 freetype_config=auto 20214fi 20215 20216 20217 if test "$freetype_config" = "auto" ; then 20218 20219pkg_failed=no 20220{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for FREETYPE" >&5 20221printf %s "checking for FREETYPE... " >&6; } 20222 20223if test -n "$FREETYPE_CFLAGS"; then 20224 pkg_cv_FREETYPE_CFLAGS="$FREETYPE_CFLAGS" 20225 elif test -n "$PKG_CONFIG"; then 20226 if test -n "$PKG_CONFIG" && \ 20227 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2\""; } >&5 20228 ($PKG_CONFIG --exists --print-errors "freetype2") 2>&5 20229 ac_status=$? 20230 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 20231 test $ac_status = 0; }; then 20232 pkg_cv_FREETYPE_CFLAGS=`$PKG_CONFIG --cflags "freetype2" 2>/dev/null` 20233 test "x$?" != "x0" && pkg_failed=yes 20234else 20235 pkg_failed=yes 20236fi 20237 else 20238 pkg_failed=untried 20239fi 20240if test -n "$FREETYPE_LIBS"; then 20241 pkg_cv_FREETYPE_LIBS="$FREETYPE_LIBS" 20242 elif test -n "$PKG_CONFIG"; then 20243 if test -n "$PKG_CONFIG" && \ 20244 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2\""; } >&5 20245 ($PKG_CONFIG --exists --print-errors "freetype2") 2>&5 20246 ac_status=$? 20247 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 20248 test $ac_status = 0; }; then 20249 pkg_cv_FREETYPE_LIBS=`$PKG_CONFIG --libs "freetype2" 2>/dev/null` 20250 test "x$?" != "x0" && pkg_failed=yes 20251else 20252 pkg_failed=yes 20253fi 20254 else 20255 pkg_failed=untried 20256fi 20257 20258 20259 20260if test $pkg_failed = yes; then 20261 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 20262printf "%s\n" "no" >&6; } 20263 20264if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 20265 _pkg_short_errors_supported=yes 20266else 20267 _pkg_short_errors_supported=no 20268fi 20269 if test $_pkg_short_errors_supported = yes; then 20270 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "freetype2" 2>&1` 20271 else 20272 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "freetype2" 2>&1` 20273 fi 20274 # Put the nasty error message in config.log where it belongs 20275 echo "$FREETYPE_PKG_ERRORS" >&5 20276 20277 freetype_config=yes 20278elif test $pkg_failed = untried; then 20279 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 20280printf "%s\n" "no" >&6; } 20281 freetype_config=yes 20282else 20283 FREETYPE_CFLAGS=$pkg_cv_FREETYPE_CFLAGS 20284 FREETYPE_LIBS=$pkg_cv_FREETYPE_LIBS 20285 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 20286printf "%s\n" "yes" >&6; } 20287 freetype_config=no 20288fi 20289 fi 20290 20291 if test "$freetype_config" = "yes"; then 20292 # Extract the first word of "freetype-config", so it can be a program name with args. 20293set dummy freetype-config; ac_word=$2 20294{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 20295printf %s "checking for $ac_word... " >&6; } 20296if test ${ac_cv_path_ft_config+y} 20297then : 20298 printf %s "(cached) " >&6 20299else $as_nop 20300 case $ft_config in 20301 [\\/]* | ?:[\\/]*) 20302 ac_cv_path_ft_config="$ft_config" # Let the user override the test with a path. 20303 ;; 20304 *) 20305 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20306for as_dir in $PATH 20307do 20308 IFS=$as_save_IFS 20309 case $as_dir in #((( 20310 '') as_dir=./ ;; 20311 */) ;; 20312 *) as_dir=$as_dir/ ;; 20313 esac 20314 for ac_exec_ext in '' $ac_executable_extensions; do 20315 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 20316 ac_cv_path_ft_config="$as_dir$ac_word$ac_exec_ext" 20317 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 20318 break 2 20319 fi 20320done 20321 done 20322IFS=$as_save_IFS 20323 20324 test -z "$ac_cv_path_ft_config" && ac_cv_path_ft_config="no" 20325 ;; 20326esac 20327fi 20328ft_config=$ac_cv_path_ft_config 20329if test -n "$ft_config"; then 20330 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ft_config" >&5 20331printf "%s\n" "$ft_config" >&6; } 20332else 20333 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 20334printf "%s\n" "no" >&6; } 20335fi 20336 20337 20338 if test "$ft_config" = "no"; then 20339 as_fn_error $? "You must have freetype installed; see http://www.freetype.org/" "$LINENO" 5 20340 fi 20341 else 20342 ft_config="$freetype_config" 20343 fi 20344 20345 if test "$freetype_config" != "no"; then 20346 FREETYPE_CFLAGS="`$ft_config --cflags`" 20347 FREETYPE_LIBS="`$ft_config --libs`" 20348 fi 20349 FREETYPE_REQUIRES="freetype2" 20350 XFONT_FONTFILE=yes 20351else 20352 FREETYPE_CFLAGS="" 20353 FREETYPE_LIBS="" 20354 FREETYPE_REQUIRES="" 20355fi 20356 20357 20358 20359 20360# 20361# Bitmap fonts in files: 20362# Builtins (gzipped pcf format in .text segment) 20363# PCF 20364# BDF 20365# SNF 20366# 20367 20368 20369printf "%s\n" "#define X_GZIP_FONT_COMPRESSION 1" >>confdefs.h 20370 20371X_GZIP_FONT_COMPRESSION=1 20372 20373{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gzopen in -lz" >&5 20374printf %s "checking for gzopen in -lz... " >&6; } 20375if test ${ac_cv_lib_z_gzopen+y} 20376then : 20377 printf %s "(cached) " >&6 20378else $as_nop 20379 ac_check_lib_save_LIBS=$LIBS 20380LIBS="-lz $LIBS" 20381cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20382/* end confdefs.h. */ 20383 20384/* Override any GCC internal prototype to avoid an error. 20385 Use char because int might match the return type of a GCC 20386 builtin and then its argument prototype would still apply. */ 20387char gzopen (); 20388int 20389main (void) 20390{ 20391return gzopen (); 20392 ; 20393 return 0; 20394} 20395_ACEOF 20396if ac_fn_c_try_link "$LINENO" 20397then : 20398 ac_cv_lib_z_gzopen=yes 20399else $as_nop 20400 ac_cv_lib_z_gzopen=no 20401fi 20402rm -f core conftest.err conftest.$ac_objext conftest.beam \ 20403 conftest$ac_exeext conftest.$ac_ext 20404LIBS=$ac_check_lib_save_LIBS 20405fi 20406{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzopen" >&5 20407printf "%s\n" "$ac_cv_lib_z_gzopen" >&6; } 20408if test "x$ac_cv_lib_z_gzopen" = xyes 20409then : 20410 Z_LIBS=-lz 20411else $as_nop 20412 as_fn_error $? "*** zlib is required" "$LINENO" 5 20413fi 20414 20415 20416 20417# Check whether --with-bzip2 was given. 20418if test ${with_bzip2+y} 20419then : 20420 withval=$with_bzip2; 20421else $as_nop 20422 with_bzip2=no 20423fi 20424 20425if test "x$with_bzip2" = xyes; then 20426 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BZ2_bzopen in -lbz2" >&5 20427printf %s "checking for BZ2_bzopen in -lbz2... " >&6; } 20428if test ${ac_cv_lib_bz2_BZ2_bzopen+y} 20429then : 20430 printf %s "(cached) " >&6 20431else $as_nop 20432 ac_check_lib_save_LIBS=$LIBS 20433LIBS="-lbz2 $LIBS" 20434cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20435/* end confdefs.h. */ 20436 20437/* Override any GCC internal prototype to avoid an error. 20438 Use char because int might match the return type of a GCC 20439 builtin and then its argument prototype would still apply. */ 20440char BZ2_bzopen (); 20441int 20442main (void) 20443{ 20444return BZ2_bzopen (); 20445 ; 20446 return 0; 20447} 20448_ACEOF 20449if ac_fn_c_try_link "$LINENO" 20450then : 20451 ac_cv_lib_bz2_BZ2_bzopen=yes 20452else $as_nop 20453 ac_cv_lib_bz2_BZ2_bzopen=no 20454fi 20455rm -f core conftest.err conftest.$ac_objext conftest.beam \ 20456 conftest$ac_exeext conftest.$ac_ext 20457LIBS=$ac_check_lib_save_LIBS 20458fi 20459{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2_BZ2_bzopen" >&5 20460printf "%s\n" "$ac_cv_lib_bz2_BZ2_bzopen" >&6; } 20461if test "x$ac_cv_lib_bz2_BZ2_bzopen" = xyes 20462then : 20463 Z_LIBS="$Z_LIBS -lbz2" 20464else $as_nop 20465 as_fn_error $? "*** libbz2 is required for bzip2 support" "$LINENO" 5 20466fi 20467 20468 20469printf "%s\n" "#define X_BZIP2_FONT_COMPRESSION 1" >>confdefs.h 20470 20471fi 20472 if test "x$with_bzip2" = xyes ; then 20473 X_BZIP2_FONT_COMPRESSION_TRUE= 20474 X_BZIP2_FONT_COMPRESSION_FALSE='#' 20475else 20476 X_BZIP2_FONT_COMPRESSION_TRUE='#' 20477 X_BZIP2_FONT_COMPRESSION_FALSE= 20478fi 20479 20480 20481 20482# Check whether --enable-builtins was given. 20483if test ${enable_builtins+y} 20484then : 20485 enableval=$enable_builtins; XFONT_BUILTINS=$enableval 20486else $as_nop 20487 XFONT_BUILTINS=yes 20488fi 20489 20490 if test "x$XFONT_BUILTINS" = xyes ; then 20491 XFONT_BUILTINS_TRUE= 20492 XFONT_BUILTINS_FALSE='#' 20493else 20494 XFONT_BUILTINS_TRUE='#' 20495 XFONT_BUILTINS_FALSE= 20496fi 20497 20498if test "x$XFONT_BUILTINS" = xyes; then 20499 20500printf "%s\n" "#define XFONT_BUILTINS 1" >>confdefs.h 20501 20502 XFONT_BITMAP=yes 20503fi 20504 20505# Check whether --enable-pcfformat was given. 20506if test ${enable_pcfformat+y} 20507then : 20508 enableval=$enable_pcfformat; XFONT_PCFFORMAT=$enableval 20509else $as_nop 20510 XFONT_PCFFORMAT=yes 20511fi 20512 20513 if test "x$XFONT_PCFFORMAT" = xyes; then 20514 XFONT_PCFFORMAT_TRUE= 20515 XFONT_PCFFORMAT_FALSE='#' 20516else 20517 XFONT_PCFFORMAT_TRUE='#' 20518 XFONT_PCFFORMAT_FALSE= 20519fi 20520 20521if test "x$XFONT_PCFFORMAT" = xyes; then 20522 20523printf "%s\n" "#define XFONT_PCFFORMAT 1" >>confdefs.h 20524 20525 XFONT_BITMAP=yes 20526fi 20527 20528 if test "x$XFONT_PCFFORMAT" = xyes -o "x$XFONT_BUILTINS" = xyes; then 20529 XFONT_PCF_OR_BUILTIN_TRUE= 20530 XFONT_PCF_OR_BUILTIN_FALSE='#' 20531else 20532 XFONT_PCF_OR_BUILTIN_TRUE='#' 20533 XFONT_PCF_OR_BUILTIN_FALSE= 20534fi 20535 20536 20537# Check whether --enable-bdfformat was given. 20538if test ${enable_bdfformat+y} 20539then : 20540 enableval=$enable_bdfformat; XFONT_BDFFORMAT=$enableval 20541else $as_nop 20542 XFONT_BDFFORMAT=yes 20543fi 20544 20545 if test "x$XFONT_BDFFORMAT" = xyes; then 20546 XFONT_BDFFORMAT_TRUE= 20547 XFONT_BDFFORMAT_FALSE='#' 20548else 20549 XFONT_BDFFORMAT_TRUE='#' 20550 XFONT_BDFFORMAT_FALSE= 20551fi 20552 20553if test "x$XFONT_BDFFORMAT" = xyes; then 20554 20555printf "%s\n" "#define XFONT_BDFFORMAT 1" >>confdefs.h 20556 20557 XFONT_BITMAP=yes 20558fi 20559 20560# Check whether --enable-snfformat was given. 20561if test ${enable_snfformat+y} 20562then : 20563 enableval=$enable_snfformat; XFONT_SNFFORMAT=$enableval 20564else $as_nop 20565 XFONT_SNFFORMAT=no 20566fi 20567 20568 if test "x$XFONT_SNFFORMAT" = xyes; then 20569 XFONT_SNFFORMAT_TRUE= 20570 XFONT_SNFFORMAT_FALSE='#' 20571else 20572 XFONT_SNFFORMAT_TRUE='#' 20573 XFONT_SNFFORMAT_FALSE= 20574fi 20575 20576if test "x$XFONT_SNFFORMAT" = xyes; then 20577 20578printf "%s\n" "#define XFONT_SNFFORMAT 1" >>confdefs.h 20579 20580 XFONT_BITMAP=yes 20581fi 20582 20583 if test "x$XFONT_BITMAP" = xyes ; then 20584 XFONT_BITMAP_TRUE= 20585 XFONT_BITMAP_FALSE='#' 20586else 20587 XFONT_BITMAP_TRUE='#' 20588 XFONT_BITMAP_FALSE= 20589fi 20590 20591if test "x$XFONT_BITMAP" = xyes; then 20592 20593printf "%s\n" "#define XFONT_BITMAP 1" >>confdefs.h 20594 20595 XFONT_FONTFILE=yes 20596fi 20597 20598 if test "x$XFONT_FONTFILE" = xyes; then 20599 XFONT_FONTFILE_TRUE= 20600 XFONT_FONTFILE_FALSE='#' 20601else 20602 XFONT_FONTFILE_TRUE='#' 20603 XFONT_FONTFILE_FALSE= 20604fi 20605 20606if test "x$XFONT_FONTFILE" = xyes; then 20607 20608printf "%s\n" "#define XFONT_FONTFILE 1" >>confdefs.h 20609 20610fi 20611 20612# 20613# Support connection to font servers? 20614# 20615 20616# Check whether --enable-fc was given. 20617if test ${enable_fc+y} 20618then : 20619 enableval=$enable_fc; XFONT_FC=$enableval 20620else $as_nop 20621 XFONT_FC=yes 20622fi 20623 20624 if test "x$XFONT_FC" = xyes; then 20625 XFONT_FC_TRUE= 20626 XFONT_FC_FALSE='#' 20627else 20628 XFONT_FC_TRUE='#' 20629 XFONT_FC_FALSE= 20630fi 20631 20632if test "x$XFONT_FC" = xyes; then 20633 20634printf "%s\n" "#define XFONT_FC 1" >>confdefs.h 20635 20636fi 20637 20638 20639{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for hypot in -lm" >&5 20640printf %s "checking for hypot in -lm... " >&6; } 20641if test ${ac_cv_lib_m_hypot+y} 20642then : 20643 printf %s "(cached) " >&6 20644else $as_nop 20645 ac_check_lib_save_LIBS=$LIBS 20646LIBS="-lm $LIBS" 20647cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20648/* end confdefs.h. */ 20649 20650/* Override any GCC internal prototype to avoid an error. 20651 Use char because int might match the return type of a GCC 20652 builtin and then its argument prototype would still apply. */ 20653char hypot (); 20654int 20655main (void) 20656{ 20657return hypot (); 20658 ; 20659 return 0; 20660} 20661_ACEOF 20662if ac_fn_c_try_link "$LINENO" 20663then : 20664 ac_cv_lib_m_hypot=yes 20665else $as_nop 20666 ac_cv_lib_m_hypot=no 20667fi 20668rm -f core conftest.err conftest.$ac_objext conftest.beam \ 20669 conftest$ac_exeext conftest.$ac_ext 20670LIBS=$ac_check_lib_save_LIBS 20671fi 20672{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_hypot" >&5 20673printf "%s\n" "$ac_cv_lib_m_hypot" >&6; } 20674if test "x$ac_cv_lib_m_hypot" = xyes 20675then : 20676 MATH_LIBS=-lm 20677 20678else $as_nop 20679 as_fn_error $? "*** libm is required" "$LINENO" 5 20680fi 20681 20682 20683 20684pkg_failed=no 20685{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XFONT" >&5 20686printf %s "checking for XFONT... " >&6; } 20687 20688if test -n "$XFONT_CFLAGS"; then 20689 pkg_cv_XFONT_CFLAGS="$XFONT_CFLAGS" 20690 elif test -n "$PKG_CONFIG"; then 20691 if test -n "$PKG_CONFIG" && \ 20692 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto xtrans fontsproto >= 2.1.3 fontenc\""; } >&5 20693 ($PKG_CONFIG --exists --print-errors "xproto xtrans fontsproto >= 2.1.3 fontenc") 2>&5 20694 ac_status=$? 20695 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 20696 test $ac_status = 0; }; then 20697 pkg_cv_XFONT_CFLAGS=`$PKG_CONFIG --cflags "xproto xtrans fontsproto >= 2.1.3 fontenc" 2>/dev/null` 20698 test "x$?" != "x0" && pkg_failed=yes 20699else 20700 pkg_failed=yes 20701fi 20702 else 20703 pkg_failed=untried 20704fi 20705if test -n "$XFONT_LIBS"; then 20706 pkg_cv_XFONT_LIBS="$XFONT_LIBS" 20707 elif test -n "$PKG_CONFIG"; then 20708 if test -n "$PKG_CONFIG" && \ 20709 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto xtrans fontsproto >= 2.1.3 fontenc\""; } >&5 20710 ($PKG_CONFIG --exists --print-errors "xproto xtrans fontsproto >= 2.1.3 fontenc") 2>&5 20711 ac_status=$? 20712 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 20713 test $ac_status = 0; }; then 20714 pkg_cv_XFONT_LIBS=`$PKG_CONFIG --libs "xproto xtrans fontsproto >= 2.1.3 fontenc" 2>/dev/null` 20715 test "x$?" != "x0" && pkg_failed=yes 20716else 20717 pkg_failed=yes 20718fi 20719 else 20720 pkg_failed=untried 20721fi 20722 20723 20724 20725if test $pkg_failed = yes; then 20726 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 20727printf "%s\n" "no" >&6; } 20728 20729if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 20730 _pkg_short_errors_supported=yes 20731else 20732 _pkg_short_errors_supported=no 20733fi 20734 if test $_pkg_short_errors_supported = yes; then 20735 XFONT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xproto xtrans fontsproto >= 2.1.3 fontenc" 2>&1` 20736 else 20737 XFONT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xproto xtrans fontsproto >= 2.1.3 fontenc" 2>&1` 20738 fi 20739 # Put the nasty error message in config.log where it belongs 20740 echo "$XFONT_PKG_ERRORS" >&5 20741 20742 as_fn_error $? "Package requirements (xproto xtrans fontsproto >= 2.1.3 fontenc) were not met: 20743 20744$XFONT_PKG_ERRORS 20745 20746Consider adjusting the PKG_CONFIG_PATH environment variable if you 20747installed software in a non-standard prefix. 20748 20749Alternatively, you may set the environment variables XFONT_CFLAGS 20750and XFONT_LIBS to avoid the need to call pkg-config. 20751See the pkg-config man page for more details." "$LINENO" 5 20752elif test $pkg_failed = untried; then 20753 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 20754printf "%s\n" "no" >&6; } 20755 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 20756printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 20757as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 20758is in your PATH or set the PKG_CONFIG environment variable to the full 20759path to pkg-config. 20760 20761Alternatively, you may set the environment variables XFONT_CFLAGS 20762and XFONT_LIBS to avoid the need to call pkg-config. 20763See the pkg-config man page for more details. 20764 20765To get pkg-config, see <http://pkg-config.freedesktop.org/>. 20766See \`config.log' for more details" "$LINENO" 5; } 20767else 20768 XFONT_CFLAGS=$pkg_cv_XFONT_CFLAGS 20769 XFONT_LIBS=$pkg_cv_XFONT_LIBS 20770 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 20771printf "%s\n" "yes" >&6; } 20772 20773fi 20774 20775# Transport selection macro from xtrans.m4 20776 20777 20778 case $host_os in 20779 mingw*) unixdef="no" ;; 20780 *) unixdef="yes" ;; 20781 esac 20782 # Check whether --enable-unix-transport was given. 20783if test ${enable_unix_transport+y} 20784then : 20785 enableval=$enable_unix_transport; UNIXCONN=$enableval 20786else $as_nop 20787 UNIXCONN=$unixdef 20788fi 20789 20790 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support UNIX socket connections" >&5 20791printf %s "checking if Xtrans should support UNIX socket connections... " >&6; } 20792 if test "$UNIXCONN" = "yes"; then 20793 20794printf "%s\n" "#define UNIXCONN 1" >>confdefs.h 20795 20796 fi 20797 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $UNIXCONN" >&5 20798printf "%s\n" "$UNIXCONN" >&6; } 20799 # Check whether --enable-tcp-transport was given. 20800if test ${enable_tcp_transport+y} 20801then : 20802 enableval=$enable_tcp_transport; TCPCONN=$enableval 20803else $as_nop 20804 TCPCONN=yes 20805fi 20806 20807 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support TCP socket connections" >&5 20808printf %s "checking if Xtrans should support TCP socket connections... " >&6; } 20809 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $TCPCONN" >&5 20810printf "%s\n" "$TCPCONN" >&6; } 20811 if test "$TCPCONN" = "yes"; then 20812 20813printf "%s\n" "#define TCPCONN 1" >>confdefs.h 20814 20815 20816 # SVR4 hides these in libraries other than libc 20817 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5 20818printf %s "checking for library containing socket... " >&6; } 20819if test ${ac_cv_search_socket+y} 20820then : 20821 printf %s "(cached) " >&6 20822else $as_nop 20823 ac_func_search_save_LIBS=$LIBS 20824cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20825/* end confdefs.h. */ 20826 20827/* Override any GCC internal prototype to avoid an error. 20828 Use char because int might match the return type of a GCC 20829 builtin and then its argument prototype would still apply. */ 20830char socket (); 20831int 20832main (void) 20833{ 20834return socket (); 20835 ; 20836 return 0; 20837} 20838_ACEOF 20839for ac_lib in '' socket 20840do 20841 if test -z "$ac_lib"; then 20842 ac_res="none required" 20843 else 20844 ac_res=-l$ac_lib 20845 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 20846 fi 20847 if ac_fn_c_try_link "$LINENO" 20848then : 20849 ac_cv_search_socket=$ac_res 20850fi 20851rm -f core conftest.err conftest.$ac_objext conftest.beam \ 20852 conftest$ac_exeext 20853 if test ${ac_cv_search_socket+y} 20854then : 20855 break 20856fi 20857done 20858if test ${ac_cv_search_socket+y} 20859then : 20860 20861else $as_nop 20862 ac_cv_search_socket=no 20863fi 20864rm conftest.$ac_ext 20865LIBS=$ac_func_search_save_LIBS 20866fi 20867{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5 20868printf "%s\n" "$ac_cv_search_socket" >&6; } 20869ac_res=$ac_cv_search_socket 20870if test "$ac_res" != no 20871then : 20872 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 20873 20874fi 20875 20876 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5 20877printf %s "checking for library containing gethostbyname... " >&6; } 20878if test ${ac_cv_search_gethostbyname+y} 20879then : 20880 printf %s "(cached) " >&6 20881else $as_nop 20882 ac_func_search_save_LIBS=$LIBS 20883cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20884/* end confdefs.h. */ 20885 20886/* Override any GCC internal prototype to avoid an error. 20887 Use char because int might match the return type of a GCC 20888 builtin and then its argument prototype would still apply. */ 20889char gethostbyname (); 20890int 20891main (void) 20892{ 20893return gethostbyname (); 20894 ; 20895 return 0; 20896} 20897_ACEOF 20898for ac_lib in '' nsl 20899do 20900 if test -z "$ac_lib"; then 20901 ac_res="none required" 20902 else 20903 ac_res=-l$ac_lib 20904 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 20905 fi 20906 if ac_fn_c_try_link "$LINENO" 20907then : 20908 ac_cv_search_gethostbyname=$ac_res 20909fi 20910rm -f core conftest.err conftest.$ac_objext conftest.beam \ 20911 conftest$ac_exeext 20912 if test ${ac_cv_search_gethostbyname+y} 20913then : 20914 break 20915fi 20916done 20917if test ${ac_cv_search_gethostbyname+y} 20918then : 20919 20920else $as_nop 20921 ac_cv_search_gethostbyname=no 20922fi 20923rm conftest.$ac_ext 20924LIBS=$ac_func_search_save_LIBS 20925fi 20926{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5 20927printf "%s\n" "$ac_cv_search_gethostbyname" >&6; } 20928ac_res=$ac_cv_search_gethostbyname 20929if test "$ac_res" != no 20930then : 20931 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 20932 20933fi 20934 20935 if test "$ac_cv_search_socket$ac_cv_search_gethostbyname" = "nono"; then 20936 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for main in -lws2_32" >&5 20937printf %s "checking for main in -lws2_32... " >&6; } 20938if test ${ac_cv_lib_ws2_32_main+y} 20939then : 20940 printf %s "(cached) " >&6 20941else $as_nop 20942 ac_check_lib_save_LIBS=$LIBS 20943LIBS="-lws2_32 $LIBS" 20944cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20945/* end confdefs.h. */ 20946 20947 20948int 20949main (void) 20950{ 20951return main (); 20952 ; 20953 return 0; 20954} 20955_ACEOF 20956if ac_fn_c_try_link "$LINENO" 20957then : 20958 ac_cv_lib_ws2_32_main=yes 20959else $as_nop 20960 ac_cv_lib_ws2_32_main=no 20961fi 20962rm -f core conftest.err conftest.$ac_objext conftest.beam \ 20963 conftest$ac_exeext conftest.$ac_ext 20964LIBS=$ac_check_lib_save_LIBS 20965fi 20966{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ws2_32_main" >&5 20967printf "%s\n" "$ac_cv_lib_ws2_32_main" >&6; } 20968if test "x$ac_cv_lib_ws2_32_main" = xyes 20969then : 20970 printf "%s\n" "#define HAVE_LIBWS2_32 1" >>confdefs.h 20971 20972 LIBS="-lws2_32 $LIBS" 20973 20974fi 20975 20976 fi 20977 20978 # Needs to come after above checks for libsocket & libnsl for SVR4 systems 20979 # Check whether --enable-ipv6 was given. 20980if test ${enable_ipv6+y} 20981then : 20982 enableval=$enable_ipv6; IPV6CONN=$enableval 20983else $as_nop 20984 ac_fn_c_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo" 20985if test "x$ac_cv_func_getaddrinfo" = xyes 20986then : 20987 IPV6CONN=yes 20988else $as_nop 20989 IPV6CONN=no 20990fi 20991 20992fi 20993 20994 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if IPv6 support should be built" >&5 20995printf %s "checking if IPv6 support should be built... " >&6; } 20996 if test "$IPV6CONN" = "yes"; then 20997 20998printf "%s\n" "#define IPv6 1" >>confdefs.h 20999 21000 fi 21001 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $IPV6CONN" >&5 21002printf "%s\n" "$IPV6CONN" >&6; } 21003 21004 # 4.3BSD-Reno added a new member to struct sockaddr_in 21005 ac_fn_c_check_member "$LINENO" "struct sockaddr_in" "sin_len" "ac_cv_member_struct_sockaddr_in_sin_len" " 21006#include <sys/types.h> 21007#include <sys/socket.h> 21008#include <netinet/in.h> 21009 21010" 21011if test "x$ac_cv_member_struct_sockaddr_in_sin_len" = xyes 21012then : 21013 21014printf "%s\n" "#define BSD44SOCKETS 1" >>confdefs.h 21015 21016fi 21017 21018 21019 # POSIX.1g changed the type of pointer passed to getsockname/getpeername/etc. 21020 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" " 21021$ac_includes_default 21022#include <sys/socket.h> 21023" 21024if test "x$ac_cv_type_socklen_t" = xyes 21025then : 21026 21027printf "%s\n" "#define HAVE_SOCKLEN_T 1" >>confdefs.h 21028 21029 21030fi 21031 21032 21033 # XPG4v2/UNIX95 added msg_control - check to see if we need to define 21034 # _XOPEN_SOURCE to get it (such as on Solaris) 21035 ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_control" "ac_cv_member_struct_msghdr_msg_control" " 21036$ac_includes_default 21037#include <sys/socket.h> 21038 21039" 21040if test "x$ac_cv_member_struct_msghdr_msg_control" = xyes 21041then : 21042 21043fi 21044 21045 # First try for Solaris in C99 compliant mode, which requires XPG6/UNIX03 21046 if test "x$ac_cv_member_struct_msghdr_msg_control" = xno; then 21047 unset ac_cv_member_struct_msghdr_msg_control 21048 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying again with _XOPEN_SOURCE=600" >&5 21049printf "%s\n" "$as_me: trying again with _XOPEN_SOURCE=600" >&6;} 21050 ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_control" "ac_cv_member_struct_msghdr_msg_control" " 21051#define _XOPEN_SOURCE 600 21052$ac_includes_default 21053#include <sys/socket.h> 21054 21055" 21056if test "x$ac_cv_member_struct_msghdr_msg_control" = xyes 21057then : 21058 21059printf "%s\n" "#define _XOPEN_SOURCE 600" >>confdefs.h 21060 21061 21062fi 21063 21064 fi 21065 # If that didn't work, fall back to XPG5/UNIX98 with C89 21066 if test "x$ac_cv_member_struct_msghdr_msg_control" = xno; then 21067 unset ac_cv_member_struct_msghdr_msg_control 21068 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying again with _XOPEN_SOURCE=500" >&5 21069printf "%s\n" "$as_me: trying again with _XOPEN_SOURCE=500" >&6;} 21070 ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_control" "ac_cv_member_struct_msghdr_msg_control" " 21071#define _XOPEN_SOURCE 500 21072$ac_includes_default 21073#include <sys/socket.h> 21074 21075" 21076if test "x$ac_cv_member_struct_msghdr_msg_control" = xyes 21077then : 21078 21079printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h 21080 21081 21082fi 21083 21084 fi 21085 21086 21087 21088 fi 21089 case $host_os in 21090 solaris*) localdef="yes" ;; 21091 *) localdef="no" ;; 21092 esac 21093 # Check whether --enable-local-transport was given. 21094if test ${enable_local_transport+y} 21095then : 21096 enableval=$enable_local_transport; LOCALCONN=$enableval 21097else $as_nop 21098 LOCALCONN=$localdef 21099fi 21100 21101 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support os-specific local connections" >&5 21102printf %s "checking if Xtrans should support os-specific local connections... " >&6; } 21103 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LOCALCONN" >&5 21104printf "%s\n" "$LOCALCONN" >&6; } 21105 if test "$LOCALCONN" = "yes"; then 21106 21107printf "%s\n" "#define LOCALCONN 1" >>confdefs.h 21108 21109 fi 21110 21111 # Other functions Xtrans may need 21112 ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp" 21113if test "x$ac_cv_func_strcasecmp" = xyes 21114then : 21115 printf "%s\n" "#define HAVE_STRCASECMP 1" >>confdefs.h 21116 21117fi 21118ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy" 21119if test "x$ac_cv_func_strlcpy" = xyes 21120then : 21121 printf "%s\n" "#define HAVE_STRLCPY 1" >>confdefs.h 21122 21123fi 21124 21125 21126 21127 21128case $host_os in 21129 linux*) 21130 OS_CFLAGS="-D_XOPEN_SOURCE" 21131 ;; 21132 *) 21133 OS_CFLAGS= 21134 ;; 21135esac 21136 21137save_CFLAGS="$CFLAGS" 21138CFLAGS="$CFLAGS -fvisibility=hidden" 21139CFLAGS_VISIBILITY= 21140cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21141/* end confdefs.h. */ 21142 21143 #if defined(__CYGWIN__) || defined(__MINGW32__) 21144 #error No visibility support 21145 #endif 21146 extern __attribute__((__visibility__("default"))) int x; 21147 21148_ACEOF 21149if ac_fn_c_try_compile "$LINENO" 21150then : 21151 CFLAGS_VISIBILITY=-fvisibility=hidden 21152fi 21153rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 21154CFLAGS="$save_CFLAGS" 21155OS_CFLAGS="$OS_CFLAGS $CFLAGS_VISIBILITY" 21156 21157 21158 21159ac_config_files="$ac_config_files Makefile doc/Makefile xfont2.pc" 21160 21161cat >confcache <<\_ACEOF 21162# This file is a shell script that caches the results of configure 21163# tests run on this system so they can be shared between configure 21164# scripts and configure runs, see configure's option --config-cache. 21165# It is not useful on other systems. If it contains results you don't 21166# want to keep, you may remove or edit it. 21167# 21168# config.status only pays attention to the cache file if you give it 21169# the --recheck option to rerun configure. 21170# 21171# `ac_cv_env_foo' variables (set or unset) will be overridden when 21172# loading this file, other *unset* `ac_cv_foo' will be assigned the 21173# following values. 21174 21175_ACEOF 21176 21177# The following way of writing the cache mishandles newlines in values, 21178# but we know of no workaround that is simple, portable, and efficient. 21179# So, we kill variables containing newlines. 21180# Ultrix sh set writes to stderr and can't be redirected directly, 21181# and sets the high bit in the cache file unless we assign to the vars. 21182( 21183 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 21184 eval ac_val=\$$ac_var 21185 case $ac_val in #( 21186 *${as_nl}*) 21187 case $ac_var in #( 21188 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 21189printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 21190 esac 21191 case $ac_var in #( 21192 _ | IFS | as_nl) ;; #( 21193 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 21194 *) { eval $ac_var=; unset $ac_var;} ;; 21195 esac ;; 21196 esac 21197 done 21198 21199 (set) 2>&1 | 21200 case $as_nl`(ac_space=' '; set) 2>&1` in #( 21201 *${as_nl}ac_space=\ *) 21202 # `set' does not quote correctly, so add quotes: double-quote 21203 # substitution turns \\\\ into \\, and sed turns \\ into \. 21204 sed -n \ 21205 "s/'/'\\\\''/g; 21206 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 21207 ;; #( 21208 *) 21209 # `set' quotes correctly as required by POSIX, so do not add quotes. 21210 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 21211 ;; 21212 esac | 21213 sort 21214) | 21215 sed ' 21216 /^ac_cv_env_/b end 21217 t clear 21218 :clear 21219 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/ 21220 t end 21221 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 21222 :end' >>confcache 21223if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 21224 if test -w "$cache_file"; then 21225 if test "x$cache_file" != "x/dev/null"; then 21226 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 21227printf "%s\n" "$as_me: updating cache $cache_file" >&6;} 21228 if test ! -f "$cache_file" || test -h "$cache_file"; then 21229 cat confcache >"$cache_file" 21230 else 21231 case $cache_file in #( 21232 */* | ?:*) 21233 mv -f confcache "$cache_file"$$ && 21234 mv -f "$cache_file"$$ "$cache_file" ;; #( 21235 *) 21236 mv -f confcache "$cache_file" ;; 21237 esac 21238 fi 21239 fi 21240 else 21241 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 21242printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;} 21243 fi 21244fi 21245rm -f confcache 21246 21247test "x$prefix" = xNONE && prefix=$ac_default_prefix 21248# Let make expand exec_prefix. 21249test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 21250 21251DEFS=-DHAVE_CONFIG_H 21252 21253ac_libobjs= 21254ac_ltlibobjs= 21255U= 21256for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 21257 # 1. Remove the extension, and $U if already installed. 21258 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 21259 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"` 21260 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 21261 # will be set to the directory where LIBOBJS objects are built. 21262 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 21263 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 21264done 21265LIBOBJS=$ac_libobjs 21266 21267LTLIBOBJS=$ac_ltlibobjs 21268 21269 21270{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 21271printf %s "checking that generated files are newer than configure... " >&6; } 21272 if test -n "$am_sleep_pid"; then 21273 # Hide warnings about reused PIDs. 21274 wait $am_sleep_pid 2>/dev/null 21275 fi 21276 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5 21277printf "%s\n" "done" >&6; } 21278 if test -n "$EXEEXT"; then 21279 am__EXEEXT_TRUE= 21280 am__EXEEXT_FALSE='#' 21281else 21282 am__EXEEXT_TRUE='#' 21283 am__EXEEXT_FALSE= 21284fi 21285 21286if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 21287 as_fn_error $? "conditional \"AMDEP\" was never defined. 21288Usually this means the macro was only invoked conditionally." "$LINENO" 5 21289fi 21290if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 21291 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 21292Usually this means the macro was only invoked conditionally." "$LINENO" 5 21293fi 21294if test -z "${ENABLE_DEVEL_DOCS_TRUE}" && test -z "${ENABLE_DEVEL_DOCS_FALSE}"; then 21295 as_fn_error $? "conditional \"ENABLE_DEVEL_DOCS\" was never defined. 21296Usually this means the macro was only invoked conditionally." "$LINENO" 5 21297fi 21298if test -z "${HAVE_XMLTO_TEXT_TRUE}" && test -z "${HAVE_XMLTO_TEXT_FALSE}"; then 21299 as_fn_error $? "conditional \"HAVE_XMLTO_TEXT\" was never defined. 21300Usually this means the macro was only invoked conditionally." "$LINENO" 5 21301fi 21302if test -z "${HAVE_XMLTO_TRUE}" && test -z "${HAVE_XMLTO_FALSE}"; then 21303 as_fn_error $? "conditional \"HAVE_XMLTO\" was never defined. 21304Usually this means the macro was only invoked conditionally." "$LINENO" 5 21305fi 21306if test -z "${HAVE_FOP_TRUE}" && test -z "${HAVE_FOP_FALSE}"; then 21307 as_fn_error $? "conditional \"HAVE_FOP\" was never defined. 21308Usually this means the macro was only invoked conditionally." "$LINENO" 5 21309fi 21310if test -z "${HAVE_STYLESHEETS_TRUE}" && test -z "${HAVE_STYLESHEETS_FALSE}"; then 21311 as_fn_error $? "conditional \"HAVE_STYLESHEETS\" was never defined. 21312Usually this means the macro was only invoked conditionally." "$LINENO" 5 21313fi 21314if test -z "${XFONT_FREETYPE_TRUE}" && test -z "${XFONT_FREETYPE_FALSE}"; then 21315 as_fn_error $? "conditional \"XFONT_FREETYPE\" was never defined. 21316Usually this means the macro was only invoked conditionally." "$LINENO" 5 21317fi 21318if test -z "${X_BZIP2_FONT_COMPRESSION_TRUE}" && test -z "${X_BZIP2_FONT_COMPRESSION_FALSE}"; then 21319 as_fn_error $? "conditional \"X_BZIP2_FONT_COMPRESSION\" was never defined. 21320Usually this means the macro was only invoked conditionally." "$LINENO" 5 21321fi 21322if test -z "${XFONT_BUILTINS_TRUE}" && test -z "${XFONT_BUILTINS_FALSE}"; then 21323 as_fn_error $? "conditional \"XFONT_BUILTINS\" was never defined. 21324Usually this means the macro was only invoked conditionally." "$LINENO" 5 21325fi 21326if test -z "${XFONT_PCFFORMAT_TRUE}" && test -z "${XFONT_PCFFORMAT_FALSE}"; then 21327 as_fn_error $? "conditional \"XFONT_PCFFORMAT\" was never defined. 21328Usually this means the macro was only invoked conditionally." "$LINENO" 5 21329fi 21330if test -z "${XFONT_PCF_OR_BUILTIN_TRUE}" && test -z "${XFONT_PCF_OR_BUILTIN_FALSE}"; then 21331 as_fn_error $? "conditional \"XFONT_PCF_OR_BUILTIN\" was never defined. 21332Usually this means the macro was only invoked conditionally." "$LINENO" 5 21333fi 21334if test -z "${XFONT_BDFFORMAT_TRUE}" && test -z "${XFONT_BDFFORMAT_FALSE}"; then 21335 as_fn_error $? "conditional \"XFONT_BDFFORMAT\" was never defined. 21336Usually this means the macro was only invoked conditionally." "$LINENO" 5 21337fi 21338if test -z "${XFONT_SNFFORMAT_TRUE}" && test -z "${XFONT_SNFFORMAT_FALSE}"; then 21339 as_fn_error $? "conditional \"XFONT_SNFFORMAT\" was never defined. 21340Usually this means the macro was only invoked conditionally." "$LINENO" 5 21341fi 21342if test -z "${XFONT_BITMAP_TRUE}" && test -z "${XFONT_BITMAP_FALSE}"; then 21343 as_fn_error $? "conditional \"XFONT_BITMAP\" was never defined. 21344Usually this means the macro was only invoked conditionally." "$LINENO" 5 21345fi 21346if test -z "${XFONT_FONTFILE_TRUE}" && test -z "${XFONT_FONTFILE_FALSE}"; then 21347 as_fn_error $? "conditional \"XFONT_FONTFILE\" was never defined. 21348Usually this means the macro was only invoked conditionally." "$LINENO" 5 21349fi 21350if test -z "${XFONT_FC_TRUE}" && test -z "${XFONT_FC_FALSE}"; then 21351 as_fn_error $? "conditional \"XFONT_FC\" was never defined. 21352Usually this means the macro was only invoked conditionally." "$LINENO" 5 21353fi 21354 21355: "${CONFIG_STATUS=./config.status}" 21356ac_write_fail=0 21357ac_clean_files_save=$ac_clean_files 21358ac_clean_files="$ac_clean_files $CONFIG_STATUS" 21359{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 21360printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;} 21361as_write_fail=0 21362cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 21363#! $SHELL 21364# Generated by $as_me. 21365# Run this file to recreate the current configuration. 21366# Compiler output produced by configure, useful for debugging 21367# configure, is in config.log if it exists. 21368 21369debug=false 21370ac_cs_recheck=false 21371ac_cs_silent=false 21372 21373SHELL=\${CONFIG_SHELL-$SHELL} 21374export SHELL 21375_ASEOF 21376cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 21377## -------------------- ## 21378## M4sh Initialization. ## 21379## -------------------- ## 21380 21381# Be more Bourne compatible 21382DUALCASE=1; export DUALCASE # for MKS sh 21383as_nop=: 21384if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 21385then : 21386 emulate sh 21387 NULLCMD=: 21388 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 21389 # is contrary to our usage. Disable this feature. 21390 alias -g '${1+"$@"}'='"$@"' 21391 setopt NO_GLOB_SUBST 21392else $as_nop 21393 case `(set -o) 2>/dev/null` in #( 21394 *posix*) : 21395 set -o posix ;; #( 21396 *) : 21397 ;; 21398esac 21399fi 21400 21401 21402 21403# Reset variables that may have inherited troublesome values from 21404# the environment. 21405 21406# IFS needs to be set, to space, tab, and newline, in precisely that order. 21407# (If _AS_PATH_WALK were called with IFS unset, it would have the 21408# side effect of setting IFS to empty, thus disabling word splitting.) 21409# Quoting is to prevent editors from complaining about space-tab. 21410as_nl=' 21411' 21412export as_nl 21413IFS=" "" $as_nl" 21414 21415PS1='$ ' 21416PS2='> ' 21417PS4='+ ' 21418 21419# Ensure predictable behavior from utilities with locale-dependent output. 21420LC_ALL=C 21421export LC_ALL 21422LANGUAGE=C 21423export LANGUAGE 21424 21425# We cannot yet rely on "unset" to work, but we need these variables 21426# to be unset--not just set to an empty or harmless value--now, to 21427# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct 21428# also avoids known problems related to "unset" and subshell syntax 21429# in other old shells (e.g. bash 2.01 and pdksh 5.2.14). 21430for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH 21431do eval test \${$as_var+y} \ 21432 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 21433done 21434 21435# Ensure that fds 0, 1, and 2 are open. 21436if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi 21437if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi 21438if (exec 3>&2) ; then :; else exec 2>/dev/null; fi 21439 21440# The user is always right. 21441if ${PATH_SEPARATOR+false} :; then 21442 PATH_SEPARATOR=: 21443 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 21444 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 21445 PATH_SEPARATOR=';' 21446 } 21447fi 21448 21449 21450# Find who we are. Look in the path if we contain no directory separator. 21451as_myself= 21452case $0 in #(( 21453 *[\\/]* ) as_myself=$0 ;; 21454 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21455for as_dir in $PATH 21456do 21457 IFS=$as_save_IFS 21458 case $as_dir in #((( 21459 '') as_dir=./ ;; 21460 */) ;; 21461 *) as_dir=$as_dir/ ;; 21462 esac 21463 test -r "$as_dir$0" && as_myself=$as_dir$0 && break 21464 done 21465IFS=$as_save_IFS 21466 21467 ;; 21468esac 21469# We did not find ourselves, most probably we were run as `sh COMMAND' 21470# in which case we are not to be found in the path. 21471if test "x$as_myself" = x; then 21472 as_myself=$0 21473fi 21474if test ! -f "$as_myself"; then 21475 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 21476 exit 1 21477fi 21478 21479 21480 21481# as_fn_error STATUS ERROR [LINENO LOG_FD] 21482# ---------------------------------------- 21483# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 21484# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 21485# script with STATUS, using 1 if that was 0. 21486as_fn_error () 21487{ 21488 as_status=$1; test $as_status -eq 0 && as_status=1 21489 if test "$4"; then 21490 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 21491 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 21492 fi 21493 printf "%s\n" "$as_me: error: $2" >&2 21494 as_fn_exit $as_status 21495} # as_fn_error 21496 21497 21498 21499# as_fn_set_status STATUS 21500# ----------------------- 21501# Set $? to STATUS, without forking. 21502as_fn_set_status () 21503{ 21504 return $1 21505} # as_fn_set_status 21506 21507# as_fn_exit STATUS 21508# ----------------- 21509# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 21510as_fn_exit () 21511{ 21512 set +e 21513 as_fn_set_status $1 21514 exit $1 21515} # as_fn_exit 21516 21517# as_fn_unset VAR 21518# --------------- 21519# Portably unset VAR. 21520as_fn_unset () 21521{ 21522 { eval $1=; unset $1;} 21523} 21524as_unset=as_fn_unset 21525 21526# as_fn_append VAR VALUE 21527# ---------------------- 21528# Append the text in VALUE to the end of the definition contained in VAR. Take 21529# advantage of any shell optimizations that allow amortized linear growth over 21530# repeated appends, instead of the typical quadratic growth present in naive 21531# implementations. 21532if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null 21533then : 21534 eval 'as_fn_append () 21535 { 21536 eval $1+=\$2 21537 }' 21538else $as_nop 21539 as_fn_append () 21540 { 21541 eval $1=\$$1\$2 21542 } 21543fi # as_fn_append 21544 21545# as_fn_arith ARG... 21546# ------------------ 21547# Perform arithmetic evaluation on the ARGs, and store the result in the 21548# global $as_val. Take advantage of shells that can avoid forks. The arguments 21549# must be portable across $(()) and expr. 21550if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null 21551then : 21552 eval 'as_fn_arith () 21553 { 21554 as_val=$(( $* )) 21555 }' 21556else $as_nop 21557 as_fn_arith () 21558 { 21559 as_val=`expr "$@" || test $? -eq 1` 21560 } 21561fi # as_fn_arith 21562 21563 21564if expr a : '\(a\)' >/dev/null 2>&1 && 21565 test "X`expr 00001 : '.*\(...\)'`" = X001; then 21566 as_expr=expr 21567else 21568 as_expr=false 21569fi 21570 21571if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 21572 as_basename=basename 21573else 21574 as_basename=false 21575fi 21576 21577if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 21578 as_dirname=dirname 21579else 21580 as_dirname=false 21581fi 21582 21583as_me=`$as_basename -- "$0" || 21584$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 21585 X"$0" : 'X\(//\)$' \| \ 21586 X"$0" : 'X\(/\)' \| . 2>/dev/null || 21587printf "%s\n" X/"$0" | 21588 sed '/^.*\/\([^/][^/]*\)\/*$/{ 21589 s//\1/ 21590 q 21591 } 21592 /^X\/\(\/\/\)$/{ 21593 s//\1/ 21594 q 21595 } 21596 /^X\/\(\/\).*/{ 21597 s//\1/ 21598 q 21599 } 21600 s/.*/./; q'` 21601 21602# Avoid depending upon Character Ranges. 21603as_cr_letters='abcdefghijklmnopqrstuvwxyz' 21604as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 21605as_cr_Letters=$as_cr_letters$as_cr_LETTERS 21606as_cr_digits='0123456789' 21607as_cr_alnum=$as_cr_Letters$as_cr_digits 21608 21609 21610# Determine whether it's possible to make 'echo' print without a newline. 21611# These variables are no longer used directly by Autoconf, but are AC_SUBSTed 21612# for compatibility with existing Makefiles. 21613ECHO_C= ECHO_N= ECHO_T= 21614case `echo -n x` in #((((( 21615-n*) 21616 case `echo 'xy\c'` in 21617 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 21618 xy) ECHO_C='\c';; 21619 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 21620 ECHO_T=' ';; 21621 esac;; 21622*) 21623 ECHO_N='-n';; 21624esac 21625 21626# For backward compatibility with old third-party macros, we provide 21627# the shell variables $as_echo and $as_echo_n. New code should use 21628# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. 21629as_echo='printf %s\n' 21630as_echo_n='printf %s' 21631 21632rm -f conf$$ conf$$.exe conf$$.file 21633if test -d conf$$.dir; then 21634 rm -f conf$$.dir/conf$$.file 21635else 21636 rm -f conf$$.dir 21637 mkdir conf$$.dir 2>/dev/null 21638fi 21639if (echo >conf$$.file) 2>/dev/null; then 21640 if ln -s conf$$.file conf$$ 2>/dev/null; then 21641 as_ln_s='ln -s' 21642 # ... but there are two gotchas: 21643 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 21644 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 21645 # In both cases, we have to default to `cp -pR'. 21646 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 21647 as_ln_s='cp -pR' 21648 elif ln conf$$.file conf$$ 2>/dev/null; then 21649 as_ln_s=ln 21650 else 21651 as_ln_s='cp -pR' 21652 fi 21653else 21654 as_ln_s='cp -pR' 21655fi 21656rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 21657rmdir conf$$.dir 2>/dev/null 21658 21659 21660# as_fn_mkdir_p 21661# ------------- 21662# Create "$as_dir" as a directory, including parents if necessary. 21663as_fn_mkdir_p () 21664{ 21665 21666 case $as_dir in #( 21667 -*) as_dir=./$as_dir;; 21668 esac 21669 test -d "$as_dir" || eval $as_mkdir_p || { 21670 as_dirs= 21671 while :; do 21672 case $as_dir in #( 21673 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 21674 *) as_qdir=$as_dir;; 21675 esac 21676 as_dirs="'$as_qdir' $as_dirs" 21677 as_dir=`$as_dirname -- "$as_dir" || 21678$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21679 X"$as_dir" : 'X\(//\)[^/]' \| \ 21680 X"$as_dir" : 'X\(//\)$' \| \ 21681 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 21682printf "%s\n" X"$as_dir" | 21683 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 21684 s//\1/ 21685 q 21686 } 21687 /^X\(\/\/\)[^/].*/{ 21688 s//\1/ 21689 q 21690 } 21691 /^X\(\/\/\)$/{ 21692 s//\1/ 21693 q 21694 } 21695 /^X\(\/\).*/{ 21696 s//\1/ 21697 q 21698 } 21699 s/.*/./; q'` 21700 test -d "$as_dir" && break 21701 done 21702 test -z "$as_dirs" || eval "mkdir $as_dirs" 21703 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 21704 21705 21706} # as_fn_mkdir_p 21707if mkdir -p . 2>/dev/null; then 21708 as_mkdir_p='mkdir -p "$as_dir"' 21709else 21710 test -d ./-p && rmdir ./-p 21711 as_mkdir_p=false 21712fi 21713 21714 21715# as_fn_executable_p FILE 21716# ----------------------- 21717# Test if FILE is an executable regular file. 21718as_fn_executable_p () 21719{ 21720 test -f "$1" && test -x "$1" 21721} # as_fn_executable_p 21722as_test_x='test -x' 21723as_executable_p=as_fn_executable_p 21724 21725# Sed expression to map a string onto a valid CPP name. 21726as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 21727 21728# Sed expression to map a string onto a valid variable name. 21729as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 21730 21731 21732exec 6>&1 21733## ----------------------------------- ## 21734## Main body of $CONFIG_STATUS script. ## 21735## ----------------------------------- ## 21736_ASEOF 21737test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 21738 21739cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21740# Save the log message, to keep $0 and so on meaningful, and to 21741# report actual input values of CONFIG_FILES etc. instead of their 21742# values after options handling. 21743ac_log=" 21744This file was extended by libXfont2 $as_me 2.0.5, which was 21745generated by GNU Autoconf 2.71. Invocation command line was 21746 21747 CONFIG_FILES = $CONFIG_FILES 21748 CONFIG_HEADERS = $CONFIG_HEADERS 21749 CONFIG_LINKS = $CONFIG_LINKS 21750 CONFIG_COMMANDS = $CONFIG_COMMANDS 21751 $ $0 $@ 21752 21753on `(hostname || uname -n) 2>/dev/null | sed 1q` 21754" 21755 21756_ACEOF 21757 21758case $ac_config_files in *" 21759"*) set x $ac_config_files; shift; ac_config_files=$*;; 21760esac 21761 21762case $ac_config_headers in *" 21763"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 21764esac 21765 21766 21767cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21768# Files that config.status was made for. 21769config_files="$ac_config_files" 21770config_headers="$ac_config_headers" 21771config_commands="$ac_config_commands" 21772 21773_ACEOF 21774 21775cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21776ac_cs_usage="\ 21777\`$as_me' instantiates files and other configuration actions 21778from templates according to the current configuration. Unless the files 21779and actions are specified as TAGs, all are instantiated by default. 21780 21781Usage: $0 [OPTION]... [TAG]... 21782 21783 -h, --help print this help, then exit 21784 -V, --version print version number and configuration settings, then exit 21785 --config print configuration, then exit 21786 -q, --quiet, --silent 21787 do not print progress messages 21788 -d, --debug don't remove temporary files 21789 --recheck update $as_me by reconfiguring in the same conditions 21790 --file=FILE[:TEMPLATE] 21791 instantiate the configuration file FILE 21792 --header=FILE[:TEMPLATE] 21793 instantiate the configuration header FILE 21794 21795Configuration files: 21796$config_files 21797 21798Configuration headers: 21799$config_headers 21800 21801Configuration commands: 21802$config_commands 21803 21804Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libXfont/issues>." 21805 21806_ACEOF 21807ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"` 21808ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"` 21809cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21810ac_cs_config='$ac_cs_config_escaped' 21811ac_cs_version="\\ 21812libXfont2 config.status 2.0.5 21813configured by $0, generated by GNU Autoconf 2.71, 21814 with options \\"\$ac_cs_config\\" 21815 21816Copyright (C) 2021 Free Software Foundation, Inc. 21817This config.status script is free software; the Free Software Foundation 21818gives unlimited permission to copy, distribute and modify it." 21819 21820ac_pwd='$ac_pwd' 21821srcdir='$srcdir' 21822INSTALL='$INSTALL' 21823MKDIR_P='$MKDIR_P' 21824AWK='$AWK' 21825test -n "\$AWK" || AWK=awk 21826_ACEOF 21827 21828cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21829# The default lists apply if the user does not specify any file. 21830ac_need_defaults=: 21831while test $# != 0 21832do 21833 case $1 in 21834 --*=?*) 21835 ac_option=`expr "X$1" : 'X\([^=]*\)='` 21836 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 21837 ac_shift=: 21838 ;; 21839 --*=) 21840 ac_option=`expr "X$1" : 'X\([^=]*\)='` 21841 ac_optarg= 21842 ac_shift=: 21843 ;; 21844 *) 21845 ac_option=$1 21846 ac_optarg=$2 21847 ac_shift=shift 21848 ;; 21849 esac 21850 21851 case $ac_option in 21852 # Handling of the options. 21853 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 21854 ac_cs_recheck=: ;; 21855 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 21856 printf "%s\n" "$ac_cs_version"; exit ;; 21857 --config | --confi | --conf | --con | --co | --c ) 21858 printf "%s\n" "$ac_cs_config"; exit ;; 21859 --debug | --debu | --deb | --de | --d | -d ) 21860 debug=: ;; 21861 --file | --fil | --fi | --f ) 21862 $ac_shift 21863 case $ac_optarg in 21864 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 21865 '') as_fn_error $? "missing file argument" ;; 21866 esac 21867 as_fn_append CONFIG_FILES " '$ac_optarg'" 21868 ac_need_defaults=false;; 21869 --header | --heade | --head | --hea ) 21870 $ac_shift 21871 case $ac_optarg in 21872 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 21873 esac 21874 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 21875 ac_need_defaults=false;; 21876 --he | --h) 21877 # Conflict between --help and --header 21878 as_fn_error $? "ambiguous option: \`$1' 21879Try \`$0 --help' for more information.";; 21880 --help | --hel | -h ) 21881 printf "%s\n" "$ac_cs_usage"; exit ;; 21882 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 21883 | -silent | --silent | --silen | --sile | --sil | --si | --s) 21884 ac_cs_silent=: ;; 21885 21886 # This is an error. 21887 -*) as_fn_error $? "unrecognized option: \`$1' 21888Try \`$0 --help' for more information." ;; 21889 21890 *) as_fn_append ac_config_targets " $1" 21891 ac_need_defaults=false ;; 21892 21893 esac 21894 shift 21895done 21896 21897ac_configure_extra_args= 21898 21899if $ac_cs_silent; then 21900 exec 6>/dev/null 21901 ac_configure_extra_args="$ac_configure_extra_args --silent" 21902fi 21903 21904_ACEOF 21905cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21906if \$ac_cs_recheck; then 21907 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 21908 shift 21909 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6 21910 CONFIG_SHELL='$SHELL' 21911 export CONFIG_SHELL 21912 exec "\$@" 21913fi 21914 21915_ACEOF 21916cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21917exec 5>>config.log 21918{ 21919 echo 21920 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 21921## Running $as_me. ## 21922_ASBOX 21923 printf "%s\n" "$ac_log" 21924} >&5 21925 21926_ACEOF 21927cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21928# 21929# INIT-COMMANDS 21930# 21931AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}" 21932 21933 21934# The HP-UX ksh and POSIX shell print the target directory to stdout 21935# if CDPATH is set. 21936(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 21937 21938sed_quote_subst='$sed_quote_subst' 21939double_quote_subst='$double_quote_subst' 21940delay_variable_subst='$delay_variable_subst' 21941macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 21942macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 21943enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 21944enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 21945pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 21946enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 21947shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`' 21948SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 21949ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 21950PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 21951host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 21952host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 21953host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 21954build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 21955build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 21956build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 21957SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 21958Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 21959GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 21960EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 21961FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 21962LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 21963NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 21964LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 21965max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 21966ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 21967exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 21968lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 21969lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 21970lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 21971lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 21972lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 21973reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 21974reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 21975OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 21976deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 21977file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 21978file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 21979want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 21980DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 21981sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 21982AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 21983AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 21984archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 21985STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 21986RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 21987old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 21988old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 21989old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 21990lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 21991CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 21992CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 21993compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 21994GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 21995lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 21996lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 21997lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`' 21998lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 21999lt_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"`' 22000lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`' 22001nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 22002lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 22003lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`' 22004objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 22005MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 22006lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 22007lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 22008lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 22009lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 22010lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 22011need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 22012MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 22013DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 22014NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 22015LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 22016OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 22017OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 22018libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 22019shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 22020extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 22021archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 22022enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 22023export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 22024whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 22025compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 22026old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 22027old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 22028archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 22029archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 22030module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 22031module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 22032with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 22033allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 22034no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 22035hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 22036hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 22037hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 22038hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 22039hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 22040hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 22041hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 22042inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 22043link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 22044always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 22045export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 22046exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 22047include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 22048prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 22049postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 22050file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 22051variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 22052need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 22053need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 22054version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 22055runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 22056shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 22057shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 22058libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 22059library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 22060soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 22061install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 22062postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 22063postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 22064finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 22065finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 22066hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 22067sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 22068configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`' 22069configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`' 22070hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 22071enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 22072enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 22073enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 22074old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 22075striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 22076 22077LTCC='$LTCC' 22078LTCFLAGS='$LTCFLAGS' 22079compiler='$compiler_DEFAULT' 22080 22081# A function that is used when there is no print builtin or printf. 22082func_fallback_echo () 22083{ 22084 eval 'cat <<_LTECHO_EOF 22085\$1 22086_LTECHO_EOF' 22087} 22088 22089# Quote evaled strings. 22090for var in SHELL \ 22091ECHO \ 22092PATH_SEPARATOR \ 22093SED \ 22094GREP \ 22095EGREP \ 22096FGREP \ 22097LD \ 22098NM \ 22099LN_S \ 22100lt_SP2NL \ 22101lt_NL2SP \ 22102reload_flag \ 22103OBJDUMP \ 22104deplibs_check_method \ 22105file_magic_cmd \ 22106file_magic_glob \ 22107want_nocaseglob \ 22108DLLTOOL \ 22109sharedlib_from_linklib_cmd \ 22110AR \ 22111AR_FLAGS \ 22112archiver_list_spec \ 22113STRIP \ 22114RANLIB \ 22115CC \ 22116CFLAGS \ 22117compiler \ 22118lt_cv_sys_global_symbol_pipe \ 22119lt_cv_sys_global_symbol_to_cdecl \ 22120lt_cv_sys_global_symbol_to_import \ 22121lt_cv_sys_global_symbol_to_c_name_address \ 22122lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 22123lt_cv_nm_interface \ 22124nm_file_list_spec \ 22125lt_cv_truncate_bin \ 22126lt_prog_compiler_no_builtin_flag \ 22127lt_prog_compiler_pic \ 22128lt_prog_compiler_wl \ 22129lt_prog_compiler_static \ 22130lt_cv_prog_compiler_c_o \ 22131need_locks \ 22132MANIFEST_TOOL \ 22133DSYMUTIL \ 22134NMEDIT \ 22135LIPO \ 22136OTOOL \ 22137OTOOL64 \ 22138shrext_cmds \ 22139export_dynamic_flag_spec \ 22140whole_archive_flag_spec \ 22141compiler_needs_object \ 22142with_gnu_ld \ 22143allow_undefined_flag \ 22144no_undefined_flag \ 22145hardcode_libdir_flag_spec \ 22146hardcode_libdir_separator \ 22147exclude_expsyms \ 22148include_expsyms \ 22149file_list_spec \ 22150variables_saved_for_relink \ 22151libname_spec \ 22152library_names_spec \ 22153soname_spec \ 22154install_override_mode \ 22155finish_eval \ 22156old_striplib \ 22157striplib; do 22158 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 22159 *[\\\\\\\`\\"\\\$]*) 22160 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 22161 ;; 22162 *) 22163 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 22164 ;; 22165 esac 22166done 22167 22168# Double-quote double-evaled strings. 22169for var in reload_cmds \ 22170old_postinstall_cmds \ 22171old_postuninstall_cmds \ 22172old_archive_cmds \ 22173extract_expsyms_cmds \ 22174old_archive_from_new_cmds \ 22175old_archive_from_expsyms_cmds \ 22176archive_cmds \ 22177archive_expsym_cmds \ 22178module_cmds \ 22179module_expsym_cmds \ 22180export_symbols_cmds \ 22181prelink_cmds \ 22182postlink_cmds \ 22183postinstall_cmds \ 22184postuninstall_cmds \ 22185finish_cmds \ 22186sys_lib_search_path_spec \ 22187configure_time_dlsearch_path \ 22188configure_time_lt_sys_library_path; do 22189 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 22190 *[\\\\\\\`\\"\\\$]*) 22191 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 22192 ;; 22193 *) 22194 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 22195 ;; 22196 esac 22197done 22198 22199ac_aux_dir='$ac_aux_dir' 22200 22201# See if we are running on zsh, and set the options that allow our 22202# commands through without removal of \ escapes INIT. 22203if test -n "\${ZSH_VERSION+set}"; then 22204 setopt NO_GLOB_SUBST 22205fi 22206 22207 22208 PACKAGE='$PACKAGE' 22209 VERSION='$VERSION' 22210 RM='$RM' 22211 ofile='$ofile' 22212 22213 22214 22215 22216_ACEOF 22217 22218cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 22219 22220# Handling of arguments. 22221for ac_config_target in $ac_config_targets 22222do 22223 case $ac_config_target in 22224 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 22225 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 22226 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 22227 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 22228 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; 22229 "xfont2.pc") CONFIG_FILES="$CONFIG_FILES xfont2.pc" ;; 22230 22231 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 22232 esac 22233done 22234 22235 22236# If the user did not use the arguments to specify the items to instantiate, 22237# then the envvar interface is used. Set only those that are not. 22238# We use the long form for the default assignment because of an extremely 22239# bizarre bug on SunOS 4.1.3. 22240if $ac_need_defaults; then 22241 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files 22242 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers 22243 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands 22244fi 22245 22246# Have a temporary directory for convenience. Make it in the build tree 22247# simply because there is no reason against having it here, and in addition, 22248# creating and moving files from /tmp can sometimes cause problems. 22249# Hook for its removal unless debugging. 22250# Note that there is a small window in which the directory will not be cleaned: 22251# after its creation but before its name has been assigned to `$tmp'. 22252$debug || 22253{ 22254 tmp= ac_tmp= 22255 trap 'exit_status=$? 22256 : "${ac_tmp:=$tmp}" 22257 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 22258' 0 22259 trap 'as_fn_exit 1' 1 2 13 15 22260} 22261# Create a (secure) tmp directory for tmp files. 22262 22263{ 22264 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 22265 test -d "$tmp" 22266} || 22267{ 22268 tmp=./conf$$-$RANDOM 22269 (umask 077 && mkdir "$tmp") 22270} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 22271ac_tmp=$tmp 22272 22273# Set up the scripts for CONFIG_FILES section. 22274# No need to generate them if there are no CONFIG_FILES. 22275# This happens for instance with `./config.status config.h'. 22276if test -n "$CONFIG_FILES"; then 22277 22278 22279ac_cr=`echo X | tr X '\015'` 22280# On cygwin, bash can eat \r inside `` if the user requested igncr. 22281# But we know of no other shell where ac_cr would be empty at this 22282# point, so we can use a bashism as a fallback. 22283if test "x$ac_cr" = x; then 22284 eval ac_cr=\$\'\\r\' 22285fi 22286ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 22287if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 22288 ac_cs_awk_cr='\\r' 22289else 22290 ac_cs_awk_cr=$ac_cr 22291fi 22292 22293echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 22294_ACEOF 22295 22296 22297{ 22298 echo "cat >conf$$subs.awk <<_ACEOF" && 22299 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 22300 echo "_ACEOF" 22301} >conf$$subs.sh || 22302 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 22303ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 22304ac_delim='%!_!# ' 22305for ac_last_try in false false false false false :; do 22306 . ./conf$$subs.sh || 22307 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 22308 22309 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 22310 if test $ac_delim_n = $ac_delim_num; then 22311 break 22312 elif $ac_last_try; then 22313 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 22314 else 22315 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 22316 fi 22317done 22318rm -f conf$$subs.sh 22319 22320cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 22321cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 22322_ACEOF 22323sed -n ' 22324h 22325s/^/S["/; s/!.*/"]=/ 22326p 22327g 22328s/^[^!]*!// 22329:repl 22330t repl 22331s/'"$ac_delim"'$// 22332t delim 22333:nl 22334h 22335s/\(.\{148\}\)..*/\1/ 22336t more1 22337s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 22338p 22339n 22340b repl 22341:more1 22342s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 22343p 22344g 22345s/.\{148\}// 22346t nl 22347:delim 22348h 22349s/\(.\{148\}\)..*/\1/ 22350t more2 22351s/["\\]/\\&/g; s/^/"/; s/$/"/ 22352p 22353b 22354:more2 22355s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 22356p 22357g 22358s/.\{148\}// 22359t delim 22360' <conf$$subs.awk | sed ' 22361/^[^""]/{ 22362 N 22363 s/\n// 22364} 22365' >>$CONFIG_STATUS || ac_write_fail=1 22366rm -f conf$$subs.awk 22367cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 22368_ACAWK 22369cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 22370 for (key in S) S_is_set[key] = 1 22371 FS = "" 22372 22373} 22374{ 22375 line = $ 0 22376 nfields = split(line, field, "@") 22377 substed = 0 22378 len = length(field[1]) 22379 for (i = 2; i < nfields; i++) { 22380 key = field[i] 22381 keylen = length(key) 22382 if (S_is_set[key]) { 22383 value = S[key] 22384 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 22385 len += length(value) + length(field[++i]) 22386 substed = 1 22387 } else 22388 len += 1 + keylen 22389 } 22390 22391 print line 22392} 22393 22394_ACAWK 22395_ACEOF 22396cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 22397if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 22398 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 22399else 22400 cat 22401fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 22402 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 22403_ACEOF 22404 22405# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 22406# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 22407# trailing colons and then remove the whole line if VPATH becomes empty 22408# (actually we leave an empty line to preserve line numbers). 22409if test "x$srcdir" = x.; then 22410 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 22411h 22412s/// 22413s/^/:/ 22414s/[ ]*$/:/ 22415s/:\$(srcdir):/:/g 22416s/:\${srcdir}:/:/g 22417s/:@srcdir@:/:/g 22418s/^:*// 22419s/:*$// 22420x 22421s/\(=[ ]*\).*/\1/ 22422G 22423s/\n// 22424s/^[^=]*=[ ]*$// 22425}' 22426fi 22427 22428cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 22429fi # test -n "$CONFIG_FILES" 22430 22431# Set up the scripts for CONFIG_HEADERS section. 22432# No need to generate them if there are no CONFIG_HEADERS. 22433# This happens for instance with `./config.status Makefile'. 22434if test -n "$CONFIG_HEADERS"; then 22435cat >"$ac_tmp/defines.awk" <<\_ACAWK || 22436BEGIN { 22437_ACEOF 22438 22439# Transform confdefs.h into an awk script `defines.awk', embedded as 22440# here-document in config.status, that substitutes the proper values into 22441# config.h.in to produce config.h. 22442 22443# Create a delimiter string that does not exist in confdefs.h, to ease 22444# handling of long lines. 22445ac_delim='%!_!# ' 22446for ac_last_try in false false :; do 22447 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 22448 if test -z "$ac_tt"; then 22449 break 22450 elif $ac_last_try; then 22451 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 22452 else 22453 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 22454 fi 22455done 22456 22457# For the awk script, D is an array of macro values keyed by name, 22458# likewise P contains macro parameters if any. Preserve backslash 22459# newline sequences. 22460 22461ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 22462sed -n ' 22463s/.\{148\}/&'"$ac_delim"'/g 22464t rset 22465:rset 22466s/^[ ]*#[ ]*define[ ][ ]*/ / 22467t def 22468d 22469:def 22470s/\\$// 22471t bsnl 22472s/["\\]/\\&/g 22473s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 22474D["\1"]=" \3"/p 22475s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 22476d 22477:bsnl 22478s/["\\]/\\&/g 22479s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 22480D["\1"]=" \3\\\\\\n"\\/p 22481t cont 22482s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 22483t cont 22484d 22485:cont 22486n 22487s/.\{148\}/&'"$ac_delim"'/g 22488t clear 22489:clear 22490s/\\$// 22491t bsnlc 22492s/["\\]/\\&/g; s/^/"/; s/$/"/p 22493d 22494:bsnlc 22495s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 22496b cont 22497' <confdefs.h | sed ' 22498s/'"$ac_delim"'/"\\\ 22499"/g' >>$CONFIG_STATUS || ac_write_fail=1 22500 22501cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 22502 for (key in D) D_is_set[key] = 1 22503 FS = "" 22504} 22505/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 22506 line = \$ 0 22507 split(line, arg, " ") 22508 if (arg[1] == "#") { 22509 defundef = arg[2] 22510 mac1 = arg[3] 22511 } else { 22512 defundef = substr(arg[1], 2) 22513 mac1 = arg[2] 22514 } 22515 split(mac1, mac2, "(") #) 22516 macro = mac2[1] 22517 prefix = substr(line, 1, index(line, defundef) - 1) 22518 if (D_is_set[macro]) { 22519 # Preserve the white space surrounding the "#". 22520 print prefix "define", macro P[macro] D[macro] 22521 next 22522 } else { 22523 # Replace #undef with comments. This is necessary, for example, 22524 # in the case of _POSIX_SOURCE, which is predefined and required 22525 # on some systems where configure will not decide to define it. 22526 if (defundef == "undef") { 22527 print "/*", prefix defundef, macro, "*/" 22528 next 22529 } 22530 } 22531} 22532{ print } 22533_ACAWK 22534_ACEOF 22535cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 22536 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 22537fi # test -n "$CONFIG_HEADERS" 22538 22539 22540eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 22541shift 22542for ac_tag 22543do 22544 case $ac_tag in 22545 :[FHLC]) ac_mode=$ac_tag; continue;; 22546 esac 22547 case $ac_mode$ac_tag in 22548 :[FHL]*:*);; 22549 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 22550 :[FH]-) ac_tag=-:-;; 22551 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 22552 esac 22553 ac_save_IFS=$IFS 22554 IFS=: 22555 set x $ac_tag 22556 IFS=$ac_save_IFS 22557 shift 22558 ac_file=$1 22559 shift 22560 22561 case $ac_mode in 22562 :L) ac_source=$1;; 22563 :[FH]) 22564 ac_file_inputs= 22565 for ac_f 22566 do 22567 case $ac_f in 22568 -) ac_f="$ac_tmp/stdin";; 22569 *) # Look for the file first in the build tree, then in the source tree 22570 # (if the path is not absolute). The absolute path cannot be DOS-style, 22571 # because $ac_f cannot contain `:'. 22572 test -f "$ac_f" || 22573 case $ac_f in 22574 [\\/$]*) false;; 22575 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 22576 esac || 22577 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 22578 esac 22579 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 22580 as_fn_append ac_file_inputs " '$ac_f'" 22581 done 22582 22583 # Let's still pretend it is `configure' which instantiates (i.e., don't 22584 # use $as_me), people would be surprised to read: 22585 # /* config.h. Generated by config.status. */ 22586 configure_input='Generated from '` 22587 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 22588 `' by configure.' 22589 if test x"$ac_file" != x-; then 22590 configure_input="$ac_file. $configure_input" 22591 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 22592printf "%s\n" "$as_me: creating $ac_file" >&6;} 22593 fi 22594 # Neutralize special characters interpreted by sed in replacement strings. 22595 case $configure_input in #( 22596 *\&* | *\|* | *\\* ) 22597 ac_sed_conf_input=`printf "%s\n" "$configure_input" | 22598 sed 's/[\\\\&|]/\\\\&/g'`;; #( 22599 *) ac_sed_conf_input=$configure_input;; 22600 esac 22601 22602 case $ac_tag in 22603 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 22604 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 22605 esac 22606 ;; 22607 esac 22608 22609 ac_dir=`$as_dirname -- "$ac_file" || 22610$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22611 X"$ac_file" : 'X\(//\)[^/]' \| \ 22612 X"$ac_file" : 'X\(//\)$' \| \ 22613 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 22614printf "%s\n" X"$ac_file" | 22615 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 22616 s//\1/ 22617 q 22618 } 22619 /^X\(\/\/\)[^/].*/{ 22620 s//\1/ 22621 q 22622 } 22623 /^X\(\/\/\)$/{ 22624 s//\1/ 22625 q 22626 } 22627 /^X\(\/\).*/{ 22628 s//\1/ 22629 q 22630 } 22631 s/.*/./; q'` 22632 as_dir="$ac_dir"; as_fn_mkdir_p 22633 ac_builddir=. 22634 22635case "$ac_dir" in 22636.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 22637*) 22638 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 22639 # A ".." for each directory in $ac_dir_suffix. 22640 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 22641 case $ac_top_builddir_sub in 22642 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 22643 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 22644 esac ;; 22645esac 22646ac_abs_top_builddir=$ac_pwd 22647ac_abs_builddir=$ac_pwd$ac_dir_suffix 22648# for backward compatibility: 22649ac_top_builddir=$ac_top_build_prefix 22650 22651case $srcdir in 22652 .) # We are building in place. 22653 ac_srcdir=. 22654 ac_top_srcdir=$ac_top_builddir_sub 22655 ac_abs_top_srcdir=$ac_pwd ;; 22656 [\\/]* | ?:[\\/]* ) # Absolute name. 22657 ac_srcdir=$srcdir$ac_dir_suffix; 22658 ac_top_srcdir=$srcdir 22659 ac_abs_top_srcdir=$srcdir ;; 22660 *) # Relative name. 22661 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 22662 ac_top_srcdir=$ac_top_build_prefix$srcdir 22663 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 22664esac 22665ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 22666 22667 22668 case $ac_mode in 22669 :F) 22670 # 22671 # CONFIG_FILE 22672 # 22673 22674 case $INSTALL in 22675 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 22676 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 22677 esac 22678 ac_MKDIR_P=$MKDIR_P 22679 case $MKDIR_P in 22680 [\\/$]* | ?:[\\/]* ) ;; 22681 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 22682 esac 22683_ACEOF 22684 22685cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 22686# If the template does not know about datarootdir, expand it. 22687# FIXME: This hack should be removed a few years after 2.60. 22688ac_datarootdir_hack=; ac_datarootdir_seen= 22689ac_sed_dataroot=' 22690/datarootdir/ { 22691 p 22692 q 22693} 22694/@datadir@/p 22695/@docdir@/p 22696/@infodir@/p 22697/@localedir@/p 22698/@mandir@/p' 22699case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 22700*datarootdir*) ac_datarootdir_seen=yes;; 22701*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 22702 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 22703printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 22704_ACEOF 22705cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 22706 ac_datarootdir_hack=' 22707 s&@datadir@&$datadir&g 22708 s&@docdir@&$docdir&g 22709 s&@infodir@&$infodir&g 22710 s&@localedir@&$localedir&g 22711 s&@mandir@&$mandir&g 22712 s&\\\${datarootdir}&$datarootdir&g' ;; 22713esac 22714_ACEOF 22715 22716# Neutralize VPATH when `$srcdir' = `.'. 22717# Shell code in configure.ac might set extrasub. 22718# FIXME: do we really want to maintain this feature? 22719cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 22720ac_sed_extra="$ac_vpsub 22721$extrasub 22722_ACEOF 22723cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 22724:t 22725/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 22726s|@configure_input@|$ac_sed_conf_input|;t t 22727s&@top_builddir@&$ac_top_builddir_sub&;t t 22728s&@top_build_prefix@&$ac_top_build_prefix&;t t 22729s&@srcdir@&$ac_srcdir&;t t 22730s&@abs_srcdir@&$ac_abs_srcdir&;t t 22731s&@top_srcdir@&$ac_top_srcdir&;t t 22732s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 22733s&@builddir@&$ac_builddir&;t t 22734s&@abs_builddir@&$ac_abs_builddir&;t t 22735s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 22736s&@INSTALL@&$ac_INSTALL&;t t 22737s&@MKDIR_P@&$ac_MKDIR_P&;t t 22738$ac_datarootdir_hack 22739" 22740eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 22741 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 22742 22743test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 22744 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 22745 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 22746 "$ac_tmp/out"`; test -z "$ac_out"; } && 22747 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 22748which seems to be undefined. Please make sure it is defined" >&5 22749printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 22750which seems to be undefined. Please make sure it is defined" >&2;} 22751 22752 rm -f "$ac_tmp/stdin" 22753 case $ac_file in 22754 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 22755 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 22756 esac \ 22757 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 22758 ;; 22759 :H) 22760 # 22761 # CONFIG_HEADER 22762 # 22763 if test x"$ac_file" != x-; then 22764 { 22765 printf "%s\n" "/* $configure_input */" >&1 \ 22766 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 22767 } >"$ac_tmp/config.h" \ 22768 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 22769 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 22770 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 22771printf "%s\n" "$as_me: $ac_file is unchanged" >&6;} 22772 else 22773 rm -f "$ac_file" 22774 mv "$ac_tmp/config.h" "$ac_file" \ 22775 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 22776 fi 22777 else 22778 printf "%s\n" "/* $configure_input */" >&1 \ 22779 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 22780 || as_fn_error $? "could not create -" "$LINENO" 5 22781 fi 22782# Compute "$ac_file"'s index in $config_headers. 22783_am_arg="$ac_file" 22784_am_stamp_count=1 22785for _am_header in $config_headers :; do 22786 case $_am_header in 22787 $_am_arg | $_am_arg:* ) 22788 break ;; 22789 * ) 22790 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 22791 esac 22792done 22793echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 22794$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22795 X"$_am_arg" : 'X\(//\)[^/]' \| \ 22796 X"$_am_arg" : 'X\(//\)$' \| \ 22797 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 22798printf "%s\n" X"$_am_arg" | 22799 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 22800 s//\1/ 22801 q 22802 } 22803 /^X\(\/\/\)[^/].*/{ 22804 s//\1/ 22805 q 22806 } 22807 /^X\(\/\/\)$/{ 22808 s//\1/ 22809 q 22810 } 22811 /^X\(\/\).*/{ 22812 s//\1/ 22813 q 22814 } 22815 s/.*/./; q'`/stamp-h$_am_stamp_count 22816 ;; 22817 22818 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 22819printf "%s\n" "$as_me: executing $ac_file commands" >&6;} 22820 ;; 22821 esac 22822 22823 22824 case $ac_file$ac_mode in 22825 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 22826 # Older Autoconf quotes --file arguments for eval, but not when files 22827 # are listed without --file. Let's play safe and only enable the eval 22828 # if we detect the quoting. 22829 # TODO: see whether this extra hack can be removed once we start 22830 # requiring Autoconf 2.70 or later. 22831 case $CONFIG_FILES in #( 22832 *\'*) : 22833 eval set x "$CONFIG_FILES" ;; #( 22834 *) : 22835 set x $CONFIG_FILES ;; #( 22836 *) : 22837 ;; 22838esac 22839 shift 22840 # Used to flag and report bootstrapping failures. 22841 am_rc=0 22842 for am_mf 22843 do 22844 # Strip MF so we end up with the name of the file. 22845 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'` 22846 # Check whether this is an Automake generated Makefile which includes 22847 # dependency-tracking related rules and includes. 22848 # Grep'ing the whole file directly is not great: AIX grep has a line 22849 # limit of 2048, but all sed's we know have understand at least 4000. 22850 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \ 22851 || continue 22852 am_dirpart=`$as_dirname -- "$am_mf" || 22853$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22854 X"$am_mf" : 'X\(//\)[^/]' \| \ 22855 X"$am_mf" : 'X\(//\)$' \| \ 22856 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 22857printf "%s\n" X"$am_mf" | 22858 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 22859 s//\1/ 22860 q 22861 } 22862 /^X\(\/\/\)[^/].*/{ 22863 s//\1/ 22864 q 22865 } 22866 /^X\(\/\/\)$/{ 22867 s//\1/ 22868 q 22869 } 22870 /^X\(\/\).*/{ 22871 s//\1/ 22872 q 22873 } 22874 s/.*/./; q'` 22875 am_filepart=`$as_basename -- "$am_mf" || 22876$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \ 22877 X"$am_mf" : 'X\(//\)$' \| \ 22878 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 22879printf "%s\n" X/"$am_mf" | 22880 sed '/^.*\/\([^/][^/]*\)\/*$/{ 22881 s//\1/ 22882 q 22883 } 22884 /^X\/\(\/\/\)$/{ 22885 s//\1/ 22886 q 22887 } 22888 /^X\/\(\/\).*/{ 22889 s//\1/ 22890 q 22891 } 22892 s/.*/./; q'` 22893 { echo "$as_me:$LINENO: cd "$am_dirpart" \ 22894 && sed -e '/# am--include-marker/d' "$am_filepart" \ 22895 | $MAKE -f - am--depfiles" >&5 22896 (cd "$am_dirpart" \ 22897 && sed -e '/# am--include-marker/d' "$am_filepart" \ 22898 | $MAKE -f - am--depfiles) >&5 2>&5 22899 ac_status=$? 22900 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22901 (exit $ac_status); } || am_rc=$? 22902 done 22903 if test $am_rc -ne 0; then 22904 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 22905printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 22906as_fn_error $? "Something went wrong bootstrapping makefile fragments 22907 for automatic dependency tracking. If GNU make was not used, consider 22908 re-running the configure script with MAKE=\"gmake\" (or whatever is 22909 necessary). You can also try re-running configure with the 22910 '--disable-dependency-tracking' option to at least be able to build 22911 the package (albeit without support for automatic dependency tracking). 22912See \`config.log' for more details" "$LINENO" 5; } 22913 fi 22914 { am_dirpart=; unset am_dirpart;} 22915 { am_filepart=; unset am_filepart;} 22916 { am_mf=; unset am_mf;} 22917 { am_rc=; unset am_rc;} 22918 rm -f conftest-deps.mk 22919} 22920 ;; 22921 "libtool":C) 22922 22923 # See if we are running on zsh, and set the options that allow our 22924 # commands through without removal of \ escapes. 22925 if test -n "${ZSH_VERSION+set}"; then 22926 setopt NO_GLOB_SUBST 22927 fi 22928 22929 cfgfile=${ofile}T 22930 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 22931 $RM "$cfgfile" 22932 22933 cat <<_LT_EOF >> "$cfgfile" 22934#! $SHELL 22935# Generated automatically by $as_me ($PACKAGE) $VERSION 22936# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 22937# NOTE: Changes made to this file will be lost: look at ltmain.sh. 22938 22939# Provide generalized library-building support services. 22940# Written by Gordon Matzigkeit, 1996 22941 22942# Copyright (C) 2014 Free Software Foundation, Inc. 22943# This is free software; see the source for copying conditions. There is NO 22944# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 22945 22946# GNU Libtool is free software; you can redistribute it and/or modify 22947# it under the terms of the GNU General Public License as published by 22948# the Free Software Foundation; either version 2 of of the License, or 22949# (at your option) any later version. 22950# 22951# As a special exception to the GNU General Public License, if you 22952# distribute this file as part of a program or library that is built 22953# using GNU Libtool, you may include this file under the same 22954# distribution terms that you use for the rest of that program. 22955# 22956# GNU Libtool is distributed in the hope that it will be useful, but 22957# WITHOUT ANY WARRANTY; without even the implied warranty of 22958# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 22959# GNU General Public License for more details. 22960# 22961# You should have received a copy of the GNU General Public License 22962# along with this program. If not, see <http://www.gnu.org/licenses/>. 22963 22964 22965# The names of the tagged configurations supported by this script. 22966available_tags='' 22967 22968# Configured defaults for sys_lib_dlsearch_path munging. 22969: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} 22970 22971# ### BEGIN LIBTOOL CONFIG 22972 22973# Which release of libtool.m4 was used? 22974macro_version=$macro_version 22975macro_revision=$macro_revision 22976 22977# Whether or not to build shared libraries. 22978build_libtool_libs=$enable_shared 22979 22980# Whether or not to build static libraries. 22981build_old_libs=$enable_static 22982 22983# What type of objects to build. 22984pic_mode=$pic_mode 22985 22986# Whether or not to optimize for fast installation. 22987fast_install=$enable_fast_install 22988 22989# Shared archive member basename,for filename based shared library versioning on AIX. 22990shared_archive_member_spec=$shared_archive_member_spec 22991 22992# Shell to use when invoking shell scripts. 22993SHELL=$lt_SHELL 22994 22995# An echo program that protects backslashes. 22996ECHO=$lt_ECHO 22997 22998# The PATH separator for the build system. 22999PATH_SEPARATOR=$lt_PATH_SEPARATOR 23000 23001# The host system. 23002host_alias=$host_alias 23003host=$host 23004host_os=$host_os 23005 23006# The build system. 23007build_alias=$build_alias 23008build=$build 23009build_os=$build_os 23010 23011# A sed program that does not truncate output. 23012SED=$lt_SED 23013 23014# Sed that helps us avoid accidentally triggering echo(1) options like -n. 23015Xsed="\$SED -e 1s/^X//" 23016 23017# A grep program that handles long lines. 23018GREP=$lt_GREP 23019 23020# An ERE matcher. 23021EGREP=$lt_EGREP 23022 23023# A literal string matcher. 23024FGREP=$lt_FGREP 23025 23026# A BSD- or MS-compatible name lister. 23027NM=$lt_NM 23028 23029# Whether we need soft or hard links. 23030LN_S=$lt_LN_S 23031 23032# What is the maximum length of a command? 23033max_cmd_len=$max_cmd_len 23034 23035# Object file suffix (normally "o"). 23036objext=$ac_objext 23037 23038# Executable file suffix (normally ""). 23039exeext=$exeext 23040 23041# whether the shell understands "unset". 23042lt_unset=$lt_unset 23043 23044# turn spaces into newlines. 23045SP2NL=$lt_lt_SP2NL 23046 23047# turn newlines into spaces. 23048NL2SP=$lt_lt_NL2SP 23049 23050# convert \$build file names to \$host format. 23051to_host_file_cmd=$lt_cv_to_host_file_cmd 23052 23053# convert \$build files to toolchain format. 23054to_tool_file_cmd=$lt_cv_to_tool_file_cmd 23055 23056# An object symbol dumper. 23057OBJDUMP=$lt_OBJDUMP 23058 23059# Method to check whether dependent libraries are shared objects. 23060deplibs_check_method=$lt_deplibs_check_method 23061 23062# Command to use when deplibs_check_method = "file_magic". 23063file_magic_cmd=$lt_file_magic_cmd 23064 23065# How to find potential files when deplibs_check_method = "file_magic". 23066file_magic_glob=$lt_file_magic_glob 23067 23068# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 23069want_nocaseglob=$lt_want_nocaseglob 23070 23071# DLL creation program. 23072DLLTOOL=$lt_DLLTOOL 23073 23074# Command to associate shared and link libraries. 23075sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 23076 23077# The archiver. 23078AR=$lt_AR 23079 23080# Flags to create an archive. 23081AR_FLAGS=$lt_AR_FLAGS 23082 23083# How to feed a file listing to the archiver. 23084archiver_list_spec=$lt_archiver_list_spec 23085 23086# A symbol stripping program. 23087STRIP=$lt_STRIP 23088 23089# Commands used to install an old-style archive. 23090RANLIB=$lt_RANLIB 23091old_postinstall_cmds=$lt_old_postinstall_cmds 23092old_postuninstall_cmds=$lt_old_postuninstall_cmds 23093 23094# Whether to use a lock for old archive extraction. 23095lock_old_archive_extraction=$lock_old_archive_extraction 23096 23097# A C compiler. 23098LTCC=$lt_CC 23099 23100# LTCC compiler flags. 23101LTCFLAGS=$lt_CFLAGS 23102 23103# Take the output of nm and produce a listing of raw symbols and C names. 23104global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 23105 23106# Transform the output of nm in a proper C declaration. 23107global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 23108 23109# Transform the output of nm into a list of symbols to manually relocate. 23110global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import 23111 23112# Transform the output of nm in a C name address pair. 23113global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 23114 23115# Transform the output of nm in a C name address pair when lib prefix is needed. 23116global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 23117 23118# The name lister interface. 23119nm_interface=$lt_lt_cv_nm_interface 23120 23121# Specify filename containing input files for \$NM. 23122nm_file_list_spec=$lt_nm_file_list_spec 23123 23124# The root where to search for dependent libraries,and where our libraries should be installed. 23125lt_sysroot=$lt_sysroot 23126 23127# Command to truncate a binary pipe. 23128lt_truncate_bin=$lt_lt_cv_truncate_bin 23129 23130# The name of the directory that contains temporary libtool files. 23131objdir=$objdir 23132 23133# Used to examine libraries when file_magic_cmd begins with "file". 23134MAGIC_CMD=$MAGIC_CMD 23135 23136# Must we lock files when doing compilation? 23137need_locks=$lt_need_locks 23138 23139# Manifest tool. 23140MANIFEST_TOOL=$lt_MANIFEST_TOOL 23141 23142# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 23143DSYMUTIL=$lt_DSYMUTIL 23144 23145# Tool to change global to local symbols on Mac OS X. 23146NMEDIT=$lt_NMEDIT 23147 23148# Tool to manipulate fat objects and archives on Mac OS X. 23149LIPO=$lt_LIPO 23150 23151# ldd/readelf like tool for Mach-O binaries on Mac OS X. 23152OTOOL=$lt_OTOOL 23153 23154# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 23155OTOOL64=$lt_OTOOL64 23156 23157# Old archive suffix (normally "a"). 23158libext=$libext 23159 23160# Shared library suffix (normally ".so"). 23161shrext_cmds=$lt_shrext_cmds 23162 23163# The commands to extract the exported symbol list from a shared archive. 23164extract_expsyms_cmds=$lt_extract_expsyms_cmds 23165 23166# Variables whose values should be saved in libtool wrapper scripts and 23167# restored at link time. 23168variables_saved_for_relink=$lt_variables_saved_for_relink 23169 23170# Do we need the "lib" prefix for modules? 23171need_lib_prefix=$need_lib_prefix 23172 23173# Do we need a version for libraries? 23174need_version=$need_version 23175 23176# Library versioning type. 23177version_type=$version_type 23178 23179# Shared library runtime path variable. 23180runpath_var=$runpath_var 23181 23182# Shared library path variable. 23183shlibpath_var=$shlibpath_var 23184 23185# Is shlibpath searched before the hard-coded library search path? 23186shlibpath_overrides_runpath=$shlibpath_overrides_runpath 23187 23188# Format of library name prefix. 23189libname_spec=$lt_libname_spec 23190 23191# List of archive names. First name is the real one, the rest are links. 23192# The last name is the one that the linker finds with -lNAME 23193library_names_spec=$lt_library_names_spec 23194 23195# The coded name of the library, if different from the real name. 23196soname_spec=$lt_soname_spec 23197 23198# Permission mode override for installation of shared libraries. 23199install_override_mode=$lt_install_override_mode 23200 23201# Command to use after installation of a shared archive. 23202postinstall_cmds=$lt_postinstall_cmds 23203 23204# Command to use after uninstallation of a shared archive. 23205postuninstall_cmds=$lt_postuninstall_cmds 23206 23207# Commands used to finish a libtool library installation in a directory. 23208finish_cmds=$lt_finish_cmds 23209 23210# As "finish_cmds", except a single script fragment to be evaled but 23211# not shown. 23212finish_eval=$lt_finish_eval 23213 23214# Whether we should hardcode library paths into libraries. 23215hardcode_into_libs=$hardcode_into_libs 23216 23217# Compile-time system search path for libraries. 23218sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 23219 23220# Detected run-time system search path for libraries. 23221sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path 23222 23223# Explicit LT_SYS_LIBRARY_PATH set during ./configure time. 23224configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path 23225 23226# Whether dlopen is supported. 23227dlopen_support=$enable_dlopen 23228 23229# Whether dlopen of programs is supported. 23230dlopen_self=$enable_dlopen_self 23231 23232# Whether dlopen of statically linked programs is supported. 23233dlopen_self_static=$enable_dlopen_self_static 23234 23235# Commands to strip libraries. 23236old_striplib=$lt_old_striplib 23237striplib=$lt_striplib 23238 23239 23240# The linker used to build libraries. 23241LD=$lt_LD 23242 23243# How to create reloadable object files. 23244reload_flag=$lt_reload_flag 23245reload_cmds=$lt_reload_cmds 23246 23247# Commands used to build an old-style archive. 23248old_archive_cmds=$lt_old_archive_cmds 23249 23250# A language specific compiler. 23251CC=$lt_compiler 23252 23253# Is the compiler the GNU compiler? 23254with_gcc=$GCC 23255 23256# Compiler flag to turn off builtin functions. 23257no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 23258 23259# Additional compiler flags for building library objects. 23260pic_flag=$lt_lt_prog_compiler_pic 23261 23262# How to pass a linker flag through the compiler. 23263wl=$lt_lt_prog_compiler_wl 23264 23265# Compiler flag to prevent dynamic linking. 23266link_static_flag=$lt_lt_prog_compiler_static 23267 23268# Does compiler simultaneously support -c and -o options? 23269compiler_c_o=$lt_lt_cv_prog_compiler_c_o 23270 23271# Whether or not to add -lc for building shared libraries. 23272build_libtool_need_lc=$archive_cmds_need_lc 23273 23274# Whether or not to disallow shared libs when runtime libs are static. 23275allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 23276 23277# Compiler flag to allow reflexive dlopens. 23278export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 23279 23280# Compiler flag to generate shared objects directly from archives. 23281whole_archive_flag_spec=$lt_whole_archive_flag_spec 23282 23283# Whether the compiler copes with passing no objects directly. 23284compiler_needs_object=$lt_compiler_needs_object 23285 23286# Create an old-style archive from a shared archive. 23287old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 23288 23289# Create a temporary old-style archive to link instead of a shared archive. 23290old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 23291 23292# Commands used to build a shared archive. 23293archive_cmds=$lt_archive_cmds 23294archive_expsym_cmds=$lt_archive_expsym_cmds 23295 23296# Commands used to build a loadable module if different from building 23297# a shared archive. 23298module_cmds=$lt_module_cmds 23299module_expsym_cmds=$lt_module_expsym_cmds 23300 23301# Whether we are building with GNU ld or not. 23302with_gnu_ld=$lt_with_gnu_ld 23303 23304# Flag that allows shared libraries with undefined symbols to be built. 23305allow_undefined_flag=$lt_allow_undefined_flag 23306 23307# Flag that enforces no undefined symbols. 23308no_undefined_flag=$lt_no_undefined_flag 23309 23310# Flag to hardcode \$libdir into a binary during linking. 23311# This must work even if \$libdir does not exist 23312hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 23313 23314# Whether we need a single "-rpath" flag with a separated argument. 23315hardcode_libdir_separator=$lt_hardcode_libdir_separator 23316 23317# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 23318# DIR into the resulting binary. 23319hardcode_direct=$hardcode_direct 23320 23321# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 23322# DIR into the resulting binary and the resulting library dependency is 23323# "absolute",i.e impossible to change by setting \$shlibpath_var if the 23324# library is relocated. 23325hardcode_direct_absolute=$hardcode_direct_absolute 23326 23327# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 23328# into the resulting binary. 23329hardcode_minus_L=$hardcode_minus_L 23330 23331# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 23332# into the resulting binary. 23333hardcode_shlibpath_var=$hardcode_shlibpath_var 23334 23335# Set to "yes" if building a shared library automatically hardcodes DIR 23336# into the library and all subsequent libraries and executables linked 23337# against it. 23338hardcode_automatic=$hardcode_automatic 23339 23340# Set to yes if linker adds runtime paths of dependent libraries 23341# to runtime path list. 23342inherit_rpath=$inherit_rpath 23343 23344# Whether libtool must link a program against all its dependency libraries. 23345link_all_deplibs=$link_all_deplibs 23346 23347# Set to "yes" if exported symbols are required. 23348always_export_symbols=$always_export_symbols 23349 23350# The commands to list exported symbols. 23351export_symbols_cmds=$lt_export_symbols_cmds 23352 23353# Symbols that should not be listed in the preloaded symbols. 23354exclude_expsyms=$lt_exclude_expsyms 23355 23356# Symbols that must always be exported. 23357include_expsyms=$lt_include_expsyms 23358 23359# Commands necessary for linking programs (against libraries) with templates. 23360prelink_cmds=$lt_prelink_cmds 23361 23362# Commands necessary for finishing linking programs. 23363postlink_cmds=$lt_postlink_cmds 23364 23365# Specify filename containing input files. 23366file_list_spec=$lt_file_list_spec 23367 23368# How to hardcode a shared library path into an executable. 23369hardcode_action=$hardcode_action 23370 23371# ### END LIBTOOL CONFIG 23372 23373_LT_EOF 23374 23375 cat <<'_LT_EOF' >> "$cfgfile" 23376 23377# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE 23378 23379# func_munge_path_list VARIABLE PATH 23380# ----------------------------------- 23381# VARIABLE is name of variable containing _space_ separated list of 23382# directories to be munged by the contents of PATH, which is string 23383# having a format: 23384# "DIR[:DIR]:" 23385# string "DIR[ DIR]" will be prepended to VARIABLE 23386# ":DIR[:DIR]" 23387# string "DIR[ DIR]" will be appended to VARIABLE 23388# "DIRP[:DIRP]::[DIRA:]DIRA" 23389# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 23390# "DIRA[ DIRA]" will be appended to VARIABLE 23391# "DIR[:DIR]" 23392# VARIABLE will be replaced by "DIR[ DIR]" 23393func_munge_path_list () 23394{ 23395 case x$2 in 23396 x) 23397 ;; 23398 *:) 23399 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 23400 ;; 23401 x:*) 23402 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 23403 ;; 23404 *::*) 23405 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 23406 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 23407 ;; 23408 *) 23409 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 23410 ;; 23411 esac 23412} 23413 23414 23415# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 23416func_cc_basename () 23417{ 23418 for cc_temp in $*""; do 23419 case $cc_temp in 23420 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 23421 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 23422 \-*) ;; 23423 *) break;; 23424 esac 23425 done 23426 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 23427} 23428 23429 23430# ### END FUNCTIONS SHARED WITH CONFIGURE 23431 23432_LT_EOF 23433 23434 case $host_os in 23435 aix3*) 23436 cat <<\_LT_EOF >> "$cfgfile" 23437# AIX sometimes has problems with the GCC collect2 program. For some 23438# reason, if we set the COLLECT_NAMES environment variable, the problems 23439# vanish in a puff of smoke. 23440if test set != "${COLLECT_NAMES+set}"; then 23441 COLLECT_NAMES= 23442 export COLLECT_NAMES 23443fi 23444_LT_EOF 23445 ;; 23446 esac 23447 23448 23449 23450ltmain=$ac_aux_dir/ltmain.sh 23451 23452 23453 # We use sed instead of cat because bash on DJGPP gets confused if 23454 # if finds mixed CR/LF and LF-only lines. Since sed operates in 23455 # text mode, it properly converts lines to CR/LF. This bash problem 23456 # is reportedly fixed, but why not run on old versions too? 23457 sed '$q' "$ltmain" >> "$cfgfile" \ 23458 || (rm -f "$cfgfile"; exit 1) 23459 23460 mv -f "$cfgfile" "$ofile" || 23461 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 23462 chmod +x "$ofile" 23463 23464 ;; 23465 23466 esac 23467done # for ac_tag 23468 23469 23470as_fn_exit 0 23471_ACEOF 23472ac_clean_files=$ac_clean_files_save 23473 23474test $ac_write_fail = 0 || 23475 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 23476 23477 23478# configure is writing to config.log, and then calls config.status. 23479# config.status does its own redirection, appending to config.log. 23480# Unfortunately, on DOS this fails, as config.log is still kept open 23481# by configure, so config.status won't be able to write to it; its 23482# output is simply discarded. So we exec the FD to /dev/null, 23483# effectively closing config.log, so it can be properly (re)opened and 23484# appended to by config.status. When coming back to configure, we 23485# need to make the FD available again. 23486if test "$no_create" != yes; then 23487 ac_cs_success=: 23488 ac_config_status_args= 23489 test "$silent" = yes && 23490 ac_config_status_args="$ac_config_status_args --quiet" 23491 exec 5>/dev/null 23492 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 23493 exec 5>>config.log 23494 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 23495 # would make configure fail if this is the last instruction. 23496 $ac_cs_success || as_fn_exit 1 23497fi 23498if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 23499 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 23500printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 23501fi 23502 23503 23504