configure revision 0568f49b
1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.69 for libXt 1.2.0. 4# 5# Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libXt/issues>. 6# 7# 8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. 9# 10# 11# This configure script is free software; the Free Software Foundation 12# gives unlimited permission to copy, distribute and modify it. 13## -------------------- ## 14## M4sh Initialization. ## 15## -------------------- ## 16 17# Be more Bourne compatible 18DUALCASE=1; export DUALCASE # for MKS sh 19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 20 emulate sh 21 NULLCMD=: 22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 23 # is contrary to our usage. Disable this feature. 24 alias -g '${1+"$@"}'='"$@"' 25 setopt NO_GLOB_SUBST 26else 27 case `(set -o) 2>/dev/null` in #( 28 *posix*) : 29 set -o posix ;; #( 30 *) : 31 ;; 32esac 33fi 34 35 36as_nl=' 37' 38export as_nl 39# Printing a long string crashes Solaris 7 /usr/bin/printf. 40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 43# Prefer a ksh shell builtin over an external printf program on Solaris, 44# but without wasting forks for bash or zsh. 45if test -z "$BASH_VERSION$ZSH_VERSION" \ 46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 47 as_echo='print -r --' 48 as_echo_n='print -rn --' 49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 50 as_echo='printf %s\n' 51 as_echo_n='printf %s' 52else 53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 55 as_echo_n='/usr/ucb/echo -n' 56 else 57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 58 as_echo_n_body='eval 59 arg=$1; 60 case $arg in #( 61 *"$as_nl"*) 62 expr "X$arg" : "X\\(.*\\)$as_nl"; 63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 64 esac; 65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 66 ' 67 export as_echo_n_body 68 as_echo_n='sh -c $as_echo_n_body as_echo' 69 fi 70 export as_echo_body 71 as_echo='sh -c $as_echo_body as_echo' 72fi 73 74# The user is always right. 75if test "${PATH_SEPARATOR+set}" != set; then 76 PATH_SEPARATOR=: 77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 79 PATH_SEPARATOR=';' 80 } 81fi 82 83 84# IFS 85# We need space, tab and new line, in precisely that order. Quoting is 86# there to prevent editors from complaining about space-tab. 87# (If _AS_PATH_WALK were called with IFS unset, it would disable word 88# splitting by setting IFS to empty value.) 89IFS=" "" $as_nl" 90 91# Find who we are. Look in the path if we contain no directory separator. 92as_myself= 93case $0 in #(( 94 *[\\/]* ) as_myself=$0 ;; 95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 96for as_dir in $PATH 97do 98 IFS=$as_save_IFS 99 test -z "$as_dir" && as_dir=. 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 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 113 exit 1 114fi 115 116# Unset variables that we do not need and which cause bugs (e.g. in 117# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 118# suppresses any "Segmentation fault" message there. '((' could 119# trigger a bug in pdksh 5.2.14. 120for as_var in BASH_ENV ENV MAIL MAILPATH 121do eval test x\${$as_var+set} = xset \ 122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 123done 124PS1='$ ' 125PS2='> ' 126PS4='+ ' 127 128# NLS nuisances. 129LC_ALL=C 130export LC_ALL 131LANGUAGE=C 132export LANGUAGE 133 134# CDPATH. 135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 136 137# Use a proper internal environment variable to ensure we don't fall 138 # into an infinite loop, continuously re-executing ourselves. 139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 140 _as_can_reexec=no; export _as_can_reexec; 141 # We cannot yet assume a decent shell, so we have to provide a 142# neutralization value for shells without unset; and this also 143# works around shells that cannot unset nonexistent variables. 144# Preserve -v and -x to the replacement shell. 145BASH_ENV=/dev/null 146ENV=/dev/null 147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 148case $- in # (((( 149 *v*x* | *x*v* ) as_opts=-vx ;; 150 *v* ) as_opts=-v ;; 151 *x* ) as_opts=-x ;; 152 * ) as_opts= ;; 153esac 154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 155# Admittedly, this is quite paranoid, since all the known shells bail 156# out after a failed `exec'. 157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 158as_fn_exit 255 159 fi 160 # We don't want this to propagate to other subprocesses. 161 { _as_can_reexec=; unset _as_can_reexec;} 162if test "x$CONFIG_SHELL" = x; then 163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 164 emulate sh 165 NULLCMD=: 166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 167 # is contrary to our usage. Disable this feature. 168 alias -g '\${1+\"\$@\"}'='\"\$@\"' 169 setopt NO_GLOB_SUBST 170else 171 case \`(set -o) 2>/dev/null\` in #( 172 *posix*) : 173 set -o posix ;; #( 174 *) : 175 ;; 176esac 177fi 178" 179 as_required="as_fn_return () { (exit \$1); } 180as_fn_success () { as_fn_return 0; } 181as_fn_failure () { as_fn_return 1; } 182as_fn_ret_success () { return 0; } 183as_fn_ret_failure () { return 1; } 184 185exitcode=0 186as_fn_success || { exitcode=1; echo as_fn_success failed.; } 187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 191 192else 193 exitcode=1; echo positional parameters were not saved. 194fi 195test x\$exitcode = x0 || exit 1 196test -x / || exit 1" 197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 201 202 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( 203 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 204 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 206 PATH=/empty FPATH=/empty; export PATH FPATH 207 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ 208 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1 209test \$(( 1 + 1 )) = 2 || exit 1" 210 if (eval "$as_required") 2>/dev/null; then : 211 as_have_required=yes 212else 213 as_have_required=no 214fi 215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 216 217else 218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 219as_found=false 220for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 221do 222 IFS=$as_save_IFS 223 test -z "$as_dir" && as_dir=. 224 as_found=: 225 case $as_dir in #( 226 /*) 227 for as_base in sh bash ksh sh5; do 228 # Try only shells that exist, to save several forks. 229 as_shell=$as_dir/$as_base 230 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 231 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 232 CONFIG_SHELL=$as_shell as_have_required=yes 233 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 234 break 2 235fi 236fi 237 done;; 238 esac 239 as_found=false 240done 241$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 242 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 243 CONFIG_SHELL=$SHELL as_have_required=yes 244fi; } 245IFS=$as_save_IFS 246 247 248 if test "x$CONFIG_SHELL" != x; then : 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'. 266$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 267exit 255 268fi 269 270 if test x$as_have_required = xno; then : 271 $as_echo "$0: This script requires a shell more modern than all" 272 $as_echo "$0: the shells that I found on your system." 273 if test x${ZSH_VERSION+set} = xset ; then 274 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 275 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 276 else 277 $as_echo "$0: Please tell bug-autoconf@gnu.org and 278$0: https://gitlab.freedesktop.org/xorg/lib/libXt/issues 279$0: about your system, including any error possibly output 280$0: before this message. Then install a modern shell, or 281$0: manually run the script under such a shell if you do 282$0: have one." 283 fi 284 exit 1 285fi 286fi 287fi 288SHELL=${CONFIG_SHELL-/bin/sh} 289export SHELL 290# Unset more variables known to interfere with behavior of common tools. 291CLICOLOR_FORCE= GREP_OPTIONS= 292unset CLICOLOR_FORCE GREP_OPTIONS 293 294## --------------------- ## 295## M4sh Shell Functions. ## 296## --------------------- ## 297# as_fn_unset VAR 298# --------------- 299# Portably unset VAR. 300as_fn_unset () 301{ 302 { eval $1=; unset $1;} 303} 304as_unset=as_fn_unset 305 306# as_fn_set_status STATUS 307# ----------------------- 308# Set $? to STATUS, without forking. 309as_fn_set_status () 310{ 311 return $1 312} # as_fn_set_status 313 314# as_fn_exit STATUS 315# ----------------- 316# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 317as_fn_exit () 318{ 319 set +e 320 as_fn_set_status $1 321 exit $1 322} # as_fn_exit 323 324# as_fn_mkdir_p 325# ------------- 326# Create "$as_dir" as a directory, including parents if necessary. 327as_fn_mkdir_p () 328{ 329 330 case $as_dir in #( 331 -*) as_dir=./$as_dir;; 332 esac 333 test -d "$as_dir" || eval $as_mkdir_p || { 334 as_dirs= 335 while :; do 336 case $as_dir in #( 337 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 338 *) as_qdir=$as_dir;; 339 esac 340 as_dirs="'$as_qdir' $as_dirs" 341 as_dir=`$as_dirname -- "$as_dir" || 342$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 343 X"$as_dir" : 'X\(//\)[^/]' \| \ 344 X"$as_dir" : 'X\(//\)$' \| \ 345 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 346$as_echo X"$as_dir" | 347 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 348 s//\1/ 349 q 350 } 351 /^X\(\/\/\)[^/].*/{ 352 s//\1/ 353 q 354 } 355 /^X\(\/\/\)$/{ 356 s//\1/ 357 q 358 } 359 /^X\(\/\).*/{ 360 s//\1/ 361 q 362 } 363 s/.*/./; q'` 364 test -d "$as_dir" && break 365 done 366 test -z "$as_dirs" || eval "mkdir $as_dirs" 367 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 368 369 370} # as_fn_mkdir_p 371 372# as_fn_executable_p FILE 373# ----------------------- 374# Test if FILE is an executable regular file. 375as_fn_executable_p () 376{ 377 test -f "$1" && test -x "$1" 378} # as_fn_executable_p 379# as_fn_append VAR VALUE 380# ---------------------- 381# Append the text in VALUE to the end of the definition contained in VAR. Take 382# advantage of any shell optimizations that allow amortized linear growth over 383# repeated appends, instead of the typical quadratic growth present in naive 384# implementations. 385if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 386 eval 'as_fn_append () 387 { 388 eval $1+=\$2 389 }' 390else 391 as_fn_append () 392 { 393 eval $1=\$$1\$2 394 } 395fi # as_fn_append 396 397# as_fn_arith ARG... 398# ------------------ 399# Perform arithmetic evaluation on the ARGs, and store the result in the 400# global $as_val. Take advantage of shells that can avoid forks. The arguments 401# must be portable across $(()) and expr. 402if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 403 eval 'as_fn_arith () 404 { 405 as_val=$(( $* )) 406 }' 407else 408 as_fn_arith () 409 { 410 as_val=`expr "$@" || test $? -eq 1` 411 } 412fi # as_fn_arith 413 414 415# as_fn_error STATUS ERROR [LINENO LOG_FD] 416# ---------------------------------------- 417# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 418# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 419# script with STATUS, using 1 if that was 0. 420as_fn_error () 421{ 422 as_status=$1; test $as_status -eq 0 && as_status=1 423 if test "$4"; then 424 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 425 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 426 fi 427 $as_echo "$as_me: error: $2" >&2 428 as_fn_exit $as_status 429} # as_fn_error 430 431if expr a : '\(a\)' >/dev/null 2>&1 && 432 test "X`expr 00001 : '.*\(...\)'`" = X001; then 433 as_expr=expr 434else 435 as_expr=false 436fi 437 438if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 439 as_basename=basename 440else 441 as_basename=false 442fi 443 444if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 445 as_dirname=dirname 446else 447 as_dirname=false 448fi 449 450as_me=`$as_basename -- "$0" || 451$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 452 X"$0" : 'X\(//\)$' \| \ 453 X"$0" : 'X\(/\)' \| . 2>/dev/null || 454$as_echo X/"$0" | 455 sed '/^.*\/\([^/][^/]*\)\/*$/{ 456 s//\1/ 457 q 458 } 459 /^X\/\(\/\/\)$/{ 460 s//\1/ 461 q 462 } 463 /^X\/\(\/\).*/{ 464 s//\1/ 465 q 466 } 467 s/.*/./; q'` 468 469# Avoid depending upon Character Ranges. 470as_cr_letters='abcdefghijklmnopqrstuvwxyz' 471as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 472as_cr_Letters=$as_cr_letters$as_cr_LETTERS 473as_cr_digits='0123456789' 474as_cr_alnum=$as_cr_Letters$as_cr_digits 475 476 477 as_lineno_1=$LINENO as_lineno_1a=$LINENO 478 as_lineno_2=$LINENO as_lineno_2a=$LINENO 479 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 480 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 481 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 482 sed -n ' 483 p 484 /[$]LINENO/= 485 ' <$as_myself | 486 sed ' 487 s/[$]LINENO.*/&-/ 488 t lineno 489 b 490 :lineno 491 N 492 :loop 493 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 494 t loop 495 s/-\n.*// 496 ' >$as_me.lineno && 497 chmod +x "$as_me.lineno" || 498 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 499 500 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 501 # already done that, so ensure we don't try to do so again and fall 502 # in an infinite loop. This has already happened in practice. 503 _as_can_reexec=no; export _as_can_reexec 504 # Don't try to exec as it changes $[0], causing all sort of problems 505 # (the dirname of $[0] is not the place where we might find the 506 # original and so on. Autoconf is especially sensitive to this). 507 . "./$as_me.lineno" 508 # Exit status is that of the last command. 509 exit 510} 511 512ECHO_C= ECHO_N= ECHO_T= 513case `echo -n x` in #((((( 514-n*) 515 case `echo 'xy\c'` in 516 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 517 xy) ECHO_C='\c';; 518 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 519 ECHO_T=' ';; 520 esac;; 521*) 522 ECHO_N='-n';; 523esac 524 525rm -f conf$$ conf$$.exe conf$$.file 526if test -d conf$$.dir; then 527 rm -f conf$$.dir/conf$$.file 528else 529 rm -f conf$$.dir 530 mkdir conf$$.dir 2>/dev/null 531fi 532if (echo >conf$$.file) 2>/dev/null; then 533 if ln -s conf$$.file conf$$ 2>/dev/null; then 534 as_ln_s='ln -s' 535 # ... but there are two gotchas: 536 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 537 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 538 # In both cases, we have to default to `cp -pR'. 539 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 540 as_ln_s='cp -pR' 541 elif ln conf$$.file conf$$ 2>/dev/null; then 542 as_ln_s=ln 543 else 544 as_ln_s='cp -pR' 545 fi 546else 547 as_ln_s='cp -pR' 548fi 549rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 550rmdir conf$$.dir 2>/dev/null 551 552if mkdir -p . 2>/dev/null; then 553 as_mkdir_p='mkdir -p "$as_dir"' 554else 555 test -d ./-p && rmdir ./-p 556 as_mkdir_p=false 557fi 558 559as_test_x='test -x' 560as_executable_p=as_fn_executable_p 561 562# Sed expression to map a string onto a valid CPP name. 563as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 564 565# Sed expression to map a string onto a valid variable name. 566as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 567 568SHELL=${CONFIG_SHELL-/bin/sh} 569 570as_awk_strverscmp=' 571 # Use only awk features that work with 7th edition Unix awk (1978). 572 # My, what an old awk you have, Mr. Solaris! 573 END { 574 while (length(v1) && length(v2)) { 575 # Set d1 to be the next thing to compare from v1, and likewise for d2. 576 # Normally this is a single character, but if v1 and v2 contain digits, 577 # compare them as integers and fractions as strverscmp does. 578 if (v1 ~ /^[0-9]/ && v2 ~ /^[0-9]/) { 579 # Split v1 and v2 into their leading digit string components d1 and d2, 580 # and advance v1 and v2 past the leading digit strings. 581 for (len1 = 1; substr(v1, len1 + 1) ~ /^[0-9]/; len1++) continue 582 for (len2 = 1; substr(v2, len2 + 1) ~ /^[0-9]/; len2++) continue 583 d1 = substr(v1, 1, len1); v1 = substr(v1, len1 + 1) 584 d2 = substr(v2, 1, len2); v2 = substr(v2, len2 + 1) 585 if (d1 ~ /^0/) { 586 if (d2 ~ /^0/) { 587 # Compare two fractions. 588 while (d1 ~ /^0/ && d2 ~ /^0/) { 589 d1 = substr(d1, 2); len1-- 590 d2 = substr(d2, 2); len2-- 591 } 592 if (len1 != len2 && ! (len1 && len2 && substr(d1, 1, 1) == substr(d2, 1, 1))) { 593 # The two components differ in length, and the common prefix 594 # contains only leading zeros. Consider the longer to be less. 595 d1 = -len1 596 d2 = -len2 597 } else { 598 # Otherwise, compare as strings. 599 d1 = "x" d1 600 d2 = "x" d2 601 } 602 } else { 603 # A fraction is less than an integer. 604 exit 1 605 } 606 } else { 607 if (d2 ~ /^0/) { 608 # An integer is greater than a fraction. 609 exit 2 610 } else { 611 # Compare two integers. 612 d1 += 0 613 d2 += 0 614 } 615 } 616 } else { 617 # The normal case, without worrying about digits. 618 d1 = substr(v1, 1, 1); v1 = substr(v1, 2) 619 d2 = substr(v2, 1, 1); v2 = substr(v2, 2) 620 } 621 if (d1 < d2) exit 1 622 if (d1 > d2) exit 2 623 } 624 # Beware Solaris /usr/xgp4/bin/awk (at least through Solaris 10), 625 # which mishandles some comparisons of empty strings to integers. 626 if (length(v2)) exit 1 627 if (length(v1)) exit 2 628 } 629' 630 631test -n "$DJDIR" || exec 7<&0 </dev/null 632exec 6>&1 633 634# Name of the host. 635# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 636# so uname gets run too. 637ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 638 639# 640# Initializations. 641# 642ac_default_prefix=/usr/local 643ac_clean_files= 644ac_config_libobj_dir=. 645LIBOBJS= 646cross_compiling=no 647subdirs= 648MFLAGS= 649MAKEFLAGS= 650 651# Identity of this package. 652PACKAGE_NAME='libXt' 653PACKAGE_TARNAME='libXt' 654PACKAGE_VERSION='1.2.0' 655PACKAGE_STRING='libXt 1.2.0' 656PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/lib/libXt/issues' 657PACKAGE_URL='' 658 659ac_unique_file="Makefile.am" 660# Factoring default headers for most tests. 661ac_includes_default="\ 662#include <stdio.h> 663#ifdef HAVE_SYS_TYPES_H 664# include <sys/types.h> 665#endif 666#ifdef HAVE_SYS_STAT_H 667# include <sys/stat.h> 668#endif 669#ifdef STDC_HEADERS 670# include <stdlib.h> 671# include <stddef.h> 672#else 673# ifdef HAVE_STDLIB_H 674# include <stdlib.h> 675# endif 676#endif 677#ifdef HAVE_STRING_H 678# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 679# include <memory.h> 680# endif 681# include <string.h> 682#endif 683#ifdef HAVE_STRINGS_H 684# include <strings.h> 685#endif 686#ifdef HAVE_INTTYPES_H 687# include <inttypes.h> 688#endif 689#ifdef HAVE_STDINT_H 690# include <stdint.h> 691#endif 692#ifdef HAVE_UNISTD_H 693# include <unistd.h> 694#endif" 695 696ac_subst_vars='am__EXEEXT_FALSE 697am__EXEEXT_TRUE 698LTLIBOBJS 699LIBOBJS 700ERRORDBDIR 701STRINGSABIOPTIONS 702appdefaultdir 703XFILESEARCHPATHDEFAULT 704MALLOC_DEBUG_ENV 705HAVE_GLIB_FALSE 706HAVE_GLIB_TRUE 707GLIB_LIBS 708GLIB_CFLAGS 709ENABLE_UNIT_TESTS_FALSE 710ENABLE_UNIT_TESTS_TRUE 711XORG_MALLOC_DEBUG_ENV 712LDFLAGS_FOR_BUILD 713CFLAGS_FOR_BUILD 714CPPFLAGS_FOR_BUILD 715CC_FOR_BUILD 716XT_LIBS 717XT_CFLAGS 718HAVE_PERL_FALSE 719HAVE_PERL_TRUE 720PERL 721TRADITIONALCPPFLAGS 722RAWCPPFLAGS 723RAWCPP 724HAVE_STYLESHEETS_FALSE 725HAVE_STYLESHEETS_TRUE 726XSL_STYLESHEET 727STYLESHEET_SRCDIR 728XORG_SGML_PATH 729HAVE_XSLTPROC_FALSE 730HAVE_XSLTPROC_TRUE 731XSLTPROC 732HAVE_FOP_FALSE 733HAVE_FOP_TRUE 734FOP 735HAVE_XMLTO_FALSE 736HAVE_XMLTO_TRUE 737HAVE_XMLTO_TEXT_FALSE 738HAVE_XMLTO_TEXT_TRUE 739XMLTO 740ENABLE_SPECS_FALSE 741ENABLE_SPECS_TRUE 742XTMALLOC_ZERO_CFLAGS 743XMALLOC_ZERO_CFLAGS 744MALLOC_ZERO_CFLAGS 745MAN_SUBSTS 746XORG_MAN_PAGE 747ADMIN_MAN_DIR 748DRIVER_MAN_DIR 749MISC_MAN_DIR 750FILE_MAN_DIR 751LIB_MAN_DIR 752APP_MAN_DIR 753ADMIN_MAN_SUFFIX 754DRIVER_MAN_SUFFIX 755MISC_MAN_SUFFIX 756FILE_MAN_SUFFIX 757LIB_MAN_SUFFIX 758APP_MAN_SUFFIX 759INSTALL_CMD 760PKG_CONFIG_LIBDIR 761PKG_CONFIG_PATH 762PKG_CONFIG 763CHANGELOG_CMD 764STRICT_CFLAGS 765CWARNFLAGS 766BASE_CFLAGS 767CPP 768LT_SYS_LIBRARY_PATH 769OTOOL64 770OTOOL 771LIPO 772NMEDIT 773DSYMUTIL 774MANIFEST_TOOL 775RANLIB 776ac_ct_AR 777AR 778DLLTOOL 779OBJDUMP 780LN_S 781NM 782ac_ct_DUMPBIN 783DUMPBIN 784LD 785FGREP 786EGREP 787GREP 788SED 789am__fastdepCC_FALSE 790am__fastdepCC_TRUE 791CCDEPMODE 792am__nodep 793AMDEPBACKSLASH 794AMDEP_FALSE 795AMDEP_TRUE 796am__include 797DEPDIR 798OBJEXT 799EXEEXT 800ac_ct_CC 801CPPFLAGS 802LDFLAGS 803CFLAGS 804CC 805host_os 806host_vendor 807host_cpu 808host 809build_os 810build_vendor 811build_cpu 812build 813LIBTOOL 814AM_BACKSLASH 815AM_DEFAULT_VERBOSITY 816AM_DEFAULT_V 817AM_V 818am__untar 819am__tar 820AMTAR 821am__leading_dot 822SET_MAKE 823AWK 824mkdir_p 825MKDIR_P 826INSTALL_STRIP_PROGRAM 827STRIP 828install_sh 829MAKEINFO 830AUTOHEADER 831AUTOMAKE 832AUTOCONF 833ACLOCAL 834VERSION 835PACKAGE 836CYGPATH_W 837am__isrc 838INSTALL_DATA 839INSTALL_SCRIPT 840INSTALL_PROGRAM 841target_alias 842host_alias 843build_alias 844LIBS 845ECHO_T 846ECHO_N 847ECHO_C 848DEFS 849mandir 850localedir 851libdir 852psdir 853pdfdir 854dvidir 855htmldir 856infodir 857docdir 858oldincludedir 859includedir 860runstatedir 861localstatedir 862sharedstatedir 863sysconfdir 864datadir 865datarootdir 866libexecdir 867sbindir 868bindir 869program_transform_name 870prefix 871exec_prefix 872PACKAGE_URL 873PACKAGE_BUGREPORT 874PACKAGE_STRING 875PACKAGE_VERSION 876PACKAGE_TARNAME 877PACKAGE_NAME 878PATH_SEPARATOR 879SHELL 880am__quote' 881ac_subst_files='' 882ac_user_opts=' 883enable_option_checking 884enable_silent_rules 885enable_shared 886enable_static 887with_pic 888enable_fast_install 889with_aix_soname 890enable_dependency_tracking 891with_gnu_ld 892with_sysroot 893enable_libtool_lock 894enable_selective_werror 895enable_strict_compilation 896enable_malloc0returnsnull 897enable_specs 898with_xmlto 899with_fop 900with_xsltproc 901with_perl 902enable_xkb 903enable_const 904enable_geo_tattler 905enable_unit_tests 906with_glib 907with_xfile_search_path 908with_appdefaultdir 909' 910 ac_precious_vars='build_alias 911host_alias 912target_alias 913CC 914CFLAGS 915LDFLAGS 916LIBS 917CPPFLAGS 918LT_SYS_LIBRARY_PATH 919CPP 920PKG_CONFIG 921PKG_CONFIG_PATH 922PKG_CONFIG_LIBDIR 923XMLTO 924FOP 925XSLTPROC 926PERL 927XT_CFLAGS 928XT_LIBS 929XORG_MALLOC_DEBUG_ENV 930GLIB_CFLAGS 931GLIB_LIBS' 932 933 934# Initialize some variables set by options. 935ac_init_help= 936ac_init_version=false 937ac_unrecognized_opts= 938ac_unrecognized_sep= 939# The variables have the same names as the options, with 940# dashes changed to underlines. 941cache_file=/dev/null 942exec_prefix=NONE 943no_create= 944no_recursion= 945prefix=NONE 946program_prefix=NONE 947program_suffix=NONE 948program_transform_name=s,x,x, 949silent= 950site= 951srcdir= 952verbose= 953x_includes=NONE 954x_libraries=NONE 955 956# Installation directory options. 957# These are left unexpanded so users can "make install exec_prefix=/foo" 958# and all the variables that are supposed to be based on exec_prefix 959# by default will actually change. 960# Use braces instead of parens because sh, perl, etc. also accept them. 961# (The list follows the same order as the GNU Coding Standards.) 962bindir='${exec_prefix}/bin' 963sbindir='${exec_prefix}/sbin' 964libexecdir='${exec_prefix}/libexec' 965datarootdir='${prefix}/share' 966datadir='${datarootdir}' 967sysconfdir='${prefix}/etc' 968sharedstatedir='${prefix}/com' 969localstatedir='${prefix}/var' 970runstatedir='${localstatedir}/run' 971includedir='${prefix}/include' 972oldincludedir='/usr/include' 973docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 974infodir='${datarootdir}/info' 975htmldir='${docdir}' 976dvidir='${docdir}' 977pdfdir='${docdir}' 978psdir='${docdir}' 979libdir='${exec_prefix}/lib' 980localedir='${datarootdir}/locale' 981mandir='${datarootdir}/man' 982 983ac_prev= 984ac_dashdash= 985for ac_option 986do 987 # If the previous option needs an argument, assign it. 988 if test -n "$ac_prev"; then 989 eval $ac_prev=\$ac_option 990 ac_prev= 991 continue 992 fi 993 994 case $ac_option in 995 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 996 *=) ac_optarg= ;; 997 *) ac_optarg=yes ;; 998 esac 999 1000 # Accept the important Cygnus configure options, so we can diagnose typos. 1001 1002 case $ac_dashdash$ac_option in 1003 --) 1004 ac_dashdash=yes ;; 1005 1006 -bindir | --bindir | --bindi | --bind | --bin | --bi) 1007 ac_prev=bindir ;; 1008 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 1009 bindir=$ac_optarg ;; 1010 1011 -build | --build | --buil | --bui | --bu) 1012 ac_prev=build_alias ;; 1013 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 1014 build_alias=$ac_optarg ;; 1015 1016 -cache-file | --cache-file | --cache-fil | --cache-fi \ 1017 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 1018 ac_prev=cache_file ;; 1019 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 1020 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 1021 cache_file=$ac_optarg ;; 1022 1023 --config-cache | -C) 1024 cache_file=config.cache ;; 1025 1026 -datadir | --datadir | --datadi | --datad) 1027 ac_prev=datadir ;; 1028 -datadir=* | --datadir=* | --datadi=* | --datad=*) 1029 datadir=$ac_optarg ;; 1030 1031 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 1032 | --dataroo | --dataro | --datar) 1033 ac_prev=datarootdir ;; 1034 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 1035 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 1036 datarootdir=$ac_optarg ;; 1037 1038 -disable-* | --disable-*) 1039 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 1040 # Reject names that are not valid shell variable names. 1041 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1042 as_fn_error $? "invalid feature name: $ac_useropt" 1043 ac_useropt_orig=$ac_useropt 1044 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1045 case $ac_user_opts in 1046 *" 1047"enable_$ac_useropt" 1048"*) ;; 1049 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 1050 ac_unrecognized_sep=', ';; 1051 esac 1052 eval enable_$ac_useropt=no ;; 1053 1054 -docdir | --docdir | --docdi | --doc | --do) 1055 ac_prev=docdir ;; 1056 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1057 docdir=$ac_optarg ;; 1058 1059 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1060 ac_prev=dvidir ;; 1061 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1062 dvidir=$ac_optarg ;; 1063 1064 -enable-* | --enable-*) 1065 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 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=`$as_echo "$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--enable-$ac_useropt_orig" 1076 ac_unrecognized_sep=', ';; 1077 esac 1078 eval enable_$ac_useropt=\$ac_optarg ;; 1079 1080 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1081 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1082 | --exec | --exe | --ex) 1083 ac_prev=exec_prefix ;; 1084 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1085 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1086 | --exec=* | --exe=* | --ex=*) 1087 exec_prefix=$ac_optarg ;; 1088 1089 -gas | --gas | --ga | --g) 1090 # Obsolete; use --with-gas. 1091 with_gas=yes ;; 1092 1093 -help | --help | --hel | --he | -h) 1094 ac_init_help=long ;; 1095 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1096 ac_init_help=recursive ;; 1097 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1098 ac_init_help=short ;; 1099 1100 -host | --host | --hos | --ho) 1101 ac_prev=host_alias ;; 1102 -host=* | --host=* | --hos=* | --ho=*) 1103 host_alias=$ac_optarg ;; 1104 1105 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1106 ac_prev=htmldir ;; 1107 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1108 | --ht=*) 1109 htmldir=$ac_optarg ;; 1110 1111 -includedir | --includedir | --includedi | --included | --include \ 1112 | --includ | --inclu | --incl | --inc) 1113 ac_prev=includedir ;; 1114 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1115 | --includ=* | --inclu=* | --incl=* | --inc=*) 1116 includedir=$ac_optarg ;; 1117 1118 -infodir | --infodir | --infodi | --infod | --info | --inf) 1119 ac_prev=infodir ;; 1120 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1121 infodir=$ac_optarg ;; 1122 1123 -libdir | --libdir | --libdi | --libd) 1124 ac_prev=libdir ;; 1125 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1126 libdir=$ac_optarg ;; 1127 1128 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1129 | --libexe | --libex | --libe) 1130 ac_prev=libexecdir ;; 1131 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1132 | --libexe=* | --libex=* | --libe=*) 1133 libexecdir=$ac_optarg ;; 1134 1135 -localedir | --localedir | --localedi | --localed | --locale) 1136 ac_prev=localedir ;; 1137 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1138 localedir=$ac_optarg ;; 1139 1140 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1141 | --localstate | --localstat | --localsta | --localst | --locals) 1142 ac_prev=localstatedir ;; 1143 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1144 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1145 localstatedir=$ac_optarg ;; 1146 1147 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1148 ac_prev=mandir ;; 1149 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1150 mandir=$ac_optarg ;; 1151 1152 -nfp | --nfp | --nf) 1153 # Obsolete; use --without-fp. 1154 with_fp=no ;; 1155 1156 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1157 | --no-cr | --no-c | -n) 1158 no_create=yes ;; 1159 1160 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1161 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1162 no_recursion=yes ;; 1163 1164 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1165 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1166 | --oldin | --oldi | --old | --ol | --o) 1167 ac_prev=oldincludedir ;; 1168 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1169 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1170 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1171 oldincludedir=$ac_optarg ;; 1172 1173 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1174 ac_prev=prefix ;; 1175 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1176 prefix=$ac_optarg ;; 1177 1178 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1179 | --program-pre | --program-pr | --program-p) 1180 ac_prev=program_prefix ;; 1181 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1182 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1183 program_prefix=$ac_optarg ;; 1184 1185 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1186 | --program-suf | --program-su | --program-s) 1187 ac_prev=program_suffix ;; 1188 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1189 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1190 program_suffix=$ac_optarg ;; 1191 1192 -program-transform-name | --program-transform-name \ 1193 | --program-transform-nam | --program-transform-na \ 1194 | --program-transform-n | --program-transform- \ 1195 | --program-transform | --program-transfor \ 1196 | --program-transfo | --program-transf \ 1197 | --program-trans | --program-tran \ 1198 | --progr-tra | --program-tr | --program-t) 1199 ac_prev=program_transform_name ;; 1200 -program-transform-name=* | --program-transform-name=* \ 1201 | --program-transform-nam=* | --program-transform-na=* \ 1202 | --program-transform-n=* | --program-transform-=* \ 1203 | --program-transform=* | --program-transfor=* \ 1204 | --program-transfo=* | --program-transf=* \ 1205 | --program-trans=* | --program-tran=* \ 1206 | --progr-tra=* | --program-tr=* | --program-t=*) 1207 program_transform_name=$ac_optarg ;; 1208 1209 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1210 ac_prev=pdfdir ;; 1211 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1212 pdfdir=$ac_optarg ;; 1213 1214 -psdir | --psdir | --psdi | --psd | --ps) 1215 ac_prev=psdir ;; 1216 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1217 psdir=$ac_optarg ;; 1218 1219 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1220 | -silent | --silent | --silen | --sile | --sil) 1221 silent=yes ;; 1222 1223 -runstatedir | --runstatedir | --runstatedi | --runstated \ 1224 | --runstate | --runstat | --runsta | --runst | --runs \ 1225 | --run | --ru | --r) 1226 ac_prev=runstatedir ;; 1227 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ 1228 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ 1229 | --run=* | --ru=* | --r=*) 1230 runstatedir=$ac_optarg ;; 1231 1232 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1233 ac_prev=sbindir ;; 1234 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1235 | --sbi=* | --sb=*) 1236 sbindir=$ac_optarg ;; 1237 1238 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1239 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1240 | --sharedst | --shareds | --shared | --share | --shar \ 1241 | --sha | --sh) 1242 ac_prev=sharedstatedir ;; 1243 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1244 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1245 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1246 | --sha=* | --sh=*) 1247 sharedstatedir=$ac_optarg ;; 1248 1249 -site | --site | --sit) 1250 ac_prev=site ;; 1251 -site=* | --site=* | --sit=*) 1252 site=$ac_optarg ;; 1253 1254 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1255 ac_prev=srcdir ;; 1256 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1257 srcdir=$ac_optarg ;; 1258 1259 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1260 | --syscon | --sysco | --sysc | --sys | --sy) 1261 ac_prev=sysconfdir ;; 1262 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1263 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1264 sysconfdir=$ac_optarg ;; 1265 1266 -target | --target | --targe | --targ | --tar | --ta | --t) 1267 ac_prev=target_alias ;; 1268 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1269 target_alias=$ac_optarg ;; 1270 1271 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1272 verbose=yes ;; 1273 1274 -version | --version | --versio | --versi | --vers | -V) 1275 ac_init_version=: ;; 1276 1277 -with-* | --with-*) 1278 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1279 # Reject names that are not valid shell variable names. 1280 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1281 as_fn_error $? "invalid package name: $ac_useropt" 1282 ac_useropt_orig=$ac_useropt 1283 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1284 case $ac_user_opts in 1285 *" 1286"with_$ac_useropt" 1287"*) ;; 1288 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1289 ac_unrecognized_sep=', ';; 1290 esac 1291 eval with_$ac_useropt=\$ac_optarg ;; 1292 1293 -without-* | --without-*) 1294 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1295 # Reject names that are not valid shell variable names. 1296 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1297 as_fn_error $? "invalid package name: $ac_useropt" 1298 ac_useropt_orig=$ac_useropt 1299 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1300 case $ac_user_opts in 1301 *" 1302"with_$ac_useropt" 1303"*) ;; 1304 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1305 ac_unrecognized_sep=', ';; 1306 esac 1307 eval with_$ac_useropt=no ;; 1308 1309 --x) 1310 # Obsolete; use --with-x. 1311 with_x=yes ;; 1312 1313 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1314 | --x-incl | --x-inc | --x-in | --x-i) 1315 ac_prev=x_includes ;; 1316 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1317 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1318 x_includes=$ac_optarg ;; 1319 1320 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1321 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1322 ac_prev=x_libraries ;; 1323 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1324 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1325 x_libraries=$ac_optarg ;; 1326 1327 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1328Try \`$0 --help' for more information" 1329 ;; 1330 1331 *=*) 1332 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1333 # Reject names that are not valid shell variable names. 1334 case $ac_envvar in #( 1335 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1336 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1337 esac 1338 eval $ac_envvar=\$ac_optarg 1339 export $ac_envvar ;; 1340 1341 *) 1342 # FIXME: should be removed in autoconf 3.0. 1343 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1344 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1345 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1346 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1347 ;; 1348 1349 esac 1350done 1351 1352if test -n "$ac_prev"; then 1353 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1354 as_fn_error $? "missing argument to $ac_option" 1355fi 1356 1357if test -n "$ac_unrecognized_opts"; then 1358 case $enable_option_checking in 1359 no) ;; 1360 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1361 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1362 esac 1363fi 1364 1365# Check all directory arguments for consistency. 1366for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1367 datadir sysconfdir sharedstatedir localstatedir includedir \ 1368 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1369 libdir localedir mandir runstatedir 1370do 1371 eval ac_val=\$$ac_var 1372 # Remove trailing slashes. 1373 case $ac_val in 1374 */ ) 1375 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1376 eval $ac_var=\$ac_val;; 1377 esac 1378 # Be sure to have absolute directory names. 1379 case $ac_val in 1380 [\\/$]* | ?:[\\/]* ) continue;; 1381 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1382 esac 1383 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1384done 1385 1386# There might be people who depend on the old broken behavior: `$host' 1387# used to hold the argument of --host etc. 1388# FIXME: To remove some day. 1389build=$build_alias 1390host=$host_alias 1391target=$target_alias 1392 1393# FIXME: To remove some day. 1394if test "x$host_alias" != x; then 1395 if test "x$build_alias" = x; then 1396 cross_compiling=maybe 1397 elif test "x$build_alias" != "x$host_alias"; then 1398 cross_compiling=yes 1399 fi 1400fi 1401 1402ac_tool_prefix= 1403test -n "$host_alias" && ac_tool_prefix=$host_alias- 1404 1405test "$silent" = yes && exec 6>/dev/null 1406 1407 1408ac_pwd=`pwd` && test -n "$ac_pwd" && 1409ac_ls_di=`ls -di .` && 1410ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1411 as_fn_error $? "working directory cannot be determined" 1412test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1413 as_fn_error $? "pwd does not report name of working directory" 1414 1415 1416# Find the source files, if location was not specified. 1417if test -z "$srcdir"; then 1418 ac_srcdir_defaulted=yes 1419 # Try the directory containing this script, then the parent directory. 1420 ac_confdir=`$as_dirname -- "$as_myself" || 1421$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1422 X"$as_myself" : 'X\(//\)[^/]' \| \ 1423 X"$as_myself" : 'X\(//\)$' \| \ 1424 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1425$as_echo X"$as_myself" | 1426 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1427 s//\1/ 1428 q 1429 } 1430 /^X\(\/\/\)[^/].*/{ 1431 s//\1/ 1432 q 1433 } 1434 /^X\(\/\/\)$/{ 1435 s//\1/ 1436 q 1437 } 1438 /^X\(\/\).*/{ 1439 s//\1/ 1440 q 1441 } 1442 s/.*/./; q'` 1443 srcdir=$ac_confdir 1444 if test ! -r "$srcdir/$ac_unique_file"; then 1445 srcdir=.. 1446 fi 1447else 1448 ac_srcdir_defaulted=no 1449fi 1450if test ! -r "$srcdir/$ac_unique_file"; then 1451 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1452 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1453fi 1454ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1455ac_abs_confdir=`( 1456 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1457 pwd)` 1458# When building in place, set srcdir=. 1459if test "$ac_abs_confdir" = "$ac_pwd"; then 1460 srcdir=. 1461fi 1462# Remove unnecessary trailing slashes from srcdir. 1463# Double slashes in file names in object file debugging info 1464# mess up M-x gdb in Emacs. 1465case $srcdir in 1466*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1467esac 1468for ac_var in $ac_precious_vars; do 1469 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1470 eval ac_env_${ac_var}_value=\$${ac_var} 1471 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1472 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1473done 1474 1475# 1476# Report the --help message. 1477# 1478if test "$ac_init_help" = "long"; then 1479 # Omit some internal or obsolete options to make the list less imposing. 1480 # This message is too long to be a string in the A/UX 3.1 sh. 1481 cat <<_ACEOF 1482\`configure' configures libXt 1.2.0 to adapt to many kinds of systems. 1483 1484Usage: $0 [OPTION]... [VAR=VALUE]... 1485 1486To assign environment variables (e.g., CC, CFLAGS...), specify them as 1487VAR=VALUE. See below for descriptions of some of the useful variables. 1488 1489Defaults for the options are specified in brackets. 1490 1491Configuration: 1492 -h, --help display this help and exit 1493 --help=short display options specific to this package 1494 --help=recursive display the short help of all the included packages 1495 -V, --version display version information and exit 1496 -q, --quiet, --silent do not print \`checking ...' messages 1497 --cache-file=FILE cache test results in FILE [disabled] 1498 -C, --config-cache alias for \`--cache-file=config.cache' 1499 -n, --no-create do not create output files 1500 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1501 1502Installation directories: 1503 --prefix=PREFIX install architecture-independent files in PREFIX 1504 [$ac_default_prefix] 1505 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1506 [PREFIX] 1507 1508By default, \`make install' will install all the files in 1509\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1510an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1511for instance \`--prefix=\$HOME'. 1512 1513For better control, use the options below. 1514 1515Fine tuning of the installation directories: 1516 --bindir=DIR user executables [EPREFIX/bin] 1517 --sbindir=DIR system admin executables [EPREFIX/sbin] 1518 --libexecdir=DIR program executables [EPREFIX/libexec] 1519 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1520 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1521 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1522 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] 1523 --libdir=DIR object code libraries [EPREFIX/lib] 1524 --includedir=DIR C header files [PREFIX/include] 1525 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1526 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1527 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1528 --infodir=DIR info documentation [DATAROOTDIR/info] 1529 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1530 --mandir=DIR man documentation [DATAROOTDIR/man] 1531 --docdir=DIR documentation root [DATAROOTDIR/doc/libXt] 1532 --htmldir=DIR html documentation [DOCDIR] 1533 --dvidir=DIR dvi documentation [DOCDIR] 1534 --pdfdir=DIR pdf documentation [DOCDIR] 1535 --psdir=DIR ps documentation [DOCDIR] 1536_ACEOF 1537 1538 cat <<\_ACEOF 1539 1540Program names: 1541 --program-prefix=PREFIX prepend PREFIX to installed program names 1542 --program-suffix=SUFFIX append SUFFIX to installed program names 1543 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1544 1545System types: 1546 --build=BUILD configure for building on BUILD [guessed] 1547 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1548_ACEOF 1549fi 1550 1551if test -n "$ac_init_help"; then 1552 case $ac_init_help in 1553 short | recursive ) echo "Configuration of libXt 1.2.0:";; 1554 esac 1555 cat <<\_ACEOF 1556 1557Optional Features: 1558 --disable-option-checking ignore unrecognized --enable/--with options 1559 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1560 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1561 --enable-silent-rules less verbose build output (undo: "make V=1") 1562 --disable-silent-rules verbose build output (undo: "make V=0") 1563 --enable-shared[=PKGS] build shared libraries [default=yes] 1564 --enable-static[=PKGS] build static libraries [default=yes] 1565 --enable-fast-install[=PKGS] 1566 optimize for fast installation [default=yes] 1567 --enable-dependency-tracking 1568 do not reject slow dependency extractors 1569 --disable-dependency-tracking 1570 speeds up one-time build 1571 --disable-libtool-lock avoid locking (might break parallel builds) 1572 --disable-selective-werror 1573 Turn off selective compiler errors. (default: 1574 enabled) 1575 --enable-strict-compilation 1576 Enable all warnings from compiler and make them 1577 errors (default: disabled) 1578 --enable-malloc0returnsnull 1579 malloc(0) returns NULL (default: auto) 1580 --enable-specs Enable building the specs (default: yes) 1581 --disable-xkb Disable XKB support 1582 --disable-const Disable const-support 1583 --enable-geo-tattler Enable geo-tattler traces 1584 --enable-unit-tests Enable building unit test cases (default: auto) 1585 1586Optional Packages: 1587 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1588 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1589 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1590 both] 1591 --with-aix-soname=aix|svr4|both 1592 shared library versioning (aka "SONAME") variant to 1593 provide on AIX, [default=aix]. 1594 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1595 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the 1596 compiler's sysroot if not specified). 1597 --with-xmlto Use xmlto to regenerate documentation (default: 1598 auto) 1599 --with-fop Use fop to regenerate documentation (default: auto) 1600 --with-xsltproc Use xsltproc for the transformation of XML documents 1601 (default: auto) 1602 --with-perl Use perl for extracting information from files 1603 (default: auto) 1604 --with-glib Use GLib library for unit testing (default: auto) 1605 --with-xfile-search-path=<path> 1606 Set path to search for app-defaults and other files 1607 --with-appdefaultdir=<path> 1608 Set app-default directory (default: 1609 ${datadir}/X11/app-defaults) 1610 1611Some influential environment variables: 1612 CC C compiler command 1613 CFLAGS C compiler flags 1614 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1615 nonstandard directory <lib dir> 1616 LIBS libraries to pass to the linker, e.g. -l<library> 1617 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1618 you have headers in a nonstandard directory <include dir> 1619 LT_SYS_LIBRARY_PATH 1620 User-defined run-time library search path. 1621 CPP C preprocessor 1622 PKG_CONFIG path to pkg-config utility 1623 PKG_CONFIG_PATH 1624 directories to add to pkg-config's search path 1625 PKG_CONFIG_LIBDIR 1626 path overriding pkg-config's built-in search path 1627 XMLTO Path to xmlto command 1628 FOP Path to fop command 1629 XSLTPROC Path to xsltproc command 1630 PERL Path to perl command 1631 XT_CFLAGS C compiler flags for XT, overriding pkg-config 1632 XT_LIBS linker flags for XT, overriding pkg-config 1633 XORG_MALLOC_DEBUG_ENV 1634 Environment variables to enable memory checking in tests 1635 GLIB_CFLAGS C compiler flags for GLIB, overriding pkg-config 1636 GLIB_LIBS linker flags for GLIB, overriding pkg-config 1637 1638Use these variables to override the choices made by `configure' or to help 1639it to find libraries and programs with nonstandard names/locations. 1640 1641Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libXt/issues>. 1642_ACEOF 1643ac_status=$? 1644fi 1645 1646if test "$ac_init_help" = "recursive"; then 1647 # If there are subdirs, report their specific --help. 1648 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1649 test -d "$ac_dir" || 1650 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1651 continue 1652 ac_builddir=. 1653 1654case "$ac_dir" in 1655.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1656*) 1657 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1658 # A ".." for each directory in $ac_dir_suffix. 1659 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1660 case $ac_top_builddir_sub in 1661 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1662 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1663 esac ;; 1664esac 1665ac_abs_top_builddir=$ac_pwd 1666ac_abs_builddir=$ac_pwd$ac_dir_suffix 1667# for backward compatibility: 1668ac_top_builddir=$ac_top_build_prefix 1669 1670case $srcdir in 1671 .) # We are building in place. 1672 ac_srcdir=. 1673 ac_top_srcdir=$ac_top_builddir_sub 1674 ac_abs_top_srcdir=$ac_pwd ;; 1675 [\\/]* | ?:[\\/]* ) # Absolute name. 1676 ac_srcdir=$srcdir$ac_dir_suffix; 1677 ac_top_srcdir=$srcdir 1678 ac_abs_top_srcdir=$srcdir ;; 1679 *) # Relative name. 1680 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1681 ac_top_srcdir=$ac_top_build_prefix$srcdir 1682 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1683esac 1684ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1685 1686 cd "$ac_dir" || { ac_status=$?; continue; } 1687 # Check for guested configure. 1688 if test -f "$ac_srcdir/configure.gnu"; then 1689 echo && 1690 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1691 elif test -f "$ac_srcdir/configure"; then 1692 echo && 1693 $SHELL "$ac_srcdir/configure" --help=recursive 1694 else 1695 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1696 fi || ac_status=$? 1697 cd "$ac_pwd" || { ac_status=$?; break; } 1698 done 1699fi 1700 1701test -n "$ac_init_help" && exit $ac_status 1702if $ac_init_version; then 1703 cat <<\_ACEOF 1704libXt configure 1.2.0 1705generated by GNU Autoconf 2.69 1706 1707Copyright (C) 2012 Free Software Foundation, Inc. 1708This configure script is free software; the Free Software Foundation 1709gives unlimited permission to copy, distribute and modify it. 1710_ACEOF 1711 exit 1712fi 1713 1714## ------------------------ ## 1715## Autoconf initialization. ## 1716## ------------------------ ## 1717 1718# ac_fn_c_try_compile LINENO 1719# -------------------------- 1720# Try to compile conftest.$ac_ext, and return whether this succeeded. 1721ac_fn_c_try_compile () 1722{ 1723 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1724 rm -f conftest.$ac_objext 1725 if { { ac_try="$ac_compile" 1726case "(($ac_try" in 1727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1728 *) ac_try_echo=$ac_try;; 1729esac 1730eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1731$as_echo "$ac_try_echo"; } >&5 1732 (eval "$ac_compile") 2>conftest.err 1733 ac_status=$? 1734 if test -s conftest.err; then 1735 grep -v '^ *+' conftest.err >conftest.er1 1736 cat conftest.er1 >&5 1737 mv -f conftest.er1 conftest.err 1738 fi 1739 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1740 test $ac_status = 0; } && { 1741 test -z "$ac_c_werror_flag" || 1742 test ! -s conftest.err 1743 } && test -s conftest.$ac_objext; then : 1744 ac_retval=0 1745else 1746 $as_echo "$as_me: failed program was:" >&5 1747sed 's/^/| /' conftest.$ac_ext >&5 1748 1749 ac_retval=1 1750fi 1751 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1752 as_fn_set_status $ac_retval 1753 1754} # ac_fn_c_try_compile 1755 1756# ac_fn_c_try_link LINENO 1757# ----------------------- 1758# Try to link conftest.$ac_ext, and return whether this succeeded. 1759ac_fn_c_try_link () 1760{ 1761 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1762 rm -f conftest.$ac_objext conftest$ac_exeext 1763 if { { ac_try="$ac_link" 1764case "(($ac_try" in 1765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1766 *) ac_try_echo=$ac_try;; 1767esac 1768eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1769$as_echo "$ac_try_echo"; } >&5 1770 (eval "$ac_link") 2>conftest.err 1771 ac_status=$? 1772 if test -s conftest.err; then 1773 grep -v '^ *+' conftest.err >conftest.er1 1774 cat conftest.er1 >&5 1775 mv -f conftest.er1 conftest.err 1776 fi 1777 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1778 test $ac_status = 0; } && { 1779 test -z "$ac_c_werror_flag" || 1780 test ! -s conftest.err 1781 } && test -s conftest$ac_exeext && { 1782 test "$cross_compiling" = yes || 1783 test -x conftest$ac_exeext 1784 }; then : 1785 ac_retval=0 1786else 1787 $as_echo "$as_me: failed program was:" >&5 1788sed 's/^/| /' conftest.$ac_ext >&5 1789 1790 ac_retval=1 1791fi 1792 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1793 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1794 # interfere with the next link command; also delete a directory that is 1795 # left behind by Apple's compiler. We do this before executing the actions. 1796 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1797 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1798 as_fn_set_status $ac_retval 1799 1800} # ac_fn_c_try_link 1801 1802# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1803# ------------------------------------------------------- 1804# Tests whether HEADER exists and can be compiled using the include files in 1805# INCLUDES, setting the cache variable VAR accordingly. 1806ac_fn_c_check_header_compile () 1807{ 1808 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1810$as_echo_n "checking for $2... " >&6; } 1811if eval \${$3+:} false; then : 1812 $as_echo_n "(cached) " >&6 1813else 1814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1815/* end confdefs.h. */ 1816$4 1817#include <$2> 1818_ACEOF 1819if ac_fn_c_try_compile "$LINENO"; then : 1820 eval "$3=yes" 1821else 1822 eval "$3=no" 1823fi 1824rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1825fi 1826eval ac_res=\$$3 1827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1828$as_echo "$ac_res" >&6; } 1829 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1830 1831} # ac_fn_c_check_header_compile 1832 1833# ac_fn_c_try_cpp LINENO 1834# ---------------------- 1835# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1836ac_fn_c_try_cpp () 1837{ 1838 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1839 if { { ac_try="$ac_cpp conftest.$ac_ext" 1840case "(($ac_try" in 1841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1842 *) ac_try_echo=$ac_try;; 1843esac 1844eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1845$as_echo "$ac_try_echo"; } >&5 1846 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1847 ac_status=$? 1848 if test -s conftest.err; then 1849 grep -v '^ *+' conftest.err >conftest.er1 1850 cat conftest.er1 >&5 1851 mv -f conftest.er1 conftest.err 1852 fi 1853 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1854 test $ac_status = 0; } > conftest.i && { 1855 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1856 test ! -s conftest.err 1857 }; then : 1858 ac_retval=0 1859else 1860 $as_echo "$as_me: failed program was:" >&5 1861sed 's/^/| /' conftest.$ac_ext >&5 1862 1863 ac_retval=1 1864fi 1865 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1866 as_fn_set_status $ac_retval 1867 1868} # ac_fn_c_try_cpp 1869 1870# ac_fn_c_try_run LINENO 1871# ---------------------- 1872# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1873# that executables *can* be run. 1874ac_fn_c_try_run () 1875{ 1876 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1877 if { { ac_try="$ac_link" 1878case "(($ac_try" in 1879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1880 *) ac_try_echo=$ac_try;; 1881esac 1882eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1883$as_echo "$ac_try_echo"; } >&5 1884 (eval "$ac_link") 2>&5 1885 ac_status=$? 1886 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1887 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1888 { { case "(($ac_try" in 1889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1890 *) ac_try_echo=$ac_try;; 1891esac 1892eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1893$as_echo "$ac_try_echo"; } >&5 1894 (eval "$ac_try") 2>&5 1895 ac_status=$? 1896 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1897 test $ac_status = 0; }; }; then : 1898 ac_retval=0 1899else 1900 $as_echo "$as_me: program exited with status $ac_status" >&5 1901 $as_echo "$as_me: failed program was:" >&5 1902sed 's/^/| /' conftest.$ac_ext >&5 1903 1904 ac_retval=$ac_status 1905fi 1906 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1907 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1908 as_fn_set_status $ac_retval 1909 1910} # ac_fn_c_try_run 1911 1912# ac_fn_c_check_func LINENO FUNC VAR 1913# ---------------------------------- 1914# Tests whether FUNC exists, setting the cache variable VAR accordingly 1915ac_fn_c_check_func () 1916{ 1917 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1919$as_echo_n "checking for $2... " >&6; } 1920if eval \${$3+:} false; then : 1921 $as_echo_n "(cached) " >&6 1922else 1923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1924/* end confdefs.h. */ 1925/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1926 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1927#define $2 innocuous_$2 1928 1929/* System header to define __stub macros and hopefully few prototypes, 1930 which can conflict with char $2 (); below. 1931 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1932 <limits.h> exists even on freestanding compilers. */ 1933 1934#ifdef __STDC__ 1935# include <limits.h> 1936#else 1937# include <assert.h> 1938#endif 1939 1940#undef $2 1941 1942/* Override any GCC internal prototype to avoid an error. 1943 Use char because int might match the return type of a GCC 1944 builtin and then its argument prototype would still apply. */ 1945#ifdef __cplusplus 1946extern "C" 1947#endif 1948char $2 (); 1949/* The GNU C library defines this for functions which it implements 1950 to always fail with ENOSYS. Some functions are actually named 1951 something starting with __ and the normal name is an alias. */ 1952#if defined __stub_$2 || defined __stub___$2 1953choke me 1954#endif 1955 1956int 1957main () 1958{ 1959return $2 (); 1960 ; 1961 return 0; 1962} 1963_ACEOF 1964if ac_fn_c_try_link "$LINENO"; then : 1965 eval "$3=yes" 1966else 1967 eval "$3=no" 1968fi 1969rm -f core conftest.err conftest.$ac_objext \ 1970 conftest$ac_exeext conftest.$ac_ext 1971fi 1972eval ac_res=\$$3 1973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1974$as_echo "$ac_res" >&6; } 1975 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1976 1977} # ac_fn_c_check_func 1978 1979# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES 1980# --------------------------------------------- 1981# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 1982# accordingly. 1983ac_fn_c_check_decl () 1984{ 1985 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1986 as_decl_name=`echo $2|sed 's/ *(.*//'` 1987 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 1988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 1989$as_echo_n "checking whether $as_decl_name is declared... " >&6; } 1990if eval \${$3+:} false; then : 1991 $as_echo_n "(cached) " >&6 1992else 1993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1994/* end confdefs.h. */ 1995$4 1996int 1997main () 1998{ 1999#ifndef $as_decl_name 2000#ifdef __cplusplus 2001 (void) $as_decl_use; 2002#else 2003 (void) $as_decl_name; 2004#endif 2005#endif 2006 2007 ; 2008 return 0; 2009} 2010_ACEOF 2011if ac_fn_c_try_compile "$LINENO"; then : 2012 eval "$3=yes" 2013else 2014 eval "$3=no" 2015fi 2016rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2017fi 2018eval ac_res=\$$3 2019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2020$as_echo "$ac_res" >&6; } 2021 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2022 2023} # ac_fn_c_check_decl 2024 2025# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 2026# ------------------------------------------------------- 2027# Tests whether HEADER exists, giving a warning if it cannot be compiled using 2028# the include files in INCLUDES and setting the cache variable VAR 2029# accordingly. 2030ac_fn_c_check_header_mongrel () 2031{ 2032 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2033 if eval \${$3+:} false; then : 2034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2035$as_echo_n "checking for $2... " >&6; } 2036if eval \${$3+:} false; then : 2037 $as_echo_n "(cached) " >&6 2038fi 2039eval ac_res=\$$3 2040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2041$as_echo "$ac_res" >&6; } 2042else 2043 # Is the header compilable? 2044{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 2045$as_echo_n "checking $2 usability... " >&6; } 2046cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2047/* end confdefs.h. */ 2048$4 2049#include <$2> 2050_ACEOF 2051if ac_fn_c_try_compile "$LINENO"; then : 2052 ac_header_compiler=yes 2053else 2054 ac_header_compiler=no 2055fi 2056rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2057{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 2058$as_echo "$ac_header_compiler" >&6; } 2059 2060# Is the header present? 2061{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 2062$as_echo_n "checking $2 presence... " >&6; } 2063cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2064/* end confdefs.h. */ 2065#include <$2> 2066_ACEOF 2067if ac_fn_c_try_cpp "$LINENO"; then : 2068 ac_header_preproc=yes 2069else 2070 ac_header_preproc=no 2071fi 2072rm -f conftest.err conftest.i conftest.$ac_ext 2073{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 2074$as_echo "$ac_header_preproc" >&6; } 2075 2076# So? What about this header? 2077case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 2078 yes:no: ) 2079 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 2080$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 2081 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2082$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2083 ;; 2084 no:yes:* ) 2085 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 2086$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 2087 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 2088$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 2089 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 2090$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 2091 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 2092$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 2093 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2094$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2095( $as_echo "## ------------------------------------------------------------------- ## 2096## Report this to https://gitlab.freedesktop.org/xorg/lib/libXt/issues ## 2097## ------------------------------------------------------------------- ##" 2098 ) | sed "s/^/$as_me: WARNING: /" >&2 2099 ;; 2100esac 2101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2102$as_echo_n "checking for $2... " >&6; } 2103if eval \${$3+:} false; then : 2104 $as_echo_n "(cached) " >&6 2105else 2106 eval "$3=\$ac_header_compiler" 2107fi 2108eval ac_res=\$$3 2109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2110$as_echo "$ac_res" >&6; } 2111fi 2112 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2113 2114} # ac_fn_c_check_header_mongrel 2115cat >config.log <<_ACEOF 2116This file contains any messages produced by compilers while 2117running configure, to aid debugging if configure makes a mistake. 2118 2119It was created by libXt $as_me 1.2.0, which was 2120generated by GNU Autoconf 2.69. Invocation command line was 2121 2122 $ $0 $@ 2123 2124_ACEOF 2125exec 5>>config.log 2126{ 2127cat <<_ASUNAME 2128## --------- ## 2129## Platform. ## 2130## --------- ## 2131 2132hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2133uname -m = `(uname -m) 2>/dev/null || echo unknown` 2134uname -r = `(uname -r) 2>/dev/null || echo unknown` 2135uname -s = `(uname -s) 2>/dev/null || echo unknown` 2136uname -v = `(uname -v) 2>/dev/null || echo unknown` 2137 2138/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2139/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2140 2141/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2142/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2143/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2144/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2145/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2146/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2147/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2148 2149_ASUNAME 2150 2151as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2152for as_dir in $PATH 2153do 2154 IFS=$as_save_IFS 2155 test -z "$as_dir" && as_dir=. 2156 $as_echo "PATH: $as_dir" 2157 done 2158IFS=$as_save_IFS 2159 2160} >&5 2161 2162cat >&5 <<_ACEOF 2163 2164 2165## ----------- ## 2166## Core tests. ## 2167## ----------- ## 2168 2169_ACEOF 2170 2171 2172# Keep a trace of the command line. 2173# Strip out --no-create and --no-recursion so they do not pile up. 2174# Strip out --silent because we don't want to record it for future runs. 2175# Also quote any args containing shell meta-characters. 2176# Make two passes to allow for proper duplicate-argument suppression. 2177ac_configure_args= 2178ac_configure_args0= 2179ac_configure_args1= 2180ac_must_keep_next=false 2181for ac_pass in 1 2 2182do 2183 for ac_arg 2184 do 2185 case $ac_arg in 2186 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2187 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2188 | -silent | --silent | --silen | --sile | --sil) 2189 continue ;; 2190 *\'*) 2191 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2192 esac 2193 case $ac_pass in 2194 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2195 2) 2196 as_fn_append ac_configure_args1 " '$ac_arg'" 2197 if test $ac_must_keep_next = true; then 2198 ac_must_keep_next=false # Got value, back to normal. 2199 else 2200 case $ac_arg in 2201 *=* | --config-cache | -C | -disable-* | --disable-* \ 2202 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2203 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2204 | -with-* | --with-* | -without-* | --without-* | --x) 2205 case "$ac_configure_args0 " in 2206 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2207 esac 2208 ;; 2209 -* ) ac_must_keep_next=true ;; 2210 esac 2211 fi 2212 as_fn_append ac_configure_args " '$ac_arg'" 2213 ;; 2214 esac 2215 done 2216done 2217{ ac_configure_args0=; unset ac_configure_args0;} 2218{ ac_configure_args1=; unset ac_configure_args1;} 2219 2220# When interrupted or exit'd, cleanup temporary files, and complete 2221# config.log. We remove comments because anyway the quotes in there 2222# would cause problems or look ugly. 2223# WARNING: Use '\'' to represent an apostrophe within the trap. 2224# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2225trap 'exit_status=$? 2226 # Save into config.log some information that might help in debugging. 2227 { 2228 echo 2229 2230 $as_echo "## ---------------- ## 2231## Cache variables. ## 2232## ---------------- ##" 2233 echo 2234 # The following way of writing the cache mishandles newlines in values, 2235( 2236 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2237 eval ac_val=\$$ac_var 2238 case $ac_val in #( 2239 *${as_nl}*) 2240 case $ac_var in #( 2241 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2242$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2243 esac 2244 case $ac_var in #( 2245 _ | IFS | as_nl) ;; #( 2246 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2247 *) { eval $ac_var=; unset $ac_var;} ;; 2248 esac ;; 2249 esac 2250 done 2251 (set) 2>&1 | 2252 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2253 *${as_nl}ac_space=\ *) 2254 sed -n \ 2255 "s/'\''/'\''\\\\'\'''\''/g; 2256 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2257 ;; #( 2258 *) 2259 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2260 ;; 2261 esac | 2262 sort 2263) 2264 echo 2265 2266 $as_echo "## ----------------- ## 2267## Output variables. ## 2268## ----------------- ##" 2269 echo 2270 for ac_var in $ac_subst_vars 2271 do 2272 eval ac_val=\$$ac_var 2273 case $ac_val in 2274 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2275 esac 2276 $as_echo "$ac_var='\''$ac_val'\''" 2277 done | sort 2278 echo 2279 2280 if test -n "$ac_subst_files"; then 2281 $as_echo "## ------------------- ## 2282## File substitutions. ## 2283## ------------------- ##" 2284 echo 2285 for ac_var in $ac_subst_files 2286 do 2287 eval ac_val=\$$ac_var 2288 case $ac_val in 2289 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2290 esac 2291 $as_echo "$ac_var='\''$ac_val'\''" 2292 done | sort 2293 echo 2294 fi 2295 2296 if test -s confdefs.h; then 2297 $as_echo "## ----------- ## 2298## confdefs.h. ## 2299## ----------- ##" 2300 echo 2301 cat confdefs.h 2302 echo 2303 fi 2304 test "$ac_signal" != 0 && 2305 $as_echo "$as_me: caught signal $ac_signal" 2306 $as_echo "$as_me: exit $exit_status" 2307 } >&5 2308 rm -f core *.core core.conftest.* && 2309 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2310 exit $exit_status 2311' 0 2312for ac_signal in 1 2 13 15; do 2313 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2314done 2315ac_signal=0 2316 2317# confdefs.h avoids OS command line length limits that DEFS can exceed. 2318rm -f -r conftest* confdefs.h 2319 2320$as_echo "/* confdefs.h */" > confdefs.h 2321 2322# Predefined preprocessor variables. 2323 2324cat >>confdefs.h <<_ACEOF 2325#define PACKAGE_NAME "$PACKAGE_NAME" 2326_ACEOF 2327 2328cat >>confdefs.h <<_ACEOF 2329#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2330_ACEOF 2331 2332cat >>confdefs.h <<_ACEOF 2333#define PACKAGE_VERSION "$PACKAGE_VERSION" 2334_ACEOF 2335 2336cat >>confdefs.h <<_ACEOF 2337#define PACKAGE_STRING "$PACKAGE_STRING" 2338_ACEOF 2339 2340cat >>confdefs.h <<_ACEOF 2341#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2342_ACEOF 2343 2344cat >>confdefs.h <<_ACEOF 2345#define PACKAGE_URL "$PACKAGE_URL" 2346_ACEOF 2347 2348 2349# Let the site file select an alternate cache file if it wants to. 2350# Prefer an explicitly selected file to automatically selected ones. 2351ac_site_file1=NONE 2352ac_site_file2=NONE 2353if test -n "$CONFIG_SITE"; then 2354 # We do not want a PATH search for config.site. 2355 case $CONFIG_SITE in #(( 2356 -*) ac_site_file1=./$CONFIG_SITE;; 2357 */*) ac_site_file1=$CONFIG_SITE;; 2358 *) ac_site_file1=./$CONFIG_SITE;; 2359 esac 2360elif test "x$prefix" != xNONE; then 2361 ac_site_file1=$prefix/share/config.site 2362 ac_site_file2=$prefix/etc/config.site 2363else 2364 ac_site_file1=$ac_default_prefix/share/config.site 2365 ac_site_file2=$ac_default_prefix/etc/config.site 2366fi 2367for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2368do 2369 test "x$ac_site_file" = xNONE && continue 2370 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2371 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2372$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2373 sed 's/^/| /' "$ac_site_file" >&5 2374 . "$ac_site_file" \ 2375 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2376$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2377as_fn_error $? "failed to load site script $ac_site_file 2378See \`config.log' for more details" "$LINENO" 5; } 2379 fi 2380done 2381 2382if test -r "$cache_file"; then 2383 # Some versions of bash will fail to source /dev/null (special files 2384 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2385 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2386 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2387$as_echo "$as_me: loading cache $cache_file" >&6;} 2388 case $cache_file in 2389 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2390 *) . "./$cache_file";; 2391 esac 2392 fi 2393else 2394 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2395$as_echo "$as_me: creating cache $cache_file" >&6;} 2396 >$cache_file 2397fi 2398 2399# Check that the precious variables saved in the cache have kept the same 2400# value. 2401ac_cache_corrupted=false 2402for ac_var in $ac_precious_vars; do 2403 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2404 eval ac_new_set=\$ac_env_${ac_var}_set 2405 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2406 eval ac_new_val=\$ac_env_${ac_var}_value 2407 case $ac_old_set,$ac_new_set in 2408 set,) 2409 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2410$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2411 ac_cache_corrupted=: ;; 2412 ,set) 2413 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2414$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2415 ac_cache_corrupted=: ;; 2416 ,);; 2417 *) 2418 if test "x$ac_old_val" != "x$ac_new_val"; then 2419 # differences in whitespace do not lead to failure. 2420 ac_old_val_w=`echo x $ac_old_val` 2421 ac_new_val_w=`echo x $ac_new_val` 2422 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2423 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2424$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2425 ac_cache_corrupted=: 2426 else 2427 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2428$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2429 eval $ac_var=\$ac_old_val 2430 fi 2431 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2432$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2433 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2434$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2435 fi;; 2436 esac 2437 # Pass precious variables to config.status. 2438 if test "$ac_new_set" = set; then 2439 case $ac_new_val in 2440 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2441 *) ac_arg=$ac_var=$ac_new_val ;; 2442 esac 2443 case " $ac_configure_args " in 2444 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2445 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2446 esac 2447 fi 2448done 2449if $ac_cache_corrupted; then 2450 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2451$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2452 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2453$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2454 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2455fi 2456## -------------------- ## 2457## Main body of script. ## 2458## -------------------- ## 2459 2460ac_ext=c 2461ac_cpp='$CPP $CPPFLAGS' 2462ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2463ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2464ac_compiler_gnu=$ac_cv_c_compiler_gnu 2465 2466 2467 2468ac_config_headers="$ac_config_headers config.h" 2469 2470 2471 2472# Initialize Automake 2473am__api_version='1.16' 2474 2475ac_aux_dir= 2476for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2477 if test -f "$ac_dir/install-sh"; then 2478 ac_aux_dir=$ac_dir 2479 ac_install_sh="$ac_aux_dir/install-sh -c" 2480 break 2481 elif test -f "$ac_dir/install.sh"; then 2482 ac_aux_dir=$ac_dir 2483 ac_install_sh="$ac_aux_dir/install.sh -c" 2484 break 2485 elif test -f "$ac_dir/shtool"; then 2486 ac_aux_dir=$ac_dir 2487 ac_install_sh="$ac_aux_dir/shtool install -c" 2488 break 2489 fi 2490done 2491if test -z "$ac_aux_dir"; then 2492 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 2493fi 2494 2495# These three variables are undocumented and unsupported, 2496# and are intended to be withdrawn in a future Autoconf release. 2497# They can cause serious problems if a builder's source tree is in a directory 2498# whose full name contains unusual characters. 2499ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2500ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2501ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2502 2503 2504# Find a good install program. We prefer a C program (faster), 2505# so one script is as good as another. But avoid the broken or 2506# incompatible versions: 2507# SysV /etc/install, /usr/sbin/install 2508# SunOS /usr/etc/install 2509# IRIX /sbin/install 2510# AIX /bin/install 2511# AmigaOS /C/install, which installs bootblocks on floppy discs 2512# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2513# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2514# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2515# OS/2's system install, which has a completely different semantic 2516# ./install, which can be erroneously created by make from ./install.sh. 2517# Reject install programs that cannot install multiple files. 2518{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2519$as_echo_n "checking for a BSD-compatible install... " >&6; } 2520if test -z "$INSTALL"; then 2521if ${ac_cv_path_install+:} false; then : 2522 $as_echo_n "(cached) " >&6 2523else 2524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2525for as_dir in $PATH 2526do 2527 IFS=$as_save_IFS 2528 test -z "$as_dir" && as_dir=. 2529 # Account for people who put trailing slashes in PATH elements. 2530case $as_dir/ in #(( 2531 ./ | .// | /[cC]/* | \ 2532 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2533 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2534 /usr/ucb/* ) ;; 2535 *) 2536 # OSF1 and SCO ODT 3.0 have their own names for install. 2537 # Don't use installbsd from OSF since it installs stuff as root 2538 # by default. 2539 for ac_prog in ginstall scoinst install; do 2540 for ac_exec_ext in '' $ac_executable_extensions; do 2541 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 2542 if test $ac_prog = install && 2543 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2544 # AIX install. It has an incompatible calling convention. 2545 : 2546 elif test $ac_prog = install && 2547 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2548 # program-specific install script used by HP pwplus--don't use. 2549 : 2550 else 2551 rm -rf conftest.one conftest.two conftest.dir 2552 echo one > conftest.one 2553 echo two > conftest.two 2554 mkdir conftest.dir 2555 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2556 test -s conftest.one && test -s conftest.two && 2557 test -s conftest.dir/conftest.one && 2558 test -s conftest.dir/conftest.two 2559 then 2560 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2561 break 3 2562 fi 2563 fi 2564 fi 2565 done 2566 done 2567 ;; 2568esac 2569 2570 done 2571IFS=$as_save_IFS 2572 2573rm -rf conftest.one conftest.two conftest.dir 2574 2575fi 2576 if test "${ac_cv_path_install+set}" = set; then 2577 INSTALL=$ac_cv_path_install 2578 else 2579 # As a last resort, use the slow shell script. Don't cache a 2580 # value for INSTALL within a source directory, because that will 2581 # break other packages using the cache if that directory is 2582 # removed, or if the value is a relative name. 2583 INSTALL=$ac_install_sh 2584 fi 2585fi 2586{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2587$as_echo "$INSTALL" >&6; } 2588 2589# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2590# It thinks the first close brace ends the variable substitution. 2591test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2592 2593test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2594 2595test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2596 2597{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2598$as_echo_n "checking whether build environment is sane... " >&6; } 2599# Reject unsafe characters in $srcdir or the absolute working directory 2600# name. Accept space and tab only in the latter. 2601am_lf=' 2602' 2603case `pwd` in 2604 *[\\\"\#\$\&\'\`$am_lf]*) 2605 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2606esac 2607case $srcdir in 2608 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2609 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 2610esac 2611 2612# Do 'set' in a subshell so we don't clobber the current shell's 2613# arguments. Must try -L first in case configure is actually a 2614# symlink; some systems play weird games with the mod time of symlinks 2615# (eg FreeBSD returns the mod time of the symlink's containing 2616# directory). 2617if ( 2618 am_has_slept=no 2619 for am_try in 1 2; do 2620 echo "timestamp, slept: $am_has_slept" > conftest.file 2621 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2622 if test "$*" = "X"; then 2623 # -L didn't work. 2624 set X `ls -t "$srcdir/configure" conftest.file` 2625 fi 2626 if test "$*" != "X $srcdir/configure conftest.file" \ 2627 && test "$*" != "X conftest.file $srcdir/configure"; then 2628 2629 # If neither matched, then we have a broken ls. This can happen 2630 # if, for instance, CONFIG_SHELL is bash and it inherits a 2631 # broken ls alias from the environment. This has actually 2632 # happened. Such a system could not be considered "sane". 2633 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2634 alias in your environment" "$LINENO" 5 2635 fi 2636 if test "$2" = conftest.file || test $am_try -eq 2; then 2637 break 2638 fi 2639 # Just in case. 2640 sleep 1 2641 am_has_slept=yes 2642 done 2643 test "$2" = conftest.file 2644 ) 2645then 2646 # Ok. 2647 : 2648else 2649 as_fn_error $? "newly created file is older than distributed files! 2650Check your system clock" "$LINENO" 5 2651fi 2652{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2653$as_echo "yes" >&6; } 2654# If we didn't sleep, we still need to ensure time stamps of config.status and 2655# generated files are strictly newer. 2656am_sleep_pid= 2657if grep 'slept: no' conftest.file >/dev/null 2>&1; then 2658 ( sleep 1 ) & 2659 am_sleep_pid=$! 2660fi 2661 2662rm -f conftest.file 2663 2664test "$program_prefix" != NONE && 2665 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2666# Use a double $ so make ignores it. 2667test "$program_suffix" != NONE && 2668 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2669# Double any \ or $. 2670# By default was `s,x,x', remove it if useless. 2671ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2672program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2673 2674# Expand $ac_aux_dir to an absolute path. 2675am_aux_dir=`cd "$ac_aux_dir" && pwd` 2676 2677if test x"${MISSING+set}" != xset; then 2678 case $am_aux_dir in 2679 *\ * | *\ *) 2680 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 2681 *) 2682 MISSING="\${SHELL} $am_aux_dir/missing" ;; 2683 esac 2684fi 2685# Use eval to expand $SHELL 2686if eval "$MISSING --is-lightweight"; then 2687 am_missing_run="$MISSING " 2688else 2689 am_missing_run= 2690 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 2691$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 2692fi 2693 2694if test x"${install_sh+set}" != xset; then 2695 case $am_aux_dir in 2696 *\ * | *\ *) 2697 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2698 *) 2699 install_sh="\${SHELL} $am_aux_dir/install-sh" 2700 esac 2701fi 2702 2703# Installed binaries are usually stripped using 'strip' when the user 2704# run "make install-strip". However 'strip' might not be the right 2705# tool to use in cross-compilation environments, therefore Automake 2706# will honor the 'STRIP' environment variable to overrule this program. 2707if test "$cross_compiling" != no; then 2708 if test -n "$ac_tool_prefix"; then 2709 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2710set dummy ${ac_tool_prefix}strip; ac_word=$2 2711{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2712$as_echo_n "checking for $ac_word... " >&6; } 2713if ${ac_cv_prog_STRIP+:} false; then : 2714 $as_echo_n "(cached) " >&6 2715else 2716 if test -n "$STRIP"; then 2717 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2718else 2719as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2720for as_dir in $PATH 2721do 2722 IFS=$as_save_IFS 2723 test -z "$as_dir" && as_dir=. 2724 for ac_exec_ext in '' $ac_executable_extensions; do 2725 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2726 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2727 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2728 break 2 2729 fi 2730done 2731 done 2732IFS=$as_save_IFS 2733 2734fi 2735fi 2736STRIP=$ac_cv_prog_STRIP 2737if test -n "$STRIP"; then 2738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2739$as_echo "$STRIP" >&6; } 2740else 2741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2742$as_echo "no" >&6; } 2743fi 2744 2745 2746fi 2747if test -z "$ac_cv_prog_STRIP"; then 2748 ac_ct_STRIP=$STRIP 2749 # Extract the first word of "strip", so it can be a program name with args. 2750set dummy strip; ac_word=$2 2751{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2752$as_echo_n "checking for $ac_word... " >&6; } 2753if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 2754 $as_echo_n "(cached) " >&6 2755else 2756 if test -n "$ac_ct_STRIP"; then 2757 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2758else 2759as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2760for as_dir in $PATH 2761do 2762 IFS=$as_save_IFS 2763 test -z "$as_dir" && as_dir=. 2764 for ac_exec_ext in '' $ac_executable_extensions; do 2765 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2766 ac_cv_prog_ac_ct_STRIP="strip" 2767 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2768 break 2 2769 fi 2770done 2771 done 2772IFS=$as_save_IFS 2773 2774fi 2775fi 2776ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2777if test -n "$ac_ct_STRIP"; then 2778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2779$as_echo "$ac_ct_STRIP" >&6; } 2780else 2781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2782$as_echo "no" >&6; } 2783fi 2784 2785 if test "x$ac_ct_STRIP" = x; then 2786 STRIP=":" 2787 else 2788 case $cross_compiling:$ac_tool_warned in 2789yes:) 2790{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2791$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2792ac_tool_warned=yes ;; 2793esac 2794 STRIP=$ac_ct_STRIP 2795 fi 2796else 2797 STRIP="$ac_cv_prog_STRIP" 2798fi 2799 2800fi 2801INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2802 2803{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 2804$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2805if test -z "$MKDIR_P"; then 2806 if ${ac_cv_path_mkdir+:} false; then : 2807 $as_echo_n "(cached) " >&6 2808else 2809 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2810for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2811do 2812 IFS=$as_save_IFS 2813 test -z "$as_dir" && as_dir=. 2814 for ac_prog in mkdir gmkdir; do 2815 for ac_exec_ext in '' $ac_executable_extensions; do 2816 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue 2817 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2818 'mkdir (GNU coreutils) '* | \ 2819 'mkdir (coreutils) '* | \ 2820 'mkdir (fileutils) '4.1*) 2821 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2822 break 3;; 2823 esac 2824 done 2825 done 2826 done 2827IFS=$as_save_IFS 2828 2829fi 2830 2831 test -d ./--version && rmdir ./--version 2832 if test "${ac_cv_path_mkdir+set}" = set; then 2833 MKDIR_P="$ac_cv_path_mkdir -p" 2834 else 2835 # As a last resort, use the slow shell script. Don't cache a 2836 # value for MKDIR_P within a source directory, because that will 2837 # break other packages using the cache if that directory is 2838 # removed, or if the value is a relative name. 2839 MKDIR_P="$ac_install_sh -d" 2840 fi 2841fi 2842{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 2843$as_echo "$MKDIR_P" >&6; } 2844 2845for ac_prog in gawk mawk nawk awk 2846do 2847 # Extract the first word of "$ac_prog", so it can be a program name with args. 2848set dummy $ac_prog; ac_word=$2 2849{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2850$as_echo_n "checking for $ac_word... " >&6; } 2851if ${ac_cv_prog_AWK+:} false; then : 2852 $as_echo_n "(cached) " >&6 2853else 2854 if test -n "$AWK"; then 2855 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2856else 2857as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2858for as_dir in $PATH 2859do 2860 IFS=$as_save_IFS 2861 test -z "$as_dir" && as_dir=. 2862 for ac_exec_ext in '' $ac_executable_extensions; do 2863 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2864 ac_cv_prog_AWK="$ac_prog" 2865 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2866 break 2 2867 fi 2868done 2869 done 2870IFS=$as_save_IFS 2871 2872fi 2873fi 2874AWK=$ac_cv_prog_AWK 2875if test -n "$AWK"; then 2876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 2877$as_echo "$AWK" >&6; } 2878else 2879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2880$as_echo "no" >&6; } 2881fi 2882 2883 2884 test -n "$AWK" && break 2885done 2886 2887{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2888$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2889set x ${MAKE-make} 2890ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2891if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 2892 $as_echo_n "(cached) " >&6 2893else 2894 cat >conftest.make <<\_ACEOF 2895SHELL = /bin/sh 2896all: 2897 @echo '@@@%%%=$(MAKE)=@@@%%%' 2898_ACEOF 2899# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 2900case `${MAKE-make} -f conftest.make 2>/dev/null` in 2901 *@@@%%%=?*=@@@%%%*) 2902 eval ac_cv_prog_make_${ac_make}_set=yes;; 2903 *) 2904 eval ac_cv_prog_make_${ac_make}_set=no;; 2905esac 2906rm -f conftest.make 2907fi 2908if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2910$as_echo "yes" >&6; } 2911 SET_MAKE= 2912else 2913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2914$as_echo "no" >&6; } 2915 SET_MAKE="MAKE=${MAKE-make}" 2916fi 2917 2918rm -rf .tst 2>/dev/null 2919mkdir .tst 2>/dev/null 2920if test -d .tst; then 2921 am__leading_dot=. 2922else 2923 am__leading_dot=_ 2924fi 2925rmdir .tst 2>/dev/null 2926 2927# Check whether --enable-silent-rules was given. 2928if test "${enable_silent_rules+set}" = set; then : 2929 enableval=$enable_silent_rules; 2930fi 2931 2932case $enable_silent_rules in # ((( 2933 yes) AM_DEFAULT_VERBOSITY=0;; 2934 no) AM_DEFAULT_VERBOSITY=1;; 2935 *) AM_DEFAULT_VERBOSITY=1;; 2936esac 2937am_make=${MAKE-make} 2938{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 2939$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 2940if ${am_cv_make_support_nested_variables+:} false; then : 2941 $as_echo_n "(cached) " >&6 2942else 2943 if $as_echo 'TRUE=$(BAR$(V)) 2944BAR0=false 2945BAR1=true 2946V=1 2947am__doit: 2948 @$(TRUE) 2949.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 2950 am_cv_make_support_nested_variables=yes 2951else 2952 am_cv_make_support_nested_variables=no 2953fi 2954fi 2955{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 2956$as_echo "$am_cv_make_support_nested_variables" >&6; } 2957if test $am_cv_make_support_nested_variables = yes; then 2958 AM_V='$(V)' 2959 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 2960else 2961 AM_V=$AM_DEFAULT_VERBOSITY 2962 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 2963fi 2964AM_BACKSLASH='\' 2965 2966if test "`cd $srcdir && pwd`" != "`pwd`"; then 2967 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 2968 # is not polluted with repeated "-I." 2969 am__isrc=' -I$(srcdir)' 2970 # test to see if srcdir already configured 2971 if test -f $srcdir/config.status; then 2972 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 2973 fi 2974fi 2975 2976# test whether we have cygpath 2977if test -z "$CYGPATH_W"; then 2978 if (cygpath --version) >/dev/null 2>/dev/null; then 2979 CYGPATH_W='cygpath -w' 2980 else 2981 CYGPATH_W=echo 2982 fi 2983fi 2984 2985 2986# Define the identity of the package. 2987 PACKAGE='libXt' 2988 VERSION='1.2.0' 2989 2990 2991cat >>confdefs.h <<_ACEOF 2992#define PACKAGE "$PACKAGE" 2993_ACEOF 2994 2995 2996cat >>confdefs.h <<_ACEOF 2997#define VERSION "$VERSION" 2998_ACEOF 2999 3000# Some tools Automake needs. 3001 3002ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 3003 3004 3005AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 3006 3007 3008AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 3009 3010 3011AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 3012 3013 3014MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 3015 3016# For better backward compatibility. To be removed once Automake 1.9.x 3017# dies out for good. For more background, see: 3018# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 3019# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 3020mkdir_p='$(MKDIR_P)' 3021 3022# We need awk for the "check" target (and possibly the TAP driver). The 3023# system "awk" is bad on some platforms. 3024# Always define AMTAR for backward compatibility. Yes, it's still used 3025# in the wild :-( We should find a proper way to deprecate it ... 3026AMTAR='$${TAR-tar}' 3027 3028 3029# We'll loop over all known methods to create a tar archive until one works. 3030_am_tools='gnutar pax cpio none' 3031 3032am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 3033 3034 3035 3036 3037 3038 3039# POSIX will say in a future version that running "rm -f" with no argument 3040# is OK; and we want to be able to make that assumption in our Makefile 3041# recipes. So use an aggressive probe to check that the usage we want is 3042# actually supported "in the wild" to an acceptable degree. 3043# See automake bug#10828. 3044# To make any issue more visible, cause the running configure to be aborted 3045# by default if the 'rm' program in use doesn't match our expectations; the 3046# user can still override this though. 3047if rm -f && rm -fr && rm -rf; then : OK; else 3048 cat >&2 <<'END' 3049Oops! 3050 3051Your 'rm' program seems unable to run without file operands specified 3052on the command line, even when the '-f' option is present. This is contrary 3053to the behaviour of most rm programs out there, and not conforming with 3054the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 3055 3056Please tell bug-automake@gnu.org about your system, including the value 3057of your $PATH and any error possibly output before this message. This 3058can help us improve future automake versions. 3059 3060END 3061 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 3062 echo 'Configuration will proceed anyway, since you have set the' >&2 3063 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 3064 echo >&2 3065 else 3066 cat >&2 <<'END' 3067Aborting the configuration process, to ensure you take notice of the issue. 3068 3069You can download and install GNU coreutils to get an 'rm' implementation 3070that behaves properly: <https://www.gnu.org/software/coreutils/>. 3071 3072If you want to complete the configuration process using your problematic 3073'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 3074to "yes", and re-run configure. 3075 3076END 3077 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 3078 fi 3079fi 3080 3081 3082# Initialize libtool 3083case `pwd` in 3084 *\ * | *\ *) 3085 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 3086$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 3087esac 3088 3089 3090 3091macro_version='2.4.6' 3092macro_revision='2.4.6' 3093 3094 3095 3096 3097 3098 3099 3100 3101 3102 3103 3104 3105 3106ltmain=$ac_aux_dir/ltmain.sh 3107 3108# Make sure we can run config.sub. 3109$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 3110 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 3111 3112{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 3113$as_echo_n "checking build system type... " >&6; } 3114if ${ac_cv_build+:} false; then : 3115 $as_echo_n "(cached) " >&6 3116else 3117 ac_build_alias=$build_alias 3118test "x$ac_build_alias" = x && 3119 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 3120test "x$ac_build_alias" = x && 3121 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 3122ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 3123 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 3124 3125fi 3126{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 3127$as_echo "$ac_cv_build" >&6; } 3128case $ac_cv_build in 3129*-*-*) ;; 3130*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 3131esac 3132build=$ac_cv_build 3133ac_save_IFS=$IFS; IFS='-' 3134set x $ac_cv_build 3135shift 3136build_cpu=$1 3137build_vendor=$2 3138shift; shift 3139# Remember, the first character of IFS is used to create $*, 3140# except with old shells: 3141build_os=$* 3142IFS=$ac_save_IFS 3143case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 3144 3145 3146{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 3147$as_echo_n "checking host system type... " >&6; } 3148if ${ac_cv_host+:} false; then : 3149 $as_echo_n "(cached) " >&6 3150else 3151 if test "x$host_alias" = x; then 3152 ac_cv_host=$ac_cv_build 3153else 3154 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 3155 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 3156fi 3157 3158fi 3159{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 3160$as_echo "$ac_cv_host" >&6; } 3161case $ac_cv_host in 3162*-*-*) ;; 3163*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 3164esac 3165host=$ac_cv_host 3166ac_save_IFS=$IFS; IFS='-' 3167set x $ac_cv_host 3168shift 3169host_cpu=$1 3170host_vendor=$2 3171shift; shift 3172# Remember, the first character of IFS is used to create $*, 3173# except with old shells: 3174host_os=$* 3175IFS=$ac_save_IFS 3176case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 3177 3178 3179# Backslashify metacharacters that are still active within 3180# double-quoted strings. 3181sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 3182 3183# Same as above, but do not quote variable references. 3184double_quote_subst='s/\(["`\\]\)/\\\1/g' 3185 3186# Sed substitution to delay expansion of an escaped shell variable in a 3187# double_quote_subst'ed string. 3188delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 3189 3190# Sed substitution to delay expansion of an escaped single quote. 3191delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 3192 3193# Sed substitution to avoid accidental globbing in evaled expressions 3194no_glob_subst='s/\*/\\\*/g' 3195 3196ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 3197ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 3198ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 3199 3200{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 3201$as_echo_n "checking how to print strings... " >&6; } 3202# Test print first, because it will be a builtin if present. 3203if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 3204 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 3205 ECHO='print -r --' 3206elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 3207 ECHO='printf %s\n' 3208else 3209 # Use this function as a fallback that always works. 3210 func_fallback_echo () 3211 { 3212 eval 'cat <<_LTECHO_EOF 3213$1 3214_LTECHO_EOF' 3215 } 3216 ECHO='func_fallback_echo' 3217fi 3218 3219# func_echo_all arg... 3220# Invoke $ECHO with all args, space-separated. 3221func_echo_all () 3222{ 3223 $ECHO "" 3224} 3225 3226case $ECHO in 3227 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 3228$as_echo "printf" >&6; } ;; 3229 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 3230$as_echo "print -r" >&6; } ;; 3231 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 3232$as_echo "cat" >&6; } ;; 3233esac 3234 3235 3236 3237 3238 3239 3240 3241 3242 3243 3244 3245 3246 3247 3248DEPDIR="${am__leading_dot}deps" 3249 3250ac_config_commands="$ac_config_commands depfiles" 3251 3252{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5 3253$as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; } 3254cat > confinc.mk << 'END' 3255am__doit: 3256 @echo this is the am__doit target >confinc.out 3257.PHONY: am__doit 3258END 3259am__include="#" 3260am__quote= 3261# BSD make does it like this. 3262echo '.include "confinc.mk" # ignored' > confmf.BSD 3263# Other make implementations (GNU, Solaris 10, AIX) do it like this. 3264echo 'include confinc.mk # ignored' > confmf.GNU 3265_am_result=no 3266for s in GNU BSD; do 3267 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5 3268 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5 3269 ac_status=$? 3270 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3271 (exit $ac_status); } 3272 case $?:`cat confinc.out 2>/dev/null` in #( 3273 '0:this is the am__doit target') : 3274 case $s in #( 3275 BSD) : 3276 am__include='.include' am__quote='"' ;; #( 3277 *) : 3278 am__include='include' am__quote='' ;; 3279esac ;; #( 3280 *) : 3281 ;; 3282esac 3283 if test "$am__include" != "#"; then 3284 _am_result="yes ($s style)" 3285 break 3286 fi 3287done 3288rm -f confinc.* confmf.* 3289{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5 3290$as_echo "${_am_result}" >&6; } 3291 3292# Check whether --enable-dependency-tracking was given. 3293if test "${enable_dependency_tracking+set}" = set; then : 3294 enableval=$enable_dependency_tracking; 3295fi 3296 3297if test "x$enable_dependency_tracking" != xno; then 3298 am_depcomp="$ac_aux_dir/depcomp" 3299 AMDEPBACKSLASH='\' 3300 am__nodep='_no' 3301fi 3302 if test "x$enable_dependency_tracking" != xno; then 3303 AMDEP_TRUE= 3304 AMDEP_FALSE='#' 3305else 3306 AMDEP_TRUE='#' 3307 AMDEP_FALSE= 3308fi 3309 3310 3311ac_ext=c 3312ac_cpp='$CPP $CPPFLAGS' 3313ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3314ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3315ac_compiler_gnu=$ac_cv_c_compiler_gnu 3316if test -n "$ac_tool_prefix"; then 3317 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3318set dummy ${ac_tool_prefix}gcc; ac_word=$2 3319{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3320$as_echo_n "checking for $ac_word... " >&6; } 3321if ${ac_cv_prog_CC+:} false; then : 3322 $as_echo_n "(cached) " >&6 3323else 3324 if test -n "$CC"; then 3325 ac_cv_prog_CC="$CC" # Let the user override the test. 3326else 3327as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3328for as_dir in $PATH 3329do 3330 IFS=$as_save_IFS 3331 test -z "$as_dir" && as_dir=. 3332 for ac_exec_ext in '' $ac_executable_extensions; do 3333 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3334 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3335 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3336 break 2 3337 fi 3338done 3339 done 3340IFS=$as_save_IFS 3341 3342fi 3343fi 3344CC=$ac_cv_prog_CC 3345if test -n "$CC"; then 3346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3347$as_echo "$CC" >&6; } 3348else 3349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3350$as_echo "no" >&6; } 3351fi 3352 3353 3354fi 3355if test -z "$ac_cv_prog_CC"; then 3356 ac_ct_CC=$CC 3357 # Extract the first word of "gcc", so it can be a program name with args. 3358set dummy gcc; ac_word=$2 3359{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3360$as_echo_n "checking for $ac_word... " >&6; } 3361if ${ac_cv_prog_ac_ct_CC+:} false; then : 3362 $as_echo_n "(cached) " >&6 3363else 3364 if test -n "$ac_ct_CC"; then 3365 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3366else 3367as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3368for as_dir in $PATH 3369do 3370 IFS=$as_save_IFS 3371 test -z "$as_dir" && as_dir=. 3372 for ac_exec_ext in '' $ac_executable_extensions; do 3373 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3374 ac_cv_prog_ac_ct_CC="gcc" 3375 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3376 break 2 3377 fi 3378done 3379 done 3380IFS=$as_save_IFS 3381 3382fi 3383fi 3384ac_ct_CC=$ac_cv_prog_ac_ct_CC 3385if test -n "$ac_ct_CC"; then 3386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3387$as_echo "$ac_ct_CC" >&6; } 3388else 3389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3390$as_echo "no" >&6; } 3391fi 3392 3393 if test "x$ac_ct_CC" = x; then 3394 CC="" 3395 else 3396 case $cross_compiling:$ac_tool_warned in 3397yes:) 3398{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3399$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3400ac_tool_warned=yes ;; 3401esac 3402 CC=$ac_ct_CC 3403 fi 3404else 3405 CC="$ac_cv_prog_CC" 3406fi 3407 3408if test -z "$CC"; then 3409 if test -n "$ac_tool_prefix"; then 3410 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3411set dummy ${ac_tool_prefix}cc; ac_word=$2 3412{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3413$as_echo_n "checking for $ac_word... " >&6; } 3414if ${ac_cv_prog_CC+:} false; then : 3415 $as_echo_n "(cached) " >&6 3416else 3417 if test -n "$CC"; then 3418 ac_cv_prog_CC="$CC" # Let the user override the test. 3419else 3420as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3421for as_dir in $PATH 3422do 3423 IFS=$as_save_IFS 3424 test -z "$as_dir" && as_dir=. 3425 for ac_exec_ext in '' $ac_executable_extensions; do 3426 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3427 ac_cv_prog_CC="${ac_tool_prefix}cc" 3428 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3429 break 2 3430 fi 3431done 3432 done 3433IFS=$as_save_IFS 3434 3435fi 3436fi 3437CC=$ac_cv_prog_CC 3438if test -n "$CC"; then 3439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3440$as_echo "$CC" >&6; } 3441else 3442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3443$as_echo "no" >&6; } 3444fi 3445 3446 3447 fi 3448fi 3449if test -z "$CC"; then 3450 # Extract the first word of "cc", so it can be a program name with args. 3451set dummy cc; ac_word=$2 3452{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3453$as_echo_n "checking for $ac_word... " >&6; } 3454if ${ac_cv_prog_CC+:} false; then : 3455 $as_echo_n "(cached) " >&6 3456else 3457 if test -n "$CC"; then 3458 ac_cv_prog_CC="$CC" # Let the user override the test. 3459else 3460 ac_prog_rejected=no 3461as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3462for as_dir in $PATH 3463do 3464 IFS=$as_save_IFS 3465 test -z "$as_dir" && as_dir=. 3466 for ac_exec_ext in '' $ac_executable_extensions; do 3467 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3468 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3469 ac_prog_rejected=yes 3470 continue 3471 fi 3472 ac_cv_prog_CC="cc" 3473 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3474 break 2 3475 fi 3476done 3477 done 3478IFS=$as_save_IFS 3479 3480if test $ac_prog_rejected = yes; then 3481 # We found a bogon in the path, so make sure we never use it. 3482 set dummy $ac_cv_prog_CC 3483 shift 3484 if test $# != 0; then 3485 # We chose a different compiler from the bogus one. 3486 # However, it has the same basename, so the bogon will be chosen 3487 # first if we set CC to just the basename; use the full file name. 3488 shift 3489 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3490 fi 3491fi 3492fi 3493fi 3494CC=$ac_cv_prog_CC 3495if test -n "$CC"; then 3496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3497$as_echo "$CC" >&6; } 3498else 3499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3500$as_echo "no" >&6; } 3501fi 3502 3503 3504fi 3505if test -z "$CC"; then 3506 if test -n "$ac_tool_prefix"; then 3507 for ac_prog in cl.exe 3508 do 3509 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3510set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3511{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3512$as_echo_n "checking for $ac_word... " >&6; } 3513if ${ac_cv_prog_CC+:} false; then : 3514 $as_echo_n "(cached) " >&6 3515else 3516 if test -n "$CC"; then 3517 ac_cv_prog_CC="$CC" # Let the user override the test. 3518else 3519as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3520for as_dir in $PATH 3521do 3522 IFS=$as_save_IFS 3523 test -z "$as_dir" && as_dir=. 3524 for ac_exec_ext in '' $ac_executable_extensions; do 3525 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3526 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3527 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3528 break 2 3529 fi 3530done 3531 done 3532IFS=$as_save_IFS 3533 3534fi 3535fi 3536CC=$ac_cv_prog_CC 3537if test -n "$CC"; then 3538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3539$as_echo "$CC" >&6; } 3540else 3541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3542$as_echo "no" >&6; } 3543fi 3544 3545 3546 test -n "$CC" && break 3547 done 3548fi 3549if test -z "$CC"; then 3550 ac_ct_CC=$CC 3551 for ac_prog in cl.exe 3552do 3553 # Extract the first word of "$ac_prog", so it can be a program name with args. 3554set dummy $ac_prog; ac_word=$2 3555{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3556$as_echo_n "checking for $ac_word... " >&6; } 3557if ${ac_cv_prog_ac_ct_CC+:} false; then : 3558 $as_echo_n "(cached) " >&6 3559else 3560 if test -n "$ac_ct_CC"; then 3561 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3562else 3563as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3564for as_dir in $PATH 3565do 3566 IFS=$as_save_IFS 3567 test -z "$as_dir" && as_dir=. 3568 for ac_exec_ext in '' $ac_executable_extensions; do 3569 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3570 ac_cv_prog_ac_ct_CC="$ac_prog" 3571 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3572 break 2 3573 fi 3574done 3575 done 3576IFS=$as_save_IFS 3577 3578fi 3579fi 3580ac_ct_CC=$ac_cv_prog_ac_ct_CC 3581if test -n "$ac_ct_CC"; then 3582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3583$as_echo "$ac_ct_CC" >&6; } 3584else 3585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3586$as_echo "no" >&6; } 3587fi 3588 3589 3590 test -n "$ac_ct_CC" && break 3591done 3592 3593 if test "x$ac_ct_CC" = x; then 3594 CC="" 3595 else 3596 case $cross_compiling:$ac_tool_warned in 3597yes:) 3598{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3599$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3600ac_tool_warned=yes ;; 3601esac 3602 CC=$ac_ct_CC 3603 fi 3604fi 3605 3606fi 3607 3608 3609test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3610$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3611as_fn_error $? "no acceptable C compiler found in \$PATH 3612See \`config.log' for more details" "$LINENO" 5; } 3613 3614# Provide some information about the compiler. 3615$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3616set X $ac_compile 3617ac_compiler=$2 3618for ac_option in --version -v -V -qversion; do 3619 { { ac_try="$ac_compiler $ac_option >&5" 3620case "(($ac_try" in 3621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3622 *) ac_try_echo=$ac_try;; 3623esac 3624eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3625$as_echo "$ac_try_echo"; } >&5 3626 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3627 ac_status=$? 3628 if test -s conftest.err; then 3629 sed '10a\ 3630... rest of stderr output deleted ... 3631 10q' conftest.err >conftest.er1 3632 cat conftest.er1 >&5 3633 fi 3634 rm -f conftest.er1 conftest.err 3635 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3636 test $ac_status = 0; } 3637done 3638 3639cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3640/* end confdefs.h. */ 3641 3642int 3643main () 3644{ 3645 3646 ; 3647 return 0; 3648} 3649_ACEOF 3650ac_clean_files_save=$ac_clean_files 3651ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3652# Try to create an executable without -o first, disregard a.out. 3653# It will help us diagnose broken compilers, and finding out an intuition 3654# of exeext. 3655{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3656$as_echo_n "checking whether the C compiler works... " >&6; } 3657ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3658 3659# The possible output files: 3660ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3661 3662ac_rmfiles= 3663for ac_file in $ac_files 3664do 3665 case $ac_file in 3666 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3667 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3668 esac 3669done 3670rm -f $ac_rmfiles 3671 3672if { { ac_try="$ac_link_default" 3673case "(($ac_try" in 3674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3675 *) ac_try_echo=$ac_try;; 3676esac 3677eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3678$as_echo "$ac_try_echo"; } >&5 3679 (eval "$ac_link_default") 2>&5 3680 ac_status=$? 3681 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3682 test $ac_status = 0; }; then : 3683 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3684# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3685# in a Makefile. We should not override ac_cv_exeext if it was cached, 3686# so that the user can short-circuit this test for compilers unknown to 3687# Autoconf. 3688for ac_file in $ac_files '' 3689do 3690 test -f "$ac_file" || continue 3691 case $ac_file in 3692 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3693 ;; 3694 [ab].out ) 3695 # We found the default executable, but exeext='' is most 3696 # certainly right. 3697 break;; 3698 *.* ) 3699 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3700 then :; else 3701 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3702 fi 3703 # We set ac_cv_exeext here because the later test for it is not 3704 # safe: cross compilers may not add the suffix if given an `-o' 3705 # argument, so we may need to know it at that point already. 3706 # Even if this section looks crufty: it has the advantage of 3707 # actually working. 3708 break;; 3709 * ) 3710 break;; 3711 esac 3712done 3713test "$ac_cv_exeext" = no && ac_cv_exeext= 3714 3715else 3716 ac_file='' 3717fi 3718if test -z "$ac_file"; then : 3719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3720$as_echo "no" >&6; } 3721$as_echo "$as_me: failed program was:" >&5 3722sed 's/^/| /' conftest.$ac_ext >&5 3723 3724{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3725$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3726as_fn_error 77 "C compiler cannot create executables 3727See \`config.log' for more details" "$LINENO" 5; } 3728else 3729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3730$as_echo "yes" >&6; } 3731fi 3732{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3733$as_echo_n "checking for C compiler default output file name... " >&6; } 3734{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3735$as_echo "$ac_file" >&6; } 3736ac_exeext=$ac_cv_exeext 3737 3738rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3739ac_clean_files=$ac_clean_files_save 3740{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3741$as_echo_n "checking for suffix of executables... " >&6; } 3742if { { ac_try="$ac_link" 3743case "(($ac_try" in 3744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3745 *) ac_try_echo=$ac_try;; 3746esac 3747eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3748$as_echo "$ac_try_echo"; } >&5 3749 (eval "$ac_link") 2>&5 3750 ac_status=$? 3751 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3752 test $ac_status = 0; }; then : 3753 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3754# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3755# work properly (i.e., refer to `conftest.exe'), while it won't with 3756# `rm'. 3757for ac_file in conftest.exe conftest conftest.*; do 3758 test -f "$ac_file" || continue 3759 case $ac_file in 3760 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3761 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3762 break;; 3763 * ) break;; 3764 esac 3765done 3766else 3767 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3768$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3769as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3770See \`config.log' for more details" "$LINENO" 5; } 3771fi 3772rm -f conftest conftest$ac_cv_exeext 3773{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3774$as_echo "$ac_cv_exeext" >&6; } 3775 3776rm -f conftest.$ac_ext 3777EXEEXT=$ac_cv_exeext 3778ac_exeext=$EXEEXT 3779cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3780/* end confdefs.h. */ 3781#include <stdio.h> 3782int 3783main () 3784{ 3785FILE *f = fopen ("conftest.out", "w"); 3786 return ferror (f) || fclose (f) != 0; 3787 3788 ; 3789 return 0; 3790} 3791_ACEOF 3792ac_clean_files="$ac_clean_files conftest.out" 3793# Check that the compiler produces executables we can run. If not, either 3794# the compiler is broken, or we cross compile. 3795{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3796$as_echo_n "checking whether we are cross compiling... " >&6; } 3797if test "$cross_compiling" != yes; then 3798 { { ac_try="$ac_link" 3799case "(($ac_try" in 3800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3801 *) ac_try_echo=$ac_try;; 3802esac 3803eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3804$as_echo "$ac_try_echo"; } >&5 3805 (eval "$ac_link") 2>&5 3806 ac_status=$? 3807 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3808 test $ac_status = 0; } 3809 if { ac_try='./conftest$ac_cv_exeext' 3810 { { case "(($ac_try" in 3811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3812 *) ac_try_echo=$ac_try;; 3813esac 3814eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3815$as_echo "$ac_try_echo"; } >&5 3816 (eval "$ac_try") 2>&5 3817 ac_status=$? 3818 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3819 test $ac_status = 0; }; }; then 3820 cross_compiling=no 3821 else 3822 if test "$cross_compiling" = maybe; then 3823 cross_compiling=yes 3824 else 3825 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3826$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3827as_fn_error $? "cannot run C compiled programs. 3828If you meant to cross compile, use \`--host'. 3829See \`config.log' for more details" "$LINENO" 5; } 3830 fi 3831 fi 3832fi 3833{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3834$as_echo "$cross_compiling" >&6; } 3835 3836rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3837ac_clean_files=$ac_clean_files_save 3838{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3839$as_echo_n "checking for suffix of object files... " >&6; } 3840if ${ac_cv_objext+:} false; then : 3841 $as_echo_n "(cached) " >&6 3842else 3843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3844/* end confdefs.h. */ 3845 3846int 3847main () 3848{ 3849 3850 ; 3851 return 0; 3852} 3853_ACEOF 3854rm -f conftest.o conftest.obj 3855if { { ac_try="$ac_compile" 3856case "(($ac_try" in 3857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3858 *) ac_try_echo=$ac_try;; 3859esac 3860eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3861$as_echo "$ac_try_echo"; } >&5 3862 (eval "$ac_compile") 2>&5 3863 ac_status=$? 3864 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3865 test $ac_status = 0; }; then : 3866 for ac_file in conftest.o conftest.obj conftest.*; do 3867 test -f "$ac_file" || continue; 3868 case $ac_file in 3869 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3870 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3871 break;; 3872 esac 3873done 3874else 3875 $as_echo "$as_me: failed program was:" >&5 3876sed 's/^/| /' conftest.$ac_ext >&5 3877 3878{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3879$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3880as_fn_error $? "cannot compute suffix of object files: cannot compile 3881See \`config.log' for more details" "$LINENO" 5; } 3882fi 3883rm -f conftest.$ac_cv_objext conftest.$ac_ext 3884fi 3885{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3886$as_echo "$ac_cv_objext" >&6; } 3887OBJEXT=$ac_cv_objext 3888ac_objext=$OBJEXT 3889{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3890$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3891if ${ac_cv_c_compiler_gnu+:} false; then : 3892 $as_echo_n "(cached) " >&6 3893else 3894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3895/* end confdefs.h. */ 3896 3897int 3898main () 3899{ 3900#ifndef __GNUC__ 3901 choke me 3902#endif 3903 3904 ; 3905 return 0; 3906} 3907_ACEOF 3908if ac_fn_c_try_compile "$LINENO"; then : 3909 ac_compiler_gnu=yes 3910else 3911 ac_compiler_gnu=no 3912fi 3913rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3914ac_cv_c_compiler_gnu=$ac_compiler_gnu 3915 3916fi 3917{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3918$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3919if test $ac_compiler_gnu = yes; then 3920 GCC=yes 3921else 3922 GCC= 3923fi 3924ac_test_CFLAGS=${CFLAGS+set} 3925ac_save_CFLAGS=$CFLAGS 3926{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3927$as_echo_n "checking whether $CC accepts -g... " >&6; } 3928if ${ac_cv_prog_cc_g+:} false; then : 3929 $as_echo_n "(cached) " >&6 3930else 3931 ac_save_c_werror_flag=$ac_c_werror_flag 3932 ac_c_werror_flag=yes 3933 ac_cv_prog_cc_g=no 3934 CFLAGS="-g" 3935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3936/* end confdefs.h. */ 3937 3938int 3939main () 3940{ 3941 3942 ; 3943 return 0; 3944} 3945_ACEOF 3946if ac_fn_c_try_compile "$LINENO"; then : 3947 ac_cv_prog_cc_g=yes 3948else 3949 CFLAGS="" 3950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3951/* end confdefs.h. */ 3952 3953int 3954main () 3955{ 3956 3957 ; 3958 return 0; 3959} 3960_ACEOF 3961if ac_fn_c_try_compile "$LINENO"; then : 3962 3963else 3964 ac_c_werror_flag=$ac_save_c_werror_flag 3965 CFLAGS="-g" 3966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3967/* end confdefs.h. */ 3968 3969int 3970main () 3971{ 3972 3973 ; 3974 return 0; 3975} 3976_ACEOF 3977if ac_fn_c_try_compile "$LINENO"; then : 3978 ac_cv_prog_cc_g=yes 3979fi 3980rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3981fi 3982rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3983fi 3984rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3985 ac_c_werror_flag=$ac_save_c_werror_flag 3986fi 3987{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3988$as_echo "$ac_cv_prog_cc_g" >&6; } 3989if test "$ac_test_CFLAGS" = set; then 3990 CFLAGS=$ac_save_CFLAGS 3991elif test $ac_cv_prog_cc_g = yes; then 3992 if test "$GCC" = yes; then 3993 CFLAGS="-g -O2" 3994 else 3995 CFLAGS="-g" 3996 fi 3997else 3998 if test "$GCC" = yes; then 3999 CFLAGS="-O2" 4000 else 4001 CFLAGS= 4002 fi 4003fi 4004{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 4005$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 4006if ${ac_cv_prog_cc_c89+:} false; then : 4007 $as_echo_n "(cached) " >&6 4008else 4009 ac_cv_prog_cc_c89=no 4010ac_save_CC=$CC 4011cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4012/* end confdefs.h. */ 4013#include <stdarg.h> 4014#include <stdio.h> 4015struct stat; 4016/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 4017struct buf { int x; }; 4018FILE * (*rcsopen) (struct buf *, struct stat *, int); 4019static char *e (p, i) 4020 char **p; 4021 int i; 4022{ 4023 return p[i]; 4024} 4025static char *f (char * (*g) (char **, int), char **p, ...) 4026{ 4027 char *s; 4028 va_list v; 4029 va_start (v,p); 4030 s = g (p, va_arg (v,int)); 4031 va_end (v); 4032 return s; 4033} 4034 4035/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 4036 function prototypes and stuff, but not '\xHH' hex character constants. 4037 These don't provoke an error unfortunately, instead are silently treated 4038 as 'x'. The following induces an error, until -std is added to get 4039 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 4040 array size at least. It's necessary to write '\x00'==0 to get something 4041 that's true only with -std. */ 4042int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 4043 4044/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 4045 inside strings and character constants. */ 4046#define FOO(x) 'x' 4047int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 4048 4049int test (int i, double x); 4050struct s1 {int (*f) (int a);}; 4051struct s2 {int (*f) (double a);}; 4052int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 4053int argc; 4054char **argv; 4055int 4056main () 4057{ 4058return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 4059 ; 4060 return 0; 4061} 4062_ACEOF 4063for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 4064 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4065do 4066 CC="$ac_save_CC $ac_arg" 4067 if ac_fn_c_try_compile "$LINENO"; then : 4068 ac_cv_prog_cc_c89=$ac_arg 4069fi 4070rm -f core conftest.err conftest.$ac_objext 4071 test "x$ac_cv_prog_cc_c89" != "xno" && break 4072done 4073rm -f conftest.$ac_ext 4074CC=$ac_save_CC 4075 4076fi 4077# AC_CACHE_VAL 4078case "x$ac_cv_prog_cc_c89" in 4079 x) 4080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4081$as_echo "none needed" >&6; } ;; 4082 xno) 4083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4084$as_echo "unsupported" >&6; } ;; 4085 *) 4086 CC="$CC $ac_cv_prog_cc_c89" 4087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4088$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 4089esac 4090if test "x$ac_cv_prog_cc_c89" != xno; then : 4091 4092fi 4093 4094ac_ext=c 4095ac_cpp='$CPP $CPPFLAGS' 4096ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4097ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4098ac_compiler_gnu=$ac_cv_c_compiler_gnu 4099 4100ac_ext=c 4101ac_cpp='$CPP $CPPFLAGS' 4102ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4103ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4104ac_compiler_gnu=$ac_cv_c_compiler_gnu 4105{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 4106$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 4107if ${am_cv_prog_cc_c_o+:} false; then : 4108 $as_echo_n "(cached) " >&6 4109else 4110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4111/* end confdefs.h. */ 4112 4113int 4114main () 4115{ 4116 4117 ; 4118 return 0; 4119} 4120_ACEOF 4121 # Make sure it works both with $CC and with simple cc. 4122 # Following AC_PROG_CC_C_O, we do the test twice because some 4123 # compilers refuse to overwrite an existing .o file with -o, 4124 # though they will create one. 4125 am_cv_prog_cc_c_o=yes 4126 for am_i in 1 2; do 4127 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 4128 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 4129 ac_status=$? 4130 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4131 (exit $ac_status); } \ 4132 && test -f conftest2.$ac_objext; then 4133 : OK 4134 else 4135 am_cv_prog_cc_c_o=no 4136 break 4137 fi 4138 done 4139 rm -f core conftest* 4140 unset am_i 4141fi 4142{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 4143$as_echo "$am_cv_prog_cc_c_o" >&6; } 4144if test "$am_cv_prog_cc_c_o" != yes; then 4145 # Losing compiler, so override with the script. 4146 # FIXME: It is wrong to rewrite CC. 4147 # But if we don't then we get into trouble of one sort or another. 4148 # A longer-term fix would be to have automake use am__CC in this case, 4149 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 4150 CC="$am_aux_dir/compile $CC" 4151fi 4152ac_ext=c 4153ac_cpp='$CPP $CPPFLAGS' 4154ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4155ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4156ac_compiler_gnu=$ac_cv_c_compiler_gnu 4157 4158 4159depcc="$CC" am_compiler_list= 4160 4161{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4162$as_echo_n "checking dependency style of $depcc... " >&6; } 4163if ${am_cv_CC_dependencies_compiler_type+:} false; then : 4164 $as_echo_n "(cached) " >&6 4165else 4166 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4167 # We make a subdir and do the tests there. Otherwise we can end up 4168 # making bogus files that we don't know about and never remove. For 4169 # instance it was reported that on HP-UX the gcc test will end up 4170 # making a dummy file named 'D' -- because '-MD' means "put the output 4171 # in D". 4172 rm -rf conftest.dir 4173 mkdir conftest.dir 4174 # Copy depcomp to subdir because otherwise we won't find it if we're 4175 # using a relative directory. 4176 cp "$am_depcomp" conftest.dir 4177 cd conftest.dir 4178 # We will build objects and dependencies in a subdirectory because 4179 # it helps to detect inapplicable dependency modes. For instance 4180 # both Tru64's cc and ICC support -MD to output dependencies as a 4181 # side effect of compilation, but ICC will put the dependencies in 4182 # the current directory while Tru64 will put them in the object 4183 # directory. 4184 mkdir sub 4185 4186 am_cv_CC_dependencies_compiler_type=none 4187 if test "$am_compiler_list" = ""; then 4188 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4189 fi 4190 am__universal=false 4191 case " $depcc " in #( 4192 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4193 esac 4194 4195 for depmode in $am_compiler_list; do 4196 # Setup a source with many dependencies, because some compilers 4197 # like to wrap large dependency lists on column 80 (with \), and 4198 # we should not choose a depcomp mode which is confused by this. 4199 # 4200 # We need to recreate these files for each test, as the compiler may 4201 # overwrite some of them when testing with obscure command lines. 4202 # This happens at least with the AIX C compiler. 4203 : > sub/conftest.c 4204 for i in 1 2 3 4 5 6; do 4205 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4206 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4207 # Solaris 10 /bin/sh. 4208 echo '/* dummy */' > sub/conftst$i.h 4209 done 4210 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4211 4212 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4213 # mode. It turns out that the SunPro C++ compiler does not properly 4214 # handle '-M -o', and we need to detect this. Also, some Intel 4215 # versions had trouble with output in subdirs. 4216 am__obj=sub/conftest.${OBJEXT-o} 4217 am__minus_obj="-o $am__obj" 4218 case $depmode in 4219 gcc) 4220 # This depmode causes a compiler race in universal mode. 4221 test "$am__universal" = false || continue 4222 ;; 4223 nosideeffect) 4224 # After this tag, mechanisms are not by side-effect, so they'll 4225 # only be used when explicitly requested. 4226 if test "x$enable_dependency_tracking" = xyes; then 4227 continue 4228 else 4229 break 4230 fi 4231 ;; 4232 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4233 # This compiler won't grok '-c -o', but also, the minuso test has 4234 # not run yet. These depmodes are late enough in the game, and 4235 # so weak that their functioning should not be impacted. 4236 am__obj=conftest.${OBJEXT-o} 4237 am__minus_obj= 4238 ;; 4239 none) break ;; 4240 esac 4241 if depmode=$depmode \ 4242 source=sub/conftest.c object=$am__obj \ 4243 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4244 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4245 >/dev/null 2>conftest.err && 4246 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4247 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4248 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4249 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4250 # icc doesn't choke on unknown options, it will just issue warnings 4251 # or remarks (even with -Werror). So we grep stderr for any message 4252 # that says an option was ignored or not supported. 4253 # When given -MP, icc 7.0 and 7.1 complain thusly: 4254 # icc: Command line warning: ignoring option '-M'; no argument required 4255 # The diagnosis changed in icc 8.0: 4256 # icc: Command line remark: option '-MP' not supported 4257 if (grep 'ignoring option' conftest.err || 4258 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4259 am_cv_CC_dependencies_compiler_type=$depmode 4260 break 4261 fi 4262 fi 4263 done 4264 4265 cd .. 4266 rm -rf conftest.dir 4267else 4268 am_cv_CC_dependencies_compiler_type=none 4269fi 4270 4271fi 4272{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4273$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 4274CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4275 4276 if 4277 test "x$enable_dependency_tracking" != xno \ 4278 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4279 am__fastdepCC_TRUE= 4280 am__fastdepCC_FALSE='#' 4281else 4282 am__fastdepCC_TRUE='#' 4283 am__fastdepCC_FALSE= 4284fi 4285 4286 4287{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4288$as_echo_n "checking for a sed that does not truncate output... " >&6; } 4289if ${ac_cv_path_SED+:} false; then : 4290 $as_echo_n "(cached) " >&6 4291else 4292 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4293 for ac_i in 1 2 3 4 5 6 7; do 4294 ac_script="$ac_script$as_nl$ac_script" 4295 done 4296 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4297 { ac_script=; unset ac_script;} 4298 if test -z "$SED"; then 4299 ac_path_SED_found=false 4300 # Loop through the user's path and test for each of PROGNAME-LIST 4301 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4302for as_dir in $PATH 4303do 4304 IFS=$as_save_IFS 4305 test -z "$as_dir" && as_dir=. 4306 for ac_prog in sed gsed; do 4307 for ac_exec_ext in '' $ac_executable_extensions; do 4308 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 4309 as_fn_executable_p "$ac_path_SED" || continue 4310# Check for GNU ac_path_SED and select it if it is found. 4311 # Check for GNU $ac_path_SED 4312case `"$ac_path_SED" --version 2>&1` in 4313*GNU*) 4314 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4315*) 4316 ac_count=0 4317 $as_echo_n 0123456789 >"conftest.in" 4318 while : 4319 do 4320 cat "conftest.in" "conftest.in" >"conftest.tmp" 4321 mv "conftest.tmp" "conftest.in" 4322 cp "conftest.in" "conftest.nl" 4323 $as_echo '' >> "conftest.nl" 4324 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4325 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4326 as_fn_arith $ac_count + 1 && ac_count=$as_val 4327 if test $ac_count -gt ${ac_path_SED_max-0}; then 4328 # Best one so far, save it but keep looking for a better one 4329 ac_cv_path_SED="$ac_path_SED" 4330 ac_path_SED_max=$ac_count 4331 fi 4332 # 10*(2^10) chars as input seems more than enough 4333 test $ac_count -gt 10 && break 4334 done 4335 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4336esac 4337 4338 $ac_path_SED_found && break 3 4339 done 4340 done 4341 done 4342IFS=$as_save_IFS 4343 if test -z "$ac_cv_path_SED"; then 4344 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 4345 fi 4346else 4347 ac_cv_path_SED=$SED 4348fi 4349 4350fi 4351{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4352$as_echo "$ac_cv_path_SED" >&6; } 4353 SED="$ac_cv_path_SED" 4354 rm -f conftest.sed 4355 4356test -z "$SED" && SED=sed 4357Xsed="$SED -e 1s/^X//" 4358 4359 4360 4361 4362 4363 4364 4365 4366 4367 4368 4369{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4370$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4371if ${ac_cv_path_GREP+:} false; then : 4372 $as_echo_n "(cached) " >&6 4373else 4374 if test -z "$GREP"; then 4375 ac_path_GREP_found=false 4376 # Loop through the user's path and test for each of PROGNAME-LIST 4377 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4378for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4379do 4380 IFS=$as_save_IFS 4381 test -z "$as_dir" && as_dir=. 4382 for ac_prog in grep ggrep; do 4383 for ac_exec_ext in '' $ac_executable_extensions; do 4384 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4385 as_fn_executable_p "$ac_path_GREP" || continue 4386# Check for GNU ac_path_GREP and select it if it is found. 4387 # Check for GNU $ac_path_GREP 4388case `"$ac_path_GREP" --version 2>&1` in 4389*GNU*) 4390 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4391*) 4392 ac_count=0 4393 $as_echo_n 0123456789 >"conftest.in" 4394 while : 4395 do 4396 cat "conftest.in" "conftest.in" >"conftest.tmp" 4397 mv "conftest.tmp" "conftest.in" 4398 cp "conftest.in" "conftest.nl" 4399 $as_echo 'GREP' >> "conftest.nl" 4400 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4401 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4402 as_fn_arith $ac_count + 1 && ac_count=$as_val 4403 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4404 # Best one so far, save it but keep looking for a better one 4405 ac_cv_path_GREP="$ac_path_GREP" 4406 ac_path_GREP_max=$ac_count 4407 fi 4408 # 10*(2^10) chars as input seems more than enough 4409 test $ac_count -gt 10 && break 4410 done 4411 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4412esac 4413 4414 $ac_path_GREP_found && break 3 4415 done 4416 done 4417 done 4418IFS=$as_save_IFS 4419 if test -z "$ac_cv_path_GREP"; then 4420 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4421 fi 4422else 4423 ac_cv_path_GREP=$GREP 4424fi 4425 4426fi 4427{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4428$as_echo "$ac_cv_path_GREP" >&6; } 4429 GREP="$ac_cv_path_GREP" 4430 4431 4432{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4433$as_echo_n "checking for egrep... " >&6; } 4434if ${ac_cv_path_EGREP+:} false; then : 4435 $as_echo_n "(cached) " >&6 4436else 4437 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4438 then ac_cv_path_EGREP="$GREP -E" 4439 else 4440 if test -z "$EGREP"; then 4441 ac_path_EGREP_found=false 4442 # Loop through the user's path and test for each of PROGNAME-LIST 4443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4444for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4445do 4446 IFS=$as_save_IFS 4447 test -z "$as_dir" && as_dir=. 4448 for ac_prog in egrep; do 4449 for ac_exec_ext in '' $ac_executable_extensions; do 4450 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4451 as_fn_executable_p "$ac_path_EGREP" || continue 4452# Check for GNU ac_path_EGREP and select it if it is found. 4453 # Check for GNU $ac_path_EGREP 4454case `"$ac_path_EGREP" --version 2>&1` in 4455*GNU*) 4456 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4457*) 4458 ac_count=0 4459 $as_echo_n 0123456789 >"conftest.in" 4460 while : 4461 do 4462 cat "conftest.in" "conftest.in" >"conftest.tmp" 4463 mv "conftest.tmp" "conftest.in" 4464 cp "conftest.in" "conftest.nl" 4465 $as_echo 'EGREP' >> "conftest.nl" 4466 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4467 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4468 as_fn_arith $ac_count + 1 && ac_count=$as_val 4469 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4470 # Best one so far, save it but keep looking for a better one 4471 ac_cv_path_EGREP="$ac_path_EGREP" 4472 ac_path_EGREP_max=$ac_count 4473 fi 4474 # 10*(2^10) chars as input seems more than enough 4475 test $ac_count -gt 10 && break 4476 done 4477 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4478esac 4479 4480 $ac_path_EGREP_found && break 3 4481 done 4482 done 4483 done 4484IFS=$as_save_IFS 4485 if test -z "$ac_cv_path_EGREP"; then 4486 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4487 fi 4488else 4489 ac_cv_path_EGREP=$EGREP 4490fi 4491 4492 fi 4493fi 4494{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4495$as_echo "$ac_cv_path_EGREP" >&6; } 4496 EGREP="$ac_cv_path_EGREP" 4497 4498 4499{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 4500$as_echo_n "checking for fgrep... " >&6; } 4501if ${ac_cv_path_FGREP+:} false; then : 4502 $as_echo_n "(cached) " >&6 4503else 4504 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 4505 then ac_cv_path_FGREP="$GREP -F" 4506 else 4507 if test -z "$FGREP"; then 4508 ac_path_FGREP_found=false 4509 # Loop through the user's path and test for each of PROGNAME-LIST 4510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4511for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4512do 4513 IFS=$as_save_IFS 4514 test -z "$as_dir" && as_dir=. 4515 for ac_prog in fgrep; do 4516 for ac_exec_ext in '' $ac_executable_extensions; do 4517 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 4518 as_fn_executable_p "$ac_path_FGREP" || continue 4519# Check for GNU ac_path_FGREP and select it if it is found. 4520 # Check for GNU $ac_path_FGREP 4521case `"$ac_path_FGREP" --version 2>&1` in 4522*GNU*) 4523 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 4524*) 4525 ac_count=0 4526 $as_echo_n 0123456789 >"conftest.in" 4527 while : 4528 do 4529 cat "conftest.in" "conftest.in" >"conftest.tmp" 4530 mv "conftest.tmp" "conftest.in" 4531 cp "conftest.in" "conftest.nl" 4532 $as_echo 'FGREP' >> "conftest.nl" 4533 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 4534 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4535 as_fn_arith $ac_count + 1 && ac_count=$as_val 4536 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 4537 # Best one so far, save it but keep looking for a better one 4538 ac_cv_path_FGREP="$ac_path_FGREP" 4539 ac_path_FGREP_max=$ac_count 4540 fi 4541 # 10*(2^10) chars as input seems more than enough 4542 test $ac_count -gt 10 && break 4543 done 4544 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4545esac 4546 4547 $ac_path_FGREP_found && break 3 4548 done 4549 done 4550 done 4551IFS=$as_save_IFS 4552 if test -z "$ac_cv_path_FGREP"; then 4553 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4554 fi 4555else 4556 ac_cv_path_FGREP=$FGREP 4557fi 4558 4559 fi 4560fi 4561{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 4562$as_echo "$ac_cv_path_FGREP" >&6; } 4563 FGREP="$ac_cv_path_FGREP" 4564 4565 4566test -z "$GREP" && GREP=grep 4567 4568 4569 4570 4571 4572 4573 4574 4575 4576 4577 4578 4579 4580 4581 4582 4583 4584 4585 4586# Check whether --with-gnu-ld was given. 4587if test "${with_gnu_ld+set}" = set; then : 4588 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 4589else 4590 with_gnu_ld=no 4591fi 4592 4593ac_prog=ld 4594if test yes = "$GCC"; then 4595 # Check if gcc -print-prog-name=ld gives a path. 4596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 4597$as_echo_n "checking for ld used by $CC... " >&6; } 4598 case $host in 4599 *-*-mingw*) 4600 # gcc leaves a trailing carriage return, which upsets mingw 4601 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 4602 *) 4603 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 4604 esac 4605 case $ac_prog in 4606 # Accept absolute paths. 4607 [\\/]* | ?:[\\/]*) 4608 re_direlt='/[^/][^/]*/\.\./' 4609 # Canonicalize the pathname of ld 4610 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 4611 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 4612 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 4613 done 4614 test -z "$LD" && LD=$ac_prog 4615 ;; 4616 "") 4617 # If it fails, then pretend we aren't using GCC. 4618 ac_prog=ld 4619 ;; 4620 *) 4621 # If it is relative, then search for the first ld in PATH. 4622 with_gnu_ld=unknown 4623 ;; 4624 esac 4625elif test yes = "$with_gnu_ld"; then 4626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 4627$as_echo_n "checking for GNU ld... " >&6; } 4628else 4629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 4630$as_echo_n "checking for non-GNU ld... " >&6; } 4631fi 4632if ${lt_cv_path_LD+:} false; then : 4633 $as_echo_n "(cached) " >&6 4634else 4635 if test -z "$LD"; then 4636 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 4637 for ac_dir in $PATH; do 4638 IFS=$lt_save_ifs 4639 test -z "$ac_dir" && ac_dir=. 4640 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 4641 lt_cv_path_LD=$ac_dir/$ac_prog 4642 # Check to see if the program is GNU ld. I'd rather use --version, 4643 # but apparently some variants of GNU ld only accept -v. 4644 # Break only if it was the GNU/non-GNU ld that we prefer. 4645 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 4646 *GNU* | *'with BFD'*) 4647 test no != "$with_gnu_ld" && break 4648 ;; 4649 *) 4650 test yes != "$with_gnu_ld" && break 4651 ;; 4652 esac 4653 fi 4654 done 4655 IFS=$lt_save_ifs 4656else 4657 lt_cv_path_LD=$LD # Let the user override the test with a path. 4658fi 4659fi 4660 4661LD=$lt_cv_path_LD 4662if test -n "$LD"; then 4663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 4664$as_echo "$LD" >&6; } 4665else 4666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4667$as_echo "no" >&6; } 4668fi 4669test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 4670{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 4671$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 4672if ${lt_cv_prog_gnu_ld+:} false; then : 4673 $as_echo_n "(cached) " >&6 4674else 4675 # I'd rather use --version here, but apparently some GNU lds only accept -v. 4676case `$LD -v 2>&1 </dev/null` in 4677*GNU* | *'with BFD'*) 4678 lt_cv_prog_gnu_ld=yes 4679 ;; 4680*) 4681 lt_cv_prog_gnu_ld=no 4682 ;; 4683esac 4684fi 4685{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 4686$as_echo "$lt_cv_prog_gnu_ld" >&6; } 4687with_gnu_ld=$lt_cv_prog_gnu_ld 4688 4689 4690 4691 4692 4693 4694 4695 4696 4697{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 4698$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 4699if ${lt_cv_path_NM+:} false; then : 4700 $as_echo_n "(cached) " >&6 4701else 4702 if test -n "$NM"; then 4703 # Let the user override the test. 4704 lt_cv_path_NM=$NM 4705else 4706 lt_nm_to_check=${ac_tool_prefix}nm 4707 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 4708 lt_nm_to_check="$lt_nm_to_check nm" 4709 fi 4710 for lt_tmp_nm in $lt_nm_to_check; do 4711 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 4712 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 4713 IFS=$lt_save_ifs 4714 test -z "$ac_dir" && ac_dir=. 4715 tmp_nm=$ac_dir/$lt_tmp_nm 4716 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then 4717 # Check to see if the nm accepts a BSD-compat flag. 4718 # Adding the 'sed 1q' prevents false positives on HP-UX, which says: 4719 # nm: unknown option "B" ignored 4720 # Tru64's nm complains that /dev/null is an invalid object file 4721 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty 4722 case $build_os in 4723 mingw*) lt_bad_file=conftest.nm/nofile ;; 4724 *) lt_bad_file=/dev/null ;; 4725 esac 4726 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in 4727 *$lt_bad_file* | *'Invalid file or object type'*) 4728 lt_cv_path_NM="$tmp_nm -B" 4729 break 2 4730 ;; 4731 *) 4732 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 4733 */dev/null*) 4734 lt_cv_path_NM="$tmp_nm -p" 4735 break 2 4736 ;; 4737 *) 4738 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 4739 continue # so that we can try to find one that supports BSD flags 4740 ;; 4741 esac 4742 ;; 4743 esac 4744 fi 4745 done 4746 IFS=$lt_save_ifs 4747 done 4748 : ${lt_cv_path_NM=no} 4749fi 4750fi 4751{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 4752$as_echo "$lt_cv_path_NM" >&6; } 4753if test no != "$lt_cv_path_NM"; then 4754 NM=$lt_cv_path_NM 4755else 4756 # Didn't find any BSD compatible name lister, look for dumpbin. 4757 if test -n "$DUMPBIN"; then : 4758 # Let the user override the test. 4759 else 4760 if test -n "$ac_tool_prefix"; then 4761 for ac_prog in dumpbin "link -dump" 4762 do 4763 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4764set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4765{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4766$as_echo_n "checking for $ac_word... " >&6; } 4767if ${ac_cv_prog_DUMPBIN+:} false; then : 4768 $as_echo_n "(cached) " >&6 4769else 4770 if test -n "$DUMPBIN"; then 4771 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 4772else 4773as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4774for as_dir in $PATH 4775do 4776 IFS=$as_save_IFS 4777 test -z "$as_dir" && as_dir=. 4778 for ac_exec_ext in '' $ac_executable_extensions; do 4779 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4780 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 4781 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4782 break 2 4783 fi 4784done 4785 done 4786IFS=$as_save_IFS 4787 4788fi 4789fi 4790DUMPBIN=$ac_cv_prog_DUMPBIN 4791if test -n "$DUMPBIN"; then 4792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 4793$as_echo "$DUMPBIN" >&6; } 4794else 4795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4796$as_echo "no" >&6; } 4797fi 4798 4799 4800 test -n "$DUMPBIN" && break 4801 done 4802fi 4803if test -z "$DUMPBIN"; then 4804 ac_ct_DUMPBIN=$DUMPBIN 4805 for ac_prog in dumpbin "link -dump" 4806do 4807 # Extract the first word of "$ac_prog", so it can be a program name with args. 4808set dummy $ac_prog; ac_word=$2 4809{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4810$as_echo_n "checking for $ac_word... " >&6; } 4811if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 4812 $as_echo_n "(cached) " >&6 4813else 4814 if test -n "$ac_ct_DUMPBIN"; then 4815 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 4816else 4817as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4818for as_dir in $PATH 4819do 4820 IFS=$as_save_IFS 4821 test -z "$as_dir" && as_dir=. 4822 for ac_exec_ext in '' $ac_executable_extensions; do 4823 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4824 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 4825 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4826 break 2 4827 fi 4828done 4829 done 4830IFS=$as_save_IFS 4831 4832fi 4833fi 4834ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 4835if test -n "$ac_ct_DUMPBIN"; then 4836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 4837$as_echo "$ac_ct_DUMPBIN" >&6; } 4838else 4839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4840$as_echo "no" >&6; } 4841fi 4842 4843 4844 test -n "$ac_ct_DUMPBIN" && break 4845done 4846 4847 if test "x$ac_ct_DUMPBIN" = x; then 4848 DUMPBIN=":" 4849 else 4850 case $cross_compiling:$ac_tool_warned in 4851yes:) 4852{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4853$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4854ac_tool_warned=yes ;; 4855esac 4856 DUMPBIN=$ac_ct_DUMPBIN 4857 fi 4858fi 4859 4860 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in 4861 *COFF*) 4862 DUMPBIN="$DUMPBIN -symbols -headers" 4863 ;; 4864 *) 4865 DUMPBIN=: 4866 ;; 4867 esac 4868 fi 4869 4870 if test : != "$DUMPBIN"; then 4871 NM=$DUMPBIN 4872 fi 4873fi 4874test -z "$NM" && NM=nm 4875 4876 4877 4878 4879 4880 4881{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 4882$as_echo_n "checking the name lister ($NM) interface... " >&6; } 4883if ${lt_cv_nm_interface+:} false; then : 4884 $as_echo_n "(cached) " >&6 4885else 4886 lt_cv_nm_interface="BSD nm" 4887 echo "int some_variable = 0;" > conftest.$ac_ext 4888 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 4889 (eval "$ac_compile" 2>conftest.err) 4890 cat conftest.err >&5 4891 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 4892 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 4893 cat conftest.err >&5 4894 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 4895 cat conftest.out >&5 4896 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 4897 lt_cv_nm_interface="MS dumpbin" 4898 fi 4899 rm -f conftest* 4900fi 4901{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 4902$as_echo "$lt_cv_nm_interface" >&6; } 4903 4904{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 4905$as_echo_n "checking whether ln -s works... " >&6; } 4906LN_S=$as_ln_s 4907if test "$LN_S" = "ln -s"; then 4908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4909$as_echo "yes" >&6; } 4910else 4911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 4912$as_echo "no, using $LN_S" >&6; } 4913fi 4914 4915# find the maximum length of command line arguments 4916{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 4917$as_echo_n "checking the maximum length of command line arguments... " >&6; } 4918if ${lt_cv_sys_max_cmd_len+:} false; then : 4919 $as_echo_n "(cached) " >&6 4920else 4921 i=0 4922 teststring=ABCD 4923 4924 case $build_os in 4925 msdosdjgpp*) 4926 # On DJGPP, this test can blow up pretty badly due to problems in libc 4927 # (any single argument exceeding 2000 bytes causes a buffer overrun 4928 # during glob expansion). Even if it were fixed, the result of this 4929 # check would be larger than it should be. 4930 lt_cv_sys_max_cmd_len=12288; # 12K is about right 4931 ;; 4932 4933 gnu*) 4934 # Under GNU Hurd, this test is not required because there is 4935 # no limit to the length of command line arguments. 4936 # Libtool will interpret -1 as no limit whatsoever 4937 lt_cv_sys_max_cmd_len=-1; 4938 ;; 4939 4940 cygwin* | mingw* | cegcc*) 4941 # On Win9x/ME, this test blows up -- it succeeds, but takes 4942 # about 5 minutes as the teststring grows exponentially. 4943 # Worse, since 9x/ME are not pre-emptively multitasking, 4944 # you end up with a "frozen" computer, even though with patience 4945 # the test eventually succeeds (with a max line length of 256k). 4946 # Instead, let's just punt: use the minimum linelength reported by 4947 # all of the supported platforms: 8192 (on NT/2K/XP). 4948 lt_cv_sys_max_cmd_len=8192; 4949 ;; 4950 4951 mint*) 4952 # On MiNT this can take a long time and run out of memory. 4953 lt_cv_sys_max_cmd_len=8192; 4954 ;; 4955 4956 amigaos*) 4957 # On AmigaOS with pdksh, this test takes hours, literally. 4958 # So we just punt and use a minimum line length of 8192. 4959 lt_cv_sys_max_cmd_len=8192; 4960 ;; 4961 4962 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*) 4963 # This has been around since 386BSD, at least. Likely further. 4964 if test -x /sbin/sysctl; then 4965 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 4966 elif test -x /usr/sbin/sysctl; then 4967 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 4968 else 4969 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 4970 fi 4971 # And add a safety zone 4972 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 4973 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 4974 ;; 4975 4976 interix*) 4977 # We know the value 262144 and hardcode it with a safety zone (like BSD) 4978 lt_cv_sys_max_cmd_len=196608 4979 ;; 4980 4981 os2*) 4982 # The test takes a long time on OS/2. 4983 lt_cv_sys_max_cmd_len=8192 4984 ;; 4985 4986 osf*) 4987 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 4988 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 4989 # nice to cause kernel panics so lets avoid the loop below. 4990 # First set a reasonable default. 4991 lt_cv_sys_max_cmd_len=16384 4992 # 4993 if test -x /sbin/sysconfig; then 4994 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 4995 *1*) lt_cv_sys_max_cmd_len=-1 ;; 4996 esac 4997 fi 4998 ;; 4999 sco3.2v5*) 5000 lt_cv_sys_max_cmd_len=102400 5001 ;; 5002 sysv5* | sco5v6* | sysv4.2uw2*) 5003 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 5004 if test -n "$kargmax"; then 5005 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 5006 else 5007 lt_cv_sys_max_cmd_len=32768 5008 fi 5009 ;; 5010 *) 5011 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 5012 if test -n "$lt_cv_sys_max_cmd_len" && \ 5013 test undefined != "$lt_cv_sys_max_cmd_len"; then 5014 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5015 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5016 else 5017 # Make teststring a little bigger before we do anything with it. 5018 # a 1K string should be a reasonable start. 5019 for i in 1 2 3 4 5 6 7 8; do 5020 teststring=$teststring$teststring 5021 done 5022 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 5023 # If test is not a shell built-in, we'll probably end up computing a 5024 # maximum length that is only half of the actual maximum length, but 5025 # we can't tell. 5026 while { test X`env echo "$teststring$teststring" 2>/dev/null` \ 5027 = "X$teststring$teststring"; } >/dev/null 2>&1 && 5028 test 17 != "$i" # 1/2 MB should be enough 5029 do 5030 i=`expr $i + 1` 5031 teststring=$teststring$teststring 5032 done 5033 # Only check the string length outside the loop. 5034 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 5035 teststring= 5036 # Add a significant safety factor because C++ compilers can tack on 5037 # massive amounts of additional arguments before passing them to the 5038 # linker. It appears as though 1/2 is a usable value. 5039 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 5040 fi 5041 ;; 5042 esac 5043 5044fi 5045 5046if test -n "$lt_cv_sys_max_cmd_len"; then 5047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 5048$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 5049else 5050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 5051$as_echo "none" >&6; } 5052fi 5053max_cmd_len=$lt_cv_sys_max_cmd_len 5054 5055 5056 5057 5058 5059 5060: ${CP="cp -f"} 5061: ${MV="mv -f"} 5062: ${RM="rm -f"} 5063 5064if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 5065 lt_unset=unset 5066else 5067 lt_unset=false 5068fi 5069 5070 5071 5072 5073 5074# test EBCDIC or ASCII 5075case `echo X|tr X '\101'` in 5076 A) # ASCII based system 5077 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 5078 lt_SP2NL='tr \040 \012' 5079 lt_NL2SP='tr \015\012 \040\040' 5080 ;; 5081 *) # EBCDIC based system 5082 lt_SP2NL='tr \100 \n' 5083 lt_NL2SP='tr \r\n \100\100' 5084 ;; 5085esac 5086 5087 5088 5089 5090 5091 5092 5093 5094 5095{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 5096$as_echo_n "checking how to convert $build file names to $host format... " >&6; } 5097if ${lt_cv_to_host_file_cmd+:} false; then : 5098 $as_echo_n "(cached) " >&6 5099else 5100 case $host in 5101 *-*-mingw* ) 5102 case $build in 5103 *-*-mingw* ) # actually msys 5104 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 5105 ;; 5106 *-*-cygwin* ) 5107 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 5108 ;; 5109 * ) # otherwise, assume *nix 5110 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 5111 ;; 5112 esac 5113 ;; 5114 *-*-cygwin* ) 5115 case $build in 5116 *-*-mingw* ) # actually msys 5117 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 5118 ;; 5119 *-*-cygwin* ) 5120 lt_cv_to_host_file_cmd=func_convert_file_noop 5121 ;; 5122 * ) # otherwise, assume *nix 5123 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 5124 ;; 5125 esac 5126 ;; 5127 * ) # unhandled hosts (and "normal" native builds) 5128 lt_cv_to_host_file_cmd=func_convert_file_noop 5129 ;; 5130esac 5131 5132fi 5133 5134to_host_file_cmd=$lt_cv_to_host_file_cmd 5135{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 5136$as_echo "$lt_cv_to_host_file_cmd" >&6; } 5137 5138 5139 5140 5141 5142{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 5143$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } 5144if ${lt_cv_to_tool_file_cmd+:} false; then : 5145 $as_echo_n "(cached) " >&6 5146else 5147 #assume ordinary cross tools, or native build. 5148lt_cv_to_tool_file_cmd=func_convert_file_noop 5149case $host in 5150 *-*-mingw* ) 5151 case $build in 5152 *-*-mingw* ) # actually msys 5153 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 5154 ;; 5155 esac 5156 ;; 5157esac 5158 5159fi 5160 5161to_tool_file_cmd=$lt_cv_to_tool_file_cmd 5162{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 5163$as_echo "$lt_cv_to_tool_file_cmd" >&6; } 5164 5165 5166 5167 5168 5169{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 5170$as_echo_n "checking for $LD option to reload object files... " >&6; } 5171if ${lt_cv_ld_reload_flag+:} false; then : 5172 $as_echo_n "(cached) " >&6 5173else 5174 lt_cv_ld_reload_flag='-r' 5175fi 5176{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 5177$as_echo "$lt_cv_ld_reload_flag" >&6; } 5178reload_flag=$lt_cv_ld_reload_flag 5179case $reload_flag in 5180"" | " "*) ;; 5181*) reload_flag=" $reload_flag" ;; 5182esac 5183reload_cmds='$LD$reload_flag -o $output$reload_objs' 5184case $host_os in 5185 cygwin* | mingw* | pw32* | cegcc*) 5186 if test yes != "$GCC"; then 5187 reload_cmds=false 5188 fi 5189 ;; 5190 darwin*) 5191 if test yes = "$GCC"; then 5192 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' 5193 else 5194 reload_cmds='$LD$reload_flag -o $output$reload_objs' 5195 fi 5196 ;; 5197esac 5198 5199 5200 5201 5202 5203 5204 5205 5206 5207if test -n "$ac_tool_prefix"; then 5208 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 5209set dummy ${ac_tool_prefix}objdump; ac_word=$2 5210{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5211$as_echo_n "checking for $ac_word... " >&6; } 5212if ${ac_cv_prog_OBJDUMP+:} false; then : 5213 $as_echo_n "(cached) " >&6 5214else 5215 if test -n "$OBJDUMP"; then 5216 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 5217else 5218as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5219for as_dir in $PATH 5220do 5221 IFS=$as_save_IFS 5222 test -z "$as_dir" && as_dir=. 5223 for ac_exec_ext in '' $ac_executable_extensions; do 5224 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5225 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 5226 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5227 break 2 5228 fi 5229done 5230 done 5231IFS=$as_save_IFS 5232 5233fi 5234fi 5235OBJDUMP=$ac_cv_prog_OBJDUMP 5236if test -n "$OBJDUMP"; then 5237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 5238$as_echo "$OBJDUMP" >&6; } 5239else 5240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5241$as_echo "no" >&6; } 5242fi 5243 5244 5245fi 5246if test -z "$ac_cv_prog_OBJDUMP"; then 5247 ac_ct_OBJDUMP=$OBJDUMP 5248 # Extract the first word of "objdump", so it can be a program name with args. 5249set dummy objdump; ac_word=$2 5250{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5251$as_echo_n "checking for $ac_word... " >&6; } 5252if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 5253 $as_echo_n "(cached) " >&6 5254else 5255 if test -n "$ac_ct_OBJDUMP"; then 5256 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 5257else 5258as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5259for as_dir in $PATH 5260do 5261 IFS=$as_save_IFS 5262 test -z "$as_dir" && as_dir=. 5263 for ac_exec_ext in '' $ac_executable_extensions; do 5264 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5265 ac_cv_prog_ac_ct_OBJDUMP="objdump" 5266 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5267 break 2 5268 fi 5269done 5270 done 5271IFS=$as_save_IFS 5272 5273fi 5274fi 5275ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 5276if test -n "$ac_ct_OBJDUMP"; then 5277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 5278$as_echo "$ac_ct_OBJDUMP" >&6; } 5279else 5280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5281$as_echo "no" >&6; } 5282fi 5283 5284 if test "x$ac_ct_OBJDUMP" = x; then 5285 OBJDUMP="false" 5286 else 5287 case $cross_compiling:$ac_tool_warned in 5288yes:) 5289{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5290$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5291ac_tool_warned=yes ;; 5292esac 5293 OBJDUMP=$ac_ct_OBJDUMP 5294 fi 5295else 5296 OBJDUMP="$ac_cv_prog_OBJDUMP" 5297fi 5298 5299test -z "$OBJDUMP" && OBJDUMP=objdump 5300 5301 5302 5303 5304 5305 5306 5307 5308 5309{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 5310$as_echo_n "checking how to recognize dependent libraries... " >&6; } 5311if ${lt_cv_deplibs_check_method+:} false; then : 5312 $as_echo_n "(cached) " >&6 5313else 5314 lt_cv_file_magic_cmd='$MAGIC_CMD' 5315lt_cv_file_magic_test_file= 5316lt_cv_deplibs_check_method='unknown' 5317# Need to set the preceding variable on all platforms that support 5318# interlibrary dependencies. 5319# 'none' -- dependencies not supported. 5320# 'unknown' -- same as none, but documents that we really don't know. 5321# 'pass_all' -- all dependencies passed with no checks. 5322# 'test_compile' -- check by making test program. 5323# 'file_magic [[regex]]' -- check by looking for files in library path 5324# that responds to the $file_magic_cmd with a given extended regex. 5325# If you have 'file' or equivalent on your system and you're not sure 5326# whether 'pass_all' will *always* work, you probably want this one. 5327 5328case $host_os in 5329aix[4-9]*) 5330 lt_cv_deplibs_check_method=pass_all 5331 ;; 5332 5333beos*) 5334 lt_cv_deplibs_check_method=pass_all 5335 ;; 5336 5337bsdi[45]*) 5338 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 5339 lt_cv_file_magic_cmd='/usr/bin/file -L' 5340 lt_cv_file_magic_test_file=/shlib/libc.so 5341 ;; 5342 5343cygwin*) 5344 # func_win32_libid is a shell function defined in ltmain.sh 5345 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5346 lt_cv_file_magic_cmd='func_win32_libid' 5347 ;; 5348 5349mingw* | pw32*) 5350 # Base MSYS/MinGW do not provide the 'file' command needed by 5351 # func_win32_libid shell function, so use a weaker test based on 'objdump', 5352 # unless we find 'file', for example because we are cross-compiling. 5353 if ( file / ) >/dev/null 2>&1; then 5354 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5355 lt_cv_file_magic_cmd='func_win32_libid' 5356 else 5357 # Keep this pattern in sync with the one in func_win32_libid. 5358 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 5359 lt_cv_file_magic_cmd='$OBJDUMP -f' 5360 fi 5361 ;; 5362 5363cegcc*) 5364 # use the weaker test based on 'objdump'. See mingw*. 5365 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 5366 lt_cv_file_magic_cmd='$OBJDUMP -f' 5367 ;; 5368 5369darwin* | rhapsody*) 5370 lt_cv_deplibs_check_method=pass_all 5371 ;; 5372 5373freebsd* | dragonfly*) 5374 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5375 case $host_cpu in 5376 i*86 ) 5377 # Not sure whether the presence of OpenBSD here was a mistake. 5378 # Let's accept both of them until this is cleared up. 5379 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 5380 lt_cv_file_magic_cmd=/usr/bin/file 5381 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 5382 ;; 5383 esac 5384 else 5385 lt_cv_deplibs_check_method=pass_all 5386 fi 5387 ;; 5388 5389haiku*) 5390 lt_cv_deplibs_check_method=pass_all 5391 ;; 5392 5393hpux10.20* | hpux11*) 5394 lt_cv_file_magic_cmd=/usr/bin/file 5395 case $host_cpu in 5396 ia64*) 5397 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 5398 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 5399 ;; 5400 hppa*64*) 5401 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]' 5402 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 5403 ;; 5404 *) 5405 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 5406 lt_cv_file_magic_test_file=/usr/lib/libc.sl 5407 ;; 5408 esac 5409 ;; 5410 5411interix[3-9]*) 5412 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 5413 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 5414 ;; 5415 5416irix5* | irix6* | nonstopux*) 5417 case $LD in 5418 *-32|*"-32 ") libmagic=32-bit;; 5419 *-n32|*"-n32 ") libmagic=N32;; 5420 *-64|*"-64 ") libmagic=64-bit;; 5421 *) libmagic=never-match;; 5422 esac 5423 lt_cv_deplibs_check_method=pass_all 5424 ;; 5425 5426# This must be glibc/ELF. 5427linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 5428 lt_cv_deplibs_check_method=pass_all 5429 ;; 5430 5431netbsd* | netbsdelf*-gnu) 5432 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5433 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5434 else 5435 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 5436 fi 5437 ;; 5438 5439newos6*) 5440 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 5441 lt_cv_file_magic_cmd=/usr/bin/file 5442 lt_cv_file_magic_test_file=/usr/lib/libnls.so 5443 ;; 5444 5445*nto* | *qnx*) 5446 lt_cv_deplibs_check_method=pass_all 5447 ;; 5448 5449openbsd* | bitrig*) 5450 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 5451 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 5452 else 5453 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5454 fi 5455 ;; 5456 5457osf3* | osf4* | osf5*) 5458 lt_cv_deplibs_check_method=pass_all 5459 ;; 5460 5461rdos*) 5462 lt_cv_deplibs_check_method=pass_all 5463 ;; 5464 5465solaris*) 5466 lt_cv_deplibs_check_method=pass_all 5467 ;; 5468 5469sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 5470 lt_cv_deplibs_check_method=pass_all 5471 ;; 5472 5473sysv4 | sysv4.3*) 5474 case $host_vendor in 5475 motorola) 5476 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]' 5477 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 5478 ;; 5479 ncr) 5480 lt_cv_deplibs_check_method=pass_all 5481 ;; 5482 sequent) 5483 lt_cv_file_magic_cmd='/bin/file' 5484 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 5485 ;; 5486 sni) 5487 lt_cv_file_magic_cmd='/bin/file' 5488 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 5489 lt_cv_file_magic_test_file=/lib/libc.so 5490 ;; 5491 siemens) 5492 lt_cv_deplibs_check_method=pass_all 5493 ;; 5494 pc) 5495 lt_cv_deplibs_check_method=pass_all 5496 ;; 5497 esac 5498 ;; 5499 5500tpf*) 5501 lt_cv_deplibs_check_method=pass_all 5502 ;; 5503os2*) 5504 lt_cv_deplibs_check_method=pass_all 5505 ;; 5506esac 5507 5508fi 5509{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 5510$as_echo "$lt_cv_deplibs_check_method" >&6; } 5511 5512file_magic_glob= 5513want_nocaseglob=no 5514if test "$build" = "$host"; then 5515 case $host_os in 5516 mingw* | pw32*) 5517 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 5518 want_nocaseglob=yes 5519 else 5520 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 5521 fi 5522 ;; 5523 esac 5524fi 5525 5526file_magic_cmd=$lt_cv_file_magic_cmd 5527deplibs_check_method=$lt_cv_deplibs_check_method 5528test -z "$deplibs_check_method" && deplibs_check_method=unknown 5529 5530 5531 5532 5533 5534 5535 5536 5537 5538 5539 5540 5541 5542 5543 5544 5545 5546 5547 5548 5549 5550 5551if test -n "$ac_tool_prefix"; then 5552 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 5553set dummy ${ac_tool_prefix}dlltool; ac_word=$2 5554{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5555$as_echo_n "checking for $ac_word... " >&6; } 5556if ${ac_cv_prog_DLLTOOL+:} false; then : 5557 $as_echo_n "(cached) " >&6 5558else 5559 if test -n "$DLLTOOL"; then 5560 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 5561else 5562as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5563for as_dir in $PATH 5564do 5565 IFS=$as_save_IFS 5566 test -z "$as_dir" && as_dir=. 5567 for ac_exec_ext in '' $ac_executable_extensions; do 5568 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5569 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 5570 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5571 break 2 5572 fi 5573done 5574 done 5575IFS=$as_save_IFS 5576 5577fi 5578fi 5579DLLTOOL=$ac_cv_prog_DLLTOOL 5580if test -n "$DLLTOOL"; then 5581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 5582$as_echo "$DLLTOOL" >&6; } 5583else 5584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5585$as_echo "no" >&6; } 5586fi 5587 5588 5589fi 5590if test -z "$ac_cv_prog_DLLTOOL"; then 5591 ac_ct_DLLTOOL=$DLLTOOL 5592 # Extract the first word of "dlltool", so it can be a program name with args. 5593set dummy dlltool; ac_word=$2 5594{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5595$as_echo_n "checking for $ac_word... " >&6; } 5596if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 5597 $as_echo_n "(cached) " >&6 5598else 5599 if test -n "$ac_ct_DLLTOOL"; then 5600 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 5601else 5602as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5603for as_dir in $PATH 5604do 5605 IFS=$as_save_IFS 5606 test -z "$as_dir" && as_dir=. 5607 for ac_exec_ext in '' $ac_executable_extensions; do 5608 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5609 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 5610 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5611 break 2 5612 fi 5613done 5614 done 5615IFS=$as_save_IFS 5616 5617fi 5618fi 5619ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 5620if test -n "$ac_ct_DLLTOOL"; then 5621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 5622$as_echo "$ac_ct_DLLTOOL" >&6; } 5623else 5624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5625$as_echo "no" >&6; } 5626fi 5627 5628 if test "x$ac_ct_DLLTOOL" = x; then 5629 DLLTOOL="false" 5630 else 5631 case $cross_compiling:$ac_tool_warned in 5632yes:) 5633{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5634$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5635ac_tool_warned=yes ;; 5636esac 5637 DLLTOOL=$ac_ct_DLLTOOL 5638 fi 5639else 5640 DLLTOOL="$ac_cv_prog_DLLTOOL" 5641fi 5642 5643test -z "$DLLTOOL" && DLLTOOL=dlltool 5644 5645 5646 5647 5648 5649 5650 5651 5652 5653 5654{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 5655$as_echo_n "checking how to associate runtime and link libraries... " >&6; } 5656if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : 5657 $as_echo_n "(cached) " >&6 5658else 5659 lt_cv_sharedlib_from_linklib_cmd='unknown' 5660 5661case $host_os in 5662cygwin* | mingw* | pw32* | cegcc*) 5663 # two different shell functions defined in ltmain.sh; 5664 # decide which one to use based on capabilities of $DLLTOOL 5665 case `$DLLTOOL --help 2>&1` in 5666 *--identify-strict*) 5667 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 5668 ;; 5669 *) 5670 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 5671 ;; 5672 esac 5673 ;; 5674*) 5675 # fallback: assume linklib IS sharedlib 5676 lt_cv_sharedlib_from_linklib_cmd=$ECHO 5677 ;; 5678esac 5679 5680fi 5681{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 5682$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 5683sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 5684test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 5685 5686 5687 5688 5689 5690 5691 5692 5693if test -n "$ac_tool_prefix"; then 5694 for ac_prog in ar 5695 do 5696 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5697set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5698{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5699$as_echo_n "checking for $ac_word... " >&6; } 5700if ${ac_cv_prog_AR+:} false; then : 5701 $as_echo_n "(cached) " >&6 5702else 5703 if test -n "$AR"; then 5704 ac_cv_prog_AR="$AR" # Let the user override the test. 5705else 5706as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5707for as_dir in $PATH 5708do 5709 IFS=$as_save_IFS 5710 test -z "$as_dir" && as_dir=. 5711 for ac_exec_ext in '' $ac_executable_extensions; do 5712 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5713 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 5714 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5715 break 2 5716 fi 5717done 5718 done 5719IFS=$as_save_IFS 5720 5721fi 5722fi 5723AR=$ac_cv_prog_AR 5724if test -n "$AR"; then 5725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 5726$as_echo "$AR" >&6; } 5727else 5728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5729$as_echo "no" >&6; } 5730fi 5731 5732 5733 test -n "$AR" && break 5734 done 5735fi 5736if test -z "$AR"; then 5737 ac_ct_AR=$AR 5738 for ac_prog in ar 5739do 5740 # Extract the first word of "$ac_prog", so it can be a program name with args. 5741set dummy $ac_prog; ac_word=$2 5742{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5743$as_echo_n "checking for $ac_word... " >&6; } 5744if ${ac_cv_prog_ac_ct_AR+:} false; then : 5745 $as_echo_n "(cached) " >&6 5746else 5747 if test -n "$ac_ct_AR"; then 5748 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 5749else 5750as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5751for as_dir in $PATH 5752do 5753 IFS=$as_save_IFS 5754 test -z "$as_dir" && as_dir=. 5755 for ac_exec_ext in '' $ac_executable_extensions; do 5756 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5757 ac_cv_prog_ac_ct_AR="$ac_prog" 5758 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5759 break 2 5760 fi 5761done 5762 done 5763IFS=$as_save_IFS 5764 5765fi 5766fi 5767ac_ct_AR=$ac_cv_prog_ac_ct_AR 5768if test -n "$ac_ct_AR"; then 5769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 5770$as_echo "$ac_ct_AR" >&6; } 5771else 5772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5773$as_echo "no" >&6; } 5774fi 5775 5776 5777 test -n "$ac_ct_AR" && break 5778done 5779 5780 if test "x$ac_ct_AR" = x; then 5781 AR="false" 5782 else 5783 case $cross_compiling:$ac_tool_warned in 5784yes:) 5785{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5786$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5787ac_tool_warned=yes ;; 5788esac 5789 AR=$ac_ct_AR 5790 fi 5791fi 5792 5793: ${AR=ar} 5794: ${AR_FLAGS=cru} 5795 5796 5797 5798 5799 5800 5801 5802 5803 5804 5805 5806{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 5807$as_echo_n "checking for archiver @FILE support... " >&6; } 5808if ${lt_cv_ar_at_file+:} false; then : 5809 $as_echo_n "(cached) " >&6 5810else 5811 lt_cv_ar_at_file=no 5812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5813/* end confdefs.h. */ 5814 5815int 5816main () 5817{ 5818 5819 ; 5820 return 0; 5821} 5822_ACEOF 5823if ac_fn_c_try_compile "$LINENO"; then : 5824 echo conftest.$ac_objext > conftest.lst 5825 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 5826 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 5827 (eval $lt_ar_try) 2>&5 5828 ac_status=$? 5829 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5830 test $ac_status = 0; } 5831 if test 0 -eq "$ac_status"; then 5832 # Ensure the archiver fails upon bogus file names. 5833 rm -f conftest.$ac_objext libconftest.a 5834 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 5835 (eval $lt_ar_try) 2>&5 5836 ac_status=$? 5837 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5838 test $ac_status = 0; } 5839 if test 0 -ne "$ac_status"; then 5840 lt_cv_ar_at_file=@ 5841 fi 5842 fi 5843 rm -f conftest.* libconftest.a 5844 5845fi 5846rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5847 5848fi 5849{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 5850$as_echo "$lt_cv_ar_at_file" >&6; } 5851 5852if test no = "$lt_cv_ar_at_file"; then 5853 archiver_list_spec= 5854else 5855 archiver_list_spec=$lt_cv_ar_at_file 5856fi 5857 5858 5859 5860 5861 5862 5863 5864if test -n "$ac_tool_prefix"; then 5865 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 5866set dummy ${ac_tool_prefix}strip; ac_word=$2 5867{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5868$as_echo_n "checking for $ac_word... " >&6; } 5869if ${ac_cv_prog_STRIP+:} false; then : 5870 $as_echo_n "(cached) " >&6 5871else 5872 if test -n "$STRIP"; then 5873 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 5874else 5875as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5876for as_dir in $PATH 5877do 5878 IFS=$as_save_IFS 5879 test -z "$as_dir" && as_dir=. 5880 for ac_exec_ext in '' $ac_executable_extensions; do 5881 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5882 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 5883 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5884 break 2 5885 fi 5886done 5887 done 5888IFS=$as_save_IFS 5889 5890fi 5891fi 5892STRIP=$ac_cv_prog_STRIP 5893if test -n "$STRIP"; then 5894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 5895$as_echo "$STRIP" >&6; } 5896else 5897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5898$as_echo "no" >&6; } 5899fi 5900 5901 5902fi 5903if test -z "$ac_cv_prog_STRIP"; then 5904 ac_ct_STRIP=$STRIP 5905 # Extract the first word of "strip", so it can be a program name with args. 5906set dummy strip; ac_word=$2 5907{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5908$as_echo_n "checking for $ac_word... " >&6; } 5909if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 5910 $as_echo_n "(cached) " >&6 5911else 5912 if test -n "$ac_ct_STRIP"; then 5913 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 5914else 5915as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5916for as_dir in $PATH 5917do 5918 IFS=$as_save_IFS 5919 test -z "$as_dir" && as_dir=. 5920 for ac_exec_ext in '' $ac_executable_extensions; do 5921 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5922 ac_cv_prog_ac_ct_STRIP="strip" 5923 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5924 break 2 5925 fi 5926done 5927 done 5928IFS=$as_save_IFS 5929 5930fi 5931fi 5932ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 5933if test -n "$ac_ct_STRIP"; then 5934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 5935$as_echo "$ac_ct_STRIP" >&6; } 5936else 5937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5938$as_echo "no" >&6; } 5939fi 5940 5941 if test "x$ac_ct_STRIP" = x; then 5942 STRIP=":" 5943 else 5944 case $cross_compiling:$ac_tool_warned in 5945yes:) 5946{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5947$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5948ac_tool_warned=yes ;; 5949esac 5950 STRIP=$ac_ct_STRIP 5951 fi 5952else 5953 STRIP="$ac_cv_prog_STRIP" 5954fi 5955 5956test -z "$STRIP" && STRIP=: 5957 5958 5959 5960 5961 5962 5963if test -n "$ac_tool_prefix"; then 5964 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 5965set dummy ${ac_tool_prefix}ranlib; ac_word=$2 5966{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5967$as_echo_n "checking for $ac_word... " >&6; } 5968if ${ac_cv_prog_RANLIB+:} false; then : 5969 $as_echo_n "(cached) " >&6 5970else 5971 if test -n "$RANLIB"; then 5972 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 5973else 5974as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5975for as_dir in $PATH 5976do 5977 IFS=$as_save_IFS 5978 test -z "$as_dir" && as_dir=. 5979 for ac_exec_ext in '' $ac_executable_extensions; do 5980 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5981 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 5982 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5983 break 2 5984 fi 5985done 5986 done 5987IFS=$as_save_IFS 5988 5989fi 5990fi 5991RANLIB=$ac_cv_prog_RANLIB 5992if test -n "$RANLIB"; then 5993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 5994$as_echo "$RANLIB" >&6; } 5995else 5996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5997$as_echo "no" >&6; } 5998fi 5999 6000 6001fi 6002if test -z "$ac_cv_prog_RANLIB"; then 6003 ac_ct_RANLIB=$RANLIB 6004 # Extract the first word of "ranlib", so it can be a program name with args. 6005set dummy ranlib; ac_word=$2 6006{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6007$as_echo_n "checking for $ac_word... " >&6; } 6008if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 6009 $as_echo_n "(cached) " >&6 6010else 6011 if test -n "$ac_ct_RANLIB"; then 6012 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 6013else 6014as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6015for as_dir in $PATH 6016do 6017 IFS=$as_save_IFS 6018 test -z "$as_dir" && as_dir=. 6019 for ac_exec_ext in '' $ac_executable_extensions; do 6020 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6021 ac_cv_prog_ac_ct_RANLIB="ranlib" 6022 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6023 break 2 6024 fi 6025done 6026 done 6027IFS=$as_save_IFS 6028 6029fi 6030fi 6031ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 6032if test -n "$ac_ct_RANLIB"; then 6033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 6034$as_echo "$ac_ct_RANLIB" >&6; } 6035else 6036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6037$as_echo "no" >&6; } 6038fi 6039 6040 if test "x$ac_ct_RANLIB" = x; then 6041 RANLIB=":" 6042 else 6043 case $cross_compiling:$ac_tool_warned in 6044yes:) 6045{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6046$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6047ac_tool_warned=yes ;; 6048esac 6049 RANLIB=$ac_ct_RANLIB 6050 fi 6051else 6052 RANLIB="$ac_cv_prog_RANLIB" 6053fi 6054 6055test -z "$RANLIB" && RANLIB=: 6056 6057 6058 6059 6060 6061 6062# Determine commands to create old-style static archives. 6063old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 6064old_postinstall_cmds='chmod 644 $oldlib' 6065old_postuninstall_cmds= 6066 6067if test -n "$RANLIB"; then 6068 case $host_os in 6069 bitrig* | openbsd*) 6070 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 6071 ;; 6072 *) 6073 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 6074 ;; 6075 esac 6076 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 6077fi 6078 6079case $host_os in 6080 darwin*) 6081 lock_old_archive_extraction=yes ;; 6082 *) 6083 lock_old_archive_extraction=no ;; 6084esac 6085 6086 6087 6088 6089 6090 6091 6092 6093 6094 6095 6096 6097 6098 6099 6100 6101 6102 6103 6104 6105 6106 6107 6108 6109 6110 6111 6112 6113 6114 6115 6116 6117 6118 6119 6120 6121 6122 6123 6124# If no C compiler was specified, use CC. 6125LTCC=${LTCC-"$CC"} 6126 6127# If no C compiler flags were specified, use CFLAGS. 6128LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 6129 6130# Allow CC to be a program name with arguments. 6131compiler=$CC 6132 6133 6134# Check for command to grab the raw symbol name followed by C symbol from nm. 6135{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 6136$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 6137if ${lt_cv_sys_global_symbol_pipe+:} false; then : 6138 $as_echo_n "(cached) " >&6 6139else 6140 6141# These are sane defaults that work on at least a few old systems. 6142# [They come from Ultrix. What could be older than Ultrix?!! ;)] 6143 6144# Character class describing NM global symbol codes. 6145symcode='[BCDEGRST]' 6146 6147# Regexp to match symbols that can be accessed directly from C. 6148sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 6149 6150# Define system-specific variables. 6151case $host_os in 6152aix*) 6153 symcode='[BCDT]' 6154 ;; 6155cygwin* | mingw* | pw32* | cegcc*) 6156 symcode='[ABCDGISTW]' 6157 ;; 6158hpux*) 6159 if test ia64 = "$host_cpu"; then 6160 symcode='[ABCDEGRST]' 6161 fi 6162 ;; 6163irix* | nonstopux*) 6164 symcode='[BCDEGRST]' 6165 ;; 6166osf*) 6167 symcode='[BCDEGQRST]' 6168 ;; 6169solaris*) 6170 symcode='[BDRT]' 6171 ;; 6172sco3.2v5*) 6173 symcode='[DT]' 6174 ;; 6175sysv4.2uw2*) 6176 symcode='[DT]' 6177 ;; 6178sysv5* | sco5v6* | unixware* | OpenUNIX*) 6179 symcode='[ABDT]' 6180 ;; 6181sysv4) 6182 symcode='[DFNSTU]' 6183 ;; 6184esac 6185 6186# If we're using GNU nm, then use its standard symbol codes. 6187case `$NM -V 2>&1` in 6188*GNU* | *'with BFD'*) 6189 symcode='[ABCDGIRSTW]' ;; 6190esac 6191 6192if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6193 # Gets list of data symbols to import. 6194 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'" 6195 # Adjust the below global symbol transforms to fixup imported variables. 6196 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" 6197 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" 6198 lt_c_name_lib_hook="\ 6199 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ 6200 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" 6201else 6202 # Disable hooks by default. 6203 lt_cv_sys_global_symbol_to_import= 6204 lt_cdecl_hook= 6205 lt_c_name_hook= 6206 lt_c_name_lib_hook= 6207fi 6208 6209# Transform an extracted symbol line into a proper C declaration. 6210# Some systems (esp. on ia64) link data and code symbols differently, 6211# so use this general approach. 6212lt_cv_sys_global_symbol_to_cdecl="sed -n"\ 6213$lt_cdecl_hook\ 6214" -e 's/^T .* \(.*\)$/extern int \1();/p'"\ 6215" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" 6216 6217# Transform an extracted symbol line into symbol name and symbol address 6218lt_cv_sys_global_symbol_to_c_name_address="sed -n"\ 6219$lt_c_name_hook\ 6220" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 6221" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" 6222 6223# Transform an extracted symbol line into symbol name with lib prefix and 6224# symbol address. 6225lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\ 6226$lt_c_name_lib_hook\ 6227" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 6228" -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ 6229" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" 6230 6231# Handle CRLF in mingw tool chain 6232opt_cr= 6233case $build_os in 6234mingw*) 6235 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 6236 ;; 6237esac 6238 6239# Try without a prefix underscore, then with it. 6240for ac_symprfx in "" "_"; do 6241 6242 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 6243 symxfrm="\\1 $ac_symprfx\\2 \\2" 6244 6245 # Write the raw and C identifiers. 6246 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6247 # Fake it for dumpbin and say T for any non-static function, 6248 # D for any global variable and I for any imported variable. 6249 # Also find C++ and __fastcall symbols from MSVC++, 6250 # which start with @ or ?. 6251 lt_cv_sys_global_symbol_pipe="$AWK '"\ 6252" {last_section=section; section=\$ 3};"\ 6253" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 6254" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 6255" /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ 6256" /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ 6257" /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ 6258" \$ 0!~/External *\|/{next};"\ 6259" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 6260" {if(hide[section]) next};"\ 6261" {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ 6262" {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ 6263" s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ 6264" s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ 6265" ' prfx=^$ac_symprfx" 6266 else 6267 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 6268 fi 6269 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 6270 6271 # Check to see that the pipe works correctly. 6272 pipe_works=no 6273 6274 rm -f conftest* 6275 cat > conftest.$ac_ext <<_LT_EOF 6276#ifdef __cplusplus 6277extern "C" { 6278#endif 6279char nm_test_var; 6280void nm_test_func(void); 6281void nm_test_func(void){} 6282#ifdef __cplusplus 6283} 6284#endif 6285int main(){nm_test_var='a';nm_test_func();return(0);} 6286_LT_EOF 6287 6288 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6289 (eval $ac_compile) 2>&5 6290 ac_status=$? 6291 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6292 test $ac_status = 0; }; then 6293 # Now try to grab the symbols. 6294 nlist=conftest.nm 6295 $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5 6296 if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then 6297 # Try sorting and uniquifying the output. 6298 if sort "$nlist" | uniq > "$nlist"T; then 6299 mv -f "$nlist"T "$nlist" 6300 else 6301 rm -f "$nlist"T 6302 fi 6303 6304 # Make sure that we snagged all the symbols we need. 6305 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 6306 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 6307 cat <<_LT_EOF > conftest.$ac_ext 6308/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 6309#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE 6310/* DATA imports from DLLs on WIN32 can't be const, because runtime 6311 relocations are performed -- see ld's documentation on pseudo-relocs. */ 6312# define LT_DLSYM_CONST 6313#elif defined __osf__ 6314/* This system does not cope well with relocations in const data. */ 6315# define LT_DLSYM_CONST 6316#else 6317# define LT_DLSYM_CONST const 6318#endif 6319 6320#ifdef __cplusplus 6321extern "C" { 6322#endif 6323 6324_LT_EOF 6325 # Now generate the symbol file. 6326 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 6327 6328 cat <<_LT_EOF >> conftest.$ac_ext 6329 6330/* The mapping between symbol names and symbols. */ 6331LT_DLSYM_CONST struct { 6332 const char *name; 6333 void *address; 6334} 6335lt__PROGRAM__LTX_preloaded_symbols[] = 6336{ 6337 { "@PROGRAM@", (void *) 0 }, 6338_LT_EOF 6339 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 6340 cat <<\_LT_EOF >> conftest.$ac_ext 6341 {0, (void *) 0} 6342}; 6343 6344/* This works around a problem in FreeBSD linker */ 6345#ifdef FREEBSD_WORKAROUND 6346static const void *lt_preloaded_setup() { 6347 return lt__PROGRAM__LTX_preloaded_symbols; 6348} 6349#endif 6350 6351#ifdef __cplusplus 6352} 6353#endif 6354_LT_EOF 6355 # Now try linking the two files. 6356 mv conftest.$ac_objext conftstm.$ac_objext 6357 lt_globsym_save_LIBS=$LIBS 6358 lt_globsym_save_CFLAGS=$CFLAGS 6359 LIBS=conftstm.$ac_objext 6360 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 6361 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 6362 (eval $ac_link) 2>&5 6363 ac_status=$? 6364 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6365 test $ac_status = 0; } && test -s conftest$ac_exeext; then 6366 pipe_works=yes 6367 fi 6368 LIBS=$lt_globsym_save_LIBS 6369 CFLAGS=$lt_globsym_save_CFLAGS 6370 else 6371 echo "cannot find nm_test_func in $nlist" >&5 6372 fi 6373 else 6374 echo "cannot find nm_test_var in $nlist" >&5 6375 fi 6376 else 6377 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 6378 fi 6379 else 6380 echo "$progname: failed program was:" >&5 6381 cat conftest.$ac_ext >&5 6382 fi 6383 rm -rf conftest* conftst* 6384 6385 # Do not use the global_symbol_pipe unless it works. 6386 if test yes = "$pipe_works"; then 6387 break 6388 else 6389 lt_cv_sys_global_symbol_pipe= 6390 fi 6391done 6392 6393fi 6394 6395if test -z "$lt_cv_sys_global_symbol_pipe"; then 6396 lt_cv_sys_global_symbol_to_cdecl= 6397fi 6398if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 6399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 6400$as_echo "failed" >&6; } 6401else 6402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 6403$as_echo "ok" >&6; } 6404fi 6405 6406# Response file support. 6407if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6408 nm_file_list_spec='@' 6409elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 6410 nm_file_list_spec='@' 6411fi 6412 6413 6414 6415 6416 6417 6418 6419 6420 6421 6422 6423 6424 6425 6426 6427 6428 6429 6430 6431 6432 6433 6434 6435 6436 6437 6438 6439 6440 6441 6442 6443 6444 6445 6446 6447 6448 6449{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 6450$as_echo_n "checking for sysroot... " >&6; } 6451 6452# Check whether --with-sysroot was given. 6453if test "${with_sysroot+set}" = set; then : 6454 withval=$with_sysroot; 6455else 6456 with_sysroot=no 6457fi 6458 6459 6460lt_sysroot= 6461case $with_sysroot in #( 6462 yes) 6463 if test yes = "$GCC"; then 6464 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 6465 fi 6466 ;; #( 6467 /*) 6468 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 6469 ;; #( 6470 no|'') 6471 ;; #( 6472 *) 6473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5 6474$as_echo "$with_sysroot" >&6; } 6475 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 6476 ;; 6477esac 6478 6479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 6480$as_echo "${lt_sysroot:-no}" >&6; } 6481 6482 6483 6484 6485 6486{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5 6487$as_echo_n "checking for a working dd... " >&6; } 6488if ${ac_cv_path_lt_DD+:} false; then : 6489 $as_echo_n "(cached) " >&6 6490else 6491 printf 0123456789abcdef0123456789abcdef >conftest.i 6492cat conftest.i conftest.i >conftest2.i 6493: ${lt_DD:=$DD} 6494if test -z "$lt_DD"; then 6495 ac_path_lt_DD_found=false 6496 # Loop through the user's path and test for each of PROGNAME-LIST 6497 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6498for as_dir in $PATH 6499do 6500 IFS=$as_save_IFS 6501 test -z "$as_dir" && as_dir=. 6502 for ac_prog in dd; do 6503 for ac_exec_ext in '' $ac_executable_extensions; do 6504 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext" 6505 as_fn_executable_p "$ac_path_lt_DD" || continue 6506if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 6507 cmp -s conftest.i conftest.out \ 6508 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: 6509fi 6510 $ac_path_lt_DD_found && break 3 6511 done 6512 done 6513 done 6514IFS=$as_save_IFS 6515 if test -z "$ac_cv_path_lt_DD"; then 6516 : 6517 fi 6518else 6519 ac_cv_path_lt_DD=$lt_DD 6520fi 6521 6522rm -f conftest.i conftest2.i conftest.out 6523fi 6524{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 6525$as_echo "$ac_cv_path_lt_DD" >&6; } 6526 6527 6528{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5 6529$as_echo_n "checking how to truncate binary pipes... " >&6; } 6530if ${lt_cv_truncate_bin+:} false; then : 6531 $as_echo_n "(cached) " >&6 6532else 6533 printf 0123456789abcdef0123456789abcdef >conftest.i 6534cat conftest.i conftest.i >conftest2.i 6535lt_cv_truncate_bin= 6536if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 6537 cmp -s conftest.i conftest.out \ 6538 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" 6539fi 6540rm -f conftest.i conftest2.i conftest.out 6541test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" 6542fi 6543{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 6544$as_echo "$lt_cv_truncate_bin" >&6; } 6545 6546 6547 6548 6549 6550 6551 6552# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 6553func_cc_basename () 6554{ 6555 for cc_temp in $*""; do 6556 case $cc_temp in 6557 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 6558 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 6559 \-*) ;; 6560 *) break;; 6561 esac 6562 done 6563 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 6564} 6565 6566# Check whether --enable-libtool-lock was given. 6567if test "${enable_libtool_lock+set}" = set; then : 6568 enableval=$enable_libtool_lock; 6569fi 6570 6571test no = "$enable_libtool_lock" || enable_libtool_lock=yes 6572 6573# Some flags need to be propagated to the compiler or linker for good 6574# libtool support. 6575case $host in 6576ia64-*-hpux*) 6577 # Find out what ABI is being produced by ac_compile, and set mode 6578 # options accordingly. 6579 echo 'int i;' > conftest.$ac_ext 6580 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6581 (eval $ac_compile) 2>&5 6582 ac_status=$? 6583 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6584 test $ac_status = 0; }; then 6585 case `/usr/bin/file conftest.$ac_objext` in 6586 *ELF-32*) 6587 HPUX_IA64_MODE=32 6588 ;; 6589 *ELF-64*) 6590 HPUX_IA64_MODE=64 6591 ;; 6592 esac 6593 fi 6594 rm -rf conftest* 6595 ;; 6596*-*-irix6*) 6597 # Find out what ABI is being produced by ac_compile, and set linker 6598 # options accordingly. 6599 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 6600 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6601 (eval $ac_compile) 2>&5 6602 ac_status=$? 6603 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6604 test $ac_status = 0; }; then 6605 if test yes = "$lt_cv_prog_gnu_ld"; then 6606 case `/usr/bin/file conftest.$ac_objext` in 6607 *32-bit*) 6608 LD="${LD-ld} -melf32bsmip" 6609 ;; 6610 *N32*) 6611 LD="${LD-ld} -melf32bmipn32" 6612 ;; 6613 *64-bit*) 6614 LD="${LD-ld} -melf64bmip" 6615 ;; 6616 esac 6617 else 6618 case `/usr/bin/file conftest.$ac_objext` in 6619 *32-bit*) 6620 LD="${LD-ld} -32" 6621 ;; 6622 *N32*) 6623 LD="${LD-ld} -n32" 6624 ;; 6625 *64-bit*) 6626 LD="${LD-ld} -64" 6627 ;; 6628 esac 6629 fi 6630 fi 6631 rm -rf conftest* 6632 ;; 6633 6634mips64*-*linux*) 6635 # Find out what ABI is being produced by ac_compile, and set linker 6636 # options accordingly. 6637 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 6638 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6639 (eval $ac_compile) 2>&5 6640 ac_status=$? 6641 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6642 test $ac_status = 0; }; then 6643 emul=elf 6644 case `/usr/bin/file conftest.$ac_objext` in 6645 *32-bit*) 6646 emul="${emul}32" 6647 ;; 6648 *64-bit*) 6649 emul="${emul}64" 6650 ;; 6651 esac 6652 case `/usr/bin/file conftest.$ac_objext` in 6653 *MSB*) 6654 emul="${emul}btsmip" 6655 ;; 6656 *LSB*) 6657 emul="${emul}ltsmip" 6658 ;; 6659 esac 6660 case `/usr/bin/file conftest.$ac_objext` in 6661 *N32*) 6662 emul="${emul}n32" 6663 ;; 6664 esac 6665 LD="${LD-ld} -m $emul" 6666 fi 6667 rm -rf conftest* 6668 ;; 6669 6670x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 6671s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 6672 # Find out what ABI is being produced by ac_compile, and set linker 6673 # options accordingly. Note that the listed cases only cover the 6674 # situations where additional linker options are needed (such as when 6675 # doing 32-bit compilation for a host where ld defaults to 64-bit, or 6676 # vice versa); the common cases where no linker options are needed do 6677 # not appear in the list. 6678 echo 'int i;' > conftest.$ac_ext 6679 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6680 (eval $ac_compile) 2>&5 6681 ac_status=$? 6682 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6683 test $ac_status = 0; }; then 6684 case `/usr/bin/file conftest.o` in 6685 *32-bit*) 6686 case $host in 6687 x86_64-*kfreebsd*-gnu) 6688 LD="${LD-ld} -m elf_i386_fbsd" 6689 ;; 6690 x86_64-*linux*) 6691 case `/usr/bin/file conftest.o` in 6692 *x86-64*) 6693 LD="${LD-ld} -m elf32_x86_64" 6694 ;; 6695 *) 6696 LD="${LD-ld} -m elf_i386" 6697 ;; 6698 esac 6699 ;; 6700 powerpc64le-*linux*) 6701 LD="${LD-ld} -m elf32lppclinux" 6702 ;; 6703 powerpc64-*linux*) 6704 LD="${LD-ld} -m elf32ppclinux" 6705 ;; 6706 s390x-*linux*) 6707 LD="${LD-ld} -m elf_s390" 6708 ;; 6709 sparc64-*linux*) 6710 LD="${LD-ld} -m elf32_sparc" 6711 ;; 6712 esac 6713 ;; 6714 *64-bit*) 6715 case $host in 6716 x86_64-*kfreebsd*-gnu) 6717 LD="${LD-ld} -m elf_x86_64_fbsd" 6718 ;; 6719 x86_64-*linux*) 6720 LD="${LD-ld} -m elf_x86_64" 6721 ;; 6722 powerpcle-*linux*) 6723 LD="${LD-ld} -m elf64lppc" 6724 ;; 6725 powerpc-*linux*) 6726 LD="${LD-ld} -m elf64ppc" 6727 ;; 6728 s390*-*linux*|s390*-*tpf*) 6729 LD="${LD-ld} -m elf64_s390" 6730 ;; 6731 sparc*-*linux*) 6732 LD="${LD-ld} -m elf64_sparc" 6733 ;; 6734 esac 6735 ;; 6736 esac 6737 fi 6738 rm -rf conftest* 6739 ;; 6740 6741*-*-sco3.2v5*) 6742 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 6743 SAVE_CFLAGS=$CFLAGS 6744 CFLAGS="$CFLAGS -belf" 6745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 6746$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 6747if ${lt_cv_cc_needs_belf+:} false; then : 6748 $as_echo_n "(cached) " >&6 6749else 6750 ac_ext=c 6751ac_cpp='$CPP $CPPFLAGS' 6752ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6753ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6754ac_compiler_gnu=$ac_cv_c_compiler_gnu 6755 6756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6757/* end confdefs.h. */ 6758 6759int 6760main () 6761{ 6762 6763 ; 6764 return 0; 6765} 6766_ACEOF 6767if ac_fn_c_try_link "$LINENO"; then : 6768 lt_cv_cc_needs_belf=yes 6769else 6770 lt_cv_cc_needs_belf=no 6771fi 6772rm -f core conftest.err conftest.$ac_objext \ 6773 conftest$ac_exeext conftest.$ac_ext 6774 ac_ext=c 6775ac_cpp='$CPP $CPPFLAGS' 6776ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6777ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6778ac_compiler_gnu=$ac_cv_c_compiler_gnu 6779 6780fi 6781{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 6782$as_echo "$lt_cv_cc_needs_belf" >&6; } 6783 if test yes != "$lt_cv_cc_needs_belf"; then 6784 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 6785 CFLAGS=$SAVE_CFLAGS 6786 fi 6787 ;; 6788*-*solaris*) 6789 # Find out what ABI is being produced by ac_compile, and set linker 6790 # options accordingly. 6791 echo 'int i;' > conftest.$ac_ext 6792 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6793 (eval $ac_compile) 2>&5 6794 ac_status=$? 6795 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6796 test $ac_status = 0; }; then 6797 case `/usr/bin/file conftest.o` in 6798 *64-bit*) 6799 case $lt_cv_prog_gnu_ld in 6800 yes*) 6801 case $host in 6802 i?86-*-solaris*|x86_64-*-solaris*) 6803 LD="${LD-ld} -m elf_x86_64" 6804 ;; 6805 sparc*-*-solaris*) 6806 LD="${LD-ld} -m elf64_sparc" 6807 ;; 6808 esac 6809 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 6810 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 6811 LD=${LD-ld}_sol2 6812 fi 6813 ;; 6814 *) 6815 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 6816 LD="${LD-ld} -64" 6817 fi 6818 ;; 6819 esac 6820 ;; 6821 esac 6822 fi 6823 rm -rf conftest* 6824 ;; 6825esac 6826 6827need_locks=$enable_libtool_lock 6828 6829if test -n "$ac_tool_prefix"; then 6830 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 6831set dummy ${ac_tool_prefix}mt; ac_word=$2 6832{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6833$as_echo_n "checking for $ac_word... " >&6; } 6834if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : 6835 $as_echo_n "(cached) " >&6 6836else 6837 if test -n "$MANIFEST_TOOL"; then 6838 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 6839else 6840as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6841for as_dir in $PATH 6842do 6843 IFS=$as_save_IFS 6844 test -z "$as_dir" && as_dir=. 6845 for ac_exec_ext in '' $ac_executable_extensions; do 6846 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6847 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 6848 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6849 break 2 6850 fi 6851done 6852 done 6853IFS=$as_save_IFS 6854 6855fi 6856fi 6857MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 6858if test -n "$MANIFEST_TOOL"; then 6859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 6860$as_echo "$MANIFEST_TOOL" >&6; } 6861else 6862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6863$as_echo "no" >&6; } 6864fi 6865 6866 6867fi 6868if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 6869 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 6870 # Extract the first word of "mt", so it can be a program name with args. 6871set dummy mt; ac_word=$2 6872{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6873$as_echo_n "checking for $ac_word... " >&6; } 6874if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : 6875 $as_echo_n "(cached) " >&6 6876else 6877 if test -n "$ac_ct_MANIFEST_TOOL"; then 6878 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 6879else 6880as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6881for as_dir in $PATH 6882do 6883 IFS=$as_save_IFS 6884 test -z "$as_dir" && as_dir=. 6885 for ac_exec_ext in '' $ac_executable_extensions; do 6886 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6887 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 6888 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6889 break 2 6890 fi 6891done 6892 done 6893IFS=$as_save_IFS 6894 6895fi 6896fi 6897ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 6898if test -n "$ac_ct_MANIFEST_TOOL"; then 6899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 6900$as_echo "$ac_ct_MANIFEST_TOOL" >&6; } 6901else 6902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6903$as_echo "no" >&6; } 6904fi 6905 6906 if test "x$ac_ct_MANIFEST_TOOL" = x; then 6907 MANIFEST_TOOL=":" 6908 else 6909 case $cross_compiling:$ac_tool_warned in 6910yes:) 6911{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6912$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6913ac_tool_warned=yes ;; 6914esac 6915 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 6916 fi 6917else 6918 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 6919fi 6920 6921test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 6922{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 6923$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 6924if ${lt_cv_path_mainfest_tool+:} false; then : 6925 $as_echo_n "(cached) " >&6 6926else 6927 lt_cv_path_mainfest_tool=no 6928 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 6929 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 6930 cat conftest.err >&5 6931 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 6932 lt_cv_path_mainfest_tool=yes 6933 fi 6934 rm -f conftest* 6935fi 6936{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 6937$as_echo "$lt_cv_path_mainfest_tool" >&6; } 6938if test yes != "$lt_cv_path_mainfest_tool"; then 6939 MANIFEST_TOOL=: 6940fi 6941 6942 6943 6944 6945 6946 6947 case $host_os in 6948 rhapsody* | darwin*) 6949 if test -n "$ac_tool_prefix"; then 6950 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 6951set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 6952{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6953$as_echo_n "checking for $ac_word... " >&6; } 6954if ${ac_cv_prog_DSYMUTIL+:} false; then : 6955 $as_echo_n "(cached) " >&6 6956else 6957 if test -n "$DSYMUTIL"; then 6958 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 6959else 6960as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6961for as_dir in $PATH 6962do 6963 IFS=$as_save_IFS 6964 test -z "$as_dir" && as_dir=. 6965 for ac_exec_ext in '' $ac_executable_extensions; do 6966 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6967 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 6968 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6969 break 2 6970 fi 6971done 6972 done 6973IFS=$as_save_IFS 6974 6975fi 6976fi 6977DSYMUTIL=$ac_cv_prog_DSYMUTIL 6978if test -n "$DSYMUTIL"; then 6979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 6980$as_echo "$DSYMUTIL" >&6; } 6981else 6982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6983$as_echo "no" >&6; } 6984fi 6985 6986 6987fi 6988if test -z "$ac_cv_prog_DSYMUTIL"; then 6989 ac_ct_DSYMUTIL=$DSYMUTIL 6990 # Extract the first word of "dsymutil", so it can be a program name with args. 6991set dummy dsymutil; ac_word=$2 6992{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6993$as_echo_n "checking for $ac_word... " >&6; } 6994if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 6995 $as_echo_n "(cached) " >&6 6996else 6997 if test -n "$ac_ct_DSYMUTIL"; then 6998 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 6999else 7000as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7001for as_dir in $PATH 7002do 7003 IFS=$as_save_IFS 7004 test -z "$as_dir" && as_dir=. 7005 for ac_exec_ext in '' $ac_executable_extensions; do 7006 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7007 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 7008 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7009 break 2 7010 fi 7011done 7012 done 7013IFS=$as_save_IFS 7014 7015fi 7016fi 7017ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 7018if test -n "$ac_ct_DSYMUTIL"; then 7019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 7020$as_echo "$ac_ct_DSYMUTIL" >&6; } 7021else 7022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7023$as_echo "no" >&6; } 7024fi 7025 7026 if test "x$ac_ct_DSYMUTIL" = x; then 7027 DSYMUTIL=":" 7028 else 7029 case $cross_compiling:$ac_tool_warned in 7030yes:) 7031{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7032$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7033ac_tool_warned=yes ;; 7034esac 7035 DSYMUTIL=$ac_ct_DSYMUTIL 7036 fi 7037else 7038 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 7039fi 7040 7041 if test -n "$ac_tool_prefix"; then 7042 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 7043set dummy ${ac_tool_prefix}nmedit; ac_word=$2 7044{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7045$as_echo_n "checking for $ac_word... " >&6; } 7046if ${ac_cv_prog_NMEDIT+:} false; then : 7047 $as_echo_n "(cached) " >&6 7048else 7049 if test -n "$NMEDIT"; then 7050 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 7051else 7052as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7053for as_dir in $PATH 7054do 7055 IFS=$as_save_IFS 7056 test -z "$as_dir" && as_dir=. 7057 for ac_exec_ext in '' $ac_executable_extensions; do 7058 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7059 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 7060 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7061 break 2 7062 fi 7063done 7064 done 7065IFS=$as_save_IFS 7066 7067fi 7068fi 7069NMEDIT=$ac_cv_prog_NMEDIT 7070if test -n "$NMEDIT"; then 7071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 7072$as_echo "$NMEDIT" >&6; } 7073else 7074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7075$as_echo "no" >&6; } 7076fi 7077 7078 7079fi 7080if test -z "$ac_cv_prog_NMEDIT"; then 7081 ac_ct_NMEDIT=$NMEDIT 7082 # Extract the first word of "nmedit", so it can be a program name with args. 7083set dummy nmedit; ac_word=$2 7084{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7085$as_echo_n "checking for $ac_word... " >&6; } 7086if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 7087 $as_echo_n "(cached) " >&6 7088else 7089 if test -n "$ac_ct_NMEDIT"; then 7090 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 7091else 7092as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7093for as_dir in $PATH 7094do 7095 IFS=$as_save_IFS 7096 test -z "$as_dir" && as_dir=. 7097 for ac_exec_ext in '' $ac_executable_extensions; do 7098 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7099 ac_cv_prog_ac_ct_NMEDIT="nmedit" 7100 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7101 break 2 7102 fi 7103done 7104 done 7105IFS=$as_save_IFS 7106 7107fi 7108fi 7109ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 7110if test -n "$ac_ct_NMEDIT"; then 7111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 7112$as_echo "$ac_ct_NMEDIT" >&6; } 7113else 7114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7115$as_echo "no" >&6; } 7116fi 7117 7118 if test "x$ac_ct_NMEDIT" = x; then 7119 NMEDIT=":" 7120 else 7121 case $cross_compiling:$ac_tool_warned in 7122yes:) 7123{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7124$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7125ac_tool_warned=yes ;; 7126esac 7127 NMEDIT=$ac_ct_NMEDIT 7128 fi 7129else 7130 NMEDIT="$ac_cv_prog_NMEDIT" 7131fi 7132 7133 if test -n "$ac_tool_prefix"; then 7134 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 7135set dummy ${ac_tool_prefix}lipo; ac_word=$2 7136{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7137$as_echo_n "checking for $ac_word... " >&6; } 7138if ${ac_cv_prog_LIPO+:} false; then : 7139 $as_echo_n "(cached) " >&6 7140else 7141 if test -n "$LIPO"; then 7142 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 7143else 7144as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7145for as_dir in $PATH 7146do 7147 IFS=$as_save_IFS 7148 test -z "$as_dir" && as_dir=. 7149 for ac_exec_ext in '' $ac_executable_extensions; do 7150 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7151 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 7152 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7153 break 2 7154 fi 7155done 7156 done 7157IFS=$as_save_IFS 7158 7159fi 7160fi 7161LIPO=$ac_cv_prog_LIPO 7162if test -n "$LIPO"; then 7163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 7164$as_echo "$LIPO" >&6; } 7165else 7166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7167$as_echo "no" >&6; } 7168fi 7169 7170 7171fi 7172if test -z "$ac_cv_prog_LIPO"; then 7173 ac_ct_LIPO=$LIPO 7174 # Extract the first word of "lipo", so it can be a program name with args. 7175set dummy lipo; ac_word=$2 7176{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7177$as_echo_n "checking for $ac_word... " >&6; } 7178if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 7179 $as_echo_n "(cached) " >&6 7180else 7181 if test -n "$ac_ct_LIPO"; then 7182 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 7183else 7184as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7185for as_dir in $PATH 7186do 7187 IFS=$as_save_IFS 7188 test -z "$as_dir" && as_dir=. 7189 for ac_exec_ext in '' $ac_executable_extensions; do 7190 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7191 ac_cv_prog_ac_ct_LIPO="lipo" 7192 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7193 break 2 7194 fi 7195done 7196 done 7197IFS=$as_save_IFS 7198 7199fi 7200fi 7201ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 7202if test -n "$ac_ct_LIPO"; then 7203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 7204$as_echo "$ac_ct_LIPO" >&6; } 7205else 7206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7207$as_echo "no" >&6; } 7208fi 7209 7210 if test "x$ac_ct_LIPO" = x; then 7211 LIPO=":" 7212 else 7213 case $cross_compiling:$ac_tool_warned in 7214yes:) 7215{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7216$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7217ac_tool_warned=yes ;; 7218esac 7219 LIPO=$ac_ct_LIPO 7220 fi 7221else 7222 LIPO="$ac_cv_prog_LIPO" 7223fi 7224 7225 if test -n "$ac_tool_prefix"; then 7226 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 7227set dummy ${ac_tool_prefix}otool; ac_word=$2 7228{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7229$as_echo_n "checking for $ac_word... " >&6; } 7230if ${ac_cv_prog_OTOOL+:} false; then : 7231 $as_echo_n "(cached) " >&6 7232else 7233 if test -n "$OTOOL"; then 7234 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 7235else 7236as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7237for as_dir in $PATH 7238do 7239 IFS=$as_save_IFS 7240 test -z "$as_dir" && as_dir=. 7241 for ac_exec_ext in '' $ac_executable_extensions; do 7242 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7243 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 7244 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7245 break 2 7246 fi 7247done 7248 done 7249IFS=$as_save_IFS 7250 7251fi 7252fi 7253OTOOL=$ac_cv_prog_OTOOL 7254if test -n "$OTOOL"; then 7255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 7256$as_echo "$OTOOL" >&6; } 7257else 7258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7259$as_echo "no" >&6; } 7260fi 7261 7262 7263fi 7264if test -z "$ac_cv_prog_OTOOL"; then 7265 ac_ct_OTOOL=$OTOOL 7266 # Extract the first word of "otool", so it can be a program name with args. 7267set dummy otool; ac_word=$2 7268{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7269$as_echo_n "checking for $ac_word... " >&6; } 7270if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 7271 $as_echo_n "(cached) " >&6 7272else 7273 if test -n "$ac_ct_OTOOL"; then 7274 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 7275else 7276as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7277for as_dir in $PATH 7278do 7279 IFS=$as_save_IFS 7280 test -z "$as_dir" && as_dir=. 7281 for ac_exec_ext in '' $ac_executable_extensions; do 7282 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7283 ac_cv_prog_ac_ct_OTOOL="otool" 7284 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7285 break 2 7286 fi 7287done 7288 done 7289IFS=$as_save_IFS 7290 7291fi 7292fi 7293ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 7294if test -n "$ac_ct_OTOOL"; then 7295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 7296$as_echo "$ac_ct_OTOOL" >&6; } 7297else 7298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7299$as_echo "no" >&6; } 7300fi 7301 7302 if test "x$ac_ct_OTOOL" = x; then 7303 OTOOL=":" 7304 else 7305 case $cross_compiling:$ac_tool_warned in 7306yes:) 7307{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7308$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7309ac_tool_warned=yes ;; 7310esac 7311 OTOOL=$ac_ct_OTOOL 7312 fi 7313else 7314 OTOOL="$ac_cv_prog_OTOOL" 7315fi 7316 7317 if test -n "$ac_tool_prefix"; then 7318 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 7319set dummy ${ac_tool_prefix}otool64; ac_word=$2 7320{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7321$as_echo_n "checking for $ac_word... " >&6; } 7322if ${ac_cv_prog_OTOOL64+:} false; then : 7323 $as_echo_n "(cached) " >&6 7324else 7325 if test -n "$OTOOL64"; then 7326 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 7327else 7328as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7329for as_dir in $PATH 7330do 7331 IFS=$as_save_IFS 7332 test -z "$as_dir" && as_dir=. 7333 for ac_exec_ext in '' $ac_executable_extensions; do 7334 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7335 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 7336 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7337 break 2 7338 fi 7339done 7340 done 7341IFS=$as_save_IFS 7342 7343fi 7344fi 7345OTOOL64=$ac_cv_prog_OTOOL64 7346if test -n "$OTOOL64"; then 7347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 7348$as_echo "$OTOOL64" >&6; } 7349else 7350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7351$as_echo "no" >&6; } 7352fi 7353 7354 7355fi 7356if test -z "$ac_cv_prog_OTOOL64"; then 7357 ac_ct_OTOOL64=$OTOOL64 7358 # Extract the first word of "otool64", so it can be a program name with args. 7359set dummy otool64; ac_word=$2 7360{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7361$as_echo_n "checking for $ac_word... " >&6; } 7362if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 7363 $as_echo_n "(cached) " >&6 7364else 7365 if test -n "$ac_ct_OTOOL64"; then 7366 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 7367else 7368as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7369for as_dir in $PATH 7370do 7371 IFS=$as_save_IFS 7372 test -z "$as_dir" && as_dir=. 7373 for ac_exec_ext in '' $ac_executable_extensions; do 7374 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7375 ac_cv_prog_ac_ct_OTOOL64="otool64" 7376 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7377 break 2 7378 fi 7379done 7380 done 7381IFS=$as_save_IFS 7382 7383fi 7384fi 7385ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 7386if test -n "$ac_ct_OTOOL64"; then 7387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 7388$as_echo "$ac_ct_OTOOL64" >&6; } 7389else 7390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7391$as_echo "no" >&6; } 7392fi 7393 7394 if test "x$ac_ct_OTOOL64" = x; then 7395 OTOOL64=":" 7396 else 7397 case $cross_compiling:$ac_tool_warned in 7398yes:) 7399{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7400$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7401ac_tool_warned=yes ;; 7402esac 7403 OTOOL64=$ac_ct_OTOOL64 7404 fi 7405else 7406 OTOOL64="$ac_cv_prog_OTOOL64" 7407fi 7408 7409 7410 7411 7412 7413 7414 7415 7416 7417 7418 7419 7420 7421 7422 7423 7424 7425 7426 7427 7428 7429 7430 7431 7432 7433 7434 7435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 7436$as_echo_n "checking for -single_module linker flag... " >&6; } 7437if ${lt_cv_apple_cc_single_mod+:} false; then : 7438 $as_echo_n "(cached) " >&6 7439else 7440 lt_cv_apple_cc_single_mod=no 7441 if test -z "$LT_MULTI_MODULE"; then 7442 # By default we will add the -single_module flag. You can override 7443 # by either setting the environment variable LT_MULTI_MODULE 7444 # non-empty at configure time, or by adding -multi_module to the 7445 # link flags. 7446 rm -rf libconftest.dylib* 7447 echo "int foo(void){return 1;}" > conftest.c 7448 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7449-dynamiclib -Wl,-single_module conftest.c" >&5 7450 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7451 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 7452 _lt_result=$? 7453 # If there is a non-empty error log, and "single_module" 7454 # appears in it, assume the flag caused a linker warning 7455 if test -s conftest.err && $GREP single_module conftest.err; then 7456 cat conftest.err >&5 7457 # Otherwise, if the output was created with a 0 exit code from 7458 # the compiler, it worked. 7459 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then 7460 lt_cv_apple_cc_single_mod=yes 7461 else 7462 cat conftest.err >&5 7463 fi 7464 rm -rf libconftest.dylib* 7465 rm -f conftest.* 7466 fi 7467fi 7468{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 7469$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 7470 7471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 7472$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 7473if ${lt_cv_ld_exported_symbols_list+:} false; then : 7474 $as_echo_n "(cached) " >&6 7475else 7476 lt_cv_ld_exported_symbols_list=no 7477 save_LDFLAGS=$LDFLAGS 7478 echo "_main" > conftest.sym 7479 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 7480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7481/* end confdefs.h. */ 7482 7483int 7484main () 7485{ 7486 7487 ; 7488 return 0; 7489} 7490_ACEOF 7491if ac_fn_c_try_link "$LINENO"; then : 7492 lt_cv_ld_exported_symbols_list=yes 7493else 7494 lt_cv_ld_exported_symbols_list=no 7495fi 7496rm -f core conftest.err conftest.$ac_objext \ 7497 conftest$ac_exeext conftest.$ac_ext 7498 LDFLAGS=$save_LDFLAGS 7499 7500fi 7501{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 7502$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 7503 7504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 7505$as_echo_n "checking for -force_load linker flag... " >&6; } 7506if ${lt_cv_ld_force_load+:} false; then : 7507 $as_echo_n "(cached) " >&6 7508else 7509 lt_cv_ld_force_load=no 7510 cat > conftest.c << _LT_EOF 7511int forced_loaded() { return 2;} 7512_LT_EOF 7513 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 7514 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 7515 echo "$AR cru libconftest.a conftest.o" >&5 7516 $AR cru libconftest.a conftest.o 2>&5 7517 echo "$RANLIB libconftest.a" >&5 7518 $RANLIB libconftest.a 2>&5 7519 cat > conftest.c << _LT_EOF 7520int main() { return 0;} 7521_LT_EOF 7522 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 7523 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 7524 _lt_result=$? 7525 if test -s conftest.err && $GREP force_load conftest.err; then 7526 cat conftest.err >&5 7527 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then 7528 lt_cv_ld_force_load=yes 7529 else 7530 cat conftest.err >&5 7531 fi 7532 rm -f conftest.err libconftest.a conftest conftest.c 7533 rm -rf conftest.dSYM 7534 7535fi 7536{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 7537$as_echo "$lt_cv_ld_force_load" >&6; } 7538 case $host_os in 7539 rhapsody* | darwin1.[012]) 7540 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; 7541 darwin1.*) 7542 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 7543 darwin*) # darwin 5.x on 7544 # if running on 10.5 or later, the deployment target defaults 7545 # to the OS version, if on x86, and 10.4, the deployment 7546 # target defaults to 10.4. Don't you love it? 7547 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 7548 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 7549 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 7550 10.[012][,.]*) 7551 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 7552 10.*) 7553 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 7554 esac 7555 ;; 7556 esac 7557 if test yes = "$lt_cv_apple_cc_single_mod"; then 7558 _lt_dar_single_mod='$single_module' 7559 fi 7560 if test yes = "$lt_cv_ld_exported_symbols_list"; then 7561 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' 7562 else 7563 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' 7564 fi 7565 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then 7566 _lt_dsymutil='~$DSYMUTIL $lib || :' 7567 else 7568 _lt_dsymutil= 7569 fi 7570 ;; 7571 esac 7572 7573# func_munge_path_list VARIABLE PATH 7574# ----------------------------------- 7575# VARIABLE is name of variable containing _space_ separated list of 7576# directories to be munged by the contents of PATH, which is string 7577# having a format: 7578# "DIR[:DIR]:" 7579# string "DIR[ DIR]" will be prepended to VARIABLE 7580# ":DIR[:DIR]" 7581# string "DIR[ DIR]" will be appended to VARIABLE 7582# "DIRP[:DIRP]::[DIRA:]DIRA" 7583# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 7584# "DIRA[ DIRA]" will be appended to VARIABLE 7585# "DIR[:DIR]" 7586# VARIABLE will be replaced by "DIR[ DIR]" 7587func_munge_path_list () 7588{ 7589 case x$2 in 7590 x) 7591 ;; 7592 *:) 7593 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 7594 ;; 7595 x:*) 7596 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 7597 ;; 7598 *::*) 7599 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 7600 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 7601 ;; 7602 *) 7603 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 7604 ;; 7605 esac 7606} 7607 7608ac_ext=c 7609ac_cpp='$CPP $CPPFLAGS' 7610ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7611ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7612ac_compiler_gnu=$ac_cv_c_compiler_gnu 7613{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 7614$as_echo_n "checking how to run the C preprocessor... " >&6; } 7615# On Suns, sometimes $CPP names a directory. 7616if test -n "$CPP" && test -d "$CPP"; then 7617 CPP= 7618fi 7619if test -z "$CPP"; then 7620 if ${ac_cv_prog_CPP+:} false; then : 7621 $as_echo_n "(cached) " >&6 7622else 7623 # Double quotes because CPP needs to be expanded 7624 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 7625 do 7626 ac_preproc_ok=false 7627for ac_c_preproc_warn_flag in '' yes 7628do 7629 # Use a header file that comes with gcc, so configuring glibc 7630 # with a fresh cross-compiler works. 7631 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7632 # <limits.h> exists even on freestanding compilers. 7633 # On the NeXT, cc -E runs the code through the compiler's parser, 7634 # not just through cpp. "Syntax error" is here to catch this case. 7635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7636/* end confdefs.h. */ 7637#ifdef __STDC__ 7638# include <limits.h> 7639#else 7640# include <assert.h> 7641#endif 7642 Syntax error 7643_ACEOF 7644if ac_fn_c_try_cpp "$LINENO"; then : 7645 7646else 7647 # Broken: fails on valid input. 7648continue 7649fi 7650rm -f conftest.err conftest.i conftest.$ac_ext 7651 7652 # OK, works on sane cases. Now check whether nonexistent headers 7653 # can be detected and how. 7654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7655/* end confdefs.h. */ 7656#include <ac_nonexistent.h> 7657_ACEOF 7658if ac_fn_c_try_cpp "$LINENO"; then : 7659 # Broken: success on invalid input. 7660continue 7661else 7662 # Passes both tests. 7663ac_preproc_ok=: 7664break 7665fi 7666rm -f conftest.err conftest.i conftest.$ac_ext 7667 7668done 7669# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 7670rm -f conftest.i conftest.err conftest.$ac_ext 7671if $ac_preproc_ok; then : 7672 break 7673fi 7674 7675 done 7676 ac_cv_prog_CPP=$CPP 7677 7678fi 7679 CPP=$ac_cv_prog_CPP 7680else 7681 ac_cv_prog_CPP=$CPP 7682fi 7683{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 7684$as_echo "$CPP" >&6; } 7685ac_preproc_ok=false 7686for ac_c_preproc_warn_flag in '' yes 7687do 7688 # Use a header file that comes with gcc, so configuring glibc 7689 # with a fresh cross-compiler works. 7690 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7691 # <limits.h> exists even on freestanding compilers. 7692 # On the NeXT, cc -E runs the code through the compiler's parser, 7693 # not just through cpp. "Syntax error" is here to catch this case. 7694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7695/* end confdefs.h. */ 7696#ifdef __STDC__ 7697# include <limits.h> 7698#else 7699# include <assert.h> 7700#endif 7701 Syntax error 7702_ACEOF 7703if ac_fn_c_try_cpp "$LINENO"; then : 7704 7705else 7706 # Broken: fails on valid input. 7707continue 7708fi 7709rm -f conftest.err conftest.i conftest.$ac_ext 7710 7711 # OK, works on sane cases. Now check whether nonexistent headers 7712 # can be detected and how. 7713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7714/* end confdefs.h. */ 7715#include <ac_nonexistent.h> 7716_ACEOF 7717if ac_fn_c_try_cpp "$LINENO"; then : 7718 # Broken: success on invalid input. 7719continue 7720else 7721 # Passes both tests. 7722ac_preproc_ok=: 7723break 7724fi 7725rm -f conftest.err conftest.i conftest.$ac_ext 7726 7727done 7728# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 7729rm -f conftest.i conftest.err conftest.$ac_ext 7730if $ac_preproc_ok; then : 7731 7732else 7733 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 7734$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 7735as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 7736See \`config.log' for more details" "$LINENO" 5; } 7737fi 7738 7739ac_ext=c 7740ac_cpp='$CPP $CPPFLAGS' 7741ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7742ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7743ac_compiler_gnu=$ac_cv_c_compiler_gnu 7744 7745 7746{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 7747$as_echo_n "checking for ANSI C header files... " >&6; } 7748if ${ac_cv_header_stdc+:} false; then : 7749 $as_echo_n "(cached) " >&6 7750else 7751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7752/* end confdefs.h. */ 7753#include <stdlib.h> 7754#include <stdarg.h> 7755#include <string.h> 7756#include <float.h> 7757 7758int 7759main () 7760{ 7761 7762 ; 7763 return 0; 7764} 7765_ACEOF 7766if ac_fn_c_try_compile "$LINENO"; then : 7767 ac_cv_header_stdc=yes 7768else 7769 ac_cv_header_stdc=no 7770fi 7771rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7772 7773if test $ac_cv_header_stdc = yes; then 7774 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 7775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7776/* end confdefs.h. */ 7777#include <string.h> 7778 7779_ACEOF 7780if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7781 $EGREP "memchr" >/dev/null 2>&1; then : 7782 7783else 7784 ac_cv_header_stdc=no 7785fi 7786rm -f conftest* 7787 7788fi 7789 7790if test $ac_cv_header_stdc = yes; then 7791 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 7792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7793/* end confdefs.h. */ 7794#include <stdlib.h> 7795 7796_ACEOF 7797if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7798 $EGREP "free" >/dev/null 2>&1; then : 7799 7800else 7801 ac_cv_header_stdc=no 7802fi 7803rm -f conftest* 7804 7805fi 7806 7807if test $ac_cv_header_stdc = yes; then 7808 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 7809 if test "$cross_compiling" = yes; then : 7810 : 7811else 7812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7813/* end confdefs.h. */ 7814#include <ctype.h> 7815#include <stdlib.h> 7816#if ((' ' & 0x0FF) == 0x020) 7817# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 7818# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 7819#else 7820# define ISLOWER(c) \ 7821 (('a' <= (c) && (c) <= 'i') \ 7822 || ('j' <= (c) && (c) <= 'r') \ 7823 || ('s' <= (c) && (c) <= 'z')) 7824# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 7825#endif 7826 7827#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 7828int 7829main () 7830{ 7831 int i; 7832 for (i = 0; i < 256; i++) 7833 if (XOR (islower (i), ISLOWER (i)) 7834 || toupper (i) != TOUPPER (i)) 7835 return 2; 7836 return 0; 7837} 7838_ACEOF 7839if ac_fn_c_try_run "$LINENO"; then : 7840 7841else 7842 ac_cv_header_stdc=no 7843fi 7844rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 7845 conftest.$ac_objext conftest.beam conftest.$ac_ext 7846fi 7847 7848fi 7849fi 7850{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 7851$as_echo "$ac_cv_header_stdc" >&6; } 7852if test $ac_cv_header_stdc = yes; then 7853 7854$as_echo "#define STDC_HEADERS 1" >>confdefs.h 7855 7856fi 7857 7858# On IRIX 5.3, sys/types and inttypes.h are conflicting. 7859for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 7860 inttypes.h stdint.h unistd.h 7861do : 7862 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 7863ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 7864" 7865if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 7866 cat >>confdefs.h <<_ACEOF 7867#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 7868_ACEOF 7869 7870fi 7871 7872done 7873 7874 7875for ac_header in dlfcn.h 7876do : 7877 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 7878" 7879if test "x$ac_cv_header_dlfcn_h" = xyes; then : 7880 cat >>confdefs.h <<_ACEOF 7881#define HAVE_DLFCN_H 1 7882_ACEOF 7883 7884fi 7885 7886done 7887 7888 7889 7890 7891 7892# Set options 7893 7894 7895 7896 enable_dlopen=no 7897 7898 7899 enable_win32_dll=no 7900 7901 7902 # Check whether --enable-shared was given. 7903if test "${enable_shared+set}" = set; then : 7904 enableval=$enable_shared; p=${PACKAGE-default} 7905 case $enableval in 7906 yes) enable_shared=yes ;; 7907 no) enable_shared=no ;; 7908 *) 7909 enable_shared=no 7910 # Look at the argument we got. We use all the common list separators. 7911 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 7912 for pkg in $enableval; do 7913 IFS=$lt_save_ifs 7914 if test "X$pkg" = "X$p"; then 7915 enable_shared=yes 7916 fi 7917 done 7918 IFS=$lt_save_ifs 7919 ;; 7920 esac 7921else 7922 enable_shared=yes 7923fi 7924 7925 7926 7927 7928 7929 7930 7931 7932 7933 # Check whether --enable-static was given. 7934if test "${enable_static+set}" = set; then : 7935 enableval=$enable_static; p=${PACKAGE-default} 7936 case $enableval in 7937 yes) enable_static=yes ;; 7938 no) enable_static=no ;; 7939 *) 7940 enable_static=no 7941 # Look at the argument we got. We use all the common list separators. 7942 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 7943 for pkg in $enableval; do 7944 IFS=$lt_save_ifs 7945 if test "X$pkg" = "X$p"; then 7946 enable_static=yes 7947 fi 7948 done 7949 IFS=$lt_save_ifs 7950 ;; 7951 esac 7952else 7953 enable_static=yes 7954fi 7955 7956 7957 7958 7959 7960 7961 7962 7963 7964 7965# Check whether --with-pic was given. 7966if test "${with_pic+set}" = set; then : 7967 withval=$with_pic; lt_p=${PACKAGE-default} 7968 case $withval in 7969 yes|no) pic_mode=$withval ;; 7970 *) 7971 pic_mode=default 7972 # Look at the argument we got. We use all the common list separators. 7973 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 7974 for lt_pkg in $withval; do 7975 IFS=$lt_save_ifs 7976 if test "X$lt_pkg" = "X$lt_p"; then 7977 pic_mode=yes 7978 fi 7979 done 7980 IFS=$lt_save_ifs 7981 ;; 7982 esac 7983else 7984 pic_mode=default 7985fi 7986 7987 7988 7989 7990 7991 7992 7993 7994 # Check whether --enable-fast-install was given. 7995if test "${enable_fast_install+set}" = set; then : 7996 enableval=$enable_fast_install; p=${PACKAGE-default} 7997 case $enableval in 7998 yes) enable_fast_install=yes ;; 7999 no) enable_fast_install=no ;; 8000 *) 8001 enable_fast_install=no 8002 # Look at the argument we got. We use all the common list separators. 8003 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8004 for pkg in $enableval; do 8005 IFS=$lt_save_ifs 8006 if test "X$pkg" = "X$p"; then 8007 enable_fast_install=yes 8008 fi 8009 done 8010 IFS=$lt_save_ifs 8011 ;; 8012 esac 8013else 8014 enable_fast_install=yes 8015fi 8016 8017 8018 8019 8020 8021 8022 8023 8024 shared_archive_member_spec= 8025case $host,$enable_shared in 8026power*-*-aix[5-9]*,yes) 8027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 8028$as_echo_n "checking which variant of shared library versioning to provide... " >&6; } 8029 8030# Check whether --with-aix-soname was given. 8031if test "${with_aix_soname+set}" = set; then : 8032 withval=$with_aix_soname; case $withval in 8033 aix|svr4|both) 8034 ;; 8035 *) 8036 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5 8037 ;; 8038 esac 8039 lt_cv_with_aix_soname=$with_aix_soname 8040else 8041 if ${lt_cv_with_aix_soname+:} false; then : 8042 $as_echo_n "(cached) " >&6 8043else 8044 lt_cv_with_aix_soname=aix 8045fi 8046 8047 with_aix_soname=$lt_cv_with_aix_soname 8048fi 8049 8050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 8051$as_echo "$with_aix_soname" >&6; } 8052 if test aix != "$with_aix_soname"; then 8053 # For the AIX way of multilib, we name the shared archive member 8054 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', 8055 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. 8056 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, 8057 # the AIX toolchain works better with OBJECT_MODE set (default 32). 8058 if test 64 = "${OBJECT_MODE-32}"; then 8059 shared_archive_member_spec=shr_64 8060 else 8061 shared_archive_member_spec=shr 8062 fi 8063 fi 8064 ;; 8065*) 8066 with_aix_soname=aix 8067 ;; 8068esac 8069 8070 8071 8072 8073 8074 8075 8076 8077 8078 8079# This can be used to rebuild libtool when needed 8080LIBTOOL_DEPS=$ltmain 8081 8082# Always use our own libtool. 8083LIBTOOL='$(SHELL) $(top_builddir)/libtool' 8084 8085 8086 8087 8088 8089 8090 8091 8092 8093 8094 8095 8096 8097 8098 8099 8100 8101 8102 8103 8104 8105 8106 8107 8108 8109 8110 8111 8112 8113 8114test -z "$LN_S" && LN_S="ln -s" 8115 8116 8117 8118 8119 8120 8121 8122 8123 8124 8125 8126 8127 8128 8129if test -n "${ZSH_VERSION+set}"; then 8130 setopt NO_GLOB_SUBST 8131fi 8132 8133{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 8134$as_echo_n "checking for objdir... " >&6; } 8135if ${lt_cv_objdir+:} false; then : 8136 $as_echo_n "(cached) " >&6 8137else 8138 rm -f .libs 2>/dev/null 8139mkdir .libs 2>/dev/null 8140if test -d .libs; then 8141 lt_cv_objdir=.libs 8142else 8143 # MS-DOS does not allow filenames that begin with a dot. 8144 lt_cv_objdir=_libs 8145fi 8146rmdir .libs 2>/dev/null 8147fi 8148{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 8149$as_echo "$lt_cv_objdir" >&6; } 8150objdir=$lt_cv_objdir 8151 8152 8153 8154 8155 8156cat >>confdefs.h <<_ACEOF 8157#define LT_OBJDIR "$lt_cv_objdir/" 8158_ACEOF 8159 8160 8161 8162 8163case $host_os in 8164aix3*) 8165 # AIX sometimes has problems with the GCC collect2 program. For some 8166 # reason, if we set the COLLECT_NAMES environment variable, the problems 8167 # vanish in a puff of smoke. 8168 if test set != "${COLLECT_NAMES+set}"; then 8169 COLLECT_NAMES= 8170 export COLLECT_NAMES 8171 fi 8172 ;; 8173esac 8174 8175# Global variables: 8176ofile=libtool 8177can_build_shared=yes 8178 8179# All known linkers require a '.a' archive for static linking (except MSVC, 8180# which needs '.lib'). 8181libext=a 8182 8183with_gnu_ld=$lt_cv_prog_gnu_ld 8184 8185old_CC=$CC 8186old_CFLAGS=$CFLAGS 8187 8188# Set sane defaults for various variables 8189test -z "$CC" && CC=cc 8190test -z "$LTCC" && LTCC=$CC 8191test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 8192test -z "$LD" && LD=ld 8193test -z "$ac_objext" && ac_objext=o 8194 8195func_cc_basename $compiler 8196cc_basename=$func_cc_basename_result 8197 8198 8199# Only perform the check for file, if the check method requires it 8200test -z "$MAGIC_CMD" && MAGIC_CMD=file 8201case $deplibs_check_method in 8202file_magic*) 8203 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 8204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 8205$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 8206if ${lt_cv_path_MAGIC_CMD+:} false; then : 8207 $as_echo_n "(cached) " >&6 8208else 8209 case $MAGIC_CMD in 8210[\\/*] | ?:[\\/]*) 8211 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 8212 ;; 8213*) 8214 lt_save_MAGIC_CMD=$MAGIC_CMD 8215 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 8216 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8217 for ac_dir in $ac_dummy; do 8218 IFS=$lt_save_ifs 8219 test -z "$ac_dir" && ac_dir=. 8220 if test -f "$ac_dir/${ac_tool_prefix}file"; then 8221 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file" 8222 if test -n "$file_magic_test_file"; then 8223 case $deplibs_check_method in 8224 "file_magic "*) 8225 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8226 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8227 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8228 $EGREP "$file_magic_regex" > /dev/null; then 8229 : 8230 else 8231 cat <<_LT_EOF 1>&2 8232 8233*** Warning: the command libtool uses to detect shared libraries, 8234*** $file_magic_cmd, produces output that libtool cannot recognize. 8235*** The result is that libtool may fail to recognize shared libraries 8236*** as such. This will affect the creation of libtool libraries that 8237*** depend on shared libraries, but programs linked with such libtool 8238*** libraries will work regardless of this problem. Nevertheless, you 8239*** may want to report the problem to your system manager and/or to 8240*** bug-libtool@gnu.org 8241 8242_LT_EOF 8243 fi ;; 8244 esac 8245 fi 8246 break 8247 fi 8248 done 8249 IFS=$lt_save_ifs 8250 MAGIC_CMD=$lt_save_MAGIC_CMD 8251 ;; 8252esac 8253fi 8254 8255MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8256if test -n "$MAGIC_CMD"; then 8257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8258$as_echo "$MAGIC_CMD" >&6; } 8259else 8260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8261$as_echo "no" >&6; } 8262fi 8263 8264 8265 8266 8267 8268if test -z "$lt_cv_path_MAGIC_CMD"; then 8269 if test -n "$ac_tool_prefix"; then 8270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 8271$as_echo_n "checking for file... " >&6; } 8272if ${lt_cv_path_MAGIC_CMD+:} false; then : 8273 $as_echo_n "(cached) " >&6 8274else 8275 case $MAGIC_CMD in 8276[\\/*] | ?:[\\/]*) 8277 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 8278 ;; 8279*) 8280 lt_save_MAGIC_CMD=$MAGIC_CMD 8281 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 8282 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8283 for ac_dir in $ac_dummy; do 8284 IFS=$lt_save_ifs 8285 test -z "$ac_dir" && ac_dir=. 8286 if test -f "$ac_dir/file"; then 8287 lt_cv_path_MAGIC_CMD=$ac_dir/"file" 8288 if test -n "$file_magic_test_file"; then 8289 case $deplibs_check_method in 8290 "file_magic "*) 8291 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8292 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8293 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8294 $EGREP "$file_magic_regex" > /dev/null; then 8295 : 8296 else 8297 cat <<_LT_EOF 1>&2 8298 8299*** Warning: the command libtool uses to detect shared libraries, 8300*** $file_magic_cmd, produces output that libtool cannot recognize. 8301*** The result is that libtool may fail to recognize shared libraries 8302*** as such. This will affect the creation of libtool libraries that 8303*** depend on shared libraries, but programs linked with such libtool 8304*** libraries will work regardless of this problem. Nevertheless, you 8305*** may want to report the problem to your system manager and/or to 8306*** bug-libtool@gnu.org 8307 8308_LT_EOF 8309 fi ;; 8310 esac 8311 fi 8312 break 8313 fi 8314 done 8315 IFS=$lt_save_ifs 8316 MAGIC_CMD=$lt_save_MAGIC_CMD 8317 ;; 8318esac 8319fi 8320 8321MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8322if test -n "$MAGIC_CMD"; then 8323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8324$as_echo "$MAGIC_CMD" >&6; } 8325else 8326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8327$as_echo "no" >&6; } 8328fi 8329 8330 8331 else 8332 MAGIC_CMD=: 8333 fi 8334fi 8335 8336 fi 8337 ;; 8338esac 8339 8340# Use C for the default configuration in the libtool script 8341 8342lt_save_CC=$CC 8343ac_ext=c 8344ac_cpp='$CPP $CPPFLAGS' 8345ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8346ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8347ac_compiler_gnu=$ac_cv_c_compiler_gnu 8348 8349 8350# Source file extension for C test sources. 8351ac_ext=c 8352 8353# Object file extension for compiled C test sources. 8354objext=o 8355objext=$objext 8356 8357# Code to be used in simple compile tests 8358lt_simple_compile_test_code="int some_variable = 0;" 8359 8360# Code to be used in simple link tests 8361lt_simple_link_test_code='int main(){return(0);}' 8362 8363 8364 8365 8366 8367 8368 8369# If no C compiler was specified, use CC. 8370LTCC=${LTCC-"$CC"} 8371 8372# If no C compiler flags were specified, use CFLAGS. 8373LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 8374 8375# Allow CC to be a program name with arguments. 8376compiler=$CC 8377 8378# Save the default compiler, since it gets overwritten when the other 8379# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 8380compiler_DEFAULT=$CC 8381 8382# save warnings/boilerplate of simple test code 8383ac_outfile=conftest.$ac_objext 8384echo "$lt_simple_compile_test_code" >conftest.$ac_ext 8385eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8386_lt_compiler_boilerplate=`cat conftest.err` 8387$RM conftest* 8388 8389ac_outfile=conftest.$ac_objext 8390echo "$lt_simple_link_test_code" >conftest.$ac_ext 8391eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8392_lt_linker_boilerplate=`cat conftest.err` 8393$RM -r conftest* 8394 8395 8396## CAVEAT EMPTOR: 8397## There is no encapsulation within the following macros, do not change 8398## the running order or otherwise move them around unless you know exactly 8399## what you are doing... 8400if test -n "$compiler"; then 8401 8402lt_prog_compiler_no_builtin_flag= 8403 8404if test yes = "$GCC"; then 8405 case $cc_basename in 8406 nvcc*) 8407 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 8408 *) 8409 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 8410 esac 8411 8412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 8413$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 8414if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 8415 $as_echo_n "(cached) " >&6 8416else 8417 lt_cv_prog_compiler_rtti_exceptions=no 8418 ac_outfile=conftest.$ac_objext 8419 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8420 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment 8421 # Insert the option either (1) after the last *FLAGS variable, or 8422 # (2) before a word containing "conftest.", or (3) at the end. 8423 # Note that $ac_compile itself does not contain backslashes and begins 8424 # with a dollar sign (not a hyphen), so the echo should work correctly. 8425 # The option is referenced via a variable to avoid confusing sed. 8426 lt_compile=`echo "$ac_compile" | $SED \ 8427 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8428 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8429 -e 's:$: $lt_compiler_flag:'` 8430 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8431 (eval "$lt_compile" 2>conftest.err) 8432 ac_status=$? 8433 cat conftest.err >&5 8434 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8435 if (exit $ac_status) && test -s "$ac_outfile"; then 8436 # The compiler can only warn and ignore the option if not recognized 8437 # So say no if there are warnings other than the usual output. 8438 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 8439 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8440 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8441 lt_cv_prog_compiler_rtti_exceptions=yes 8442 fi 8443 fi 8444 $RM conftest* 8445 8446fi 8447{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 8448$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 8449 8450if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then 8451 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 8452else 8453 : 8454fi 8455 8456fi 8457 8458 8459 8460 8461 8462 8463 lt_prog_compiler_wl= 8464lt_prog_compiler_pic= 8465lt_prog_compiler_static= 8466 8467 8468 if test yes = "$GCC"; then 8469 lt_prog_compiler_wl='-Wl,' 8470 lt_prog_compiler_static='-static' 8471 8472 case $host_os in 8473 aix*) 8474 # All AIX code is PIC. 8475 if test ia64 = "$host_cpu"; then 8476 # AIX 5 now supports IA64 processor 8477 lt_prog_compiler_static='-Bstatic' 8478 fi 8479 lt_prog_compiler_pic='-fPIC' 8480 ;; 8481 8482 amigaos*) 8483 case $host_cpu in 8484 powerpc) 8485 # see comment about AmigaOS4 .so support 8486 lt_prog_compiler_pic='-fPIC' 8487 ;; 8488 m68k) 8489 # FIXME: we need at least 68020 code to build shared libraries, but 8490 # adding the '-m68020' flag to GCC prevents building anything better, 8491 # like '-m68040'. 8492 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 8493 ;; 8494 esac 8495 ;; 8496 8497 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 8498 # PIC is the default for these OSes. 8499 ;; 8500 8501 mingw* | cygwin* | pw32* | os2* | cegcc*) 8502 # This hack is so that the source file can tell whether it is being 8503 # built for inclusion in a dll (and should export symbols for example). 8504 # Although the cygwin gcc ignores -fPIC, still need this for old-style 8505 # (--disable-auto-import) libraries 8506 lt_prog_compiler_pic='-DDLL_EXPORT' 8507 case $host_os in 8508 os2*) 8509 lt_prog_compiler_static='$wl-static' 8510 ;; 8511 esac 8512 ;; 8513 8514 darwin* | rhapsody*) 8515 # PIC is the default on this platform 8516 # Common symbols not allowed in MH_DYLIB files 8517 lt_prog_compiler_pic='-fno-common' 8518 ;; 8519 8520 haiku*) 8521 # PIC is the default for Haiku. 8522 # The "-static" flag exists, but is broken. 8523 lt_prog_compiler_static= 8524 ;; 8525 8526 hpux*) 8527 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 8528 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 8529 # sets the default TLS model and affects inlining. 8530 case $host_cpu in 8531 hppa*64*) 8532 # +Z the default 8533 ;; 8534 *) 8535 lt_prog_compiler_pic='-fPIC' 8536 ;; 8537 esac 8538 ;; 8539 8540 interix[3-9]*) 8541 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 8542 # Instead, we relocate shared libraries at runtime. 8543 ;; 8544 8545 msdosdjgpp*) 8546 # Just because we use GCC doesn't mean we suddenly get shared libraries 8547 # on systems that don't support them. 8548 lt_prog_compiler_can_build_shared=no 8549 enable_shared=no 8550 ;; 8551 8552 *nto* | *qnx*) 8553 # QNX uses GNU C++, but need to define -shared option too, otherwise 8554 # it will coredump. 8555 lt_prog_compiler_pic='-fPIC -shared' 8556 ;; 8557 8558 sysv4*MP*) 8559 if test -d /usr/nec; then 8560 lt_prog_compiler_pic=-Kconform_pic 8561 fi 8562 ;; 8563 8564 *) 8565 lt_prog_compiler_pic='-fPIC' 8566 ;; 8567 esac 8568 8569 case $cc_basename in 8570 nvcc*) # Cuda Compiler Driver 2.2 8571 lt_prog_compiler_wl='-Xlinker ' 8572 if test -n "$lt_prog_compiler_pic"; then 8573 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 8574 fi 8575 ;; 8576 esac 8577 else 8578 # PORTME Check for flag to pass linker flags through the system compiler. 8579 case $host_os in 8580 aix*) 8581 lt_prog_compiler_wl='-Wl,' 8582 if test ia64 = "$host_cpu"; then 8583 # AIX 5 now supports IA64 processor 8584 lt_prog_compiler_static='-Bstatic' 8585 else 8586 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 8587 fi 8588 ;; 8589 8590 darwin* | rhapsody*) 8591 # PIC is the default on this platform 8592 # Common symbols not allowed in MH_DYLIB files 8593 lt_prog_compiler_pic='-fno-common' 8594 case $cc_basename in 8595 nagfor*) 8596 # NAG Fortran compiler 8597 lt_prog_compiler_wl='-Wl,-Wl,,' 8598 lt_prog_compiler_pic='-PIC' 8599 lt_prog_compiler_static='-Bstatic' 8600 ;; 8601 esac 8602 ;; 8603 8604 mingw* | cygwin* | pw32* | os2* | cegcc*) 8605 # This hack is so that the source file can tell whether it is being 8606 # built for inclusion in a dll (and should export symbols for example). 8607 lt_prog_compiler_pic='-DDLL_EXPORT' 8608 case $host_os in 8609 os2*) 8610 lt_prog_compiler_static='$wl-static' 8611 ;; 8612 esac 8613 ;; 8614 8615 hpux9* | hpux10* | hpux11*) 8616 lt_prog_compiler_wl='-Wl,' 8617 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 8618 # not for PA HP-UX. 8619 case $host_cpu in 8620 hppa*64*|ia64*) 8621 # +Z the default 8622 ;; 8623 *) 8624 lt_prog_compiler_pic='+Z' 8625 ;; 8626 esac 8627 # Is there a better lt_prog_compiler_static that works with the bundled CC? 8628 lt_prog_compiler_static='$wl-a ${wl}archive' 8629 ;; 8630 8631 irix5* | irix6* | nonstopux*) 8632 lt_prog_compiler_wl='-Wl,' 8633 # PIC (with -KPIC) is the default. 8634 lt_prog_compiler_static='-non_shared' 8635 ;; 8636 8637 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 8638 case $cc_basename in 8639 # old Intel for x86_64, which still supported -KPIC. 8640 ecc*) 8641 lt_prog_compiler_wl='-Wl,' 8642 lt_prog_compiler_pic='-KPIC' 8643 lt_prog_compiler_static='-static' 8644 ;; 8645 # icc used to be incompatible with GCC. 8646 # ICC 10 doesn't accept -KPIC any more. 8647 icc* | ifort*) 8648 lt_prog_compiler_wl='-Wl,' 8649 lt_prog_compiler_pic='-fPIC' 8650 lt_prog_compiler_static='-static' 8651 ;; 8652 # Lahey Fortran 8.1. 8653 lf95*) 8654 lt_prog_compiler_wl='-Wl,' 8655 lt_prog_compiler_pic='--shared' 8656 lt_prog_compiler_static='--static' 8657 ;; 8658 nagfor*) 8659 # NAG Fortran compiler 8660 lt_prog_compiler_wl='-Wl,-Wl,,' 8661 lt_prog_compiler_pic='-PIC' 8662 lt_prog_compiler_static='-Bstatic' 8663 ;; 8664 tcc*) 8665 # Fabrice Bellard et al's Tiny C Compiler 8666 lt_prog_compiler_wl='-Wl,' 8667 lt_prog_compiler_pic='-fPIC' 8668 lt_prog_compiler_static='-static' 8669 ;; 8670 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 8671 # Portland Group compilers (*not* the Pentium gcc compiler, 8672 # which looks to be a dead project) 8673 lt_prog_compiler_wl='-Wl,' 8674 lt_prog_compiler_pic='-fpic' 8675 lt_prog_compiler_static='-Bstatic' 8676 ;; 8677 ccc*) 8678 lt_prog_compiler_wl='-Wl,' 8679 # All Alpha code is PIC. 8680 lt_prog_compiler_static='-non_shared' 8681 ;; 8682 xl* | bgxl* | bgf* | mpixl*) 8683 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 8684 lt_prog_compiler_wl='-Wl,' 8685 lt_prog_compiler_pic='-qpic' 8686 lt_prog_compiler_static='-qstaticlink' 8687 ;; 8688 *) 8689 case `$CC -V 2>&1 | sed 5q` in 8690 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 8691 # Sun Fortran 8.3 passes all unrecognized flags to the linker 8692 lt_prog_compiler_pic='-KPIC' 8693 lt_prog_compiler_static='-Bstatic' 8694 lt_prog_compiler_wl='' 8695 ;; 8696 *Sun\ F* | *Sun*Fortran*) 8697 lt_prog_compiler_pic='-KPIC' 8698 lt_prog_compiler_static='-Bstatic' 8699 lt_prog_compiler_wl='-Qoption ld ' 8700 ;; 8701 *Sun\ C*) 8702 # Sun C 5.9 8703 lt_prog_compiler_pic='-KPIC' 8704 lt_prog_compiler_static='-Bstatic' 8705 lt_prog_compiler_wl='-Wl,' 8706 ;; 8707 *Intel*\ [CF]*Compiler*) 8708 lt_prog_compiler_wl='-Wl,' 8709 lt_prog_compiler_pic='-fPIC' 8710 lt_prog_compiler_static='-static' 8711 ;; 8712 *Portland\ Group*) 8713 lt_prog_compiler_wl='-Wl,' 8714 lt_prog_compiler_pic='-fpic' 8715 lt_prog_compiler_static='-Bstatic' 8716 ;; 8717 esac 8718 ;; 8719 esac 8720 ;; 8721 8722 newsos6) 8723 lt_prog_compiler_pic='-KPIC' 8724 lt_prog_compiler_static='-Bstatic' 8725 ;; 8726 8727 *nto* | *qnx*) 8728 # QNX uses GNU C++, but need to define -shared option too, otherwise 8729 # it will coredump. 8730 lt_prog_compiler_pic='-fPIC -shared' 8731 ;; 8732 8733 osf3* | osf4* | osf5*) 8734 lt_prog_compiler_wl='-Wl,' 8735 # All OSF/1 code is PIC. 8736 lt_prog_compiler_static='-non_shared' 8737 ;; 8738 8739 rdos*) 8740 lt_prog_compiler_static='-non_shared' 8741 ;; 8742 8743 solaris*) 8744 lt_prog_compiler_pic='-KPIC' 8745 lt_prog_compiler_static='-Bstatic' 8746 case $cc_basename in 8747 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 8748 lt_prog_compiler_wl='-Qoption ld ';; 8749 *) 8750 lt_prog_compiler_wl='-Wl,';; 8751 esac 8752 ;; 8753 8754 sunos4*) 8755 lt_prog_compiler_wl='-Qoption ld ' 8756 lt_prog_compiler_pic='-PIC' 8757 lt_prog_compiler_static='-Bstatic' 8758 ;; 8759 8760 sysv4 | sysv4.2uw2* | sysv4.3*) 8761 lt_prog_compiler_wl='-Wl,' 8762 lt_prog_compiler_pic='-KPIC' 8763 lt_prog_compiler_static='-Bstatic' 8764 ;; 8765 8766 sysv4*MP*) 8767 if test -d /usr/nec; then 8768 lt_prog_compiler_pic='-Kconform_pic' 8769 lt_prog_compiler_static='-Bstatic' 8770 fi 8771 ;; 8772 8773 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 8774 lt_prog_compiler_wl='-Wl,' 8775 lt_prog_compiler_pic='-KPIC' 8776 lt_prog_compiler_static='-Bstatic' 8777 ;; 8778 8779 unicos*) 8780 lt_prog_compiler_wl='-Wl,' 8781 lt_prog_compiler_can_build_shared=no 8782 ;; 8783 8784 uts4*) 8785 lt_prog_compiler_pic='-pic' 8786 lt_prog_compiler_static='-Bstatic' 8787 ;; 8788 8789 *) 8790 lt_prog_compiler_can_build_shared=no 8791 ;; 8792 esac 8793 fi 8794 8795case $host_os in 8796 # For platforms that do not support PIC, -DPIC is meaningless: 8797 *djgpp*) 8798 lt_prog_compiler_pic= 8799 ;; 8800 *) 8801 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 8802 ;; 8803esac 8804 8805{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 8806$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 8807if ${lt_cv_prog_compiler_pic+:} false; then : 8808 $as_echo_n "(cached) " >&6 8809else 8810 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 8811fi 8812{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 8813$as_echo "$lt_cv_prog_compiler_pic" >&6; } 8814lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 8815 8816# 8817# Check to make sure the PIC flag actually works. 8818# 8819if test -n "$lt_prog_compiler_pic"; then 8820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 8821$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 8822if ${lt_cv_prog_compiler_pic_works+:} false; then : 8823 $as_echo_n "(cached) " >&6 8824else 8825 lt_cv_prog_compiler_pic_works=no 8826 ac_outfile=conftest.$ac_objext 8827 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8828 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment 8829 # Insert the option either (1) after the last *FLAGS variable, or 8830 # (2) before a word containing "conftest.", or (3) at the end. 8831 # Note that $ac_compile itself does not contain backslashes and begins 8832 # with a dollar sign (not a hyphen), so the echo should work correctly. 8833 # The option is referenced via a variable to avoid confusing sed. 8834 lt_compile=`echo "$ac_compile" | $SED \ 8835 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8836 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8837 -e 's:$: $lt_compiler_flag:'` 8838 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8839 (eval "$lt_compile" 2>conftest.err) 8840 ac_status=$? 8841 cat conftest.err >&5 8842 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8843 if (exit $ac_status) && test -s "$ac_outfile"; then 8844 # The compiler can only warn and ignore the option if not recognized 8845 # So say no if there are warnings other than the usual output. 8846 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 8847 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8848 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8849 lt_cv_prog_compiler_pic_works=yes 8850 fi 8851 fi 8852 $RM conftest* 8853 8854fi 8855{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 8856$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 8857 8858if test yes = "$lt_cv_prog_compiler_pic_works"; then 8859 case $lt_prog_compiler_pic in 8860 "" | " "*) ;; 8861 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 8862 esac 8863else 8864 lt_prog_compiler_pic= 8865 lt_prog_compiler_can_build_shared=no 8866fi 8867 8868fi 8869 8870 8871 8872 8873 8874 8875 8876 8877 8878 8879 8880# 8881# Check to make sure the static flag actually works. 8882# 8883wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 8884{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 8885$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 8886if ${lt_cv_prog_compiler_static_works+:} false; then : 8887 $as_echo_n "(cached) " >&6 8888else 8889 lt_cv_prog_compiler_static_works=no 8890 save_LDFLAGS=$LDFLAGS 8891 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 8892 echo "$lt_simple_link_test_code" > conftest.$ac_ext 8893 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 8894 # The linker can only warn and ignore the option if not recognized 8895 # So say no if there are warnings 8896 if test -s conftest.err; then 8897 # Append any errors to the config.log. 8898 cat conftest.err 1>&5 8899 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 8900 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8901 if diff conftest.exp conftest.er2 >/dev/null; then 8902 lt_cv_prog_compiler_static_works=yes 8903 fi 8904 else 8905 lt_cv_prog_compiler_static_works=yes 8906 fi 8907 fi 8908 $RM -r conftest* 8909 LDFLAGS=$save_LDFLAGS 8910 8911fi 8912{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 8913$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 8914 8915if test yes = "$lt_cv_prog_compiler_static_works"; then 8916 : 8917else 8918 lt_prog_compiler_static= 8919fi 8920 8921 8922 8923 8924 8925 8926 8927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 8928$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 8929if ${lt_cv_prog_compiler_c_o+:} false; then : 8930 $as_echo_n "(cached) " >&6 8931else 8932 lt_cv_prog_compiler_c_o=no 8933 $RM -r conftest 2>/dev/null 8934 mkdir conftest 8935 cd conftest 8936 mkdir out 8937 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8938 8939 lt_compiler_flag="-o out/conftest2.$ac_objext" 8940 # Insert the option either (1) after the last *FLAGS variable, or 8941 # (2) before a word containing "conftest.", or (3) at the end. 8942 # Note that $ac_compile itself does not contain backslashes and begins 8943 # with a dollar sign (not a hyphen), so the echo should work correctly. 8944 lt_compile=`echo "$ac_compile" | $SED \ 8945 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8946 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8947 -e 's:$: $lt_compiler_flag:'` 8948 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8949 (eval "$lt_compile" 2>out/conftest.err) 8950 ac_status=$? 8951 cat out/conftest.err >&5 8952 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8953 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8954 then 8955 # The compiler can only warn and ignore the option if not recognized 8956 # So say no if there are warnings 8957 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 8958 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8959 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8960 lt_cv_prog_compiler_c_o=yes 8961 fi 8962 fi 8963 chmod u+w . 2>&5 8964 $RM conftest* 8965 # SGI C++ compiler will create directory out/ii_files/ for 8966 # template instantiation 8967 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 8968 $RM out/* && rmdir out 8969 cd .. 8970 $RM -r conftest 8971 $RM conftest* 8972 8973fi 8974{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 8975$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 8976 8977 8978 8979 8980 8981 8982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 8983$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 8984if ${lt_cv_prog_compiler_c_o+:} false; then : 8985 $as_echo_n "(cached) " >&6 8986else 8987 lt_cv_prog_compiler_c_o=no 8988 $RM -r conftest 2>/dev/null 8989 mkdir conftest 8990 cd conftest 8991 mkdir out 8992 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8993 8994 lt_compiler_flag="-o out/conftest2.$ac_objext" 8995 # Insert the option either (1) after the last *FLAGS variable, or 8996 # (2) before a word containing "conftest.", or (3) at the end. 8997 # Note that $ac_compile itself does not contain backslashes and begins 8998 # with a dollar sign (not a hyphen), so the echo should work correctly. 8999 lt_compile=`echo "$ac_compile" | $SED \ 9000 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9001 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9002 -e 's:$: $lt_compiler_flag:'` 9003 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9004 (eval "$lt_compile" 2>out/conftest.err) 9005 ac_status=$? 9006 cat out/conftest.err >&5 9007 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9008 if (exit $ac_status) && test -s out/conftest2.$ac_objext 9009 then 9010 # The compiler can only warn and ignore the option if not recognized 9011 # So say no if there are warnings 9012 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 9013 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 9014 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 9015 lt_cv_prog_compiler_c_o=yes 9016 fi 9017 fi 9018 chmod u+w . 2>&5 9019 $RM conftest* 9020 # SGI C++ compiler will create directory out/ii_files/ for 9021 # template instantiation 9022 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 9023 $RM out/* && rmdir out 9024 cd .. 9025 $RM -r conftest 9026 $RM conftest* 9027 9028fi 9029{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 9030$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 9031 9032 9033 9034 9035hard_links=nottested 9036if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then 9037 # do not overwrite the value of need_locks provided by the user 9038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 9039$as_echo_n "checking if we can lock with hard links... " >&6; } 9040 hard_links=yes 9041 $RM conftest* 9042 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9043 touch conftest.a 9044 ln conftest.a conftest.b 2>&5 || hard_links=no 9045 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 9047$as_echo "$hard_links" >&6; } 9048 if test no = "$hard_links"; then 9049 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 9050$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 9051 need_locks=warn 9052 fi 9053else 9054 need_locks=no 9055fi 9056 9057 9058 9059 9060 9061 9062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 9063$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 9064 9065 runpath_var= 9066 allow_undefined_flag= 9067 always_export_symbols=no 9068 archive_cmds= 9069 archive_expsym_cmds= 9070 compiler_needs_object=no 9071 enable_shared_with_static_runtimes=no 9072 export_dynamic_flag_spec= 9073 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 9074 hardcode_automatic=no 9075 hardcode_direct=no 9076 hardcode_direct_absolute=no 9077 hardcode_libdir_flag_spec= 9078 hardcode_libdir_separator= 9079 hardcode_minus_L=no 9080 hardcode_shlibpath_var=unsupported 9081 inherit_rpath=no 9082 link_all_deplibs=unknown 9083 module_cmds= 9084 module_expsym_cmds= 9085 old_archive_from_new_cmds= 9086 old_archive_from_expsyms_cmds= 9087 thread_safe_flag_spec= 9088 whole_archive_flag_spec= 9089 # include_expsyms should be a list of space-separated symbols to be *always* 9090 # included in the symbol list 9091 include_expsyms= 9092 # exclude_expsyms can be an extended regexp of symbols to exclude 9093 # it will be wrapped by ' (' and ')$', so one must not match beginning or 9094 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', 9095 # as well as any symbol that contains 'd'. 9096 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 9097 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 9098 # platforms (ab)use it in PIC code, but their linkers get confused if 9099 # the symbol is explicitly referenced. Since portable code cannot 9100 # rely on this symbol name, it's probably fine to never include it in 9101 # preloaded symbol tables. 9102 # Exclude shared library initialization/finalization symbols. 9103 extract_expsyms_cmds= 9104 9105 case $host_os in 9106 cygwin* | mingw* | pw32* | cegcc*) 9107 # FIXME: the MSVC++ port hasn't been tested in a loooong time 9108 # When not using gcc, we currently assume that we are using 9109 # Microsoft Visual C++. 9110 if test yes != "$GCC"; then 9111 with_gnu_ld=no 9112 fi 9113 ;; 9114 interix*) 9115 # we just hope/assume this is gcc and not c89 (= MSVC++) 9116 with_gnu_ld=yes 9117 ;; 9118 openbsd* | bitrig*) 9119 with_gnu_ld=no 9120 ;; 9121 linux* | k*bsd*-gnu | gnu*) 9122 link_all_deplibs=no 9123 ;; 9124 esac 9125 9126 ld_shlibs=yes 9127 9128 # On some targets, GNU ld is compatible enough with the native linker 9129 # that we're better off using the native interface for both. 9130 lt_use_gnu_ld_interface=no 9131 if test yes = "$with_gnu_ld"; then 9132 case $host_os in 9133 aix*) 9134 # The AIX port of GNU ld has always aspired to compatibility 9135 # with the native linker. However, as the warning in the GNU ld 9136 # block says, versions before 2.19.5* couldn't really create working 9137 # shared libraries, regardless of the interface used. 9138 case `$LD -v 2>&1` in 9139 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 9140 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 9141 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 9142 *) 9143 lt_use_gnu_ld_interface=yes 9144 ;; 9145 esac 9146 ;; 9147 *) 9148 lt_use_gnu_ld_interface=yes 9149 ;; 9150 esac 9151 fi 9152 9153 if test yes = "$lt_use_gnu_ld_interface"; then 9154 # If archive_cmds runs LD, not CC, wlarc should be empty 9155 wlarc='$wl' 9156 9157 # Set some defaults for GNU ld with shared library support. These 9158 # are reset later if shared libraries are not supported. Putting them 9159 # here allows them to be overridden if necessary. 9160 runpath_var=LD_RUN_PATH 9161 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9162 export_dynamic_flag_spec='$wl--export-dynamic' 9163 # ancient GNU ld didn't support --whole-archive et. al. 9164 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 9165 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 9166 else 9167 whole_archive_flag_spec= 9168 fi 9169 supports_anon_versioning=no 9170 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in 9171 *GNU\ gold*) supports_anon_versioning=yes ;; 9172 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 9173 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 9174 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 9175 *\ 2.11.*) ;; # other 2.11 versions 9176 *) supports_anon_versioning=yes ;; 9177 esac 9178 9179 # See if GNU ld supports shared libraries. 9180 case $host_os in 9181 aix[3-9]*) 9182 # On AIX/PPC, the GNU linker is very broken 9183 if test ia64 != "$host_cpu"; then 9184 ld_shlibs=no 9185 cat <<_LT_EOF 1>&2 9186 9187*** Warning: the GNU linker, at least up to release 2.19, is reported 9188*** to be unable to reliably create shared libraries on AIX. 9189*** Therefore, libtool is disabling shared libraries support. If you 9190*** really care for shared libraries, you may want to install binutils 9191*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 9192*** You will then need to restart the configuration process. 9193 9194_LT_EOF 9195 fi 9196 ;; 9197 9198 amigaos*) 9199 case $host_cpu in 9200 powerpc) 9201 # see comment about AmigaOS4 .so support 9202 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9203 archive_expsym_cmds='' 9204 ;; 9205 m68k) 9206 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)' 9207 hardcode_libdir_flag_spec='-L$libdir' 9208 hardcode_minus_L=yes 9209 ;; 9210 esac 9211 ;; 9212 9213 beos*) 9214 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9215 allow_undefined_flag=unsupported 9216 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 9217 # support --undefined. This deserves some investigation. FIXME 9218 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9219 else 9220 ld_shlibs=no 9221 fi 9222 ;; 9223 9224 cygwin* | mingw* | pw32* | cegcc*) 9225 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 9226 # as there is no search path for DLLs. 9227 hardcode_libdir_flag_spec='-L$libdir' 9228 export_dynamic_flag_spec='$wl--export-all-symbols' 9229 allow_undefined_flag=unsupported 9230 always_export_symbols=no 9231 enable_shared_with_static_runtimes=yes 9232 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' 9233 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 9234 9235 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 9236 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9237 # If the export-symbols file already is a .def file, use it as 9238 # is; otherwise, prepend EXPORTS... 9239 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 9240 cp $export_symbols $output_objdir/$soname.def; 9241 else 9242 echo EXPORTS > $output_objdir/$soname.def; 9243 cat $export_symbols >> $output_objdir/$soname.def; 9244 fi~ 9245 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9246 else 9247 ld_shlibs=no 9248 fi 9249 ;; 9250 9251 haiku*) 9252 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9253 link_all_deplibs=yes 9254 ;; 9255 9256 os2*) 9257 hardcode_libdir_flag_spec='-L$libdir' 9258 hardcode_minus_L=yes 9259 allow_undefined_flag=unsupported 9260 shrext_cmds=.dll 9261 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 9262 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 9263 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 9264 $ECHO EXPORTS >> $output_objdir/$libname.def~ 9265 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 9266 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 9267 emximp -o $lib $output_objdir/$libname.def' 9268 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 9269 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 9270 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 9271 $ECHO EXPORTS >> $output_objdir/$libname.def~ 9272 prefix_cmds="$SED"~ 9273 if test EXPORTS = "`$SED 1q $export_symbols`"; then 9274 prefix_cmds="$prefix_cmds -e 1d"; 9275 fi~ 9276 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 9277 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 9278 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 9279 emximp -o $lib $output_objdir/$libname.def' 9280 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 9281 enable_shared_with_static_runtimes=yes 9282 ;; 9283 9284 interix[3-9]*) 9285 hardcode_direct=no 9286 hardcode_shlibpath_var=no 9287 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 9288 export_dynamic_flag_spec='$wl-E' 9289 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 9290 # Instead, shared libraries are loaded at an image base (0x10000000 by 9291 # default) and relocated if they conflict, which is a slow very memory 9292 # consuming and fragmenting process. To avoid this, we pick a random, 9293 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 9294 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 9295 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 9296 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' 9297 ;; 9298 9299 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 9300 tmp_diet=no 9301 if test linux-dietlibc = "$host_os"; then 9302 case $cc_basename in 9303 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 9304 esac 9305 fi 9306 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 9307 && test no = "$tmp_diet" 9308 then 9309 tmp_addflag=' $pic_flag' 9310 tmp_sharedflag='-shared' 9311 case $cc_basename,$host_cpu in 9312 pgcc*) # Portland Group C compiler 9313 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' 9314 tmp_addflag=' $pic_flag' 9315 ;; 9316 pgf77* | pgf90* | pgf95* | pgfortran*) 9317 # Portland Group f77 and f90 compilers 9318 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' 9319 tmp_addflag=' $pic_flag -Mnomain' ;; 9320 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 9321 tmp_addflag=' -i_dynamic' ;; 9322 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 9323 tmp_addflag=' -i_dynamic -nofor_main' ;; 9324 ifc* | ifort*) # Intel Fortran compiler 9325 tmp_addflag=' -nofor_main' ;; 9326 lf95*) # Lahey Fortran 8.1 9327 whole_archive_flag_spec= 9328 tmp_sharedflag='--shared' ;; 9329 nagfor*) # NAGFOR 5.3 9330 tmp_sharedflag='-Wl,-shared' ;; 9331 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 9332 tmp_sharedflag='-qmkshrobj' 9333 tmp_addflag= ;; 9334 nvcc*) # Cuda Compiler Driver 2.2 9335 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' 9336 compiler_needs_object=yes 9337 ;; 9338 esac 9339 case `$CC -V 2>&1 | sed 5q` in 9340 *Sun\ C*) # Sun C 5.9 9341 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' 9342 compiler_needs_object=yes 9343 tmp_sharedflag='-G' ;; 9344 *Sun\ F*) # Sun Fortran 8.3 9345 tmp_sharedflag='-G' ;; 9346 esac 9347 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9348 9349 if test yes = "$supports_anon_versioning"; then 9350 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9351 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9352 echo "local: *; };" >> $output_objdir/$libname.ver~ 9353 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 9354 fi 9355 9356 case $cc_basename in 9357 tcc*) 9358 export_dynamic_flag_spec='-rdynamic' 9359 ;; 9360 xlf* | bgf* | bgxlf* | mpixlf*) 9361 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 9362 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 9363 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9364 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 9365 if test yes = "$supports_anon_versioning"; then 9366 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9367 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9368 echo "local: *; };" >> $output_objdir/$libname.ver~ 9369 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 9370 fi 9371 ;; 9372 esac 9373 else 9374 ld_shlibs=no 9375 fi 9376 ;; 9377 9378 netbsd* | netbsdelf*-gnu) 9379 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9380 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 9381 wlarc= 9382 else 9383 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9384 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9385 fi 9386 ;; 9387 9388 solaris*) 9389 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 9390 ld_shlibs=no 9391 cat <<_LT_EOF 1>&2 9392 9393*** Warning: The releases 2.8.* of the GNU linker cannot reliably 9394*** create shared libraries on Solaris systems. Therefore, libtool 9395*** is disabling shared libraries support. We urge you to upgrade GNU 9396*** binutils to release 2.9.1 or newer. Another option is to modify 9397*** your PATH or compiler configuration so that the native linker is 9398*** used, and then restart. 9399 9400_LT_EOF 9401 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9402 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9403 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9404 else 9405 ld_shlibs=no 9406 fi 9407 ;; 9408 9409 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 9410 case `$LD -v 2>&1` in 9411 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 9412 ld_shlibs=no 9413 cat <<_LT_EOF 1>&2 9414 9415*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot 9416*** reliably create shared libraries on SCO systems. Therefore, libtool 9417*** is disabling shared libraries support. We urge you to upgrade GNU 9418*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 9419*** your PATH or compiler configuration so that the native linker is 9420*** used, and then restart. 9421 9422_LT_EOF 9423 ;; 9424 *) 9425 # For security reasons, it is highly recommended that you always 9426 # use absolute paths for naming shared libraries, and exclude the 9427 # DT_RUNPATH tag from executables and libraries. But doing so 9428 # requires that you compile everything twice, which is a pain. 9429 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9430 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9431 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9432 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9433 else 9434 ld_shlibs=no 9435 fi 9436 ;; 9437 esac 9438 ;; 9439 9440 sunos4*) 9441 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9442 wlarc= 9443 hardcode_direct=yes 9444 hardcode_shlibpath_var=no 9445 ;; 9446 9447 *) 9448 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9449 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9450 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9451 else 9452 ld_shlibs=no 9453 fi 9454 ;; 9455 esac 9456 9457 if test no = "$ld_shlibs"; then 9458 runpath_var= 9459 hardcode_libdir_flag_spec= 9460 export_dynamic_flag_spec= 9461 whole_archive_flag_spec= 9462 fi 9463 else 9464 # PORTME fill in a description of your system's linker (not GNU ld) 9465 case $host_os in 9466 aix3*) 9467 allow_undefined_flag=unsupported 9468 always_export_symbols=yes 9469 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' 9470 # Note: this linker hardcodes the directories in LIBPATH if there 9471 # are no directories specified by -L. 9472 hardcode_minus_L=yes 9473 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then 9474 # Neither direct hardcoding nor static linking is supported with a 9475 # broken collect2. 9476 hardcode_direct=unsupported 9477 fi 9478 ;; 9479 9480 aix[4-9]*) 9481 if test ia64 = "$host_cpu"; then 9482 # On IA64, the linker does run time linking by default, so we don't 9483 # have to do anything special. 9484 aix_use_runtimelinking=no 9485 exp_sym_flag='-Bexport' 9486 no_entry_flag= 9487 else 9488 # If we're using GNU nm, then we don't want the "-C" option. 9489 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 9490 # Without the "-l" option, or with the "-B" option, AIX nm treats 9491 # weak defined symbols like other global defined symbols, whereas 9492 # GNU nm marks them as "W". 9493 # While the 'weak' keyword is ignored in the Export File, we need 9494 # it in the Import File for the 'aix-soname' feature, so we have 9495 # to replace the "-B" option with "-P" for AIX nm. 9496 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 9497 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' 9498 else 9499 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' 9500 fi 9501 aix_use_runtimelinking=no 9502 9503 # Test if we are trying to use run time linking or normal 9504 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 9505 # have runtime linking enabled, and use it for executables. 9506 # For shared libraries, we enable/disable runtime linking 9507 # depending on the kind of the shared library created - 9508 # when "with_aix_soname,aix_use_runtimelinking" is: 9509 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 9510 # "aix,yes" lib.so shared, rtl:yes, for executables 9511 # lib.a static archive 9512 # "both,no" lib.so.V(shr.o) shared, rtl:yes 9513 # lib.a(lib.so.V) shared, rtl:no, for executables 9514 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 9515 # lib.a(lib.so.V) shared, rtl:no 9516 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 9517 # lib.a static archive 9518 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 9519 for ld_flag in $LDFLAGS; do 9520 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then 9521 aix_use_runtimelinking=yes 9522 break 9523 fi 9524 done 9525 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 9526 # With aix-soname=svr4, we create the lib.so.V shared archives only, 9527 # so we don't have lib.a shared libs to link our executables. 9528 # We have to force runtime linking in this case. 9529 aix_use_runtimelinking=yes 9530 LDFLAGS="$LDFLAGS -Wl,-brtl" 9531 fi 9532 ;; 9533 esac 9534 9535 exp_sym_flag='-bexport' 9536 no_entry_flag='-bnoentry' 9537 fi 9538 9539 # When large executables or shared objects are built, AIX ld can 9540 # have problems creating the table of contents. If linking a library 9541 # or program results in "error TOC overflow" add -mminimal-toc to 9542 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 9543 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 9544 9545 archive_cmds='' 9546 hardcode_direct=yes 9547 hardcode_direct_absolute=yes 9548 hardcode_libdir_separator=':' 9549 link_all_deplibs=yes 9550 file_list_spec='$wl-f,' 9551 case $with_aix_soname,$aix_use_runtimelinking in 9552 aix,*) ;; # traditional, no import file 9553 svr4,* | *,yes) # use import file 9554 # The Import File defines what to hardcode. 9555 hardcode_direct=no 9556 hardcode_direct_absolute=no 9557 ;; 9558 esac 9559 9560 if test yes = "$GCC"; then 9561 case $host_os in aix4.[012]|aix4.[012].*) 9562 # We only want to do this on AIX 4.2 and lower, the check 9563 # below for broken collect2 doesn't work under 4.3+ 9564 collect2name=`$CC -print-prog-name=collect2` 9565 if test -f "$collect2name" && 9566 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 9567 then 9568 # We have reworked collect2 9569 : 9570 else 9571 # We have old collect2 9572 hardcode_direct=unsupported 9573 # It fails to find uninstalled libraries when the uninstalled 9574 # path is not listed in the libpath. Setting hardcode_minus_L 9575 # to unsupported forces relinking 9576 hardcode_minus_L=yes 9577 hardcode_libdir_flag_spec='-L$libdir' 9578 hardcode_libdir_separator= 9579 fi 9580 ;; 9581 esac 9582 shared_flag='-shared' 9583 if test yes = "$aix_use_runtimelinking"; then 9584 shared_flag="$shared_flag "'$wl-G' 9585 fi 9586 # Need to ensure runtime linking is disabled for the traditional 9587 # shared library, or the linker may eventually find shared libraries 9588 # /with/ Import File - we do not want to mix them. 9589 shared_flag_aix='-shared' 9590 shared_flag_svr4='-shared $wl-G' 9591 else 9592 # not using gcc 9593 if test ia64 = "$host_cpu"; then 9594 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 9595 # chokes on -Wl,-G. The following line is correct: 9596 shared_flag='-G' 9597 else 9598 if test yes = "$aix_use_runtimelinking"; then 9599 shared_flag='$wl-G' 9600 else 9601 shared_flag='$wl-bM:SRE' 9602 fi 9603 shared_flag_aix='$wl-bM:SRE' 9604 shared_flag_svr4='$wl-G' 9605 fi 9606 fi 9607 9608 export_dynamic_flag_spec='$wl-bexpall' 9609 # It seems that -bexpall does not export symbols beginning with 9610 # underscore (_), so it is better to generate a list of symbols to export. 9611 always_export_symbols=yes 9612 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 9613 # Warning - without using the other runtime loading flags (-brtl), 9614 # -berok will link without error, but may produce a broken library. 9615 allow_undefined_flag='-berok' 9616 # Determine the default libpath from the value encoded in an 9617 # empty executable. 9618 if test set = "${lt_cv_aix_libpath+set}"; then 9619 aix_libpath=$lt_cv_aix_libpath 9620else 9621 if ${lt_cv_aix_libpath_+:} false; then : 9622 $as_echo_n "(cached) " >&6 9623else 9624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9625/* end confdefs.h. */ 9626 9627int 9628main () 9629{ 9630 9631 ; 9632 return 0; 9633} 9634_ACEOF 9635if ac_fn_c_try_link "$LINENO"; then : 9636 9637 lt_aix_libpath_sed=' 9638 /Import File Strings/,/^$/ { 9639 /^0/ { 9640 s/^0 *\([^ ]*\) *$/\1/ 9641 p 9642 } 9643 }' 9644 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9645 # Check for a 64-bit object if we didn't find anything. 9646 if test -z "$lt_cv_aix_libpath_"; then 9647 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9648 fi 9649fi 9650rm -f core conftest.err conftest.$ac_objext \ 9651 conftest$ac_exeext conftest.$ac_ext 9652 if test -z "$lt_cv_aix_libpath_"; then 9653 lt_cv_aix_libpath_=/usr/lib:/lib 9654 fi 9655 9656fi 9657 9658 aix_libpath=$lt_cv_aix_libpath_ 9659fi 9660 9661 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 9662 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 9663 else 9664 if test ia64 = "$host_cpu"; then 9665 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib' 9666 allow_undefined_flag="-z nodefs" 9667 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" 9668 else 9669 # Determine the default libpath from the value encoded in an 9670 # empty executable. 9671 if test set = "${lt_cv_aix_libpath+set}"; then 9672 aix_libpath=$lt_cv_aix_libpath 9673else 9674 if ${lt_cv_aix_libpath_+:} false; then : 9675 $as_echo_n "(cached) " >&6 9676else 9677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9678/* end confdefs.h. */ 9679 9680int 9681main () 9682{ 9683 9684 ; 9685 return 0; 9686} 9687_ACEOF 9688if ac_fn_c_try_link "$LINENO"; then : 9689 9690 lt_aix_libpath_sed=' 9691 /Import File Strings/,/^$/ { 9692 /^0/ { 9693 s/^0 *\([^ ]*\) *$/\1/ 9694 p 9695 } 9696 }' 9697 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9698 # Check for a 64-bit object if we didn't find anything. 9699 if test -z "$lt_cv_aix_libpath_"; then 9700 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9701 fi 9702fi 9703rm -f core conftest.err conftest.$ac_objext \ 9704 conftest$ac_exeext conftest.$ac_ext 9705 if test -z "$lt_cv_aix_libpath_"; then 9706 lt_cv_aix_libpath_=/usr/lib:/lib 9707 fi 9708 9709fi 9710 9711 aix_libpath=$lt_cv_aix_libpath_ 9712fi 9713 9714 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 9715 # Warning - without using the other run time loading flags, 9716 # -berok will link without error, but may produce a broken library. 9717 no_undefined_flag=' $wl-bernotok' 9718 allow_undefined_flag=' $wl-berok' 9719 if test yes = "$with_gnu_ld"; then 9720 # We only use this code for GNU lds that support --whole-archive. 9721 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive' 9722 else 9723 # Exported symbols can be pulled into shared objects from archives 9724 whole_archive_flag_spec='$convenience' 9725 fi 9726 archive_cmds_need_lc=yes 9727 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 9728 # -brtl affects multiple linker settings, -berok does not and is overridden later 9729 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 9730 if test svr4 != "$with_aix_soname"; then 9731 # This is similar to how AIX traditionally builds its shared libraries. 9732 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' 9733 fi 9734 if test aix != "$with_aix_soname"; then 9735 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' 9736 else 9737 # used by -dlpreopen to get the symbols 9738 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 9739 fi 9740 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d' 9741 fi 9742 fi 9743 ;; 9744 9745 amigaos*) 9746 case $host_cpu in 9747 powerpc) 9748 # see comment about AmigaOS4 .so support 9749 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9750 archive_expsym_cmds='' 9751 ;; 9752 m68k) 9753 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)' 9754 hardcode_libdir_flag_spec='-L$libdir' 9755 hardcode_minus_L=yes 9756 ;; 9757 esac 9758 ;; 9759 9760 bsdi[45]*) 9761 export_dynamic_flag_spec=-rdynamic 9762 ;; 9763 9764 cygwin* | mingw* | pw32* | cegcc*) 9765 # When not using gcc, we currently assume that we are using 9766 # Microsoft Visual C++. 9767 # hardcode_libdir_flag_spec is actually meaningless, as there is 9768 # no search path for DLLs. 9769 case $cc_basename in 9770 cl*) 9771 # Native MSVC 9772 hardcode_libdir_flag_spec=' ' 9773 allow_undefined_flag=unsupported 9774 always_export_symbols=yes 9775 file_list_spec='@' 9776 # Tell ltmain to make .lib files, not .a files. 9777 libext=lib 9778 # Tell ltmain to make .dll files, not .so files. 9779 shrext_cmds=.dll 9780 # FIXME: Setting linknames here is a bad hack. 9781 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 9782 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 9783 cp "$export_symbols" "$output_objdir/$soname.def"; 9784 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 9785 else 9786 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 9787 fi~ 9788 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 9789 linknames=' 9790 # The linker will not automatically build a static lib if we build a DLL. 9791 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 9792 enable_shared_with_static_runtimes=yes 9793 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 9794 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 9795 # Don't use ranlib 9796 old_postinstall_cmds='chmod 644 $oldlib' 9797 postlink_cmds='lt_outputfile="@OUTPUT@"~ 9798 lt_tool_outputfile="@TOOL_OUTPUT@"~ 9799 case $lt_outputfile in 9800 *.exe|*.EXE) ;; 9801 *) 9802 lt_outputfile=$lt_outputfile.exe 9803 lt_tool_outputfile=$lt_tool_outputfile.exe 9804 ;; 9805 esac~ 9806 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 9807 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 9808 $RM "$lt_outputfile.manifest"; 9809 fi' 9810 ;; 9811 *) 9812 # Assume MSVC wrapper 9813 hardcode_libdir_flag_spec=' ' 9814 allow_undefined_flag=unsupported 9815 # Tell ltmain to make .lib files, not .a files. 9816 libext=lib 9817 # Tell ltmain to make .dll files, not .so files. 9818 shrext_cmds=.dll 9819 # FIXME: Setting linknames here is a bad hack. 9820 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 9821 # The linker will automatically build a .lib file if we build a DLL. 9822 old_archive_from_new_cmds='true' 9823 # FIXME: Should let the user specify the lib program. 9824 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 9825 enable_shared_with_static_runtimes=yes 9826 ;; 9827 esac 9828 ;; 9829 9830 darwin* | rhapsody*) 9831 9832 9833 archive_cmds_need_lc=no 9834 hardcode_direct=no 9835 hardcode_automatic=yes 9836 hardcode_shlibpath_var=unsupported 9837 if test yes = "$lt_cv_ld_force_load"; then 9838 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\"`' 9839 9840 else 9841 whole_archive_flag_spec='' 9842 fi 9843 link_all_deplibs=yes 9844 allow_undefined_flag=$_lt_dar_allow_undefined 9845 case $cc_basename in 9846 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 9847 *) _lt_dar_can_shared=$GCC ;; 9848 esac 9849 if test yes = "$_lt_dar_can_shared"; then 9850 output_verbose_link_cmd=func_echo_all 9851 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" 9852 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 9853 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" 9854 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" 9855 9856 else 9857 ld_shlibs=no 9858 fi 9859 9860 ;; 9861 9862 dgux*) 9863 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9864 hardcode_libdir_flag_spec='-L$libdir' 9865 hardcode_shlibpath_var=no 9866 ;; 9867 9868 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 9869 # support. Future versions do this automatically, but an explicit c++rt0.o 9870 # does not break anything, and helps significantly (at the cost of a little 9871 # extra space). 9872 freebsd2.2*) 9873 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 9874 hardcode_libdir_flag_spec='-R$libdir' 9875 hardcode_direct=yes 9876 hardcode_shlibpath_var=no 9877 ;; 9878 9879 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 9880 freebsd2.*) 9881 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9882 hardcode_direct=yes 9883 hardcode_minus_L=yes 9884 hardcode_shlibpath_var=no 9885 ;; 9886 9887 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 9888 freebsd* | dragonfly*) 9889 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9890 hardcode_libdir_flag_spec='-R$libdir' 9891 hardcode_direct=yes 9892 hardcode_shlibpath_var=no 9893 ;; 9894 9895 hpux9*) 9896 if test yes = "$GCC"; then 9897 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' 9898 else 9899 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' 9900 fi 9901 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 9902 hardcode_libdir_separator=: 9903 hardcode_direct=yes 9904 9905 # hardcode_minus_L: Not really in the search PATH, 9906 # but as the default location of the library. 9907 hardcode_minus_L=yes 9908 export_dynamic_flag_spec='$wl-E' 9909 ;; 9910 9911 hpux10*) 9912 if test yes,no = "$GCC,$with_gnu_ld"; then 9913 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9914 else 9915 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 9916 fi 9917 if test no = "$with_gnu_ld"; then 9918 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 9919 hardcode_libdir_separator=: 9920 hardcode_direct=yes 9921 hardcode_direct_absolute=yes 9922 export_dynamic_flag_spec='$wl-E' 9923 # hardcode_minus_L: Not really in the search PATH, 9924 # but as the default location of the library. 9925 hardcode_minus_L=yes 9926 fi 9927 ;; 9928 9929 hpux11*) 9930 if test yes,no = "$GCC,$with_gnu_ld"; then 9931 case $host_cpu in 9932 hppa*64*) 9933 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 9934 ;; 9935 ia64*) 9936 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9937 ;; 9938 *) 9939 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9940 ;; 9941 esac 9942 else 9943 case $host_cpu in 9944 hppa*64*) 9945 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 9946 ;; 9947 ia64*) 9948 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9949 ;; 9950 *) 9951 9952 # Older versions of the 11.00 compiler do not understand -b yet 9953 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 9954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 9955$as_echo_n "checking if $CC understands -b... " >&6; } 9956if ${lt_cv_prog_compiler__b+:} false; then : 9957 $as_echo_n "(cached) " >&6 9958else 9959 lt_cv_prog_compiler__b=no 9960 save_LDFLAGS=$LDFLAGS 9961 LDFLAGS="$LDFLAGS -b" 9962 echo "$lt_simple_link_test_code" > conftest.$ac_ext 9963 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 9964 # The linker can only warn and ignore the option if not recognized 9965 # So say no if there are warnings 9966 if test -s conftest.err; then 9967 # Append any errors to the config.log. 9968 cat conftest.err 1>&5 9969 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 9970 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9971 if diff conftest.exp conftest.er2 >/dev/null; then 9972 lt_cv_prog_compiler__b=yes 9973 fi 9974 else 9975 lt_cv_prog_compiler__b=yes 9976 fi 9977 fi 9978 $RM -r conftest* 9979 LDFLAGS=$save_LDFLAGS 9980 9981fi 9982{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 9983$as_echo "$lt_cv_prog_compiler__b" >&6; } 9984 9985if test yes = "$lt_cv_prog_compiler__b"; then 9986 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9987else 9988 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 9989fi 9990 9991 ;; 9992 esac 9993 fi 9994 if test no = "$with_gnu_ld"; then 9995 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 9996 hardcode_libdir_separator=: 9997 9998 case $host_cpu in 9999 hppa*64*|ia64*) 10000 hardcode_direct=no 10001 hardcode_shlibpath_var=no 10002 ;; 10003 *) 10004 hardcode_direct=yes 10005 hardcode_direct_absolute=yes 10006 export_dynamic_flag_spec='$wl-E' 10007 10008 # hardcode_minus_L: Not really in the search PATH, 10009 # but as the default location of the library. 10010 hardcode_minus_L=yes 10011 ;; 10012 esac 10013 fi 10014 ;; 10015 10016 irix5* | irix6* | nonstopux*) 10017 if test yes = "$GCC"; then 10018 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' 10019 # Try to use the -exported_symbol ld option, if it does not 10020 # work, assume that -exports_file does not work either and 10021 # implicitly export all symbols. 10022 # This should be the same for all languages, so no per-tag cache variable. 10023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 10024$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 10025if ${lt_cv_irix_exported_symbol+:} false; then : 10026 $as_echo_n "(cached) " >&6 10027else 10028 save_LDFLAGS=$LDFLAGS 10029 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" 10030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10031/* end confdefs.h. */ 10032int foo (void) { return 0; } 10033_ACEOF 10034if ac_fn_c_try_link "$LINENO"; then : 10035 lt_cv_irix_exported_symbol=yes 10036else 10037 lt_cv_irix_exported_symbol=no 10038fi 10039rm -f core conftest.err conftest.$ac_objext \ 10040 conftest$ac_exeext conftest.$ac_ext 10041 LDFLAGS=$save_LDFLAGS 10042fi 10043{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 10044$as_echo "$lt_cv_irix_exported_symbol" >&6; } 10045 if test yes = "$lt_cv_irix_exported_symbol"; then 10046 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' 10047 fi 10048 link_all_deplibs=no 10049 else 10050 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' 10051 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' 10052 fi 10053 archive_cmds_need_lc='no' 10054 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10055 hardcode_libdir_separator=: 10056 inherit_rpath=yes 10057 link_all_deplibs=yes 10058 ;; 10059 10060 linux*) 10061 case $cc_basename in 10062 tcc*) 10063 # Fabrice Bellard et al's Tiny C Compiler 10064 ld_shlibs=yes 10065 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10066 ;; 10067 esac 10068 ;; 10069 10070 netbsd* | netbsdelf*-gnu) 10071 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10072 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 10073 else 10074 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 10075 fi 10076 hardcode_libdir_flag_spec='-R$libdir' 10077 hardcode_direct=yes 10078 hardcode_shlibpath_var=no 10079 ;; 10080 10081 newsos6) 10082 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10083 hardcode_direct=yes 10084 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10085 hardcode_libdir_separator=: 10086 hardcode_shlibpath_var=no 10087 ;; 10088 10089 *nto* | *qnx*) 10090 ;; 10091 10092 openbsd* | bitrig*) 10093 if test -f /usr/libexec/ld.so; then 10094 hardcode_direct=yes 10095 hardcode_shlibpath_var=no 10096 hardcode_direct_absolute=yes 10097 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 10098 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10099 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' 10100 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 10101 export_dynamic_flag_spec='$wl-E' 10102 else 10103 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10104 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 10105 fi 10106 else 10107 ld_shlibs=no 10108 fi 10109 ;; 10110 10111 os2*) 10112 hardcode_libdir_flag_spec='-L$libdir' 10113 hardcode_minus_L=yes 10114 allow_undefined_flag=unsupported 10115 shrext_cmds=.dll 10116 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10117 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10118 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10119 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10120 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 10121 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10122 emximp -o $lib $output_objdir/$libname.def' 10123 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10124 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10125 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10126 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10127 prefix_cmds="$SED"~ 10128 if test EXPORTS = "`$SED 1q $export_symbols`"; then 10129 prefix_cmds="$prefix_cmds -e 1d"; 10130 fi~ 10131 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 10132 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 10133 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10134 emximp -o $lib $output_objdir/$libname.def' 10135 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 10136 enable_shared_with_static_runtimes=yes 10137 ;; 10138 10139 osf3*) 10140 if test yes = "$GCC"; then 10141 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 10142 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' 10143 else 10144 allow_undefined_flag=' -expect_unresolved \*' 10145 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' 10146 fi 10147 archive_cmds_need_lc='no' 10148 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10149 hardcode_libdir_separator=: 10150 ;; 10151 10152 osf4* | osf5*) # as osf3* with the addition of -msym flag 10153 if test yes = "$GCC"; then 10154 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 10155 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' 10156 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10157 else 10158 allow_undefined_flag=' -expect_unresolved \*' 10159 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' 10160 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~ 10161 $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' 10162 10163 # Both c and cxx compiler support -rpath directly 10164 hardcode_libdir_flag_spec='-rpath $libdir' 10165 fi 10166 archive_cmds_need_lc='no' 10167 hardcode_libdir_separator=: 10168 ;; 10169 10170 solaris*) 10171 no_undefined_flag=' -z defs' 10172 if test yes = "$GCC"; then 10173 wlarc='$wl' 10174 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 10175 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10176 $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' 10177 else 10178 case `$CC -V 2>&1` in 10179 *"Compilers 5.0"*) 10180 wlarc='' 10181 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' 10182 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10183 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 10184 ;; 10185 *) 10186 wlarc='$wl' 10187 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' 10188 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10189 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 10190 ;; 10191 esac 10192 fi 10193 hardcode_libdir_flag_spec='-R$libdir' 10194 hardcode_shlibpath_var=no 10195 case $host_os in 10196 solaris2.[0-5] | solaris2.[0-5].*) ;; 10197 *) 10198 # The compiler driver will combine and reorder linker options, 10199 # but understands '-z linker_flag'. GCC discards it without '$wl', 10200 # but is careful enough not to reorder. 10201 # Supported since Solaris 2.6 (maybe 2.5.1?) 10202 if test yes = "$GCC"; then 10203 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 10204 else 10205 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 10206 fi 10207 ;; 10208 esac 10209 link_all_deplibs=yes 10210 ;; 10211 10212 sunos4*) 10213 if test sequent = "$host_vendor"; then 10214 # Use $CC to link under sequent, because it throws in some extra .o 10215 # files that make .init and .fini sections work. 10216 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' 10217 else 10218 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 10219 fi 10220 hardcode_libdir_flag_spec='-L$libdir' 10221 hardcode_direct=yes 10222 hardcode_minus_L=yes 10223 hardcode_shlibpath_var=no 10224 ;; 10225 10226 sysv4) 10227 case $host_vendor in 10228 sni) 10229 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10230 hardcode_direct=yes # is this really true??? 10231 ;; 10232 siemens) 10233 ## LD is ld it makes a PLAMLIB 10234 ## CC just makes a GrossModule. 10235 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 10236 reload_cmds='$CC -r -o $output$reload_objs' 10237 hardcode_direct=no 10238 ;; 10239 motorola) 10240 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10241 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 10242 ;; 10243 esac 10244 runpath_var='LD_RUN_PATH' 10245 hardcode_shlibpath_var=no 10246 ;; 10247 10248 sysv4.3*) 10249 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10250 hardcode_shlibpath_var=no 10251 export_dynamic_flag_spec='-Bexport' 10252 ;; 10253 10254 sysv4*MP*) 10255 if test -d /usr/nec; then 10256 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10257 hardcode_shlibpath_var=no 10258 runpath_var=LD_RUN_PATH 10259 hardcode_runpath_var=yes 10260 ld_shlibs=yes 10261 fi 10262 ;; 10263 10264 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 10265 no_undefined_flag='$wl-z,text' 10266 archive_cmds_need_lc=no 10267 hardcode_shlibpath_var=no 10268 runpath_var='LD_RUN_PATH' 10269 10270 if test yes = "$GCC"; then 10271 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10272 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10273 else 10274 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10275 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10276 fi 10277 ;; 10278 10279 sysv5* | sco3.2v5* | sco5v6*) 10280 # Note: We CANNOT use -z defs as we might desire, because we do not 10281 # link with -lc, and that would cause any symbols used from libc to 10282 # always be unresolved, which means just about no library would 10283 # ever link correctly. If we're not using GNU ld we use -z text 10284 # though, which does catch some bad symbols but isn't as heavy-handed 10285 # as -z defs. 10286 no_undefined_flag='$wl-z,text' 10287 allow_undefined_flag='$wl-z,nodefs' 10288 archive_cmds_need_lc=no 10289 hardcode_shlibpath_var=no 10290 hardcode_libdir_flag_spec='$wl-R,$libdir' 10291 hardcode_libdir_separator=':' 10292 link_all_deplibs=yes 10293 export_dynamic_flag_spec='$wl-Bexport' 10294 runpath_var='LD_RUN_PATH' 10295 10296 if test yes = "$GCC"; then 10297 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10298 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10299 else 10300 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10301 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10302 fi 10303 ;; 10304 10305 uts4*) 10306 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10307 hardcode_libdir_flag_spec='-L$libdir' 10308 hardcode_shlibpath_var=no 10309 ;; 10310 10311 *) 10312 ld_shlibs=no 10313 ;; 10314 esac 10315 10316 if test sni = "$host_vendor"; then 10317 case $host in 10318 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 10319 export_dynamic_flag_spec='$wl-Blargedynsym' 10320 ;; 10321 esac 10322 fi 10323 fi 10324 10325{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 10326$as_echo "$ld_shlibs" >&6; } 10327test no = "$ld_shlibs" && can_build_shared=no 10328 10329with_gnu_ld=$with_gnu_ld 10330 10331 10332 10333 10334 10335 10336 10337 10338 10339 10340 10341 10342 10343 10344 10345# 10346# Do we need to explicitly link libc? 10347# 10348case "x$archive_cmds_need_lc" in 10349x|xyes) 10350 # Assume -lc should be added 10351 archive_cmds_need_lc=yes 10352 10353 if test yes,yes = "$GCC,$enable_shared"; then 10354 case $archive_cmds in 10355 *'~'*) 10356 # FIXME: we may have to deal with multi-command sequences. 10357 ;; 10358 '$CC '*) 10359 # Test whether the compiler implicitly links with -lc since on some 10360 # systems, -lgcc has to come before -lc. If gcc already passes -lc 10361 # to ld, don't add -lc before -lgcc. 10362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 10363$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 10364if ${lt_cv_archive_cmds_need_lc+:} false; then : 10365 $as_echo_n "(cached) " >&6 10366else 10367 $RM conftest* 10368 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10369 10370 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 10371 (eval $ac_compile) 2>&5 10372 ac_status=$? 10373 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10374 test $ac_status = 0; } 2>conftest.err; then 10375 soname=conftest 10376 lib=conftest 10377 libobjs=conftest.$ac_objext 10378 deplibs= 10379 wl=$lt_prog_compiler_wl 10380 pic_flag=$lt_prog_compiler_pic 10381 compiler_flags=-v 10382 linker_flags=-v 10383 verstring= 10384 output_objdir=. 10385 libname=conftest 10386 lt_save_allow_undefined_flag=$allow_undefined_flag 10387 allow_undefined_flag= 10388 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 10389 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 10390 ac_status=$? 10391 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10392 test $ac_status = 0; } 10393 then 10394 lt_cv_archive_cmds_need_lc=no 10395 else 10396 lt_cv_archive_cmds_need_lc=yes 10397 fi 10398 allow_undefined_flag=$lt_save_allow_undefined_flag 10399 else 10400 cat conftest.err 1>&5 10401 fi 10402 $RM conftest* 10403 10404fi 10405{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 10406$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 10407 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 10408 ;; 10409 esac 10410 fi 10411 ;; 10412esac 10413 10414 10415 10416 10417 10418 10419 10420 10421 10422 10423 10424 10425 10426 10427 10428 10429 10430 10431 10432 10433 10434 10435 10436 10437 10438 10439 10440 10441 10442 10443 10444 10445 10446 10447 10448 10449 10450 10451 10452 10453 10454 10455 10456 10457 10458 10459 10460 10461 10462 10463 10464 10465 10466 10467 10468 10469 10470 10471 10472 10473 10474 10475 10476 10477 10478 10479 10480 10481 10482 10483 10484 10485 10486 10487 10488 10489 10490 10491 10492 10493 10494 10495 10496 10497 10498 10499 10500 10501 10502 10503 10504 10505 10506 10507 10508 10509 10510 10511 10512 10513 10514 10515 10516 10517 10518 10519 10520 10521 10522 10523 10524 10525 10526 10527 10528 10529 10530 10531 10532 10533 10534 10535 10536 10537 10538 10539 10540 10541 10542 10543 10544 10545 10546 10547 10548 10549 10550 10551 10552 10553 10554 10555 10556 10557 10558 10559 10560 10561 10562 10563 10564 10565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 10566$as_echo_n "checking dynamic linker characteristics... " >&6; } 10567 10568if test yes = "$GCC"; then 10569 case $host_os in 10570 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; 10571 *) lt_awk_arg='/^libraries:/' ;; 10572 esac 10573 case $host_os in 10574 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;; 10575 *) lt_sed_strip_eq='s|=/|/|g' ;; 10576 esac 10577 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 10578 case $lt_search_path_spec in 10579 *\;*) 10580 # if the path contains ";" then we assume it to be the separator 10581 # otherwise default to the standard path separator (i.e. ":") - it is 10582 # assumed that no part of a normal pathname contains ";" but that should 10583 # okay in the real world where ";" in dirpaths is itself problematic. 10584 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 10585 ;; 10586 *) 10587 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 10588 ;; 10589 esac 10590 # Ok, now we have the path, separated by spaces, we can step through it 10591 # and add multilib dir if necessary... 10592 lt_tmp_lt_search_path_spec= 10593 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 10594 # ...but if some path component already ends with the multilib dir we assume 10595 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). 10596 case "$lt_multi_os_dir; $lt_search_path_spec " in 10597 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) 10598 lt_multi_os_dir= 10599 ;; 10600 esac 10601 for lt_sys_path in $lt_search_path_spec; do 10602 if test -d "$lt_sys_path$lt_multi_os_dir"; then 10603 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" 10604 elif test -n "$lt_multi_os_dir"; then 10605 test -d "$lt_sys_path" && \ 10606 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 10607 fi 10608 done 10609 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 10610BEGIN {RS = " "; FS = "/|\n";} { 10611 lt_foo = ""; 10612 lt_count = 0; 10613 for (lt_i = NF; lt_i > 0; lt_i--) { 10614 if ($lt_i != "" && $lt_i != ".") { 10615 if ($lt_i == "..") { 10616 lt_count++; 10617 } else { 10618 if (lt_count == 0) { 10619 lt_foo = "/" $lt_i lt_foo; 10620 } else { 10621 lt_count--; 10622 } 10623 } 10624 } 10625 } 10626 if (lt_foo != "") { lt_freq[lt_foo]++; } 10627 if (lt_freq[lt_foo] == 1) { print lt_foo; } 10628}'` 10629 # AWK program above erroneously prepends '/' to C:/dos/paths 10630 # for these hosts. 10631 case $host_os in 10632 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 10633 $SED 's|/\([A-Za-z]:\)|\1|g'` ;; 10634 esac 10635 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 10636else 10637 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 10638fi 10639library_names_spec= 10640libname_spec='lib$name' 10641soname_spec= 10642shrext_cmds=.so 10643postinstall_cmds= 10644postuninstall_cmds= 10645finish_cmds= 10646finish_eval= 10647shlibpath_var= 10648shlibpath_overrides_runpath=unknown 10649version_type=none 10650dynamic_linker="$host_os ld.so" 10651sys_lib_dlsearch_path_spec="/lib /usr/lib" 10652need_lib_prefix=unknown 10653hardcode_into_libs=no 10654 10655# when you set need_version to no, make sure it does not cause -set_version 10656# flags to be left without arguments 10657need_version=unknown 10658 10659 10660 10661case $host_os in 10662aix3*) 10663 version_type=linux # correct to gnu/linux during the next big refactor 10664 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 10665 shlibpath_var=LIBPATH 10666 10667 # AIX 3 has no versioning support, so we append a major version to the name. 10668 soname_spec='$libname$release$shared_ext$major' 10669 ;; 10670 10671aix[4-9]*) 10672 version_type=linux # correct to gnu/linux during the next big refactor 10673 need_lib_prefix=no 10674 need_version=no 10675 hardcode_into_libs=yes 10676 if test ia64 = "$host_cpu"; then 10677 # AIX 5 supports IA64 10678 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 10679 shlibpath_var=LD_LIBRARY_PATH 10680 else 10681 # With GCC up to 2.95.x, collect2 would create an import file 10682 # for dependence libraries. The import file would start with 10683 # the line '#! .'. This would cause the generated library to 10684 # depend on '.', always an invalid library. This was fixed in 10685 # development snapshots of GCC prior to 3.0. 10686 case $host_os in 10687 aix4 | aix4.[01] | aix4.[01].*) 10688 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 10689 echo ' yes ' 10690 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 10691 : 10692 else 10693 can_build_shared=no 10694 fi 10695 ;; 10696 esac 10697 # Using Import Files as archive members, it is possible to support 10698 # filename-based versioning of shared library archives on AIX. While 10699 # this would work for both with and without runtime linking, it will 10700 # prevent static linking of such archives. So we do filename-based 10701 # shared library versioning with .so extension only, which is used 10702 # when both runtime linking and shared linking is enabled. 10703 # Unfortunately, runtime linking may impact performance, so we do 10704 # not want this to be the default eventually. Also, we use the 10705 # versioned .so libs for executables only if there is the -brtl 10706 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. 10707 # To allow for filename-based versioning support, we need to create 10708 # libNAME.so.V as an archive file, containing: 10709 # *) an Import File, referring to the versioned filename of the 10710 # archive as well as the shared archive member, telling the 10711 # bitwidth (32 or 64) of that shared object, and providing the 10712 # list of exported symbols of that shared object, eventually 10713 # decorated with the 'weak' keyword 10714 # *) the shared object with the F_LOADONLY flag set, to really avoid 10715 # it being seen by the linker. 10716 # At run time we better use the real file rather than another symlink, 10717 # but for link time we create the symlink libNAME.so -> libNAME.so.V 10718 10719 case $with_aix_soname,$aix_use_runtimelinking in 10720 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 10721 # soname into executable. Probably we can add versioning support to 10722 # collect2, so additional links can be useful in future. 10723 aix,yes) # traditional libtool 10724 dynamic_linker='AIX unversionable lib.so' 10725 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 10726 # instead of lib<name>.a to let people know that these are not 10727 # typical AIX shared libraries. 10728 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10729 ;; 10730 aix,no) # traditional AIX only 10731 dynamic_linker='AIX lib.a(lib.so.V)' 10732 # We preserve .a as extension for shared libraries through AIX4.2 10733 # and later when we are not doing run time linking. 10734 library_names_spec='$libname$release.a $libname.a' 10735 soname_spec='$libname$release$shared_ext$major' 10736 ;; 10737 svr4,*) # full svr4 only 10738 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 10739 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 10740 # We do not specify a path in Import Files, so LIBPATH fires. 10741 shlibpath_overrides_runpath=yes 10742 ;; 10743 *,yes) # both, prefer svr4 10744 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 10745 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 10746 # unpreferred sharedlib libNAME.a needs extra handling 10747 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"' 10748 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"' 10749 # We do not specify a path in Import Files, so LIBPATH fires. 10750 shlibpath_overrides_runpath=yes 10751 ;; 10752 *,no) # both, prefer aix 10753 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 10754 library_names_spec='$libname$release.a $libname.a' 10755 soname_spec='$libname$release$shared_ext$major' 10756 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 10757 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)' 10758 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"' 10759 ;; 10760 esac 10761 shlibpath_var=LIBPATH 10762 fi 10763 ;; 10764 10765amigaos*) 10766 case $host_cpu in 10767 powerpc) 10768 # Since July 2007 AmigaOS4 officially supports .so libraries. 10769 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 10770 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10771 ;; 10772 m68k) 10773 library_names_spec='$libname.ixlibrary $libname.a' 10774 # Create ${libname}_ixlibrary.a entries in /sys/libs. 10775 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' 10776 ;; 10777 esac 10778 ;; 10779 10780beos*) 10781 library_names_spec='$libname$shared_ext' 10782 dynamic_linker="$host_os ld.so" 10783 shlibpath_var=LIBRARY_PATH 10784 ;; 10785 10786bsdi[45]*) 10787 version_type=linux # correct to gnu/linux during the next big refactor 10788 need_version=no 10789 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10790 soname_spec='$libname$release$shared_ext$major' 10791 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 10792 shlibpath_var=LD_LIBRARY_PATH 10793 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 10794 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 10795 # the default ld.so.conf also contains /usr/contrib/lib and 10796 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 10797 # libtool to hard-code these into programs 10798 ;; 10799 10800cygwin* | mingw* | pw32* | cegcc*) 10801 version_type=windows 10802 shrext_cmds=.dll 10803 need_version=no 10804 need_lib_prefix=no 10805 10806 case $GCC,$cc_basename in 10807 yes,*) 10808 # gcc 10809 library_names_spec='$libname.dll.a' 10810 # DLL is installed to $(libdir)/../bin by postinstall_cmds 10811 postinstall_cmds='base_file=`basename \$file`~ 10812 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 10813 dldir=$destdir/`dirname \$dlpath`~ 10814 test -d \$dldir || mkdir -p \$dldir~ 10815 $install_prog $dir/$dlname \$dldir/$dlname~ 10816 chmod a+x \$dldir/$dlname~ 10817 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 10818 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 10819 fi' 10820 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 10821 dlpath=$dir/\$dldll~ 10822 $RM \$dlpath' 10823 shlibpath_overrides_runpath=yes 10824 10825 case $host_os in 10826 cygwin*) 10827 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 10828 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 10829 10830 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 10831 ;; 10832 mingw* | cegcc*) 10833 # MinGW DLLs use traditional 'lib' prefix 10834 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 10835 ;; 10836 pw32*) 10837 # pw32 DLLs use 'pw' prefix rather than 'lib' 10838 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 10839 ;; 10840 esac 10841 dynamic_linker='Win32 ld.exe' 10842 ;; 10843 10844 *,cl*) 10845 # Native MSVC 10846 libname_spec='$name' 10847 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 10848 library_names_spec='$libname.dll.lib' 10849 10850 case $build_os in 10851 mingw*) 10852 sys_lib_search_path_spec= 10853 lt_save_ifs=$IFS 10854 IFS=';' 10855 for lt_path in $LIB 10856 do 10857 IFS=$lt_save_ifs 10858 # Let DOS variable expansion print the short 8.3 style file name. 10859 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 10860 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 10861 done 10862 IFS=$lt_save_ifs 10863 # Convert to MSYS style. 10864 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 10865 ;; 10866 cygwin*) 10867 # Convert to unix form, then to dos form, then back to unix form 10868 # but this time dos style (no spaces!) so that the unix form looks 10869 # like /cygdrive/c/PROGRA~1:/cygdr... 10870 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 10871 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 10872 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 10873 ;; 10874 *) 10875 sys_lib_search_path_spec=$LIB 10876 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 10877 # It is most probably a Windows format PATH. 10878 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 10879 else 10880 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 10881 fi 10882 # FIXME: find the short name or the path components, as spaces are 10883 # common. (e.g. "Program Files" -> "PROGRA~1") 10884 ;; 10885 esac 10886 10887 # DLL is installed to $(libdir)/../bin by postinstall_cmds 10888 postinstall_cmds='base_file=`basename \$file`~ 10889 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 10890 dldir=$destdir/`dirname \$dlpath`~ 10891 test -d \$dldir || mkdir -p \$dldir~ 10892 $install_prog $dir/$dlname \$dldir/$dlname' 10893 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 10894 dlpath=$dir/\$dldll~ 10895 $RM \$dlpath' 10896 shlibpath_overrides_runpath=yes 10897 dynamic_linker='Win32 link.exe' 10898 ;; 10899 10900 *) 10901 # Assume MSVC wrapper 10902 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 10903 dynamic_linker='Win32 ld.exe' 10904 ;; 10905 esac 10906 # FIXME: first we should search . and the directory the executable is in 10907 shlibpath_var=PATH 10908 ;; 10909 10910darwin* | rhapsody*) 10911 dynamic_linker="$host_os dyld" 10912 version_type=darwin 10913 need_lib_prefix=no 10914 need_version=no 10915 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' 10916 soname_spec='$libname$release$major$shared_ext' 10917 shlibpath_overrides_runpath=yes 10918 shlibpath_var=DYLD_LIBRARY_PATH 10919 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 10920 10921 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 10922 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 10923 ;; 10924 10925dgux*) 10926 version_type=linux # correct to gnu/linux during the next big refactor 10927 need_lib_prefix=no 10928 need_version=no 10929 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10930 soname_spec='$libname$release$shared_ext$major' 10931 shlibpath_var=LD_LIBRARY_PATH 10932 ;; 10933 10934freebsd* | dragonfly*) 10935 # DragonFly does not have aout. When/if they implement a new 10936 # versioning mechanism, adjust this. 10937 if test -x /usr/bin/objformat; then 10938 objformat=`/usr/bin/objformat` 10939 else 10940 case $host_os in 10941 freebsd[23].*) objformat=aout ;; 10942 *) objformat=elf ;; 10943 esac 10944 fi 10945 version_type=freebsd-$objformat 10946 case $version_type in 10947 freebsd-elf*) 10948 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10949 soname_spec='$libname$release$shared_ext$major' 10950 need_version=no 10951 need_lib_prefix=no 10952 ;; 10953 freebsd-*) 10954 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 10955 need_version=yes 10956 ;; 10957 esac 10958 shlibpath_var=LD_LIBRARY_PATH 10959 case $host_os in 10960 freebsd2.*) 10961 shlibpath_overrides_runpath=yes 10962 ;; 10963 freebsd3.[01]* | freebsdelf3.[01]*) 10964 shlibpath_overrides_runpath=yes 10965 hardcode_into_libs=yes 10966 ;; 10967 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 10968 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 10969 shlibpath_overrides_runpath=no 10970 hardcode_into_libs=yes 10971 ;; 10972 *) # from 4.6 on, and DragonFly 10973 shlibpath_overrides_runpath=yes 10974 hardcode_into_libs=yes 10975 ;; 10976 esac 10977 ;; 10978 10979haiku*) 10980 version_type=linux # correct to gnu/linux during the next big refactor 10981 need_lib_prefix=no 10982 need_version=no 10983 dynamic_linker="$host_os runtime_loader" 10984 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10985 soname_spec='$libname$release$shared_ext$major' 10986 shlibpath_var=LIBRARY_PATH 10987 shlibpath_overrides_runpath=no 10988 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 10989 hardcode_into_libs=yes 10990 ;; 10991 10992hpux9* | hpux10* | hpux11*) 10993 # Give a soname corresponding to the major version so that dld.sl refuses to 10994 # link against other versions. 10995 version_type=sunos 10996 need_lib_prefix=no 10997 need_version=no 10998 case $host_cpu in 10999 ia64*) 11000 shrext_cmds='.so' 11001 hardcode_into_libs=yes 11002 dynamic_linker="$host_os dld.so" 11003 shlibpath_var=LD_LIBRARY_PATH 11004 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11005 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11006 soname_spec='$libname$release$shared_ext$major' 11007 if test 32 = "$HPUX_IA64_MODE"; then 11008 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 11009 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 11010 else 11011 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 11012 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 11013 fi 11014 ;; 11015 hppa*64*) 11016 shrext_cmds='.sl' 11017 hardcode_into_libs=yes 11018 dynamic_linker="$host_os dld.sl" 11019 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 11020 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11021 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11022 soname_spec='$libname$release$shared_ext$major' 11023 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 11024 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11025 ;; 11026 *) 11027 shrext_cmds='.sl' 11028 dynamic_linker="$host_os dld.sl" 11029 shlibpath_var=SHLIB_PATH 11030 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 11031 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11032 soname_spec='$libname$release$shared_ext$major' 11033 ;; 11034 esac 11035 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 11036 postinstall_cmds='chmod 555 $lib' 11037 # or fails outright, so override atomically: 11038 install_override_mode=555 11039 ;; 11040 11041interix[3-9]*) 11042 version_type=linux # correct to gnu/linux during the next big refactor 11043 need_lib_prefix=no 11044 need_version=no 11045 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11046 soname_spec='$libname$release$shared_ext$major' 11047 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 11048 shlibpath_var=LD_LIBRARY_PATH 11049 shlibpath_overrides_runpath=no 11050 hardcode_into_libs=yes 11051 ;; 11052 11053irix5* | irix6* | nonstopux*) 11054 case $host_os in 11055 nonstopux*) version_type=nonstopux ;; 11056 *) 11057 if test yes = "$lt_cv_prog_gnu_ld"; then 11058 version_type=linux # correct to gnu/linux during the next big refactor 11059 else 11060 version_type=irix 11061 fi ;; 11062 esac 11063 need_lib_prefix=no 11064 need_version=no 11065 soname_spec='$libname$release$shared_ext$major' 11066 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 11067 case $host_os in 11068 irix5* | nonstopux*) 11069 libsuff= shlibsuff= 11070 ;; 11071 *) 11072 case $LD in # libtool.m4 will add one of these switches to LD 11073 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 11074 libsuff= shlibsuff= libmagic=32-bit;; 11075 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 11076 libsuff=32 shlibsuff=N32 libmagic=N32;; 11077 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 11078 libsuff=64 shlibsuff=64 libmagic=64-bit;; 11079 *) libsuff= shlibsuff= libmagic=never-match;; 11080 esac 11081 ;; 11082 esac 11083 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 11084 shlibpath_overrides_runpath=no 11085 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 11086 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 11087 hardcode_into_libs=yes 11088 ;; 11089 11090# No shared lib support for Linux oldld, aout, or coff. 11091linux*oldld* | linux*aout* | linux*coff*) 11092 dynamic_linker=no 11093 ;; 11094 11095linux*android*) 11096 version_type=none # Android doesn't support versioned libraries. 11097 need_lib_prefix=no 11098 need_version=no 11099 library_names_spec='$libname$release$shared_ext' 11100 soname_spec='$libname$release$shared_ext' 11101 finish_cmds= 11102 shlibpath_var=LD_LIBRARY_PATH 11103 shlibpath_overrides_runpath=yes 11104 11105 # This implies no fast_install, which is unacceptable. 11106 # Some rework will be needed to allow for fast_install 11107 # before this can be enabled. 11108 hardcode_into_libs=yes 11109 11110 dynamic_linker='Android linker' 11111 # Don't embed -rpath directories since the linker doesn't support them. 11112 hardcode_libdir_flag_spec='-L$libdir' 11113 ;; 11114 11115# This must be glibc/ELF. 11116linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 11117 version_type=linux # correct to gnu/linux during the next big refactor 11118 need_lib_prefix=no 11119 need_version=no 11120 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11121 soname_spec='$libname$release$shared_ext$major' 11122 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 11123 shlibpath_var=LD_LIBRARY_PATH 11124 shlibpath_overrides_runpath=no 11125 11126 # Some binutils ld are patched to set DT_RUNPATH 11127 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 11128 $as_echo_n "(cached) " >&6 11129else 11130 lt_cv_shlibpath_overrides_runpath=no 11131 save_LDFLAGS=$LDFLAGS 11132 save_libdir=$libdir 11133 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 11134 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 11135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11136/* end confdefs.h. */ 11137 11138int 11139main () 11140{ 11141 11142 ; 11143 return 0; 11144} 11145_ACEOF 11146if ac_fn_c_try_link "$LINENO"; then : 11147 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 11148 lt_cv_shlibpath_overrides_runpath=yes 11149fi 11150fi 11151rm -f core conftest.err conftest.$ac_objext \ 11152 conftest$ac_exeext conftest.$ac_ext 11153 LDFLAGS=$save_LDFLAGS 11154 libdir=$save_libdir 11155 11156fi 11157 11158 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 11159 11160 # This implies no fast_install, which is unacceptable. 11161 # Some rework will be needed to allow for fast_install 11162 # before this can be enabled. 11163 hardcode_into_libs=yes 11164 11165 # Ideally, we could use ldconfig to report *all* directores which are 11166 # searched for libraries, however this is still not possible. Aside from not 11167 # being certain /sbin/ldconfig is available, command 11168 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 11169 # even though it is searched at run-time. Try to do the best guess by 11170 # appending ld.so.conf contents (and includes) to the search path. 11171 if test -f /etc/ld.so.conf; then 11172 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' ' '` 11173 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 11174 fi 11175 11176 # We used to test for /lib/ld.so.1 and disable shared libraries on 11177 # powerpc, because MkLinux only supported shared libraries with the 11178 # GNU dynamic linker. Since this was broken with cross compilers, 11179 # most powerpc-linux boxes support dynamic linking these days and 11180 # people can always --disable-shared, the test was removed, and we 11181 # assume the GNU/Linux dynamic linker is in use. 11182 dynamic_linker='GNU/Linux ld.so' 11183 ;; 11184 11185netbsdelf*-gnu) 11186 version_type=linux 11187 need_lib_prefix=no 11188 need_version=no 11189 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 11190 soname_spec='${libname}${release}${shared_ext}$major' 11191 shlibpath_var=LD_LIBRARY_PATH 11192 shlibpath_overrides_runpath=no 11193 hardcode_into_libs=yes 11194 dynamic_linker='NetBSD ld.elf_so' 11195 ;; 11196 11197netbsd*) 11198 version_type=sunos 11199 need_lib_prefix=no 11200 need_version=no 11201 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 11202 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11203 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11204 dynamic_linker='NetBSD (a.out) ld.so' 11205 else 11206 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11207 soname_spec='$libname$release$shared_ext$major' 11208 dynamic_linker='NetBSD ld.elf_so' 11209 fi 11210 shlibpath_var=LD_LIBRARY_PATH 11211 shlibpath_overrides_runpath=yes 11212 hardcode_into_libs=yes 11213 ;; 11214 11215newsos6) 11216 version_type=linux # correct to gnu/linux during the next big refactor 11217 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11218 shlibpath_var=LD_LIBRARY_PATH 11219 shlibpath_overrides_runpath=yes 11220 ;; 11221 11222*nto* | *qnx*) 11223 version_type=qnx 11224 need_lib_prefix=no 11225 need_version=no 11226 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11227 soname_spec='$libname$release$shared_ext$major' 11228 shlibpath_var=LD_LIBRARY_PATH 11229 shlibpath_overrides_runpath=no 11230 hardcode_into_libs=yes 11231 dynamic_linker='ldqnx.so' 11232 ;; 11233 11234openbsd* | bitrig*) 11235 version_type=sunos 11236 sys_lib_dlsearch_path_spec=/usr/lib 11237 need_lib_prefix=no 11238 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 11239 need_version=no 11240 else 11241 need_version=yes 11242 fi 11243 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11244 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11245 shlibpath_var=LD_LIBRARY_PATH 11246 shlibpath_overrides_runpath=yes 11247 ;; 11248 11249os2*) 11250 libname_spec='$name' 11251 version_type=windows 11252 shrext_cmds=.dll 11253 need_version=no 11254 need_lib_prefix=no 11255 # OS/2 can only load a DLL with a base name of 8 characters or less. 11256 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 11257 v=$($ECHO $release$versuffix | tr -d .-); 11258 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 11259 $ECHO $n$v`$shared_ext' 11260 library_names_spec='${libname}_dll.$libext' 11261 dynamic_linker='OS/2 ld.exe' 11262 shlibpath_var=BEGINLIBPATH 11263 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 11264 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11265 postinstall_cmds='base_file=`basename \$file`~ 11266 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 11267 dldir=$destdir/`dirname \$dlpath`~ 11268 test -d \$dldir || mkdir -p \$dldir~ 11269 $install_prog $dir/$dlname \$dldir/$dlname~ 11270 chmod a+x \$dldir/$dlname~ 11271 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 11272 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 11273 fi' 11274 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 11275 dlpath=$dir/\$dldll~ 11276 $RM \$dlpath' 11277 ;; 11278 11279osf3* | osf4* | osf5*) 11280 version_type=osf 11281 need_lib_prefix=no 11282 need_version=no 11283 soname_spec='$libname$release$shared_ext$major' 11284 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11285 shlibpath_var=LD_LIBRARY_PATH 11286 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 11287 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11288 ;; 11289 11290rdos*) 11291 dynamic_linker=no 11292 ;; 11293 11294solaris*) 11295 version_type=linux # correct to gnu/linux during the next big refactor 11296 need_lib_prefix=no 11297 need_version=no 11298 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11299 soname_spec='$libname$release$shared_ext$major' 11300 shlibpath_var=LD_LIBRARY_PATH 11301 shlibpath_overrides_runpath=yes 11302 hardcode_into_libs=yes 11303 # ldd complains unless libraries are executable 11304 postinstall_cmds='chmod +x $lib' 11305 ;; 11306 11307sunos4*) 11308 version_type=sunos 11309 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11310 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 11311 shlibpath_var=LD_LIBRARY_PATH 11312 shlibpath_overrides_runpath=yes 11313 if test yes = "$with_gnu_ld"; then 11314 need_lib_prefix=no 11315 fi 11316 need_version=yes 11317 ;; 11318 11319sysv4 | sysv4.3*) 11320 version_type=linux # correct to gnu/linux during the next big refactor 11321 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11322 soname_spec='$libname$release$shared_ext$major' 11323 shlibpath_var=LD_LIBRARY_PATH 11324 case $host_vendor in 11325 sni) 11326 shlibpath_overrides_runpath=no 11327 need_lib_prefix=no 11328 runpath_var=LD_RUN_PATH 11329 ;; 11330 siemens) 11331 need_lib_prefix=no 11332 ;; 11333 motorola) 11334 need_lib_prefix=no 11335 need_version=no 11336 shlibpath_overrides_runpath=no 11337 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 11338 ;; 11339 esac 11340 ;; 11341 11342sysv4*MP*) 11343 if test -d /usr/nec; then 11344 version_type=linux # correct to gnu/linux during the next big refactor 11345 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 11346 soname_spec='$libname$shared_ext.$major' 11347 shlibpath_var=LD_LIBRARY_PATH 11348 fi 11349 ;; 11350 11351sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 11352 version_type=sco 11353 need_lib_prefix=no 11354 need_version=no 11355 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 11356 soname_spec='$libname$release$shared_ext$major' 11357 shlibpath_var=LD_LIBRARY_PATH 11358 shlibpath_overrides_runpath=yes 11359 hardcode_into_libs=yes 11360 if test yes = "$with_gnu_ld"; then 11361 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 11362 else 11363 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 11364 case $host_os in 11365 sco3.2v5*) 11366 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 11367 ;; 11368 esac 11369 fi 11370 sys_lib_dlsearch_path_spec='/usr/lib' 11371 ;; 11372 11373tpf*) 11374 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 11375 version_type=linux # correct to gnu/linux during the next big refactor 11376 need_lib_prefix=no 11377 need_version=no 11378 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11379 shlibpath_var=LD_LIBRARY_PATH 11380 shlibpath_overrides_runpath=no 11381 hardcode_into_libs=yes 11382 ;; 11383 11384uts4*) 11385 version_type=linux # correct to gnu/linux during the next big refactor 11386 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11387 soname_spec='$libname$release$shared_ext$major' 11388 shlibpath_var=LD_LIBRARY_PATH 11389 ;; 11390 11391*) 11392 dynamic_linker=no 11393 ;; 11394esac 11395{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 11396$as_echo "$dynamic_linker" >&6; } 11397test no = "$dynamic_linker" && can_build_shared=no 11398 11399variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 11400if test yes = "$GCC"; then 11401 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 11402fi 11403 11404if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 11405 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 11406fi 11407 11408if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 11409 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 11410fi 11411 11412# remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 11413configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 11414 11415# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 11416func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 11417 11418# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 11419configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 11420 11421 11422 11423 11424 11425 11426 11427 11428 11429 11430 11431 11432 11433 11434 11435 11436 11437 11438 11439 11440 11441 11442 11443 11444 11445 11446 11447 11448 11449 11450 11451 11452 11453 11454 11455 11456 11457 11458 11459 11460 11461 11462 11463 11464 11465 11466 11467 11468 11469 11470 11471 11472 11473 11474 11475 11476 11477 11478 11479 11480 11481 11482 11483 11484 11485 11486 11487 11488 11489 11490 11491 11492 11493 11494 11495 11496 11497 11498 11499 11500 11501 11502 11503 11504 11505 11506 11507 11508 11509 11510 11511 11512 11513 11514 11515 11516 11517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 11518$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 11519hardcode_action= 11520if test -n "$hardcode_libdir_flag_spec" || 11521 test -n "$runpath_var" || 11522 test yes = "$hardcode_automatic"; then 11523 11524 # We can hardcode non-existent directories. 11525 if test no != "$hardcode_direct" && 11526 # If the only mechanism to avoid hardcoding is shlibpath_var, we 11527 # have to relink, otherwise we might link with an installed library 11528 # when we should be linking with a yet-to-be-installed one 11529 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" && 11530 test no != "$hardcode_minus_L"; then 11531 # Linking always hardcodes the temporary library directory. 11532 hardcode_action=relink 11533 else 11534 # We can link without hardcoding, and we can hardcode nonexisting dirs. 11535 hardcode_action=immediate 11536 fi 11537else 11538 # We cannot hardcode anything, or else we can only hardcode existing 11539 # directories. 11540 hardcode_action=unsupported 11541fi 11542{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 11543$as_echo "$hardcode_action" >&6; } 11544 11545if test relink = "$hardcode_action" || 11546 test yes = "$inherit_rpath"; then 11547 # Fast installation is not supported 11548 enable_fast_install=no 11549elif test yes = "$shlibpath_overrides_runpath" || 11550 test no = "$enable_shared"; then 11551 # Fast installation is not necessary 11552 enable_fast_install=needless 11553fi 11554 11555 11556 11557 11558 11559 11560 if test yes != "$enable_dlopen"; then 11561 enable_dlopen=unknown 11562 enable_dlopen_self=unknown 11563 enable_dlopen_self_static=unknown 11564else 11565 lt_cv_dlopen=no 11566 lt_cv_dlopen_libs= 11567 11568 case $host_os in 11569 beos*) 11570 lt_cv_dlopen=load_add_on 11571 lt_cv_dlopen_libs= 11572 lt_cv_dlopen_self=yes 11573 ;; 11574 11575 mingw* | pw32* | cegcc*) 11576 lt_cv_dlopen=LoadLibrary 11577 lt_cv_dlopen_libs= 11578 ;; 11579 11580 cygwin*) 11581 lt_cv_dlopen=dlopen 11582 lt_cv_dlopen_libs= 11583 ;; 11584 11585 darwin*) 11586 # if libdl is installed we need to link against it 11587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 11588$as_echo_n "checking for dlopen in -ldl... " >&6; } 11589if ${ac_cv_lib_dl_dlopen+:} false; then : 11590 $as_echo_n "(cached) " >&6 11591else 11592 ac_check_lib_save_LIBS=$LIBS 11593LIBS="-ldl $LIBS" 11594cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11595/* end confdefs.h. */ 11596 11597/* Override any GCC internal prototype to avoid an error. 11598 Use char because int might match the return type of a GCC 11599 builtin and then its argument prototype would still apply. */ 11600#ifdef __cplusplus 11601extern "C" 11602#endif 11603char dlopen (); 11604int 11605main () 11606{ 11607return dlopen (); 11608 ; 11609 return 0; 11610} 11611_ACEOF 11612if ac_fn_c_try_link "$LINENO"; then : 11613 ac_cv_lib_dl_dlopen=yes 11614else 11615 ac_cv_lib_dl_dlopen=no 11616fi 11617rm -f core conftest.err conftest.$ac_objext \ 11618 conftest$ac_exeext conftest.$ac_ext 11619LIBS=$ac_check_lib_save_LIBS 11620fi 11621{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 11622$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 11623if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 11624 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 11625else 11626 11627 lt_cv_dlopen=dyld 11628 lt_cv_dlopen_libs= 11629 lt_cv_dlopen_self=yes 11630 11631fi 11632 11633 ;; 11634 11635 tpf*) 11636 # Don't try to run any link tests for TPF. We know it's impossible 11637 # because TPF is a cross-compiler, and we know how we open DSOs. 11638 lt_cv_dlopen=dlopen 11639 lt_cv_dlopen_libs= 11640 lt_cv_dlopen_self=no 11641 ;; 11642 11643 *) 11644 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 11645if test "x$ac_cv_func_shl_load" = xyes; then : 11646 lt_cv_dlopen=shl_load 11647else 11648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 11649$as_echo_n "checking for shl_load in -ldld... " >&6; } 11650if ${ac_cv_lib_dld_shl_load+:} false; then : 11651 $as_echo_n "(cached) " >&6 11652else 11653 ac_check_lib_save_LIBS=$LIBS 11654LIBS="-ldld $LIBS" 11655cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11656/* end confdefs.h. */ 11657 11658/* Override any GCC internal prototype to avoid an error. 11659 Use char because int might match the return type of a GCC 11660 builtin and then its argument prototype would still apply. */ 11661#ifdef __cplusplus 11662extern "C" 11663#endif 11664char shl_load (); 11665int 11666main () 11667{ 11668return shl_load (); 11669 ; 11670 return 0; 11671} 11672_ACEOF 11673if ac_fn_c_try_link "$LINENO"; then : 11674 ac_cv_lib_dld_shl_load=yes 11675else 11676 ac_cv_lib_dld_shl_load=no 11677fi 11678rm -f core conftest.err conftest.$ac_objext \ 11679 conftest$ac_exeext conftest.$ac_ext 11680LIBS=$ac_check_lib_save_LIBS 11681fi 11682{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 11683$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 11684if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 11685 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld 11686else 11687 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 11688if test "x$ac_cv_func_dlopen" = xyes; then : 11689 lt_cv_dlopen=dlopen 11690else 11691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 11692$as_echo_n "checking for dlopen in -ldl... " >&6; } 11693if ${ac_cv_lib_dl_dlopen+:} false; then : 11694 $as_echo_n "(cached) " >&6 11695else 11696 ac_check_lib_save_LIBS=$LIBS 11697LIBS="-ldl $LIBS" 11698cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11699/* end confdefs.h. */ 11700 11701/* Override any GCC internal prototype to avoid an error. 11702 Use char because int might match the return type of a GCC 11703 builtin and then its argument prototype would still apply. */ 11704#ifdef __cplusplus 11705extern "C" 11706#endif 11707char dlopen (); 11708int 11709main () 11710{ 11711return dlopen (); 11712 ; 11713 return 0; 11714} 11715_ACEOF 11716if ac_fn_c_try_link "$LINENO"; then : 11717 ac_cv_lib_dl_dlopen=yes 11718else 11719 ac_cv_lib_dl_dlopen=no 11720fi 11721rm -f core conftest.err conftest.$ac_objext \ 11722 conftest$ac_exeext conftest.$ac_ext 11723LIBS=$ac_check_lib_save_LIBS 11724fi 11725{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 11726$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 11727if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 11728 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 11729else 11730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 11731$as_echo_n "checking for dlopen in -lsvld... " >&6; } 11732if ${ac_cv_lib_svld_dlopen+:} false; then : 11733 $as_echo_n "(cached) " >&6 11734else 11735 ac_check_lib_save_LIBS=$LIBS 11736LIBS="-lsvld $LIBS" 11737cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11738/* end confdefs.h. */ 11739 11740/* Override any GCC internal prototype to avoid an error. 11741 Use char because int might match the return type of a GCC 11742 builtin and then its argument prototype would still apply. */ 11743#ifdef __cplusplus 11744extern "C" 11745#endif 11746char dlopen (); 11747int 11748main () 11749{ 11750return dlopen (); 11751 ; 11752 return 0; 11753} 11754_ACEOF 11755if ac_fn_c_try_link "$LINENO"; then : 11756 ac_cv_lib_svld_dlopen=yes 11757else 11758 ac_cv_lib_svld_dlopen=no 11759fi 11760rm -f core conftest.err conftest.$ac_objext \ 11761 conftest$ac_exeext conftest.$ac_ext 11762LIBS=$ac_check_lib_save_LIBS 11763fi 11764{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 11765$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 11766if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 11767 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld 11768else 11769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 11770$as_echo_n "checking for dld_link in -ldld... " >&6; } 11771if ${ac_cv_lib_dld_dld_link+:} false; then : 11772 $as_echo_n "(cached) " >&6 11773else 11774 ac_check_lib_save_LIBS=$LIBS 11775LIBS="-ldld $LIBS" 11776cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11777/* end confdefs.h. */ 11778 11779/* Override any GCC internal prototype to avoid an error. 11780 Use char because int might match the return type of a GCC 11781 builtin and then its argument prototype would still apply. */ 11782#ifdef __cplusplus 11783extern "C" 11784#endif 11785char dld_link (); 11786int 11787main () 11788{ 11789return dld_link (); 11790 ; 11791 return 0; 11792} 11793_ACEOF 11794if ac_fn_c_try_link "$LINENO"; then : 11795 ac_cv_lib_dld_dld_link=yes 11796else 11797 ac_cv_lib_dld_dld_link=no 11798fi 11799rm -f core conftest.err conftest.$ac_objext \ 11800 conftest$ac_exeext conftest.$ac_ext 11801LIBS=$ac_check_lib_save_LIBS 11802fi 11803{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 11804$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 11805if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 11806 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld 11807fi 11808 11809 11810fi 11811 11812 11813fi 11814 11815 11816fi 11817 11818 11819fi 11820 11821 11822fi 11823 11824 ;; 11825 esac 11826 11827 if test no = "$lt_cv_dlopen"; then 11828 enable_dlopen=no 11829 else 11830 enable_dlopen=yes 11831 fi 11832 11833 case $lt_cv_dlopen in 11834 dlopen) 11835 save_CPPFLAGS=$CPPFLAGS 11836 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 11837 11838 save_LDFLAGS=$LDFLAGS 11839 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 11840 11841 save_LIBS=$LIBS 11842 LIBS="$lt_cv_dlopen_libs $LIBS" 11843 11844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 11845$as_echo_n "checking whether a program can dlopen itself... " >&6; } 11846if ${lt_cv_dlopen_self+:} false; then : 11847 $as_echo_n "(cached) " >&6 11848else 11849 if test yes = "$cross_compiling"; then : 11850 lt_cv_dlopen_self=cross 11851else 11852 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11853 lt_status=$lt_dlunknown 11854 cat > conftest.$ac_ext <<_LT_EOF 11855#line $LINENO "configure" 11856#include "confdefs.h" 11857 11858#if HAVE_DLFCN_H 11859#include <dlfcn.h> 11860#endif 11861 11862#include <stdio.h> 11863 11864#ifdef RTLD_GLOBAL 11865# define LT_DLGLOBAL RTLD_GLOBAL 11866#else 11867# ifdef DL_GLOBAL 11868# define LT_DLGLOBAL DL_GLOBAL 11869# else 11870# define LT_DLGLOBAL 0 11871# endif 11872#endif 11873 11874/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11875 find out it does not work in some platform. */ 11876#ifndef LT_DLLAZY_OR_NOW 11877# ifdef RTLD_LAZY 11878# define LT_DLLAZY_OR_NOW RTLD_LAZY 11879# else 11880# ifdef DL_LAZY 11881# define LT_DLLAZY_OR_NOW DL_LAZY 11882# else 11883# ifdef RTLD_NOW 11884# define LT_DLLAZY_OR_NOW RTLD_NOW 11885# else 11886# ifdef DL_NOW 11887# define LT_DLLAZY_OR_NOW DL_NOW 11888# else 11889# define LT_DLLAZY_OR_NOW 0 11890# endif 11891# endif 11892# endif 11893# endif 11894#endif 11895 11896/* When -fvisibility=hidden is used, assume the code has been annotated 11897 correspondingly for the symbols needed. */ 11898#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 11899int fnord () __attribute__((visibility("default"))); 11900#endif 11901 11902int fnord () { return 42; } 11903int main () 11904{ 11905 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11906 int status = $lt_dlunknown; 11907 11908 if (self) 11909 { 11910 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11911 else 11912 { 11913 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11914 else puts (dlerror ()); 11915 } 11916 /* dlclose (self); */ 11917 } 11918 else 11919 puts (dlerror ()); 11920 11921 return status; 11922} 11923_LT_EOF 11924 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 11925 (eval $ac_link) 2>&5 11926 ac_status=$? 11927 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11928 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 11929 (./conftest; exit; ) >&5 2>/dev/null 11930 lt_status=$? 11931 case x$lt_status in 11932 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 11933 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 11934 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 11935 esac 11936 else : 11937 # compilation failed 11938 lt_cv_dlopen_self=no 11939 fi 11940fi 11941rm -fr conftest* 11942 11943 11944fi 11945{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 11946$as_echo "$lt_cv_dlopen_self" >&6; } 11947 11948 if test yes = "$lt_cv_dlopen_self"; then 11949 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 11950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 11951$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 11952if ${lt_cv_dlopen_self_static+:} false; then : 11953 $as_echo_n "(cached) " >&6 11954else 11955 if test yes = "$cross_compiling"; then : 11956 lt_cv_dlopen_self_static=cross 11957else 11958 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11959 lt_status=$lt_dlunknown 11960 cat > conftest.$ac_ext <<_LT_EOF 11961#line $LINENO "configure" 11962#include "confdefs.h" 11963 11964#if HAVE_DLFCN_H 11965#include <dlfcn.h> 11966#endif 11967 11968#include <stdio.h> 11969 11970#ifdef RTLD_GLOBAL 11971# define LT_DLGLOBAL RTLD_GLOBAL 11972#else 11973# ifdef DL_GLOBAL 11974# define LT_DLGLOBAL DL_GLOBAL 11975# else 11976# define LT_DLGLOBAL 0 11977# endif 11978#endif 11979 11980/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11981 find out it does not work in some platform. */ 11982#ifndef LT_DLLAZY_OR_NOW 11983# ifdef RTLD_LAZY 11984# define LT_DLLAZY_OR_NOW RTLD_LAZY 11985# else 11986# ifdef DL_LAZY 11987# define LT_DLLAZY_OR_NOW DL_LAZY 11988# else 11989# ifdef RTLD_NOW 11990# define LT_DLLAZY_OR_NOW RTLD_NOW 11991# else 11992# ifdef DL_NOW 11993# define LT_DLLAZY_OR_NOW DL_NOW 11994# else 11995# define LT_DLLAZY_OR_NOW 0 11996# endif 11997# endif 11998# endif 11999# endif 12000#endif 12001 12002/* When -fvisibility=hidden is used, assume the code has been annotated 12003 correspondingly for the symbols needed. */ 12004#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 12005int fnord () __attribute__((visibility("default"))); 12006#endif 12007 12008int fnord () { return 42; } 12009int main () 12010{ 12011 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 12012 int status = $lt_dlunknown; 12013 12014 if (self) 12015 { 12016 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 12017 else 12018 { 12019 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 12020 else puts (dlerror ()); 12021 } 12022 /* dlclose (self); */ 12023 } 12024 else 12025 puts (dlerror ()); 12026 12027 return status; 12028} 12029_LT_EOF 12030 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 12031 (eval $ac_link) 2>&5 12032 ac_status=$? 12033 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12034 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 12035 (./conftest; exit; ) >&5 2>/dev/null 12036 lt_status=$? 12037 case x$lt_status in 12038 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 12039 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 12040 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 12041 esac 12042 else : 12043 # compilation failed 12044 lt_cv_dlopen_self_static=no 12045 fi 12046fi 12047rm -fr conftest* 12048 12049 12050fi 12051{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 12052$as_echo "$lt_cv_dlopen_self_static" >&6; } 12053 fi 12054 12055 CPPFLAGS=$save_CPPFLAGS 12056 LDFLAGS=$save_LDFLAGS 12057 LIBS=$save_LIBS 12058 ;; 12059 esac 12060 12061 case $lt_cv_dlopen_self in 12062 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 12063 *) enable_dlopen_self=unknown ;; 12064 esac 12065 12066 case $lt_cv_dlopen_self_static in 12067 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 12068 *) enable_dlopen_self_static=unknown ;; 12069 esac 12070fi 12071 12072 12073 12074 12075 12076 12077 12078 12079 12080 12081 12082 12083 12084 12085 12086 12087 12088striplib= 12089old_striplib= 12090{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 12091$as_echo_n "checking whether stripping libraries is possible... " >&6; } 12092if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 12093 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 12094 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 12095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12096$as_echo "yes" >&6; } 12097else 12098# FIXME - insert some real tests, host_os isn't really good enough 12099 case $host_os in 12100 darwin*) 12101 if test -n "$STRIP"; then 12102 striplib="$STRIP -x" 12103 old_striplib="$STRIP -S" 12104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12105$as_echo "yes" >&6; } 12106 else 12107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12108$as_echo "no" >&6; } 12109 fi 12110 ;; 12111 *) 12112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12113$as_echo "no" >&6; } 12114 ;; 12115 esac 12116fi 12117 12118 12119 12120 12121 12122 12123 12124 12125 12126 12127 12128 12129 # Report what library types will actually be built 12130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 12131$as_echo_n "checking if libtool supports shared libraries... " >&6; } 12132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 12133$as_echo "$can_build_shared" >&6; } 12134 12135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 12136$as_echo_n "checking whether to build shared libraries... " >&6; } 12137 test no = "$can_build_shared" && enable_shared=no 12138 12139 # On AIX, shared libraries and static libraries use the same namespace, and 12140 # are all built from PIC. 12141 case $host_os in 12142 aix3*) 12143 test yes = "$enable_shared" && enable_static=no 12144 if test -n "$RANLIB"; then 12145 archive_cmds="$archive_cmds~\$RANLIB \$lib" 12146 postinstall_cmds='$RANLIB $lib' 12147 fi 12148 ;; 12149 12150 aix[4-9]*) 12151 if test ia64 != "$host_cpu"; then 12152 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in 12153 yes,aix,yes) ;; # shared object as lib.so file only 12154 yes,svr4,*) ;; # shared object as lib.so archive member only 12155 yes,*) enable_static=no ;; # shared object in lib.a archive as well 12156 esac 12157 fi 12158 ;; 12159 esac 12160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 12161$as_echo "$enable_shared" >&6; } 12162 12163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 12164$as_echo_n "checking whether to build static libraries... " >&6; } 12165 # Make sure either enable_shared or enable_static is yes. 12166 test yes = "$enable_shared" || enable_static=yes 12167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 12168$as_echo "$enable_static" >&6; } 12169 12170 12171 12172 12173fi 12174ac_ext=c 12175ac_cpp='$CPP $CPPFLAGS' 12176ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12177ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12178ac_compiler_gnu=$ac_cv_c_compiler_gnu 12179 12180CC=$lt_save_CC 12181 12182 12183 12184 12185 12186 12187 12188 12189 12190 12191 12192 12193 12194 12195 12196 ac_config_commands="$ac_config_commands libtool" 12197 12198 12199 12200 12201# Only expand once: 12202 12203 12204 12205# Require X.Org macros 1.13 or later for XORG_ENABLE_UNIT_TESTS 12206 12207 12208 12209 12210 12211 12212 12213 12214 12215 12216 12217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5 12218$as_echo_n "checking for $CC option to accept ISO C99... " >&6; } 12219if ${ac_cv_prog_cc_c99+:} false; then : 12220 $as_echo_n "(cached) " >&6 12221else 12222 ac_cv_prog_cc_c99=no 12223ac_save_CC=$CC 12224cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12225/* end confdefs.h. */ 12226#include <stdarg.h> 12227#include <stdbool.h> 12228#include <stdlib.h> 12229#include <wchar.h> 12230#include <stdio.h> 12231 12232// Check varargs macros. These examples are taken from C99 6.10.3.5. 12233#define debug(...) fprintf (stderr, __VA_ARGS__) 12234#define showlist(...) puts (#__VA_ARGS__) 12235#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 12236static void 12237test_varargs_macros (void) 12238{ 12239 int x = 1234; 12240 int y = 5678; 12241 debug ("Flag"); 12242 debug ("X = %d\n", x); 12243 showlist (The first, second, and third items.); 12244 report (x>y, "x is %d but y is %d", x, y); 12245} 12246 12247// Check long long types. 12248#define BIG64 18446744073709551615ull 12249#define BIG32 4294967295ul 12250#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 12251#if !BIG_OK 12252 your preprocessor is broken; 12253#endif 12254#if BIG_OK 12255#else 12256 your preprocessor is broken; 12257#endif 12258static long long int bignum = -9223372036854775807LL; 12259static unsigned long long int ubignum = BIG64; 12260 12261struct incomplete_array 12262{ 12263 int datasize; 12264 double data[]; 12265}; 12266 12267struct named_init { 12268 int number; 12269 const wchar_t *name; 12270 double average; 12271}; 12272 12273typedef const char *ccp; 12274 12275static inline int 12276test_restrict (ccp restrict text) 12277{ 12278 // See if C++-style comments work. 12279 // Iterate through items via the restricted pointer. 12280 // Also check for declarations in for loops. 12281 for (unsigned int i = 0; *(text+i) != '\0'; ++i) 12282 continue; 12283 return 0; 12284} 12285 12286// Check varargs and va_copy. 12287static void 12288test_varargs (const char *format, ...) 12289{ 12290 va_list args; 12291 va_start (args, format); 12292 va_list args_copy; 12293 va_copy (args_copy, args); 12294 12295 const char *str; 12296 int number; 12297 float fnumber; 12298 12299 while (*format) 12300 { 12301 switch (*format++) 12302 { 12303 case 's': // string 12304 str = va_arg (args_copy, const char *); 12305 break; 12306 case 'd': // int 12307 number = va_arg (args_copy, int); 12308 break; 12309 case 'f': // float 12310 fnumber = va_arg (args_copy, double); 12311 break; 12312 default: 12313 break; 12314 } 12315 } 12316 va_end (args_copy); 12317 va_end (args); 12318} 12319 12320int 12321main () 12322{ 12323 12324 // Check bool. 12325 _Bool success = false; 12326 12327 // Check restrict. 12328 if (test_restrict ("String literal") == 0) 12329 success = true; 12330 char *restrict newvar = "Another string"; 12331 12332 // Check varargs. 12333 test_varargs ("s, d' f .", "string", 65, 34.234); 12334 test_varargs_macros (); 12335 12336 // Check flexible array members. 12337 struct incomplete_array *ia = 12338 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 12339 ia->datasize = 10; 12340 for (int i = 0; i < ia->datasize; ++i) 12341 ia->data[i] = i * 1.234; 12342 12343 // Check named initializers. 12344 struct named_init ni = { 12345 .number = 34, 12346 .name = L"Test wide string", 12347 .average = 543.34343, 12348 }; 12349 12350 ni.number = 58; 12351 12352 int dynamic_array[ni.number]; 12353 dynamic_array[ni.number - 1] = 543; 12354 12355 // work around unused variable warnings 12356 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' 12357 || dynamic_array[ni.number - 1] != 543); 12358 12359 ; 12360 return 0; 12361} 12362_ACEOF 12363for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99 12364do 12365 CC="$ac_save_CC $ac_arg" 12366 if ac_fn_c_try_compile "$LINENO"; then : 12367 ac_cv_prog_cc_c99=$ac_arg 12368fi 12369rm -f core conftest.err conftest.$ac_objext 12370 test "x$ac_cv_prog_cc_c99" != "xno" && break 12371done 12372rm -f conftest.$ac_ext 12373CC=$ac_save_CC 12374 12375fi 12376# AC_CACHE_VAL 12377case "x$ac_cv_prog_cc_c99" in 12378 x) 12379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 12380$as_echo "none needed" >&6; } ;; 12381 xno) 12382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 12383$as_echo "unsupported" >&6; } ;; 12384 *) 12385 CC="$CC $ac_cv_prog_cc_c99" 12386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 12387$as_echo "$ac_cv_prog_cc_c99" >&6; } ;; 12388esac 12389if test "x$ac_cv_prog_cc_c99" != xno; then : 12390 12391fi 12392 12393 12394 12395 12396 12397 12398ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" 12399if test "x$ac_cv_have_decl___clang__" = xyes; then : 12400 CLANGCC="yes" 12401else 12402 CLANGCC="no" 12403fi 12404 12405ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" 12406if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then : 12407 INTELCC="yes" 12408else 12409 INTELCC="no" 12410fi 12411 12412ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" 12413if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then : 12414 SUNCC="yes" 12415else 12416 SUNCC="no" 12417fi 12418 12419 12420 12421 12422 12423 12424 12425 12426 12427if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 12428 if test -n "$ac_tool_prefix"; then 12429 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 12430set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 12431{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12432$as_echo_n "checking for $ac_word... " >&6; } 12433if ${ac_cv_path_PKG_CONFIG+:} false; then : 12434 $as_echo_n "(cached) " >&6 12435else 12436 case $PKG_CONFIG in 12437 [\\/]* | ?:[\\/]*) 12438 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 12439 ;; 12440 *) 12441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12442for as_dir in $PATH 12443do 12444 IFS=$as_save_IFS 12445 test -z "$as_dir" && as_dir=. 12446 for ac_exec_ext in '' $ac_executable_extensions; do 12447 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12448 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 12449 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12450 break 2 12451 fi 12452done 12453 done 12454IFS=$as_save_IFS 12455 12456 ;; 12457esac 12458fi 12459PKG_CONFIG=$ac_cv_path_PKG_CONFIG 12460if test -n "$PKG_CONFIG"; then 12461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 12462$as_echo "$PKG_CONFIG" >&6; } 12463else 12464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12465$as_echo "no" >&6; } 12466fi 12467 12468 12469fi 12470if test -z "$ac_cv_path_PKG_CONFIG"; then 12471 ac_pt_PKG_CONFIG=$PKG_CONFIG 12472 # Extract the first word of "pkg-config", so it can be a program name with args. 12473set dummy pkg-config; ac_word=$2 12474{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12475$as_echo_n "checking for $ac_word... " >&6; } 12476if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 12477 $as_echo_n "(cached) " >&6 12478else 12479 case $ac_pt_PKG_CONFIG in 12480 [\\/]* | ?:[\\/]*) 12481 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 12482 ;; 12483 *) 12484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12485for as_dir in $PATH 12486do 12487 IFS=$as_save_IFS 12488 test -z "$as_dir" && as_dir=. 12489 for ac_exec_ext in '' $ac_executable_extensions; do 12490 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12491 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 12492 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12493 break 2 12494 fi 12495done 12496 done 12497IFS=$as_save_IFS 12498 12499 ;; 12500esac 12501fi 12502ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 12503if test -n "$ac_pt_PKG_CONFIG"; then 12504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 12505$as_echo "$ac_pt_PKG_CONFIG" >&6; } 12506else 12507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12508$as_echo "no" >&6; } 12509fi 12510 12511 if test "x$ac_pt_PKG_CONFIG" = x; then 12512 PKG_CONFIG="" 12513 else 12514 case $cross_compiling:$ac_tool_warned in 12515yes:) 12516{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12517$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12518ac_tool_warned=yes ;; 12519esac 12520 PKG_CONFIG=$ac_pt_PKG_CONFIG 12521 fi 12522else 12523 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 12524fi 12525 12526fi 12527if test -n "$PKG_CONFIG"; then 12528 _pkg_min_version=0.9.0 12529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 12530$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 12531 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 12532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12533$as_echo "yes" >&6; } 12534 else 12535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12536$as_echo "no" >&6; } 12537 PKG_CONFIG="" 12538 fi 12539fi 12540 12541 12542 12543 12544 12545# Check whether --enable-selective-werror was given. 12546if test "${enable_selective_werror+set}" = set; then : 12547 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval 12548else 12549 SELECTIVE_WERROR=yes 12550fi 12551 12552 12553 12554 12555 12556# -v is too short to test reliably with XORG_TESTSET_CFLAG 12557if test "x$SUNCC" = "xyes"; then 12558 BASE_CFLAGS="-v" 12559else 12560 BASE_CFLAGS="" 12561fi 12562 12563# This chunk of warnings were those that existed in the legacy CWARNFLAGS 12564 12565 12566 12567 12568 12569 12570 12571 12572 12573 12574 12575 12576 12577xorg_testset_save_CFLAGS="$CFLAGS" 12578 12579if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 12580 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 12582$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 12583if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 12584 $as_echo_n "(cached) " >&6 12585else 12586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12587/* end confdefs.h. */ 12588int i; 12589_ACEOF 12590if ac_fn_c_try_compile "$LINENO"; then : 12591 xorg_cv_cc_flag_unknown_warning_option=yes 12592else 12593 xorg_cv_cc_flag_unknown_warning_option=no 12594fi 12595rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12596fi 12597{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 12598$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 12599 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 12600 CFLAGS="$xorg_testset_save_CFLAGS" 12601fi 12602 12603if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 12604 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12605 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12606 fi 12607 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 12609$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 12610if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 12611 $as_echo_n "(cached) " >&6 12612else 12613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12614/* end confdefs.h. */ 12615int i; 12616_ACEOF 12617if ac_fn_c_try_compile "$LINENO"; then : 12618 xorg_cv_cc_flag_unused_command_line_argument=yes 12619else 12620 xorg_cv_cc_flag_unused_command_line_argument=no 12621fi 12622rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12623fi 12624{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 12625$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 12626 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 12627 CFLAGS="$xorg_testset_save_CFLAGS" 12628fi 12629 12630found="no" 12631 12632 if test $found = "no" ; then 12633 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12634 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12635 fi 12636 12637 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 12638 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12639 fi 12640 12641 CFLAGS="$CFLAGS -Wall" 12642 12643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5 12644$as_echo_n "checking if $CC supports -Wall... " >&6; } 12645 cacheid=xorg_cv_cc_flag__Wall 12646 if eval \${$cacheid+:} false; then : 12647 $as_echo_n "(cached) " >&6 12648else 12649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12650/* end confdefs.h. */ 12651int i; 12652int 12653main () 12654{ 12655 12656 ; 12657 return 0; 12658} 12659_ACEOF 12660if ac_fn_c_try_link "$LINENO"; then : 12661 eval $cacheid=yes 12662else 12663 eval $cacheid=no 12664fi 12665rm -f core conftest.err conftest.$ac_objext \ 12666 conftest$ac_exeext conftest.$ac_ext 12667fi 12668 12669 12670 CFLAGS="$xorg_testset_save_CFLAGS" 12671 12672 eval supported=\$$cacheid 12673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12674$as_echo "$supported" >&6; } 12675 if test "$supported" = "yes" ; then 12676 BASE_CFLAGS="$BASE_CFLAGS -Wall" 12677 found="yes" 12678 fi 12679 fi 12680 12681 12682 12683 12684 12685 12686 12687 12688 12689 12690 12691 12692 12693 12694 12695xorg_testset_save_CFLAGS="$CFLAGS" 12696 12697if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 12698 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 12700$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 12701if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 12702 $as_echo_n "(cached) " >&6 12703else 12704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12705/* end confdefs.h. */ 12706int i; 12707_ACEOF 12708if ac_fn_c_try_compile "$LINENO"; then : 12709 xorg_cv_cc_flag_unknown_warning_option=yes 12710else 12711 xorg_cv_cc_flag_unknown_warning_option=no 12712fi 12713rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12714fi 12715{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 12716$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 12717 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 12718 CFLAGS="$xorg_testset_save_CFLAGS" 12719fi 12720 12721if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 12722 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12723 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12724 fi 12725 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 12727$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 12728if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 12729 $as_echo_n "(cached) " >&6 12730else 12731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12732/* end confdefs.h. */ 12733int i; 12734_ACEOF 12735if ac_fn_c_try_compile "$LINENO"; then : 12736 xorg_cv_cc_flag_unused_command_line_argument=yes 12737else 12738 xorg_cv_cc_flag_unused_command_line_argument=no 12739fi 12740rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12741fi 12742{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 12743$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 12744 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 12745 CFLAGS="$xorg_testset_save_CFLAGS" 12746fi 12747 12748found="no" 12749 12750 if test $found = "no" ; then 12751 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12752 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12753 fi 12754 12755 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 12756 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12757 fi 12758 12759 CFLAGS="$CFLAGS -Wpointer-arith" 12760 12761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5 12762$as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; } 12763 cacheid=xorg_cv_cc_flag__Wpointer_arith 12764 if eval \${$cacheid+:} false; then : 12765 $as_echo_n "(cached) " >&6 12766else 12767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12768/* end confdefs.h. */ 12769int i; 12770int 12771main () 12772{ 12773 12774 ; 12775 return 0; 12776} 12777_ACEOF 12778if ac_fn_c_try_link "$LINENO"; then : 12779 eval $cacheid=yes 12780else 12781 eval $cacheid=no 12782fi 12783rm -f core conftest.err conftest.$ac_objext \ 12784 conftest$ac_exeext conftest.$ac_ext 12785fi 12786 12787 12788 CFLAGS="$xorg_testset_save_CFLAGS" 12789 12790 eval supported=\$$cacheid 12791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12792$as_echo "$supported" >&6; } 12793 if test "$supported" = "yes" ; then 12794 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith" 12795 found="yes" 12796 fi 12797 fi 12798 12799 12800 12801 12802 12803 12804 12805 12806 12807 12808 12809 12810 12811 12812 12813xorg_testset_save_CFLAGS="$CFLAGS" 12814 12815if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 12816 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 12818$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 12819if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 12820 $as_echo_n "(cached) " >&6 12821else 12822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12823/* end confdefs.h. */ 12824int i; 12825_ACEOF 12826if ac_fn_c_try_compile "$LINENO"; then : 12827 xorg_cv_cc_flag_unknown_warning_option=yes 12828else 12829 xorg_cv_cc_flag_unknown_warning_option=no 12830fi 12831rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12832fi 12833{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 12834$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 12835 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 12836 CFLAGS="$xorg_testset_save_CFLAGS" 12837fi 12838 12839if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 12840 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12841 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12842 fi 12843 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 12845$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 12846if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 12847 $as_echo_n "(cached) " >&6 12848else 12849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12850/* end confdefs.h. */ 12851int i; 12852_ACEOF 12853if ac_fn_c_try_compile "$LINENO"; then : 12854 xorg_cv_cc_flag_unused_command_line_argument=yes 12855else 12856 xorg_cv_cc_flag_unused_command_line_argument=no 12857fi 12858rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12859fi 12860{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 12861$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 12862 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 12863 CFLAGS="$xorg_testset_save_CFLAGS" 12864fi 12865 12866found="no" 12867 12868 if test $found = "no" ; then 12869 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12870 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12871 fi 12872 12873 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 12874 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12875 fi 12876 12877 CFLAGS="$CFLAGS -Wmissing-declarations" 12878 12879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5 12880$as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; } 12881 cacheid=xorg_cv_cc_flag__Wmissing_declarations 12882 if eval \${$cacheid+:} false; then : 12883 $as_echo_n "(cached) " >&6 12884else 12885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12886/* end confdefs.h. */ 12887int i; 12888int 12889main () 12890{ 12891 12892 ; 12893 return 0; 12894} 12895_ACEOF 12896if ac_fn_c_try_link "$LINENO"; then : 12897 eval $cacheid=yes 12898else 12899 eval $cacheid=no 12900fi 12901rm -f core conftest.err conftest.$ac_objext \ 12902 conftest$ac_exeext conftest.$ac_ext 12903fi 12904 12905 12906 CFLAGS="$xorg_testset_save_CFLAGS" 12907 12908 eval supported=\$$cacheid 12909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12910$as_echo "$supported" >&6; } 12911 if test "$supported" = "yes" ; then 12912 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations" 12913 found="yes" 12914 fi 12915 fi 12916 12917 12918 12919 12920 12921 12922 12923 12924 12925 12926 12927 12928 12929 12930 12931xorg_testset_save_CFLAGS="$CFLAGS" 12932 12933if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 12934 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 12936$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 12937if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 12938 $as_echo_n "(cached) " >&6 12939else 12940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12941/* end confdefs.h. */ 12942int i; 12943_ACEOF 12944if ac_fn_c_try_compile "$LINENO"; then : 12945 xorg_cv_cc_flag_unknown_warning_option=yes 12946else 12947 xorg_cv_cc_flag_unknown_warning_option=no 12948fi 12949rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12950fi 12951{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 12952$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 12953 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 12954 CFLAGS="$xorg_testset_save_CFLAGS" 12955fi 12956 12957if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 12958 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12959 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12960 fi 12961 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 12963$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 12964if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 12965 $as_echo_n "(cached) " >&6 12966else 12967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12968/* end confdefs.h. */ 12969int i; 12970_ACEOF 12971if ac_fn_c_try_compile "$LINENO"; then : 12972 xorg_cv_cc_flag_unused_command_line_argument=yes 12973else 12974 xorg_cv_cc_flag_unused_command_line_argument=no 12975fi 12976rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12977fi 12978{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 12979$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 12980 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 12981 CFLAGS="$xorg_testset_save_CFLAGS" 12982fi 12983 12984found="no" 12985 12986 if test $found = "no" ; then 12987 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12988 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12989 fi 12990 12991 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 12992 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12993 fi 12994 12995 CFLAGS="$CFLAGS -Wformat=2" 12996 12997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5 12998$as_echo_n "checking if $CC supports -Wformat=2... " >&6; } 12999 cacheid=xorg_cv_cc_flag__Wformat_2 13000 if eval \${$cacheid+:} false; then : 13001 $as_echo_n "(cached) " >&6 13002else 13003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13004/* end confdefs.h. */ 13005int i; 13006int 13007main () 13008{ 13009 13010 ; 13011 return 0; 13012} 13013_ACEOF 13014if ac_fn_c_try_link "$LINENO"; then : 13015 eval $cacheid=yes 13016else 13017 eval $cacheid=no 13018fi 13019rm -f core conftest.err conftest.$ac_objext \ 13020 conftest$ac_exeext conftest.$ac_ext 13021fi 13022 13023 13024 CFLAGS="$xorg_testset_save_CFLAGS" 13025 13026 eval supported=\$$cacheid 13027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13028$as_echo "$supported" >&6; } 13029 if test "$supported" = "yes" ; then 13030 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2" 13031 found="yes" 13032 fi 13033 fi 13034 13035 if test $found = "no" ; then 13036 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13037 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13038 fi 13039 13040 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13041 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13042 fi 13043 13044 CFLAGS="$CFLAGS -Wformat" 13045 13046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5 13047$as_echo_n "checking if $CC supports -Wformat... " >&6; } 13048 cacheid=xorg_cv_cc_flag__Wformat 13049 if eval \${$cacheid+:} false; then : 13050 $as_echo_n "(cached) " >&6 13051else 13052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13053/* end confdefs.h. */ 13054int i; 13055int 13056main () 13057{ 13058 13059 ; 13060 return 0; 13061} 13062_ACEOF 13063if ac_fn_c_try_link "$LINENO"; then : 13064 eval $cacheid=yes 13065else 13066 eval $cacheid=no 13067fi 13068rm -f core conftest.err conftest.$ac_objext \ 13069 conftest$ac_exeext conftest.$ac_ext 13070fi 13071 13072 13073 CFLAGS="$xorg_testset_save_CFLAGS" 13074 13075 eval supported=\$$cacheid 13076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13077$as_echo "$supported" >&6; } 13078 if test "$supported" = "yes" ; then 13079 BASE_CFLAGS="$BASE_CFLAGS -Wformat" 13080 found="yes" 13081 fi 13082 fi 13083 13084 13085 13086 13087 13088 13089 13090 13091 13092 13093 13094 13095 13096 13097 13098 13099 13100xorg_testset_save_CFLAGS="$CFLAGS" 13101 13102if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13103 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13105$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13106if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13107 $as_echo_n "(cached) " >&6 13108else 13109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13110/* end confdefs.h. */ 13111int i; 13112_ACEOF 13113if ac_fn_c_try_compile "$LINENO"; then : 13114 xorg_cv_cc_flag_unknown_warning_option=yes 13115else 13116 xorg_cv_cc_flag_unknown_warning_option=no 13117fi 13118rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13119fi 13120{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13121$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13122 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13123 CFLAGS="$xorg_testset_save_CFLAGS" 13124fi 13125 13126if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13127 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13128 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13129 fi 13130 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13132$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13133if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13134 $as_echo_n "(cached) " >&6 13135else 13136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13137/* end confdefs.h. */ 13138int i; 13139_ACEOF 13140if ac_fn_c_try_compile "$LINENO"; then : 13141 xorg_cv_cc_flag_unused_command_line_argument=yes 13142else 13143 xorg_cv_cc_flag_unused_command_line_argument=no 13144fi 13145rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13146fi 13147{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13148$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13149 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13150 CFLAGS="$xorg_testset_save_CFLAGS" 13151fi 13152 13153found="no" 13154 13155 if test $found = "no" ; then 13156 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13157 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13158 fi 13159 13160 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13161 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13162 fi 13163 13164 CFLAGS="$CFLAGS -Wstrict-prototypes" 13165 13166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5 13167$as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; } 13168 cacheid=xorg_cv_cc_flag__Wstrict_prototypes 13169 if eval \${$cacheid+:} false; then : 13170 $as_echo_n "(cached) " >&6 13171else 13172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13173/* end confdefs.h. */ 13174int i; 13175int 13176main () 13177{ 13178 13179 ; 13180 return 0; 13181} 13182_ACEOF 13183if ac_fn_c_try_link "$LINENO"; then : 13184 eval $cacheid=yes 13185else 13186 eval $cacheid=no 13187fi 13188rm -f core conftest.err conftest.$ac_objext \ 13189 conftest$ac_exeext conftest.$ac_ext 13190fi 13191 13192 13193 CFLAGS="$xorg_testset_save_CFLAGS" 13194 13195 eval supported=\$$cacheid 13196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13197$as_echo "$supported" >&6; } 13198 if test "$supported" = "yes" ; then 13199 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes" 13200 found="yes" 13201 fi 13202 fi 13203 13204 13205 13206 13207 13208 13209 13210 13211 13212 13213 13214 13215 13216 13217 13218xorg_testset_save_CFLAGS="$CFLAGS" 13219 13220if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13221 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13223$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13224if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13225 $as_echo_n "(cached) " >&6 13226else 13227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13228/* end confdefs.h. */ 13229int i; 13230_ACEOF 13231if ac_fn_c_try_compile "$LINENO"; then : 13232 xorg_cv_cc_flag_unknown_warning_option=yes 13233else 13234 xorg_cv_cc_flag_unknown_warning_option=no 13235fi 13236rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13237fi 13238{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13239$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13240 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13241 CFLAGS="$xorg_testset_save_CFLAGS" 13242fi 13243 13244if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13245 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13246 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13247 fi 13248 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13250$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13251if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13252 $as_echo_n "(cached) " >&6 13253else 13254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13255/* end confdefs.h. */ 13256int i; 13257_ACEOF 13258if ac_fn_c_try_compile "$LINENO"; then : 13259 xorg_cv_cc_flag_unused_command_line_argument=yes 13260else 13261 xorg_cv_cc_flag_unused_command_line_argument=no 13262fi 13263rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13264fi 13265{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13266$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13267 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13268 CFLAGS="$xorg_testset_save_CFLAGS" 13269fi 13270 13271found="no" 13272 13273 if test $found = "no" ; then 13274 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13275 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13276 fi 13277 13278 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13279 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13280 fi 13281 13282 CFLAGS="$CFLAGS -Wmissing-prototypes" 13283 13284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5 13285$as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; } 13286 cacheid=xorg_cv_cc_flag__Wmissing_prototypes 13287 if eval \${$cacheid+:} false; then : 13288 $as_echo_n "(cached) " >&6 13289else 13290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13291/* end confdefs.h. */ 13292int i; 13293int 13294main () 13295{ 13296 13297 ; 13298 return 0; 13299} 13300_ACEOF 13301if ac_fn_c_try_link "$LINENO"; then : 13302 eval $cacheid=yes 13303else 13304 eval $cacheid=no 13305fi 13306rm -f core conftest.err conftest.$ac_objext \ 13307 conftest$ac_exeext conftest.$ac_ext 13308fi 13309 13310 13311 CFLAGS="$xorg_testset_save_CFLAGS" 13312 13313 eval supported=\$$cacheid 13314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13315$as_echo "$supported" >&6; } 13316 if test "$supported" = "yes" ; then 13317 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes" 13318 found="yes" 13319 fi 13320 fi 13321 13322 13323 13324 13325 13326 13327 13328 13329 13330 13331 13332 13333 13334 13335 13336xorg_testset_save_CFLAGS="$CFLAGS" 13337 13338if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13339 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13341$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13342if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13343 $as_echo_n "(cached) " >&6 13344else 13345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13346/* end confdefs.h. */ 13347int i; 13348_ACEOF 13349if ac_fn_c_try_compile "$LINENO"; then : 13350 xorg_cv_cc_flag_unknown_warning_option=yes 13351else 13352 xorg_cv_cc_flag_unknown_warning_option=no 13353fi 13354rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13355fi 13356{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13357$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13358 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13359 CFLAGS="$xorg_testset_save_CFLAGS" 13360fi 13361 13362if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13363 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13364 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13365 fi 13366 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13368$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13369if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13370 $as_echo_n "(cached) " >&6 13371else 13372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13373/* end confdefs.h. */ 13374int i; 13375_ACEOF 13376if ac_fn_c_try_compile "$LINENO"; then : 13377 xorg_cv_cc_flag_unused_command_line_argument=yes 13378else 13379 xorg_cv_cc_flag_unused_command_line_argument=no 13380fi 13381rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13382fi 13383{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13384$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13385 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13386 CFLAGS="$xorg_testset_save_CFLAGS" 13387fi 13388 13389found="no" 13390 13391 if test $found = "no" ; then 13392 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13393 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13394 fi 13395 13396 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13397 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13398 fi 13399 13400 CFLAGS="$CFLAGS -Wnested-externs" 13401 13402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5 13403$as_echo_n "checking if $CC supports -Wnested-externs... " >&6; } 13404 cacheid=xorg_cv_cc_flag__Wnested_externs 13405 if eval \${$cacheid+:} false; then : 13406 $as_echo_n "(cached) " >&6 13407else 13408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13409/* end confdefs.h. */ 13410int i; 13411int 13412main () 13413{ 13414 13415 ; 13416 return 0; 13417} 13418_ACEOF 13419if ac_fn_c_try_link "$LINENO"; then : 13420 eval $cacheid=yes 13421else 13422 eval $cacheid=no 13423fi 13424rm -f core conftest.err conftest.$ac_objext \ 13425 conftest$ac_exeext conftest.$ac_ext 13426fi 13427 13428 13429 CFLAGS="$xorg_testset_save_CFLAGS" 13430 13431 eval supported=\$$cacheid 13432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13433$as_echo "$supported" >&6; } 13434 if test "$supported" = "yes" ; then 13435 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs" 13436 found="yes" 13437 fi 13438 fi 13439 13440 13441 13442 13443 13444 13445 13446 13447 13448 13449 13450 13451 13452 13453 13454xorg_testset_save_CFLAGS="$CFLAGS" 13455 13456if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13457 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13459$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13460if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13461 $as_echo_n "(cached) " >&6 13462else 13463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13464/* end confdefs.h. */ 13465int i; 13466_ACEOF 13467if ac_fn_c_try_compile "$LINENO"; then : 13468 xorg_cv_cc_flag_unknown_warning_option=yes 13469else 13470 xorg_cv_cc_flag_unknown_warning_option=no 13471fi 13472rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13473fi 13474{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13475$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13476 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13477 CFLAGS="$xorg_testset_save_CFLAGS" 13478fi 13479 13480if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13481 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13482 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13483 fi 13484 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13486$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13487if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13488 $as_echo_n "(cached) " >&6 13489else 13490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13491/* end confdefs.h. */ 13492int i; 13493_ACEOF 13494if ac_fn_c_try_compile "$LINENO"; then : 13495 xorg_cv_cc_flag_unused_command_line_argument=yes 13496else 13497 xorg_cv_cc_flag_unused_command_line_argument=no 13498fi 13499rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13500fi 13501{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13502$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13503 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13504 CFLAGS="$xorg_testset_save_CFLAGS" 13505fi 13506 13507found="no" 13508 13509 if test $found = "no" ; then 13510 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13511 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13512 fi 13513 13514 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13515 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13516 fi 13517 13518 CFLAGS="$CFLAGS -Wbad-function-cast" 13519 13520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5 13521$as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; } 13522 cacheid=xorg_cv_cc_flag__Wbad_function_cast 13523 if eval \${$cacheid+:} false; then : 13524 $as_echo_n "(cached) " >&6 13525else 13526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13527/* end confdefs.h. */ 13528int i; 13529int 13530main () 13531{ 13532 13533 ; 13534 return 0; 13535} 13536_ACEOF 13537if ac_fn_c_try_link "$LINENO"; then : 13538 eval $cacheid=yes 13539else 13540 eval $cacheid=no 13541fi 13542rm -f core conftest.err conftest.$ac_objext \ 13543 conftest$ac_exeext conftest.$ac_ext 13544fi 13545 13546 13547 CFLAGS="$xorg_testset_save_CFLAGS" 13548 13549 eval supported=\$$cacheid 13550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13551$as_echo "$supported" >&6; } 13552 if test "$supported" = "yes" ; then 13553 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast" 13554 found="yes" 13555 fi 13556 fi 13557 13558 13559 13560 13561 13562 13563 13564 13565 13566 13567 13568 13569 13570 13571 13572xorg_testset_save_CFLAGS="$CFLAGS" 13573 13574if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13575 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13577$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13578if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13579 $as_echo_n "(cached) " >&6 13580else 13581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13582/* end confdefs.h. */ 13583int i; 13584_ACEOF 13585if ac_fn_c_try_compile "$LINENO"; then : 13586 xorg_cv_cc_flag_unknown_warning_option=yes 13587else 13588 xorg_cv_cc_flag_unknown_warning_option=no 13589fi 13590rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13591fi 13592{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13593$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13594 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13595 CFLAGS="$xorg_testset_save_CFLAGS" 13596fi 13597 13598if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13599 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13600 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13601 fi 13602 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13604$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13605if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13606 $as_echo_n "(cached) " >&6 13607else 13608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13609/* end confdefs.h. */ 13610int i; 13611_ACEOF 13612if ac_fn_c_try_compile "$LINENO"; then : 13613 xorg_cv_cc_flag_unused_command_line_argument=yes 13614else 13615 xorg_cv_cc_flag_unused_command_line_argument=no 13616fi 13617rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13618fi 13619{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13620$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13621 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13622 CFLAGS="$xorg_testset_save_CFLAGS" 13623fi 13624 13625found="no" 13626 13627 if test $found = "no" ; then 13628 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13629 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13630 fi 13631 13632 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13633 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13634 fi 13635 13636 CFLAGS="$CFLAGS -Wold-style-definition" 13637 13638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5 13639$as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; } 13640 cacheid=xorg_cv_cc_flag__Wold_style_definition 13641 if eval \${$cacheid+:} false; then : 13642 $as_echo_n "(cached) " >&6 13643else 13644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13645/* end confdefs.h. */ 13646int i; 13647int 13648main () 13649{ 13650 13651 ; 13652 return 0; 13653} 13654_ACEOF 13655if ac_fn_c_try_link "$LINENO"; then : 13656 eval $cacheid=yes 13657else 13658 eval $cacheid=no 13659fi 13660rm -f core conftest.err conftest.$ac_objext \ 13661 conftest$ac_exeext conftest.$ac_ext 13662fi 13663 13664 13665 CFLAGS="$xorg_testset_save_CFLAGS" 13666 13667 eval supported=\$$cacheid 13668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13669$as_echo "$supported" >&6; } 13670 if test "$supported" = "yes" ; then 13671 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition" 13672 found="yes" 13673 fi 13674 fi 13675 13676 if test $found = "no" ; then 13677 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13678 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13679 fi 13680 13681 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13682 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13683 fi 13684 13685 CFLAGS="$CFLAGS -fd" 13686 13687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5 13688$as_echo_n "checking if $CC supports -fd... " >&6; } 13689 cacheid=xorg_cv_cc_flag__fd 13690 if eval \${$cacheid+:} false; then : 13691 $as_echo_n "(cached) " >&6 13692else 13693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13694/* end confdefs.h. */ 13695int i; 13696int 13697main () 13698{ 13699 13700 ; 13701 return 0; 13702} 13703_ACEOF 13704if ac_fn_c_try_link "$LINENO"; then : 13705 eval $cacheid=yes 13706else 13707 eval $cacheid=no 13708fi 13709rm -f core conftest.err conftest.$ac_objext \ 13710 conftest$ac_exeext conftest.$ac_ext 13711fi 13712 13713 13714 CFLAGS="$xorg_testset_save_CFLAGS" 13715 13716 eval supported=\$$cacheid 13717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13718$as_echo "$supported" >&6; } 13719 if test "$supported" = "yes" ; then 13720 BASE_CFLAGS="$BASE_CFLAGS -fd" 13721 found="yes" 13722 fi 13723 fi 13724 13725 13726 13727 13728 13729 13730 13731 13732 13733 13734 13735 13736 13737 13738 13739xorg_testset_save_CFLAGS="$CFLAGS" 13740 13741if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13742 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13744$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13745if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13746 $as_echo_n "(cached) " >&6 13747else 13748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13749/* end confdefs.h. */ 13750int i; 13751_ACEOF 13752if ac_fn_c_try_compile "$LINENO"; then : 13753 xorg_cv_cc_flag_unknown_warning_option=yes 13754else 13755 xorg_cv_cc_flag_unknown_warning_option=no 13756fi 13757rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13758fi 13759{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13760$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13761 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13762 CFLAGS="$xorg_testset_save_CFLAGS" 13763fi 13764 13765if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13766 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13767 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13768 fi 13769 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13771$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13772if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13773 $as_echo_n "(cached) " >&6 13774else 13775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13776/* end confdefs.h. */ 13777int i; 13778_ACEOF 13779if ac_fn_c_try_compile "$LINENO"; then : 13780 xorg_cv_cc_flag_unused_command_line_argument=yes 13781else 13782 xorg_cv_cc_flag_unused_command_line_argument=no 13783fi 13784rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13785fi 13786{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13787$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13788 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13789 CFLAGS="$xorg_testset_save_CFLAGS" 13790fi 13791 13792found="no" 13793 13794 if test $found = "no" ; then 13795 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13796 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13797 fi 13798 13799 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13800 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13801 fi 13802 13803 CFLAGS="$CFLAGS -Wdeclaration-after-statement" 13804 13805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5 13806$as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; } 13807 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement 13808 if eval \${$cacheid+:} false; then : 13809 $as_echo_n "(cached) " >&6 13810else 13811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13812/* end confdefs.h. */ 13813int i; 13814int 13815main () 13816{ 13817 13818 ; 13819 return 0; 13820} 13821_ACEOF 13822if ac_fn_c_try_link "$LINENO"; then : 13823 eval $cacheid=yes 13824else 13825 eval $cacheid=no 13826fi 13827rm -f core conftest.err conftest.$ac_objext \ 13828 conftest$ac_exeext conftest.$ac_ext 13829fi 13830 13831 13832 CFLAGS="$xorg_testset_save_CFLAGS" 13833 13834 eval supported=\$$cacheid 13835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13836$as_echo "$supported" >&6; } 13837 if test "$supported" = "yes" ; then 13838 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement" 13839 found="yes" 13840 fi 13841 fi 13842 13843 13844 13845 13846 13847# This chunk adds additional warnings that could catch undesired effects. 13848 13849 13850 13851 13852 13853 13854 13855 13856 13857 13858 13859 13860 13861xorg_testset_save_CFLAGS="$CFLAGS" 13862 13863if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13864 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13866$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13867if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13868 $as_echo_n "(cached) " >&6 13869else 13870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13871/* end confdefs.h. */ 13872int i; 13873_ACEOF 13874if ac_fn_c_try_compile "$LINENO"; then : 13875 xorg_cv_cc_flag_unknown_warning_option=yes 13876else 13877 xorg_cv_cc_flag_unknown_warning_option=no 13878fi 13879rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13880fi 13881{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13882$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13883 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13884 CFLAGS="$xorg_testset_save_CFLAGS" 13885fi 13886 13887if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13888 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13889 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13890 fi 13891 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13893$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13894if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13895 $as_echo_n "(cached) " >&6 13896else 13897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13898/* end confdefs.h. */ 13899int i; 13900_ACEOF 13901if ac_fn_c_try_compile "$LINENO"; then : 13902 xorg_cv_cc_flag_unused_command_line_argument=yes 13903else 13904 xorg_cv_cc_flag_unused_command_line_argument=no 13905fi 13906rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13907fi 13908{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13909$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13910 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13911 CFLAGS="$xorg_testset_save_CFLAGS" 13912fi 13913 13914found="no" 13915 13916 if test $found = "no" ; then 13917 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13918 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13919 fi 13920 13921 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13922 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13923 fi 13924 13925 CFLAGS="$CFLAGS -Wunused" 13926 13927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5 13928$as_echo_n "checking if $CC supports -Wunused... " >&6; } 13929 cacheid=xorg_cv_cc_flag__Wunused 13930 if eval \${$cacheid+:} false; then : 13931 $as_echo_n "(cached) " >&6 13932else 13933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13934/* end confdefs.h. */ 13935int i; 13936int 13937main () 13938{ 13939 13940 ; 13941 return 0; 13942} 13943_ACEOF 13944if ac_fn_c_try_link "$LINENO"; then : 13945 eval $cacheid=yes 13946else 13947 eval $cacheid=no 13948fi 13949rm -f core conftest.err conftest.$ac_objext \ 13950 conftest$ac_exeext conftest.$ac_ext 13951fi 13952 13953 13954 CFLAGS="$xorg_testset_save_CFLAGS" 13955 13956 eval supported=\$$cacheid 13957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13958$as_echo "$supported" >&6; } 13959 if test "$supported" = "yes" ; then 13960 BASE_CFLAGS="$BASE_CFLAGS -Wunused" 13961 found="yes" 13962 fi 13963 fi 13964 13965 13966 13967 13968 13969 13970 13971 13972 13973 13974 13975 13976 13977 13978 13979xorg_testset_save_CFLAGS="$CFLAGS" 13980 13981if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13982 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13984$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13985if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13986 $as_echo_n "(cached) " >&6 13987else 13988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13989/* end confdefs.h. */ 13990int i; 13991_ACEOF 13992if ac_fn_c_try_compile "$LINENO"; then : 13993 xorg_cv_cc_flag_unknown_warning_option=yes 13994else 13995 xorg_cv_cc_flag_unknown_warning_option=no 13996fi 13997rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13998fi 13999{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14000$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14001 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14002 CFLAGS="$xorg_testset_save_CFLAGS" 14003fi 14004 14005if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14006 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14007 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14008 fi 14009 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14011$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14012if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14013 $as_echo_n "(cached) " >&6 14014else 14015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14016/* end confdefs.h. */ 14017int i; 14018_ACEOF 14019if ac_fn_c_try_compile "$LINENO"; then : 14020 xorg_cv_cc_flag_unused_command_line_argument=yes 14021else 14022 xorg_cv_cc_flag_unused_command_line_argument=no 14023fi 14024rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14025fi 14026{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14027$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14028 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14029 CFLAGS="$xorg_testset_save_CFLAGS" 14030fi 14031 14032found="no" 14033 14034 if test $found = "no" ; then 14035 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14036 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14037 fi 14038 14039 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14040 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14041 fi 14042 14043 CFLAGS="$CFLAGS -Wuninitialized" 14044 14045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5 14046$as_echo_n "checking if $CC supports -Wuninitialized... " >&6; } 14047 cacheid=xorg_cv_cc_flag__Wuninitialized 14048 if eval \${$cacheid+:} false; then : 14049 $as_echo_n "(cached) " >&6 14050else 14051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14052/* end confdefs.h. */ 14053int i; 14054int 14055main () 14056{ 14057 14058 ; 14059 return 0; 14060} 14061_ACEOF 14062if ac_fn_c_try_link "$LINENO"; then : 14063 eval $cacheid=yes 14064else 14065 eval $cacheid=no 14066fi 14067rm -f core conftest.err conftest.$ac_objext \ 14068 conftest$ac_exeext conftest.$ac_ext 14069fi 14070 14071 14072 CFLAGS="$xorg_testset_save_CFLAGS" 14073 14074 eval supported=\$$cacheid 14075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14076$as_echo "$supported" >&6; } 14077 if test "$supported" = "yes" ; then 14078 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized" 14079 found="yes" 14080 fi 14081 fi 14082 14083 14084 14085 14086 14087 14088 14089 14090 14091 14092 14093 14094 14095 14096 14097xorg_testset_save_CFLAGS="$CFLAGS" 14098 14099if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14100 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14102$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14103if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14104 $as_echo_n "(cached) " >&6 14105else 14106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14107/* end confdefs.h. */ 14108int i; 14109_ACEOF 14110if ac_fn_c_try_compile "$LINENO"; then : 14111 xorg_cv_cc_flag_unknown_warning_option=yes 14112else 14113 xorg_cv_cc_flag_unknown_warning_option=no 14114fi 14115rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14116fi 14117{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14118$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14119 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14120 CFLAGS="$xorg_testset_save_CFLAGS" 14121fi 14122 14123if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14124 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14125 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14126 fi 14127 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14129$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14130if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14131 $as_echo_n "(cached) " >&6 14132else 14133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14134/* end confdefs.h. */ 14135int i; 14136_ACEOF 14137if ac_fn_c_try_compile "$LINENO"; then : 14138 xorg_cv_cc_flag_unused_command_line_argument=yes 14139else 14140 xorg_cv_cc_flag_unused_command_line_argument=no 14141fi 14142rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14143fi 14144{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14145$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14146 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14147 CFLAGS="$xorg_testset_save_CFLAGS" 14148fi 14149 14150found="no" 14151 14152 if test $found = "no" ; then 14153 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14154 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14155 fi 14156 14157 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14158 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14159 fi 14160 14161 CFLAGS="$CFLAGS -Wshadow" 14162 14163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5 14164$as_echo_n "checking if $CC supports -Wshadow... " >&6; } 14165 cacheid=xorg_cv_cc_flag__Wshadow 14166 if eval \${$cacheid+:} false; then : 14167 $as_echo_n "(cached) " >&6 14168else 14169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14170/* end confdefs.h. */ 14171int i; 14172int 14173main () 14174{ 14175 14176 ; 14177 return 0; 14178} 14179_ACEOF 14180if ac_fn_c_try_link "$LINENO"; then : 14181 eval $cacheid=yes 14182else 14183 eval $cacheid=no 14184fi 14185rm -f core conftest.err conftest.$ac_objext \ 14186 conftest$ac_exeext conftest.$ac_ext 14187fi 14188 14189 14190 CFLAGS="$xorg_testset_save_CFLAGS" 14191 14192 eval supported=\$$cacheid 14193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14194$as_echo "$supported" >&6; } 14195 if test "$supported" = "yes" ; then 14196 BASE_CFLAGS="$BASE_CFLAGS -Wshadow" 14197 found="yes" 14198 fi 14199 fi 14200 14201 14202 14203 14204 14205 14206 14207 14208 14209 14210 14211 14212 14213 14214 14215xorg_testset_save_CFLAGS="$CFLAGS" 14216 14217if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14218 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14220$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14221if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14222 $as_echo_n "(cached) " >&6 14223else 14224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14225/* end confdefs.h. */ 14226int i; 14227_ACEOF 14228if ac_fn_c_try_compile "$LINENO"; then : 14229 xorg_cv_cc_flag_unknown_warning_option=yes 14230else 14231 xorg_cv_cc_flag_unknown_warning_option=no 14232fi 14233rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14234fi 14235{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14236$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14237 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14238 CFLAGS="$xorg_testset_save_CFLAGS" 14239fi 14240 14241if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14242 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14243 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14244 fi 14245 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14247$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14248if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14249 $as_echo_n "(cached) " >&6 14250else 14251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14252/* end confdefs.h. */ 14253int i; 14254_ACEOF 14255if ac_fn_c_try_compile "$LINENO"; then : 14256 xorg_cv_cc_flag_unused_command_line_argument=yes 14257else 14258 xorg_cv_cc_flag_unused_command_line_argument=no 14259fi 14260rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14261fi 14262{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14263$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14264 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14265 CFLAGS="$xorg_testset_save_CFLAGS" 14266fi 14267 14268found="no" 14269 14270 if test $found = "no" ; then 14271 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14272 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14273 fi 14274 14275 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14276 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14277 fi 14278 14279 CFLAGS="$CFLAGS -Wmissing-noreturn" 14280 14281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5 14282$as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; } 14283 cacheid=xorg_cv_cc_flag__Wmissing_noreturn 14284 if eval \${$cacheid+:} false; then : 14285 $as_echo_n "(cached) " >&6 14286else 14287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14288/* end confdefs.h. */ 14289int i; 14290int 14291main () 14292{ 14293 14294 ; 14295 return 0; 14296} 14297_ACEOF 14298if ac_fn_c_try_link "$LINENO"; then : 14299 eval $cacheid=yes 14300else 14301 eval $cacheid=no 14302fi 14303rm -f core conftest.err conftest.$ac_objext \ 14304 conftest$ac_exeext conftest.$ac_ext 14305fi 14306 14307 14308 CFLAGS="$xorg_testset_save_CFLAGS" 14309 14310 eval supported=\$$cacheid 14311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14312$as_echo "$supported" >&6; } 14313 if test "$supported" = "yes" ; then 14314 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn" 14315 found="yes" 14316 fi 14317 fi 14318 14319 14320 14321 14322 14323 14324 14325 14326 14327 14328 14329 14330 14331 14332 14333xorg_testset_save_CFLAGS="$CFLAGS" 14334 14335if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14336 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14338$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14339if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14340 $as_echo_n "(cached) " >&6 14341else 14342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14343/* end confdefs.h. */ 14344int i; 14345_ACEOF 14346if ac_fn_c_try_compile "$LINENO"; then : 14347 xorg_cv_cc_flag_unknown_warning_option=yes 14348else 14349 xorg_cv_cc_flag_unknown_warning_option=no 14350fi 14351rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14352fi 14353{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14354$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14355 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14356 CFLAGS="$xorg_testset_save_CFLAGS" 14357fi 14358 14359if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14360 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14361 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14362 fi 14363 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14365$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14366if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14367 $as_echo_n "(cached) " >&6 14368else 14369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14370/* end confdefs.h. */ 14371int i; 14372_ACEOF 14373if ac_fn_c_try_compile "$LINENO"; then : 14374 xorg_cv_cc_flag_unused_command_line_argument=yes 14375else 14376 xorg_cv_cc_flag_unused_command_line_argument=no 14377fi 14378rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14379fi 14380{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14381$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14382 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14383 CFLAGS="$xorg_testset_save_CFLAGS" 14384fi 14385 14386found="no" 14387 14388 if test $found = "no" ; then 14389 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14390 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14391 fi 14392 14393 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14394 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14395 fi 14396 14397 CFLAGS="$CFLAGS -Wmissing-format-attribute" 14398 14399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5 14400$as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; } 14401 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute 14402 if eval \${$cacheid+:} false; then : 14403 $as_echo_n "(cached) " >&6 14404else 14405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14406/* end confdefs.h. */ 14407int i; 14408int 14409main () 14410{ 14411 14412 ; 14413 return 0; 14414} 14415_ACEOF 14416if ac_fn_c_try_link "$LINENO"; then : 14417 eval $cacheid=yes 14418else 14419 eval $cacheid=no 14420fi 14421rm -f core conftest.err conftest.$ac_objext \ 14422 conftest$ac_exeext conftest.$ac_ext 14423fi 14424 14425 14426 CFLAGS="$xorg_testset_save_CFLAGS" 14427 14428 eval supported=\$$cacheid 14429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14430$as_echo "$supported" >&6; } 14431 if test "$supported" = "yes" ; then 14432 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute" 14433 found="yes" 14434 fi 14435 fi 14436 14437 14438 14439 14440 14441 14442 14443 14444 14445 14446 14447 14448 14449 14450 14451xorg_testset_save_CFLAGS="$CFLAGS" 14452 14453if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14454 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14456$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14457if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14458 $as_echo_n "(cached) " >&6 14459else 14460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14461/* end confdefs.h. */ 14462int i; 14463_ACEOF 14464if ac_fn_c_try_compile "$LINENO"; then : 14465 xorg_cv_cc_flag_unknown_warning_option=yes 14466else 14467 xorg_cv_cc_flag_unknown_warning_option=no 14468fi 14469rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14470fi 14471{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14472$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14473 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14474 CFLAGS="$xorg_testset_save_CFLAGS" 14475fi 14476 14477if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14478 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14479 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14480 fi 14481 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14483$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14484if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14485 $as_echo_n "(cached) " >&6 14486else 14487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14488/* end confdefs.h. */ 14489int i; 14490_ACEOF 14491if ac_fn_c_try_compile "$LINENO"; then : 14492 xorg_cv_cc_flag_unused_command_line_argument=yes 14493else 14494 xorg_cv_cc_flag_unused_command_line_argument=no 14495fi 14496rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14497fi 14498{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14499$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14500 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14501 CFLAGS="$xorg_testset_save_CFLAGS" 14502fi 14503 14504found="no" 14505 14506 if test $found = "no" ; then 14507 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14508 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14509 fi 14510 14511 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14512 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14513 fi 14514 14515 CFLAGS="$CFLAGS -Wredundant-decls" 14516 14517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5 14518$as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; } 14519 cacheid=xorg_cv_cc_flag__Wredundant_decls 14520 if eval \${$cacheid+:} false; then : 14521 $as_echo_n "(cached) " >&6 14522else 14523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14524/* end confdefs.h. */ 14525int i; 14526int 14527main () 14528{ 14529 14530 ; 14531 return 0; 14532} 14533_ACEOF 14534if ac_fn_c_try_link "$LINENO"; then : 14535 eval $cacheid=yes 14536else 14537 eval $cacheid=no 14538fi 14539rm -f core conftest.err conftest.$ac_objext \ 14540 conftest$ac_exeext conftest.$ac_ext 14541fi 14542 14543 14544 CFLAGS="$xorg_testset_save_CFLAGS" 14545 14546 eval supported=\$$cacheid 14547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14548$as_echo "$supported" >&6; } 14549 if test "$supported" = "yes" ; then 14550 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls" 14551 found="yes" 14552 fi 14553 fi 14554 14555 14556 14557 14558 14559 14560 14561 14562 14563 14564 14565 14566 14567 14568 14569xorg_testset_save_CFLAGS="$CFLAGS" 14570 14571if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14572 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14574$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14575if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14576 $as_echo_n "(cached) " >&6 14577else 14578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14579/* end confdefs.h. */ 14580int i; 14581_ACEOF 14582if ac_fn_c_try_compile "$LINENO"; then : 14583 xorg_cv_cc_flag_unknown_warning_option=yes 14584else 14585 xorg_cv_cc_flag_unknown_warning_option=no 14586fi 14587rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14588fi 14589{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14590$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14591 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14592 CFLAGS="$xorg_testset_save_CFLAGS" 14593fi 14594 14595if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14596 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14597 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14598 fi 14599 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14601$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14602if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14603 $as_echo_n "(cached) " >&6 14604else 14605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14606/* end confdefs.h. */ 14607int i; 14608_ACEOF 14609if ac_fn_c_try_compile "$LINENO"; then : 14610 xorg_cv_cc_flag_unused_command_line_argument=yes 14611else 14612 xorg_cv_cc_flag_unused_command_line_argument=no 14613fi 14614rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14615fi 14616{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14617$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14618 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14619 CFLAGS="$xorg_testset_save_CFLAGS" 14620fi 14621 14622found="no" 14623 14624 if test $found = "no" ; then 14625 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14626 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14627 fi 14628 14629 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14630 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14631 fi 14632 14633 CFLAGS="$CFLAGS -Wlogical-op" 14634 14635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5 14636$as_echo_n "checking if $CC supports -Wlogical-op... " >&6; } 14637 cacheid=xorg_cv_cc_flag__Wlogical_op 14638 if eval \${$cacheid+:} false; then : 14639 $as_echo_n "(cached) " >&6 14640else 14641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14642/* end confdefs.h. */ 14643int i; 14644int 14645main () 14646{ 14647 14648 ; 14649 return 0; 14650} 14651_ACEOF 14652if ac_fn_c_try_link "$LINENO"; then : 14653 eval $cacheid=yes 14654else 14655 eval $cacheid=no 14656fi 14657rm -f core conftest.err conftest.$ac_objext \ 14658 conftest$ac_exeext conftest.$ac_ext 14659fi 14660 14661 14662 CFLAGS="$xorg_testset_save_CFLAGS" 14663 14664 eval supported=\$$cacheid 14665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14666$as_echo "$supported" >&6; } 14667 if test "$supported" = "yes" ; then 14668 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op" 14669 found="yes" 14670 fi 14671 fi 14672 14673 14674 14675# These are currently disabled because they are noisy. They will be enabled 14676# in the future once the codebase is sufficiently modernized to silence 14677# them. For now, I don't want them to drown out the other warnings. 14678# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses]) 14679# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align]) 14680# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual]) 14681 14682# Turn some warnings into errors, so we don't accidently get successful builds 14683# when there are problems that should be fixed. 14684 14685if test "x$SELECTIVE_WERROR" = "xyes" ; then 14686 14687 14688 14689 14690 14691 14692 14693 14694 14695 14696 14697 14698 14699xorg_testset_save_CFLAGS="$CFLAGS" 14700 14701if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14702 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14704$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14705if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14706 $as_echo_n "(cached) " >&6 14707else 14708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14709/* end confdefs.h. */ 14710int i; 14711_ACEOF 14712if ac_fn_c_try_compile "$LINENO"; then : 14713 xorg_cv_cc_flag_unknown_warning_option=yes 14714else 14715 xorg_cv_cc_flag_unknown_warning_option=no 14716fi 14717rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14718fi 14719{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14720$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14721 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14722 CFLAGS="$xorg_testset_save_CFLAGS" 14723fi 14724 14725if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14726 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14727 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14728 fi 14729 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14731$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14732if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14733 $as_echo_n "(cached) " >&6 14734else 14735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14736/* end confdefs.h. */ 14737int i; 14738_ACEOF 14739if ac_fn_c_try_compile "$LINENO"; then : 14740 xorg_cv_cc_flag_unused_command_line_argument=yes 14741else 14742 xorg_cv_cc_flag_unused_command_line_argument=no 14743fi 14744rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14745fi 14746{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14747$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14748 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14749 CFLAGS="$xorg_testset_save_CFLAGS" 14750fi 14751 14752found="no" 14753 14754 if test $found = "no" ; then 14755 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14756 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14757 fi 14758 14759 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14760 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14761 fi 14762 14763 CFLAGS="$CFLAGS -Werror=implicit" 14764 14765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5 14766$as_echo_n "checking if $CC supports -Werror=implicit... " >&6; } 14767 cacheid=xorg_cv_cc_flag__Werror_implicit 14768 if eval \${$cacheid+:} false; then : 14769 $as_echo_n "(cached) " >&6 14770else 14771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14772/* end confdefs.h. */ 14773int i; 14774int 14775main () 14776{ 14777 14778 ; 14779 return 0; 14780} 14781_ACEOF 14782if ac_fn_c_try_link "$LINENO"; then : 14783 eval $cacheid=yes 14784else 14785 eval $cacheid=no 14786fi 14787rm -f core conftest.err conftest.$ac_objext \ 14788 conftest$ac_exeext conftest.$ac_ext 14789fi 14790 14791 14792 CFLAGS="$xorg_testset_save_CFLAGS" 14793 14794 eval supported=\$$cacheid 14795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14796$as_echo "$supported" >&6; } 14797 if test "$supported" = "yes" ; then 14798 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit" 14799 found="yes" 14800 fi 14801 fi 14802 14803 if test $found = "no" ; then 14804 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14805 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14806 fi 14807 14808 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14809 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14810 fi 14811 14812 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 14813 14814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5 14815$as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; } 14816 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED 14817 if eval \${$cacheid+:} false; then : 14818 $as_echo_n "(cached) " >&6 14819else 14820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14821/* end confdefs.h. */ 14822int i; 14823int 14824main () 14825{ 14826 14827 ; 14828 return 0; 14829} 14830_ACEOF 14831if ac_fn_c_try_link "$LINENO"; then : 14832 eval $cacheid=yes 14833else 14834 eval $cacheid=no 14835fi 14836rm -f core conftest.err conftest.$ac_objext \ 14837 conftest$ac_exeext conftest.$ac_ext 14838fi 14839 14840 14841 CFLAGS="$xorg_testset_save_CFLAGS" 14842 14843 eval supported=\$$cacheid 14844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14845$as_echo "$supported" >&6; } 14846 if test "$supported" = "yes" ; then 14847 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 14848 found="yes" 14849 fi 14850 fi 14851 14852 14853 14854 14855 14856 14857 14858 14859 14860 14861 14862 14863 14864 14865 14866xorg_testset_save_CFLAGS="$CFLAGS" 14867 14868if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14869 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14871$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14872if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14873 $as_echo_n "(cached) " >&6 14874else 14875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14876/* end confdefs.h. */ 14877int i; 14878_ACEOF 14879if ac_fn_c_try_compile "$LINENO"; then : 14880 xorg_cv_cc_flag_unknown_warning_option=yes 14881else 14882 xorg_cv_cc_flag_unknown_warning_option=no 14883fi 14884rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14885fi 14886{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14887$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14888 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14889 CFLAGS="$xorg_testset_save_CFLAGS" 14890fi 14891 14892if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14893 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14894 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14895 fi 14896 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14898$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14899if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14900 $as_echo_n "(cached) " >&6 14901else 14902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14903/* end confdefs.h. */ 14904int i; 14905_ACEOF 14906if ac_fn_c_try_compile "$LINENO"; then : 14907 xorg_cv_cc_flag_unused_command_line_argument=yes 14908else 14909 xorg_cv_cc_flag_unused_command_line_argument=no 14910fi 14911rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14912fi 14913{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14914$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14915 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14916 CFLAGS="$xorg_testset_save_CFLAGS" 14917fi 14918 14919found="no" 14920 14921 if test $found = "no" ; then 14922 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14923 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14924 fi 14925 14926 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14927 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14928 fi 14929 14930 CFLAGS="$CFLAGS -Werror=nonnull" 14931 14932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5 14933$as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; } 14934 cacheid=xorg_cv_cc_flag__Werror_nonnull 14935 if eval \${$cacheid+:} false; then : 14936 $as_echo_n "(cached) " >&6 14937else 14938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14939/* end confdefs.h. */ 14940int i; 14941int 14942main () 14943{ 14944 14945 ; 14946 return 0; 14947} 14948_ACEOF 14949if ac_fn_c_try_link "$LINENO"; then : 14950 eval $cacheid=yes 14951else 14952 eval $cacheid=no 14953fi 14954rm -f core conftest.err conftest.$ac_objext \ 14955 conftest$ac_exeext conftest.$ac_ext 14956fi 14957 14958 14959 CFLAGS="$xorg_testset_save_CFLAGS" 14960 14961 eval supported=\$$cacheid 14962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14963$as_echo "$supported" >&6; } 14964 if test "$supported" = "yes" ; then 14965 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull" 14966 found="yes" 14967 fi 14968 fi 14969 14970 14971 14972 14973 14974 14975 14976 14977 14978 14979 14980 14981 14982 14983 14984xorg_testset_save_CFLAGS="$CFLAGS" 14985 14986if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14987 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14989$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14990if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14991 $as_echo_n "(cached) " >&6 14992else 14993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14994/* end confdefs.h. */ 14995int i; 14996_ACEOF 14997if ac_fn_c_try_compile "$LINENO"; then : 14998 xorg_cv_cc_flag_unknown_warning_option=yes 14999else 15000 xorg_cv_cc_flag_unknown_warning_option=no 15001fi 15002rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15003fi 15004{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15005$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15006 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15007 CFLAGS="$xorg_testset_save_CFLAGS" 15008fi 15009 15010if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15011 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15012 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15013 fi 15014 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15016$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15017if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15018 $as_echo_n "(cached) " >&6 15019else 15020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15021/* end confdefs.h. */ 15022int i; 15023_ACEOF 15024if ac_fn_c_try_compile "$LINENO"; then : 15025 xorg_cv_cc_flag_unused_command_line_argument=yes 15026else 15027 xorg_cv_cc_flag_unused_command_line_argument=no 15028fi 15029rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15030fi 15031{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15032$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15033 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15034 CFLAGS="$xorg_testset_save_CFLAGS" 15035fi 15036 15037found="no" 15038 15039 if test $found = "no" ; then 15040 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15041 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15042 fi 15043 15044 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15045 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15046 fi 15047 15048 CFLAGS="$CFLAGS -Werror=init-self" 15049 15050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5 15051$as_echo_n "checking if $CC supports -Werror=init-self... " >&6; } 15052 cacheid=xorg_cv_cc_flag__Werror_init_self 15053 if eval \${$cacheid+:} false; then : 15054 $as_echo_n "(cached) " >&6 15055else 15056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15057/* end confdefs.h. */ 15058int i; 15059int 15060main () 15061{ 15062 15063 ; 15064 return 0; 15065} 15066_ACEOF 15067if ac_fn_c_try_link "$LINENO"; then : 15068 eval $cacheid=yes 15069else 15070 eval $cacheid=no 15071fi 15072rm -f core conftest.err conftest.$ac_objext \ 15073 conftest$ac_exeext conftest.$ac_ext 15074fi 15075 15076 15077 CFLAGS="$xorg_testset_save_CFLAGS" 15078 15079 eval supported=\$$cacheid 15080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15081$as_echo "$supported" >&6; } 15082 if test "$supported" = "yes" ; then 15083 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self" 15084 found="yes" 15085 fi 15086 fi 15087 15088 15089 15090 15091 15092 15093 15094 15095 15096 15097 15098 15099 15100 15101 15102xorg_testset_save_CFLAGS="$CFLAGS" 15103 15104if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15105 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15107$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15108if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15109 $as_echo_n "(cached) " >&6 15110else 15111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15112/* end confdefs.h. */ 15113int i; 15114_ACEOF 15115if ac_fn_c_try_compile "$LINENO"; then : 15116 xorg_cv_cc_flag_unknown_warning_option=yes 15117else 15118 xorg_cv_cc_flag_unknown_warning_option=no 15119fi 15120rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15121fi 15122{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15123$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15124 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15125 CFLAGS="$xorg_testset_save_CFLAGS" 15126fi 15127 15128if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15129 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15130 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15131 fi 15132 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15134$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15135if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15136 $as_echo_n "(cached) " >&6 15137else 15138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15139/* end confdefs.h. */ 15140int i; 15141_ACEOF 15142if ac_fn_c_try_compile "$LINENO"; then : 15143 xorg_cv_cc_flag_unused_command_line_argument=yes 15144else 15145 xorg_cv_cc_flag_unused_command_line_argument=no 15146fi 15147rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15148fi 15149{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15150$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15151 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15152 CFLAGS="$xorg_testset_save_CFLAGS" 15153fi 15154 15155found="no" 15156 15157 if test $found = "no" ; then 15158 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15159 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15160 fi 15161 15162 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15163 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15164 fi 15165 15166 CFLAGS="$CFLAGS -Werror=main" 15167 15168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5 15169$as_echo_n "checking if $CC supports -Werror=main... " >&6; } 15170 cacheid=xorg_cv_cc_flag__Werror_main 15171 if eval \${$cacheid+:} false; then : 15172 $as_echo_n "(cached) " >&6 15173else 15174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15175/* end confdefs.h. */ 15176int i; 15177int 15178main () 15179{ 15180 15181 ; 15182 return 0; 15183} 15184_ACEOF 15185if ac_fn_c_try_link "$LINENO"; then : 15186 eval $cacheid=yes 15187else 15188 eval $cacheid=no 15189fi 15190rm -f core conftest.err conftest.$ac_objext \ 15191 conftest$ac_exeext conftest.$ac_ext 15192fi 15193 15194 15195 CFLAGS="$xorg_testset_save_CFLAGS" 15196 15197 eval supported=\$$cacheid 15198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15199$as_echo "$supported" >&6; } 15200 if test "$supported" = "yes" ; then 15201 BASE_CFLAGS="$BASE_CFLAGS -Werror=main" 15202 found="yes" 15203 fi 15204 fi 15205 15206 15207 15208 15209 15210 15211 15212 15213 15214 15215 15216 15217 15218 15219 15220xorg_testset_save_CFLAGS="$CFLAGS" 15221 15222if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15223 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15225$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15226if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15227 $as_echo_n "(cached) " >&6 15228else 15229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15230/* end confdefs.h. */ 15231int i; 15232_ACEOF 15233if ac_fn_c_try_compile "$LINENO"; then : 15234 xorg_cv_cc_flag_unknown_warning_option=yes 15235else 15236 xorg_cv_cc_flag_unknown_warning_option=no 15237fi 15238rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15239fi 15240{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15241$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15242 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15243 CFLAGS="$xorg_testset_save_CFLAGS" 15244fi 15245 15246if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15247 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15248 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15249 fi 15250 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15252$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15253if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15254 $as_echo_n "(cached) " >&6 15255else 15256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15257/* end confdefs.h. */ 15258int i; 15259_ACEOF 15260if ac_fn_c_try_compile "$LINENO"; then : 15261 xorg_cv_cc_flag_unused_command_line_argument=yes 15262else 15263 xorg_cv_cc_flag_unused_command_line_argument=no 15264fi 15265rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15266fi 15267{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15268$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15269 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15270 CFLAGS="$xorg_testset_save_CFLAGS" 15271fi 15272 15273found="no" 15274 15275 if test $found = "no" ; then 15276 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15277 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15278 fi 15279 15280 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15281 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15282 fi 15283 15284 CFLAGS="$CFLAGS -Werror=missing-braces" 15285 15286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5 15287$as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; } 15288 cacheid=xorg_cv_cc_flag__Werror_missing_braces 15289 if eval \${$cacheid+:} false; then : 15290 $as_echo_n "(cached) " >&6 15291else 15292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15293/* end confdefs.h. */ 15294int i; 15295int 15296main () 15297{ 15298 15299 ; 15300 return 0; 15301} 15302_ACEOF 15303if ac_fn_c_try_link "$LINENO"; then : 15304 eval $cacheid=yes 15305else 15306 eval $cacheid=no 15307fi 15308rm -f core conftest.err conftest.$ac_objext \ 15309 conftest$ac_exeext conftest.$ac_ext 15310fi 15311 15312 15313 CFLAGS="$xorg_testset_save_CFLAGS" 15314 15315 eval supported=\$$cacheid 15316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15317$as_echo "$supported" >&6; } 15318 if test "$supported" = "yes" ; then 15319 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces" 15320 found="yes" 15321 fi 15322 fi 15323 15324 15325 15326 15327 15328 15329 15330 15331 15332 15333 15334 15335 15336 15337 15338xorg_testset_save_CFLAGS="$CFLAGS" 15339 15340if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15341 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15343$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15344if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15345 $as_echo_n "(cached) " >&6 15346else 15347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15348/* end confdefs.h. */ 15349int i; 15350_ACEOF 15351if ac_fn_c_try_compile "$LINENO"; then : 15352 xorg_cv_cc_flag_unknown_warning_option=yes 15353else 15354 xorg_cv_cc_flag_unknown_warning_option=no 15355fi 15356rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15357fi 15358{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15359$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15360 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15361 CFLAGS="$xorg_testset_save_CFLAGS" 15362fi 15363 15364if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15365 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15366 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15367 fi 15368 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15370$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15371if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15372 $as_echo_n "(cached) " >&6 15373else 15374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15375/* end confdefs.h. */ 15376int i; 15377_ACEOF 15378if ac_fn_c_try_compile "$LINENO"; then : 15379 xorg_cv_cc_flag_unused_command_line_argument=yes 15380else 15381 xorg_cv_cc_flag_unused_command_line_argument=no 15382fi 15383rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15384fi 15385{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15386$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15387 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15388 CFLAGS="$xorg_testset_save_CFLAGS" 15389fi 15390 15391found="no" 15392 15393 if test $found = "no" ; then 15394 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15395 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15396 fi 15397 15398 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15399 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15400 fi 15401 15402 CFLAGS="$CFLAGS -Werror=sequence-point" 15403 15404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5 15405$as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; } 15406 cacheid=xorg_cv_cc_flag__Werror_sequence_point 15407 if eval \${$cacheid+:} false; then : 15408 $as_echo_n "(cached) " >&6 15409else 15410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15411/* end confdefs.h. */ 15412int i; 15413int 15414main () 15415{ 15416 15417 ; 15418 return 0; 15419} 15420_ACEOF 15421if ac_fn_c_try_link "$LINENO"; then : 15422 eval $cacheid=yes 15423else 15424 eval $cacheid=no 15425fi 15426rm -f core conftest.err conftest.$ac_objext \ 15427 conftest$ac_exeext conftest.$ac_ext 15428fi 15429 15430 15431 CFLAGS="$xorg_testset_save_CFLAGS" 15432 15433 eval supported=\$$cacheid 15434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15435$as_echo "$supported" >&6; } 15436 if test "$supported" = "yes" ; then 15437 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point" 15438 found="yes" 15439 fi 15440 fi 15441 15442 15443 15444 15445 15446 15447 15448 15449 15450 15451 15452 15453 15454 15455 15456xorg_testset_save_CFLAGS="$CFLAGS" 15457 15458if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15459 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15461$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15462if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15463 $as_echo_n "(cached) " >&6 15464else 15465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15466/* end confdefs.h. */ 15467int i; 15468_ACEOF 15469if ac_fn_c_try_compile "$LINENO"; then : 15470 xorg_cv_cc_flag_unknown_warning_option=yes 15471else 15472 xorg_cv_cc_flag_unknown_warning_option=no 15473fi 15474rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15475fi 15476{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15477$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15478 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15479 CFLAGS="$xorg_testset_save_CFLAGS" 15480fi 15481 15482if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15483 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15484 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15485 fi 15486 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15488$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15489if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15490 $as_echo_n "(cached) " >&6 15491else 15492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15493/* end confdefs.h. */ 15494int i; 15495_ACEOF 15496if ac_fn_c_try_compile "$LINENO"; then : 15497 xorg_cv_cc_flag_unused_command_line_argument=yes 15498else 15499 xorg_cv_cc_flag_unused_command_line_argument=no 15500fi 15501rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15502fi 15503{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15504$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15505 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15506 CFLAGS="$xorg_testset_save_CFLAGS" 15507fi 15508 15509found="no" 15510 15511 if test $found = "no" ; then 15512 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15513 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15514 fi 15515 15516 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15517 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15518 fi 15519 15520 CFLAGS="$CFLAGS -Werror=return-type" 15521 15522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5 15523$as_echo_n "checking if $CC supports -Werror=return-type... " >&6; } 15524 cacheid=xorg_cv_cc_flag__Werror_return_type 15525 if eval \${$cacheid+:} false; then : 15526 $as_echo_n "(cached) " >&6 15527else 15528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15529/* end confdefs.h. */ 15530int i; 15531int 15532main () 15533{ 15534 15535 ; 15536 return 0; 15537} 15538_ACEOF 15539if ac_fn_c_try_link "$LINENO"; then : 15540 eval $cacheid=yes 15541else 15542 eval $cacheid=no 15543fi 15544rm -f core conftest.err conftest.$ac_objext \ 15545 conftest$ac_exeext conftest.$ac_ext 15546fi 15547 15548 15549 CFLAGS="$xorg_testset_save_CFLAGS" 15550 15551 eval supported=\$$cacheid 15552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15553$as_echo "$supported" >&6; } 15554 if test "$supported" = "yes" ; then 15555 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type" 15556 found="yes" 15557 fi 15558 fi 15559 15560 if test $found = "no" ; then 15561 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15562 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15563 fi 15564 15565 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15566 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15567 fi 15568 15569 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 15570 15571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5 15572$as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; } 15573 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT 15574 if eval \${$cacheid+:} false; then : 15575 $as_echo_n "(cached) " >&6 15576else 15577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15578/* end confdefs.h. */ 15579int i; 15580int 15581main () 15582{ 15583 15584 ; 15585 return 0; 15586} 15587_ACEOF 15588if ac_fn_c_try_link "$LINENO"; then : 15589 eval $cacheid=yes 15590else 15591 eval $cacheid=no 15592fi 15593rm -f core conftest.err conftest.$ac_objext \ 15594 conftest$ac_exeext conftest.$ac_ext 15595fi 15596 15597 15598 CFLAGS="$xorg_testset_save_CFLAGS" 15599 15600 eval supported=\$$cacheid 15601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15602$as_echo "$supported" >&6; } 15603 if test "$supported" = "yes" ; then 15604 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 15605 found="yes" 15606 fi 15607 fi 15608 15609 15610 15611 15612 15613 15614 15615 15616 15617 15618 15619 15620 15621 15622 15623xorg_testset_save_CFLAGS="$CFLAGS" 15624 15625if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15626 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15628$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15629if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15630 $as_echo_n "(cached) " >&6 15631else 15632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15633/* end confdefs.h. */ 15634int i; 15635_ACEOF 15636if ac_fn_c_try_compile "$LINENO"; then : 15637 xorg_cv_cc_flag_unknown_warning_option=yes 15638else 15639 xorg_cv_cc_flag_unknown_warning_option=no 15640fi 15641rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15642fi 15643{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15644$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15645 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15646 CFLAGS="$xorg_testset_save_CFLAGS" 15647fi 15648 15649if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15650 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15651 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15652 fi 15653 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15655$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15656if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15657 $as_echo_n "(cached) " >&6 15658else 15659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15660/* end confdefs.h. */ 15661int i; 15662_ACEOF 15663if ac_fn_c_try_compile "$LINENO"; then : 15664 xorg_cv_cc_flag_unused_command_line_argument=yes 15665else 15666 xorg_cv_cc_flag_unused_command_line_argument=no 15667fi 15668rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15669fi 15670{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15671$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15672 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15673 CFLAGS="$xorg_testset_save_CFLAGS" 15674fi 15675 15676found="no" 15677 15678 if test $found = "no" ; then 15679 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15680 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15681 fi 15682 15683 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15684 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15685 fi 15686 15687 CFLAGS="$CFLAGS -Werror=trigraphs" 15688 15689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5 15690$as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; } 15691 cacheid=xorg_cv_cc_flag__Werror_trigraphs 15692 if eval \${$cacheid+:} false; then : 15693 $as_echo_n "(cached) " >&6 15694else 15695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15696/* end confdefs.h. */ 15697int i; 15698int 15699main () 15700{ 15701 15702 ; 15703 return 0; 15704} 15705_ACEOF 15706if ac_fn_c_try_link "$LINENO"; then : 15707 eval $cacheid=yes 15708else 15709 eval $cacheid=no 15710fi 15711rm -f core conftest.err conftest.$ac_objext \ 15712 conftest$ac_exeext conftest.$ac_ext 15713fi 15714 15715 15716 CFLAGS="$xorg_testset_save_CFLAGS" 15717 15718 eval supported=\$$cacheid 15719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15720$as_echo "$supported" >&6; } 15721 if test "$supported" = "yes" ; then 15722 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs" 15723 found="yes" 15724 fi 15725 fi 15726 15727 15728 15729 15730 15731 15732 15733 15734 15735 15736 15737 15738 15739 15740 15741xorg_testset_save_CFLAGS="$CFLAGS" 15742 15743if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15744 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15746$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15747if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15748 $as_echo_n "(cached) " >&6 15749else 15750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15751/* end confdefs.h. */ 15752int i; 15753_ACEOF 15754if ac_fn_c_try_compile "$LINENO"; then : 15755 xorg_cv_cc_flag_unknown_warning_option=yes 15756else 15757 xorg_cv_cc_flag_unknown_warning_option=no 15758fi 15759rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15760fi 15761{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15762$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15763 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15764 CFLAGS="$xorg_testset_save_CFLAGS" 15765fi 15766 15767if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15768 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15769 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15770 fi 15771 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15773$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15774if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15775 $as_echo_n "(cached) " >&6 15776else 15777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15778/* end confdefs.h. */ 15779int i; 15780_ACEOF 15781if ac_fn_c_try_compile "$LINENO"; then : 15782 xorg_cv_cc_flag_unused_command_line_argument=yes 15783else 15784 xorg_cv_cc_flag_unused_command_line_argument=no 15785fi 15786rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15787fi 15788{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15789$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15790 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15791 CFLAGS="$xorg_testset_save_CFLAGS" 15792fi 15793 15794found="no" 15795 15796 if test $found = "no" ; then 15797 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15798 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15799 fi 15800 15801 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15802 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15803 fi 15804 15805 CFLAGS="$CFLAGS -Werror=array-bounds" 15806 15807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5 15808$as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; } 15809 cacheid=xorg_cv_cc_flag__Werror_array_bounds 15810 if eval \${$cacheid+:} false; then : 15811 $as_echo_n "(cached) " >&6 15812else 15813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15814/* end confdefs.h. */ 15815int i; 15816int 15817main () 15818{ 15819 15820 ; 15821 return 0; 15822} 15823_ACEOF 15824if ac_fn_c_try_link "$LINENO"; then : 15825 eval $cacheid=yes 15826else 15827 eval $cacheid=no 15828fi 15829rm -f core conftest.err conftest.$ac_objext \ 15830 conftest$ac_exeext conftest.$ac_ext 15831fi 15832 15833 15834 CFLAGS="$xorg_testset_save_CFLAGS" 15835 15836 eval supported=\$$cacheid 15837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15838$as_echo "$supported" >&6; } 15839 if test "$supported" = "yes" ; then 15840 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds" 15841 found="yes" 15842 fi 15843 fi 15844 15845 15846 15847 15848 15849 15850 15851 15852 15853 15854 15855 15856 15857 15858 15859xorg_testset_save_CFLAGS="$CFLAGS" 15860 15861if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15862 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15864$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15865if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15866 $as_echo_n "(cached) " >&6 15867else 15868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15869/* end confdefs.h. */ 15870int i; 15871_ACEOF 15872if ac_fn_c_try_compile "$LINENO"; then : 15873 xorg_cv_cc_flag_unknown_warning_option=yes 15874else 15875 xorg_cv_cc_flag_unknown_warning_option=no 15876fi 15877rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15878fi 15879{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15880$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15881 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15882 CFLAGS="$xorg_testset_save_CFLAGS" 15883fi 15884 15885if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15886 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15887 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15888 fi 15889 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15891$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15892if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15893 $as_echo_n "(cached) " >&6 15894else 15895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15896/* end confdefs.h. */ 15897int i; 15898_ACEOF 15899if ac_fn_c_try_compile "$LINENO"; then : 15900 xorg_cv_cc_flag_unused_command_line_argument=yes 15901else 15902 xorg_cv_cc_flag_unused_command_line_argument=no 15903fi 15904rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15905fi 15906{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15907$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15908 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15909 CFLAGS="$xorg_testset_save_CFLAGS" 15910fi 15911 15912found="no" 15913 15914 if test $found = "no" ; then 15915 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15916 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15917 fi 15918 15919 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15920 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15921 fi 15922 15923 CFLAGS="$CFLAGS -Werror=write-strings" 15924 15925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5 15926$as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; } 15927 cacheid=xorg_cv_cc_flag__Werror_write_strings 15928 if eval \${$cacheid+:} false; then : 15929 $as_echo_n "(cached) " >&6 15930else 15931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15932/* end confdefs.h. */ 15933int i; 15934int 15935main () 15936{ 15937 15938 ; 15939 return 0; 15940} 15941_ACEOF 15942if ac_fn_c_try_link "$LINENO"; then : 15943 eval $cacheid=yes 15944else 15945 eval $cacheid=no 15946fi 15947rm -f core conftest.err conftest.$ac_objext \ 15948 conftest$ac_exeext conftest.$ac_ext 15949fi 15950 15951 15952 CFLAGS="$xorg_testset_save_CFLAGS" 15953 15954 eval supported=\$$cacheid 15955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15956$as_echo "$supported" >&6; } 15957 if test "$supported" = "yes" ; then 15958 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings" 15959 found="yes" 15960 fi 15961 fi 15962 15963 15964 15965 15966 15967 15968 15969 15970 15971 15972 15973 15974 15975 15976 15977xorg_testset_save_CFLAGS="$CFLAGS" 15978 15979if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15980 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15982$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15983if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15984 $as_echo_n "(cached) " >&6 15985else 15986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15987/* end confdefs.h. */ 15988int i; 15989_ACEOF 15990if ac_fn_c_try_compile "$LINENO"; then : 15991 xorg_cv_cc_flag_unknown_warning_option=yes 15992else 15993 xorg_cv_cc_flag_unknown_warning_option=no 15994fi 15995rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15996fi 15997{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15998$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15999 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16000 CFLAGS="$xorg_testset_save_CFLAGS" 16001fi 16002 16003if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16004 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16005 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16006 fi 16007 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16009$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16010if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16011 $as_echo_n "(cached) " >&6 16012else 16013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16014/* end confdefs.h. */ 16015int i; 16016_ACEOF 16017if ac_fn_c_try_compile "$LINENO"; then : 16018 xorg_cv_cc_flag_unused_command_line_argument=yes 16019else 16020 xorg_cv_cc_flag_unused_command_line_argument=no 16021fi 16022rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16023fi 16024{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16025$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16026 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16027 CFLAGS="$xorg_testset_save_CFLAGS" 16028fi 16029 16030found="no" 16031 16032 if test $found = "no" ; then 16033 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16034 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16035 fi 16036 16037 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16038 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16039 fi 16040 16041 CFLAGS="$CFLAGS -Werror=address" 16042 16043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5 16044$as_echo_n "checking if $CC supports -Werror=address... " >&6; } 16045 cacheid=xorg_cv_cc_flag__Werror_address 16046 if eval \${$cacheid+:} false; then : 16047 $as_echo_n "(cached) " >&6 16048else 16049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16050/* end confdefs.h. */ 16051int i; 16052int 16053main () 16054{ 16055 16056 ; 16057 return 0; 16058} 16059_ACEOF 16060if ac_fn_c_try_link "$LINENO"; then : 16061 eval $cacheid=yes 16062else 16063 eval $cacheid=no 16064fi 16065rm -f core conftest.err conftest.$ac_objext \ 16066 conftest$ac_exeext conftest.$ac_ext 16067fi 16068 16069 16070 CFLAGS="$xorg_testset_save_CFLAGS" 16071 16072 eval supported=\$$cacheid 16073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16074$as_echo "$supported" >&6; } 16075 if test "$supported" = "yes" ; then 16076 BASE_CFLAGS="$BASE_CFLAGS -Werror=address" 16077 found="yes" 16078 fi 16079 fi 16080 16081 16082 16083 16084 16085 16086 16087 16088 16089 16090 16091 16092 16093 16094 16095xorg_testset_save_CFLAGS="$CFLAGS" 16096 16097if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16098 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16100$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16101if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16102 $as_echo_n "(cached) " >&6 16103else 16104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16105/* end confdefs.h. */ 16106int i; 16107_ACEOF 16108if ac_fn_c_try_compile "$LINENO"; then : 16109 xorg_cv_cc_flag_unknown_warning_option=yes 16110else 16111 xorg_cv_cc_flag_unknown_warning_option=no 16112fi 16113rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16114fi 16115{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16116$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16117 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16118 CFLAGS="$xorg_testset_save_CFLAGS" 16119fi 16120 16121if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16122 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16123 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16124 fi 16125 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16127$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16128if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16129 $as_echo_n "(cached) " >&6 16130else 16131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16132/* end confdefs.h. */ 16133int i; 16134_ACEOF 16135if ac_fn_c_try_compile "$LINENO"; then : 16136 xorg_cv_cc_flag_unused_command_line_argument=yes 16137else 16138 xorg_cv_cc_flag_unused_command_line_argument=no 16139fi 16140rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16141fi 16142{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16143$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16144 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16145 CFLAGS="$xorg_testset_save_CFLAGS" 16146fi 16147 16148found="no" 16149 16150 if test $found = "no" ; then 16151 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16152 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16153 fi 16154 16155 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16156 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16157 fi 16158 16159 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast" 16160 16161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5 16162$as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; } 16163 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast 16164 if eval \${$cacheid+:} false; then : 16165 $as_echo_n "(cached) " >&6 16166else 16167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16168/* end confdefs.h. */ 16169int i; 16170int 16171main () 16172{ 16173 16174 ; 16175 return 0; 16176} 16177_ACEOF 16178if ac_fn_c_try_link "$LINENO"; then : 16179 eval $cacheid=yes 16180else 16181 eval $cacheid=no 16182fi 16183rm -f core conftest.err conftest.$ac_objext \ 16184 conftest$ac_exeext conftest.$ac_ext 16185fi 16186 16187 16188 CFLAGS="$xorg_testset_save_CFLAGS" 16189 16190 eval supported=\$$cacheid 16191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16192$as_echo "$supported" >&6; } 16193 if test "$supported" = "yes" ; then 16194 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast" 16195 found="yes" 16196 fi 16197 fi 16198 16199 if test $found = "no" ; then 16200 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16201 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16202 fi 16203 16204 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16205 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16206 fi 16207 16208 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 16209 16210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5 16211$as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; } 16212 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION 16213 if eval \${$cacheid+:} false; then : 16214 $as_echo_n "(cached) " >&6 16215else 16216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16217/* end confdefs.h. */ 16218int i; 16219int 16220main () 16221{ 16222 16223 ; 16224 return 0; 16225} 16226_ACEOF 16227if ac_fn_c_try_link "$LINENO"; then : 16228 eval $cacheid=yes 16229else 16230 eval $cacheid=no 16231fi 16232rm -f core conftest.err conftest.$ac_objext \ 16233 conftest$ac_exeext conftest.$ac_ext 16234fi 16235 16236 16237 CFLAGS="$xorg_testset_save_CFLAGS" 16238 16239 eval supported=\$$cacheid 16240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16241$as_echo "$supported" >&6; } 16242 if test "$supported" = "yes" ; then 16243 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 16244 found="yes" 16245 fi 16246 fi 16247 16248 16249 16250 16251 16252 16253 16254 16255 16256 16257 16258 16259 16260 16261 16262xorg_testset_save_CFLAGS="$CFLAGS" 16263 16264if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16265 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16267$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16268if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16269 $as_echo_n "(cached) " >&6 16270else 16271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16272/* end confdefs.h. */ 16273int i; 16274_ACEOF 16275if ac_fn_c_try_compile "$LINENO"; then : 16276 xorg_cv_cc_flag_unknown_warning_option=yes 16277else 16278 xorg_cv_cc_flag_unknown_warning_option=no 16279fi 16280rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16281fi 16282{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16283$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16284 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16285 CFLAGS="$xorg_testset_save_CFLAGS" 16286fi 16287 16288if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16289 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16290 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16291 fi 16292 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16294$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16295if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16296 $as_echo_n "(cached) " >&6 16297else 16298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16299/* end confdefs.h. */ 16300int i; 16301_ACEOF 16302if ac_fn_c_try_compile "$LINENO"; then : 16303 xorg_cv_cc_flag_unused_command_line_argument=yes 16304else 16305 xorg_cv_cc_flag_unused_command_line_argument=no 16306fi 16307rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16308fi 16309{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16310$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16311 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16312 CFLAGS="$xorg_testset_save_CFLAGS" 16313fi 16314 16315found="no" 16316 16317 if test $found = "no" ; then 16318 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16319 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16320 fi 16321 16322 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16323 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16324 fi 16325 16326 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast" 16327 16328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5 16329$as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; } 16330 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast 16331 if eval \${$cacheid+:} false; then : 16332 $as_echo_n "(cached) " >&6 16333else 16334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16335/* end confdefs.h. */ 16336int i; 16337int 16338main () 16339{ 16340 16341 ; 16342 return 0; 16343} 16344_ACEOF 16345if ac_fn_c_try_link "$LINENO"; then : 16346 eval $cacheid=yes 16347else 16348 eval $cacheid=no 16349fi 16350rm -f core conftest.err conftest.$ac_objext \ 16351 conftest$ac_exeext conftest.$ac_ext 16352fi 16353 16354 16355 CFLAGS="$xorg_testset_save_CFLAGS" 16356 16357 eval supported=\$$cacheid 16358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16359$as_echo "$supported" >&6; } 16360 if test "$supported" = "yes" ; then 16361 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast" 16362 found="yes" 16363 fi 16364 fi 16365 16366 # Also -errwarn=E_BAD_PTR_INT_COMBINATION 16367else 16368{ $as_echo "$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 16369$as_echo "$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;} 16370 16371 16372 16373 16374 16375 16376 16377 16378 16379 16380 16381 16382 16383xorg_testset_save_CFLAGS="$CFLAGS" 16384 16385if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16386 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16388$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16389if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16390 $as_echo_n "(cached) " >&6 16391else 16392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16393/* end confdefs.h. */ 16394int i; 16395_ACEOF 16396if ac_fn_c_try_compile "$LINENO"; then : 16397 xorg_cv_cc_flag_unknown_warning_option=yes 16398else 16399 xorg_cv_cc_flag_unknown_warning_option=no 16400fi 16401rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16402fi 16403{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16404$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16405 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16406 CFLAGS="$xorg_testset_save_CFLAGS" 16407fi 16408 16409if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16410 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16411 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16412 fi 16413 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16415$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16416if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16417 $as_echo_n "(cached) " >&6 16418else 16419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16420/* end confdefs.h. */ 16421int i; 16422_ACEOF 16423if ac_fn_c_try_compile "$LINENO"; then : 16424 xorg_cv_cc_flag_unused_command_line_argument=yes 16425else 16426 xorg_cv_cc_flag_unused_command_line_argument=no 16427fi 16428rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16429fi 16430{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16431$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16432 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16433 CFLAGS="$xorg_testset_save_CFLAGS" 16434fi 16435 16436found="no" 16437 16438 if test $found = "no" ; then 16439 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16440 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16441 fi 16442 16443 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16444 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16445 fi 16446 16447 CFLAGS="$CFLAGS -Wimplicit" 16448 16449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5 16450$as_echo_n "checking if $CC supports -Wimplicit... " >&6; } 16451 cacheid=xorg_cv_cc_flag__Wimplicit 16452 if eval \${$cacheid+:} false; then : 16453 $as_echo_n "(cached) " >&6 16454else 16455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16456/* end confdefs.h. */ 16457int i; 16458int 16459main () 16460{ 16461 16462 ; 16463 return 0; 16464} 16465_ACEOF 16466if ac_fn_c_try_link "$LINENO"; then : 16467 eval $cacheid=yes 16468else 16469 eval $cacheid=no 16470fi 16471rm -f core conftest.err conftest.$ac_objext \ 16472 conftest$ac_exeext conftest.$ac_ext 16473fi 16474 16475 16476 CFLAGS="$xorg_testset_save_CFLAGS" 16477 16478 eval supported=\$$cacheid 16479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16480$as_echo "$supported" >&6; } 16481 if test "$supported" = "yes" ; then 16482 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit" 16483 found="yes" 16484 fi 16485 fi 16486 16487 16488 16489 16490 16491 16492 16493 16494 16495 16496 16497 16498 16499 16500 16501xorg_testset_save_CFLAGS="$CFLAGS" 16502 16503if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16504 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16506$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16507if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16508 $as_echo_n "(cached) " >&6 16509else 16510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16511/* end confdefs.h. */ 16512int i; 16513_ACEOF 16514if ac_fn_c_try_compile "$LINENO"; then : 16515 xorg_cv_cc_flag_unknown_warning_option=yes 16516else 16517 xorg_cv_cc_flag_unknown_warning_option=no 16518fi 16519rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16520fi 16521{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16522$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16523 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16524 CFLAGS="$xorg_testset_save_CFLAGS" 16525fi 16526 16527if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16528 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16529 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16530 fi 16531 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16533$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16534if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16535 $as_echo_n "(cached) " >&6 16536else 16537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16538/* end confdefs.h. */ 16539int i; 16540_ACEOF 16541if ac_fn_c_try_compile "$LINENO"; then : 16542 xorg_cv_cc_flag_unused_command_line_argument=yes 16543else 16544 xorg_cv_cc_flag_unused_command_line_argument=no 16545fi 16546rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16547fi 16548{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16549$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16550 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16551 CFLAGS="$xorg_testset_save_CFLAGS" 16552fi 16553 16554found="no" 16555 16556 if test $found = "no" ; then 16557 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16558 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16559 fi 16560 16561 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16562 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16563 fi 16564 16565 CFLAGS="$CFLAGS -Wnonnull" 16566 16567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5 16568$as_echo_n "checking if $CC supports -Wnonnull... " >&6; } 16569 cacheid=xorg_cv_cc_flag__Wnonnull 16570 if eval \${$cacheid+:} false; then : 16571 $as_echo_n "(cached) " >&6 16572else 16573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16574/* end confdefs.h. */ 16575int i; 16576int 16577main () 16578{ 16579 16580 ; 16581 return 0; 16582} 16583_ACEOF 16584if ac_fn_c_try_link "$LINENO"; then : 16585 eval $cacheid=yes 16586else 16587 eval $cacheid=no 16588fi 16589rm -f core conftest.err conftest.$ac_objext \ 16590 conftest$ac_exeext conftest.$ac_ext 16591fi 16592 16593 16594 CFLAGS="$xorg_testset_save_CFLAGS" 16595 16596 eval supported=\$$cacheid 16597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16598$as_echo "$supported" >&6; } 16599 if test "$supported" = "yes" ; then 16600 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull" 16601 found="yes" 16602 fi 16603 fi 16604 16605 16606 16607 16608 16609 16610 16611 16612 16613 16614 16615 16616 16617 16618 16619xorg_testset_save_CFLAGS="$CFLAGS" 16620 16621if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16622 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16624$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16625if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16626 $as_echo_n "(cached) " >&6 16627else 16628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16629/* end confdefs.h. */ 16630int i; 16631_ACEOF 16632if ac_fn_c_try_compile "$LINENO"; then : 16633 xorg_cv_cc_flag_unknown_warning_option=yes 16634else 16635 xorg_cv_cc_flag_unknown_warning_option=no 16636fi 16637rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16638fi 16639{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16640$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16641 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16642 CFLAGS="$xorg_testset_save_CFLAGS" 16643fi 16644 16645if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16646 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16647 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16648 fi 16649 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16651$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16652if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16653 $as_echo_n "(cached) " >&6 16654else 16655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16656/* end confdefs.h. */ 16657int i; 16658_ACEOF 16659if ac_fn_c_try_compile "$LINENO"; then : 16660 xorg_cv_cc_flag_unused_command_line_argument=yes 16661else 16662 xorg_cv_cc_flag_unused_command_line_argument=no 16663fi 16664rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16665fi 16666{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16667$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16668 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16669 CFLAGS="$xorg_testset_save_CFLAGS" 16670fi 16671 16672found="no" 16673 16674 if test $found = "no" ; then 16675 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16676 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16677 fi 16678 16679 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16680 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16681 fi 16682 16683 CFLAGS="$CFLAGS -Winit-self" 16684 16685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5 16686$as_echo_n "checking if $CC supports -Winit-self... " >&6; } 16687 cacheid=xorg_cv_cc_flag__Winit_self 16688 if eval \${$cacheid+:} false; then : 16689 $as_echo_n "(cached) " >&6 16690else 16691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16692/* end confdefs.h. */ 16693int i; 16694int 16695main () 16696{ 16697 16698 ; 16699 return 0; 16700} 16701_ACEOF 16702if ac_fn_c_try_link "$LINENO"; then : 16703 eval $cacheid=yes 16704else 16705 eval $cacheid=no 16706fi 16707rm -f core conftest.err conftest.$ac_objext \ 16708 conftest$ac_exeext conftest.$ac_ext 16709fi 16710 16711 16712 CFLAGS="$xorg_testset_save_CFLAGS" 16713 16714 eval supported=\$$cacheid 16715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16716$as_echo "$supported" >&6; } 16717 if test "$supported" = "yes" ; then 16718 BASE_CFLAGS="$BASE_CFLAGS -Winit-self" 16719 found="yes" 16720 fi 16721 fi 16722 16723 16724 16725 16726 16727 16728 16729 16730 16731 16732 16733 16734 16735 16736 16737xorg_testset_save_CFLAGS="$CFLAGS" 16738 16739if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16740 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16742$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16743if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16744 $as_echo_n "(cached) " >&6 16745else 16746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16747/* end confdefs.h. */ 16748int i; 16749_ACEOF 16750if ac_fn_c_try_compile "$LINENO"; then : 16751 xorg_cv_cc_flag_unknown_warning_option=yes 16752else 16753 xorg_cv_cc_flag_unknown_warning_option=no 16754fi 16755rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16756fi 16757{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16758$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16759 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16760 CFLAGS="$xorg_testset_save_CFLAGS" 16761fi 16762 16763if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16764 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16765 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16766 fi 16767 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16769$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16770if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16771 $as_echo_n "(cached) " >&6 16772else 16773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16774/* end confdefs.h. */ 16775int i; 16776_ACEOF 16777if ac_fn_c_try_compile "$LINENO"; then : 16778 xorg_cv_cc_flag_unused_command_line_argument=yes 16779else 16780 xorg_cv_cc_flag_unused_command_line_argument=no 16781fi 16782rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16783fi 16784{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16785$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16786 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16787 CFLAGS="$xorg_testset_save_CFLAGS" 16788fi 16789 16790found="no" 16791 16792 if test $found = "no" ; then 16793 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16794 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16795 fi 16796 16797 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16798 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16799 fi 16800 16801 CFLAGS="$CFLAGS -Wmain" 16802 16803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5 16804$as_echo_n "checking if $CC supports -Wmain... " >&6; } 16805 cacheid=xorg_cv_cc_flag__Wmain 16806 if eval \${$cacheid+:} false; then : 16807 $as_echo_n "(cached) " >&6 16808else 16809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16810/* end confdefs.h. */ 16811int i; 16812int 16813main () 16814{ 16815 16816 ; 16817 return 0; 16818} 16819_ACEOF 16820if ac_fn_c_try_link "$LINENO"; then : 16821 eval $cacheid=yes 16822else 16823 eval $cacheid=no 16824fi 16825rm -f core conftest.err conftest.$ac_objext \ 16826 conftest$ac_exeext conftest.$ac_ext 16827fi 16828 16829 16830 CFLAGS="$xorg_testset_save_CFLAGS" 16831 16832 eval supported=\$$cacheid 16833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16834$as_echo "$supported" >&6; } 16835 if test "$supported" = "yes" ; then 16836 BASE_CFLAGS="$BASE_CFLAGS -Wmain" 16837 found="yes" 16838 fi 16839 fi 16840 16841 16842 16843 16844 16845 16846 16847 16848 16849 16850 16851 16852 16853 16854 16855xorg_testset_save_CFLAGS="$CFLAGS" 16856 16857if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16858 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16860$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16861if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16862 $as_echo_n "(cached) " >&6 16863else 16864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16865/* end confdefs.h. */ 16866int i; 16867_ACEOF 16868if ac_fn_c_try_compile "$LINENO"; then : 16869 xorg_cv_cc_flag_unknown_warning_option=yes 16870else 16871 xorg_cv_cc_flag_unknown_warning_option=no 16872fi 16873rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16874fi 16875{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16876$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16877 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16878 CFLAGS="$xorg_testset_save_CFLAGS" 16879fi 16880 16881if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16882 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16883 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16884 fi 16885 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16887$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16888if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16889 $as_echo_n "(cached) " >&6 16890else 16891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16892/* end confdefs.h. */ 16893int i; 16894_ACEOF 16895if ac_fn_c_try_compile "$LINENO"; then : 16896 xorg_cv_cc_flag_unused_command_line_argument=yes 16897else 16898 xorg_cv_cc_flag_unused_command_line_argument=no 16899fi 16900rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16901fi 16902{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16903$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16904 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16905 CFLAGS="$xorg_testset_save_CFLAGS" 16906fi 16907 16908found="no" 16909 16910 if test $found = "no" ; then 16911 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16912 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16913 fi 16914 16915 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16916 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16917 fi 16918 16919 CFLAGS="$CFLAGS -Wmissing-braces" 16920 16921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5 16922$as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; } 16923 cacheid=xorg_cv_cc_flag__Wmissing_braces 16924 if eval \${$cacheid+:} false; then : 16925 $as_echo_n "(cached) " >&6 16926else 16927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16928/* end confdefs.h. */ 16929int i; 16930int 16931main () 16932{ 16933 16934 ; 16935 return 0; 16936} 16937_ACEOF 16938if ac_fn_c_try_link "$LINENO"; then : 16939 eval $cacheid=yes 16940else 16941 eval $cacheid=no 16942fi 16943rm -f core conftest.err conftest.$ac_objext \ 16944 conftest$ac_exeext conftest.$ac_ext 16945fi 16946 16947 16948 CFLAGS="$xorg_testset_save_CFLAGS" 16949 16950 eval supported=\$$cacheid 16951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16952$as_echo "$supported" >&6; } 16953 if test "$supported" = "yes" ; then 16954 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces" 16955 found="yes" 16956 fi 16957 fi 16958 16959 16960 16961 16962 16963 16964 16965 16966 16967 16968 16969 16970 16971 16972 16973xorg_testset_save_CFLAGS="$CFLAGS" 16974 16975if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16976 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16978$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16979if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16980 $as_echo_n "(cached) " >&6 16981else 16982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16983/* end confdefs.h. */ 16984int i; 16985_ACEOF 16986if ac_fn_c_try_compile "$LINENO"; then : 16987 xorg_cv_cc_flag_unknown_warning_option=yes 16988else 16989 xorg_cv_cc_flag_unknown_warning_option=no 16990fi 16991rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16992fi 16993{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16994$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16995 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16996 CFLAGS="$xorg_testset_save_CFLAGS" 16997fi 16998 16999if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17000 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17001 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17002 fi 17003 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17005$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17006if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 17007 $as_echo_n "(cached) " >&6 17008else 17009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17010/* end confdefs.h. */ 17011int i; 17012_ACEOF 17013if ac_fn_c_try_compile "$LINENO"; then : 17014 xorg_cv_cc_flag_unused_command_line_argument=yes 17015else 17016 xorg_cv_cc_flag_unused_command_line_argument=no 17017fi 17018rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17019fi 17020{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17021$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17022 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17023 CFLAGS="$xorg_testset_save_CFLAGS" 17024fi 17025 17026found="no" 17027 17028 if test $found = "no" ; then 17029 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17030 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17031 fi 17032 17033 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17034 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17035 fi 17036 17037 CFLAGS="$CFLAGS -Wsequence-point" 17038 17039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5 17040$as_echo_n "checking if $CC supports -Wsequence-point... " >&6; } 17041 cacheid=xorg_cv_cc_flag__Wsequence_point 17042 if eval \${$cacheid+:} false; then : 17043 $as_echo_n "(cached) " >&6 17044else 17045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17046/* end confdefs.h. */ 17047int i; 17048int 17049main () 17050{ 17051 17052 ; 17053 return 0; 17054} 17055_ACEOF 17056if ac_fn_c_try_link "$LINENO"; then : 17057 eval $cacheid=yes 17058else 17059 eval $cacheid=no 17060fi 17061rm -f core conftest.err conftest.$ac_objext \ 17062 conftest$ac_exeext conftest.$ac_ext 17063fi 17064 17065 17066 CFLAGS="$xorg_testset_save_CFLAGS" 17067 17068 eval supported=\$$cacheid 17069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17070$as_echo "$supported" >&6; } 17071 if test "$supported" = "yes" ; then 17072 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point" 17073 found="yes" 17074 fi 17075 fi 17076 17077 17078 17079 17080 17081 17082 17083 17084 17085 17086 17087 17088 17089 17090 17091xorg_testset_save_CFLAGS="$CFLAGS" 17092 17093if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17094 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17096$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17097if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 17098 $as_echo_n "(cached) " >&6 17099else 17100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17101/* end confdefs.h. */ 17102int i; 17103_ACEOF 17104if ac_fn_c_try_compile "$LINENO"; then : 17105 xorg_cv_cc_flag_unknown_warning_option=yes 17106else 17107 xorg_cv_cc_flag_unknown_warning_option=no 17108fi 17109rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17110fi 17111{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17112$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17113 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17114 CFLAGS="$xorg_testset_save_CFLAGS" 17115fi 17116 17117if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17118 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17119 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17120 fi 17121 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17123$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17124if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 17125 $as_echo_n "(cached) " >&6 17126else 17127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17128/* end confdefs.h. */ 17129int i; 17130_ACEOF 17131if ac_fn_c_try_compile "$LINENO"; then : 17132 xorg_cv_cc_flag_unused_command_line_argument=yes 17133else 17134 xorg_cv_cc_flag_unused_command_line_argument=no 17135fi 17136rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17137fi 17138{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17139$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17140 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17141 CFLAGS="$xorg_testset_save_CFLAGS" 17142fi 17143 17144found="no" 17145 17146 if test $found = "no" ; then 17147 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17148 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17149 fi 17150 17151 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17152 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17153 fi 17154 17155 CFLAGS="$CFLAGS -Wreturn-type" 17156 17157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5 17158$as_echo_n "checking if $CC supports -Wreturn-type... " >&6; } 17159 cacheid=xorg_cv_cc_flag__Wreturn_type 17160 if eval \${$cacheid+:} false; then : 17161 $as_echo_n "(cached) " >&6 17162else 17163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17164/* end confdefs.h. */ 17165int i; 17166int 17167main () 17168{ 17169 17170 ; 17171 return 0; 17172} 17173_ACEOF 17174if ac_fn_c_try_link "$LINENO"; then : 17175 eval $cacheid=yes 17176else 17177 eval $cacheid=no 17178fi 17179rm -f core conftest.err conftest.$ac_objext \ 17180 conftest$ac_exeext conftest.$ac_ext 17181fi 17182 17183 17184 CFLAGS="$xorg_testset_save_CFLAGS" 17185 17186 eval supported=\$$cacheid 17187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17188$as_echo "$supported" >&6; } 17189 if test "$supported" = "yes" ; then 17190 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type" 17191 found="yes" 17192 fi 17193 fi 17194 17195 17196 17197 17198 17199 17200 17201 17202 17203 17204 17205 17206 17207 17208 17209xorg_testset_save_CFLAGS="$CFLAGS" 17210 17211if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17212 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17214$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17215if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 17216 $as_echo_n "(cached) " >&6 17217else 17218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17219/* end confdefs.h. */ 17220int i; 17221_ACEOF 17222if ac_fn_c_try_compile "$LINENO"; then : 17223 xorg_cv_cc_flag_unknown_warning_option=yes 17224else 17225 xorg_cv_cc_flag_unknown_warning_option=no 17226fi 17227rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17228fi 17229{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17230$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17231 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17232 CFLAGS="$xorg_testset_save_CFLAGS" 17233fi 17234 17235if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17236 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17237 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17238 fi 17239 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17241$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17242if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 17243 $as_echo_n "(cached) " >&6 17244else 17245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17246/* end confdefs.h. */ 17247int i; 17248_ACEOF 17249if ac_fn_c_try_compile "$LINENO"; then : 17250 xorg_cv_cc_flag_unused_command_line_argument=yes 17251else 17252 xorg_cv_cc_flag_unused_command_line_argument=no 17253fi 17254rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17255fi 17256{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17257$as_echo "$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 -Wtrigraphs" 17274 17275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5 17276$as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; } 17277 cacheid=xorg_cv_cc_flag__Wtrigraphs 17278 if eval \${$cacheid+:} false; then : 17279 $as_echo_n "(cached) " >&6 17280else 17281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17282/* end confdefs.h. */ 17283int i; 17284int 17285main () 17286{ 17287 17288 ; 17289 return 0; 17290} 17291_ACEOF 17292if ac_fn_c_try_link "$LINENO"; then : 17293 eval $cacheid=yes 17294else 17295 eval $cacheid=no 17296fi 17297rm -f core conftest.err conftest.$ac_objext \ 17298 conftest$ac_exeext conftest.$ac_ext 17299fi 17300 17301 17302 CFLAGS="$xorg_testset_save_CFLAGS" 17303 17304 eval supported=\$$cacheid 17305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17306$as_echo "$supported" >&6; } 17307 if test "$supported" = "yes" ; then 17308 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs" 17309 found="yes" 17310 fi 17311 fi 17312 17313 17314 17315 17316 17317 17318 17319 17320 17321 17322 17323 17324 17325 17326 17327xorg_testset_save_CFLAGS="$CFLAGS" 17328 17329if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17330 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17332$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17333if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 17334 $as_echo_n "(cached) " >&6 17335else 17336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17337/* end confdefs.h. */ 17338int i; 17339_ACEOF 17340if ac_fn_c_try_compile "$LINENO"; then : 17341 xorg_cv_cc_flag_unknown_warning_option=yes 17342else 17343 xorg_cv_cc_flag_unknown_warning_option=no 17344fi 17345rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17346fi 17347{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17348$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17349 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17350 CFLAGS="$xorg_testset_save_CFLAGS" 17351fi 17352 17353if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17354 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17355 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17356 fi 17357 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17359$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17360if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 17361 $as_echo_n "(cached) " >&6 17362else 17363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17364/* end confdefs.h. */ 17365int i; 17366_ACEOF 17367if ac_fn_c_try_compile "$LINENO"; then : 17368 xorg_cv_cc_flag_unused_command_line_argument=yes 17369else 17370 xorg_cv_cc_flag_unused_command_line_argument=no 17371fi 17372rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17373fi 17374{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17375$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17376 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17377 CFLAGS="$xorg_testset_save_CFLAGS" 17378fi 17379 17380found="no" 17381 17382 if test $found = "no" ; then 17383 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17384 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17385 fi 17386 17387 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17388 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17389 fi 17390 17391 CFLAGS="$CFLAGS -Warray-bounds" 17392 17393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5 17394$as_echo_n "checking if $CC supports -Warray-bounds... " >&6; } 17395 cacheid=xorg_cv_cc_flag__Warray_bounds 17396 if eval \${$cacheid+:} false; then : 17397 $as_echo_n "(cached) " >&6 17398else 17399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17400/* end confdefs.h. */ 17401int i; 17402int 17403main () 17404{ 17405 17406 ; 17407 return 0; 17408} 17409_ACEOF 17410if ac_fn_c_try_link "$LINENO"; then : 17411 eval $cacheid=yes 17412else 17413 eval $cacheid=no 17414fi 17415rm -f core conftest.err conftest.$ac_objext \ 17416 conftest$ac_exeext conftest.$ac_ext 17417fi 17418 17419 17420 CFLAGS="$xorg_testset_save_CFLAGS" 17421 17422 eval supported=\$$cacheid 17423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17424$as_echo "$supported" >&6; } 17425 if test "$supported" = "yes" ; then 17426 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds" 17427 found="yes" 17428 fi 17429 fi 17430 17431 17432 17433 17434 17435 17436 17437 17438 17439 17440 17441 17442 17443 17444 17445xorg_testset_save_CFLAGS="$CFLAGS" 17446 17447if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17448 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17450$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17451if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 17452 $as_echo_n "(cached) " >&6 17453else 17454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17455/* end confdefs.h. */ 17456int i; 17457_ACEOF 17458if ac_fn_c_try_compile "$LINENO"; then : 17459 xorg_cv_cc_flag_unknown_warning_option=yes 17460else 17461 xorg_cv_cc_flag_unknown_warning_option=no 17462fi 17463rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17464fi 17465{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17466$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17467 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17468 CFLAGS="$xorg_testset_save_CFLAGS" 17469fi 17470 17471if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17472 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17473 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17474 fi 17475 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17477$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17478if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 17479 $as_echo_n "(cached) " >&6 17480else 17481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17482/* end confdefs.h. */ 17483int i; 17484_ACEOF 17485if ac_fn_c_try_compile "$LINENO"; then : 17486 xorg_cv_cc_flag_unused_command_line_argument=yes 17487else 17488 xorg_cv_cc_flag_unused_command_line_argument=no 17489fi 17490rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17491fi 17492{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17493$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17494 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17495 CFLAGS="$xorg_testset_save_CFLAGS" 17496fi 17497 17498found="no" 17499 17500 if test $found = "no" ; then 17501 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17502 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17503 fi 17504 17505 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17506 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17507 fi 17508 17509 CFLAGS="$CFLAGS -Wwrite-strings" 17510 17511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5 17512$as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; } 17513 cacheid=xorg_cv_cc_flag__Wwrite_strings 17514 if eval \${$cacheid+:} false; then : 17515 $as_echo_n "(cached) " >&6 17516else 17517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17518/* end confdefs.h. */ 17519int i; 17520int 17521main () 17522{ 17523 17524 ; 17525 return 0; 17526} 17527_ACEOF 17528if ac_fn_c_try_link "$LINENO"; then : 17529 eval $cacheid=yes 17530else 17531 eval $cacheid=no 17532fi 17533rm -f core conftest.err conftest.$ac_objext \ 17534 conftest$ac_exeext conftest.$ac_ext 17535fi 17536 17537 17538 CFLAGS="$xorg_testset_save_CFLAGS" 17539 17540 eval supported=\$$cacheid 17541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17542$as_echo "$supported" >&6; } 17543 if test "$supported" = "yes" ; then 17544 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings" 17545 found="yes" 17546 fi 17547 fi 17548 17549 17550 17551 17552 17553 17554 17555 17556 17557 17558 17559 17560 17561 17562 17563xorg_testset_save_CFLAGS="$CFLAGS" 17564 17565if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17566 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17568$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17569if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 17570 $as_echo_n "(cached) " >&6 17571else 17572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17573/* end confdefs.h. */ 17574int i; 17575_ACEOF 17576if ac_fn_c_try_compile "$LINENO"; then : 17577 xorg_cv_cc_flag_unknown_warning_option=yes 17578else 17579 xorg_cv_cc_flag_unknown_warning_option=no 17580fi 17581rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17582fi 17583{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17584$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17585 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17586 CFLAGS="$xorg_testset_save_CFLAGS" 17587fi 17588 17589if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17590 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17591 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17592 fi 17593 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17595$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17596if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 17597 $as_echo_n "(cached) " >&6 17598else 17599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17600/* end confdefs.h. */ 17601int i; 17602_ACEOF 17603if ac_fn_c_try_compile "$LINENO"; then : 17604 xorg_cv_cc_flag_unused_command_line_argument=yes 17605else 17606 xorg_cv_cc_flag_unused_command_line_argument=no 17607fi 17608rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17609fi 17610{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17611$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17612 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17613 CFLAGS="$xorg_testset_save_CFLAGS" 17614fi 17615 17616found="no" 17617 17618 if test $found = "no" ; then 17619 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17620 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17621 fi 17622 17623 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17624 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17625 fi 17626 17627 CFLAGS="$CFLAGS -Waddress" 17628 17629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5 17630$as_echo_n "checking if $CC supports -Waddress... " >&6; } 17631 cacheid=xorg_cv_cc_flag__Waddress 17632 if eval \${$cacheid+:} false; then : 17633 $as_echo_n "(cached) " >&6 17634else 17635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17636/* end confdefs.h. */ 17637int i; 17638int 17639main () 17640{ 17641 17642 ; 17643 return 0; 17644} 17645_ACEOF 17646if ac_fn_c_try_link "$LINENO"; then : 17647 eval $cacheid=yes 17648else 17649 eval $cacheid=no 17650fi 17651rm -f core conftest.err conftest.$ac_objext \ 17652 conftest$ac_exeext conftest.$ac_ext 17653fi 17654 17655 17656 CFLAGS="$xorg_testset_save_CFLAGS" 17657 17658 eval supported=\$$cacheid 17659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17660$as_echo "$supported" >&6; } 17661 if test "$supported" = "yes" ; then 17662 BASE_CFLAGS="$BASE_CFLAGS -Waddress" 17663 found="yes" 17664 fi 17665 fi 17666 17667 17668 17669 17670 17671 17672 17673 17674 17675 17676 17677 17678 17679 17680 17681xorg_testset_save_CFLAGS="$CFLAGS" 17682 17683if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17684 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17686$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17687if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 17688 $as_echo_n "(cached) " >&6 17689else 17690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17691/* end confdefs.h. */ 17692int i; 17693_ACEOF 17694if ac_fn_c_try_compile "$LINENO"; then : 17695 xorg_cv_cc_flag_unknown_warning_option=yes 17696else 17697 xorg_cv_cc_flag_unknown_warning_option=no 17698fi 17699rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17700fi 17701{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17702$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17703 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17704 CFLAGS="$xorg_testset_save_CFLAGS" 17705fi 17706 17707if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17708 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17709 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17710 fi 17711 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17713$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17714if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 17715 $as_echo_n "(cached) " >&6 17716else 17717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17718/* end confdefs.h. */ 17719int i; 17720_ACEOF 17721if ac_fn_c_try_compile "$LINENO"; then : 17722 xorg_cv_cc_flag_unused_command_line_argument=yes 17723else 17724 xorg_cv_cc_flag_unused_command_line_argument=no 17725fi 17726rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17727fi 17728{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17729$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17730 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17731 CFLAGS="$xorg_testset_save_CFLAGS" 17732fi 17733 17734found="no" 17735 17736 if test $found = "no" ; then 17737 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17738 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17739 fi 17740 17741 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17742 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17743 fi 17744 17745 CFLAGS="$CFLAGS -Wint-to-pointer-cast" 17746 17747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5 17748$as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; } 17749 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast 17750 if eval \${$cacheid+:} false; then : 17751 $as_echo_n "(cached) " >&6 17752else 17753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17754/* end confdefs.h. */ 17755int i; 17756int 17757main () 17758{ 17759 17760 ; 17761 return 0; 17762} 17763_ACEOF 17764if ac_fn_c_try_link "$LINENO"; then : 17765 eval $cacheid=yes 17766else 17767 eval $cacheid=no 17768fi 17769rm -f core conftest.err conftest.$ac_objext \ 17770 conftest$ac_exeext conftest.$ac_ext 17771fi 17772 17773 17774 CFLAGS="$xorg_testset_save_CFLAGS" 17775 17776 eval supported=\$$cacheid 17777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17778$as_echo "$supported" >&6; } 17779 if test "$supported" = "yes" ; then 17780 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast" 17781 found="yes" 17782 fi 17783 fi 17784 17785 17786 17787 17788 17789 17790 17791 17792 17793 17794 17795 17796 17797 17798 17799xorg_testset_save_CFLAGS="$CFLAGS" 17800 17801if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17802 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17804$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17805if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 17806 $as_echo_n "(cached) " >&6 17807else 17808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17809/* end confdefs.h. */ 17810int i; 17811_ACEOF 17812if ac_fn_c_try_compile "$LINENO"; then : 17813 xorg_cv_cc_flag_unknown_warning_option=yes 17814else 17815 xorg_cv_cc_flag_unknown_warning_option=no 17816fi 17817rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17818fi 17819{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17820$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17821 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17822 CFLAGS="$xorg_testset_save_CFLAGS" 17823fi 17824 17825if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17826 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17827 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17828 fi 17829 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17831$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17832if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 17833 $as_echo_n "(cached) " >&6 17834else 17835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17836/* end confdefs.h. */ 17837int i; 17838_ACEOF 17839if ac_fn_c_try_compile "$LINENO"; then : 17840 xorg_cv_cc_flag_unused_command_line_argument=yes 17841else 17842 xorg_cv_cc_flag_unused_command_line_argument=no 17843fi 17844rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17845fi 17846{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17847$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17848 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17849 CFLAGS="$xorg_testset_save_CFLAGS" 17850fi 17851 17852found="no" 17853 17854 if test $found = "no" ; then 17855 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17856 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17857 fi 17858 17859 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17860 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17861 fi 17862 17863 CFLAGS="$CFLAGS -Wpointer-to-int-cast" 17864 17865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5 17866$as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; } 17867 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast 17868 if eval \${$cacheid+:} false; then : 17869 $as_echo_n "(cached) " >&6 17870else 17871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17872/* end confdefs.h. */ 17873int i; 17874int 17875main () 17876{ 17877 17878 ; 17879 return 0; 17880} 17881_ACEOF 17882if ac_fn_c_try_link "$LINENO"; then : 17883 eval $cacheid=yes 17884else 17885 eval $cacheid=no 17886fi 17887rm -f core conftest.err conftest.$ac_objext \ 17888 conftest$ac_exeext conftest.$ac_ext 17889fi 17890 17891 17892 CFLAGS="$xorg_testset_save_CFLAGS" 17893 17894 eval supported=\$$cacheid 17895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17896$as_echo "$supported" >&6; } 17897 if test "$supported" = "yes" ; then 17898 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast" 17899 found="yes" 17900 fi 17901 fi 17902 17903 17904fi 17905 17906 17907 17908 17909 17910 17911 17912 CWARNFLAGS="$BASE_CFLAGS" 17913 if test "x$GCC" = xyes ; then 17914 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing" 17915 fi 17916 17917 17918 17919 17920 17921 17922 17923 17924# Check whether --enable-strict-compilation was given. 17925if test "${enable_strict_compilation+set}" = set; then : 17926 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 17927else 17928 STRICT_COMPILE=no 17929fi 17930 17931 17932 17933 17934 17935 17936STRICT_CFLAGS="" 17937 17938 17939 17940 17941 17942 17943 17944 17945 17946 17947 17948 17949 17950xorg_testset_save_CFLAGS="$CFLAGS" 17951 17952if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17953 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17955$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17956if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 17957 $as_echo_n "(cached) " >&6 17958else 17959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17960/* end confdefs.h. */ 17961int i; 17962_ACEOF 17963if ac_fn_c_try_compile "$LINENO"; then : 17964 xorg_cv_cc_flag_unknown_warning_option=yes 17965else 17966 xorg_cv_cc_flag_unknown_warning_option=no 17967fi 17968rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17969fi 17970{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17971$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17972 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17973 CFLAGS="$xorg_testset_save_CFLAGS" 17974fi 17975 17976if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17977 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17978 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17979 fi 17980 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17982$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17983if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 17984 $as_echo_n "(cached) " >&6 17985else 17986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17987/* end confdefs.h. */ 17988int i; 17989_ACEOF 17990if ac_fn_c_try_compile "$LINENO"; then : 17991 xorg_cv_cc_flag_unused_command_line_argument=yes 17992else 17993 xorg_cv_cc_flag_unused_command_line_argument=no 17994fi 17995rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17996fi 17997{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17998$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17999 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18000 CFLAGS="$xorg_testset_save_CFLAGS" 18001fi 18002 18003found="no" 18004 18005 if test $found = "no" ; then 18006 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18007 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18008 fi 18009 18010 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18011 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18012 fi 18013 18014 CFLAGS="$CFLAGS -pedantic" 18015 18016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5 18017$as_echo_n "checking if $CC supports -pedantic... " >&6; } 18018 cacheid=xorg_cv_cc_flag__pedantic 18019 if eval \${$cacheid+:} false; then : 18020 $as_echo_n "(cached) " >&6 18021else 18022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18023/* end confdefs.h. */ 18024int i; 18025int 18026main () 18027{ 18028 18029 ; 18030 return 0; 18031} 18032_ACEOF 18033if ac_fn_c_try_link "$LINENO"; then : 18034 eval $cacheid=yes 18035else 18036 eval $cacheid=no 18037fi 18038rm -f core conftest.err conftest.$ac_objext \ 18039 conftest$ac_exeext conftest.$ac_ext 18040fi 18041 18042 18043 CFLAGS="$xorg_testset_save_CFLAGS" 18044 18045 eval supported=\$$cacheid 18046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18047$as_echo "$supported" >&6; } 18048 if test "$supported" = "yes" ; then 18049 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic" 18050 found="yes" 18051 fi 18052 fi 18053 18054 18055 18056 18057 18058 18059 18060 18061 18062 18063 18064 18065 18066 18067 18068xorg_testset_save_CFLAGS="$CFLAGS" 18069 18070if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18071 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18073$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18074if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 18075 $as_echo_n "(cached) " >&6 18076else 18077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18078/* end confdefs.h. */ 18079int i; 18080_ACEOF 18081if ac_fn_c_try_compile "$LINENO"; then : 18082 xorg_cv_cc_flag_unknown_warning_option=yes 18083else 18084 xorg_cv_cc_flag_unknown_warning_option=no 18085fi 18086rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18087fi 18088{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18089$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18090 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18091 CFLAGS="$xorg_testset_save_CFLAGS" 18092fi 18093 18094if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18095 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18096 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18097 fi 18098 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18100$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18101if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 18102 $as_echo_n "(cached) " >&6 18103else 18104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18105/* end confdefs.h. */ 18106int i; 18107_ACEOF 18108if ac_fn_c_try_compile "$LINENO"; then : 18109 xorg_cv_cc_flag_unused_command_line_argument=yes 18110else 18111 xorg_cv_cc_flag_unused_command_line_argument=no 18112fi 18113rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18114fi 18115{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18116$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18117 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18118 CFLAGS="$xorg_testset_save_CFLAGS" 18119fi 18120 18121found="no" 18122 18123 if test $found = "no" ; then 18124 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18125 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18126 fi 18127 18128 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18129 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18130 fi 18131 18132 CFLAGS="$CFLAGS -Werror" 18133 18134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5 18135$as_echo_n "checking if $CC supports -Werror... " >&6; } 18136 cacheid=xorg_cv_cc_flag__Werror 18137 if eval \${$cacheid+:} false; then : 18138 $as_echo_n "(cached) " >&6 18139else 18140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18141/* end confdefs.h. */ 18142int i; 18143int 18144main () 18145{ 18146 18147 ; 18148 return 0; 18149} 18150_ACEOF 18151if ac_fn_c_try_link "$LINENO"; then : 18152 eval $cacheid=yes 18153else 18154 eval $cacheid=no 18155fi 18156rm -f core conftest.err conftest.$ac_objext \ 18157 conftest$ac_exeext conftest.$ac_ext 18158fi 18159 18160 18161 CFLAGS="$xorg_testset_save_CFLAGS" 18162 18163 eval supported=\$$cacheid 18164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18165$as_echo "$supported" >&6; } 18166 if test "$supported" = "yes" ; then 18167 STRICT_CFLAGS="$STRICT_CFLAGS -Werror" 18168 found="yes" 18169 fi 18170 fi 18171 18172 if test $found = "no" ; then 18173 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18174 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18175 fi 18176 18177 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18178 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18179 fi 18180 18181 CFLAGS="$CFLAGS -errwarn" 18182 18183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5 18184$as_echo_n "checking if $CC supports -errwarn... " >&6; } 18185 cacheid=xorg_cv_cc_flag__errwarn 18186 if eval \${$cacheid+:} false; then : 18187 $as_echo_n "(cached) " >&6 18188else 18189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18190/* end confdefs.h. */ 18191int i; 18192int 18193main () 18194{ 18195 18196 ; 18197 return 0; 18198} 18199_ACEOF 18200if ac_fn_c_try_link "$LINENO"; then : 18201 eval $cacheid=yes 18202else 18203 eval $cacheid=no 18204fi 18205rm -f core conftest.err conftest.$ac_objext \ 18206 conftest$ac_exeext conftest.$ac_ext 18207fi 18208 18209 18210 CFLAGS="$xorg_testset_save_CFLAGS" 18211 18212 eval supported=\$$cacheid 18213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18214$as_echo "$supported" >&6; } 18215 if test "$supported" = "yes" ; then 18216 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn" 18217 found="yes" 18218 fi 18219 fi 18220 18221 18222 18223# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not 18224# activate it with -Werror, so we add it here explicitly. 18225 18226 18227 18228 18229 18230 18231 18232 18233 18234 18235 18236 18237 18238xorg_testset_save_CFLAGS="$CFLAGS" 18239 18240if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18241 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18243$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18244if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 18245 $as_echo_n "(cached) " >&6 18246else 18247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18248/* end confdefs.h. */ 18249int i; 18250_ACEOF 18251if ac_fn_c_try_compile "$LINENO"; then : 18252 xorg_cv_cc_flag_unknown_warning_option=yes 18253else 18254 xorg_cv_cc_flag_unknown_warning_option=no 18255fi 18256rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18257fi 18258{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18259$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18260 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18261 CFLAGS="$xorg_testset_save_CFLAGS" 18262fi 18263 18264if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18265 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18266 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18267 fi 18268 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18270$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18271if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 18272 $as_echo_n "(cached) " >&6 18273else 18274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18275/* end confdefs.h. */ 18276int i; 18277_ACEOF 18278if ac_fn_c_try_compile "$LINENO"; then : 18279 xorg_cv_cc_flag_unused_command_line_argument=yes 18280else 18281 xorg_cv_cc_flag_unused_command_line_argument=no 18282fi 18283rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18284fi 18285{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18286$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18287 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18288 CFLAGS="$xorg_testset_save_CFLAGS" 18289fi 18290 18291found="no" 18292 18293 if test $found = "no" ; then 18294 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18295 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18296 fi 18297 18298 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18299 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18300 fi 18301 18302 CFLAGS="$CFLAGS -Werror=attributes" 18303 18304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5 18305$as_echo_n "checking if $CC supports -Werror=attributes... " >&6; } 18306 cacheid=xorg_cv_cc_flag__Werror_attributes 18307 if eval \${$cacheid+:} false; then : 18308 $as_echo_n "(cached) " >&6 18309else 18310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18311/* end confdefs.h. */ 18312int i; 18313int 18314main () 18315{ 18316 18317 ; 18318 return 0; 18319} 18320_ACEOF 18321if ac_fn_c_try_link "$LINENO"; then : 18322 eval $cacheid=yes 18323else 18324 eval $cacheid=no 18325fi 18326rm -f core conftest.err conftest.$ac_objext \ 18327 conftest$ac_exeext conftest.$ac_ext 18328fi 18329 18330 18331 CFLAGS="$xorg_testset_save_CFLAGS" 18332 18333 eval supported=\$$cacheid 18334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18335$as_echo "$supported" >&6; } 18336 if test "$supported" = "yes" ; then 18337 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes" 18338 found="yes" 18339 fi 18340 fi 18341 18342 18343 18344if test "x$STRICT_COMPILE" = "xyes"; then 18345 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS" 18346 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 18347fi 18348 18349 18350 18351 18352 18353 18354cat >>confdefs.h <<_ACEOF 18355#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 18356_ACEOF 18357 18358 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 18359 if test "x$PVM" = "x"; then 18360 PVM="0" 18361 fi 18362 18363cat >>confdefs.h <<_ACEOF 18364#define PACKAGE_VERSION_MINOR $PVM 18365_ACEOF 18366 18367 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 18368 if test "x$PVP" = "x"; then 18369 PVP="0" 18370 fi 18371 18372cat >>confdefs.h <<_ACEOF 18373#define PACKAGE_VERSION_PATCHLEVEL $PVP 18374_ACEOF 18375 18376 18377 18378CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \ 18379mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 18380|| (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \ 18381touch \$(top_srcdir)/ChangeLog; \ 18382echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))" 18383 18384 18385 18386 18387macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros` 18388INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \ 18389mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \ 18390|| (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \ 18391touch \$(top_srcdir)/INSTALL; \ 18392echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))" 18393 18394 18395 18396 18397 18398 18399case $host_os in 18400 solaris*) 18401 # Solaris 2.0 - 11.3 use SysV man page section numbers, so we 18402 # check for a man page file found in later versions that use 18403 # traditional section numbers instead 18404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5 18405$as_echo_n "checking for /usr/share/man/man7/attributes.7... " >&6; } 18406if ${ac_cv_file__usr_share_man_man7_attributes_7+:} false; then : 18407 $as_echo_n "(cached) " >&6 18408else 18409 test "$cross_compiling" = yes && 18410 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 18411if test -r "/usr/share/man/man7/attributes.7"; then 18412 ac_cv_file__usr_share_man_man7_attributes_7=yes 18413else 18414 ac_cv_file__usr_share_man_man7_attributes_7=no 18415fi 18416fi 18417{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5 18418$as_echo "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; } 18419if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes; then : 18420 SYSV_MAN_SECTIONS=false 18421else 18422 SYSV_MAN_SECTIONS=true 18423fi 18424 18425 ;; 18426 *) SYSV_MAN_SECTIONS=false ;; 18427esac 18428 18429if test x$APP_MAN_SUFFIX = x ; then 18430 APP_MAN_SUFFIX=1 18431fi 18432if test x$APP_MAN_DIR = x ; then 18433 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 18434fi 18435 18436if test x$LIB_MAN_SUFFIX = x ; then 18437 LIB_MAN_SUFFIX=3 18438fi 18439if test x$LIB_MAN_DIR = x ; then 18440 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 18441fi 18442 18443if test x$FILE_MAN_SUFFIX = x ; then 18444 case $SYSV_MAN_SECTIONS in 18445 true) FILE_MAN_SUFFIX=4 ;; 18446 *) FILE_MAN_SUFFIX=5 ;; 18447 esac 18448fi 18449if test x$FILE_MAN_DIR = x ; then 18450 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 18451fi 18452 18453if test x$MISC_MAN_SUFFIX = x ; then 18454 case $SYSV_MAN_SECTIONS in 18455 true) MISC_MAN_SUFFIX=5 ;; 18456 *) MISC_MAN_SUFFIX=7 ;; 18457 esac 18458fi 18459if test x$MISC_MAN_DIR = x ; then 18460 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 18461fi 18462 18463if test x$DRIVER_MAN_SUFFIX = x ; then 18464 case $SYSV_MAN_SECTIONS in 18465 true) DRIVER_MAN_SUFFIX=7 ;; 18466 *) DRIVER_MAN_SUFFIX=4 ;; 18467 esac 18468fi 18469if test x$DRIVER_MAN_DIR = x ; then 18470 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 18471fi 18472 18473if test x$ADMIN_MAN_SUFFIX = x ; then 18474 case $SYSV_MAN_SECTIONS in 18475 true) ADMIN_MAN_SUFFIX=1m ;; 18476 *) ADMIN_MAN_SUFFIX=8 ;; 18477 esac 18478fi 18479if test x$ADMIN_MAN_DIR = x ; then 18480 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 18481fi 18482 18483 18484 18485 18486 18487 18488 18489 18490 18491 18492 18493 18494 18495 18496 18497XORG_MAN_PAGE="X Version 11" 18498 18499MAN_SUBSTS="\ 18500 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 18501 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 18502 -e 's|__xservername__|Xorg|g' \ 18503 -e 's|__xconfigfile__|xorg.conf|g' \ 18504 -e 's|__projectroot__|\$(prefix)|g' \ 18505 -e 's|__apploaddir__|\$(appdefaultdir)|g' \ 18506 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \ 18507 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \ 18508 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \ 18509 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \ 18510 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \ 18511 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'" 18512 18513 18514 18515# Check whether --enable-silent-rules was given. 18516if test "${enable_silent_rules+set}" = set; then : 18517 enableval=$enable_silent_rules; 18518fi 18519 18520case $enable_silent_rules in # ((( 18521 yes) AM_DEFAULT_VERBOSITY=0;; 18522 no) AM_DEFAULT_VERBOSITY=1;; 18523 *) AM_DEFAULT_VERBOSITY=0;; 18524esac 18525am_make=${MAKE-make} 18526{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 18527$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 18528if ${am_cv_make_support_nested_variables+:} false; then : 18529 $as_echo_n "(cached) " >&6 18530else 18531 if $as_echo 'TRUE=$(BAR$(V)) 18532BAR0=false 18533BAR1=true 18534V=1 18535am__doit: 18536 @$(TRUE) 18537.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 18538 am_cv_make_support_nested_variables=yes 18539else 18540 am_cv_make_support_nested_variables=no 18541fi 18542fi 18543{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 18544$as_echo "$am_cv_make_support_nested_variables" >&6; } 18545if test $am_cv_make_support_nested_variables = yes; then 18546 AM_V='$(V)' 18547 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 18548else 18549 AM_V=$AM_DEFAULT_VERBOSITY 18550 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 18551fi 18552AM_BACKSLASH='\' 18553 18554 18555 18556# Check whether --enable-malloc0returnsnull was given. 18557if test "${enable_malloc0returnsnull+set}" = set; then : 18558 enableval=$enable_malloc0returnsnull; MALLOC_ZERO_RETURNS_NULL=$enableval 18559else 18560 MALLOC_ZERO_RETURNS_NULL=auto 18561fi 18562 18563 18564{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether malloc(0) returns NULL" >&5 18565$as_echo_n "checking whether malloc(0) returns NULL... " >&6; } 18566if test "x$MALLOC_ZERO_RETURNS_NULL" = xauto; then 18567if ${xorg_cv_malloc0_returns_null+:} false; then : 18568 $as_echo_n "(cached) " >&6 18569else 18570 if test "$cross_compiling" = yes; then : 18571 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 18572$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 18573as_fn_error $? "cannot run test program while cross compiling 18574See \`config.log' for more details" "$LINENO" 5; } 18575else 18576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18577/* end confdefs.h. */ 18578 18579#include <stdlib.h> 18580 18581int 18582main () 18583{ 18584 18585 char *m0, *r0, *c0, *p; 18586 m0 = malloc(0); 18587 p = malloc(10); 18588 r0 = realloc(p,0); 18589 c0 = calloc(0,10); 18590 exit((m0 == 0 || r0 == 0 || c0 == 0) ? 0 : 1); 18591 18592 ; 18593 return 0; 18594} 18595_ACEOF 18596if ac_fn_c_try_run "$LINENO"; then : 18597 xorg_cv_malloc0_returns_null=yes 18598else 18599 xorg_cv_malloc0_returns_null=no 18600fi 18601rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 18602 conftest.$ac_objext conftest.beam conftest.$ac_ext 18603fi 18604 18605fi 18606 18607MALLOC_ZERO_RETURNS_NULL=$xorg_cv_malloc0_returns_null 18608fi 18609{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MALLOC_ZERO_RETURNS_NULL" >&5 18610$as_echo "$MALLOC_ZERO_RETURNS_NULL" >&6; } 18611 18612if test "x$MALLOC_ZERO_RETURNS_NULL" = xyes; then 18613 MALLOC_ZERO_CFLAGS="-DMALLOC_0_RETURNS_NULL" 18614 XMALLOC_ZERO_CFLAGS=$MALLOC_ZERO_CFLAGS 18615 XTMALLOC_ZERO_CFLAGS="$MALLOC_ZERO_CFLAGS -DXTMALLOC_BC" 18616else 18617 MALLOC_ZERO_CFLAGS="" 18618 XMALLOC_ZERO_CFLAGS="" 18619 XTMALLOC_ZERO_CFLAGS="" 18620fi 18621 18622 18623 18624 18625 18626 18627 18628# Check whether --enable-specs was given. 18629if test "${enable_specs+set}" = set; then : 18630 enableval=$enable_specs; build_specs=$enableval 18631else 18632 build_specs=yes 18633fi 18634 18635 18636 if test x$build_specs = xyes; then 18637 ENABLE_SPECS_TRUE= 18638 ENABLE_SPECS_FALSE='#' 18639else 18640 ENABLE_SPECS_TRUE='#' 18641 ENABLE_SPECS_FALSE= 18642fi 18643 18644{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build functional specifications" >&5 18645$as_echo_n "checking whether to build functional specifications... " >&6; } 18646{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $build_specs" >&5 18647$as_echo "$build_specs" >&6; } 18648 18649 18650 18651 18652 18653# Check whether --with-xmlto was given. 18654if test "${with_xmlto+set}" = set; then : 18655 withval=$with_xmlto; use_xmlto=$withval 18656else 18657 use_xmlto=auto 18658fi 18659 18660 18661 18662if test "x$use_xmlto" = x"auto"; then 18663 # Extract the first word of "xmlto", so it can be a program name with args. 18664set dummy xmlto; ac_word=$2 18665{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18666$as_echo_n "checking for $ac_word... " >&6; } 18667if ${ac_cv_path_XMLTO+:} false; then : 18668 $as_echo_n "(cached) " >&6 18669else 18670 case $XMLTO in 18671 [\\/]* | ?:[\\/]*) 18672 ac_cv_path_XMLTO="$XMLTO" # Let the user override the test with a path. 18673 ;; 18674 *) 18675 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18676for as_dir in $PATH 18677do 18678 IFS=$as_save_IFS 18679 test -z "$as_dir" && as_dir=. 18680 for ac_exec_ext in '' $ac_executable_extensions; do 18681 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18682 ac_cv_path_XMLTO="$as_dir/$ac_word$ac_exec_ext" 18683 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18684 break 2 18685 fi 18686done 18687 done 18688IFS=$as_save_IFS 18689 18690 ;; 18691esac 18692fi 18693XMLTO=$ac_cv_path_XMLTO 18694if test -n "$XMLTO"; then 18695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMLTO" >&5 18696$as_echo "$XMLTO" >&6; } 18697else 18698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18699$as_echo "no" >&6; } 18700fi 18701 18702 18703 if test "x$XMLTO" = "x"; then 18704 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xmlto not found - documentation targets will be skipped" >&5 18705$as_echo "$as_me: WARNING: xmlto not found - documentation targets will be skipped" >&2;} 18706 have_xmlto=no 18707 else 18708 have_xmlto=yes 18709 fi 18710elif test "x$use_xmlto" = x"yes" ; then 18711 # Extract the first word of "xmlto", so it can be a program name with args. 18712set dummy xmlto; ac_word=$2 18713{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18714$as_echo_n "checking for $ac_word... " >&6; } 18715if ${ac_cv_path_XMLTO+:} false; then : 18716 $as_echo_n "(cached) " >&6 18717else 18718 case $XMLTO in 18719 [\\/]* | ?:[\\/]*) 18720 ac_cv_path_XMLTO="$XMLTO" # Let the user override the test with a path. 18721 ;; 18722 *) 18723 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18724for as_dir in $PATH 18725do 18726 IFS=$as_save_IFS 18727 test -z "$as_dir" && as_dir=. 18728 for ac_exec_ext in '' $ac_executable_extensions; do 18729 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18730 ac_cv_path_XMLTO="$as_dir/$ac_word$ac_exec_ext" 18731 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18732 break 2 18733 fi 18734done 18735 done 18736IFS=$as_save_IFS 18737 18738 ;; 18739esac 18740fi 18741XMLTO=$ac_cv_path_XMLTO 18742if test -n "$XMLTO"; then 18743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMLTO" >&5 18744$as_echo "$XMLTO" >&6; } 18745else 18746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18747$as_echo "no" >&6; } 18748fi 18749 18750 18751 if test "x$XMLTO" = "x"; then 18752 as_fn_error $? "--with-xmlto=yes specified but xmlto not found in PATH" "$LINENO" 5 18753 fi 18754 have_xmlto=yes 18755elif test "x$use_xmlto" = x"no" ; then 18756 if test "x$XMLTO" != "x"; then 18757 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring XMLTO environment variable since --with-xmlto=no was specified" >&5 18758$as_echo "$as_me: WARNING: ignoring XMLTO environment variable since --with-xmlto=no was specified" >&2;} 18759 fi 18760 have_xmlto=no 18761else 18762 as_fn_error $? "--with-xmlto expects 'yes' or 'no'" "$LINENO" 5 18763fi 18764 18765# Test for a minimum version of xmlto, if provided. 18766if test "$have_xmlto" = yes; then 18767 # scrape the xmlto version 18768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the xmlto version" >&5 18769$as_echo_n "checking the xmlto version... " >&6; } 18770 xmlto_version=`$XMLTO --version 2>/dev/null | cut -d' ' -f3` 18771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xmlto_version" >&5 18772$as_echo "$xmlto_version" >&6; } 18773 as_arg_v1=$xmlto_version 18774as_arg_v2=0.0.20 18775awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null 18776case $? in #( 18777 1) : 18778 if test "x$use_xmlto" = xauto; then 18779 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xmlto version $xmlto_version found, but 0.0.20 needed" >&5 18780$as_echo "$as_me: WARNING: xmlto version $xmlto_version found, but 0.0.20 needed" >&2;} 18781 have_xmlto=no 18782 else 18783 as_fn_error $? "xmlto version $xmlto_version found, but 0.0.20 needed" "$LINENO" 5 18784 fi ;; #( 18785 0) : 18786 ;; #( 18787 2) : 18788 ;; #( 18789 *) : 18790 ;; 18791esac 18792fi 18793 18794# Test for the ability of xmlto to generate a text target 18795# 18796# NOTE: xmlto 0.0.27 or higher return a non-zero return code in the 18797# following test for empty XML docbook files. 18798# For compatibility reasons use the following empty XML docbook file and if 18799# it fails try it again with a non-empty XML file. 18800have_xmlto_text=no 18801cat > conftest.xml << "EOF" 18802EOF 18803if test "$have_xmlto" = yes; then : 18804 if $XMLTO --skip-validation txt conftest.xml >/dev/null 2>&1; then : 18805 have_xmlto_text=yes 18806else 18807 # Try it again with a non-empty XML file. 18808 cat > conftest.xml << "EOF" 18809<x></x> 18810EOF 18811 if $XMLTO --skip-validation txt conftest.xml >/dev/null 2>&1; then : 18812 have_xmlto_text=yes 18813else 18814 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xmlto cannot generate text format, this format skipped" >&5 18815$as_echo "$as_me: WARNING: xmlto cannot generate text format, this format skipped" >&2;} 18816fi 18817fi 18818fi 18819rm -f conftest.xml 18820 if test $have_xmlto_text = yes; then 18821 HAVE_XMLTO_TEXT_TRUE= 18822 HAVE_XMLTO_TEXT_FALSE='#' 18823else 18824 HAVE_XMLTO_TEXT_TRUE='#' 18825 HAVE_XMLTO_TEXT_FALSE= 18826fi 18827 18828 if test "$have_xmlto" = yes; then 18829 HAVE_XMLTO_TRUE= 18830 HAVE_XMLTO_FALSE='#' 18831else 18832 HAVE_XMLTO_TRUE='#' 18833 HAVE_XMLTO_FALSE= 18834fi 18835 18836 18837 18838 18839 18840 18841# Check whether --with-fop was given. 18842if test "${with_fop+set}" = set; then : 18843 withval=$with_fop; use_fop=$withval 18844else 18845 use_fop=auto 18846fi 18847 18848 18849 18850if test "x$use_fop" = x"auto"; then 18851 # Extract the first word of "fop", so it can be a program name with args. 18852set dummy fop; ac_word=$2 18853{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18854$as_echo_n "checking for $ac_word... " >&6; } 18855if ${ac_cv_path_FOP+:} false; then : 18856 $as_echo_n "(cached) " >&6 18857else 18858 case $FOP in 18859 [\\/]* | ?:[\\/]*) 18860 ac_cv_path_FOP="$FOP" # Let the user override the test with a path. 18861 ;; 18862 *) 18863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18864for as_dir in $PATH 18865do 18866 IFS=$as_save_IFS 18867 test -z "$as_dir" && as_dir=. 18868 for ac_exec_ext in '' $ac_executable_extensions; do 18869 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18870 ac_cv_path_FOP="$as_dir/$ac_word$ac_exec_ext" 18871 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18872 break 2 18873 fi 18874done 18875 done 18876IFS=$as_save_IFS 18877 18878 ;; 18879esac 18880fi 18881FOP=$ac_cv_path_FOP 18882if test -n "$FOP"; then 18883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FOP" >&5 18884$as_echo "$FOP" >&6; } 18885else 18886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18887$as_echo "no" >&6; } 18888fi 18889 18890 18891 if test "x$FOP" = "x"; then 18892 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fop not found - documentation targets will be skipped" >&5 18893$as_echo "$as_me: WARNING: fop not found - documentation targets will be skipped" >&2;} 18894 have_fop=no 18895 else 18896 have_fop=yes 18897 fi 18898elif test "x$use_fop" = x"yes" ; then 18899 # Extract the first word of "fop", so it can be a program name with args. 18900set dummy fop; ac_word=$2 18901{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18902$as_echo_n "checking for $ac_word... " >&6; } 18903if ${ac_cv_path_FOP+:} false; then : 18904 $as_echo_n "(cached) " >&6 18905else 18906 case $FOP in 18907 [\\/]* | ?:[\\/]*) 18908 ac_cv_path_FOP="$FOP" # Let the user override the test with a path. 18909 ;; 18910 *) 18911 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18912for as_dir in $PATH 18913do 18914 IFS=$as_save_IFS 18915 test -z "$as_dir" && as_dir=. 18916 for ac_exec_ext in '' $ac_executable_extensions; do 18917 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18918 ac_cv_path_FOP="$as_dir/$ac_word$ac_exec_ext" 18919 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18920 break 2 18921 fi 18922done 18923 done 18924IFS=$as_save_IFS 18925 18926 ;; 18927esac 18928fi 18929FOP=$ac_cv_path_FOP 18930if test -n "$FOP"; then 18931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FOP" >&5 18932$as_echo "$FOP" >&6; } 18933else 18934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18935$as_echo "no" >&6; } 18936fi 18937 18938 18939 if test "x$FOP" = "x"; then 18940 as_fn_error $? "--with-fop=yes specified but fop not found in PATH" "$LINENO" 5 18941 fi 18942 have_fop=yes 18943elif test "x$use_fop" = x"no" ; then 18944 if test "x$FOP" != "x"; then 18945 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring FOP environment variable since --with-fop=no was specified" >&5 18946$as_echo "$as_me: WARNING: ignoring FOP environment variable since --with-fop=no was specified" >&2;} 18947 fi 18948 have_fop=no 18949else 18950 as_fn_error $? "--with-fop expects 'yes' or 'no'" "$LINENO" 5 18951fi 18952 18953# Test for a minimum version of fop, if provided. 18954 18955 if test "$have_fop" = yes; then 18956 HAVE_FOP_TRUE= 18957 HAVE_FOP_FALSE='#' 18958else 18959 HAVE_FOP_TRUE='#' 18960 HAVE_FOP_FALSE= 18961fi 18962 18963 18964 18965 18966# Preserves the interface, should it be implemented later 18967 18968 18969 18970# Check whether --with-xsltproc was given. 18971if test "${with_xsltproc+set}" = set; then : 18972 withval=$with_xsltproc; use_xsltproc=$withval 18973else 18974 use_xsltproc=auto 18975fi 18976 18977 18978 18979if test "x$use_xsltproc" = x"auto"; then 18980 # Extract the first word of "xsltproc", so it can be a program name with args. 18981set dummy xsltproc; ac_word=$2 18982{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18983$as_echo_n "checking for $ac_word... " >&6; } 18984if ${ac_cv_path_XSLTPROC+:} false; then : 18985 $as_echo_n "(cached) " >&6 18986else 18987 case $XSLTPROC in 18988 [\\/]* | ?:[\\/]*) 18989 ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path. 18990 ;; 18991 *) 18992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18993for as_dir in $PATH 18994do 18995 IFS=$as_save_IFS 18996 test -z "$as_dir" && as_dir=. 18997 for ac_exec_ext in '' $ac_executable_extensions; do 18998 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18999 ac_cv_path_XSLTPROC="$as_dir/$ac_word$ac_exec_ext" 19000 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19001 break 2 19002 fi 19003done 19004 done 19005IFS=$as_save_IFS 19006 19007 ;; 19008esac 19009fi 19010XSLTPROC=$ac_cv_path_XSLTPROC 19011if test -n "$XSLTPROC"; then 19012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5 19013$as_echo "$XSLTPROC" >&6; } 19014else 19015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19016$as_echo "no" >&6; } 19017fi 19018 19019 19020 if test "x$XSLTPROC" = "x"; then 19021 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xsltproc not found - cannot transform XML documents" >&5 19022$as_echo "$as_me: WARNING: xsltproc not found - cannot transform XML documents" >&2;} 19023 have_xsltproc=no 19024 else 19025 have_xsltproc=yes 19026 fi 19027elif test "x$use_xsltproc" = x"yes" ; then 19028 # Extract the first word of "xsltproc", so it can be a program name with args. 19029set dummy xsltproc; ac_word=$2 19030{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19031$as_echo_n "checking for $ac_word... " >&6; } 19032if ${ac_cv_path_XSLTPROC+:} false; then : 19033 $as_echo_n "(cached) " >&6 19034else 19035 case $XSLTPROC in 19036 [\\/]* | ?:[\\/]*) 19037 ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path. 19038 ;; 19039 *) 19040 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19041for as_dir in $PATH 19042do 19043 IFS=$as_save_IFS 19044 test -z "$as_dir" && as_dir=. 19045 for ac_exec_ext in '' $ac_executable_extensions; do 19046 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19047 ac_cv_path_XSLTPROC="$as_dir/$ac_word$ac_exec_ext" 19048 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19049 break 2 19050 fi 19051done 19052 done 19053IFS=$as_save_IFS 19054 19055 ;; 19056esac 19057fi 19058XSLTPROC=$ac_cv_path_XSLTPROC 19059if test -n "$XSLTPROC"; then 19060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5 19061$as_echo "$XSLTPROC" >&6; } 19062else 19063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19064$as_echo "no" >&6; } 19065fi 19066 19067 19068 if test "x$XSLTPROC" = "x"; then 19069 as_fn_error $? "--with-xsltproc=yes specified but xsltproc not found in PATH" "$LINENO" 5 19070 fi 19071 have_xsltproc=yes 19072elif test "x$use_xsltproc" = x"no" ; then 19073 if test "x$XSLTPROC" != "x"; then 19074 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring XSLTPROC environment variable since --with-xsltproc=no was specified" >&5 19075$as_echo "$as_me: WARNING: ignoring XSLTPROC environment variable since --with-xsltproc=no was specified" >&2;} 19076 fi 19077 have_xsltproc=no 19078else 19079 as_fn_error $? "--with-xsltproc expects 'yes' or 'no'" "$LINENO" 5 19080fi 19081 19082 if test "$have_xsltproc" = yes; then 19083 HAVE_XSLTPROC_TRUE= 19084 HAVE_XSLTPROC_FALSE='#' 19085else 19086 HAVE_XSLTPROC_TRUE='#' 19087 HAVE_XSLTPROC_FALSE= 19088fi 19089 19090 19091 19092{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X.Org SGML entities >= 1.01" >&5 19093$as_echo_n "checking for X.Org SGML entities >= 1.01... " >&6; } 19094XORG_SGML_PATH= 19095if test -n "$PKG_CONFIG" && \ 19096 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-sgml-doctools >= 1.01\""; } >&5 19097 ($PKG_CONFIG --exists --print-errors "xorg-sgml-doctools >= 1.01") 2>&5 19098 ac_status=$? 19099 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19100 test $ac_status = 0; }; then 19101 XORG_SGML_PATH=`$PKG_CONFIG --variable=sgmlrootdir xorg-sgml-doctools` 19102else 19103 : 19104 19105fi 19106 19107# Define variables STYLESHEET_SRCDIR and XSL_STYLESHEET containing 19108# the path and the name of the doc stylesheet 19109if test "x$XORG_SGML_PATH" != "x" ; then 19110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XORG_SGML_PATH" >&5 19111$as_echo "$XORG_SGML_PATH" >&6; } 19112 STYLESHEET_SRCDIR=$XORG_SGML_PATH/X11 19113 XSL_STYLESHEET=$STYLESHEET_SRCDIR/xorg.xsl 19114else 19115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19116$as_echo "no" >&6; } 19117fi 19118 19119 19120 19121 19122 if test "x$XSL_STYLESHEET" != "x"; then 19123 HAVE_STYLESHEETS_TRUE= 19124 HAVE_STYLESHEETS_FALSE='#' 19125else 19126 HAVE_STYLESHEETS_TRUE='#' 19127 HAVE_STYLESHEETS_FALSE= 19128fi 19129 19130 19131 19132 19133if test -n "$ac_tool_prefix"; then 19134 # Extract the first word of "${ac_tool_prefix}cpp", so it can be a program name with args. 19135set dummy ${ac_tool_prefix}cpp; ac_word=$2 19136{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19137$as_echo_n "checking for $ac_word... " >&6; } 19138if ${ac_cv_path_RAWCPP+:} false; then : 19139 $as_echo_n "(cached) " >&6 19140else 19141 case $RAWCPP in 19142 [\\/]* | ?:[\\/]*) 19143 ac_cv_path_RAWCPP="$RAWCPP" # Let the user override the test with a path. 19144 ;; 19145 *) 19146 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19147as_dummy="$PATH:/bin:/usr/bin:/usr/lib:/usr/libexec:/usr/ccs/lib:/usr/ccs/lbin:/lib" 19148for as_dir in $as_dummy 19149do 19150 IFS=$as_save_IFS 19151 test -z "$as_dir" && as_dir=. 19152 for ac_exec_ext in '' $ac_executable_extensions; do 19153 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19154 ac_cv_path_RAWCPP="$as_dir/$ac_word$ac_exec_ext" 19155 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19156 break 2 19157 fi 19158done 19159 done 19160IFS=$as_save_IFS 19161 19162 ;; 19163esac 19164fi 19165RAWCPP=$ac_cv_path_RAWCPP 19166if test -n "$RAWCPP"; then 19167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RAWCPP" >&5 19168$as_echo "$RAWCPP" >&6; } 19169else 19170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19171$as_echo "no" >&6; } 19172fi 19173 19174 19175fi 19176if test -z "$ac_cv_path_RAWCPP"; then 19177 ac_pt_RAWCPP=$RAWCPP 19178 # Extract the first word of "cpp", so it can be a program name with args. 19179set dummy cpp; ac_word=$2 19180{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19181$as_echo_n "checking for $ac_word... " >&6; } 19182if ${ac_cv_path_ac_pt_RAWCPP+:} false; then : 19183 $as_echo_n "(cached) " >&6 19184else 19185 case $ac_pt_RAWCPP in 19186 [\\/]* | ?:[\\/]*) 19187 ac_cv_path_ac_pt_RAWCPP="$ac_pt_RAWCPP" # Let the user override the test with a path. 19188 ;; 19189 *) 19190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19191as_dummy="$PATH:/bin:/usr/bin:/usr/lib:/usr/libexec:/usr/ccs/lib:/usr/ccs/lbin:/lib" 19192for as_dir in $as_dummy 19193do 19194 IFS=$as_save_IFS 19195 test -z "$as_dir" && as_dir=. 19196 for ac_exec_ext in '' $ac_executable_extensions; do 19197 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19198 ac_cv_path_ac_pt_RAWCPP="$as_dir/$ac_word$ac_exec_ext" 19199 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19200 break 2 19201 fi 19202done 19203 done 19204IFS=$as_save_IFS 19205 19206 ;; 19207esac 19208fi 19209ac_pt_RAWCPP=$ac_cv_path_ac_pt_RAWCPP 19210if test -n "$ac_pt_RAWCPP"; then 19211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_RAWCPP" >&5 19212$as_echo "$ac_pt_RAWCPP" >&6; } 19213else 19214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19215$as_echo "no" >&6; } 19216fi 19217 19218 if test "x$ac_pt_RAWCPP" = x; then 19219 RAWCPP="${CPP}" 19220 else 19221 case $cross_compiling:$ac_tool_warned in 19222yes:) 19223{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 19224$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 19225ac_tool_warned=yes ;; 19226esac 19227 RAWCPP=$ac_pt_RAWCPP 19228 fi 19229else 19230 RAWCPP="$ac_cv_path_RAWCPP" 19231fi 19232 19233 19234# Check for flag to avoid builtin definitions - assumes unix is predefined, 19235# which is not the best choice for supporting other OS'es, but covers most 19236# of the ones we need for now. 19237{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $RAWCPP requires -undef" >&5 19238$as_echo_n "checking if $RAWCPP requires -undef... " >&6; } 19239cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19240/* end confdefs.h. */ 19241Does cpp redefine unix ? 19242_ACEOF 19243if test `${RAWCPP} < conftest.$ac_ext | grep -c 'unix'` -eq 1 ; then 19244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19245$as_echo "no" >&6; } 19246else 19247 if test `${RAWCPP} -undef < conftest.$ac_ext | grep -c 'unix'` -eq 1 ; then 19248 RAWCPPFLAGS=-undef 19249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19250$as_echo "yes" >&6; } 19251 # under Cygwin unix is still defined even with -undef 19252 elif test `${RAWCPP} -undef -ansi < conftest.$ac_ext | grep -c 'unix'` -eq 1 ; then 19253 RAWCPPFLAGS="-undef -ansi" 19254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, with -ansi" >&5 19255$as_echo "yes, with -ansi" >&6; } 19256 else 19257 as_fn_error $? "${RAWCPP} defines unix with or without -undef. I don't know what to do." "$LINENO" 5 19258 fi 19259fi 19260rm -f conftest.$ac_ext 19261 19262{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $RAWCPP requires -traditional" >&5 19263$as_echo_n "checking if $RAWCPP requires -traditional... " >&6; } 19264cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19265/* end confdefs.h. */ 19266Does cpp preserve "whitespace"? 19267_ACEOF 19268if test `${RAWCPP} < conftest.$ac_ext | grep -c 'preserve \"'` -eq 1 ; then 19269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19270$as_echo "no" >&6; } 19271else 19272 if test `${RAWCPP} -traditional < conftest.$ac_ext | grep -c 'preserve \"'` -eq 1 ; then 19273 TRADITIONALCPPFLAGS="-traditional" 19274 RAWCPPFLAGS="${RAWCPPFLAGS} -traditional" 19275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19276$as_echo "yes" >&6; } 19277 else 19278 as_fn_error $? "${RAWCPP} does not preserve whitespace with or without -traditional. I don't know what to do." "$LINENO" 5 19279 fi 19280fi 19281rm -f conftest.$ac_ext 19282 19283 19284 19285 19286 19287# Preserves the interface, should it be implemented later 19288 19289 19290 19291# Check whether --with-perl was given. 19292if test "${with_perl+set}" = set; then : 19293 withval=$with_perl; use_perl=$withval 19294else 19295 use_perl=auto 19296fi 19297 19298 19299 19300if test "x$use_perl" = x"auto"; then 19301 # Extract the first word of "perl", so it can be a program name with args. 19302set dummy perl; ac_word=$2 19303{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19304$as_echo_n "checking for $ac_word... " >&6; } 19305if ${ac_cv_path_PERL+:} false; then : 19306 $as_echo_n "(cached) " >&6 19307else 19308 case $PERL in 19309 [\\/]* | ?:[\\/]*) 19310 ac_cv_path_PERL="$PERL" # Let the user override the test with a path. 19311 ;; 19312 *) 19313 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19314for as_dir in $PATH 19315do 19316 IFS=$as_save_IFS 19317 test -z "$as_dir" && as_dir=. 19318 for ac_exec_ext in '' $ac_executable_extensions; do 19319 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19320 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext" 19321 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19322 break 2 19323 fi 19324done 19325 done 19326IFS=$as_save_IFS 19327 19328 ;; 19329esac 19330fi 19331PERL=$ac_cv_path_PERL 19332if test -n "$PERL"; then 19333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5 19334$as_echo "$PERL" >&6; } 19335else 19336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19337$as_echo "no" >&6; } 19338fi 19339 19340 19341 if test "x$PERL" = "x"; then 19342 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: perl not found - cannot extract information and report" >&5 19343$as_echo "$as_me: WARNING: perl not found - cannot extract information and report" >&2;} 19344 have_perl=no 19345 else 19346 have_perl=yes 19347 fi 19348elif test "x$use_perl" = x"yes" ; then 19349 # Extract the first word of "perl", so it can be a program name with args. 19350set dummy perl; ac_word=$2 19351{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19352$as_echo_n "checking for $ac_word... " >&6; } 19353if ${ac_cv_path_PERL+:} false; then : 19354 $as_echo_n "(cached) " >&6 19355else 19356 case $PERL in 19357 [\\/]* | ?:[\\/]*) 19358 ac_cv_path_PERL="$PERL" # Let the user override the test with a path. 19359 ;; 19360 *) 19361 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19362for as_dir in $PATH 19363do 19364 IFS=$as_save_IFS 19365 test -z "$as_dir" && as_dir=. 19366 for ac_exec_ext in '' $ac_executable_extensions; do 19367 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19368 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext" 19369 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19370 break 2 19371 fi 19372done 19373 done 19374IFS=$as_save_IFS 19375 19376 ;; 19377esac 19378fi 19379PERL=$ac_cv_path_PERL 19380if test -n "$PERL"; then 19381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5 19382$as_echo "$PERL" >&6; } 19383else 19384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19385$as_echo "no" >&6; } 19386fi 19387 19388 19389 if test "x$PERL" = "x"; then 19390 as_fn_error $? "--with-perl=yes specified but perl not found in PATH" "$LINENO" 5 19391 fi 19392 have_perl=yes 19393elif test "x$use_perl" = x"no" ; then 19394 if test "x$PERL" != "x"; then 19395 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring PERL environment variable since --with-perl=no was specified" >&5 19396$as_echo "$as_me: WARNING: ignoring PERL environment variable since --with-perl=no was specified" >&2;} 19397 fi 19398 have_perl=no 19399else 19400 as_fn_error $? "--with-perl expects 'yes' or 'no'" "$LINENO" 5 19401fi 19402 19403 if test "$have_perl" = yes; then 19404 HAVE_PERL_TRUE= 19405 HAVE_PERL_FALSE='#' 19406else 19407 HAVE_PERL_TRUE='#' 19408 HAVE_PERL_FALSE= 19409fi 19410 19411 19412 19413 19414# Checks for header files. 19415ac_fn_c_check_header_mongrel "$LINENO" "alloca.h" "ac_cv_header_alloca_h" "$ac_includes_default" 19416if test "x$ac_cv_header_alloca_h" = xyes; then : 19417 19418$as_echo "#define INCLUDE_ALLOCA_H 1" >>confdefs.h 19419 19420fi 19421 19422 19423 19424# Obtain compiler/linker options for depedencies 19425 19426pkg_failed=no 19427{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XT" >&5 19428$as_echo_n "checking for XT... " >&6; } 19429 19430if test -n "$XT_CFLAGS"; then 19431 pkg_cv_XT_CFLAGS="$XT_CFLAGS" 19432 elif test -n "$PKG_CONFIG"; then 19433 if test -n "$PKG_CONFIG" && \ 19434 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sm ice x11 xproto kbproto\""; } >&5 19435 ($PKG_CONFIG --exists --print-errors "sm ice x11 xproto kbproto") 2>&5 19436 ac_status=$? 19437 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19438 test $ac_status = 0; }; then 19439 pkg_cv_XT_CFLAGS=`$PKG_CONFIG --cflags "sm ice x11 xproto kbproto" 2>/dev/null` 19440 test "x$?" != "x0" && pkg_failed=yes 19441else 19442 pkg_failed=yes 19443fi 19444 else 19445 pkg_failed=untried 19446fi 19447if test -n "$XT_LIBS"; then 19448 pkg_cv_XT_LIBS="$XT_LIBS" 19449 elif test -n "$PKG_CONFIG"; then 19450 if test -n "$PKG_CONFIG" && \ 19451 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sm ice x11 xproto kbproto\""; } >&5 19452 ($PKG_CONFIG --exists --print-errors "sm ice x11 xproto kbproto") 2>&5 19453 ac_status=$? 19454 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19455 test $ac_status = 0; }; then 19456 pkg_cv_XT_LIBS=`$PKG_CONFIG --libs "sm ice x11 xproto kbproto" 2>/dev/null` 19457 test "x$?" != "x0" && pkg_failed=yes 19458else 19459 pkg_failed=yes 19460fi 19461 else 19462 pkg_failed=untried 19463fi 19464 19465 19466 19467if test $pkg_failed = yes; then 19468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19469$as_echo "no" >&6; } 19470 19471if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 19472 _pkg_short_errors_supported=yes 19473else 19474 _pkg_short_errors_supported=no 19475fi 19476 if test $_pkg_short_errors_supported = yes; then 19477 XT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "sm ice x11 xproto kbproto" 2>&1` 19478 else 19479 XT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "sm ice x11 xproto kbproto" 2>&1` 19480 fi 19481 # Put the nasty error message in config.log where it belongs 19482 echo "$XT_PKG_ERRORS" >&5 19483 19484 as_fn_error $? "Package requirements (sm ice x11 xproto kbproto) were not met: 19485 19486$XT_PKG_ERRORS 19487 19488Consider adjusting the PKG_CONFIG_PATH environment variable if you 19489installed software in a non-standard prefix. 19490 19491Alternatively, you may set the environment variables XT_CFLAGS 19492and XT_LIBS to avoid the need to call pkg-config. 19493See the pkg-config man page for more details." "$LINENO" 5 19494elif test $pkg_failed = untried; then 19495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19496$as_echo "no" >&6; } 19497 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 19498$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 19499as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 19500is in your PATH or set the PKG_CONFIG environment variable to the full 19501path to pkg-config. 19502 19503Alternatively, you may set the environment variables XT_CFLAGS 19504and XT_LIBS to avoid the need to call pkg-config. 19505See the pkg-config man page for more details. 19506 19507To get pkg-config, see <http://pkg-config.freedesktop.org/>. 19508See \`config.log' for more details" "$LINENO" 5; } 19509else 19510 XT_CFLAGS=$pkg_cv_XT_CFLAGS 19511 XT_LIBS=$pkg_cv_XT_LIBS 19512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19513$as_echo "yes" >&6; } 19514 19515fi 19516 19517# Set-up variables to use build machine compiler when cross-compiling 19518if test x"$CC_FOR_BUILD" = x; then 19519 if test x"$cross_compiling" = xyes; then 19520 for ac_prog in gcc cc 19521do 19522 # Extract the first word of "$ac_prog", so it can be a program name with args. 19523set dummy $ac_prog; ac_word=$2 19524{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19525$as_echo_n "checking for $ac_word... " >&6; } 19526if ${ac_cv_prog_CC_FOR_BUILD+:} false; then : 19527 $as_echo_n "(cached) " >&6 19528else 19529 if test -n "$CC_FOR_BUILD"; then 19530 ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test. 19531else 19532as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19533for as_dir in $PATH 19534do 19535 IFS=$as_save_IFS 19536 test -z "$as_dir" && as_dir=. 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_prog_CC_FOR_BUILD="$ac_prog" 19540 $as_echo "$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 19547fi 19548fi 19549CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD 19550if test -n "$CC_FOR_BUILD"; then 19551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_BUILD" >&5 19552$as_echo "$CC_FOR_BUILD" >&6; } 19553else 19554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19555$as_echo "no" >&6; } 19556fi 19557 19558 19559 test -n "$CC_FOR_BUILD" && break 19560done 19561 19562 else 19563 CC_FOR_BUILD="$CC" 19564 fi 19565fi 19566if test x"$cross_compiling" != xyes; then 19567 : ${CFLAGS_FOR_BUILD=${CFLAGS}} 19568 : ${LDFLAGS_FOR_BUILD=${LDFLAGS}} 19569fi 19570 19571DEFAULT_CPPFLAGS_FOR_BUILD="${CPPFLAGS}" 19572ac_fn_c_check_func "$LINENO" "asprintf" "ac_cv_func_asprintf" 19573if test "x$ac_cv_func_asprintf" = xyes; then : 19574 DEFAULT_CPPFLAGS_FOR_BUILD="${DEFAULT_CPPFLAGS_FOR_BUILD} -DHAVE_ASPRINTF -D_GNU_SOURCE" 19575fi 19576 19577CPPFLAGS_FOR_BUILD=${CPPFLAGS_FOR_BUILD-${DEFAULT_CPPFLAGS_FOR_BUILD}} 19578 19579DEFAULT_CFLAGS_FOR_BUILD="${CFLAGS} ${CWARNFLAGS}" 19580 19581 19582 19583# Map function checks to old Imake #defines 19584case $host_os in 19585 # darwin through Snow Leopard has poll() but can't be used to poll character devices. 19586 darwin[789]*|darwin10*) ;; 19587 darwin*) 19588 _ac_xorg_macosx_version_min="" 19589 if echo $CPPFLAGS $CFLAGS | grep -q mmacosx-version-min ; then 19590 _ac_xorg_macosx_version_min=`echo $CPPFLAGS $CFLAGS | sed 's/^.*-mmacosx-version-min=\([^ ]*\).*$/\1/'` 19591 else 19592 _ac_xorg_macosx_version_min=$MACOSX_DEPLOYMENT_TARGET 19593 fi 19594 case $_ac_xorg_macosx_version_min in 19595 10.[0123456]|10.[0123456].*) ;; 19596 *) 19597 ac_fn_c_check_func "$LINENO" "poll" "ac_cv_func_poll" 19598if test "x$ac_cv_func_poll" = xyes; then : 19599 19600$as_echo "#define USE_POLL 1" >>confdefs.h 19601 19602fi 19603 19604 ;; 19605 esac 19606 unset _ac_xorg_macosx_version_min 19607 ;; 19608 *) 19609 ac_fn_c_check_func "$LINENO" "poll" "ac_cv_func_poll" 19610if test "x$ac_cv_func_poll" = xyes; then : 19611 19612$as_echo "#define USE_POLL 1" >>confdefs.h 19613 19614fi 19615 19616 ;; 19617esac 19618 19619# Link with winsock if mingw target 19620case $host_os in 19621 *mingw*) 19622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lws2_32" >&5 19623$as_echo_n "checking for main in -lws2_32... " >&6; } 19624if ${ac_cv_lib_ws2_32_main+:} false; then : 19625 $as_echo_n "(cached) " >&6 19626else 19627 ac_check_lib_save_LIBS=$LIBS 19628LIBS="-lws2_32 $LIBS" 19629cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19630/* end confdefs.h. */ 19631 19632 19633int 19634main () 19635{ 19636return main (); 19637 ; 19638 return 0; 19639} 19640_ACEOF 19641if ac_fn_c_try_link "$LINENO"; then : 19642 ac_cv_lib_ws2_32_main=yes 19643else 19644 ac_cv_lib_ws2_32_main=no 19645fi 19646rm -f core conftest.err conftest.$ac_objext \ 19647 conftest$ac_exeext conftest.$ac_ext 19648LIBS=$ac_check_lib_save_LIBS 19649fi 19650{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ws2_32_main" >&5 19651$as_echo "$ac_cv_lib_ws2_32_main" >&6; } 19652if test "x$ac_cv_lib_ws2_32_main" = xyes; then : 19653 cat >>confdefs.h <<_ACEOF 19654#define HAVE_LIBWS2_32 1 19655_ACEOF 19656 19657 LIBS="-lws2_32 $LIBS" 19658 19659fi 19660ac_cv_lib_ws2_32=ac_cv_lib_ws2_32_main 19661 19662 ;; 19663 *) 19664 ;; 19665esac 19666 19667# Options 19668{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if XKB support is wanted" >&5 19669$as_echo_n "checking if XKB support is wanted... " >&6; } 19670# Check whether --enable-xkb was given. 19671if test "${enable_xkb+set}" = set; then : 19672 enableval=$enable_xkb; XKB="$enableval" 19673else 19674 XKB="yes" 19675fi 19676 19677{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $XKB" >&5 19678$as_echo "$XKB" >&6; } 19679if test "x$XKB" = "xyes" ; then 19680 19681$as_echo "#define XKB 1" >>confdefs.h 19682 19683fi 19684 19685{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if C const-support is wanted" >&5 19686$as_echo_n "checking if C const-support is wanted... " >&6; } 19687# Check whether --enable-const was given. 19688if test "${enable_const+set}" = set; then : 19689 enableval=$enable_const; USE_CONST="$enableval" 19690else 19691 USE_CONST="yes" 19692fi 19693 19694{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_CONST" >&5 19695$as_echo "$USE_CONST" >&6; } 19696if test "x$USE_CONST" = "xyes" ; then 19697 19698$as_echo "#define _CONST_X_STRING 1" >>confdefs.h 19699 19700fi 19701 19702{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if geo-tattler traces are wanted" >&5 19703$as_echo_n "checking if geo-tattler traces are wanted... " >&6; } 19704# Check whether --enable-geo-tattler was given. 19705if test "${enable_geo_tattler+set}" = set; then : 19706 enableval=$enable_geo_tattler; GEO_TATTLER="$enableval" 19707else 19708 GEO_TATTLER="no" 19709fi 19710 19711{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $GEO_TATTLER" >&5 19712$as_echo "$GEO_TATTLER" >&6; } 19713if test "x$GEO_TATTLER" = "xyes" ; then 19714 19715$as_echo "#define XT_GEO_TATTLER 1" >>confdefs.h 19716 19717fi 19718 19719# --enable-unit-tests 19720 19721 19722 19723 19724 19725# Check for different types of support on different platforms 19726case $host_os in 19727 solaris*) 19728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_alloc in -lumem" >&5 19729$as_echo_n "checking for umem_alloc in -lumem... " >&6; } 19730if ${ac_cv_lib_umem_umem_alloc+:} false; then : 19731 $as_echo_n "(cached) " >&6 19732else 19733 ac_check_lib_save_LIBS=$LIBS 19734LIBS="-lumem $LIBS" 19735cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19736/* end confdefs.h. */ 19737 19738/* Override any GCC internal prototype to avoid an error. 19739 Use char because int might match the return type of a GCC 19740 builtin and then its argument prototype would still apply. */ 19741#ifdef __cplusplus 19742extern "C" 19743#endif 19744char umem_alloc (); 19745int 19746main () 19747{ 19748return umem_alloc (); 19749 ; 19750 return 0; 19751} 19752_ACEOF 19753if ac_fn_c_try_link "$LINENO"; then : 19754 ac_cv_lib_umem_umem_alloc=yes 19755else 19756 ac_cv_lib_umem_umem_alloc=no 19757fi 19758rm -f core conftest.err conftest.$ac_objext \ 19759 conftest$ac_exeext conftest.$ac_ext 19760LIBS=$ac_check_lib_save_LIBS 19761fi 19762{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_alloc" >&5 19763$as_echo "$ac_cv_lib_umem_umem_alloc" >&6; } 19764if test "x$ac_cv_lib_umem_umem_alloc" = xyes; then : 19765 malloc_debug_env='LD_PRELOAD=libumem.so UMEM_DEBUG=default' 19766fi 19767 19768 ;; 19769 *-gnu*) # GNU libc - Value is used as a single byte bit pattern, 19770 # both directly and inverted, so should not be 0 or 255. 19771 malloc_debug_env='MALLOC_PERTURB_=15' 19772 ;; 19773 darwin*) 19774 malloc_debug_env='MallocPreScribble=1 MallocScribble=1 DYLD_INSERT_LIBRARIES=/usr/lib/libgmalloc.dylib' 19775 ;; 19776 *bsd*) 19777 malloc_debug_env='MallocPreScribble=1 MallocScribble=1' 19778 ;; 19779esac 19780 19781# User supplied flags override default flags 19782if test "x$XORG_MALLOC_DEBUG_ENV" != "x"; then 19783 malloc_debug_env="$XORG_MALLOC_DEBUG_ENV" 19784fi 19785 19786XORG_MALLOC_DEBUG_ENV=$malloc_debug_env 19787 19788 19789 19790 19791 19792 19793 19794# Check whether --enable-unit-tests was given. 19795if test "${enable_unit_tests+set}" = set; then : 19796 enableval=$enable_unit_tests; enable_unit_tests=$enableval 19797else 19798 enable_unit_tests=auto 19799fi 19800 19801 19802 if test "x$enable_unit_tests" != xno; then 19803 ENABLE_UNIT_TESTS_TRUE= 19804 ENABLE_UNIT_TESTS_FALSE='#' 19805else 19806 ENABLE_UNIT_TESTS_TRUE='#' 19807 ENABLE_UNIT_TESTS_FALSE= 19808fi 19809 19810{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build unit test cases" >&5 19811$as_echo_n "checking whether to build unit test cases... " >&6; } 19812{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_unit_tests" >&5 19813$as_echo "$enable_unit_tests" >&6; } 19814 19815 19816 19817 19818 19819# Check whether --with-glib was given. 19820if test "${with_glib+set}" = set; then : 19821 withval=$with_glib; with_glib=$withval 19822else 19823 with_glib=auto 19824fi 19825 19826 19827 19828have_glib=no 19829# Do not probe GLib if user explicitly disabled unit testing 19830if test "x$enable_unit_tests" != x"no"; then 19831 # Do not probe GLib if user explicitly disabled it 19832 if test "x$with_glib" != x"no"; then 19833 19834pkg_failed=no 19835{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLIB" >&5 19836$as_echo_n "checking for GLIB... " >&6; } 19837 19838if test -n "$GLIB_CFLAGS"; then 19839 pkg_cv_GLIB_CFLAGS="$GLIB_CFLAGS" 19840 elif test -n "$PKG_CONFIG"; then 19841 if test -n "$PKG_CONFIG" && \ 19842 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.16\""; } >&5 19843 ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.16") 2>&5 19844 ac_status=$? 19845 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19846 test $ac_status = 0; }; then 19847 pkg_cv_GLIB_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 2.16" 2>/dev/null` 19848 test "x$?" != "x0" && pkg_failed=yes 19849else 19850 pkg_failed=yes 19851fi 19852 else 19853 pkg_failed=untried 19854fi 19855if test -n "$GLIB_LIBS"; then 19856 pkg_cv_GLIB_LIBS="$GLIB_LIBS" 19857 elif test -n "$PKG_CONFIG"; then 19858 if test -n "$PKG_CONFIG" && \ 19859 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.16\""; } >&5 19860 ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.16") 2>&5 19861 ac_status=$? 19862 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19863 test $ac_status = 0; }; then 19864 pkg_cv_GLIB_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 2.16" 2>/dev/null` 19865 test "x$?" != "x0" && pkg_failed=yes 19866else 19867 pkg_failed=yes 19868fi 19869 else 19870 pkg_failed=untried 19871fi 19872 19873 19874 19875if test $pkg_failed = yes; then 19876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19877$as_echo "no" >&6; } 19878 19879if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 19880 _pkg_short_errors_supported=yes 19881else 19882 _pkg_short_errors_supported=no 19883fi 19884 if test $_pkg_short_errors_supported = yes; then 19885 GLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "glib-2.0 >= 2.16" 2>&1` 19886 else 19887 GLIB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "glib-2.0 >= 2.16" 2>&1` 19888 fi 19889 # Put the nasty error message in config.log where it belongs 19890 echo "$GLIB_PKG_ERRORS" >&5 19891 19892 have_glib=no 19893elif test $pkg_failed = untried; then 19894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19895$as_echo "no" >&6; } 19896 have_glib=no 19897else 19898 GLIB_CFLAGS=$pkg_cv_GLIB_CFLAGS 19899 GLIB_LIBS=$pkg_cv_GLIB_LIBS 19900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19901$as_echo "yes" >&6; } 19902 have_glib=yes 19903fi 19904 fi 19905fi 19906 19907# Not having GLib when unit testing has been explicitly requested is an error 19908if test "x$enable_unit_tests" = x"yes"; then 19909 if test "x$have_glib" = x"no"; then 19910 as_fn_error $? "--enable-unit-tests=yes specified but glib-2.0 not found" "$LINENO" 5 19911 fi 19912fi 19913 19914# Having unit testing disabled when GLib has been explicitly requested is an error 19915if test "x$enable_unit_tests" = x"no"; then 19916 if test "x$with_glib" = x"yes"; then 19917 as_fn_error $? "--enable-unit-tests=yes specified but glib-2.0 not found" "$LINENO" 5 19918 fi 19919fi 19920 19921# Not having GLib when it has been explicitly requested is an error 19922if test "x$with_glib" = x"yes"; then 19923 if test "x$have_glib" = x"no"; then 19924 as_fn_error $? "--with-glib=yes specified but glib-2.0 not found" "$LINENO" 5 19925 fi 19926fi 19927 19928 if test "$have_glib" = yes; then 19929 HAVE_GLIB_TRUE= 19930 HAVE_GLIB_FALSE='#' 19931else 19932 HAVE_GLIB_TRUE='#' 19933 HAVE_GLIB_FALSE= 19934fi 19935 19936 19937 19938# Memory checking support 19939case $host_os in 19940 solaris*) 19941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_alloc in -lumem" >&5 19942$as_echo_n "checking for umem_alloc in -lumem... " >&6; } 19943if ${ac_cv_lib_umem_umem_alloc+:} false; then : 19944 $as_echo_n "(cached) " >&6 19945else 19946 ac_check_lib_save_LIBS=$LIBS 19947LIBS="-lumem $LIBS" 19948cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19949/* end confdefs.h. */ 19950 19951/* Override any GCC internal prototype to avoid an error. 19952 Use char because int might match the return type of a GCC 19953 builtin and then its argument prototype would still apply. */ 19954#ifdef __cplusplus 19955extern "C" 19956#endif 19957char umem_alloc (); 19958int 19959main () 19960{ 19961return umem_alloc (); 19962 ; 19963 return 0; 19964} 19965_ACEOF 19966if ac_fn_c_try_link "$LINENO"; then : 19967 ac_cv_lib_umem_umem_alloc=yes 19968else 19969 ac_cv_lib_umem_umem_alloc=no 19970fi 19971rm -f core conftest.err conftest.$ac_objext \ 19972 conftest$ac_exeext conftest.$ac_ext 19973LIBS=$ac_check_lib_save_LIBS 19974fi 19975{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_alloc" >&5 19976$as_echo "$ac_cv_lib_umem_umem_alloc" >&6; } 19977if test "x$ac_cv_lib_umem_umem_alloc" = xyes; then : 19978 MALLOC_DEBUG_ENV='LD_PRELOAD=libumem.so UMEM_DEBUG=default' 19979fi 19980 19981 ;; 19982 *-gnu*) # GNU libc - Value is used as a single byte bit pattern, 19983 # both directly and inverted, so should not be 0 or 255. 19984 MALLOC_DEBUG_ENV='MALLOC_PERTURB_=15' 19985 ;; 19986 *bsd*|darwin*) 19987 MALLOC_DEBUG_ENV='MallocPreScribble=1 MallocScribble=1' 19988 ;; 19989esac 19990{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for definitions to enable memory-checking support" >&5 19991$as_echo_n "checking for definitions to enable memory-checking support... " >&6; } 19992{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${MALLOC_DEBUG_ENV:-none}" >&5 19993$as_echo "${MALLOC_DEBUG_ENV:-none}" >&6; } 19994 19995 19996# Replaces XFileSearchPathDefault from Imake configs 19997XFILESEARCHPATHDEFAULT='$(sysconfdir)/X11/%L/%T/%N%C%S:$(sysconfdir)/X11/%l/%T/%N%C%S:$(sysconfdir)/X11/%T/%N%C%S:$(sysconfdir)/X11/%L/%T/%N%S:$(sysconfdir)/X11/%l/%T/%N%S:$(sysconfdir)/X11/%T/%N%S:$(datadir)/X11/%L/%T/%N%C%S:$(datadir)/X11/%l/%T/%N%C%S:$(datadir)/X11/%T/%N%C%S:$(datadir)/X11/%L/%T/%N%S:$(datadir)/X11/%l/%T/%N%S:$(datadir)/X11/%T/%N%S:$(libdir)/X11/%L/%T/%N%C%S:$(libdir)/X11/%l/%T/%N%C%S:$(libdir)/X11/%T/%N%C%S:$(libdir)/X11/%L/%T/%N%S:$(libdir)/X11/%l/%T/%N%S:$(libdir)/X11/%T/%N%S' 19998 19999{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X files search path" >&5 20000$as_echo_n "checking for X files search path... " >&6; } 20001 20002# Check whether --with-xfile-search-path was given. 20003if test "${with_xfile_search_path+set}" = set; then : 20004 withval=$with_xfile_search_path; XFILESEARCHPATHDEFAULT="$withval" 20005fi 20006 20007{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${XFILESEARCHPATHDEFAULT:-none}" >&5 20008$as_echo "${XFILESEARCHPATHDEFAULT:-none}" >&6; } 20009 20010 20011{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X app-defaults directory" >&5 20012$as_echo_n "checking for X app-defaults directory... " >&6; } 20013 20014# Check whether --with-appdefaultdir was given. 20015if test "${with_appdefaultdir+set}" = set; then : 20016 withval=$with_appdefaultdir; appdefaultdir="$withval" 20017else 20018 appdefaultdir=${datadir}/X11/app-defaults 20019fi 20020 20021{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $appdefaultdir" >&5 20022$as_echo "$appdefaultdir" >&6; } 20023 20024 prefix_NONE= 20025 exec_prefix_NONE= 20026 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix 20027 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix 20028 eval ax_define_dir="\"$appdefaultdir\"" 20029 eval ax_define_dir="\"$ax_define_dir\"" 20030 appdefaultdir="$ax_define_dir" 20031 20032 20033cat >>confdefs.h <<_ACEOF 20034#define appdefaultdir "$ax_define_dir" 20035_ACEOF 20036 20037 test "$prefix_NONE" && prefix=NONE 20038 test "$exec_prefix_NONE" && exec_prefix=NONE 20039 20040 20041# Replacement for Imake ToolkitStringsABIOptions, controls string tables 20042# generated by util/string.list in StringDefs.h & Shell.h 20043{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ABI options" >&5 20044$as_echo_n "checking for ABI options... " >&6; } 20045case $host_os in 20046 solaris*) 20047 # Solaris uses -intelabi even on SPARC 20048 STRINGSABIOPTIONS="-intelabi -solarisabinames" 20049 ;; 20050 sco* | svr4*) 20051 case $host_cpu in 20052 i*86) STRINGSABIOPTIONS="-intelabi" ;; 20053 *) STRINGSABIOPTIONS="" ;; 20054 esac 20055 ;; 20056esac 20057{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${STRINGSABIOPTIONS:-none}" >&5 20058$as_echo "${STRINGSABIOPTIONS:-none}" >&6; } 20059 20060 20061ERRORDBDIR=${datadir}/X11 20062 20063 20064ac_config_files="$ac_config_files Makefile src/Makefile util/Makefile include/Makefile man/Makefile specs/Makefile specs/libXt.ent test/Makefile xt.pc" 20065 20066cat >confcache <<\_ACEOF 20067# This file is a shell script that caches the results of configure 20068# tests run on this system so they can be shared between configure 20069# scripts and configure runs, see configure's option --config-cache. 20070# It is not useful on other systems. If it contains results you don't 20071# want to keep, you may remove or edit it. 20072# 20073# config.status only pays attention to the cache file if you give it 20074# the --recheck option to rerun configure. 20075# 20076# `ac_cv_env_foo' variables (set or unset) will be overridden when 20077# loading this file, other *unset* `ac_cv_foo' will be assigned the 20078# following values. 20079 20080_ACEOF 20081 20082# The following way of writing the cache mishandles newlines in values, 20083# but we know of no workaround that is simple, portable, and efficient. 20084# So, we kill variables containing newlines. 20085# Ultrix sh set writes to stderr and can't be redirected directly, 20086# and sets the high bit in the cache file unless we assign to the vars. 20087( 20088 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 20089 eval ac_val=\$$ac_var 20090 case $ac_val in #( 20091 *${as_nl}*) 20092 case $ac_var in #( 20093 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 20094$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 20095 esac 20096 case $ac_var in #( 20097 _ | IFS | as_nl) ;; #( 20098 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 20099 *) { eval $ac_var=; unset $ac_var;} ;; 20100 esac ;; 20101 esac 20102 done 20103 20104 (set) 2>&1 | 20105 case $as_nl`(ac_space=' '; set) 2>&1` in #( 20106 *${as_nl}ac_space=\ *) 20107 # `set' does not quote correctly, so add quotes: double-quote 20108 # substitution turns \\\\ into \\, and sed turns \\ into \. 20109 sed -n \ 20110 "s/'/'\\\\''/g; 20111 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 20112 ;; #( 20113 *) 20114 # `set' quotes correctly as required by POSIX, so do not add quotes. 20115 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 20116 ;; 20117 esac | 20118 sort 20119) | 20120 sed ' 20121 /^ac_cv_env_/b end 20122 t clear 20123 :clear 20124 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 20125 t end 20126 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 20127 :end' >>confcache 20128if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 20129 if test -w "$cache_file"; then 20130 if test "x$cache_file" != "x/dev/null"; then 20131 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 20132$as_echo "$as_me: updating cache $cache_file" >&6;} 20133 if test ! -f "$cache_file" || test -h "$cache_file"; then 20134 cat confcache >"$cache_file" 20135 else 20136 case $cache_file in #( 20137 */* | ?:*) 20138 mv -f confcache "$cache_file"$$ && 20139 mv -f "$cache_file"$$ "$cache_file" ;; #( 20140 *) 20141 mv -f confcache "$cache_file" ;; 20142 esac 20143 fi 20144 fi 20145 else 20146 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 20147$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 20148 fi 20149fi 20150rm -f confcache 20151 20152test "x$prefix" = xNONE && prefix=$ac_default_prefix 20153# Let make expand exec_prefix. 20154test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 20155 20156DEFS=-DHAVE_CONFIG_H 20157 20158ac_libobjs= 20159ac_ltlibobjs= 20160U= 20161for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 20162 # 1. Remove the extension, and $U if already installed. 20163 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 20164 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 20165 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 20166 # will be set to the directory where LIBOBJS objects are built. 20167 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 20168 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 20169done 20170LIBOBJS=$ac_libobjs 20171 20172LTLIBOBJS=$ac_ltlibobjs 20173 20174 20175{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 20176$as_echo_n "checking that generated files are newer than configure... " >&6; } 20177 if test -n "$am_sleep_pid"; then 20178 # Hide warnings about reused PIDs. 20179 wait $am_sleep_pid 2>/dev/null 20180 fi 20181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 20182$as_echo "done" >&6; } 20183 if test -n "$EXEEXT"; then 20184 am__EXEEXT_TRUE= 20185 am__EXEEXT_FALSE='#' 20186else 20187 am__EXEEXT_TRUE='#' 20188 am__EXEEXT_FALSE= 20189fi 20190 20191if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 20192 as_fn_error $? "conditional \"AMDEP\" was never defined. 20193Usually this means the macro was only invoked conditionally." "$LINENO" 5 20194fi 20195if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 20196 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 20197Usually this means the macro was only invoked conditionally." "$LINENO" 5 20198fi 20199if test -z "${ENABLE_SPECS_TRUE}" && test -z "${ENABLE_SPECS_FALSE}"; then 20200 as_fn_error $? "conditional \"ENABLE_SPECS\" was never defined. 20201Usually this means the macro was only invoked conditionally." "$LINENO" 5 20202fi 20203if test -z "${HAVE_XMLTO_TEXT_TRUE}" && test -z "${HAVE_XMLTO_TEXT_FALSE}"; then 20204 as_fn_error $? "conditional \"HAVE_XMLTO_TEXT\" was never defined. 20205Usually this means the macro was only invoked conditionally." "$LINENO" 5 20206fi 20207if test -z "${HAVE_XMLTO_TRUE}" && test -z "${HAVE_XMLTO_FALSE}"; then 20208 as_fn_error $? "conditional \"HAVE_XMLTO\" was never defined. 20209Usually this means the macro was only invoked conditionally." "$LINENO" 5 20210fi 20211if test -z "${HAVE_FOP_TRUE}" && test -z "${HAVE_FOP_FALSE}"; then 20212 as_fn_error $? "conditional \"HAVE_FOP\" was never defined. 20213Usually this means the macro was only invoked conditionally." "$LINENO" 5 20214fi 20215if test -z "${HAVE_XSLTPROC_TRUE}" && test -z "${HAVE_XSLTPROC_FALSE}"; then 20216 as_fn_error $? "conditional \"HAVE_XSLTPROC\" was never defined. 20217Usually this means the macro was only invoked conditionally." "$LINENO" 5 20218fi 20219if test -z "${HAVE_STYLESHEETS_TRUE}" && test -z "${HAVE_STYLESHEETS_FALSE}"; then 20220 as_fn_error $? "conditional \"HAVE_STYLESHEETS\" was never defined. 20221Usually this means the macro was only invoked conditionally." "$LINENO" 5 20222fi 20223if test -z "${HAVE_PERL_TRUE}" && test -z "${HAVE_PERL_FALSE}"; then 20224 as_fn_error $? "conditional \"HAVE_PERL\" was never defined. 20225Usually this means the macro was only invoked conditionally." "$LINENO" 5 20226fi 20227if test -z "${ENABLE_UNIT_TESTS_TRUE}" && test -z "${ENABLE_UNIT_TESTS_FALSE}"; then 20228 as_fn_error $? "conditional \"ENABLE_UNIT_TESTS\" was never defined. 20229Usually this means the macro was only invoked conditionally." "$LINENO" 5 20230fi 20231if test -z "${HAVE_GLIB_TRUE}" && test -z "${HAVE_GLIB_FALSE}"; then 20232 as_fn_error $? "conditional \"HAVE_GLIB\" was never defined. 20233Usually this means the macro was only invoked conditionally." "$LINENO" 5 20234fi 20235 20236: "${CONFIG_STATUS=./config.status}" 20237ac_write_fail=0 20238ac_clean_files_save=$ac_clean_files 20239ac_clean_files="$ac_clean_files $CONFIG_STATUS" 20240{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 20241$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 20242as_write_fail=0 20243cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 20244#! $SHELL 20245# Generated by $as_me. 20246# Run this file to recreate the current configuration. 20247# Compiler output produced by configure, useful for debugging 20248# configure, is in config.log if it exists. 20249 20250debug=false 20251ac_cs_recheck=false 20252ac_cs_silent=false 20253 20254SHELL=\${CONFIG_SHELL-$SHELL} 20255export SHELL 20256_ASEOF 20257cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 20258## -------------------- ## 20259## M4sh Initialization. ## 20260## -------------------- ## 20261 20262# Be more Bourne compatible 20263DUALCASE=1; export DUALCASE # for MKS sh 20264if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 20265 emulate sh 20266 NULLCMD=: 20267 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 20268 # is contrary to our usage. Disable this feature. 20269 alias -g '${1+"$@"}'='"$@"' 20270 setopt NO_GLOB_SUBST 20271else 20272 case `(set -o) 2>/dev/null` in #( 20273 *posix*) : 20274 set -o posix ;; #( 20275 *) : 20276 ;; 20277esac 20278fi 20279 20280 20281as_nl=' 20282' 20283export as_nl 20284# Printing a long string crashes Solaris 7 /usr/bin/printf. 20285as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 20286as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 20287as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 20288# Prefer a ksh shell builtin over an external printf program on Solaris, 20289# but without wasting forks for bash or zsh. 20290if test -z "$BASH_VERSION$ZSH_VERSION" \ 20291 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 20292 as_echo='print -r --' 20293 as_echo_n='print -rn --' 20294elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 20295 as_echo='printf %s\n' 20296 as_echo_n='printf %s' 20297else 20298 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 20299 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 20300 as_echo_n='/usr/ucb/echo -n' 20301 else 20302 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 20303 as_echo_n_body='eval 20304 arg=$1; 20305 case $arg in #( 20306 *"$as_nl"*) 20307 expr "X$arg" : "X\\(.*\\)$as_nl"; 20308 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 20309 esac; 20310 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 20311 ' 20312 export as_echo_n_body 20313 as_echo_n='sh -c $as_echo_n_body as_echo' 20314 fi 20315 export as_echo_body 20316 as_echo='sh -c $as_echo_body as_echo' 20317fi 20318 20319# The user is always right. 20320if test "${PATH_SEPARATOR+set}" != set; then 20321 PATH_SEPARATOR=: 20322 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 20323 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 20324 PATH_SEPARATOR=';' 20325 } 20326fi 20327 20328 20329# IFS 20330# We need space, tab and new line, in precisely that order. Quoting is 20331# there to prevent editors from complaining about space-tab. 20332# (If _AS_PATH_WALK were called with IFS unset, it would disable word 20333# splitting by setting IFS to empty value.) 20334IFS=" "" $as_nl" 20335 20336# Find who we are. Look in the path if we contain no directory separator. 20337as_myself= 20338case $0 in #(( 20339 *[\\/]* ) as_myself=$0 ;; 20340 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20341for as_dir in $PATH 20342do 20343 IFS=$as_save_IFS 20344 test -z "$as_dir" && as_dir=. 20345 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 20346 done 20347IFS=$as_save_IFS 20348 20349 ;; 20350esac 20351# We did not find ourselves, most probably we were run as `sh COMMAND' 20352# in which case we are not to be found in the path. 20353if test "x$as_myself" = x; then 20354 as_myself=$0 20355fi 20356if test ! -f "$as_myself"; then 20357 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 20358 exit 1 20359fi 20360 20361# Unset variables that we do not need and which cause bugs (e.g. in 20362# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 20363# suppresses any "Segmentation fault" message there. '((' could 20364# trigger a bug in pdksh 5.2.14. 20365for as_var in BASH_ENV ENV MAIL MAILPATH 20366do eval test x\${$as_var+set} = xset \ 20367 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 20368done 20369PS1='$ ' 20370PS2='> ' 20371PS4='+ ' 20372 20373# NLS nuisances. 20374LC_ALL=C 20375export LC_ALL 20376LANGUAGE=C 20377export LANGUAGE 20378 20379# CDPATH. 20380(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 20381 20382 20383# as_fn_error STATUS ERROR [LINENO LOG_FD] 20384# ---------------------------------------- 20385# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 20386# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 20387# script with STATUS, using 1 if that was 0. 20388as_fn_error () 20389{ 20390 as_status=$1; test $as_status -eq 0 && as_status=1 20391 if test "$4"; then 20392 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 20393 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 20394 fi 20395 $as_echo "$as_me: error: $2" >&2 20396 as_fn_exit $as_status 20397} # as_fn_error 20398 20399 20400# as_fn_set_status STATUS 20401# ----------------------- 20402# Set $? to STATUS, without forking. 20403as_fn_set_status () 20404{ 20405 return $1 20406} # as_fn_set_status 20407 20408# as_fn_exit STATUS 20409# ----------------- 20410# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 20411as_fn_exit () 20412{ 20413 set +e 20414 as_fn_set_status $1 20415 exit $1 20416} # as_fn_exit 20417 20418# as_fn_unset VAR 20419# --------------- 20420# Portably unset VAR. 20421as_fn_unset () 20422{ 20423 { eval $1=; unset $1;} 20424} 20425as_unset=as_fn_unset 20426# as_fn_append VAR VALUE 20427# ---------------------- 20428# Append the text in VALUE to the end of the definition contained in VAR. Take 20429# advantage of any shell optimizations that allow amortized linear growth over 20430# repeated appends, instead of the typical quadratic growth present in naive 20431# implementations. 20432if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 20433 eval 'as_fn_append () 20434 { 20435 eval $1+=\$2 20436 }' 20437else 20438 as_fn_append () 20439 { 20440 eval $1=\$$1\$2 20441 } 20442fi # as_fn_append 20443 20444# as_fn_arith ARG... 20445# ------------------ 20446# Perform arithmetic evaluation on the ARGs, and store the result in the 20447# global $as_val. Take advantage of shells that can avoid forks. The arguments 20448# must be portable across $(()) and expr. 20449if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 20450 eval 'as_fn_arith () 20451 { 20452 as_val=$(( $* )) 20453 }' 20454else 20455 as_fn_arith () 20456 { 20457 as_val=`expr "$@" || test $? -eq 1` 20458 } 20459fi # as_fn_arith 20460 20461 20462if expr a : '\(a\)' >/dev/null 2>&1 && 20463 test "X`expr 00001 : '.*\(...\)'`" = X001; then 20464 as_expr=expr 20465else 20466 as_expr=false 20467fi 20468 20469if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 20470 as_basename=basename 20471else 20472 as_basename=false 20473fi 20474 20475if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 20476 as_dirname=dirname 20477else 20478 as_dirname=false 20479fi 20480 20481as_me=`$as_basename -- "$0" || 20482$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 20483 X"$0" : 'X\(//\)$' \| \ 20484 X"$0" : 'X\(/\)' \| . 2>/dev/null || 20485$as_echo X/"$0" | 20486 sed '/^.*\/\([^/][^/]*\)\/*$/{ 20487 s//\1/ 20488 q 20489 } 20490 /^X\/\(\/\/\)$/{ 20491 s//\1/ 20492 q 20493 } 20494 /^X\/\(\/\).*/{ 20495 s//\1/ 20496 q 20497 } 20498 s/.*/./; q'` 20499 20500# Avoid depending upon Character Ranges. 20501as_cr_letters='abcdefghijklmnopqrstuvwxyz' 20502as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 20503as_cr_Letters=$as_cr_letters$as_cr_LETTERS 20504as_cr_digits='0123456789' 20505as_cr_alnum=$as_cr_Letters$as_cr_digits 20506 20507ECHO_C= ECHO_N= ECHO_T= 20508case `echo -n x` in #((((( 20509-n*) 20510 case `echo 'xy\c'` in 20511 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 20512 xy) ECHO_C='\c';; 20513 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 20514 ECHO_T=' ';; 20515 esac;; 20516*) 20517 ECHO_N='-n';; 20518esac 20519 20520rm -f conf$$ conf$$.exe conf$$.file 20521if test -d conf$$.dir; then 20522 rm -f conf$$.dir/conf$$.file 20523else 20524 rm -f conf$$.dir 20525 mkdir conf$$.dir 2>/dev/null 20526fi 20527if (echo >conf$$.file) 2>/dev/null; then 20528 if ln -s conf$$.file conf$$ 2>/dev/null; then 20529 as_ln_s='ln -s' 20530 # ... but there are two gotchas: 20531 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 20532 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 20533 # In both cases, we have to default to `cp -pR'. 20534 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 20535 as_ln_s='cp -pR' 20536 elif ln conf$$.file conf$$ 2>/dev/null; then 20537 as_ln_s=ln 20538 else 20539 as_ln_s='cp -pR' 20540 fi 20541else 20542 as_ln_s='cp -pR' 20543fi 20544rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 20545rmdir conf$$.dir 2>/dev/null 20546 20547 20548# as_fn_mkdir_p 20549# ------------- 20550# Create "$as_dir" as a directory, including parents if necessary. 20551as_fn_mkdir_p () 20552{ 20553 20554 case $as_dir in #( 20555 -*) as_dir=./$as_dir;; 20556 esac 20557 test -d "$as_dir" || eval $as_mkdir_p || { 20558 as_dirs= 20559 while :; do 20560 case $as_dir in #( 20561 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 20562 *) as_qdir=$as_dir;; 20563 esac 20564 as_dirs="'$as_qdir' $as_dirs" 20565 as_dir=`$as_dirname -- "$as_dir" || 20566$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20567 X"$as_dir" : 'X\(//\)[^/]' \| \ 20568 X"$as_dir" : 'X\(//\)$' \| \ 20569 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 20570$as_echo X"$as_dir" | 20571 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 20572 s//\1/ 20573 q 20574 } 20575 /^X\(\/\/\)[^/].*/{ 20576 s//\1/ 20577 q 20578 } 20579 /^X\(\/\/\)$/{ 20580 s//\1/ 20581 q 20582 } 20583 /^X\(\/\).*/{ 20584 s//\1/ 20585 q 20586 } 20587 s/.*/./; q'` 20588 test -d "$as_dir" && break 20589 done 20590 test -z "$as_dirs" || eval "mkdir $as_dirs" 20591 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 20592 20593 20594} # as_fn_mkdir_p 20595if mkdir -p . 2>/dev/null; then 20596 as_mkdir_p='mkdir -p "$as_dir"' 20597else 20598 test -d ./-p && rmdir ./-p 20599 as_mkdir_p=false 20600fi 20601 20602 20603# as_fn_executable_p FILE 20604# ----------------------- 20605# Test if FILE is an executable regular file. 20606as_fn_executable_p () 20607{ 20608 test -f "$1" && test -x "$1" 20609} # as_fn_executable_p 20610as_test_x='test -x' 20611as_executable_p=as_fn_executable_p 20612 20613# Sed expression to map a string onto a valid CPP name. 20614as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 20615 20616# Sed expression to map a string onto a valid variable name. 20617as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 20618 20619 20620exec 6>&1 20621## ----------------------------------- ## 20622## Main body of $CONFIG_STATUS script. ## 20623## ----------------------------------- ## 20624_ASEOF 20625test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 20626 20627cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20628# Save the log message, to keep $0 and so on meaningful, and to 20629# report actual input values of CONFIG_FILES etc. instead of their 20630# values after options handling. 20631ac_log=" 20632This file was extended by libXt $as_me 1.2.0, which was 20633generated by GNU Autoconf 2.69. Invocation command line was 20634 20635 CONFIG_FILES = $CONFIG_FILES 20636 CONFIG_HEADERS = $CONFIG_HEADERS 20637 CONFIG_LINKS = $CONFIG_LINKS 20638 CONFIG_COMMANDS = $CONFIG_COMMANDS 20639 $ $0 $@ 20640 20641on `(hostname || uname -n) 2>/dev/null | sed 1q` 20642" 20643 20644_ACEOF 20645 20646case $ac_config_files in *" 20647"*) set x $ac_config_files; shift; ac_config_files=$*;; 20648esac 20649 20650case $ac_config_headers in *" 20651"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 20652esac 20653 20654 20655cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20656# Files that config.status was made for. 20657config_files="$ac_config_files" 20658config_headers="$ac_config_headers" 20659config_commands="$ac_config_commands" 20660 20661_ACEOF 20662 20663cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20664ac_cs_usage="\ 20665\`$as_me' instantiates files and other configuration actions 20666from templates according to the current configuration. Unless the files 20667and actions are specified as TAGs, all are instantiated by default. 20668 20669Usage: $0 [OPTION]... [TAG]... 20670 20671 -h, --help print this help, then exit 20672 -V, --version print version number and configuration settings, then exit 20673 --config print configuration, then exit 20674 -q, --quiet, --silent 20675 do not print progress messages 20676 -d, --debug don't remove temporary files 20677 --recheck update $as_me by reconfiguring in the same conditions 20678 --file=FILE[:TEMPLATE] 20679 instantiate the configuration file FILE 20680 --header=FILE[:TEMPLATE] 20681 instantiate the configuration header FILE 20682 20683Configuration files: 20684$config_files 20685 20686Configuration headers: 20687$config_headers 20688 20689Configuration commands: 20690$config_commands 20691 20692Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libXt/issues>." 20693 20694_ACEOF 20695cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20696ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 20697ac_cs_version="\\ 20698libXt config.status 1.2.0 20699configured by $0, generated by GNU Autoconf 2.69, 20700 with options \\"\$ac_cs_config\\" 20701 20702Copyright (C) 2012 Free Software Foundation, Inc. 20703This config.status script is free software; the Free Software Foundation 20704gives unlimited permission to copy, distribute and modify it." 20705 20706ac_pwd='$ac_pwd' 20707srcdir='$srcdir' 20708INSTALL='$INSTALL' 20709MKDIR_P='$MKDIR_P' 20710AWK='$AWK' 20711test -n "\$AWK" || AWK=awk 20712_ACEOF 20713 20714cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20715# The default lists apply if the user does not specify any file. 20716ac_need_defaults=: 20717while test $# != 0 20718do 20719 case $1 in 20720 --*=?*) 20721 ac_option=`expr "X$1" : 'X\([^=]*\)='` 20722 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 20723 ac_shift=: 20724 ;; 20725 --*=) 20726 ac_option=`expr "X$1" : 'X\([^=]*\)='` 20727 ac_optarg= 20728 ac_shift=: 20729 ;; 20730 *) 20731 ac_option=$1 20732 ac_optarg=$2 20733 ac_shift=shift 20734 ;; 20735 esac 20736 20737 case $ac_option in 20738 # Handling of the options. 20739 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 20740 ac_cs_recheck=: ;; 20741 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 20742 $as_echo "$ac_cs_version"; exit ;; 20743 --config | --confi | --conf | --con | --co | --c ) 20744 $as_echo "$ac_cs_config"; exit ;; 20745 --debug | --debu | --deb | --de | --d | -d ) 20746 debug=: ;; 20747 --file | --fil | --fi | --f ) 20748 $ac_shift 20749 case $ac_optarg in 20750 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 20751 '') as_fn_error $? "missing file argument" ;; 20752 esac 20753 as_fn_append CONFIG_FILES " '$ac_optarg'" 20754 ac_need_defaults=false;; 20755 --header | --heade | --head | --hea ) 20756 $ac_shift 20757 case $ac_optarg in 20758 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 20759 esac 20760 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 20761 ac_need_defaults=false;; 20762 --he | --h) 20763 # Conflict between --help and --header 20764 as_fn_error $? "ambiguous option: \`$1' 20765Try \`$0 --help' for more information.";; 20766 --help | --hel | -h ) 20767 $as_echo "$ac_cs_usage"; exit ;; 20768 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 20769 | -silent | --silent | --silen | --sile | --sil | --si | --s) 20770 ac_cs_silent=: ;; 20771 20772 # This is an error. 20773 -*) as_fn_error $? "unrecognized option: \`$1' 20774Try \`$0 --help' for more information." ;; 20775 20776 *) as_fn_append ac_config_targets " $1" 20777 ac_need_defaults=false ;; 20778 20779 esac 20780 shift 20781done 20782 20783ac_configure_extra_args= 20784 20785if $ac_cs_silent; then 20786 exec 6>/dev/null 20787 ac_configure_extra_args="$ac_configure_extra_args --silent" 20788fi 20789 20790_ACEOF 20791cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20792if \$ac_cs_recheck; then 20793 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 20794 shift 20795 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 20796 CONFIG_SHELL='$SHELL' 20797 export CONFIG_SHELL 20798 exec "\$@" 20799fi 20800 20801_ACEOF 20802cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20803exec 5>>config.log 20804{ 20805 echo 20806 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 20807## Running $as_me. ## 20808_ASBOX 20809 $as_echo "$ac_log" 20810} >&5 20811 20812_ACEOF 20813cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20814# 20815# INIT-COMMANDS 20816# 20817AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}" 20818 20819 20820# The HP-UX ksh and POSIX shell print the target directory to stdout 20821# if CDPATH is set. 20822(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 20823 20824sed_quote_subst='$sed_quote_subst' 20825double_quote_subst='$double_quote_subst' 20826delay_variable_subst='$delay_variable_subst' 20827macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 20828macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 20829enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 20830enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 20831pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 20832enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 20833shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`' 20834SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 20835ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 20836PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 20837host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 20838host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 20839host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 20840build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 20841build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 20842build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 20843SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 20844Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 20845GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 20846EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 20847FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 20848LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 20849NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 20850LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 20851max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 20852ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 20853exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 20854lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 20855lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 20856lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 20857lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 20858lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 20859reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 20860reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 20861OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 20862deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 20863file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 20864file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 20865want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 20866DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 20867sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 20868AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 20869AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 20870archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 20871STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 20872RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 20873old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 20874old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 20875old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 20876lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 20877CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 20878CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 20879compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 20880GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 20881lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 20882lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 20883lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`' 20884lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 20885lt_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"`' 20886lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`' 20887nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 20888lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 20889lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`' 20890objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 20891MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 20892lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 20893lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 20894lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 20895lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 20896lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 20897need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 20898MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 20899DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 20900NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 20901LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 20902OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 20903OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 20904libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 20905shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 20906extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 20907archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 20908enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 20909export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 20910whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 20911compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 20912old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 20913old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 20914archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 20915archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 20916module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 20917module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 20918with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 20919allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 20920no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 20921hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 20922hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 20923hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 20924hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 20925hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 20926hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 20927hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 20928inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 20929link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 20930always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 20931export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 20932exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 20933include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 20934prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 20935postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 20936file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 20937variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 20938need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 20939need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 20940version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 20941runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 20942shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 20943shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 20944libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 20945library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 20946soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 20947install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 20948postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 20949postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 20950finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 20951finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 20952hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 20953sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 20954configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`' 20955configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`' 20956hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 20957enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 20958enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 20959enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 20960old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 20961striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 20962 20963LTCC='$LTCC' 20964LTCFLAGS='$LTCFLAGS' 20965compiler='$compiler_DEFAULT' 20966 20967# A function that is used when there is no print builtin or printf. 20968func_fallback_echo () 20969{ 20970 eval 'cat <<_LTECHO_EOF 20971\$1 20972_LTECHO_EOF' 20973} 20974 20975# Quote evaled strings. 20976for var in SHELL \ 20977ECHO \ 20978PATH_SEPARATOR \ 20979SED \ 20980GREP \ 20981EGREP \ 20982FGREP \ 20983LD \ 20984NM \ 20985LN_S \ 20986lt_SP2NL \ 20987lt_NL2SP \ 20988reload_flag \ 20989OBJDUMP \ 20990deplibs_check_method \ 20991file_magic_cmd \ 20992file_magic_glob \ 20993want_nocaseglob \ 20994DLLTOOL \ 20995sharedlib_from_linklib_cmd \ 20996AR \ 20997AR_FLAGS \ 20998archiver_list_spec \ 20999STRIP \ 21000RANLIB \ 21001CC \ 21002CFLAGS \ 21003compiler \ 21004lt_cv_sys_global_symbol_pipe \ 21005lt_cv_sys_global_symbol_to_cdecl \ 21006lt_cv_sys_global_symbol_to_import \ 21007lt_cv_sys_global_symbol_to_c_name_address \ 21008lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 21009lt_cv_nm_interface \ 21010nm_file_list_spec \ 21011lt_cv_truncate_bin \ 21012lt_prog_compiler_no_builtin_flag \ 21013lt_prog_compiler_pic \ 21014lt_prog_compiler_wl \ 21015lt_prog_compiler_static \ 21016lt_cv_prog_compiler_c_o \ 21017need_locks \ 21018MANIFEST_TOOL \ 21019DSYMUTIL \ 21020NMEDIT \ 21021LIPO \ 21022OTOOL \ 21023OTOOL64 \ 21024shrext_cmds \ 21025export_dynamic_flag_spec \ 21026whole_archive_flag_spec \ 21027compiler_needs_object \ 21028with_gnu_ld \ 21029allow_undefined_flag \ 21030no_undefined_flag \ 21031hardcode_libdir_flag_spec \ 21032hardcode_libdir_separator \ 21033exclude_expsyms \ 21034include_expsyms \ 21035file_list_spec \ 21036variables_saved_for_relink \ 21037libname_spec \ 21038library_names_spec \ 21039soname_spec \ 21040install_override_mode \ 21041finish_eval \ 21042old_striplib \ 21043striplib; do 21044 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 21045 *[\\\\\\\`\\"\\\$]*) 21046 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 21047 ;; 21048 *) 21049 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 21050 ;; 21051 esac 21052done 21053 21054# Double-quote double-evaled strings. 21055for var in reload_cmds \ 21056old_postinstall_cmds \ 21057old_postuninstall_cmds \ 21058old_archive_cmds \ 21059extract_expsyms_cmds \ 21060old_archive_from_new_cmds \ 21061old_archive_from_expsyms_cmds \ 21062archive_cmds \ 21063archive_expsym_cmds \ 21064module_cmds \ 21065module_expsym_cmds \ 21066export_symbols_cmds \ 21067prelink_cmds \ 21068postlink_cmds \ 21069postinstall_cmds \ 21070postuninstall_cmds \ 21071finish_cmds \ 21072sys_lib_search_path_spec \ 21073configure_time_dlsearch_path \ 21074configure_time_lt_sys_library_path; do 21075 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 21076 *[\\\\\\\`\\"\\\$]*) 21077 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 21078 ;; 21079 *) 21080 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 21081 ;; 21082 esac 21083done 21084 21085ac_aux_dir='$ac_aux_dir' 21086 21087# See if we are running on zsh, and set the options that allow our 21088# commands through without removal of \ escapes INIT. 21089if test -n "\${ZSH_VERSION+set}"; then 21090 setopt NO_GLOB_SUBST 21091fi 21092 21093 21094 PACKAGE='$PACKAGE' 21095 VERSION='$VERSION' 21096 RM='$RM' 21097 ofile='$ofile' 21098 21099 21100 21101 21102_ACEOF 21103 21104cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21105 21106# Handling of arguments. 21107for ac_config_target in $ac_config_targets 21108do 21109 case $ac_config_target in 21110 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 21111 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 21112 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 21113 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 21114 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 21115 "util/Makefile") CONFIG_FILES="$CONFIG_FILES util/Makefile" ;; 21116 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;; 21117 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 21118 "specs/Makefile") CONFIG_FILES="$CONFIG_FILES specs/Makefile" ;; 21119 "specs/libXt.ent") CONFIG_FILES="$CONFIG_FILES specs/libXt.ent" ;; 21120 "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;; 21121 "xt.pc") CONFIG_FILES="$CONFIG_FILES xt.pc" ;; 21122 21123 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 21124 esac 21125done 21126 21127 21128# If the user did not use the arguments to specify the items to instantiate, 21129# then the envvar interface is used. Set only those that are not. 21130# We use the long form for the default assignment because of an extremely 21131# bizarre bug on SunOS 4.1.3. 21132if $ac_need_defaults; then 21133 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 21134 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 21135 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 21136fi 21137 21138# Have a temporary directory for convenience. Make it in the build tree 21139# simply because there is no reason against having it here, and in addition, 21140# creating and moving files from /tmp can sometimes cause problems. 21141# Hook for its removal unless debugging. 21142# Note that there is a small window in which the directory will not be cleaned: 21143# after its creation but before its name has been assigned to `$tmp'. 21144$debug || 21145{ 21146 tmp= ac_tmp= 21147 trap 'exit_status=$? 21148 : "${ac_tmp:=$tmp}" 21149 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 21150' 0 21151 trap 'as_fn_exit 1' 1 2 13 15 21152} 21153# Create a (secure) tmp directory for tmp files. 21154 21155{ 21156 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 21157 test -d "$tmp" 21158} || 21159{ 21160 tmp=./conf$$-$RANDOM 21161 (umask 077 && mkdir "$tmp") 21162} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 21163ac_tmp=$tmp 21164 21165# Set up the scripts for CONFIG_FILES section. 21166# No need to generate them if there are no CONFIG_FILES. 21167# This happens for instance with `./config.status config.h'. 21168if test -n "$CONFIG_FILES"; then 21169 21170 21171ac_cr=`echo X | tr X '\015'` 21172# On cygwin, bash can eat \r inside `` if the user requested igncr. 21173# But we know of no other shell where ac_cr would be empty at this 21174# point, so we can use a bashism as a fallback. 21175if test "x$ac_cr" = x; then 21176 eval ac_cr=\$\'\\r\' 21177fi 21178ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 21179if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 21180 ac_cs_awk_cr='\\r' 21181else 21182 ac_cs_awk_cr=$ac_cr 21183fi 21184 21185echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 21186_ACEOF 21187 21188 21189{ 21190 echo "cat >conf$$subs.awk <<_ACEOF" && 21191 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 21192 echo "_ACEOF" 21193} >conf$$subs.sh || 21194 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 21195ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 21196ac_delim='%!_!# ' 21197for ac_last_try in false false false false false :; do 21198 . ./conf$$subs.sh || 21199 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 21200 21201 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 21202 if test $ac_delim_n = $ac_delim_num; then 21203 break 21204 elif $ac_last_try; then 21205 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 21206 else 21207 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 21208 fi 21209done 21210rm -f conf$$subs.sh 21211 21212cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21213cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 21214_ACEOF 21215sed -n ' 21216h 21217s/^/S["/; s/!.*/"]=/ 21218p 21219g 21220s/^[^!]*!// 21221:repl 21222t repl 21223s/'"$ac_delim"'$// 21224t delim 21225:nl 21226h 21227s/\(.\{148\}\)..*/\1/ 21228t more1 21229s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 21230p 21231n 21232b repl 21233:more1 21234s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 21235p 21236g 21237s/.\{148\}// 21238t nl 21239:delim 21240h 21241s/\(.\{148\}\)..*/\1/ 21242t more2 21243s/["\\]/\\&/g; s/^/"/; s/$/"/ 21244p 21245b 21246:more2 21247s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 21248p 21249g 21250s/.\{148\}// 21251t delim 21252' <conf$$subs.awk | sed ' 21253/^[^""]/{ 21254 N 21255 s/\n// 21256} 21257' >>$CONFIG_STATUS || ac_write_fail=1 21258rm -f conf$$subs.awk 21259cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21260_ACAWK 21261cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 21262 for (key in S) S_is_set[key] = 1 21263 FS = "" 21264 21265} 21266{ 21267 line = $ 0 21268 nfields = split(line, field, "@") 21269 substed = 0 21270 len = length(field[1]) 21271 for (i = 2; i < nfields; i++) { 21272 key = field[i] 21273 keylen = length(key) 21274 if (S_is_set[key]) { 21275 value = S[key] 21276 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 21277 len += length(value) + length(field[++i]) 21278 substed = 1 21279 } else 21280 len += 1 + keylen 21281 } 21282 21283 print line 21284} 21285 21286_ACAWK 21287_ACEOF 21288cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21289if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 21290 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 21291else 21292 cat 21293fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 21294 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 21295_ACEOF 21296 21297# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 21298# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 21299# trailing colons and then remove the whole line if VPATH becomes empty 21300# (actually we leave an empty line to preserve line numbers). 21301if test "x$srcdir" = x.; then 21302 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 21303h 21304s/// 21305s/^/:/ 21306s/[ ]*$/:/ 21307s/:\$(srcdir):/:/g 21308s/:\${srcdir}:/:/g 21309s/:@srcdir@:/:/g 21310s/^:*// 21311s/:*$// 21312x 21313s/\(=[ ]*\).*/\1/ 21314G 21315s/\n// 21316s/^[^=]*=[ ]*$// 21317}' 21318fi 21319 21320cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21321fi # test -n "$CONFIG_FILES" 21322 21323# Set up the scripts for CONFIG_HEADERS section. 21324# No need to generate them if there are no CONFIG_HEADERS. 21325# This happens for instance with `./config.status Makefile'. 21326if test -n "$CONFIG_HEADERS"; then 21327cat >"$ac_tmp/defines.awk" <<\_ACAWK || 21328BEGIN { 21329_ACEOF 21330 21331# Transform confdefs.h into an awk script `defines.awk', embedded as 21332# here-document in config.status, that substitutes the proper values into 21333# config.h.in to produce config.h. 21334 21335# Create a delimiter string that does not exist in confdefs.h, to ease 21336# handling of long lines. 21337ac_delim='%!_!# ' 21338for ac_last_try in false false :; do 21339 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 21340 if test -z "$ac_tt"; then 21341 break 21342 elif $ac_last_try; then 21343 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 21344 else 21345 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 21346 fi 21347done 21348 21349# For the awk script, D is an array of macro values keyed by name, 21350# likewise P contains macro parameters if any. Preserve backslash 21351# newline sequences. 21352 21353ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 21354sed -n ' 21355s/.\{148\}/&'"$ac_delim"'/g 21356t rset 21357:rset 21358s/^[ ]*#[ ]*define[ ][ ]*/ / 21359t def 21360d 21361:def 21362s/\\$// 21363t bsnl 21364s/["\\]/\\&/g 21365s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 21366D["\1"]=" \3"/p 21367s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 21368d 21369:bsnl 21370s/["\\]/\\&/g 21371s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 21372D["\1"]=" \3\\\\\\n"\\/p 21373t cont 21374s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 21375t cont 21376d 21377:cont 21378n 21379s/.\{148\}/&'"$ac_delim"'/g 21380t clear 21381:clear 21382s/\\$// 21383t bsnlc 21384s/["\\]/\\&/g; s/^/"/; s/$/"/p 21385d 21386:bsnlc 21387s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 21388b cont 21389' <confdefs.h | sed ' 21390s/'"$ac_delim"'/"\\\ 21391"/g' >>$CONFIG_STATUS || ac_write_fail=1 21392 21393cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21394 for (key in D) D_is_set[key] = 1 21395 FS = "" 21396} 21397/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 21398 line = \$ 0 21399 split(line, arg, " ") 21400 if (arg[1] == "#") { 21401 defundef = arg[2] 21402 mac1 = arg[3] 21403 } else { 21404 defundef = substr(arg[1], 2) 21405 mac1 = arg[2] 21406 } 21407 split(mac1, mac2, "(") #) 21408 macro = mac2[1] 21409 prefix = substr(line, 1, index(line, defundef) - 1) 21410 if (D_is_set[macro]) { 21411 # Preserve the white space surrounding the "#". 21412 print prefix "define", macro P[macro] D[macro] 21413 next 21414 } else { 21415 # Replace #undef with comments. This is necessary, for example, 21416 # in the case of _POSIX_SOURCE, which is predefined and required 21417 # on some systems where configure will not decide to define it. 21418 if (defundef == "undef") { 21419 print "/*", prefix defundef, macro, "*/" 21420 next 21421 } 21422 } 21423} 21424{ print } 21425_ACAWK 21426_ACEOF 21427cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21428 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 21429fi # test -n "$CONFIG_HEADERS" 21430 21431 21432eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 21433shift 21434for ac_tag 21435do 21436 case $ac_tag in 21437 :[FHLC]) ac_mode=$ac_tag; continue;; 21438 esac 21439 case $ac_mode$ac_tag in 21440 :[FHL]*:*);; 21441 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 21442 :[FH]-) ac_tag=-:-;; 21443 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 21444 esac 21445 ac_save_IFS=$IFS 21446 IFS=: 21447 set x $ac_tag 21448 IFS=$ac_save_IFS 21449 shift 21450 ac_file=$1 21451 shift 21452 21453 case $ac_mode in 21454 :L) ac_source=$1;; 21455 :[FH]) 21456 ac_file_inputs= 21457 for ac_f 21458 do 21459 case $ac_f in 21460 -) ac_f="$ac_tmp/stdin";; 21461 *) # Look for the file first in the build tree, then in the source tree 21462 # (if the path is not absolute). The absolute path cannot be DOS-style, 21463 # because $ac_f cannot contain `:'. 21464 test -f "$ac_f" || 21465 case $ac_f in 21466 [\\/$]*) false;; 21467 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 21468 esac || 21469 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 21470 esac 21471 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 21472 as_fn_append ac_file_inputs " '$ac_f'" 21473 done 21474 21475 # Let's still pretend it is `configure' which instantiates (i.e., don't 21476 # use $as_me), people would be surprised to read: 21477 # /* config.h. Generated by config.status. */ 21478 configure_input='Generated from '` 21479 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 21480 `' by configure.' 21481 if test x"$ac_file" != x-; then 21482 configure_input="$ac_file. $configure_input" 21483 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 21484$as_echo "$as_me: creating $ac_file" >&6;} 21485 fi 21486 # Neutralize special characters interpreted by sed in replacement strings. 21487 case $configure_input in #( 21488 *\&* | *\|* | *\\* ) 21489 ac_sed_conf_input=`$as_echo "$configure_input" | 21490 sed 's/[\\\\&|]/\\\\&/g'`;; #( 21491 *) ac_sed_conf_input=$configure_input;; 21492 esac 21493 21494 case $ac_tag in 21495 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 21496 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 21497 esac 21498 ;; 21499 esac 21500 21501 ac_dir=`$as_dirname -- "$ac_file" || 21502$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21503 X"$ac_file" : 'X\(//\)[^/]' \| \ 21504 X"$ac_file" : 'X\(//\)$' \| \ 21505 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 21506$as_echo X"$ac_file" | 21507 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 21508 s//\1/ 21509 q 21510 } 21511 /^X\(\/\/\)[^/].*/{ 21512 s//\1/ 21513 q 21514 } 21515 /^X\(\/\/\)$/{ 21516 s//\1/ 21517 q 21518 } 21519 /^X\(\/\).*/{ 21520 s//\1/ 21521 q 21522 } 21523 s/.*/./; q'` 21524 as_dir="$ac_dir"; as_fn_mkdir_p 21525 ac_builddir=. 21526 21527case "$ac_dir" in 21528.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 21529*) 21530 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 21531 # A ".." for each directory in $ac_dir_suffix. 21532 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 21533 case $ac_top_builddir_sub in 21534 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 21535 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 21536 esac ;; 21537esac 21538ac_abs_top_builddir=$ac_pwd 21539ac_abs_builddir=$ac_pwd$ac_dir_suffix 21540# for backward compatibility: 21541ac_top_builddir=$ac_top_build_prefix 21542 21543case $srcdir in 21544 .) # We are building in place. 21545 ac_srcdir=. 21546 ac_top_srcdir=$ac_top_builddir_sub 21547 ac_abs_top_srcdir=$ac_pwd ;; 21548 [\\/]* | ?:[\\/]* ) # Absolute name. 21549 ac_srcdir=$srcdir$ac_dir_suffix; 21550 ac_top_srcdir=$srcdir 21551 ac_abs_top_srcdir=$srcdir ;; 21552 *) # Relative name. 21553 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 21554 ac_top_srcdir=$ac_top_build_prefix$srcdir 21555 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 21556esac 21557ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 21558 21559 21560 case $ac_mode in 21561 :F) 21562 # 21563 # CONFIG_FILE 21564 # 21565 21566 case $INSTALL in 21567 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 21568 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 21569 esac 21570 ac_MKDIR_P=$MKDIR_P 21571 case $MKDIR_P in 21572 [\\/$]* | ?:[\\/]* ) ;; 21573 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 21574 esac 21575_ACEOF 21576 21577cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21578# If the template does not know about datarootdir, expand it. 21579# FIXME: This hack should be removed a few years after 2.60. 21580ac_datarootdir_hack=; ac_datarootdir_seen= 21581ac_sed_dataroot=' 21582/datarootdir/ { 21583 p 21584 q 21585} 21586/@datadir@/p 21587/@docdir@/p 21588/@infodir@/p 21589/@localedir@/p 21590/@mandir@/p' 21591case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 21592*datarootdir*) ac_datarootdir_seen=yes;; 21593*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 21594 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 21595$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 21596_ACEOF 21597cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21598 ac_datarootdir_hack=' 21599 s&@datadir@&$datadir&g 21600 s&@docdir@&$docdir&g 21601 s&@infodir@&$infodir&g 21602 s&@localedir@&$localedir&g 21603 s&@mandir@&$mandir&g 21604 s&\\\${datarootdir}&$datarootdir&g' ;; 21605esac 21606_ACEOF 21607 21608# Neutralize VPATH when `$srcdir' = `.'. 21609# Shell code in configure.ac might set extrasub. 21610# FIXME: do we really want to maintain this feature? 21611cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21612ac_sed_extra="$ac_vpsub 21613$extrasub 21614_ACEOF 21615cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21616:t 21617/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 21618s|@configure_input@|$ac_sed_conf_input|;t t 21619s&@top_builddir@&$ac_top_builddir_sub&;t t 21620s&@top_build_prefix@&$ac_top_build_prefix&;t t 21621s&@srcdir@&$ac_srcdir&;t t 21622s&@abs_srcdir@&$ac_abs_srcdir&;t t 21623s&@top_srcdir@&$ac_top_srcdir&;t t 21624s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 21625s&@builddir@&$ac_builddir&;t t 21626s&@abs_builddir@&$ac_abs_builddir&;t t 21627s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 21628s&@INSTALL@&$ac_INSTALL&;t t 21629s&@MKDIR_P@&$ac_MKDIR_P&;t t 21630$ac_datarootdir_hack 21631" 21632eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 21633 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 21634 21635test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 21636 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 21637 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 21638 "$ac_tmp/out"`; test -z "$ac_out"; } && 21639 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 21640which seems to be undefined. Please make sure it is defined" >&5 21641$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 21642which seems to be undefined. Please make sure it is defined" >&2;} 21643 21644 rm -f "$ac_tmp/stdin" 21645 case $ac_file in 21646 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 21647 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 21648 esac \ 21649 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 21650 ;; 21651 :H) 21652 # 21653 # CONFIG_HEADER 21654 # 21655 if test x"$ac_file" != x-; then 21656 { 21657 $as_echo "/* $configure_input */" \ 21658 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 21659 } >"$ac_tmp/config.h" \ 21660 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 21661 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 21662 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 21663$as_echo "$as_me: $ac_file is unchanged" >&6;} 21664 else 21665 rm -f "$ac_file" 21666 mv "$ac_tmp/config.h" "$ac_file" \ 21667 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 21668 fi 21669 else 21670 $as_echo "/* $configure_input */" \ 21671 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 21672 || as_fn_error $? "could not create -" "$LINENO" 5 21673 fi 21674# Compute "$ac_file"'s index in $config_headers. 21675_am_arg="$ac_file" 21676_am_stamp_count=1 21677for _am_header in $config_headers :; do 21678 case $_am_header in 21679 $_am_arg | $_am_arg:* ) 21680 break ;; 21681 * ) 21682 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 21683 esac 21684done 21685echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 21686$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21687 X"$_am_arg" : 'X\(//\)[^/]' \| \ 21688 X"$_am_arg" : 'X\(//\)$' \| \ 21689 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 21690$as_echo X"$_am_arg" | 21691 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 21692 s//\1/ 21693 q 21694 } 21695 /^X\(\/\/\)[^/].*/{ 21696 s//\1/ 21697 q 21698 } 21699 /^X\(\/\/\)$/{ 21700 s//\1/ 21701 q 21702 } 21703 /^X\(\/\).*/{ 21704 s//\1/ 21705 q 21706 } 21707 s/.*/./; q'`/stamp-h$_am_stamp_count 21708 ;; 21709 21710 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 21711$as_echo "$as_me: executing $ac_file commands" >&6;} 21712 ;; 21713 esac 21714 21715 21716 case $ac_file$ac_mode in 21717 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 21718 # Older Autoconf quotes --file arguments for eval, but not when files 21719 # are listed without --file. Let's play safe and only enable the eval 21720 # if we detect the quoting. 21721 # TODO: see whether this extra hack can be removed once we start 21722 # requiring Autoconf 2.70 or later. 21723 case $CONFIG_FILES in #( 21724 *\'*) : 21725 eval set x "$CONFIG_FILES" ;; #( 21726 *) : 21727 set x $CONFIG_FILES ;; #( 21728 *) : 21729 ;; 21730esac 21731 shift 21732 # Used to flag and report bootstrapping failures. 21733 am_rc=0 21734 for am_mf 21735 do 21736 # Strip MF so we end up with the name of the file. 21737 am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'` 21738 # Check whether this is an Automake generated Makefile which includes 21739 # dependency-tracking related rules and includes. 21740 # Grep'ing the whole file directly is not great: AIX grep has a line 21741 # limit of 2048, but all sed's we know have understand at least 4000. 21742 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \ 21743 || continue 21744 am_dirpart=`$as_dirname -- "$am_mf" || 21745$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21746 X"$am_mf" : 'X\(//\)[^/]' \| \ 21747 X"$am_mf" : 'X\(//\)$' \| \ 21748 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 21749$as_echo X"$am_mf" | 21750 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 21751 s//\1/ 21752 q 21753 } 21754 /^X\(\/\/\)[^/].*/{ 21755 s//\1/ 21756 q 21757 } 21758 /^X\(\/\/\)$/{ 21759 s//\1/ 21760 q 21761 } 21762 /^X\(\/\).*/{ 21763 s//\1/ 21764 q 21765 } 21766 s/.*/./; q'` 21767 am_filepart=`$as_basename -- "$am_mf" || 21768$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \ 21769 X"$am_mf" : 'X\(//\)$' \| \ 21770 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 21771$as_echo X/"$am_mf" | 21772 sed '/^.*\/\([^/][^/]*\)\/*$/{ 21773 s//\1/ 21774 q 21775 } 21776 /^X\/\(\/\/\)$/{ 21777 s//\1/ 21778 q 21779 } 21780 /^X\/\(\/\).*/{ 21781 s//\1/ 21782 q 21783 } 21784 s/.*/./; q'` 21785 { echo "$as_me:$LINENO: cd "$am_dirpart" \ 21786 && sed -e '/# am--include-marker/d' "$am_filepart" \ 21787 | $MAKE -f - am--depfiles" >&5 21788 (cd "$am_dirpart" \ 21789 && sed -e '/# am--include-marker/d' "$am_filepart" \ 21790 | $MAKE -f - am--depfiles) >&5 2>&5 21791 ac_status=$? 21792 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21793 (exit $ac_status); } || am_rc=$? 21794 done 21795 if test $am_rc -ne 0; then 21796 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 21797$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 21798as_fn_error $? "Something went wrong bootstrapping makefile fragments 21799 for automatic dependency tracking. Try re-running configure with the 21800 '--disable-dependency-tracking' option to at least be able to build 21801 the package (albeit without support for automatic dependency tracking). 21802See \`config.log' for more details" "$LINENO" 5; } 21803 fi 21804 { am_dirpart=; unset am_dirpart;} 21805 { am_filepart=; unset am_filepart;} 21806 { am_mf=; unset am_mf;} 21807 { am_rc=; unset am_rc;} 21808 rm -f conftest-deps.mk 21809} 21810 ;; 21811 "libtool":C) 21812 21813 # See if we are running on zsh, and set the options that allow our 21814 # commands through without removal of \ escapes. 21815 if test -n "${ZSH_VERSION+set}"; then 21816 setopt NO_GLOB_SUBST 21817 fi 21818 21819 cfgfile=${ofile}T 21820 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 21821 $RM "$cfgfile" 21822 21823 cat <<_LT_EOF >> "$cfgfile" 21824#! $SHELL 21825# Generated automatically by $as_me ($PACKAGE) $VERSION 21826# NOTE: Changes made to this file will be lost: look at ltmain.sh. 21827 21828# Provide generalized library-building support services. 21829# Written by Gordon Matzigkeit, 1996 21830 21831# Copyright (C) 2014 Free Software Foundation, Inc. 21832# This is free software; see the source for copying conditions. There is NO 21833# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 21834 21835# GNU Libtool is free software; you can redistribute it and/or modify 21836# it under the terms of the GNU General Public License as published by 21837# the Free Software Foundation; either version 2 of of the License, or 21838# (at your option) any later version. 21839# 21840# As a special exception to the GNU General Public License, if you 21841# distribute this file as part of a program or library that is built 21842# using GNU Libtool, you may include this file under the same 21843# distribution terms that you use for the rest of that program. 21844# 21845# GNU Libtool is distributed in the hope that it will be useful, but 21846# WITHOUT ANY WARRANTY; without even the implied warranty of 21847# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 21848# GNU General Public License for more details. 21849# 21850# You should have received a copy of the GNU General Public License 21851# along with this program. If not, see <http://www.gnu.org/licenses/>. 21852 21853 21854# The names of the tagged configurations supported by this script. 21855available_tags='' 21856 21857# Configured defaults for sys_lib_dlsearch_path munging. 21858: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} 21859 21860# ### BEGIN LIBTOOL CONFIG 21861 21862# Which release of libtool.m4 was used? 21863macro_version=$macro_version 21864macro_revision=$macro_revision 21865 21866# Whether or not to build shared libraries. 21867build_libtool_libs=$enable_shared 21868 21869# Whether or not to build static libraries. 21870build_old_libs=$enable_static 21871 21872# What type of objects to build. 21873pic_mode=$pic_mode 21874 21875# Whether or not to optimize for fast installation. 21876fast_install=$enable_fast_install 21877 21878# Shared archive member basename,for filename based shared library versioning on AIX. 21879shared_archive_member_spec=$shared_archive_member_spec 21880 21881# Shell to use when invoking shell scripts. 21882SHELL=$lt_SHELL 21883 21884# An echo program that protects backslashes. 21885ECHO=$lt_ECHO 21886 21887# The PATH separator for the build system. 21888PATH_SEPARATOR=$lt_PATH_SEPARATOR 21889 21890# The host system. 21891host_alias=$host_alias 21892host=$host 21893host_os=$host_os 21894 21895# The build system. 21896build_alias=$build_alias 21897build=$build 21898build_os=$build_os 21899 21900# A sed program that does not truncate output. 21901SED=$lt_SED 21902 21903# Sed that helps us avoid accidentally triggering echo(1) options like -n. 21904Xsed="\$SED -e 1s/^X//" 21905 21906# A grep program that handles long lines. 21907GREP=$lt_GREP 21908 21909# An ERE matcher. 21910EGREP=$lt_EGREP 21911 21912# A literal string matcher. 21913FGREP=$lt_FGREP 21914 21915# A BSD- or MS-compatible name lister. 21916NM=$lt_NM 21917 21918# Whether we need soft or hard links. 21919LN_S=$lt_LN_S 21920 21921# What is the maximum length of a command? 21922max_cmd_len=$max_cmd_len 21923 21924# Object file suffix (normally "o"). 21925objext=$ac_objext 21926 21927# Executable file suffix (normally ""). 21928exeext=$exeext 21929 21930# whether the shell understands "unset". 21931lt_unset=$lt_unset 21932 21933# turn spaces into newlines. 21934SP2NL=$lt_lt_SP2NL 21935 21936# turn newlines into spaces. 21937NL2SP=$lt_lt_NL2SP 21938 21939# convert \$build file names to \$host format. 21940to_host_file_cmd=$lt_cv_to_host_file_cmd 21941 21942# convert \$build files to toolchain format. 21943to_tool_file_cmd=$lt_cv_to_tool_file_cmd 21944 21945# An object symbol dumper. 21946OBJDUMP=$lt_OBJDUMP 21947 21948# Method to check whether dependent libraries are shared objects. 21949deplibs_check_method=$lt_deplibs_check_method 21950 21951# Command to use when deplibs_check_method = "file_magic". 21952file_magic_cmd=$lt_file_magic_cmd 21953 21954# How to find potential files when deplibs_check_method = "file_magic". 21955file_magic_glob=$lt_file_magic_glob 21956 21957# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 21958want_nocaseglob=$lt_want_nocaseglob 21959 21960# DLL creation program. 21961DLLTOOL=$lt_DLLTOOL 21962 21963# Command to associate shared and link libraries. 21964sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 21965 21966# The archiver. 21967AR=$lt_AR 21968 21969# Flags to create an archive. 21970AR_FLAGS=$lt_AR_FLAGS 21971 21972# How to feed a file listing to the archiver. 21973archiver_list_spec=$lt_archiver_list_spec 21974 21975# A symbol stripping program. 21976STRIP=$lt_STRIP 21977 21978# Commands used to install an old-style archive. 21979RANLIB=$lt_RANLIB 21980old_postinstall_cmds=$lt_old_postinstall_cmds 21981old_postuninstall_cmds=$lt_old_postuninstall_cmds 21982 21983# Whether to use a lock for old archive extraction. 21984lock_old_archive_extraction=$lock_old_archive_extraction 21985 21986# A C compiler. 21987LTCC=$lt_CC 21988 21989# LTCC compiler flags. 21990LTCFLAGS=$lt_CFLAGS 21991 21992# Take the output of nm and produce a listing of raw symbols and C names. 21993global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 21994 21995# Transform the output of nm in a proper C declaration. 21996global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 21997 21998# Transform the output of nm into a list of symbols to manually relocate. 21999global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import 22000 22001# Transform the output of nm in a C name address pair. 22002global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 22003 22004# Transform the output of nm in a C name address pair when lib prefix is needed. 22005global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 22006 22007# The name lister interface. 22008nm_interface=$lt_lt_cv_nm_interface 22009 22010# Specify filename containing input files for \$NM. 22011nm_file_list_spec=$lt_nm_file_list_spec 22012 22013# The root where to search for dependent libraries,and where our libraries should be installed. 22014lt_sysroot=$lt_sysroot 22015 22016# Command to truncate a binary pipe. 22017lt_truncate_bin=$lt_lt_cv_truncate_bin 22018 22019# The name of the directory that contains temporary libtool files. 22020objdir=$objdir 22021 22022# Used to examine libraries when file_magic_cmd begins with "file". 22023MAGIC_CMD=$MAGIC_CMD 22024 22025# Must we lock files when doing compilation? 22026need_locks=$lt_need_locks 22027 22028# Manifest tool. 22029MANIFEST_TOOL=$lt_MANIFEST_TOOL 22030 22031# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 22032DSYMUTIL=$lt_DSYMUTIL 22033 22034# Tool to change global to local symbols on Mac OS X. 22035NMEDIT=$lt_NMEDIT 22036 22037# Tool to manipulate fat objects and archives on Mac OS X. 22038LIPO=$lt_LIPO 22039 22040# ldd/readelf like tool for Mach-O binaries on Mac OS X. 22041OTOOL=$lt_OTOOL 22042 22043# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 22044OTOOL64=$lt_OTOOL64 22045 22046# Old archive suffix (normally "a"). 22047libext=$libext 22048 22049# Shared library suffix (normally ".so"). 22050shrext_cmds=$lt_shrext_cmds 22051 22052# The commands to extract the exported symbol list from a shared archive. 22053extract_expsyms_cmds=$lt_extract_expsyms_cmds 22054 22055# Variables whose values should be saved in libtool wrapper scripts and 22056# restored at link time. 22057variables_saved_for_relink=$lt_variables_saved_for_relink 22058 22059# Do we need the "lib" prefix for modules? 22060need_lib_prefix=$need_lib_prefix 22061 22062# Do we need a version for libraries? 22063need_version=$need_version 22064 22065# Library versioning type. 22066version_type=$version_type 22067 22068# Shared library runtime path variable. 22069runpath_var=$runpath_var 22070 22071# Shared library path variable. 22072shlibpath_var=$shlibpath_var 22073 22074# Is shlibpath searched before the hard-coded library search path? 22075shlibpath_overrides_runpath=$shlibpath_overrides_runpath 22076 22077# Format of library name prefix. 22078libname_spec=$lt_libname_spec 22079 22080# List of archive names. First name is the real one, the rest are links. 22081# The last name is the one that the linker finds with -lNAME 22082library_names_spec=$lt_library_names_spec 22083 22084# The coded name of the library, if different from the real name. 22085soname_spec=$lt_soname_spec 22086 22087# Permission mode override for installation of shared libraries. 22088install_override_mode=$lt_install_override_mode 22089 22090# Command to use after installation of a shared archive. 22091postinstall_cmds=$lt_postinstall_cmds 22092 22093# Command to use after uninstallation of a shared archive. 22094postuninstall_cmds=$lt_postuninstall_cmds 22095 22096# Commands used to finish a libtool library installation in a directory. 22097finish_cmds=$lt_finish_cmds 22098 22099# As "finish_cmds", except a single script fragment to be evaled but 22100# not shown. 22101finish_eval=$lt_finish_eval 22102 22103# Whether we should hardcode library paths into libraries. 22104hardcode_into_libs=$hardcode_into_libs 22105 22106# Compile-time system search path for libraries. 22107sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 22108 22109# Detected run-time system search path for libraries. 22110sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path 22111 22112# Explicit LT_SYS_LIBRARY_PATH set during ./configure time. 22113configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path 22114 22115# Whether dlopen is supported. 22116dlopen_support=$enable_dlopen 22117 22118# Whether dlopen of programs is supported. 22119dlopen_self=$enable_dlopen_self 22120 22121# Whether dlopen of statically linked programs is supported. 22122dlopen_self_static=$enable_dlopen_self_static 22123 22124# Commands to strip libraries. 22125old_striplib=$lt_old_striplib 22126striplib=$lt_striplib 22127 22128 22129# The linker used to build libraries. 22130LD=$lt_LD 22131 22132# How to create reloadable object files. 22133reload_flag=$lt_reload_flag 22134reload_cmds=$lt_reload_cmds 22135 22136# Commands used to build an old-style archive. 22137old_archive_cmds=$lt_old_archive_cmds 22138 22139# A language specific compiler. 22140CC=$lt_compiler 22141 22142# Is the compiler the GNU compiler? 22143with_gcc=$GCC 22144 22145# Compiler flag to turn off builtin functions. 22146no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 22147 22148# Additional compiler flags for building library objects. 22149pic_flag=$lt_lt_prog_compiler_pic 22150 22151# How to pass a linker flag through the compiler. 22152wl=$lt_lt_prog_compiler_wl 22153 22154# Compiler flag to prevent dynamic linking. 22155link_static_flag=$lt_lt_prog_compiler_static 22156 22157# Does compiler simultaneously support -c and -o options? 22158compiler_c_o=$lt_lt_cv_prog_compiler_c_o 22159 22160# Whether or not to add -lc for building shared libraries. 22161build_libtool_need_lc=$archive_cmds_need_lc 22162 22163# Whether or not to disallow shared libs when runtime libs are static. 22164allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 22165 22166# Compiler flag to allow reflexive dlopens. 22167export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 22168 22169# Compiler flag to generate shared objects directly from archives. 22170whole_archive_flag_spec=$lt_whole_archive_flag_spec 22171 22172# Whether the compiler copes with passing no objects directly. 22173compiler_needs_object=$lt_compiler_needs_object 22174 22175# Create an old-style archive from a shared archive. 22176old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 22177 22178# Create a temporary old-style archive to link instead of a shared archive. 22179old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 22180 22181# Commands used to build a shared archive. 22182archive_cmds=$lt_archive_cmds 22183archive_expsym_cmds=$lt_archive_expsym_cmds 22184 22185# Commands used to build a loadable module if different from building 22186# a shared archive. 22187module_cmds=$lt_module_cmds 22188module_expsym_cmds=$lt_module_expsym_cmds 22189 22190# Whether we are building with GNU ld or not. 22191with_gnu_ld=$lt_with_gnu_ld 22192 22193# Flag that allows shared libraries with undefined symbols to be built. 22194allow_undefined_flag=$lt_allow_undefined_flag 22195 22196# Flag that enforces no undefined symbols. 22197no_undefined_flag=$lt_no_undefined_flag 22198 22199# Flag to hardcode \$libdir into a binary during linking. 22200# This must work even if \$libdir does not exist 22201hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 22202 22203# Whether we need a single "-rpath" flag with a separated argument. 22204hardcode_libdir_separator=$lt_hardcode_libdir_separator 22205 22206# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 22207# DIR into the resulting binary. 22208hardcode_direct=$hardcode_direct 22209 22210# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 22211# DIR into the resulting binary and the resulting library dependency is 22212# "absolute",i.e impossible to change by setting \$shlibpath_var if the 22213# library is relocated. 22214hardcode_direct_absolute=$hardcode_direct_absolute 22215 22216# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 22217# into the resulting binary. 22218hardcode_minus_L=$hardcode_minus_L 22219 22220# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 22221# into the resulting binary. 22222hardcode_shlibpath_var=$hardcode_shlibpath_var 22223 22224# Set to "yes" if building a shared library automatically hardcodes DIR 22225# into the library and all subsequent libraries and executables linked 22226# against it. 22227hardcode_automatic=$hardcode_automatic 22228 22229# Set to yes if linker adds runtime paths of dependent libraries 22230# to runtime path list. 22231inherit_rpath=$inherit_rpath 22232 22233# Whether libtool must link a program against all its dependency libraries. 22234link_all_deplibs=$link_all_deplibs 22235 22236# Set to "yes" if exported symbols are required. 22237always_export_symbols=$always_export_symbols 22238 22239# The commands to list exported symbols. 22240export_symbols_cmds=$lt_export_symbols_cmds 22241 22242# Symbols that should not be listed in the preloaded symbols. 22243exclude_expsyms=$lt_exclude_expsyms 22244 22245# Symbols that must always be exported. 22246include_expsyms=$lt_include_expsyms 22247 22248# Commands necessary for linking programs (against libraries) with templates. 22249prelink_cmds=$lt_prelink_cmds 22250 22251# Commands necessary for finishing linking programs. 22252postlink_cmds=$lt_postlink_cmds 22253 22254# Specify filename containing input files. 22255file_list_spec=$lt_file_list_spec 22256 22257# How to hardcode a shared library path into an executable. 22258hardcode_action=$hardcode_action 22259 22260# ### END LIBTOOL CONFIG 22261 22262_LT_EOF 22263 22264 cat <<'_LT_EOF' >> "$cfgfile" 22265 22266# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE 22267 22268# func_munge_path_list VARIABLE PATH 22269# ----------------------------------- 22270# VARIABLE is name of variable containing _space_ separated list of 22271# directories to be munged by the contents of PATH, which is string 22272# having a format: 22273# "DIR[:DIR]:" 22274# string "DIR[ DIR]" will be prepended to VARIABLE 22275# ":DIR[:DIR]" 22276# string "DIR[ DIR]" will be appended to VARIABLE 22277# "DIRP[:DIRP]::[DIRA:]DIRA" 22278# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 22279# "DIRA[ DIRA]" will be appended to VARIABLE 22280# "DIR[:DIR]" 22281# VARIABLE will be replaced by "DIR[ DIR]" 22282func_munge_path_list () 22283{ 22284 case x$2 in 22285 x) 22286 ;; 22287 *:) 22288 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 22289 ;; 22290 x:*) 22291 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 22292 ;; 22293 *::*) 22294 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 22295 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 22296 ;; 22297 *) 22298 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 22299 ;; 22300 esac 22301} 22302 22303 22304# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 22305func_cc_basename () 22306{ 22307 for cc_temp in $*""; do 22308 case $cc_temp in 22309 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 22310 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 22311 \-*) ;; 22312 *) break;; 22313 esac 22314 done 22315 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 22316} 22317 22318 22319# ### END FUNCTIONS SHARED WITH CONFIGURE 22320 22321_LT_EOF 22322 22323 case $host_os in 22324 aix3*) 22325 cat <<\_LT_EOF >> "$cfgfile" 22326# AIX sometimes has problems with the GCC collect2 program. For some 22327# reason, if we set the COLLECT_NAMES environment variable, the problems 22328# vanish in a puff of smoke. 22329if test set != "${COLLECT_NAMES+set}"; then 22330 COLLECT_NAMES= 22331 export COLLECT_NAMES 22332fi 22333_LT_EOF 22334 ;; 22335 esac 22336 22337 22338ltmain=$ac_aux_dir/ltmain.sh 22339 22340 22341 # We use sed instead of cat because bash on DJGPP gets confused if 22342 # if finds mixed CR/LF and LF-only lines. Since sed operates in 22343 # text mode, it properly converts lines to CR/LF. This bash problem 22344 # is reportedly fixed, but why not run on old versions too? 22345 sed '$q' "$ltmain" >> "$cfgfile" \ 22346 || (rm -f "$cfgfile"; exit 1) 22347 22348 mv -f "$cfgfile" "$ofile" || 22349 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 22350 chmod +x "$ofile" 22351 22352 ;; 22353 22354 esac 22355done # for ac_tag 22356 22357 22358as_fn_exit 0 22359_ACEOF 22360ac_clean_files=$ac_clean_files_save 22361 22362test $ac_write_fail = 0 || 22363 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 22364 22365 22366# configure is writing to config.log, and then calls config.status. 22367# config.status does its own redirection, appending to config.log. 22368# Unfortunately, on DOS this fails, as config.log is still kept open 22369# by configure, so config.status won't be able to write to it; its 22370# output is simply discarded. So we exec the FD to /dev/null, 22371# effectively closing config.log, so it can be properly (re)opened and 22372# appended to by config.status. When coming back to configure, we 22373# need to make the FD available again. 22374if test "$no_create" != yes; then 22375 ac_cs_success=: 22376 ac_config_status_args= 22377 test "$silent" = yes && 22378 ac_config_status_args="$ac_config_status_args --quiet" 22379 exec 5>/dev/null 22380 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 22381 exec 5>>config.log 22382 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 22383 # would make configure fail if this is the last instruction. 22384 $ac_cs_success || as_fn_exit 1 22385fi 22386if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 22387 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 22388$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 22389fi 22390 22391