configure revision 57ee1794
1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.68 for libXtst 1.2.2. 4# 5# Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>. 6# 7# 8# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 9# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software 10# Foundation, Inc. 11# 12# 13# This configure script is free software; the Free Software Foundation 14# gives unlimited permission to copy, distribute and modify it. 15## -------------------- ## 16## M4sh Initialization. ## 17## -------------------- ## 18 19# Be more Bourne compatible 20DUALCASE=1; export DUALCASE # for MKS sh 21if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 22 emulate sh 23 NULLCMD=: 24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 25 # is contrary to our usage. Disable this feature. 26 alias -g '${1+"$@"}'='"$@"' 27 setopt NO_GLOB_SUBST 28else 29 case `(set -o) 2>/dev/null` in #( 30 *posix*) : 31 set -o posix ;; #( 32 *) : 33 ;; 34esac 35fi 36 37 38as_nl=' 39' 40export as_nl 41# Printing a long string crashes Solaris 7 /usr/bin/printf. 42as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 43as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 44as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 45# Prefer a ksh shell builtin over an external printf program on Solaris, 46# but without wasting forks for bash or zsh. 47if test -z "$BASH_VERSION$ZSH_VERSION" \ 48 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 49 as_echo='print -r --' 50 as_echo_n='print -rn --' 51elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 52 as_echo='printf %s\n' 53 as_echo_n='printf %s' 54else 55 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 56 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 57 as_echo_n='/usr/ucb/echo -n' 58 else 59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 60 as_echo_n_body='eval 61 arg=$1; 62 case $arg in #( 63 *"$as_nl"*) 64 expr "X$arg" : "X\\(.*\\)$as_nl"; 65 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 66 esac; 67 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 68 ' 69 export as_echo_n_body 70 as_echo_n='sh -c $as_echo_n_body as_echo' 71 fi 72 export as_echo_body 73 as_echo='sh -c $as_echo_body as_echo' 74fi 75 76# The user is always right. 77if test "${PATH_SEPARATOR+set}" != set; then 78 PATH_SEPARATOR=: 79 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 80 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 81 PATH_SEPARATOR=';' 82 } 83fi 84 85 86# IFS 87# We need space, tab and new line, in precisely that order. Quoting is 88# there to prevent editors from complaining about space-tab. 89# (If _AS_PATH_WALK were called with IFS unset, it would disable word 90# splitting by setting IFS to empty value.) 91IFS=" "" $as_nl" 92 93# Find who we are. Look in the path if we contain no directory separator. 94as_myself= 95case $0 in #(( 96 *[\\/]* ) as_myself=$0 ;; 97 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 98for as_dir in $PATH 99do 100 IFS=$as_save_IFS 101 test -z "$as_dir" && as_dir=. 102 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 103 done 104IFS=$as_save_IFS 105 106 ;; 107esac 108# We did not find ourselves, most probably we were run as `sh COMMAND' 109# in which case we are not to be found in the path. 110if test "x$as_myself" = x; then 111 as_myself=$0 112fi 113if test ! -f "$as_myself"; then 114 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 115 exit 1 116fi 117 118# Unset variables that we do not need and which cause bugs (e.g. in 119# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 120# suppresses any "Segmentation fault" message there. '((' could 121# trigger a bug in pdksh 5.2.14. 122for as_var in BASH_ENV ENV MAIL MAILPATH 123do eval test x\${$as_var+set} = xset \ 124 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 125done 126PS1='$ ' 127PS2='> ' 128PS4='+ ' 129 130# NLS nuisances. 131LC_ALL=C 132export LC_ALL 133LANGUAGE=C 134export LANGUAGE 135 136# CDPATH. 137(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 138 139if test "x$CONFIG_SHELL" = x; then 140 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 141 emulate sh 142 NULLCMD=: 143 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 144 # is contrary to our usage. Disable this feature. 145 alias -g '\${1+\"\$@\"}'='\"\$@\"' 146 setopt NO_GLOB_SUBST 147else 148 case \`(set -o) 2>/dev/null\` in #( 149 *posix*) : 150 set -o posix ;; #( 151 *) : 152 ;; 153esac 154fi 155" 156 as_required="as_fn_return () { (exit \$1); } 157as_fn_success () { as_fn_return 0; } 158as_fn_failure () { as_fn_return 1; } 159as_fn_ret_success () { return 0; } 160as_fn_ret_failure () { return 1; } 161 162exitcode=0 163as_fn_success || { exitcode=1; echo as_fn_success failed.; } 164as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 165as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 166as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 167if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 168 169else 170 exitcode=1; echo positional parameters were not saved. 171fi 172test x\$exitcode = x0 || exit 1" 173 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 174 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 175 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 176 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 177 178 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( 179 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 180 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 181 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 182 PATH=/empty FPATH=/empty; export PATH FPATH 183 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ 184 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1 185test \$(( 1 + 1 )) = 2 || exit 1" 186 if (eval "$as_required") 2>/dev/null; then : 187 as_have_required=yes 188else 189 as_have_required=no 190fi 191 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 192 193else 194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 195as_found=false 196for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 197do 198 IFS=$as_save_IFS 199 test -z "$as_dir" && as_dir=. 200 as_found=: 201 case $as_dir in #( 202 /*) 203 for as_base in sh bash ksh sh5; do 204 # Try only shells that exist, to save several forks. 205 as_shell=$as_dir/$as_base 206 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 207 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 208 CONFIG_SHELL=$as_shell as_have_required=yes 209 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 210 break 2 211fi 212fi 213 done;; 214 esac 215 as_found=false 216done 217$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 218 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 219 CONFIG_SHELL=$SHELL as_have_required=yes 220fi; } 221IFS=$as_save_IFS 222 223 224 if test "x$CONFIG_SHELL" != x; then : 225 # We cannot yet assume a decent shell, so we have to provide a 226 # neutralization value for shells without unset; and this also 227 # works around shells that cannot unset nonexistent variables. 228 # Preserve -v and -x to the replacement shell. 229 BASH_ENV=/dev/null 230 ENV=/dev/null 231 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 232 export CONFIG_SHELL 233 case $- in # (((( 234 *v*x* | *x*v* ) as_opts=-vx ;; 235 *v* ) as_opts=-v ;; 236 *x* ) as_opts=-x ;; 237 * ) as_opts= ;; 238 esac 239 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"} 240fi 241 242 if test x$as_have_required = xno; then : 243 $as_echo "$0: This script requires a shell more modern than all" 244 $as_echo "$0: the shells that I found on your system." 245 if test x${ZSH_VERSION+set} = xset ; then 246 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 247 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 248 else 249 $as_echo "$0: Please tell bug-autoconf@gnu.org and 250$0: https://bugs.freedesktop.org/enter_bug.cgi?product=xorg 251$0: about your system, including any error possibly output 252$0: before this message. Then install a modern shell, or 253$0: manually run the script under such a shell if you do 254$0: have one." 255 fi 256 exit 1 257fi 258fi 259fi 260SHELL=${CONFIG_SHELL-/bin/sh} 261export SHELL 262# Unset more variables known to interfere with behavior of common tools. 263CLICOLOR_FORCE= GREP_OPTIONS= 264unset CLICOLOR_FORCE GREP_OPTIONS 265 266## --------------------- ## 267## M4sh Shell Functions. ## 268## --------------------- ## 269# as_fn_unset VAR 270# --------------- 271# Portably unset VAR. 272as_fn_unset () 273{ 274 { eval $1=; unset $1;} 275} 276as_unset=as_fn_unset 277 278# as_fn_set_status STATUS 279# ----------------------- 280# Set $? to STATUS, without forking. 281as_fn_set_status () 282{ 283 return $1 284} # as_fn_set_status 285 286# as_fn_exit STATUS 287# ----------------- 288# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 289as_fn_exit () 290{ 291 set +e 292 as_fn_set_status $1 293 exit $1 294} # as_fn_exit 295 296# as_fn_mkdir_p 297# ------------- 298# Create "$as_dir" as a directory, including parents if necessary. 299as_fn_mkdir_p () 300{ 301 302 case $as_dir in #( 303 -*) as_dir=./$as_dir;; 304 esac 305 test -d "$as_dir" || eval $as_mkdir_p || { 306 as_dirs= 307 while :; do 308 case $as_dir in #( 309 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 310 *) as_qdir=$as_dir;; 311 esac 312 as_dirs="'$as_qdir' $as_dirs" 313 as_dir=`$as_dirname -- "$as_dir" || 314$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 315 X"$as_dir" : 'X\(//\)[^/]' \| \ 316 X"$as_dir" : 'X\(//\)$' \| \ 317 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 318$as_echo X"$as_dir" | 319 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 320 s//\1/ 321 q 322 } 323 /^X\(\/\/\)[^/].*/{ 324 s//\1/ 325 q 326 } 327 /^X\(\/\/\)$/{ 328 s//\1/ 329 q 330 } 331 /^X\(\/\).*/{ 332 s//\1/ 333 q 334 } 335 s/.*/./; q'` 336 test -d "$as_dir" && break 337 done 338 test -z "$as_dirs" || eval "mkdir $as_dirs" 339 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 340 341 342} # as_fn_mkdir_p 343# as_fn_append VAR VALUE 344# ---------------------- 345# Append the text in VALUE to the end of the definition contained in VAR. Take 346# advantage of any shell optimizations that allow amortized linear growth over 347# repeated appends, instead of the typical quadratic growth present in naive 348# implementations. 349if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 350 eval 'as_fn_append () 351 { 352 eval $1+=\$2 353 }' 354else 355 as_fn_append () 356 { 357 eval $1=\$$1\$2 358 } 359fi # as_fn_append 360 361# as_fn_arith ARG... 362# ------------------ 363# Perform arithmetic evaluation on the ARGs, and store the result in the 364# global $as_val. Take advantage of shells that can avoid forks. The arguments 365# must be portable across $(()) and expr. 366if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 367 eval 'as_fn_arith () 368 { 369 as_val=$(( $* )) 370 }' 371else 372 as_fn_arith () 373 { 374 as_val=`expr "$@" || test $? -eq 1` 375 } 376fi # as_fn_arith 377 378 379# as_fn_error STATUS ERROR [LINENO LOG_FD] 380# ---------------------------------------- 381# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 382# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 383# script with STATUS, using 1 if that was 0. 384as_fn_error () 385{ 386 as_status=$1; test $as_status -eq 0 && as_status=1 387 if test "$4"; then 388 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 389 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 390 fi 391 $as_echo "$as_me: error: $2" >&2 392 as_fn_exit $as_status 393} # as_fn_error 394 395if expr a : '\(a\)' >/dev/null 2>&1 && 396 test "X`expr 00001 : '.*\(...\)'`" = X001; then 397 as_expr=expr 398else 399 as_expr=false 400fi 401 402if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 403 as_basename=basename 404else 405 as_basename=false 406fi 407 408if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 409 as_dirname=dirname 410else 411 as_dirname=false 412fi 413 414as_me=`$as_basename -- "$0" || 415$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 416 X"$0" : 'X\(//\)$' \| \ 417 X"$0" : 'X\(/\)' \| . 2>/dev/null || 418$as_echo X/"$0" | 419 sed '/^.*\/\([^/][^/]*\)\/*$/{ 420 s//\1/ 421 q 422 } 423 /^X\/\(\/\/\)$/{ 424 s//\1/ 425 q 426 } 427 /^X\/\(\/\).*/{ 428 s//\1/ 429 q 430 } 431 s/.*/./; q'` 432 433# Avoid depending upon Character Ranges. 434as_cr_letters='abcdefghijklmnopqrstuvwxyz' 435as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 436as_cr_Letters=$as_cr_letters$as_cr_LETTERS 437as_cr_digits='0123456789' 438as_cr_alnum=$as_cr_Letters$as_cr_digits 439 440 441 as_lineno_1=$LINENO as_lineno_1a=$LINENO 442 as_lineno_2=$LINENO as_lineno_2a=$LINENO 443 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 444 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 445 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 446 sed -n ' 447 p 448 /[$]LINENO/= 449 ' <$as_myself | 450 sed ' 451 s/[$]LINENO.*/&-/ 452 t lineno 453 b 454 :lineno 455 N 456 :loop 457 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 458 t loop 459 s/-\n.*// 460 ' >$as_me.lineno && 461 chmod +x "$as_me.lineno" || 462 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 463 464 # Don't try to exec as it changes $[0], causing all sort of problems 465 # (the dirname of $[0] is not the place where we might find the 466 # original and so on. Autoconf is especially sensitive to this). 467 . "./$as_me.lineno" 468 # Exit status is that of the last command. 469 exit 470} 471 472ECHO_C= ECHO_N= ECHO_T= 473case `echo -n x` in #((((( 474-n*) 475 case `echo 'xy\c'` in 476 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 477 xy) ECHO_C='\c';; 478 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 479 ECHO_T=' ';; 480 esac;; 481*) 482 ECHO_N='-n';; 483esac 484 485rm -f conf$$ conf$$.exe conf$$.file 486if test -d conf$$.dir; then 487 rm -f conf$$.dir/conf$$.file 488else 489 rm -f conf$$.dir 490 mkdir conf$$.dir 2>/dev/null 491fi 492if (echo >conf$$.file) 2>/dev/null; then 493 if ln -s conf$$.file conf$$ 2>/dev/null; then 494 as_ln_s='ln -s' 495 # ... but there are two gotchas: 496 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 497 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 498 # In both cases, we have to default to `cp -p'. 499 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 500 as_ln_s='cp -p' 501 elif ln conf$$.file conf$$ 2>/dev/null; then 502 as_ln_s=ln 503 else 504 as_ln_s='cp -p' 505 fi 506else 507 as_ln_s='cp -p' 508fi 509rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 510rmdir conf$$.dir 2>/dev/null 511 512if mkdir -p . 2>/dev/null; then 513 as_mkdir_p='mkdir -p "$as_dir"' 514else 515 test -d ./-p && rmdir ./-p 516 as_mkdir_p=false 517fi 518 519if test -x / >/dev/null 2>&1; then 520 as_test_x='test -x' 521else 522 if ls -dL / >/dev/null 2>&1; then 523 as_ls_L_option=L 524 else 525 as_ls_L_option= 526 fi 527 as_test_x=' 528 eval sh -c '\'' 529 if test -d "$1"; then 530 test -d "$1/."; 531 else 532 case $1 in #( 533 -*)set "./$1";; 534 esac; 535 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 536 ???[sx]*):;;*)false;;esac;fi 537 '\'' sh 538 ' 539fi 540as_executable_p=$as_test_x 541 542# Sed expression to map a string onto a valid CPP name. 543as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 544 545# Sed expression to map a string onto a valid variable name. 546as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 547 548SHELL=${CONFIG_SHELL-/bin/sh} 549 550as_awk_strverscmp=' 551 # Use only awk features that work with 7th edition Unix awk (1978). 552 # My, what an old awk you have, Mr. Solaris! 553 END { 554 while (length(v1) && length(v2)) { 555 # Set d1 to be the next thing to compare from v1, and likewise for d2. 556 # Normally this is a single character, but if v1 and v2 contain digits, 557 # compare them as integers and fractions as strverscmp does. 558 if (v1 ~ /^[0-9]/ && v2 ~ /^[0-9]/) { 559 # Split v1 and v2 into their leading digit string components d1 and d2, 560 # and advance v1 and v2 past the leading digit strings. 561 for (len1 = 1; substr(v1, len1 + 1) ~ /^[0-9]/; len1++) continue 562 for (len2 = 1; substr(v2, len2 + 1) ~ /^[0-9]/; len2++) continue 563 d1 = substr(v1, 1, len1); v1 = substr(v1, len1 + 1) 564 d2 = substr(v2, 1, len2); v2 = substr(v2, len2 + 1) 565 if (d1 ~ /^0/) { 566 if (d2 ~ /^0/) { 567 # Compare two fractions. 568 while (d1 ~ /^0/ && d2 ~ /^0/) { 569 d1 = substr(d1, 2); len1-- 570 d2 = substr(d2, 2); len2-- 571 } 572 if (len1 != len2 && ! (len1 && len2 && substr(d1, 1, 1) == substr(d2, 1, 1))) { 573 # The two components differ in length, and the common prefix 574 # contains only leading zeros. Consider the longer to be less. 575 d1 = -len1 576 d2 = -len2 577 } else { 578 # Otherwise, compare as strings. 579 d1 = "x" d1 580 d2 = "x" d2 581 } 582 } else { 583 # A fraction is less than an integer. 584 exit 1 585 } 586 } else { 587 if (d2 ~ /^0/) { 588 # An integer is greater than a fraction. 589 exit 2 590 } else { 591 # Compare two integers. 592 d1 += 0 593 d2 += 0 594 } 595 } 596 } else { 597 # The normal case, without worrying about digits. 598 d1 = substr(v1, 1, 1); v1 = substr(v1, 2) 599 d2 = substr(v2, 1, 1); v2 = substr(v2, 2) 600 } 601 if (d1 < d2) exit 1 602 if (d1 > d2) exit 2 603 } 604 # Beware Solaris /usr/xgp4/bin/awk (at least through Solaris 10), 605 # which mishandles some comparisons of empty strings to integers. 606 if (length(v2)) exit 1 607 if (length(v1)) exit 2 608 } 609' 610 611test -n "$DJDIR" || exec 7<&0 </dev/null 612exec 6>&1 613 614# Name of the host. 615# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 616# so uname gets run too. 617ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 618 619# 620# Initializations. 621# 622ac_default_prefix=/usr/local 623ac_clean_files= 624ac_config_libobj_dir=. 625LIBOBJS= 626cross_compiling=no 627subdirs= 628MFLAGS= 629MAKEFLAGS= 630 631# Identity of this package. 632PACKAGE_NAME='libXtst' 633PACKAGE_TARNAME='libXtst' 634PACKAGE_VERSION='1.2.2' 635PACKAGE_STRING='libXtst 1.2.2' 636PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg' 637PACKAGE_URL='' 638 639ac_unique_file="Makefile.am" 640# Factoring default headers for most tests. 641ac_includes_default="\ 642#include <stdio.h> 643#ifdef HAVE_SYS_TYPES_H 644# include <sys/types.h> 645#endif 646#ifdef HAVE_SYS_STAT_H 647# include <sys/stat.h> 648#endif 649#ifdef STDC_HEADERS 650# include <stdlib.h> 651# include <stddef.h> 652#else 653# ifdef HAVE_STDLIB_H 654# include <stdlib.h> 655# endif 656#endif 657#ifdef HAVE_STRING_H 658# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 659# include <memory.h> 660# endif 661# include <string.h> 662#endif 663#ifdef HAVE_STRINGS_H 664# include <strings.h> 665#endif 666#ifdef HAVE_INTTYPES_H 667# include <inttypes.h> 668#endif 669#ifdef HAVE_STDINT_H 670# include <stdint.h> 671#endif 672#ifdef HAVE_UNISTD_H 673# include <unistd.h> 674#endif" 675 676ac_subst_vars='am__EXEEXT_FALSE 677am__EXEEXT_TRUE 678LTLIBOBJS 679LIBOBJS 680MAKE_LINT_LIB_FALSE 681MAKE_LINT_LIB_TRUE 682LINTLIB 683LINT_FALSE 684LINT_TRUE 685LINT_FLAGS 686LINT 687INSTALL_MANPAGES_FALSE 688INSTALL_MANPAGES_TRUE 689XTST_LIBS 690XTST_CFLAGS 691HAVE_STYLESHEETS_FALSE 692HAVE_STYLESHEETS_TRUE 693XSL_STYLESHEET 694STYLESHEET_SRCDIR 695XORG_SGML_PATH 696HAVE_XSLTPROC_FALSE 697HAVE_XSLTPROC_TRUE 698XSLTPROC 699HAVE_FOP_FALSE 700HAVE_FOP_TRUE 701FOP 702HAVE_XMLTO_FALSE 703HAVE_XMLTO_TRUE 704HAVE_XMLTO_TEXT_FALSE 705HAVE_XMLTO_TEXT_TRUE 706XMLTO 707ENABLE_SPECS_FALSE 708ENABLE_SPECS_TRUE 709MAN_SUBSTS 710XORG_MAN_PAGE 711ADMIN_MAN_DIR 712DRIVER_MAN_DIR 713MISC_MAN_DIR 714FILE_MAN_DIR 715LIB_MAN_DIR 716APP_MAN_DIR 717ADMIN_MAN_SUFFIX 718DRIVER_MAN_SUFFIX 719MISC_MAN_SUFFIX 720FILE_MAN_SUFFIX 721LIB_MAN_SUFFIX 722APP_MAN_SUFFIX 723INSTALL_CMD 724PKG_CONFIG 725CHANGELOG_CMD 726STRICT_CFLAGS 727CWARNFLAGS 728BASE_CFLAGS 729CPP 730OTOOL64 731OTOOL 732LIPO 733NMEDIT 734DSYMUTIL 735MANIFEST_TOOL 736RANLIB 737ac_ct_AR 738AR 739DLLTOOL 740OBJDUMP 741LN_S 742NM 743ac_ct_DUMPBIN 744DUMPBIN 745LD 746FGREP 747EGREP 748GREP 749SED 750am__fastdepCC_FALSE 751am__fastdepCC_TRUE 752CCDEPMODE 753am__nodep 754AMDEPBACKSLASH 755AMDEP_FALSE 756AMDEP_TRUE 757am__quote 758am__include 759DEPDIR 760OBJEXT 761EXEEXT 762ac_ct_CC 763CPPFLAGS 764LDFLAGS 765CFLAGS 766CC 767host_os 768host_vendor 769host_cpu 770host 771build_os 772build_vendor 773build_cpu 774build 775LIBTOOL 776AM_BACKSLASH 777AM_DEFAULT_VERBOSITY 778AM_DEFAULT_V 779AM_V 780am__untar 781am__tar 782AMTAR 783am__leading_dot 784SET_MAKE 785AWK 786mkdir_p 787MKDIR_P 788INSTALL_STRIP_PROGRAM 789STRIP 790install_sh 791MAKEINFO 792AUTOHEADER 793AUTOMAKE 794AUTOCONF 795ACLOCAL 796VERSION 797PACKAGE 798CYGPATH_W 799am__isrc 800INSTALL_DATA 801INSTALL_SCRIPT 802INSTALL_PROGRAM 803target_alias 804host_alias 805build_alias 806LIBS 807ECHO_T 808ECHO_N 809ECHO_C 810DEFS 811mandir 812localedir 813libdir 814psdir 815pdfdir 816dvidir 817htmldir 818infodir 819docdir 820oldincludedir 821includedir 822localstatedir 823sharedstatedir 824sysconfdir 825datadir 826datarootdir 827libexecdir 828sbindir 829bindir 830program_transform_name 831prefix 832exec_prefix 833PACKAGE_URL 834PACKAGE_BUGREPORT 835PACKAGE_STRING 836PACKAGE_VERSION 837PACKAGE_TARNAME 838PACKAGE_NAME 839PATH_SEPARATOR 840SHELL' 841ac_subst_files='' 842ac_user_opts=' 843enable_option_checking 844enable_silent_rules 845enable_shared 846enable_static 847with_pic 848enable_fast_install 849enable_dependency_tracking 850with_gnu_ld 851with_sysroot 852enable_libtool_lock 853enable_selective_werror 854enable_strict_compilation 855enable_specs 856with_xmlto 857with_fop 858with_xsltproc 859with_lint 860enable_lint_library 861' 862 ac_precious_vars='build_alias 863host_alias 864target_alias 865CC 866CFLAGS 867LDFLAGS 868LIBS 869CPPFLAGS 870CPP 871PKG_CONFIG 872XMLTO 873FOP 874XSLTPROC 875XTST_CFLAGS 876XTST_LIBS 877LINT 878LINT_FLAGS' 879 880 881# Initialize some variables set by options. 882ac_init_help= 883ac_init_version=false 884ac_unrecognized_opts= 885ac_unrecognized_sep= 886# The variables have the same names as the options, with 887# dashes changed to underlines. 888cache_file=/dev/null 889exec_prefix=NONE 890no_create= 891no_recursion= 892prefix=NONE 893program_prefix=NONE 894program_suffix=NONE 895program_transform_name=s,x,x, 896silent= 897site= 898srcdir= 899verbose= 900x_includes=NONE 901x_libraries=NONE 902 903# Installation directory options. 904# These are left unexpanded so users can "make install exec_prefix=/foo" 905# and all the variables that are supposed to be based on exec_prefix 906# by default will actually change. 907# Use braces instead of parens because sh, perl, etc. also accept them. 908# (The list follows the same order as the GNU Coding Standards.) 909bindir='${exec_prefix}/bin' 910sbindir='${exec_prefix}/sbin' 911libexecdir='${exec_prefix}/libexec' 912datarootdir='${prefix}/share' 913datadir='${datarootdir}' 914sysconfdir='${prefix}/etc' 915sharedstatedir='${prefix}/com' 916localstatedir='${prefix}/var' 917includedir='${prefix}/include' 918oldincludedir='/usr/include' 919docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 920infodir='${datarootdir}/info' 921htmldir='${docdir}' 922dvidir='${docdir}' 923pdfdir='${docdir}' 924psdir='${docdir}' 925libdir='${exec_prefix}/lib' 926localedir='${datarootdir}/locale' 927mandir='${datarootdir}/man' 928 929ac_prev= 930ac_dashdash= 931for ac_option 932do 933 # If the previous option needs an argument, assign it. 934 if test -n "$ac_prev"; then 935 eval $ac_prev=\$ac_option 936 ac_prev= 937 continue 938 fi 939 940 case $ac_option in 941 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 942 *=) ac_optarg= ;; 943 *) ac_optarg=yes ;; 944 esac 945 946 # Accept the important Cygnus configure options, so we can diagnose typos. 947 948 case $ac_dashdash$ac_option in 949 --) 950 ac_dashdash=yes ;; 951 952 -bindir | --bindir | --bindi | --bind | --bin | --bi) 953 ac_prev=bindir ;; 954 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 955 bindir=$ac_optarg ;; 956 957 -build | --build | --buil | --bui | --bu) 958 ac_prev=build_alias ;; 959 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 960 build_alias=$ac_optarg ;; 961 962 -cache-file | --cache-file | --cache-fil | --cache-fi \ 963 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 964 ac_prev=cache_file ;; 965 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 966 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 967 cache_file=$ac_optarg ;; 968 969 --config-cache | -C) 970 cache_file=config.cache ;; 971 972 -datadir | --datadir | --datadi | --datad) 973 ac_prev=datadir ;; 974 -datadir=* | --datadir=* | --datadi=* | --datad=*) 975 datadir=$ac_optarg ;; 976 977 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 978 | --dataroo | --dataro | --datar) 979 ac_prev=datarootdir ;; 980 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 981 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 982 datarootdir=$ac_optarg ;; 983 984 -disable-* | --disable-*) 985 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 986 # Reject names that are not valid shell variable names. 987 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 988 as_fn_error $? "invalid feature name: $ac_useropt" 989 ac_useropt_orig=$ac_useropt 990 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 991 case $ac_user_opts in 992 *" 993"enable_$ac_useropt" 994"*) ;; 995 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 996 ac_unrecognized_sep=', ';; 997 esac 998 eval enable_$ac_useropt=no ;; 999 1000 -docdir | --docdir | --docdi | --doc | --do) 1001 ac_prev=docdir ;; 1002 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1003 docdir=$ac_optarg ;; 1004 1005 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1006 ac_prev=dvidir ;; 1007 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1008 dvidir=$ac_optarg ;; 1009 1010 -enable-* | --enable-*) 1011 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1012 # Reject names that are not valid shell variable names. 1013 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1014 as_fn_error $? "invalid feature name: $ac_useropt" 1015 ac_useropt_orig=$ac_useropt 1016 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1017 case $ac_user_opts in 1018 *" 1019"enable_$ac_useropt" 1020"*) ;; 1021 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1022 ac_unrecognized_sep=', ';; 1023 esac 1024 eval enable_$ac_useropt=\$ac_optarg ;; 1025 1026 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1027 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1028 | --exec | --exe | --ex) 1029 ac_prev=exec_prefix ;; 1030 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1031 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1032 | --exec=* | --exe=* | --ex=*) 1033 exec_prefix=$ac_optarg ;; 1034 1035 -gas | --gas | --ga | --g) 1036 # Obsolete; use --with-gas. 1037 with_gas=yes ;; 1038 1039 -help | --help | --hel | --he | -h) 1040 ac_init_help=long ;; 1041 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1042 ac_init_help=recursive ;; 1043 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1044 ac_init_help=short ;; 1045 1046 -host | --host | --hos | --ho) 1047 ac_prev=host_alias ;; 1048 -host=* | --host=* | --hos=* | --ho=*) 1049 host_alias=$ac_optarg ;; 1050 1051 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1052 ac_prev=htmldir ;; 1053 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1054 | --ht=*) 1055 htmldir=$ac_optarg ;; 1056 1057 -includedir | --includedir | --includedi | --included | --include \ 1058 | --includ | --inclu | --incl | --inc) 1059 ac_prev=includedir ;; 1060 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1061 | --includ=* | --inclu=* | --incl=* | --inc=*) 1062 includedir=$ac_optarg ;; 1063 1064 -infodir | --infodir | --infodi | --infod | --info | --inf) 1065 ac_prev=infodir ;; 1066 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1067 infodir=$ac_optarg ;; 1068 1069 -libdir | --libdir | --libdi | --libd) 1070 ac_prev=libdir ;; 1071 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1072 libdir=$ac_optarg ;; 1073 1074 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1075 | --libexe | --libex | --libe) 1076 ac_prev=libexecdir ;; 1077 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1078 | --libexe=* | --libex=* | --libe=*) 1079 libexecdir=$ac_optarg ;; 1080 1081 -localedir | --localedir | --localedi | --localed | --locale) 1082 ac_prev=localedir ;; 1083 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1084 localedir=$ac_optarg ;; 1085 1086 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1087 | --localstate | --localstat | --localsta | --localst | --locals) 1088 ac_prev=localstatedir ;; 1089 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1090 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1091 localstatedir=$ac_optarg ;; 1092 1093 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1094 ac_prev=mandir ;; 1095 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1096 mandir=$ac_optarg ;; 1097 1098 -nfp | --nfp | --nf) 1099 # Obsolete; use --without-fp. 1100 with_fp=no ;; 1101 1102 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1103 | --no-cr | --no-c | -n) 1104 no_create=yes ;; 1105 1106 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1107 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1108 no_recursion=yes ;; 1109 1110 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1111 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1112 | --oldin | --oldi | --old | --ol | --o) 1113 ac_prev=oldincludedir ;; 1114 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1115 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1116 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1117 oldincludedir=$ac_optarg ;; 1118 1119 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1120 ac_prev=prefix ;; 1121 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1122 prefix=$ac_optarg ;; 1123 1124 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1125 | --program-pre | --program-pr | --program-p) 1126 ac_prev=program_prefix ;; 1127 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1128 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1129 program_prefix=$ac_optarg ;; 1130 1131 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1132 | --program-suf | --program-su | --program-s) 1133 ac_prev=program_suffix ;; 1134 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1135 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1136 program_suffix=$ac_optarg ;; 1137 1138 -program-transform-name | --program-transform-name \ 1139 | --program-transform-nam | --program-transform-na \ 1140 | --program-transform-n | --program-transform- \ 1141 | --program-transform | --program-transfor \ 1142 | --program-transfo | --program-transf \ 1143 | --program-trans | --program-tran \ 1144 | --progr-tra | --program-tr | --program-t) 1145 ac_prev=program_transform_name ;; 1146 -program-transform-name=* | --program-transform-name=* \ 1147 | --program-transform-nam=* | --program-transform-na=* \ 1148 | --program-transform-n=* | --program-transform-=* \ 1149 | --program-transform=* | --program-transfor=* \ 1150 | --program-transfo=* | --program-transf=* \ 1151 | --program-trans=* | --program-tran=* \ 1152 | --progr-tra=* | --program-tr=* | --program-t=*) 1153 program_transform_name=$ac_optarg ;; 1154 1155 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1156 ac_prev=pdfdir ;; 1157 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1158 pdfdir=$ac_optarg ;; 1159 1160 -psdir | --psdir | --psdi | --psd | --ps) 1161 ac_prev=psdir ;; 1162 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1163 psdir=$ac_optarg ;; 1164 1165 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1166 | -silent | --silent | --silen | --sile | --sil) 1167 silent=yes ;; 1168 1169 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1170 ac_prev=sbindir ;; 1171 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1172 | --sbi=* | --sb=*) 1173 sbindir=$ac_optarg ;; 1174 1175 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1176 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1177 | --sharedst | --shareds | --shared | --share | --shar \ 1178 | --sha | --sh) 1179 ac_prev=sharedstatedir ;; 1180 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1181 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1182 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1183 | --sha=* | --sh=*) 1184 sharedstatedir=$ac_optarg ;; 1185 1186 -site | --site | --sit) 1187 ac_prev=site ;; 1188 -site=* | --site=* | --sit=*) 1189 site=$ac_optarg ;; 1190 1191 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1192 ac_prev=srcdir ;; 1193 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1194 srcdir=$ac_optarg ;; 1195 1196 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1197 | --syscon | --sysco | --sysc | --sys | --sy) 1198 ac_prev=sysconfdir ;; 1199 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1200 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1201 sysconfdir=$ac_optarg ;; 1202 1203 -target | --target | --targe | --targ | --tar | --ta | --t) 1204 ac_prev=target_alias ;; 1205 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1206 target_alias=$ac_optarg ;; 1207 1208 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1209 verbose=yes ;; 1210 1211 -version | --version | --versio | --versi | --vers | -V) 1212 ac_init_version=: ;; 1213 1214 -with-* | --with-*) 1215 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1216 # Reject names that are not valid shell variable names. 1217 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1218 as_fn_error $? "invalid package name: $ac_useropt" 1219 ac_useropt_orig=$ac_useropt 1220 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1221 case $ac_user_opts in 1222 *" 1223"with_$ac_useropt" 1224"*) ;; 1225 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1226 ac_unrecognized_sep=', ';; 1227 esac 1228 eval with_$ac_useropt=\$ac_optarg ;; 1229 1230 -without-* | --without-*) 1231 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1232 # Reject names that are not valid shell variable names. 1233 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1234 as_fn_error $? "invalid package name: $ac_useropt" 1235 ac_useropt_orig=$ac_useropt 1236 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1237 case $ac_user_opts in 1238 *" 1239"with_$ac_useropt" 1240"*) ;; 1241 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1242 ac_unrecognized_sep=', ';; 1243 esac 1244 eval with_$ac_useropt=no ;; 1245 1246 --x) 1247 # Obsolete; use --with-x. 1248 with_x=yes ;; 1249 1250 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1251 | --x-incl | --x-inc | --x-in | --x-i) 1252 ac_prev=x_includes ;; 1253 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1254 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1255 x_includes=$ac_optarg ;; 1256 1257 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1258 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1259 ac_prev=x_libraries ;; 1260 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1261 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1262 x_libraries=$ac_optarg ;; 1263 1264 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1265Try \`$0 --help' for more information" 1266 ;; 1267 1268 *=*) 1269 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1270 # Reject names that are not valid shell variable names. 1271 case $ac_envvar in #( 1272 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1273 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1274 esac 1275 eval $ac_envvar=\$ac_optarg 1276 export $ac_envvar ;; 1277 1278 *) 1279 # FIXME: should be removed in autoconf 3.0. 1280 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1281 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1282 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1283 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1284 ;; 1285 1286 esac 1287done 1288 1289if test -n "$ac_prev"; then 1290 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1291 as_fn_error $? "missing argument to $ac_option" 1292fi 1293 1294if test -n "$ac_unrecognized_opts"; then 1295 case $enable_option_checking in 1296 no) ;; 1297 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1298 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1299 esac 1300fi 1301 1302# Check all directory arguments for consistency. 1303for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1304 datadir sysconfdir sharedstatedir localstatedir includedir \ 1305 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1306 libdir localedir mandir 1307do 1308 eval ac_val=\$$ac_var 1309 # Remove trailing slashes. 1310 case $ac_val in 1311 */ ) 1312 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1313 eval $ac_var=\$ac_val;; 1314 esac 1315 # Be sure to have absolute directory names. 1316 case $ac_val in 1317 [\\/$]* | ?:[\\/]* ) continue;; 1318 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1319 esac 1320 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1321done 1322 1323# There might be people who depend on the old broken behavior: `$host' 1324# used to hold the argument of --host etc. 1325# FIXME: To remove some day. 1326build=$build_alias 1327host=$host_alias 1328target=$target_alias 1329 1330# FIXME: To remove some day. 1331if test "x$host_alias" != x; then 1332 if test "x$build_alias" = x; then 1333 cross_compiling=maybe 1334 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host. 1335 If a cross compiler is detected then cross compile mode will be used" >&2 1336 elif test "x$build_alias" != "x$host_alias"; then 1337 cross_compiling=yes 1338 fi 1339fi 1340 1341ac_tool_prefix= 1342test -n "$host_alias" && ac_tool_prefix=$host_alias- 1343 1344test "$silent" = yes && exec 6>/dev/null 1345 1346 1347ac_pwd=`pwd` && test -n "$ac_pwd" && 1348ac_ls_di=`ls -di .` && 1349ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1350 as_fn_error $? "working directory cannot be determined" 1351test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1352 as_fn_error $? "pwd does not report name of working directory" 1353 1354 1355# Find the source files, if location was not specified. 1356if test -z "$srcdir"; then 1357 ac_srcdir_defaulted=yes 1358 # Try the directory containing this script, then the parent directory. 1359 ac_confdir=`$as_dirname -- "$as_myself" || 1360$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1361 X"$as_myself" : 'X\(//\)[^/]' \| \ 1362 X"$as_myself" : 'X\(//\)$' \| \ 1363 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1364$as_echo X"$as_myself" | 1365 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1366 s//\1/ 1367 q 1368 } 1369 /^X\(\/\/\)[^/].*/{ 1370 s//\1/ 1371 q 1372 } 1373 /^X\(\/\/\)$/{ 1374 s//\1/ 1375 q 1376 } 1377 /^X\(\/\).*/{ 1378 s//\1/ 1379 q 1380 } 1381 s/.*/./; q'` 1382 srcdir=$ac_confdir 1383 if test ! -r "$srcdir/$ac_unique_file"; then 1384 srcdir=.. 1385 fi 1386else 1387 ac_srcdir_defaulted=no 1388fi 1389if test ! -r "$srcdir/$ac_unique_file"; then 1390 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1391 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1392fi 1393ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1394ac_abs_confdir=`( 1395 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1396 pwd)` 1397# When building in place, set srcdir=. 1398if test "$ac_abs_confdir" = "$ac_pwd"; then 1399 srcdir=. 1400fi 1401# Remove unnecessary trailing slashes from srcdir. 1402# Double slashes in file names in object file debugging info 1403# mess up M-x gdb in Emacs. 1404case $srcdir in 1405*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1406esac 1407for ac_var in $ac_precious_vars; do 1408 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1409 eval ac_env_${ac_var}_value=\$${ac_var} 1410 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1411 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1412done 1413 1414# 1415# Report the --help message. 1416# 1417if test "$ac_init_help" = "long"; then 1418 # Omit some internal or obsolete options to make the list less imposing. 1419 # This message is too long to be a string in the A/UX 3.1 sh. 1420 cat <<_ACEOF 1421\`configure' configures libXtst 1.2.2 to adapt to many kinds of systems. 1422 1423Usage: $0 [OPTION]... [VAR=VALUE]... 1424 1425To assign environment variables (e.g., CC, CFLAGS...), specify them as 1426VAR=VALUE. See below for descriptions of some of the useful variables. 1427 1428Defaults for the options are specified in brackets. 1429 1430Configuration: 1431 -h, --help display this help and exit 1432 --help=short display options specific to this package 1433 --help=recursive display the short help of all the included packages 1434 -V, --version display version information and exit 1435 -q, --quiet, --silent do not print \`checking ...' messages 1436 --cache-file=FILE cache test results in FILE [disabled] 1437 -C, --config-cache alias for \`--cache-file=config.cache' 1438 -n, --no-create do not create output files 1439 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1440 1441Installation directories: 1442 --prefix=PREFIX install architecture-independent files in PREFIX 1443 [$ac_default_prefix] 1444 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1445 [PREFIX] 1446 1447By default, \`make install' will install all the files in 1448\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1449an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1450for instance \`--prefix=\$HOME'. 1451 1452For better control, use the options below. 1453 1454Fine tuning of the installation directories: 1455 --bindir=DIR user executables [EPREFIX/bin] 1456 --sbindir=DIR system admin executables [EPREFIX/sbin] 1457 --libexecdir=DIR program executables [EPREFIX/libexec] 1458 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1459 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1460 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1461 --libdir=DIR object code libraries [EPREFIX/lib] 1462 --includedir=DIR C header files [PREFIX/include] 1463 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1464 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1465 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1466 --infodir=DIR info documentation [DATAROOTDIR/info] 1467 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1468 --mandir=DIR man documentation [DATAROOTDIR/man] 1469 --docdir=DIR documentation root [DATAROOTDIR/doc/libXtst] 1470 --htmldir=DIR html documentation [DOCDIR] 1471 --dvidir=DIR dvi documentation [DOCDIR] 1472 --pdfdir=DIR pdf documentation [DOCDIR] 1473 --psdir=DIR ps documentation [DOCDIR] 1474_ACEOF 1475 1476 cat <<\_ACEOF 1477 1478Program names: 1479 --program-prefix=PREFIX prepend PREFIX to installed program names 1480 --program-suffix=SUFFIX append SUFFIX to installed program names 1481 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1482 1483System types: 1484 --build=BUILD configure for building on BUILD [guessed] 1485 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1486_ACEOF 1487fi 1488 1489if test -n "$ac_init_help"; then 1490 case $ac_init_help in 1491 short | recursive ) echo "Configuration of libXtst 1.2.2:";; 1492 esac 1493 cat <<\_ACEOF 1494 1495Optional Features: 1496 --disable-option-checking ignore unrecognized --enable/--with options 1497 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1498 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1499 --enable-silent-rules less verbose build output (undo: "make V=1") 1500 --disable-silent-rules verbose build output (undo: "make V=0") 1501 --enable-shared[=PKGS] build shared libraries [default=yes] 1502 --enable-static[=PKGS] build static libraries [default=yes] 1503 --enable-fast-install[=PKGS] 1504 optimize for fast installation [default=yes] 1505 --enable-dependency-tracking 1506 do not reject slow dependency extractors 1507 --disable-dependency-tracking 1508 speeds up one-time build 1509 --disable-libtool-lock avoid locking (might break parallel builds) 1510 --disable-selective-werror 1511 Turn off selective compiler errors. (default: 1512 enabled) 1513 --enable-strict-compilation 1514 Enable all warnings from compiler and make them 1515 errors (default: disabled) 1516 --enable-specs Enable building the specs (default: yes) 1517 --enable-lint-library Create lint library (default: disabled) 1518 1519Optional Packages: 1520 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1521 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1522 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1523 both] 1524 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1525 --with-sysroot=DIR Search for dependent libraries within DIR 1526 (or the compiler's sysroot if not specified). 1527 --with-xmlto Use xmlto to regenerate documentation (default: 1528 auto) 1529 --with-fop Use fop to regenerate documentation (default: auto) 1530 --with-xsltproc Use xsltproc for the transformation of XML documents 1531 (default: auto) 1532 --with-lint Use a lint-style source code checker (default: 1533 disabled) 1534 1535Some influential environment variables: 1536 CC C compiler command 1537 CFLAGS C compiler flags 1538 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1539 nonstandard directory <lib dir> 1540 LIBS libraries to pass to the linker, e.g. -l<library> 1541 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1542 you have headers in a nonstandard directory <include dir> 1543 CPP C preprocessor 1544 PKG_CONFIG path to pkg-config utility 1545 XMLTO Path to xmlto command 1546 FOP Path to fop command 1547 XSLTPROC Path to xsltproc command 1548 XTST_CFLAGS C compiler flags for XTST, overriding pkg-config 1549 XTST_LIBS linker flags for XTST, overriding pkg-config 1550 LINT Path to a lint-style command 1551 LINT_FLAGS Flags for the lint-style command 1552 1553Use these variables to override the choices made by `configure' or to help 1554it to find libraries and programs with nonstandard names/locations. 1555 1556Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>. 1557_ACEOF 1558ac_status=$? 1559fi 1560 1561if test "$ac_init_help" = "recursive"; then 1562 # If there are subdirs, report their specific --help. 1563 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1564 test -d "$ac_dir" || 1565 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1566 continue 1567 ac_builddir=. 1568 1569case "$ac_dir" in 1570.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1571*) 1572 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1573 # A ".." for each directory in $ac_dir_suffix. 1574 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1575 case $ac_top_builddir_sub in 1576 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1577 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1578 esac ;; 1579esac 1580ac_abs_top_builddir=$ac_pwd 1581ac_abs_builddir=$ac_pwd$ac_dir_suffix 1582# for backward compatibility: 1583ac_top_builddir=$ac_top_build_prefix 1584 1585case $srcdir in 1586 .) # We are building in place. 1587 ac_srcdir=. 1588 ac_top_srcdir=$ac_top_builddir_sub 1589 ac_abs_top_srcdir=$ac_pwd ;; 1590 [\\/]* | ?:[\\/]* ) # Absolute name. 1591 ac_srcdir=$srcdir$ac_dir_suffix; 1592 ac_top_srcdir=$srcdir 1593 ac_abs_top_srcdir=$srcdir ;; 1594 *) # Relative name. 1595 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1596 ac_top_srcdir=$ac_top_build_prefix$srcdir 1597 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1598esac 1599ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1600 1601 cd "$ac_dir" || { ac_status=$?; continue; } 1602 # Check for guested configure. 1603 if test -f "$ac_srcdir/configure.gnu"; then 1604 echo && 1605 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1606 elif test -f "$ac_srcdir/configure"; then 1607 echo && 1608 $SHELL "$ac_srcdir/configure" --help=recursive 1609 else 1610 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1611 fi || ac_status=$? 1612 cd "$ac_pwd" || { ac_status=$?; break; } 1613 done 1614fi 1615 1616test -n "$ac_init_help" && exit $ac_status 1617if $ac_init_version; then 1618 cat <<\_ACEOF 1619libXtst configure 1.2.2 1620generated by GNU Autoconf 2.68 1621 1622Copyright (C) 2010 Free Software Foundation, Inc. 1623This configure script is free software; the Free Software Foundation 1624gives unlimited permission to copy, distribute and modify it. 1625_ACEOF 1626 exit 1627fi 1628 1629## ------------------------ ## 1630## Autoconf initialization. ## 1631## ------------------------ ## 1632 1633# ac_fn_c_try_compile LINENO 1634# -------------------------- 1635# Try to compile conftest.$ac_ext, and return whether this succeeded. 1636ac_fn_c_try_compile () 1637{ 1638 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1639 rm -f conftest.$ac_objext 1640 if { { ac_try="$ac_compile" 1641case "(($ac_try" in 1642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1643 *) ac_try_echo=$ac_try;; 1644esac 1645eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1646$as_echo "$ac_try_echo"; } >&5 1647 (eval "$ac_compile") 2>conftest.err 1648 ac_status=$? 1649 if test -s conftest.err; then 1650 grep -v '^ *+' conftest.err >conftest.er1 1651 cat conftest.er1 >&5 1652 mv -f conftest.er1 conftest.err 1653 fi 1654 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1655 test $ac_status = 0; } && { 1656 test -z "$ac_c_werror_flag" || 1657 test ! -s conftest.err 1658 } && test -s conftest.$ac_objext; then : 1659 ac_retval=0 1660else 1661 $as_echo "$as_me: failed program was:" >&5 1662sed 's/^/| /' conftest.$ac_ext >&5 1663 1664 ac_retval=1 1665fi 1666 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1667 as_fn_set_status $ac_retval 1668 1669} # ac_fn_c_try_compile 1670 1671# ac_fn_c_try_link LINENO 1672# ----------------------- 1673# Try to link conftest.$ac_ext, and return whether this succeeded. 1674ac_fn_c_try_link () 1675{ 1676 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1677 rm -f conftest.$ac_objext conftest$ac_exeext 1678 if { { ac_try="$ac_link" 1679case "(($ac_try" in 1680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1681 *) ac_try_echo=$ac_try;; 1682esac 1683eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1684$as_echo "$ac_try_echo"; } >&5 1685 (eval "$ac_link") 2>conftest.err 1686 ac_status=$? 1687 if test -s conftest.err; then 1688 grep -v '^ *+' conftest.err >conftest.er1 1689 cat conftest.er1 >&5 1690 mv -f conftest.er1 conftest.err 1691 fi 1692 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1693 test $ac_status = 0; } && { 1694 test -z "$ac_c_werror_flag" || 1695 test ! -s conftest.err 1696 } && test -s conftest$ac_exeext && { 1697 test "$cross_compiling" = yes || 1698 $as_test_x conftest$ac_exeext 1699 }; then : 1700 ac_retval=0 1701else 1702 $as_echo "$as_me: failed program was:" >&5 1703sed 's/^/| /' conftest.$ac_ext >&5 1704 1705 ac_retval=1 1706fi 1707 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1708 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1709 # interfere with the next link command; also delete a directory that is 1710 # left behind by Apple's compiler. We do this before executing the actions. 1711 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1712 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1713 as_fn_set_status $ac_retval 1714 1715} # ac_fn_c_try_link 1716 1717# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1718# ------------------------------------------------------- 1719# Tests whether HEADER exists and can be compiled using the include files in 1720# INCLUDES, setting the cache variable VAR accordingly. 1721ac_fn_c_check_header_compile () 1722{ 1723 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1725$as_echo_n "checking for $2... " >&6; } 1726if eval \${$3+:} false; then : 1727 $as_echo_n "(cached) " >&6 1728else 1729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1730/* end confdefs.h. */ 1731$4 1732#include <$2> 1733_ACEOF 1734if ac_fn_c_try_compile "$LINENO"; then : 1735 eval "$3=yes" 1736else 1737 eval "$3=no" 1738fi 1739rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1740fi 1741eval ac_res=\$$3 1742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1743$as_echo "$ac_res" >&6; } 1744 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1745 1746} # ac_fn_c_check_header_compile 1747 1748# ac_fn_c_try_cpp LINENO 1749# ---------------------- 1750# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1751ac_fn_c_try_cpp () 1752{ 1753 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1754 if { { ac_try="$ac_cpp conftest.$ac_ext" 1755case "(($ac_try" in 1756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1757 *) ac_try_echo=$ac_try;; 1758esac 1759eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1760$as_echo "$ac_try_echo"; } >&5 1761 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1762 ac_status=$? 1763 if test -s conftest.err; then 1764 grep -v '^ *+' conftest.err >conftest.er1 1765 cat conftest.er1 >&5 1766 mv -f conftest.er1 conftest.err 1767 fi 1768 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1769 test $ac_status = 0; } > conftest.i && { 1770 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1771 test ! -s conftest.err 1772 }; then : 1773 ac_retval=0 1774else 1775 $as_echo "$as_me: failed program was:" >&5 1776sed 's/^/| /' conftest.$ac_ext >&5 1777 1778 ac_retval=1 1779fi 1780 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1781 as_fn_set_status $ac_retval 1782 1783} # ac_fn_c_try_cpp 1784 1785# ac_fn_c_try_run LINENO 1786# ---------------------- 1787# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1788# that executables *can* be run. 1789ac_fn_c_try_run () 1790{ 1791 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1792 if { { ac_try="$ac_link" 1793case "(($ac_try" in 1794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1795 *) ac_try_echo=$ac_try;; 1796esac 1797eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1798$as_echo "$ac_try_echo"; } >&5 1799 (eval "$ac_link") 2>&5 1800 ac_status=$? 1801 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1802 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1803 { { case "(($ac_try" in 1804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1805 *) ac_try_echo=$ac_try;; 1806esac 1807eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1808$as_echo "$ac_try_echo"; } >&5 1809 (eval "$ac_try") 2>&5 1810 ac_status=$? 1811 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1812 test $ac_status = 0; }; }; then : 1813 ac_retval=0 1814else 1815 $as_echo "$as_me: program exited with status $ac_status" >&5 1816 $as_echo "$as_me: failed program was:" >&5 1817sed 's/^/| /' conftest.$ac_ext >&5 1818 1819 ac_retval=$ac_status 1820fi 1821 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1822 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1823 as_fn_set_status $ac_retval 1824 1825} # ac_fn_c_try_run 1826 1827# ac_fn_c_check_func LINENO FUNC VAR 1828# ---------------------------------- 1829# Tests whether FUNC exists, setting the cache variable VAR accordingly 1830ac_fn_c_check_func () 1831{ 1832 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1834$as_echo_n "checking for $2... " >&6; } 1835if eval \${$3+:} false; then : 1836 $as_echo_n "(cached) " >&6 1837else 1838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1839/* end confdefs.h. */ 1840/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1841 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1842#define $2 innocuous_$2 1843 1844/* System header to define __stub macros and hopefully few prototypes, 1845 which can conflict with char $2 (); below. 1846 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1847 <limits.h> exists even on freestanding compilers. */ 1848 1849#ifdef __STDC__ 1850# include <limits.h> 1851#else 1852# include <assert.h> 1853#endif 1854 1855#undef $2 1856 1857/* Override any GCC internal prototype to avoid an error. 1858 Use char because int might match the return type of a GCC 1859 builtin and then its argument prototype would still apply. */ 1860#ifdef __cplusplus 1861extern "C" 1862#endif 1863char $2 (); 1864/* The GNU C library defines this for functions which it implements 1865 to always fail with ENOSYS. Some functions are actually named 1866 something starting with __ and the normal name is an alias. */ 1867#if defined __stub_$2 || defined __stub___$2 1868choke me 1869#endif 1870 1871int 1872main () 1873{ 1874return $2 (); 1875 ; 1876 return 0; 1877} 1878_ACEOF 1879if ac_fn_c_try_link "$LINENO"; then : 1880 eval "$3=yes" 1881else 1882 eval "$3=no" 1883fi 1884rm -f core conftest.err conftest.$ac_objext \ 1885 conftest$ac_exeext conftest.$ac_ext 1886fi 1887eval ac_res=\$$3 1888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1889$as_echo "$ac_res" >&6; } 1890 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1891 1892} # ac_fn_c_check_func 1893 1894# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES 1895# --------------------------------------------- 1896# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 1897# accordingly. 1898ac_fn_c_check_decl () 1899{ 1900 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1901 as_decl_name=`echo $2|sed 's/ *(.*//'` 1902 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 1903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 1904$as_echo_n "checking whether $as_decl_name is declared... " >&6; } 1905if eval \${$3+:} false; then : 1906 $as_echo_n "(cached) " >&6 1907else 1908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1909/* end confdefs.h. */ 1910$4 1911int 1912main () 1913{ 1914#ifndef $as_decl_name 1915#ifdef __cplusplus 1916 (void) $as_decl_use; 1917#else 1918 (void) $as_decl_name; 1919#endif 1920#endif 1921 1922 ; 1923 return 0; 1924} 1925_ACEOF 1926if ac_fn_c_try_compile "$LINENO"; then : 1927 eval "$3=yes" 1928else 1929 eval "$3=no" 1930fi 1931rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1932fi 1933eval ac_res=\$$3 1934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1935$as_echo "$ac_res" >&6; } 1936 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1937 1938} # ac_fn_c_check_decl 1939cat >config.log <<_ACEOF 1940This file contains any messages produced by compilers while 1941running configure, to aid debugging if configure makes a mistake. 1942 1943It was created by libXtst $as_me 1.2.2, which was 1944generated by GNU Autoconf 2.68. Invocation command line was 1945 1946 $ $0 $@ 1947 1948_ACEOF 1949exec 5>>config.log 1950{ 1951cat <<_ASUNAME 1952## --------- ## 1953## Platform. ## 1954## --------- ## 1955 1956hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1957uname -m = `(uname -m) 2>/dev/null || echo unknown` 1958uname -r = `(uname -r) 2>/dev/null || echo unknown` 1959uname -s = `(uname -s) 2>/dev/null || echo unknown` 1960uname -v = `(uname -v) 2>/dev/null || echo unknown` 1961 1962/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1963/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1964 1965/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1966/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1967/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1968/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1969/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1970/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1971/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1972 1973_ASUNAME 1974 1975as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1976for as_dir in $PATH 1977do 1978 IFS=$as_save_IFS 1979 test -z "$as_dir" && as_dir=. 1980 $as_echo "PATH: $as_dir" 1981 done 1982IFS=$as_save_IFS 1983 1984} >&5 1985 1986cat >&5 <<_ACEOF 1987 1988 1989## ----------- ## 1990## Core tests. ## 1991## ----------- ## 1992 1993_ACEOF 1994 1995 1996# Keep a trace of the command line. 1997# Strip out --no-create and --no-recursion so they do not pile up. 1998# Strip out --silent because we don't want to record it for future runs. 1999# Also quote any args containing shell meta-characters. 2000# Make two passes to allow for proper duplicate-argument suppression. 2001ac_configure_args= 2002ac_configure_args0= 2003ac_configure_args1= 2004ac_must_keep_next=false 2005for ac_pass in 1 2 2006do 2007 for ac_arg 2008 do 2009 case $ac_arg in 2010 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2011 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2012 | -silent | --silent | --silen | --sile | --sil) 2013 continue ;; 2014 *\'*) 2015 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2016 esac 2017 case $ac_pass in 2018 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2019 2) 2020 as_fn_append ac_configure_args1 " '$ac_arg'" 2021 if test $ac_must_keep_next = true; then 2022 ac_must_keep_next=false # Got value, back to normal. 2023 else 2024 case $ac_arg in 2025 *=* | --config-cache | -C | -disable-* | --disable-* \ 2026 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2027 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2028 | -with-* | --with-* | -without-* | --without-* | --x) 2029 case "$ac_configure_args0 " in 2030 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2031 esac 2032 ;; 2033 -* ) ac_must_keep_next=true ;; 2034 esac 2035 fi 2036 as_fn_append ac_configure_args " '$ac_arg'" 2037 ;; 2038 esac 2039 done 2040done 2041{ ac_configure_args0=; unset ac_configure_args0;} 2042{ ac_configure_args1=; unset ac_configure_args1;} 2043 2044# When interrupted or exit'd, cleanup temporary files, and complete 2045# config.log. We remove comments because anyway the quotes in there 2046# would cause problems or look ugly. 2047# WARNING: Use '\'' to represent an apostrophe within the trap. 2048# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2049trap 'exit_status=$? 2050 # Save into config.log some information that might help in debugging. 2051 { 2052 echo 2053 2054 $as_echo "## ---------------- ## 2055## Cache variables. ## 2056## ---------------- ##" 2057 echo 2058 # The following way of writing the cache mishandles newlines in values, 2059( 2060 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2061 eval ac_val=\$$ac_var 2062 case $ac_val in #( 2063 *${as_nl}*) 2064 case $ac_var in #( 2065 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2066$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2067 esac 2068 case $ac_var in #( 2069 _ | IFS | as_nl) ;; #( 2070 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2071 *) { eval $ac_var=; unset $ac_var;} ;; 2072 esac ;; 2073 esac 2074 done 2075 (set) 2>&1 | 2076 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2077 *${as_nl}ac_space=\ *) 2078 sed -n \ 2079 "s/'\''/'\''\\\\'\'''\''/g; 2080 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2081 ;; #( 2082 *) 2083 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2084 ;; 2085 esac | 2086 sort 2087) 2088 echo 2089 2090 $as_echo "## ----------------- ## 2091## Output variables. ## 2092## ----------------- ##" 2093 echo 2094 for ac_var in $ac_subst_vars 2095 do 2096 eval ac_val=\$$ac_var 2097 case $ac_val in 2098 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2099 esac 2100 $as_echo "$ac_var='\''$ac_val'\''" 2101 done | sort 2102 echo 2103 2104 if test -n "$ac_subst_files"; then 2105 $as_echo "## ------------------- ## 2106## File substitutions. ## 2107## ------------------- ##" 2108 echo 2109 for ac_var in $ac_subst_files 2110 do 2111 eval ac_val=\$$ac_var 2112 case $ac_val in 2113 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2114 esac 2115 $as_echo "$ac_var='\''$ac_val'\''" 2116 done | sort 2117 echo 2118 fi 2119 2120 if test -s confdefs.h; then 2121 $as_echo "## ----------- ## 2122## confdefs.h. ## 2123## ----------- ##" 2124 echo 2125 cat confdefs.h 2126 echo 2127 fi 2128 test "$ac_signal" != 0 && 2129 $as_echo "$as_me: caught signal $ac_signal" 2130 $as_echo "$as_me: exit $exit_status" 2131 } >&5 2132 rm -f core *.core core.conftest.* && 2133 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2134 exit $exit_status 2135' 0 2136for ac_signal in 1 2 13 15; do 2137 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2138done 2139ac_signal=0 2140 2141# confdefs.h avoids OS command line length limits that DEFS can exceed. 2142rm -f -r conftest* confdefs.h 2143 2144$as_echo "/* confdefs.h */" > confdefs.h 2145 2146# Predefined preprocessor variables. 2147 2148cat >>confdefs.h <<_ACEOF 2149#define PACKAGE_NAME "$PACKAGE_NAME" 2150_ACEOF 2151 2152cat >>confdefs.h <<_ACEOF 2153#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2154_ACEOF 2155 2156cat >>confdefs.h <<_ACEOF 2157#define PACKAGE_VERSION "$PACKAGE_VERSION" 2158_ACEOF 2159 2160cat >>confdefs.h <<_ACEOF 2161#define PACKAGE_STRING "$PACKAGE_STRING" 2162_ACEOF 2163 2164cat >>confdefs.h <<_ACEOF 2165#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2166_ACEOF 2167 2168cat >>confdefs.h <<_ACEOF 2169#define PACKAGE_URL "$PACKAGE_URL" 2170_ACEOF 2171 2172 2173# Let the site file select an alternate cache file if it wants to. 2174# Prefer an explicitly selected file to automatically selected ones. 2175ac_site_file1=NONE 2176ac_site_file2=NONE 2177if test -n "$CONFIG_SITE"; then 2178 # We do not want a PATH search for config.site. 2179 case $CONFIG_SITE in #(( 2180 -*) ac_site_file1=./$CONFIG_SITE;; 2181 */*) ac_site_file1=$CONFIG_SITE;; 2182 *) ac_site_file1=./$CONFIG_SITE;; 2183 esac 2184elif test "x$prefix" != xNONE; then 2185 ac_site_file1=$prefix/share/config.site 2186 ac_site_file2=$prefix/etc/config.site 2187else 2188 ac_site_file1=$ac_default_prefix/share/config.site 2189 ac_site_file2=$ac_default_prefix/etc/config.site 2190fi 2191for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2192do 2193 test "x$ac_site_file" = xNONE && continue 2194 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2195 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2196$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2197 sed 's/^/| /' "$ac_site_file" >&5 2198 . "$ac_site_file" \ 2199 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2200$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2201as_fn_error $? "failed to load site script $ac_site_file 2202See \`config.log' for more details" "$LINENO" 5; } 2203 fi 2204done 2205 2206if test -r "$cache_file"; then 2207 # Some versions of bash will fail to source /dev/null (special files 2208 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2209 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2210 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2211$as_echo "$as_me: loading cache $cache_file" >&6;} 2212 case $cache_file in 2213 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2214 *) . "./$cache_file";; 2215 esac 2216 fi 2217else 2218 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2219$as_echo "$as_me: creating cache $cache_file" >&6;} 2220 >$cache_file 2221fi 2222 2223# Check that the precious variables saved in the cache have kept the same 2224# value. 2225ac_cache_corrupted=false 2226for ac_var in $ac_precious_vars; do 2227 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2228 eval ac_new_set=\$ac_env_${ac_var}_set 2229 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2230 eval ac_new_val=\$ac_env_${ac_var}_value 2231 case $ac_old_set,$ac_new_set in 2232 set,) 2233 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2234$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2235 ac_cache_corrupted=: ;; 2236 ,set) 2237 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2238$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2239 ac_cache_corrupted=: ;; 2240 ,);; 2241 *) 2242 if test "x$ac_old_val" != "x$ac_new_val"; then 2243 # differences in whitespace do not lead to failure. 2244 ac_old_val_w=`echo x $ac_old_val` 2245 ac_new_val_w=`echo x $ac_new_val` 2246 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2247 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2248$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2249 ac_cache_corrupted=: 2250 else 2251 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2252$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2253 eval $ac_var=\$ac_old_val 2254 fi 2255 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2256$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2257 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2258$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2259 fi;; 2260 esac 2261 # Pass precious variables to config.status. 2262 if test "$ac_new_set" = set; then 2263 case $ac_new_val in 2264 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2265 *) ac_arg=$ac_var=$ac_new_val ;; 2266 esac 2267 case " $ac_configure_args " in 2268 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2269 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2270 esac 2271 fi 2272done 2273if $ac_cache_corrupted; then 2274 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2275$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2276 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2277$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2278 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2279fi 2280## -------------------- ## 2281## Main body of script. ## 2282## -------------------- ## 2283 2284ac_ext=c 2285ac_cpp='$CPP $CPPFLAGS' 2286ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2287ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2288ac_compiler_gnu=$ac_cv_c_compiler_gnu 2289 2290 2291 2292ac_config_headers="$ac_config_headers config.h" 2293 2294 2295# Initialize Automake 2296am__api_version='1.13' 2297 2298ac_aux_dir= 2299for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2300 if test -f "$ac_dir/install-sh"; then 2301 ac_aux_dir=$ac_dir 2302 ac_install_sh="$ac_aux_dir/install-sh -c" 2303 break 2304 elif test -f "$ac_dir/install.sh"; then 2305 ac_aux_dir=$ac_dir 2306 ac_install_sh="$ac_aux_dir/install.sh -c" 2307 break 2308 elif test -f "$ac_dir/shtool"; then 2309 ac_aux_dir=$ac_dir 2310 ac_install_sh="$ac_aux_dir/shtool install -c" 2311 break 2312 fi 2313done 2314if test -z "$ac_aux_dir"; then 2315 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 2316fi 2317 2318# These three variables are undocumented and unsupported, 2319# and are intended to be withdrawn in a future Autoconf release. 2320# They can cause serious problems if a builder's source tree is in a directory 2321# whose full name contains unusual characters. 2322ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2323ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2324ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2325 2326 2327# Find a good install program. We prefer a C program (faster), 2328# so one script is as good as another. But avoid the broken or 2329# incompatible versions: 2330# SysV /etc/install, /usr/sbin/install 2331# SunOS /usr/etc/install 2332# IRIX /sbin/install 2333# AIX /bin/install 2334# AmigaOS /C/install, which installs bootblocks on floppy discs 2335# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2336# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2337# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2338# OS/2's system install, which has a completely different semantic 2339# ./install, which can be erroneously created by make from ./install.sh. 2340# Reject install programs that cannot install multiple files. 2341{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2342$as_echo_n "checking for a BSD-compatible install... " >&6; } 2343if test -z "$INSTALL"; then 2344if ${ac_cv_path_install+:} false; then : 2345 $as_echo_n "(cached) " >&6 2346else 2347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2348for as_dir in $PATH 2349do 2350 IFS=$as_save_IFS 2351 test -z "$as_dir" && as_dir=. 2352 # Account for people who put trailing slashes in PATH elements. 2353case $as_dir/ in #(( 2354 ./ | .// | /[cC]/* | \ 2355 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2356 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2357 /usr/ucb/* ) ;; 2358 *) 2359 # OSF1 and SCO ODT 3.0 have their own names for install. 2360 # Don't use installbsd from OSF since it installs stuff as root 2361 # by default. 2362 for ac_prog in ginstall scoinst install; do 2363 for ac_exec_ext in '' $ac_executable_extensions; do 2364 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 2365 if test $ac_prog = install && 2366 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2367 # AIX install. It has an incompatible calling convention. 2368 : 2369 elif test $ac_prog = install && 2370 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2371 # program-specific install script used by HP pwplus--don't use. 2372 : 2373 else 2374 rm -rf conftest.one conftest.two conftest.dir 2375 echo one > conftest.one 2376 echo two > conftest.two 2377 mkdir conftest.dir 2378 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2379 test -s conftest.one && test -s conftest.two && 2380 test -s conftest.dir/conftest.one && 2381 test -s conftest.dir/conftest.two 2382 then 2383 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2384 break 3 2385 fi 2386 fi 2387 fi 2388 done 2389 done 2390 ;; 2391esac 2392 2393 done 2394IFS=$as_save_IFS 2395 2396rm -rf conftest.one conftest.two conftest.dir 2397 2398fi 2399 if test "${ac_cv_path_install+set}" = set; then 2400 INSTALL=$ac_cv_path_install 2401 else 2402 # As a last resort, use the slow shell script. Don't cache a 2403 # value for INSTALL within a source directory, because that will 2404 # break other packages using the cache if that directory is 2405 # removed, or if the value is a relative name. 2406 INSTALL=$ac_install_sh 2407 fi 2408fi 2409{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2410$as_echo "$INSTALL" >&6; } 2411 2412# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2413# It thinks the first close brace ends the variable substitution. 2414test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2415 2416test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2417 2418test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2419 2420{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2421$as_echo_n "checking whether build environment is sane... " >&6; } 2422# Reject unsafe characters in $srcdir or the absolute working directory 2423# name. Accept space and tab only in the latter. 2424am_lf=' 2425' 2426case `pwd` in 2427 *[\\\"\#\$\&\'\`$am_lf]*) 2428 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2429esac 2430case $srcdir in 2431 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2432 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 2433esac 2434 2435# Do 'set' in a subshell so we don't clobber the current shell's 2436# arguments. Must try -L first in case configure is actually a 2437# symlink; some systems play weird games with the mod time of symlinks 2438# (eg FreeBSD returns the mod time of the symlink's containing 2439# directory). 2440if ( 2441 am_has_slept=no 2442 for am_try in 1 2; do 2443 echo "timestamp, slept: $am_has_slept" > conftest.file 2444 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2445 if test "$*" = "X"; then 2446 # -L didn't work. 2447 set X `ls -t "$srcdir/configure" conftest.file` 2448 fi 2449 if test "$*" != "X $srcdir/configure conftest.file" \ 2450 && test "$*" != "X conftest.file $srcdir/configure"; then 2451 2452 # If neither matched, then we have a broken ls. This can happen 2453 # if, for instance, CONFIG_SHELL is bash and it inherits a 2454 # broken ls alias from the environment. This has actually 2455 # happened. Such a system could not be considered "sane". 2456 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2457 alias in your environment" "$LINENO" 5 2458 fi 2459 if test "$2" = conftest.file || test $am_try -eq 2; then 2460 break 2461 fi 2462 # Just in case. 2463 sleep 1 2464 am_has_slept=yes 2465 done 2466 test "$2" = conftest.file 2467 ) 2468then 2469 # Ok. 2470 : 2471else 2472 as_fn_error $? "newly created file is older than distributed files! 2473Check your system clock" "$LINENO" 5 2474fi 2475{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2476$as_echo "yes" >&6; } 2477# If we didn't sleep, we still need to ensure time stamps of config.status and 2478# generated files are strictly newer. 2479am_sleep_pid= 2480if grep 'slept: no' conftest.file >/dev/null 2>&1; then 2481 ( sleep 1 ) & 2482 am_sleep_pid=$! 2483fi 2484 2485rm -f conftest.file 2486 2487test "$program_prefix" != NONE && 2488 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2489# Use a double $ so make ignores it. 2490test "$program_suffix" != NONE && 2491 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2492# Double any \ or $. 2493# By default was `s,x,x', remove it if useless. 2494ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2495program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2496 2497# expand $ac_aux_dir to an absolute path 2498am_aux_dir=`cd $ac_aux_dir && pwd` 2499 2500if test x"${MISSING+set}" != xset; then 2501 case $am_aux_dir in 2502 *\ * | *\ *) 2503 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 2504 *) 2505 MISSING="\${SHELL} $am_aux_dir/missing" ;; 2506 esac 2507fi 2508# Use eval to expand $SHELL 2509if eval "$MISSING --is-lightweight"; then 2510 am_missing_run="$MISSING " 2511else 2512 am_missing_run= 2513 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 2514$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 2515fi 2516 2517if test x"${install_sh}" != xset; then 2518 case $am_aux_dir in 2519 *\ * | *\ *) 2520 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2521 *) 2522 install_sh="\${SHELL} $am_aux_dir/install-sh" 2523 esac 2524fi 2525 2526# Installed binaries are usually stripped using 'strip' when the user 2527# run "make install-strip". However 'strip' might not be the right 2528# tool to use in cross-compilation environments, therefore Automake 2529# will honor the 'STRIP' environment variable to overrule this program. 2530if test "$cross_compiling" != no; then 2531 if test -n "$ac_tool_prefix"; then 2532 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2533set dummy ${ac_tool_prefix}strip; ac_word=$2 2534{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2535$as_echo_n "checking for $ac_word... " >&6; } 2536if ${ac_cv_prog_STRIP+:} false; then : 2537 $as_echo_n "(cached) " >&6 2538else 2539 if test -n "$STRIP"; then 2540 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2541else 2542as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2543for as_dir in $PATH 2544do 2545 IFS=$as_save_IFS 2546 test -z "$as_dir" && as_dir=. 2547 for ac_exec_ext in '' $ac_executable_extensions; do 2548 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2549 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2550 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2551 break 2 2552 fi 2553done 2554 done 2555IFS=$as_save_IFS 2556 2557fi 2558fi 2559STRIP=$ac_cv_prog_STRIP 2560if test -n "$STRIP"; then 2561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2562$as_echo "$STRIP" >&6; } 2563else 2564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2565$as_echo "no" >&6; } 2566fi 2567 2568 2569fi 2570if test -z "$ac_cv_prog_STRIP"; then 2571 ac_ct_STRIP=$STRIP 2572 # Extract the first word of "strip", so it can be a program name with args. 2573set dummy strip; ac_word=$2 2574{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2575$as_echo_n "checking for $ac_word... " >&6; } 2576if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 2577 $as_echo_n "(cached) " >&6 2578else 2579 if test -n "$ac_ct_STRIP"; then 2580 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2581else 2582as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2583for as_dir in $PATH 2584do 2585 IFS=$as_save_IFS 2586 test -z "$as_dir" && as_dir=. 2587 for ac_exec_ext in '' $ac_executable_extensions; do 2588 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2589 ac_cv_prog_ac_ct_STRIP="strip" 2590 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2591 break 2 2592 fi 2593done 2594 done 2595IFS=$as_save_IFS 2596 2597fi 2598fi 2599ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2600if test -n "$ac_ct_STRIP"; then 2601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2602$as_echo "$ac_ct_STRIP" >&6; } 2603else 2604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2605$as_echo "no" >&6; } 2606fi 2607 2608 if test "x$ac_ct_STRIP" = x; then 2609 STRIP=":" 2610 else 2611 case $cross_compiling:$ac_tool_warned in 2612yes:) 2613{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2614$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2615ac_tool_warned=yes ;; 2616esac 2617 STRIP=$ac_ct_STRIP 2618 fi 2619else 2620 STRIP="$ac_cv_prog_STRIP" 2621fi 2622 2623fi 2624INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2625 2626{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 2627$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2628if test -z "$MKDIR_P"; then 2629 if ${ac_cv_path_mkdir+:} false; then : 2630 $as_echo_n "(cached) " >&6 2631else 2632 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2633for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2634do 2635 IFS=$as_save_IFS 2636 test -z "$as_dir" && as_dir=. 2637 for ac_prog in mkdir gmkdir; do 2638 for ac_exec_ext in '' $ac_executable_extensions; do 2639 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue 2640 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2641 'mkdir (GNU coreutils) '* | \ 2642 'mkdir (coreutils) '* | \ 2643 'mkdir (fileutils) '4.1*) 2644 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2645 break 3;; 2646 esac 2647 done 2648 done 2649 done 2650IFS=$as_save_IFS 2651 2652fi 2653 2654 test -d ./--version && rmdir ./--version 2655 if test "${ac_cv_path_mkdir+set}" = set; then 2656 MKDIR_P="$ac_cv_path_mkdir -p" 2657 else 2658 # As a last resort, use the slow shell script. Don't cache a 2659 # value for MKDIR_P within a source directory, because that will 2660 # break other packages using the cache if that directory is 2661 # removed, or if the value is a relative name. 2662 MKDIR_P="$ac_install_sh -d" 2663 fi 2664fi 2665{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 2666$as_echo "$MKDIR_P" >&6; } 2667 2668for ac_prog in gawk mawk nawk awk 2669do 2670 # Extract the first word of "$ac_prog", so it can be a program name with args. 2671set dummy $ac_prog; ac_word=$2 2672{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2673$as_echo_n "checking for $ac_word... " >&6; } 2674if ${ac_cv_prog_AWK+:} false; then : 2675 $as_echo_n "(cached) " >&6 2676else 2677 if test -n "$AWK"; then 2678 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2679else 2680as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2681for as_dir in $PATH 2682do 2683 IFS=$as_save_IFS 2684 test -z "$as_dir" && as_dir=. 2685 for ac_exec_ext in '' $ac_executable_extensions; do 2686 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2687 ac_cv_prog_AWK="$ac_prog" 2688 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2689 break 2 2690 fi 2691done 2692 done 2693IFS=$as_save_IFS 2694 2695fi 2696fi 2697AWK=$ac_cv_prog_AWK 2698if test -n "$AWK"; then 2699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 2700$as_echo "$AWK" >&6; } 2701else 2702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2703$as_echo "no" >&6; } 2704fi 2705 2706 2707 test -n "$AWK" && break 2708done 2709 2710{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2711$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2712set x ${MAKE-make} 2713ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2714if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 2715 $as_echo_n "(cached) " >&6 2716else 2717 cat >conftest.make <<\_ACEOF 2718SHELL = /bin/sh 2719all: 2720 @echo '@@@%%%=$(MAKE)=@@@%%%' 2721_ACEOF 2722# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 2723case `${MAKE-make} -f conftest.make 2>/dev/null` in 2724 *@@@%%%=?*=@@@%%%*) 2725 eval ac_cv_prog_make_${ac_make}_set=yes;; 2726 *) 2727 eval ac_cv_prog_make_${ac_make}_set=no;; 2728esac 2729rm -f conftest.make 2730fi 2731if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2733$as_echo "yes" >&6; } 2734 SET_MAKE= 2735else 2736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2737$as_echo "no" >&6; } 2738 SET_MAKE="MAKE=${MAKE-make}" 2739fi 2740 2741rm -rf .tst 2>/dev/null 2742mkdir .tst 2>/dev/null 2743if test -d .tst; then 2744 am__leading_dot=. 2745else 2746 am__leading_dot=_ 2747fi 2748rmdir .tst 2>/dev/null 2749 2750# Check whether --enable-silent-rules was given. 2751if test "${enable_silent_rules+set}" = set; then : 2752 enableval=$enable_silent_rules; 2753fi 2754 2755case $enable_silent_rules in # ((( 2756 yes) AM_DEFAULT_VERBOSITY=0;; 2757 no) AM_DEFAULT_VERBOSITY=1;; 2758 *) AM_DEFAULT_VERBOSITY=1;; 2759esac 2760am_make=${MAKE-make} 2761{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 2762$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 2763if ${am_cv_make_support_nested_variables+:} false; then : 2764 $as_echo_n "(cached) " >&6 2765else 2766 if $as_echo 'TRUE=$(BAR$(V)) 2767BAR0=false 2768BAR1=true 2769V=1 2770am__doit: 2771 @$(TRUE) 2772.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 2773 am_cv_make_support_nested_variables=yes 2774else 2775 am_cv_make_support_nested_variables=no 2776fi 2777fi 2778{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 2779$as_echo "$am_cv_make_support_nested_variables" >&6; } 2780if test $am_cv_make_support_nested_variables = yes; then 2781 AM_V='$(V)' 2782 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 2783else 2784 AM_V=$AM_DEFAULT_VERBOSITY 2785 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 2786fi 2787AM_BACKSLASH='\' 2788 2789if test "`cd $srcdir && pwd`" != "`pwd`"; then 2790 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 2791 # is not polluted with repeated "-I." 2792 am__isrc=' -I$(srcdir)' 2793 # test to see if srcdir already configured 2794 if test -f $srcdir/config.status; then 2795 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 2796 fi 2797fi 2798 2799# test whether we have cygpath 2800if test -z "$CYGPATH_W"; then 2801 if (cygpath --version) >/dev/null 2>/dev/null; then 2802 CYGPATH_W='cygpath -w' 2803 else 2804 CYGPATH_W=echo 2805 fi 2806fi 2807 2808 2809# Define the identity of the package. 2810 PACKAGE='libXtst' 2811 VERSION='1.2.2' 2812 2813 2814cat >>confdefs.h <<_ACEOF 2815#define PACKAGE "$PACKAGE" 2816_ACEOF 2817 2818 2819cat >>confdefs.h <<_ACEOF 2820#define VERSION "$VERSION" 2821_ACEOF 2822 2823# Some tools Automake needs. 2824 2825ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2826 2827 2828AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2829 2830 2831AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2832 2833 2834AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2835 2836 2837MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2838 2839# For better backward compatibility. To be removed once Automake 1.9.x 2840# dies out for good. For more background, see: 2841# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 2842# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 2843mkdir_p='$(MKDIR_P)' 2844 2845# We need awk for the "check" target. The system "awk" is bad on 2846# some platforms. 2847# Always define AMTAR for backward compatibility. Yes, it's still used 2848# in the wild :-( We should find a proper way to deprecate it ... 2849AMTAR='$${TAR-tar}' 2850 2851 2852# We'll loop over all known methods to create a tar archive until one works. 2853_am_tools='gnutar pax cpio none' 2854 2855am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 2856 2857 2858 2859 2860 2861 2862 2863# Initialize libtool 2864case `pwd` in 2865 *\ * | *\ *) 2866 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 2867$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 2868esac 2869 2870 2871 2872macro_version='2.4.2' 2873macro_revision='1.3337' 2874 2875 2876 2877 2878 2879 2880 2881 2882 2883 2884 2885 2886 2887ltmain="$ac_aux_dir/ltmain.sh" 2888 2889# Make sure we can run config.sub. 2890$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 2891 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 2892 2893{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 2894$as_echo_n "checking build system type... " >&6; } 2895if ${ac_cv_build+:} false; then : 2896 $as_echo_n "(cached) " >&6 2897else 2898 ac_build_alias=$build_alias 2899test "x$ac_build_alias" = x && 2900 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 2901test "x$ac_build_alias" = x && 2902 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 2903ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 2904 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 2905 2906fi 2907{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 2908$as_echo "$ac_cv_build" >&6; } 2909case $ac_cv_build in 2910*-*-*) ;; 2911*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 2912esac 2913build=$ac_cv_build 2914ac_save_IFS=$IFS; IFS='-' 2915set x $ac_cv_build 2916shift 2917build_cpu=$1 2918build_vendor=$2 2919shift; shift 2920# Remember, the first character of IFS is used to create $*, 2921# except with old shells: 2922build_os=$* 2923IFS=$ac_save_IFS 2924case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 2925 2926 2927{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 2928$as_echo_n "checking host system type... " >&6; } 2929if ${ac_cv_host+:} false; then : 2930 $as_echo_n "(cached) " >&6 2931else 2932 if test "x$host_alias" = x; then 2933 ac_cv_host=$ac_cv_build 2934else 2935 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 2936 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 2937fi 2938 2939fi 2940{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 2941$as_echo "$ac_cv_host" >&6; } 2942case $ac_cv_host in 2943*-*-*) ;; 2944*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 2945esac 2946host=$ac_cv_host 2947ac_save_IFS=$IFS; IFS='-' 2948set x $ac_cv_host 2949shift 2950host_cpu=$1 2951host_vendor=$2 2952shift; shift 2953# Remember, the first character of IFS is used to create $*, 2954# except with old shells: 2955host_os=$* 2956IFS=$ac_save_IFS 2957case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 2958 2959 2960# Backslashify metacharacters that are still active within 2961# double-quoted strings. 2962sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 2963 2964# Same as above, but do not quote variable references. 2965double_quote_subst='s/\(["`\\]\)/\\\1/g' 2966 2967# Sed substitution to delay expansion of an escaped shell variable in a 2968# double_quote_subst'ed string. 2969delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 2970 2971# Sed substitution to delay expansion of an escaped single quote. 2972delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 2973 2974# Sed substitution to avoid accidental globbing in evaled expressions 2975no_glob_subst='s/\*/\\\*/g' 2976 2977ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 2978ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 2979ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 2980 2981{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 2982$as_echo_n "checking how to print strings... " >&6; } 2983# Test print first, because it will be a builtin if present. 2984if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 2985 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 2986 ECHO='print -r --' 2987elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 2988 ECHO='printf %s\n' 2989else 2990 # Use this function as a fallback that always works. 2991 func_fallback_echo () 2992 { 2993 eval 'cat <<_LTECHO_EOF 2994$1 2995_LTECHO_EOF' 2996 } 2997 ECHO='func_fallback_echo' 2998fi 2999 3000# func_echo_all arg... 3001# Invoke $ECHO with all args, space-separated. 3002func_echo_all () 3003{ 3004 $ECHO "" 3005} 3006 3007case "$ECHO" in 3008 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 3009$as_echo "printf" >&6; } ;; 3010 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 3011$as_echo "print -r" >&6; } ;; 3012 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 3013$as_echo "cat" >&6; } ;; 3014esac 3015 3016 3017 3018 3019 3020 3021 3022 3023 3024 3025 3026 3027 3028 3029DEPDIR="${am__leading_dot}deps" 3030 3031ac_config_commands="$ac_config_commands depfiles" 3032 3033 3034am_make=${MAKE-make} 3035cat > confinc << 'END' 3036am__doit: 3037 @echo this is the am__doit target 3038.PHONY: am__doit 3039END 3040# If we don't find an include directive, just comment out the code. 3041{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 3042$as_echo_n "checking for style of include used by $am_make... " >&6; } 3043am__include="#" 3044am__quote= 3045_am_result=none 3046# First try GNU make style include. 3047echo "include confinc" > confmf 3048# Ignore all kinds of additional output from 'make'. 3049case `$am_make -s -f confmf 2> /dev/null` in #( 3050*the\ am__doit\ target*) 3051 am__include=include 3052 am__quote= 3053 _am_result=GNU 3054 ;; 3055esac 3056# Now try BSD make style include. 3057if test "$am__include" = "#"; then 3058 echo '.include "confinc"' > confmf 3059 case `$am_make -s -f confmf 2> /dev/null` in #( 3060 *the\ am__doit\ target*) 3061 am__include=.include 3062 am__quote="\"" 3063 _am_result=BSD 3064 ;; 3065 esac 3066fi 3067 3068 3069{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 3070$as_echo "$_am_result" >&6; } 3071rm -f confinc confmf 3072 3073# Check whether --enable-dependency-tracking was given. 3074if test "${enable_dependency_tracking+set}" = set; then : 3075 enableval=$enable_dependency_tracking; 3076fi 3077 3078if test "x$enable_dependency_tracking" != xno; then 3079 am_depcomp="$ac_aux_dir/depcomp" 3080 AMDEPBACKSLASH='\' 3081 am__nodep='_no' 3082fi 3083 if test "x$enable_dependency_tracking" != xno; then 3084 AMDEP_TRUE= 3085 AMDEP_FALSE='#' 3086else 3087 AMDEP_TRUE='#' 3088 AMDEP_FALSE= 3089fi 3090 3091 3092ac_ext=c 3093ac_cpp='$CPP $CPPFLAGS' 3094ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3095ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3096ac_compiler_gnu=$ac_cv_c_compiler_gnu 3097if test -n "$ac_tool_prefix"; then 3098 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3099set dummy ${ac_tool_prefix}gcc; ac_word=$2 3100{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3101$as_echo_n "checking for $ac_word... " >&6; } 3102if ${ac_cv_prog_CC+:} false; then : 3103 $as_echo_n "(cached) " >&6 3104else 3105 if test -n "$CC"; then 3106 ac_cv_prog_CC="$CC" # Let the user override the test. 3107else 3108as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3109for as_dir in $PATH 3110do 3111 IFS=$as_save_IFS 3112 test -z "$as_dir" && as_dir=. 3113 for ac_exec_ext in '' $ac_executable_extensions; do 3114 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3115 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3116 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3117 break 2 3118 fi 3119done 3120 done 3121IFS=$as_save_IFS 3122 3123fi 3124fi 3125CC=$ac_cv_prog_CC 3126if test -n "$CC"; then 3127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3128$as_echo "$CC" >&6; } 3129else 3130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3131$as_echo "no" >&6; } 3132fi 3133 3134 3135fi 3136if test -z "$ac_cv_prog_CC"; then 3137 ac_ct_CC=$CC 3138 # Extract the first word of "gcc", so it can be a program name with args. 3139set dummy gcc; ac_word=$2 3140{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3141$as_echo_n "checking for $ac_word... " >&6; } 3142if ${ac_cv_prog_ac_ct_CC+:} false; then : 3143 $as_echo_n "(cached) " >&6 3144else 3145 if test -n "$ac_ct_CC"; then 3146 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3147else 3148as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3149for as_dir in $PATH 3150do 3151 IFS=$as_save_IFS 3152 test -z "$as_dir" && as_dir=. 3153 for ac_exec_ext in '' $ac_executable_extensions; do 3154 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3155 ac_cv_prog_ac_ct_CC="gcc" 3156 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3157 break 2 3158 fi 3159done 3160 done 3161IFS=$as_save_IFS 3162 3163fi 3164fi 3165ac_ct_CC=$ac_cv_prog_ac_ct_CC 3166if test -n "$ac_ct_CC"; then 3167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3168$as_echo "$ac_ct_CC" >&6; } 3169else 3170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3171$as_echo "no" >&6; } 3172fi 3173 3174 if test "x$ac_ct_CC" = x; then 3175 CC="" 3176 else 3177 case $cross_compiling:$ac_tool_warned in 3178yes:) 3179{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3180$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3181ac_tool_warned=yes ;; 3182esac 3183 CC=$ac_ct_CC 3184 fi 3185else 3186 CC="$ac_cv_prog_CC" 3187fi 3188 3189if test -z "$CC"; then 3190 if test -n "$ac_tool_prefix"; then 3191 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3192set dummy ${ac_tool_prefix}cc; ac_word=$2 3193{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3194$as_echo_n "checking for $ac_word... " >&6; } 3195if ${ac_cv_prog_CC+:} false; then : 3196 $as_echo_n "(cached) " >&6 3197else 3198 if test -n "$CC"; then 3199 ac_cv_prog_CC="$CC" # Let the user override the test. 3200else 3201as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3202for as_dir in $PATH 3203do 3204 IFS=$as_save_IFS 3205 test -z "$as_dir" && as_dir=. 3206 for ac_exec_ext in '' $ac_executable_extensions; do 3207 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3208 ac_cv_prog_CC="${ac_tool_prefix}cc" 3209 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3210 break 2 3211 fi 3212done 3213 done 3214IFS=$as_save_IFS 3215 3216fi 3217fi 3218CC=$ac_cv_prog_CC 3219if test -n "$CC"; then 3220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3221$as_echo "$CC" >&6; } 3222else 3223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3224$as_echo "no" >&6; } 3225fi 3226 3227 3228 fi 3229fi 3230if test -z "$CC"; then 3231 # Extract the first word of "cc", so it can be a program name with args. 3232set dummy cc; ac_word=$2 3233{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3234$as_echo_n "checking for $ac_word... " >&6; } 3235if ${ac_cv_prog_CC+:} false; then : 3236 $as_echo_n "(cached) " >&6 3237else 3238 if test -n "$CC"; then 3239 ac_cv_prog_CC="$CC" # Let the user override the test. 3240else 3241 ac_prog_rejected=no 3242as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3243for as_dir in $PATH 3244do 3245 IFS=$as_save_IFS 3246 test -z "$as_dir" && as_dir=. 3247 for ac_exec_ext in '' $ac_executable_extensions; do 3248 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3249 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3250 ac_prog_rejected=yes 3251 continue 3252 fi 3253 ac_cv_prog_CC="cc" 3254 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3255 break 2 3256 fi 3257done 3258 done 3259IFS=$as_save_IFS 3260 3261if test $ac_prog_rejected = yes; then 3262 # We found a bogon in the path, so make sure we never use it. 3263 set dummy $ac_cv_prog_CC 3264 shift 3265 if test $# != 0; then 3266 # We chose a different compiler from the bogus one. 3267 # However, it has the same basename, so the bogon will be chosen 3268 # first if we set CC to just the basename; use the full file name. 3269 shift 3270 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3271 fi 3272fi 3273fi 3274fi 3275CC=$ac_cv_prog_CC 3276if test -n "$CC"; then 3277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3278$as_echo "$CC" >&6; } 3279else 3280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3281$as_echo "no" >&6; } 3282fi 3283 3284 3285fi 3286if test -z "$CC"; then 3287 if test -n "$ac_tool_prefix"; then 3288 for ac_prog in cl.exe 3289 do 3290 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3291set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3292{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3293$as_echo_n "checking for $ac_word... " >&6; } 3294if ${ac_cv_prog_CC+:} false; then : 3295 $as_echo_n "(cached) " >&6 3296else 3297 if test -n "$CC"; then 3298 ac_cv_prog_CC="$CC" # Let the user override the test. 3299else 3300as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3301for as_dir in $PATH 3302do 3303 IFS=$as_save_IFS 3304 test -z "$as_dir" && as_dir=. 3305 for ac_exec_ext in '' $ac_executable_extensions; do 3306 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3307 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3308 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3309 break 2 3310 fi 3311done 3312 done 3313IFS=$as_save_IFS 3314 3315fi 3316fi 3317CC=$ac_cv_prog_CC 3318if test -n "$CC"; then 3319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3320$as_echo "$CC" >&6; } 3321else 3322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3323$as_echo "no" >&6; } 3324fi 3325 3326 3327 test -n "$CC" && break 3328 done 3329fi 3330if test -z "$CC"; then 3331 ac_ct_CC=$CC 3332 for ac_prog in cl.exe 3333do 3334 # Extract the first word of "$ac_prog", so it can be a program name with args. 3335set dummy $ac_prog; ac_word=$2 3336{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3337$as_echo_n "checking for $ac_word... " >&6; } 3338if ${ac_cv_prog_ac_ct_CC+:} false; then : 3339 $as_echo_n "(cached) " >&6 3340else 3341 if test -n "$ac_ct_CC"; then 3342 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3343else 3344as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3345for as_dir in $PATH 3346do 3347 IFS=$as_save_IFS 3348 test -z "$as_dir" && as_dir=. 3349 for ac_exec_ext in '' $ac_executable_extensions; do 3350 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3351 ac_cv_prog_ac_ct_CC="$ac_prog" 3352 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3353 break 2 3354 fi 3355done 3356 done 3357IFS=$as_save_IFS 3358 3359fi 3360fi 3361ac_ct_CC=$ac_cv_prog_ac_ct_CC 3362if test -n "$ac_ct_CC"; then 3363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3364$as_echo "$ac_ct_CC" >&6; } 3365else 3366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3367$as_echo "no" >&6; } 3368fi 3369 3370 3371 test -n "$ac_ct_CC" && break 3372done 3373 3374 if test "x$ac_ct_CC" = x; then 3375 CC="" 3376 else 3377 case $cross_compiling:$ac_tool_warned in 3378yes:) 3379{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3380$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3381ac_tool_warned=yes ;; 3382esac 3383 CC=$ac_ct_CC 3384 fi 3385fi 3386 3387fi 3388 3389 3390test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3391$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3392as_fn_error $? "no acceptable C compiler found in \$PATH 3393See \`config.log' for more details" "$LINENO" 5; } 3394 3395# Provide some information about the compiler. 3396$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3397set X $ac_compile 3398ac_compiler=$2 3399for ac_option in --version -v -V -qversion; do 3400 { { ac_try="$ac_compiler $ac_option >&5" 3401case "(($ac_try" in 3402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3403 *) ac_try_echo=$ac_try;; 3404esac 3405eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3406$as_echo "$ac_try_echo"; } >&5 3407 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3408 ac_status=$? 3409 if test -s conftest.err; then 3410 sed '10a\ 3411... rest of stderr output deleted ... 3412 10q' conftest.err >conftest.er1 3413 cat conftest.er1 >&5 3414 fi 3415 rm -f conftest.er1 conftest.err 3416 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3417 test $ac_status = 0; } 3418done 3419 3420cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3421/* end confdefs.h. */ 3422 3423int 3424main () 3425{ 3426 3427 ; 3428 return 0; 3429} 3430_ACEOF 3431ac_clean_files_save=$ac_clean_files 3432ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3433# Try to create an executable without -o first, disregard a.out. 3434# It will help us diagnose broken compilers, and finding out an intuition 3435# of exeext. 3436{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3437$as_echo_n "checking whether the C compiler works... " >&6; } 3438ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3439 3440# The possible output files: 3441ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3442 3443ac_rmfiles= 3444for ac_file in $ac_files 3445do 3446 case $ac_file in 3447 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3448 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3449 esac 3450done 3451rm -f $ac_rmfiles 3452 3453if { { ac_try="$ac_link_default" 3454case "(($ac_try" in 3455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3456 *) ac_try_echo=$ac_try;; 3457esac 3458eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3459$as_echo "$ac_try_echo"; } >&5 3460 (eval "$ac_link_default") 2>&5 3461 ac_status=$? 3462 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3463 test $ac_status = 0; }; then : 3464 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3465# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3466# in a Makefile. We should not override ac_cv_exeext if it was cached, 3467# so that the user can short-circuit this test for compilers unknown to 3468# Autoconf. 3469for ac_file in $ac_files '' 3470do 3471 test -f "$ac_file" || continue 3472 case $ac_file in 3473 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3474 ;; 3475 [ab].out ) 3476 # We found the default executable, but exeext='' is most 3477 # certainly right. 3478 break;; 3479 *.* ) 3480 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3481 then :; else 3482 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3483 fi 3484 # We set ac_cv_exeext here because the later test for it is not 3485 # safe: cross compilers may not add the suffix if given an `-o' 3486 # argument, so we may need to know it at that point already. 3487 # Even if this section looks crufty: it has the advantage of 3488 # actually working. 3489 break;; 3490 * ) 3491 break;; 3492 esac 3493done 3494test "$ac_cv_exeext" = no && ac_cv_exeext= 3495 3496else 3497 ac_file='' 3498fi 3499if test -z "$ac_file"; then : 3500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3501$as_echo "no" >&6; } 3502$as_echo "$as_me: failed program was:" >&5 3503sed 's/^/| /' conftest.$ac_ext >&5 3504 3505{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3506$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3507as_fn_error 77 "C compiler cannot create executables 3508See \`config.log' for more details" "$LINENO" 5; } 3509else 3510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3511$as_echo "yes" >&6; } 3512fi 3513{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3514$as_echo_n "checking for C compiler default output file name... " >&6; } 3515{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3516$as_echo "$ac_file" >&6; } 3517ac_exeext=$ac_cv_exeext 3518 3519rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3520ac_clean_files=$ac_clean_files_save 3521{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3522$as_echo_n "checking for suffix of executables... " >&6; } 3523if { { ac_try="$ac_link" 3524case "(($ac_try" in 3525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3526 *) ac_try_echo=$ac_try;; 3527esac 3528eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3529$as_echo "$ac_try_echo"; } >&5 3530 (eval "$ac_link") 2>&5 3531 ac_status=$? 3532 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3533 test $ac_status = 0; }; then : 3534 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3535# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3536# work properly (i.e., refer to `conftest.exe'), while it won't with 3537# `rm'. 3538for ac_file in conftest.exe conftest conftest.*; do 3539 test -f "$ac_file" || continue 3540 case $ac_file in 3541 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3542 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3543 break;; 3544 * ) break;; 3545 esac 3546done 3547else 3548 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3549$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3550as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3551See \`config.log' for more details" "$LINENO" 5; } 3552fi 3553rm -f conftest conftest$ac_cv_exeext 3554{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3555$as_echo "$ac_cv_exeext" >&6; } 3556 3557rm -f conftest.$ac_ext 3558EXEEXT=$ac_cv_exeext 3559ac_exeext=$EXEEXT 3560cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3561/* end confdefs.h. */ 3562#include <stdio.h> 3563int 3564main () 3565{ 3566FILE *f = fopen ("conftest.out", "w"); 3567 return ferror (f) || fclose (f) != 0; 3568 3569 ; 3570 return 0; 3571} 3572_ACEOF 3573ac_clean_files="$ac_clean_files conftest.out" 3574# Check that the compiler produces executables we can run. If not, either 3575# the compiler is broken, or we cross compile. 3576{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3577$as_echo_n "checking whether we are cross compiling... " >&6; } 3578if test "$cross_compiling" != yes; then 3579 { { ac_try="$ac_link" 3580case "(($ac_try" in 3581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3582 *) ac_try_echo=$ac_try;; 3583esac 3584eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3585$as_echo "$ac_try_echo"; } >&5 3586 (eval "$ac_link") 2>&5 3587 ac_status=$? 3588 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3589 test $ac_status = 0; } 3590 if { ac_try='./conftest$ac_cv_exeext' 3591 { { case "(($ac_try" in 3592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3593 *) ac_try_echo=$ac_try;; 3594esac 3595eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3596$as_echo "$ac_try_echo"; } >&5 3597 (eval "$ac_try") 2>&5 3598 ac_status=$? 3599 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3600 test $ac_status = 0; }; }; then 3601 cross_compiling=no 3602 else 3603 if test "$cross_compiling" = maybe; then 3604 cross_compiling=yes 3605 else 3606 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3607$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3608as_fn_error $? "cannot run C compiled programs. 3609If you meant to cross compile, use \`--host'. 3610See \`config.log' for more details" "$LINENO" 5; } 3611 fi 3612 fi 3613fi 3614{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3615$as_echo "$cross_compiling" >&6; } 3616 3617rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3618ac_clean_files=$ac_clean_files_save 3619{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3620$as_echo_n "checking for suffix of object files... " >&6; } 3621if ${ac_cv_objext+:} false; then : 3622 $as_echo_n "(cached) " >&6 3623else 3624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3625/* end confdefs.h. */ 3626 3627int 3628main () 3629{ 3630 3631 ; 3632 return 0; 3633} 3634_ACEOF 3635rm -f conftest.o conftest.obj 3636if { { ac_try="$ac_compile" 3637case "(($ac_try" in 3638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3639 *) ac_try_echo=$ac_try;; 3640esac 3641eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3642$as_echo "$ac_try_echo"; } >&5 3643 (eval "$ac_compile") 2>&5 3644 ac_status=$? 3645 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3646 test $ac_status = 0; }; then : 3647 for ac_file in conftest.o conftest.obj conftest.*; do 3648 test -f "$ac_file" || continue; 3649 case $ac_file in 3650 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3651 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3652 break;; 3653 esac 3654done 3655else 3656 $as_echo "$as_me: failed program was:" >&5 3657sed 's/^/| /' conftest.$ac_ext >&5 3658 3659{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3660$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3661as_fn_error $? "cannot compute suffix of object files: cannot compile 3662See \`config.log' for more details" "$LINENO" 5; } 3663fi 3664rm -f conftest.$ac_cv_objext conftest.$ac_ext 3665fi 3666{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3667$as_echo "$ac_cv_objext" >&6; } 3668OBJEXT=$ac_cv_objext 3669ac_objext=$OBJEXT 3670{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3671$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3672if ${ac_cv_c_compiler_gnu+:} false; then : 3673 $as_echo_n "(cached) " >&6 3674else 3675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3676/* end confdefs.h. */ 3677 3678int 3679main () 3680{ 3681#ifndef __GNUC__ 3682 choke me 3683#endif 3684 3685 ; 3686 return 0; 3687} 3688_ACEOF 3689if ac_fn_c_try_compile "$LINENO"; then : 3690 ac_compiler_gnu=yes 3691else 3692 ac_compiler_gnu=no 3693fi 3694rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3695ac_cv_c_compiler_gnu=$ac_compiler_gnu 3696 3697fi 3698{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3699$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3700if test $ac_compiler_gnu = yes; then 3701 GCC=yes 3702else 3703 GCC= 3704fi 3705ac_test_CFLAGS=${CFLAGS+set} 3706ac_save_CFLAGS=$CFLAGS 3707{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3708$as_echo_n "checking whether $CC accepts -g... " >&6; } 3709if ${ac_cv_prog_cc_g+:} false; then : 3710 $as_echo_n "(cached) " >&6 3711else 3712 ac_save_c_werror_flag=$ac_c_werror_flag 3713 ac_c_werror_flag=yes 3714 ac_cv_prog_cc_g=no 3715 CFLAGS="-g" 3716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3717/* end confdefs.h. */ 3718 3719int 3720main () 3721{ 3722 3723 ; 3724 return 0; 3725} 3726_ACEOF 3727if ac_fn_c_try_compile "$LINENO"; then : 3728 ac_cv_prog_cc_g=yes 3729else 3730 CFLAGS="" 3731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3732/* end confdefs.h. */ 3733 3734int 3735main () 3736{ 3737 3738 ; 3739 return 0; 3740} 3741_ACEOF 3742if ac_fn_c_try_compile "$LINENO"; then : 3743 3744else 3745 ac_c_werror_flag=$ac_save_c_werror_flag 3746 CFLAGS="-g" 3747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3748/* end confdefs.h. */ 3749 3750int 3751main () 3752{ 3753 3754 ; 3755 return 0; 3756} 3757_ACEOF 3758if ac_fn_c_try_compile "$LINENO"; then : 3759 ac_cv_prog_cc_g=yes 3760fi 3761rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3762fi 3763rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3764fi 3765rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3766 ac_c_werror_flag=$ac_save_c_werror_flag 3767fi 3768{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3769$as_echo "$ac_cv_prog_cc_g" >&6; } 3770if test "$ac_test_CFLAGS" = set; then 3771 CFLAGS=$ac_save_CFLAGS 3772elif test $ac_cv_prog_cc_g = yes; then 3773 if test "$GCC" = yes; then 3774 CFLAGS="-g -O2" 3775 else 3776 CFLAGS="-g" 3777 fi 3778else 3779 if test "$GCC" = yes; then 3780 CFLAGS="-O2" 3781 else 3782 CFLAGS= 3783 fi 3784fi 3785{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3786$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3787if ${ac_cv_prog_cc_c89+:} false; then : 3788 $as_echo_n "(cached) " >&6 3789else 3790 ac_cv_prog_cc_c89=no 3791ac_save_CC=$CC 3792cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3793/* end confdefs.h. */ 3794#include <stdarg.h> 3795#include <stdio.h> 3796#include <sys/types.h> 3797#include <sys/stat.h> 3798/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3799struct buf { int x; }; 3800FILE * (*rcsopen) (struct buf *, struct stat *, int); 3801static char *e (p, i) 3802 char **p; 3803 int i; 3804{ 3805 return p[i]; 3806} 3807static char *f (char * (*g) (char **, int), char **p, ...) 3808{ 3809 char *s; 3810 va_list v; 3811 va_start (v,p); 3812 s = g (p, va_arg (v,int)); 3813 va_end (v); 3814 return s; 3815} 3816 3817/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3818 function prototypes and stuff, but not '\xHH' hex character constants. 3819 These don't provoke an error unfortunately, instead are silently treated 3820 as 'x'. The following induces an error, until -std is added to get 3821 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3822 array size at least. It's necessary to write '\x00'==0 to get something 3823 that's true only with -std. */ 3824int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3825 3826/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3827 inside strings and character constants. */ 3828#define FOO(x) 'x' 3829int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3830 3831int test (int i, double x); 3832struct s1 {int (*f) (int a);}; 3833struct s2 {int (*f) (double a);}; 3834int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3835int argc; 3836char **argv; 3837int 3838main () 3839{ 3840return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3841 ; 3842 return 0; 3843} 3844_ACEOF 3845for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3846 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3847do 3848 CC="$ac_save_CC $ac_arg" 3849 if ac_fn_c_try_compile "$LINENO"; then : 3850 ac_cv_prog_cc_c89=$ac_arg 3851fi 3852rm -f core conftest.err conftest.$ac_objext 3853 test "x$ac_cv_prog_cc_c89" != "xno" && break 3854done 3855rm -f conftest.$ac_ext 3856CC=$ac_save_CC 3857 3858fi 3859# AC_CACHE_VAL 3860case "x$ac_cv_prog_cc_c89" in 3861 x) 3862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3863$as_echo "none needed" >&6; } ;; 3864 xno) 3865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3866$as_echo "unsupported" >&6; } ;; 3867 *) 3868 CC="$CC $ac_cv_prog_cc_c89" 3869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3870$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3871esac 3872if test "x$ac_cv_prog_cc_c89" != xno; then : 3873 3874fi 3875 3876ac_ext=c 3877ac_cpp='$CPP $CPPFLAGS' 3878ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3879ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3880ac_compiler_gnu=$ac_cv_c_compiler_gnu 3881 3882depcc="$CC" am_compiler_list= 3883 3884{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 3885$as_echo_n "checking dependency style of $depcc... " >&6; } 3886if ${am_cv_CC_dependencies_compiler_type+:} false; then : 3887 $as_echo_n "(cached) " >&6 3888else 3889 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3890 # We make a subdir and do the tests there. Otherwise we can end up 3891 # making bogus files that we don't know about and never remove. For 3892 # instance it was reported that on HP-UX the gcc test will end up 3893 # making a dummy file named 'D' -- because '-MD' means "put the output 3894 # in D". 3895 rm -rf conftest.dir 3896 mkdir conftest.dir 3897 # Copy depcomp to subdir because otherwise we won't find it if we're 3898 # using a relative directory. 3899 cp "$am_depcomp" conftest.dir 3900 cd conftest.dir 3901 # We will build objects and dependencies in a subdirectory because 3902 # it helps to detect inapplicable dependency modes. For instance 3903 # both Tru64's cc and ICC support -MD to output dependencies as a 3904 # side effect of compilation, but ICC will put the dependencies in 3905 # the current directory while Tru64 will put them in the object 3906 # directory. 3907 mkdir sub 3908 3909 am_cv_CC_dependencies_compiler_type=none 3910 if test "$am_compiler_list" = ""; then 3911 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3912 fi 3913 am__universal=false 3914 case " $depcc " in #( 3915 *\ -arch\ *\ -arch\ *) am__universal=true ;; 3916 esac 3917 3918 for depmode in $am_compiler_list; do 3919 # Setup a source with many dependencies, because some compilers 3920 # like to wrap large dependency lists on column 80 (with \), and 3921 # we should not choose a depcomp mode which is confused by this. 3922 # 3923 # We need to recreate these files for each test, as the compiler may 3924 # overwrite some of them when testing with obscure command lines. 3925 # This happens at least with the AIX C compiler. 3926 : > sub/conftest.c 3927 for i in 1 2 3 4 5 6; do 3928 echo '#include "conftst'$i'.h"' >> sub/conftest.c 3929 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 3930 # Solaris 10 /bin/sh. 3931 echo '/* dummy */' > sub/conftst$i.h 3932 done 3933 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 3934 3935 # We check with '-c' and '-o' for the sake of the "dashmstdout" 3936 # mode. It turns out that the SunPro C++ compiler does not properly 3937 # handle '-M -o', and we need to detect this. Also, some Intel 3938 # versions had trouble with output in subdirs. 3939 am__obj=sub/conftest.${OBJEXT-o} 3940 am__minus_obj="-o $am__obj" 3941 case $depmode in 3942 gcc) 3943 # This depmode causes a compiler race in universal mode. 3944 test "$am__universal" = false || continue 3945 ;; 3946 nosideeffect) 3947 # After this tag, mechanisms are not by side-effect, so they'll 3948 # only be used when explicitly requested. 3949 if test "x$enable_dependency_tracking" = xyes; then 3950 continue 3951 else 3952 break 3953 fi 3954 ;; 3955 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 3956 # This compiler won't grok '-c -o', but also, the minuso test has 3957 # not run yet. These depmodes are late enough in the game, and 3958 # so weak that their functioning should not be impacted. 3959 am__obj=conftest.${OBJEXT-o} 3960 am__minus_obj= 3961 ;; 3962 none) break ;; 3963 esac 3964 if depmode=$depmode \ 3965 source=sub/conftest.c object=$am__obj \ 3966 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 3967 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 3968 >/dev/null 2>conftest.err && 3969 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 3970 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 3971 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 3972 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 3973 # icc doesn't choke on unknown options, it will just issue warnings 3974 # or remarks (even with -Werror). So we grep stderr for any message 3975 # that says an option was ignored or not supported. 3976 # When given -MP, icc 7.0 and 7.1 complain thusly: 3977 # icc: Command line warning: ignoring option '-M'; no argument required 3978 # The diagnosis changed in icc 8.0: 3979 # icc: Command line remark: option '-MP' not supported 3980 if (grep 'ignoring option' conftest.err || 3981 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 3982 am_cv_CC_dependencies_compiler_type=$depmode 3983 break 3984 fi 3985 fi 3986 done 3987 3988 cd .. 3989 rm -rf conftest.dir 3990else 3991 am_cv_CC_dependencies_compiler_type=none 3992fi 3993 3994fi 3995{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 3996$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 3997CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 3998 3999 if 4000 test "x$enable_dependency_tracking" != xno \ 4001 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4002 am__fastdepCC_TRUE= 4003 am__fastdepCC_FALSE='#' 4004else 4005 am__fastdepCC_TRUE='#' 4006 am__fastdepCC_FALSE= 4007fi 4008 4009 4010{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4011$as_echo_n "checking for a sed that does not truncate output... " >&6; } 4012if ${ac_cv_path_SED+:} false; then : 4013 $as_echo_n "(cached) " >&6 4014else 4015 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4016 for ac_i in 1 2 3 4 5 6 7; do 4017 ac_script="$ac_script$as_nl$ac_script" 4018 done 4019 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4020 { ac_script=; unset ac_script;} 4021 if test -z "$SED"; then 4022 ac_path_SED_found=false 4023 # Loop through the user's path and test for each of PROGNAME-LIST 4024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4025for as_dir in $PATH 4026do 4027 IFS=$as_save_IFS 4028 test -z "$as_dir" && as_dir=. 4029 for ac_prog in sed gsed; do 4030 for ac_exec_ext in '' $ac_executable_extensions; do 4031 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 4032 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue 4033# Check for GNU ac_path_SED and select it if it is found. 4034 # Check for GNU $ac_path_SED 4035case `"$ac_path_SED" --version 2>&1` in 4036*GNU*) 4037 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4038*) 4039 ac_count=0 4040 $as_echo_n 0123456789 >"conftest.in" 4041 while : 4042 do 4043 cat "conftest.in" "conftest.in" >"conftest.tmp" 4044 mv "conftest.tmp" "conftest.in" 4045 cp "conftest.in" "conftest.nl" 4046 $as_echo '' >> "conftest.nl" 4047 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4048 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4049 as_fn_arith $ac_count + 1 && ac_count=$as_val 4050 if test $ac_count -gt ${ac_path_SED_max-0}; then 4051 # Best one so far, save it but keep looking for a better one 4052 ac_cv_path_SED="$ac_path_SED" 4053 ac_path_SED_max=$ac_count 4054 fi 4055 # 10*(2^10) chars as input seems more than enough 4056 test $ac_count -gt 10 && break 4057 done 4058 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4059esac 4060 4061 $ac_path_SED_found && break 3 4062 done 4063 done 4064 done 4065IFS=$as_save_IFS 4066 if test -z "$ac_cv_path_SED"; then 4067 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 4068 fi 4069else 4070 ac_cv_path_SED=$SED 4071fi 4072 4073fi 4074{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4075$as_echo "$ac_cv_path_SED" >&6; } 4076 SED="$ac_cv_path_SED" 4077 rm -f conftest.sed 4078 4079test -z "$SED" && SED=sed 4080Xsed="$SED -e 1s/^X//" 4081 4082 4083 4084 4085 4086 4087 4088 4089 4090 4091 4092{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4093$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4094if ${ac_cv_path_GREP+:} false; then : 4095 $as_echo_n "(cached) " >&6 4096else 4097 if test -z "$GREP"; then 4098 ac_path_GREP_found=false 4099 # Loop through the user's path and test for each of PROGNAME-LIST 4100 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4101for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4102do 4103 IFS=$as_save_IFS 4104 test -z "$as_dir" && as_dir=. 4105 for ac_prog in grep ggrep; do 4106 for ac_exec_ext in '' $ac_executable_extensions; do 4107 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4108 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 4109# Check for GNU ac_path_GREP and select it if it is found. 4110 # Check for GNU $ac_path_GREP 4111case `"$ac_path_GREP" --version 2>&1` in 4112*GNU*) 4113 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4114*) 4115 ac_count=0 4116 $as_echo_n 0123456789 >"conftest.in" 4117 while : 4118 do 4119 cat "conftest.in" "conftest.in" >"conftest.tmp" 4120 mv "conftest.tmp" "conftest.in" 4121 cp "conftest.in" "conftest.nl" 4122 $as_echo 'GREP' >> "conftest.nl" 4123 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4124 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4125 as_fn_arith $ac_count + 1 && ac_count=$as_val 4126 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4127 # Best one so far, save it but keep looking for a better one 4128 ac_cv_path_GREP="$ac_path_GREP" 4129 ac_path_GREP_max=$ac_count 4130 fi 4131 # 10*(2^10) chars as input seems more than enough 4132 test $ac_count -gt 10 && break 4133 done 4134 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4135esac 4136 4137 $ac_path_GREP_found && break 3 4138 done 4139 done 4140 done 4141IFS=$as_save_IFS 4142 if test -z "$ac_cv_path_GREP"; then 4143 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4144 fi 4145else 4146 ac_cv_path_GREP=$GREP 4147fi 4148 4149fi 4150{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4151$as_echo "$ac_cv_path_GREP" >&6; } 4152 GREP="$ac_cv_path_GREP" 4153 4154 4155{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4156$as_echo_n "checking for egrep... " >&6; } 4157if ${ac_cv_path_EGREP+:} false; then : 4158 $as_echo_n "(cached) " >&6 4159else 4160 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4161 then ac_cv_path_EGREP="$GREP -E" 4162 else 4163 if test -z "$EGREP"; then 4164 ac_path_EGREP_found=false 4165 # Loop through the user's path and test for each of PROGNAME-LIST 4166 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4167for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4168do 4169 IFS=$as_save_IFS 4170 test -z "$as_dir" && as_dir=. 4171 for ac_prog in egrep; do 4172 for ac_exec_ext in '' $ac_executable_extensions; do 4173 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4174 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 4175# Check for GNU ac_path_EGREP and select it if it is found. 4176 # Check for GNU $ac_path_EGREP 4177case `"$ac_path_EGREP" --version 2>&1` in 4178*GNU*) 4179 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4180*) 4181 ac_count=0 4182 $as_echo_n 0123456789 >"conftest.in" 4183 while : 4184 do 4185 cat "conftest.in" "conftest.in" >"conftest.tmp" 4186 mv "conftest.tmp" "conftest.in" 4187 cp "conftest.in" "conftest.nl" 4188 $as_echo 'EGREP' >> "conftest.nl" 4189 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4190 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4191 as_fn_arith $ac_count + 1 && ac_count=$as_val 4192 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4193 # Best one so far, save it but keep looking for a better one 4194 ac_cv_path_EGREP="$ac_path_EGREP" 4195 ac_path_EGREP_max=$ac_count 4196 fi 4197 # 10*(2^10) chars as input seems more than enough 4198 test $ac_count -gt 10 && break 4199 done 4200 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4201esac 4202 4203 $ac_path_EGREP_found && break 3 4204 done 4205 done 4206 done 4207IFS=$as_save_IFS 4208 if test -z "$ac_cv_path_EGREP"; then 4209 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4210 fi 4211else 4212 ac_cv_path_EGREP=$EGREP 4213fi 4214 4215 fi 4216fi 4217{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4218$as_echo "$ac_cv_path_EGREP" >&6; } 4219 EGREP="$ac_cv_path_EGREP" 4220 4221 4222{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 4223$as_echo_n "checking for fgrep... " >&6; } 4224if ${ac_cv_path_FGREP+:} false; then : 4225 $as_echo_n "(cached) " >&6 4226else 4227 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 4228 then ac_cv_path_FGREP="$GREP -F" 4229 else 4230 if test -z "$FGREP"; then 4231 ac_path_FGREP_found=false 4232 # Loop through the user's path and test for each of PROGNAME-LIST 4233 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4234for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4235do 4236 IFS=$as_save_IFS 4237 test -z "$as_dir" && as_dir=. 4238 for ac_prog in fgrep; do 4239 for ac_exec_ext in '' $ac_executable_extensions; do 4240 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 4241 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue 4242# Check for GNU ac_path_FGREP and select it if it is found. 4243 # Check for GNU $ac_path_FGREP 4244case `"$ac_path_FGREP" --version 2>&1` in 4245*GNU*) 4246 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 4247*) 4248 ac_count=0 4249 $as_echo_n 0123456789 >"conftest.in" 4250 while : 4251 do 4252 cat "conftest.in" "conftest.in" >"conftest.tmp" 4253 mv "conftest.tmp" "conftest.in" 4254 cp "conftest.in" "conftest.nl" 4255 $as_echo 'FGREP' >> "conftest.nl" 4256 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 4257 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4258 as_fn_arith $ac_count + 1 && ac_count=$as_val 4259 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 4260 # Best one so far, save it but keep looking for a better one 4261 ac_cv_path_FGREP="$ac_path_FGREP" 4262 ac_path_FGREP_max=$ac_count 4263 fi 4264 # 10*(2^10) chars as input seems more than enough 4265 test $ac_count -gt 10 && break 4266 done 4267 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4268esac 4269 4270 $ac_path_FGREP_found && break 3 4271 done 4272 done 4273 done 4274IFS=$as_save_IFS 4275 if test -z "$ac_cv_path_FGREP"; then 4276 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4277 fi 4278else 4279 ac_cv_path_FGREP=$FGREP 4280fi 4281 4282 fi 4283fi 4284{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 4285$as_echo "$ac_cv_path_FGREP" >&6; } 4286 FGREP="$ac_cv_path_FGREP" 4287 4288 4289test -z "$GREP" && GREP=grep 4290 4291 4292 4293 4294 4295 4296 4297 4298 4299 4300 4301 4302 4303 4304 4305 4306 4307 4308 4309# Check whether --with-gnu-ld was given. 4310if test "${with_gnu_ld+set}" = set; then : 4311 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 4312else 4313 with_gnu_ld=no 4314fi 4315 4316ac_prog=ld 4317if test "$GCC" = yes; then 4318 # Check if gcc -print-prog-name=ld gives a path. 4319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 4320$as_echo_n "checking for ld used by $CC... " >&6; } 4321 case $host in 4322 *-*-mingw*) 4323 # gcc leaves a trailing carriage return which upsets mingw 4324 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 4325 *) 4326 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 4327 esac 4328 case $ac_prog in 4329 # Accept absolute paths. 4330 [\\/]* | ?:[\\/]*) 4331 re_direlt='/[^/][^/]*/\.\./' 4332 # Canonicalize the pathname of ld 4333 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 4334 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 4335 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 4336 done 4337 test -z "$LD" && LD="$ac_prog" 4338 ;; 4339 "") 4340 # If it fails, then pretend we aren't using GCC. 4341 ac_prog=ld 4342 ;; 4343 *) 4344 # If it is relative, then search for the first ld in PATH. 4345 with_gnu_ld=unknown 4346 ;; 4347 esac 4348elif test "$with_gnu_ld" = yes; then 4349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 4350$as_echo_n "checking for GNU ld... " >&6; } 4351else 4352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 4353$as_echo_n "checking for non-GNU ld... " >&6; } 4354fi 4355if ${lt_cv_path_LD+:} false; then : 4356 $as_echo_n "(cached) " >&6 4357else 4358 if test -z "$LD"; then 4359 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4360 for ac_dir in $PATH; do 4361 IFS="$lt_save_ifs" 4362 test -z "$ac_dir" && ac_dir=. 4363 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 4364 lt_cv_path_LD="$ac_dir/$ac_prog" 4365 # Check to see if the program is GNU ld. I'd rather use --version, 4366 # but apparently some variants of GNU ld only accept -v. 4367 # Break only if it was the GNU/non-GNU ld that we prefer. 4368 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 4369 *GNU* | *'with BFD'*) 4370 test "$with_gnu_ld" != no && break 4371 ;; 4372 *) 4373 test "$with_gnu_ld" != yes && break 4374 ;; 4375 esac 4376 fi 4377 done 4378 IFS="$lt_save_ifs" 4379else 4380 lt_cv_path_LD="$LD" # Let the user override the test with a path. 4381fi 4382fi 4383 4384LD="$lt_cv_path_LD" 4385if test -n "$LD"; then 4386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 4387$as_echo "$LD" >&6; } 4388else 4389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4390$as_echo "no" >&6; } 4391fi 4392test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 4393{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 4394$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 4395if ${lt_cv_prog_gnu_ld+:} false; then : 4396 $as_echo_n "(cached) " >&6 4397else 4398 # I'd rather use --version here, but apparently some GNU lds only accept -v. 4399case `$LD -v 2>&1 </dev/null` in 4400*GNU* | *'with BFD'*) 4401 lt_cv_prog_gnu_ld=yes 4402 ;; 4403*) 4404 lt_cv_prog_gnu_ld=no 4405 ;; 4406esac 4407fi 4408{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 4409$as_echo "$lt_cv_prog_gnu_ld" >&6; } 4410with_gnu_ld=$lt_cv_prog_gnu_ld 4411 4412 4413 4414 4415 4416 4417 4418 4419 4420{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 4421$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 4422if ${lt_cv_path_NM+:} false; then : 4423 $as_echo_n "(cached) " >&6 4424else 4425 if test -n "$NM"; then 4426 # Let the user override the test. 4427 lt_cv_path_NM="$NM" 4428else 4429 lt_nm_to_check="${ac_tool_prefix}nm" 4430 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 4431 lt_nm_to_check="$lt_nm_to_check nm" 4432 fi 4433 for lt_tmp_nm in $lt_nm_to_check; do 4434 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4435 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 4436 IFS="$lt_save_ifs" 4437 test -z "$ac_dir" && ac_dir=. 4438 tmp_nm="$ac_dir/$lt_tmp_nm" 4439 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 4440 # Check to see if the nm accepts a BSD-compat flag. 4441 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 4442 # nm: unknown option "B" ignored 4443 # Tru64's nm complains that /dev/null is an invalid object file 4444 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 4445 */dev/null* | *'Invalid file or object type'*) 4446 lt_cv_path_NM="$tmp_nm -B" 4447 break 4448 ;; 4449 *) 4450 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 4451 */dev/null*) 4452 lt_cv_path_NM="$tmp_nm -p" 4453 break 4454 ;; 4455 *) 4456 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 4457 continue # so that we can try to find one that supports BSD flags 4458 ;; 4459 esac 4460 ;; 4461 esac 4462 fi 4463 done 4464 IFS="$lt_save_ifs" 4465 done 4466 : ${lt_cv_path_NM=no} 4467fi 4468fi 4469{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 4470$as_echo "$lt_cv_path_NM" >&6; } 4471if test "$lt_cv_path_NM" != "no"; then 4472 NM="$lt_cv_path_NM" 4473else 4474 # Didn't find any BSD compatible name lister, look for dumpbin. 4475 if test -n "$DUMPBIN"; then : 4476 # Let the user override the test. 4477 else 4478 if test -n "$ac_tool_prefix"; then 4479 for ac_prog in dumpbin "link -dump" 4480 do 4481 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4482set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4483{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4484$as_echo_n "checking for $ac_word... " >&6; } 4485if ${ac_cv_prog_DUMPBIN+:} false; then : 4486 $as_echo_n "(cached) " >&6 4487else 4488 if test -n "$DUMPBIN"; then 4489 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 4490else 4491as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4492for as_dir in $PATH 4493do 4494 IFS=$as_save_IFS 4495 test -z "$as_dir" && as_dir=. 4496 for ac_exec_ext in '' $ac_executable_extensions; do 4497 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4498 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 4499 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4500 break 2 4501 fi 4502done 4503 done 4504IFS=$as_save_IFS 4505 4506fi 4507fi 4508DUMPBIN=$ac_cv_prog_DUMPBIN 4509if test -n "$DUMPBIN"; then 4510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 4511$as_echo "$DUMPBIN" >&6; } 4512else 4513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4514$as_echo "no" >&6; } 4515fi 4516 4517 4518 test -n "$DUMPBIN" && break 4519 done 4520fi 4521if test -z "$DUMPBIN"; then 4522 ac_ct_DUMPBIN=$DUMPBIN 4523 for ac_prog in dumpbin "link -dump" 4524do 4525 # Extract the first word of "$ac_prog", so it can be a program name with args. 4526set dummy $ac_prog; ac_word=$2 4527{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4528$as_echo_n "checking for $ac_word... " >&6; } 4529if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 4530 $as_echo_n "(cached) " >&6 4531else 4532 if test -n "$ac_ct_DUMPBIN"; then 4533 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 4534else 4535as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4536for as_dir in $PATH 4537do 4538 IFS=$as_save_IFS 4539 test -z "$as_dir" && as_dir=. 4540 for ac_exec_ext in '' $ac_executable_extensions; do 4541 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4542 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 4543 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4544 break 2 4545 fi 4546done 4547 done 4548IFS=$as_save_IFS 4549 4550fi 4551fi 4552ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 4553if test -n "$ac_ct_DUMPBIN"; then 4554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 4555$as_echo "$ac_ct_DUMPBIN" >&6; } 4556else 4557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4558$as_echo "no" >&6; } 4559fi 4560 4561 4562 test -n "$ac_ct_DUMPBIN" && break 4563done 4564 4565 if test "x$ac_ct_DUMPBIN" = x; then 4566 DUMPBIN=":" 4567 else 4568 case $cross_compiling:$ac_tool_warned in 4569yes:) 4570{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4571$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4572ac_tool_warned=yes ;; 4573esac 4574 DUMPBIN=$ac_ct_DUMPBIN 4575 fi 4576fi 4577 4578 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in 4579 *COFF*) 4580 DUMPBIN="$DUMPBIN -symbols" 4581 ;; 4582 *) 4583 DUMPBIN=: 4584 ;; 4585 esac 4586 fi 4587 4588 if test "$DUMPBIN" != ":"; then 4589 NM="$DUMPBIN" 4590 fi 4591fi 4592test -z "$NM" && NM=nm 4593 4594 4595 4596 4597 4598 4599{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 4600$as_echo_n "checking the name lister ($NM) interface... " >&6; } 4601if ${lt_cv_nm_interface+:} false; then : 4602 $as_echo_n "(cached) " >&6 4603else 4604 lt_cv_nm_interface="BSD nm" 4605 echo "int some_variable = 0;" > conftest.$ac_ext 4606 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 4607 (eval "$ac_compile" 2>conftest.err) 4608 cat conftest.err >&5 4609 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 4610 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 4611 cat conftest.err >&5 4612 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 4613 cat conftest.out >&5 4614 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 4615 lt_cv_nm_interface="MS dumpbin" 4616 fi 4617 rm -f conftest* 4618fi 4619{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 4620$as_echo "$lt_cv_nm_interface" >&6; } 4621 4622{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 4623$as_echo_n "checking whether ln -s works... " >&6; } 4624LN_S=$as_ln_s 4625if test "$LN_S" = "ln -s"; then 4626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4627$as_echo "yes" >&6; } 4628else 4629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 4630$as_echo "no, using $LN_S" >&6; } 4631fi 4632 4633# find the maximum length of command line arguments 4634{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 4635$as_echo_n "checking the maximum length of command line arguments... " >&6; } 4636if ${lt_cv_sys_max_cmd_len+:} false; then : 4637 $as_echo_n "(cached) " >&6 4638else 4639 i=0 4640 teststring="ABCD" 4641 4642 case $build_os in 4643 msdosdjgpp*) 4644 # On DJGPP, this test can blow up pretty badly due to problems in libc 4645 # (any single argument exceeding 2000 bytes causes a buffer overrun 4646 # during glob expansion). Even if it were fixed, the result of this 4647 # check would be larger than it should be. 4648 lt_cv_sys_max_cmd_len=12288; # 12K is about right 4649 ;; 4650 4651 gnu*) 4652 # Under GNU Hurd, this test is not required because there is 4653 # no limit to the length of command line arguments. 4654 # Libtool will interpret -1 as no limit whatsoever 4655 lt_cv_sys_max_cmd_len=-1; 4656 ;; 4657 4658 cygwin* | mingw* | cegcc*) 4659 # On Win9x/ME, this test blows up -- it succeeds, but takes 4660 # about 5 minutes as the teststring grows exponentially. 4661 # Worse, since 9x/ME are not pre-emptively multitasking, 4662 # you end up with a "frozen" computer, even though with patience 4663 # the test eventually succeeds (with a max line length of 256k). 4664 # Instead, let's just punt: use the minimum linelength reported by 4665 # all of the supported platforms: 8192 (on NT/2K/XP). 4666 lt_cv_sys_max_cmd_len=8192; 4667 ;; 4668 4669 mint*) 4670 # On MiNT this can take a long time and run out of memory. 4671 lt_cv_sys_max_cmd_len=8192; 4672 ;; 4673 4674 amigaos*) 4675 # On AmigaOS with pdksh, this test takes hours, literally. 4676 # So we just punt and use a minimum line length of 8192. 4677 lt_cv_sys_max_cmd_len=8192; 4678 ;; 4679 4680 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 4681 # This has been around since 386BSD, at least. Likely further. 4682 if test -x /sbin/sysctl; then 4683 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 4684 elif test -x /usr/sbin/sysctl; then 4685 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 4686 else 4687 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 4688 fi 4689 # And add a safety zone 4690 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 4691 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 4692 ;; 4693 4694 interix*) 4695 # We know the value 262144 and hardcode it with a safety zone (like BSD) 4696 lt_cv_sys_max_cmd_len=196608 4697 ;; 4698 4699 os2*) 4700 # The test takes a long time on OS/2. 4701 lt_cv_sys_max_cmd_len=8192 4702 ;; 4703 4704 osf*) 4705 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 4706 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 4707 # nice to cause kernel panics so lets avoid the loop below. 4708 # First set a reasonable default. 4709 lt_cv_sys_max_cmd_len=16384 4710 # 4711 if test -x /sbin/sysconfig; then 4712 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 4713 *1*) lt_cv_sys_max_cmd_len=-1 ;; 4714 esac 4715 fi 4716 ;; 4717 sco3.2v5*) 4718 lt_cv_sys_max_cmd_len=102400 4719 ;; 4720 sysv5* | sco5v6* | sysv4.2uw2*) 4721 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 4722 if test -n "$kargmax"; then 4723 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 4724 else 4725 lt_cv_sys_max_cmd_len=32768 4726 fi 4727 ;; 4728 *) 4729 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 4730 if test -n "$lt_cv_sys_max_cmd_len"; then 4731 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 4732 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 4733 else 4734 # Make teststring a little bigger before we do anything with it. 4735 # a 1K string should be a reasonable start. 4736 for i in 1 2 3 4 5 6 7 8 ; do 4737 teststring=$teststring$teststring 4738 done 4739 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 4740 # If test is not a shell built-in, we'll probably end up computing a 4741 # maximum length that is only half of the actual maximum length, but 4742 # we can't tell. 4743 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \ 4744 = "X$teststring$teststring"; } >/dev/null 2>&1 && 4745 test $i != 17 # 1/2 MB should be enough 4746 do 4747 i=`expr $i + 1` 4748 teststring=$teststring$teststring 4749 done 4750 # Only check the string length outside the loop. 4751 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 4752 teststring= 4753 # Add a significant safety factor because C++ compilers can tack on 4754 # massive amounts of additional arguments before passing them to the 4755 # linker. It appears as though 1/2 is a usable value. 4756 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 4757 fi 4758 ;; 4759 esac 4760 4761fi 4762 4763if test -n $lt_cv_sys_max_cmd_len ; then 4764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 4765$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 4766else 4767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 4768$as_echo "none" >&6; } 4769fi 4770max_cmd_len=$lt_cv_sys_max_cmd_len 4771 4772 4773 4774 4775 4776 4777: ${CP="cp -f"} 4778: ${MV="mv -f"} 4779: ${RM="rm -f"} 4780 4781{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 4782$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } 4783# Try some XSI features 4784xsi_shell=no 4785( _lt_dummy="a/b/c" 4786 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \ 4787 = c,a/b,b/c, \ 4788 && eval 'test $(( 1 + 1 )) -eq 2 \ 4789 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ 4790 && xsi_shell=yes 4791{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 4792$as_echo "$xsi_shell" >&6; } 4793 4794 4795{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 4796$as_echo_n "checking whether the shell understands \"+=\"... " >&6; } 4797lt_shell_append=no 4798( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ 4799 >/dev/null 2>&1 \ 4800 && lt_shell_append=yes 4801{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 4802$as_echo "$lt_shell_append" >&6; } 4803 4804 4805if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 4806 lt_unset=unset 4807else 4808 lt_unset=false 4809fi 4810 4811 4812 4813 4814 4815# test EBCDIC or ASCII 4816case `echo X|tr X '\101'` in 4817 A) # ASCII based system 4818 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 4819 lt_SP2NL='tr \040 \012' 4820 lt_NL2SP='tr \015\012 \040\040' 4821 ;; 4822 *) # EBCDIC based system 4823 lt_SP2NL='tr \100 \n' 4824 lt_NL2SP='tr \r\n \100\100' 4825 ;; 4826esac 4827 4828 4829 4830 4831 4832 4833 4834 4835 4836{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 4837$as_echo_n "checking how to convert $build file names to $host format... " >&6; } 4838if ${lt_cv_to_host_file_cmd+:} false; then : 4839 $as_echo_n "(cached) " >&6 4840else 4841 case $host in 4842 *-*-mingw* ) 4843 case $build in 4844 *-*-mingw* ) # actually msys 4845 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 4846 ;; 4847 *-*-cygwin* ) 4848 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 4849 ;; 4850 * ) # otherwise, assume *nix 4851 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 4852 ;; 4853 esac 4854 ;; 4855 *-*-cygwin* ) 4856 case $build in 4857 *-*-mingw* ) # actually msys 4858 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 4859 ;; 4860 *-*-cygwin* ) 4861 lt_cv_to_host_file_cmd=func_convert_file_noop 4862 ;; 4863 * ) # otherwise, assume *nix 4864 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 4865 ;; 4866 esac 4867 ;; 4868 * ) # unhandled hosts (and "normal" native builds) 4869 lt_cv_to_host_file_cmd=func_convert_file_noop 4870 ;; 4871esac 4872 4873fi 4874 4875to_host_file_cmd=$lt_cv_to_host_file_cmd 4876{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 4877$as_echo "$lt_cv_to_host_file_cmd" >&6; } 4878 4879 4880 4881 4882 4883{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 4884$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } 4885if ${lt_cv_to_tool_file_cmd+:} false; then : 4886 $as_echo_n "(cached) " >&6 4887else 4888 #assume ordinary cross tools, or native build. 4889lt_cv_to_tool_file_cmd=func_convert_file_noop 4890case $host in 4891 *-*-mingw* ) 4892 case $build in 4893 *-*-mingw* ) # actually msys 4894 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 4895 ;; 4896 esac 4897 ;; 4898esac 4899 4900fi 4901 4902to_tool_file_cmd=$lt_cv_to_tool_file_cmd 4903{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 4904$as_echo "$lt_cv_to_tool_file_cmd" >&6; } 4905 4906 4907 4908 4909 4910{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 4911$as_echo_n "checking for $LD option to reload object files... " >&6; } 4912if ${lt_cv_ld_reload_flag+:} false; then : 4913 $as_echo_n "(cached) " >&6 4914else 4915 lt_cv_ld_reload_flag='-r' 4916fi 4917{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 4918$as_echo "$lt_cv_ld_reload_flag" >&6; } 4919reload_flag=$lt_cv_ld_reload_flag 4920case $reload_flag in 4921"" | " "*) ;; 4922*) reload_flag=" $reload_flag" ;; 4923esac 4924reload_cmds='$LD$reload_flag -o $output$reload_objs' 4925case $host_os in 4926 cygwin* | mingw* | pw32* | cegcc*) 4927 if test "$GCC" != yes; then 4928 reload_cmds=false 4929 fi 4930 ;; 4931 darwin*) 4932 if test "$GCC" = yes; then 4933 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 4934 else 4935 reload_cmds='$LD$reload_flag -o $output$reload_objs' 4936 fi 4937 ;; 4938esac 4939 4940 4941 4942 4943 4944 4945 4946 4947 4948if test -n "$ac_tool_prefix"; then 4949 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 4950set dummy ${ac_tool_prefix}objdump; ac_word=$2 4951{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4952$as_echo_n "checking for $ac_word... " >&6; } 4953if ${ac_cv_prog_OBJDUMP+:} false; then : 4954 $as_echo_n "(cached) " >&6 4955else 4956 if test -n "$OBJDUMP"; then 4957 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 4958else 4959as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4960for as_dir in $PATH 4961do 4962 IFS=$as_save_IFS 4963 test -z "$as_dir" && as_dir=. 4964 for ac_exec_ext in '' $ac_executable_extensions; do 4965 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4966 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 4967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4968 break 2 4969 fi 4970done 4971 done 4972IFS=$as_save_IFS 4973 4974fi 4975fi 4976OBJDUMP=$ac_cv_prog_OBJDUMP 4977if test -n "$OBJDUMP"; then 4978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 4979$as_echo "$OBJDUMP" >&6; } 4980else 4981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4982$as_echo "no" >&6; } 4983fi 4984 4985 4986fi 4987if test -z "$ac_cv_prog_OBJDUMP"; then 4988 ac_ct_OBJDUMP=$OBJDUMP 4989 # Extract the first word of "objdump", so it can be a program name with args. 4990set dummy objdump; ac_word=$2 4991{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4992$as_echo_n "checking for $ac_word... " >&6; } 4993if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 4994 $as_echo_n "(cached) " >&6 4995else 4996 if test -n "$ac_ct_OBJDUMP"; then 4997 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 4998else 4999as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5000for as_dir in $PATH 5001do 5002 IFS=$as_save_IFS 5003 test -z "$as_dir" && as_dir=. 5004 for ac_exec_ext in '' $ac_executable_extensions; do 5005 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5006 ac_cv_prog_ac_ct_OBJDUMP="objdump" 5007 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5008 break 2 5009 fi 5010done 5011 done 5012IFS=$as_save_IFS 5013 5014fi 5015fi 5016ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 5017if test -n "$ac_ct_OBJDUMP"; then 5018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 5019$as_echo "$ac_ct_OBJDUMP" >&6; } 5020else 5021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5022$as_echo "no" >&6; } 5023fi 5024 5025 if test "x$ac_ct_OBJDUMP" = x; then 5026 OBJDUMP="false" 5027 else 5028 case $cross_compiling:$ac_tool_warned in 5029yes:) 5030{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5031$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5032ac_tool_warned=yes ;; 5033esac 5034 OBJDUMP=$ac_ct_OBJDUMP 5035 fi 5036else 5037 OBJDUMP="$ac_cv_prog_OBJDUMP" 5038fi 5039 5040test -z "$OBJDUMP" && OBJDUMP=objdump 5041 5042 5043 5044 5045 5046 5047 5048 5049 5050{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 5051$as_echo_n "checking how to recognize dependent libraries... " >&6; } 5052if ${lt_cv_deplibs_check_method+:} false; then : 5053 $as_echo_n "(cached) " >&6 5054else 5055 lt_cv_file_magic_cmd='$MAGIC_CMD' 5056lt_cv_file_magic_test_file= 5057lt_cv_deplibs_check_method='unknown' 5058# Need to set the preceding variable on all platforms that support 5059# interlibrary dependencies. 5060# 'none' -- dependencies not supported. 5061# `unknown' -- same as none, but documents that we really don't know. 5062# 'pass_all' -- all dependencies passed with no checks. 5063# 'test_compile' -- check by making test program. 5064# 'file_magic [[regex]]' -- check by looking for files in library path 5065# which responds to the $file_magic_cmd with a given extended regex. 5066# If you have `file' or equivalent on your system and you're not sure 5067# whether `pass_all' will *always* work, you probably want this one. 5068 5069case $host_os in 5070aix[4-9]*) 5071 lt_cv_deplibs_check_method=pass_all 5072 ;; 5073 5074beos*) 5075 lt_cv_deplibs_check_method=pass_all 5076 ;; 5077 5078bsdi[45]*) 5079 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 5080 lt_cv_file_magic_cmd='/usr/bin/file -L' 5081 lt_cv_file_magic_test_file=/shlib/libc.so 5082 ;; 5083 5084cygwin*) 5085 # func_win32_libid is a shell function defined in ltmain.sh 5086 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5087 lt_cv_file_magic_cmd='func_win32_libid' 5088 ;; 5089 5090mingw* | pw32*) 5091 # Base MSYS/MinGW do not provide the 'file' command needed by 5092 # func_win32_libid shell function, so use a weaker test based on 'objdump', 5093 # unless we find 'file', for example because we are cross-compiling. 5094 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin. 5095 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then 5096 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5097 lt_cv_file_magic_cmd='func_win32_libid' 5098 else 5099 # Keep this pattern in sync with the one in func_win32_libid. 5100 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 5101 lt_cv_file_magic_cmd='$OBJDUMP -f' 5102 fi 5103 ;; 5104 5105cegcc*) 5106 # use the weaker test based on 'objdump'. See mingw*. 5107 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 5108 lt_cv_file_magic_cmd='$OBJDUMP -f' 5109 ;; 5110 5111darwin* | rhapsody*) 5112 lt_cv_deplibs_check_method=pass_all 5113 ;; 5114 5115freebsd* | dragonfly*) 5116 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5117 case $host_cpu in 5118 i*86 ) 5119 # Not sure whether the presence of OpenBSD here was a mistake. 5120 # Let's accept both of them until this is cleared up. 5121 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 5122 lt_cv_file_magic_cmd=/usr/bin/file 5123 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 5124 ;; 5125 esac 5126 else 5127 lt_cv_deplibs_check_method=pass_all 5128 fi 5129 ;; 5130 5131gnu*) 5132 lt_cv_deplibs_check_method=pass_all 5133 ;; 5134 5135haiku*) 5136 lt_cv_deplibs_check_method=pass_all 5137 ;; 5138 5139hpux10.20* | hpux11*) 5140 lt_cv_file_magic_cmd=/usr/bin/file 5141 case $host_cpu in 5142 ia64*) 5143 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 5144 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 5145 ;; 5146 hppa*64*) 5147 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]' 5148 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 5149 ;; 5150 *) 5151 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 5152 lt_cv_file_magic_test_file=/usr/lib/libc.sl 5153 ;; 5154 esac 5155 ;; 5156 5157interix[3-9]*) 5158 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 5159 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 5160 ;; 5161 5162irix5* | irix6* | nonstopux*) 5163 case $LD in 5164 *-32|*"-32 ") libmagic=32-bit;; 5165 *-n32|*"-n32 ") libmagic=N32;; 5166 *-64|*"-64 ") libmagic=64-bit;; 5167 *) libmagic=never-match;; 5168 esac 5169 lt_cv_deplibs_check_method=pass_all 5170 ;; 5171 5172# This must be glibc/ELF. 5173linux* | k*bsd*-gnu | kopensolaris*-gnu) 5174 lt_cv_deplibs_check_method=pass_all 5175 ;; 5176 5177netbsd*) 5178 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5179 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5180 else 5181 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 5182 fi 5183 ;; 5184 5185newos6*) 5186 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 5187 lt_cv_file_magic_cmd=/usr/bin/file 5188 lt_cv_file_magic_test_file=/usr/lib/libnls.so 5189 ;; 5190 5191*nto* | *qnx*) 5192 lt_cv_deplibs_check_method=pass_all 5193 ;; 5194 5195openbsd*) 5196 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 5197 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 5198 else 5199 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5200 fi 5201 ;; 5202 5203osf3* | osf4* | osf5*) 5204 lt_cv_deplibs_check_method=pass_all 5205 ;; 5206 5207rdos*) 5208 lt_cv_deplibs_check_method=pass_all 5209 ;; 5210 5211solaris*) 5212 lt_cv_deplibs_check_method=pass_all 5213 ;; 5214 5215sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 5216 lt_cv_deplibs_check_method=pass_all 5217 ;; 5218 5219sysv4 | sysv4.3*) 5220 case $host_vendor in 5221 motorola) 5222 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]' 5223 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 5224 ;; 5225 ncr) 5226 lt_cv_deplibs_check_method=pass_all 5227 ;; 5228 sequent) 5229 lt_cv_file_magic_cmd='/bin/file' 5230 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 5231 ;; 5232 sni) 5233 lt_cv_file_magic_cmd='/bin/file' 5234 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 5235 lt_cv_file_magic_test_file=/lib/libc.so 5236 ;; 5237 siemens) 5238 lt_cv_deplibs_check_method=pass_all 5239 ;; 5240 pc) 5241 lt_cv_deplibs_check_method=pass_all 5242 ;; 5243 esac 5244 ;; 5245 5246tpf*) 5247 lt_cv_deplibs_check_method=pass_all 5248 ;; 5249esac 5250 5251fi 5252{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 5253$as_echo "$lt_cv_deplibs_check_method" >&6; } 5254 5255file_magic_glob= 5256want_nocaseglob=no 5257if test "$build" = "$host"; then 5258 case $host_os in 5259 mingw* | pw32*) 5260 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 5261 want_nocaseglob=yes 5262 else 5263 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 5264 fi 5265 ;; 5266 esac 5267fi 5268 5269file_magic_cmd=$lt_cv_file_magic_cmd 5270deplibs_check_method=$lt_cv_deplibs_check_method 5271test -z "$deplibs_check_method" && deplibs_check_method=unknown 5272 5273 5274 5275 5276 5277 5278 5279 5280 5281 5282 5283 5284 5285 5286 5287 5288 5289 5290 5291 5292 5293 5294if test -n "$ac_tool_prefix"; then 5295 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 5296set dummy ${ac_tool_prefix}dlltool; ac_word=$2 5297{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5298$as_echo_n "checking for $ac_word... " >&6; } 5299if ${ac_cv_prog_DLLTOOL+:} false; then : 5300 $as_echo_n "(cached) " >&6 5301else 5302 if test -n "$DLLTOOL"; then 5303 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 5304else 5305as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5306for as_dir in $PATH 5307do 5308 IFS=$as_save_IFS 5309 test -z "$as_dir" && as_dir=. 5310 for ac_exec_ext in '' $ac_executable_extensions; do 5311 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5312 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 5313 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5314 break 2 5315 fi 5316done 5317 done 5318IFS=$as_save_IFS 5319 5320fi 5321fi 5322DLLTOOL=$ac_cv_prog_DLLTOOL 5323if test -n "$DLLTOOL"; then 5324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 5325$as_echo "$DLLTOOL" >&6; } 5326else 5327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5328$as_echo "no" >&6; } 5329fi 5330 5331 5332fi 5333if test -z "$ac_cv_prog_DLLTOOL"; then 5334 ac_ct_DLLTOOL=$DLLTOOL 5335 # Extract the first word of "dlltool", so it can be a program name with args. 5336set dummy dlltool; ac_word=$2 5337{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5338$as_echo_n "checking for $ac_word... " >&6; } 5339if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 5340 $as_echo_n "(cached) " >&6 5341else 5342 if test -n "$ac_ct_DLLTOOL"; then 5343 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 5344else 5345as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5346for as_dir in $PATH 5347do 5348 IFS=$as_save_IFS 5349 test -z "$as_dir" && as_dir=. 5350 for ac_exec_ext in '' $ac_executable_extensions; do 5351 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5352 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 5353 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5354 break 2 5355 fi 5356done 5357 done 5358IFS=$as_save_IFS 5359 5360fi 5361fi 5362ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 5363if test -n "$ac_ct_DLLTOOL"; then 5364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 5365$as_echo "$ac_ct_DLLTOOL" >&6; } 5366else 5367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5368$as_echo "no" >&6; } 5369fi 5370 5371 if test "x$ac_ct_DLLTOOL" = x; then 5372 DLLTOOL="false" 5373 else 5374 case $cross_compiling:$ac_tool_warned in 5375yes:) 5376{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5377$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5378ac_tool_warned=yes ;; 5379esac 5380 DLLTOOL=$ac_ct_DLLTOOL 5381 fi 5382else 5383 DLLTOOL="$ac_cv_prog_DLLTOOL" 5384fi 5385 5386test -z "$DLLTOOL" && DLLTOOL=dlltool 5387 5388 5389 5390 5391 5392 5393 5394 5395 5396 5397{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 5398$as_echo_n "checking how to associate runtime and link libraries... " >&6; } 5399if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : 5400 $as_echo_n "(cached) " >&6 5401else 5402 lt_cv_sharedlib_from_linklib_cmd='unknown' 5403 5404case $host_os in 5405cygwin* | mingw* | pw32* | cegcc*) 5406 # two different shell functions defined in ltmain.sh 5407 # decide which to use based on capabilities of $DLLTOOL 5408 case `$DLLTOOL --help 2>&1` in 5409 *--identify-strict*) 5410 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 5411 ;; 5412 *) 5413 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 5414 ;; 5415 esac 5416 ;; 5417*) 5418 # fallback: assume linklib IS sharedlib 5419 lt_cv_sharedlib_from_linklib_cmd="$ECHO" 5420 ;; 5421esac 5422 5423fi 5424{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 5425$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 5426sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 5427test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 5428 5429 5430 5431 5432 5433 5434 5435 5436if test -n "$ac_tool_prefix"; then 5437 for ac_prog in ar 5438 do 5439 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5440set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5441{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5442$as_echo_n "checking for $ac_word... " >&6; } 5443if ${ac_cv_prog_AR+:} false; then : 5444 $as_echo_n "(cached) " >&6 5445else 5446 if test -n "$AR"; then 5447 ac_cv_prog_AR="$AR" # Let the user override the test. 5448else 5449as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5450for as_dir in $PATH 5451do 5452 IFS=$as_save_IFS 5453 test -z "$as_dir" && as_dir=. 5454 for ac_exec_ext in '' $ac_executable_extensions; do 5455 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5456 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 5457 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5458 break 2 5459 fi 5460done 5461 done 5462IFS=$as_save_IFS 5463 5464fi 5465fi 5466AR=$ac_cv_prog_AR 5467if test -n "$AR"; then 5468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 5469$as_echo "$AR" >&6; } 5470else 5471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5472$as_echo "no" >&6; } 5473fi 5474 5475 5476 test -n "$AR" && break 5477 done 5478fi 5479if test -z "$AR"; then 5480 ac_ct_AR=$AR 5481 for ac_prog in ar 5482do 5483 # Extract the first word of "$ac_prog", so it can be a program name with args. 5484set dummy $ac_prog; ac_word=$2 5485{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5486$as_echo_n "checking for $ac_word... " >&6; } 5487if ${ac_cv_prog_ac_ct_AR+:} false; then : 5488 $as_echo_n "(cached) " >&6 5489else 5490 if test -n "$ac_ct_AR"; then 5491 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 5492else 5493as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5494for as_dir in $PATH 5495do 5496 IFS=$as_save_IFS 5497 test -z "$as_dir" && as_dir=. 5498 for ac_exec_ext in '' $ac_executable_extensions; do 5499 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5500 ac_cv_prog_ac_ct_AR="$ac_prog" 5501 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5502 break 2 5503 fi 5504done 5505 done 5506IFS=$as_save_IFS 5507 5508fi 5509fi 5510ac_ct_AR=$ac_cv_prog_ac_ct_AR 5511if test -n "$ac_ct_AR"; then 5512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 5513$as_echo "$ac_ct_AR" >&6; } 5514else 5515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5516$as_echo "no" >&6; } 5517fi 5518 5519 5520 test -n "$ac_ct_AR" && break 5521done 5522 5523 if test "x$ac_ct_AR" = x; then 5524 AR="false" 5525 else 5526 case $cross_compiling:$ac_tool_warned in 5527yes:) 5528{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5529$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5530ac_tool_warned=yes ;; 5531esac 5532 AR=$ac_ct_AR 5533 fi 5534fi 5535 5536: ${AR=ar} 5537: ${AR_FLAGS=cru} 5538 5539 5540 5541 5542 5543 5544 5545 5546 5547 5548 5549{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 5550$as_echo_n "checking for archiver @FILE support... " >&6; } 5551if ${lt_cv_ar_at_file+:} false; then : 5552 $as_echo_n "(cached) " >&6 5553else 5554 lt_cv_ar_at_file=no 5555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5556/* end confdefs.h. */ 5557 5558int 5559main () 5560{ 5561 5562 ; 5563 return 0; 5564} 5565_ACEOF 5566if ac_fn_c_try_compile "$LINENO"; then : 5567 echo conftest.$ac_objext > conftest.lst 5568 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 5569 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 5570 (eval $lt_ar_try) 2>&5 5571 ac_status=$? 5572 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5573 test $ac_status = 0; } 5574 if test "$ac_status" -eq 0; then 5575 # Ensure the archiver fails upon bogus file names. 5576 rm -f conftest.$ac_objext libconftest.a 5577 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 5578 (eval $lt_ar_try) 2>&5 5579 ac_status=$? 5580 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5581 test $ac_status = 0; } 5582 if test "$ac_status" -ne 0; then 5583 lt_cv_ar_at_file=@ 5584 fi 5585 fi 5586 rm -f conftest.* libconftest.a 5587 5588fi 5589rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5590 5591fi 5592{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 5593$as_echo "$lt_cv_ar_at_file" >&6; } 5594 5595if test "x$lt_cv_ar_at_file" = xno; then 5596 archiver_list_spec= 5597else 5598 archiver_list_spec=$lt_cv_ar_at_file 5599fi 5600 5601 5602 5603 5604 5605 5606 5607if test -n "$ac_tool_prefix"; then 5608 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 5609set dummy ${ac_tool_prefix}strip; ac_word=$2 5610{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5611$as_echo_n "checking for $ac_word... " >&6; } 5612if ${ac_cv_prog_STRIP+:} false; then : 5613 $as_echo_n "(cached) " >&6 5614else 5615 if test -n "$STRIP"; then 5616 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 5617else 5618as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5619for as_dir in $PATH 5620do 5621 IFS=$as_save_IFS 5622 test -z "$as_dir" && as_dir=. 5623 for ac_exec_ext in '' $ac_executable_extensions; do 5624 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5625 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 5626 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5627 break 2 5628 fi 5629done 5630 done 5631IFS=$as_save_IFS 5632 5633fi 5634fi 5635STRIP=$ac_cv_prog_STRIP 5636if test -n "$STRIP"; then 5637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 5638$as_echo "$STRIP" >&6; } 5639else 5640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5641$as_echo "no" >&6; } 5642fi 5643 5644 5645fi 5646if test -z "$ac_cv_prog_STRIP"; then 5647 ac_ct_STRIP=$STRIP 5648 # Extract the first word of "strip", so it can be a program name with args. 5649set dummy strip; ac_word=$2 5650{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5651$as_echo_n "checking for $ac_word... " >&6; } 5652if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 5653 $as_echo_n "(cached) " >&6 5654else 5655 if test -n "$ac_ct_STRIP"; then 5656 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 5657else 5658as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5659for as_dir in $PATH 5660do 5661 IFS=$as_save_IFS 5662 test -z "$as_dir" && as_dir=. 5663 for ac_exec_ext in '' $ac_executable_extensions; do 5664 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5665 ac_cv_prog_ac_ct_STRIP="strip" 5666 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5667 break 2 5668 fi 5669done 5670 done 5671IFS=$as_save_IFS 5672 5673fi 5674fi 5675ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 5676if test -n "$ac_ct_STRIP"; then 5677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 5678$as_echo "$ac_ct_STRIP" >&6; } 5679else 5680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5681$as_echo "no" >&6; } 5682fi 5683 5684 if test "x$ac_ct_STRIP" = x; then 5685 STRIP=":" 5686 else 5687 case $cross_compiling:$ac_tool_warned in 5688yes:) 5689{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5690$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5691ac_tool_warned=yes ;; 5692esac 5693 STRIP=$ac_ct_STRIP 5694 fi 5695else 5696 STRIP="$ac_cv_prog_STRIP" 5697fi 5698 5699test -z "$STRIP" && STRIP=: 5700 5701 5702 5703 5704 5705 5706if test -n "$ac_tool_prefix"; then 5707 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 5708set dummy ${ac_tool_prefix}ranlib; ac_word=$2 5709{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5710$as_echo_n "checking for $ac_word... " >&6; } 5711if ${ac_cv_prog_RANLIB+:} false; then : 5712 $as_echo_n "(cached) " >&6 5713else 5714 if test -n "$RANLIB"; then 5715 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 5716else 5717as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5718for as_dir in $PATH 5719do 5720 IFS=$as_save_IFS 5721 test -z "$as_dir" && as_dir=. 5722 for ac_exec_ext in '' $ac_executable_extensions; do 5723 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5724 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 5725 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5726 break 2 5727 fi 5728done 5729 done 5730IFS=$as_save_IFS 5731 5732fi 5733fi 5734RANLIB=$ac_cv_prog_RANLIB 5735if test -n "$RANLIB"; then 5736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 5737$as_echo "$RANLIB" >&6; } 5738else 5739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5740$as_echo "no" >&6; } 5741fi 5742 5743 5744fi 5745if test -z "$ac_cv_prog_RANLIB"; then 5746 ac_ct_RANLIB=$RANLIB 5747 # Extract the first word of "ranlib", so it can be a program name with args. 5748set dummy ranlib; ac_word=$2 5749{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5750$as_echo_n "checking for $ac_word... " >&6; } 5751if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 5752 $as_echo_n "(cached) " >&6 5753else 5754 if test -n "$ac_ct_RANLIB"; then 5755 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 5756else 5757as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5758for as_dir in $PATH 5759do 5760 IFS=$as_save_IFS 5761 test -z "$as_dir" && as_dir=. 5762 for ac_exec_ext in '' $ac_executable_extensions; do 5763 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5764 ac_cv_prog_ac_ct_RANLIB="ranlib" 5765 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5766 break 2 5767 fi 5768done 5769 done 5770IFS=$as_save_IFS 5771 5772fi 5773fi 5774ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 5775if test -n "$ac_ct_RANLIB"; then 5776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 5777$as_echo "$ac_ct_RANLIB" >&6; } 5778else 5779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5780$as_echo "no" >&6; } 5781fi 5782 5783 if test "x$ac_ct_RANLIB" = x; then 5784 RANLIB=":" 5785 else 5786 case $cross_compiling:$ac_tool_warned in 5787yes:) 5788{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5789$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5790ac_tool_warned=yes ;; 5791esac 5792 RANLIB=$ac_ct_RANLIB 5793 fi 5794else 5795 RANLIB="$ac_cv_prog_RANLIB" 5796fi 5797 5798test -z "$RANLIB" && RANLIB=: 5799 5800 5801 5802 5803 5804 5805# Determine commands to create old-style static archives. 5806old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 5807old_postinstall_cmds='chmod 644 $oldlib' 5808old_postuninstall_cmds= 5809 5810if test -n "$RANLIB"; then 5811 case $host_os in 5812 openbsd*) 5813 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 5814 ;; 5815 *) 5816 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 5817 ;; 5818 esac 5819 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 5820fi 5821 5822case $host_os in 5823 darwin*) 5824 lock_old_archive_extraction=yes ;; 5825 *) 5826 lock_old_archive_extraction=no ;; 5827esac 5828 5829 5830 5831 5832 5833 5834 5835 5836 5837 5838 5839 5840 5841 5842 5843 5844 5845 5846 5847 5848 5849 5850 5851 5852 5853 5854 5855 5856 5857 5858 5859 5860 5861 5862 5863 5864 5865 5866 5867# If no C compiler was specified, use CC. 5868LTCC=${LTCC-"$CC"} 5869 5870# If no C compiler flags were specified, use CFLAGS. 5871LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 5872 5873# Allow CC to be a program name with arguments. 5874compiler=$CC 5875 5876 5877# Check for command to grab the raw symbol name followed by C symbol from nm. 5878{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 5879$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 5880if ${lt_cv_sys_global_symbol_pipe+:} false; then : 5881 $as_echo_n "(cached) " >&6 5882else 5883 5884# These are sane defaults that work on at least a few old systems. 5885# [They come from Ultrix. What could be older than Ultrix?!! ;)] 5886 5887# Character class describing NM global symbol codes. 5888symcode='[BCDEGRST]' 5889 5890# Regexp to match symbols that can be accessed directly from C. 5891sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 5892 5893# Define system-specific variables. 5894case $host_os in 5895aix*) 5896 symcode='[BCDT]' 5897 ;; 5898cygwin* | mingw* | pw32* | cegcc*) 5899 symcode='[ABCDGISTW]' 5900 ;; 5901hpux*) 5902 if test "$host_cpu" = ia64; then 5903 symcode='[ABCDEGRST]' 5904 fi 5905 ;; 5906irix* | nonstopux*) 5907 symcode='[BCDEGRST]' 5908 ;; 5909osf*) 5910 symcode='[BCDEGQRST]' 5911 ;; 5912solaris*) 5913 symcode='[BDRT]' 5914 ;; 5915sco3.2v5*) 5916 symcode='[DT]' 5917 ;; 5918sysv4.2uw2*) 5919 symcode='[DT]' 5920 ;; 5921sysv5* | sco5v6* | unixware* | OpenUNIX*) 5922 symcode='[ABDT]' 5923 ;; 5924sysv4) 5925 symcode='[DFNSTU]' 5926 ;; 5927esac 5928 5929# If we're using GNU nm, then use its standard symbol codes. 5930case `$NM -V 2>&1` in 5931*GNU* | *'with BFD'*) 5932 symcode='[ABCDGIRSTW]' ;; 5933esac 5934 5935# Transform an extracted symbol line into a proper C declaration. 5936# Some systems (esp. on ia64) link data and code symbols differently, 5937# so use this general approach. 5938lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 5939 5940# Transform an extracted symbol line into symbol name and symbol address 5941lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" 5942lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'" 5943 5944# Handle CRLF in mingw tool chain 5945opt_cr= 5946case $build_os in 5947mingw*) 5948 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 5949 ;; 5950esac 5951 5952# Try without a prefix underscore, then with it. 5953for ac_symprfx in "" "_"; do 5954 5955 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 5956 symxfrm="\\1 $ac_symprfx\\2 \\2" 5957 5958 # Write the raw and C identifiers. 5959 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 5960 # Fake it for dumpbin and say T for any non-static function 5961 # and D for any global variable. 5962 # Also find C++ and __fastcall symbols from MSVC++, 5963 # which start with @ or ?. 5964 lt_cv_sys_global_symbol_pipe="$AWK '"\ 5965" {last_section=section; section=\$ 3};"\ 5966" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 5967" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 5968" \$ 0!~/External *\|/{next};"\ 5969" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 5970" {if(hide[section]) next};"\ 5971" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ 5972" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ 5973" s[1]~/^[@?]/{print s[1], s[1]; next};"\ 5974" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ 5975" ' prfx=^$ac_symprfx" 5976 else 5977 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 5978 fi 5979 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 5980 5981 # Check to see that the pipe works correctly. 5982 pipe_works=no 5983 5984 rm -f conftest* 5985 cat > conftest.$ac_ext <<_LT_EOF 5986#ifdef __cplusplus 5987extern "C" { 5988#endif 5989char nm_test_var; 5990void nm_test_func(void); 5991void nm_test_func(void){} 5992#ifdef __cplusplus 5993} 5994#endif 5995int main(){nm_test_var='a';nm_test_func();return(0);} 5996_LT_EOF 5997 5998 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 5999 (eval $ac_compile) 2>&5 6000 ac_status=$? 6001 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6002 test $ac_status = 0; }; then 6003 # Now try to grab the symbols. 6004 nlist=conftest.nm 6005 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 6006 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 6007 ac_status=$? 6008 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6009 test $ac_status = 0; } && test -s "$nlist"; then 6010 # Try sorting and uniquifying the output. 6011 if sort "$nlist" | uniq > "$nlist"T; then 6012 mv -f "$nlist"T "$nlist" 6013 else 6014 rm -f "$nlist"T 6015 fi 6016 6017 # Make sure that we snagged all the symbols we need. 6018 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 6019 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 6020 cat <<_LT_EOF > conftest.$ac_ext 6021/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 6022#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE) 6023/* DATA imports from DLLs on WIN32 con't be const, because runtime 6024 relocations are performed -- see ld's documentation on pseudo-relocs. */ 6025# define LT_DLSYM_CONST 6026#elif defined(__osf__) 6027/* This system does not cope well with relocations in const data. */ 6028# define LT_DLSYM_CONST 6029#else 6030# define LT_DLSYM_CONST const 6031#endif 6032 6033#ifdef __cplusplus 6034extern "C" { 6035#endif 6036 6037_LT_EOF 6038 # Now generate the symbol file. 6039 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 6040 6041 cat <<_LT_EOF >> conftest.$ac_ext 6042 6043/* The mapping between symbol names and symbols. */ 6044LT_DLSYM_CONST struct { 6045 const char *name; 6046 void *address; 6047} 6048lt__PROGRAM__LTX_preloaded_symbols[] = 6049{ 6050 { "@PROGRAM@", (void *) 0 }, 6051_LT_EOF 6052 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 6053 cat <<\_LT_EOF >> conftest.$ac_ext 6054 {0, (void *) 0} 6055}; 6056 6057/* This works around a problem in FreeBSD linker */ 6058#ifdef FREEBSD_WORKAROUND 6059static const void *lt_preloaded_setup() { 6060 return lt__PROGRAM__LTX_preloaded_symbols; 6061} 6062#endif 6063 6064#ifdef __cplusplus 6065} 6066#endif 6067_LT_EOF 6068 # Now try linking the two files. 6069 mv conftest.$ac_objext conftstm.$ac_objext 6070 lt_globsym_save_LIBS=$LIBS 6071 lt_globsym_save_CFLAGS=$CFLAGS 6072 LIBS="conftstm.$ac_objext" 6073 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 6074 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 6075 (eval $ac_link) 2>&5 6076 ac_status=$? 6077 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6078 test $ac_status = 0; } && test -s conftest${ac_exeext}; then 6079 pipe_works=yes 6080 fi 6081 LIBS=$lt_globsym_save_LIBS 6082 CFLAGS=$lt_globsym_save_CFLAGS 6083 else 6084 echo "cannot find nm_test_func in $nlist" >&5 6085 fi 6086 else 6087 echo "cannot find nm_test_var in $nlist" >&5 6088 fi 6089 else 6090 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 6091 fi 6092 else 6093 echo "$progname: failed program was:" >&5 6094 cat conftest.$ac_ext >&5 6095 fi 6096 rm -rf conftest* conftst* 6097 6098 # Do not use the global_symbol_pipe unless it works. 6099 if test "$pipe_works" = yes; then 6100 break 6101 else 6102 lt_cv_sys_global_symbol_pipe= 6103 fi 6104done 6105 6106fi 6107 6108if test -z "$lt_cv_sys_global_symbol_pipe"; then 6109 lt_cv_sys_global_symbol_to_cdecl= 6110fi 6111if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 6112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 6113$as_echo "failed" >&6; } 6114else 6115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 6116$as_echo "ok" >&6; } 6117fi 6118 6119# Response file support. 6120if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6121 nm_file_list_spec='@' 6122elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 6123 nm_file_list_spec='@' 6124fi 6125 6126 6127 6128 6129 6130 6131 6132 6133 6134 6135 6136 6137 6138 6139 6140 6141 6142 6143 6144 6145 6146 6147 6148 6149 6150 6151 6152{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 6153$as_echo_n "checking for sysroot... " >&6; } 6154 6155# Check whether --with-sysroot was given. 6156if test "${with_sysroot+set}" = set; then : 6157 withval=$with_sysroot; 6158else 6159 with_sysroot=no 6160fi 6161 6162 6163lt_sysroot= 6164case ${with_sysroot} in #( 6165 yes) 6166 if test "$GCC" = yes; then 6167 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 6168 fi 6169 ;; #( 6170 /*) 6171 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 6172 ;; #( 6173 no|'') 6174 ;; #( 6175 *) 6176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5 6177$as_echo "${with_sysroot}" >&6; } 6178 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 6179 ;; 6180esac 6181 6182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 6183$as_echo "${lt_sysroot:-no}" >&6; } 6184 6185 6186 6187 6188 6189# Check whether --enable-libtool-lock was given. 6190if test "${enable_libtool_lock+set}" = set; then : 6191 enableval=$enable_libtool_lock; 6192fi 6193 6194test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 6195 6196# Some flags need to be propagated to the compiler or linker for good 6197# libtool support. 6198case $host in 6199ia64-*-hpux*) 6200 # Find out which ABI we are using. 6201 echo 'int i;' > conftest.$ac_ext 6202 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6203 (eval $ac_compile) 2>&5 6204 ac_status=$? 6205 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6206 test $ac_status = 0; }; then 6207 case `/usr/bin/file conftest.$ac_objext` in 6208 *ELF-32*) 6209 HPUX_IA64_MODE="32" 6210 ;; 6211 *ELF-64*) 6212 HPUX_IA64_MODE="64" 6213 ;; 6214 esac 6215 fi 6216 rm -rf conftest* 6217 ;; 6218*-*-irix6*) 6219 # Find out which ABI we are using. 6220 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 6221 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6222 (eval $ac_compile) 2>&5 6223 ac_status=$? 6224 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6225 test $ac_status = 0; }; then 6226 if test "$lt_cv_prog_gnu_ld" = yes; then 6227 case `/usr/bin/file conftest.$ac_objext` in 6228 *32-bit*) 6229 LD="${LD-ld} -melf32bsmip" 6230 ;; 6231 *N32*) 6232 LD="${LD-ld} -melf32bmipn32" 6233 ;; 6234 *64-bit*) 6235 LD="${LD-ld} -melf64bmip" 6236 ;; 6237 esac 6238 else 6239 case `/usr/bin/file conftest.$ac_objext` in 6240 *32-bit*) 6241 LD="${LD-ld} -32" 6242 ;; 6243 *N32*) 6244 LD="${LD-ld} -n32" 6245 ;; 6246 *64-bit*) 6247 LD="${LD-ld} -64" 6248 ;; 6249 esac 6250 fi 6251 fi 6252 rm -rf conftest* 6253 ;; 6254 6255x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ 6256s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 6257 # Find out which ABI we are using. 6258 echo 'int i;' > conftest.$ac_ext 6259 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6260 (eval $ac_compile) 2>&5 6261 ac_status=$? 6262 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6263 test $ac_status = 0; }; then 6264 case `/usr/bin/file conftest.o` in 6265 *32-bit*) 6266 case $host in 6267 x86_64-*kfreebsd*-gnu) 6268 LD="${LD-ld} -m elf_i386_fbsd" 6269 ;; 6270 x86_64-*linux*) 6271 LD="${LD-ld} -m elf_i386" 6272 ;; 6273 ppc64-*linux*|powerpc64-*linux*) 6274 LD="${LD-ld} -m elf32ppclinux" 6275 ;; 6276 s390x-*linux*) 6277 LD="${LD-ld} -m elf_s390" 6278 ;; 6279 sparc64-*linux*) 6280 LD="${LD-ld} -m elf32_sparc" 6281 ;; 6282 esac 6283 ;; 6284 *64-bit*) 6285 case $host in 6286 x86_64-*kfreebsd*-gnu) 6287 LD="${LD-ld} -m elf_x86_64_fbsd" 6288 ;; 6289 x86_64-*linux*) 6290 LD="${LD-ld} -m elf_x86_64" 6291 ;; 6292 ppc*-*linux*|powerpc*-*linux*) 6293 LD="${LD-ld} -m elf64ppc" 6294 ;; 6295 s390*-*linux*|s390*-*tpf*) 6296 LD="${LD-ld} -m elf64_s390" 6297 ;; 6298 sparc*-*linux*) 6299 LD="${LD-ld} -m elf64_sparc" 6300 ;; 6301 esac 6302 ;; 6303 esac 6304 fi 6305 rm -rf conftest* 6306 ;; 6307 6308*-*-sco3.2v5*) 6309 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 6310 SAVE_CFLAGS="$CFLAGS" 6311 CFLAGS="$CFLAGS -belf" 6312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 6313$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 6314if ${lt_cv_cc_needs_belf+:} false; then : 6315 $as_echo_n "(cached) " >&6 6316else 6317 ac_ext=c 6318ac_cpp='$CPP $CPPFLAGS' 6319ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6320ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6321ac_compiler_gnu=$ac_cv_c_compiler_gnu 6322 6323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6324/* end confdefs.h. */ 6325 6326int 6327main () 6328{ 6329 6330 ; 6331 return 0; 6332} 6333_ACEOF 6334if ac_fn_c_try_link "$LINENO"; then : 6335 lt_cv_cc_needs_belf=yes 6336else 6337 lt_cv_cc_needs_belf=no 6338fi 6339rm -f core conftest.err conftest.$ac_objext \ 6340 conftest$ac_exeext conftest.$ac_ext 6341 ac_ext=c 6342ac_cpp='$CPP $CPPFLAGS' 6343ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6344ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6345ac_compiler_gnu=$ac_cv_c_compiler_gnu 6346 6347fi 6348{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 6349$as_echo "$lt_cv_cc_needs_belf" >&6; } 6350 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 6351 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 6352 CFLAGS="$SAVE_CFLAGS" 6353 fi 6354 ;; 6355*-*solaris*) 6356 # Find out which ABI we are using. 6357 echo 'int i;' > conftest.$ac_ext 6358 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6359 (eval $ac_compile) 2>&5 6360 ac_status=$? 6361 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6362 test $ac_status = 0; }; then 6363 case `/usr/bin/file conftest.o` in 6364 *64-bit*) 6365 case $lt_cv_prog_gnu_ld in 6366 yes*) 6367 case $host in 6368 i?86-*-solaris*) 6369 LD="${LD-ld} -m elf_x86_64" 6370 ;; 6371 sparc*-*-solaris*) 6372 LD="${LD-ld} -m elf64_sparc" 6373 ;; 6374 esac 6375 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 6376 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 6377 LD="${LD-ld}_sol2" 6378 fi 6379 ;; 6380 *) 6381 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 6382 LD="${LD-ld} -64" 6383 fi 6384 ;; 6385 esac 6386 ;; 6387 esac 6388 fi 6389 rm -rf conftest* 6390 ;; 6391esac 6392 6393need_locks="$enable_libtool_lock" 6394 6395if test -n "$ac_tool_prefix"; then 6396 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 6397set dummy ${ac_tool_prefix}mt; ac_word=$2 6398{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6399$as_echo_n "checking for $ac_word... " >&6; } 6400if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : 6401 $as_echo_n "(cached) " >&6 6402else 6403 if test -n "$MANIFEST_TOOL"; then 6404 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 6405else 6406as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6407for as_dir in $PATH 6408do 6409 IFS=$as_save_IFS 6410 test -z "$as_dir" && as_dir=. 6411 for ac_exec_ext in '' $ac_executable_extensions; do 6412 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6413 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 6414 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6415 break 2 6416 fi 6417done 6418 done 6419IFS=$as_save_IFS 6420 6421fi 6422fi 6423MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 6424if test -n "$MANIFEST_TOOL"; then 6425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 6426$as_echo "$MANIFEST_TOOL" >&6; } 6427else 6428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6429$as_echo "no" >&6; } 6430fi 6431 6432 6433fi 6434if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 6435 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 6436 # Extract the first word of "mt", so it can be a program name with args. 6437set dummy mt; ac_word=$2 6438{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6439$as_echo_n "checking for $ac_word... " >&6; } 6440if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : 6441 $as_echo_n "(cached) " >&6 6442else 6443 if test -n "$ac_ct_MANIFEST_TOOL"; then 6444 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 6445else 6446as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6447for as_dir in $PATH 6448do 6449 IFS=$as_save_IFS 6450 test -z "$as_dir" && as_dir=. 6451 for ac_exec_ext in '' $ac_executable_extensions; do 6452 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6453 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 6454 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6455 break 2 6456 fi 6457done 6458 done 6459IFS=$as_save_IFS 6460 6461fi 6462fi 6463ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 6464if test -n "$ac_ct_MANIFEST_TOOL"; then 6465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 6466$as_echo "$ac_ct_MANIFEST_TOOL" >&6; } 6467else 6468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6469$as_echo "no" >&6; } 6470fi 6471 6472 if test "x$ac_ct_MANIFEST_TOOL" = x; then 6473 MANIFEST_TOOL=":" 6474 else 6475 case $cross_compiling:$ac_tool_warned in 6476yes:) 6477{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6478$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6479ac_tool_warned=yes ;; 6480esac 6481 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 6482 fi 6483else 6484 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 6485fi 6486 6487test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 6488{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 6489$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 6490if ${lt_cv_path_mainfest_tool+:} false; then : 6491 $as_echo_n "(cached) " >&6 6492else 6493 lt_cv_path_mainfest_tool=no 6494 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 6495 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 6496 cat conftest.err >&5 6497 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 6498 lt_cv_path_mainfest_tool=yes 6499 fi 6500 rm -f conftest* 6501fi 6502{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 6503$as_echo "$lt_cv_path_mainfest_tool" >&6; } 6504if test "x$lt_cv_path_mainfest_tool" != xyes; then 6505 MANIFEST_TOOL=: 6506fi 6507 6508 6509 6510 6511 6512 6513 case $host_os in 6514 rhapsody* | darwin*) 6515 if test -n "$ac_tool_prefix"; then 6516 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 6517set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 6518{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6519$as_echo_n "checking for $ac_word... " >&6; } 6520if ${ac_cv_prog_DSYMUTIL+:} false; then : 6521 $as_echo_n "(cached) " >&6 6522else 6523 if test -n "$DSYMUTIL"; then 6524 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 6525else 6526as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6527for as_dir in $PATH 6528do 6529 IFS=$as_save_IFS 6530 test -z "$as_dir" && as_dir=. 6531 for ac_exec_ext in '' $ac_executable_extensions; do 6532 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6533 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 6534 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6535 break 2 6536 fi 6537done 6538 done 6539IFS=$as_save_IFS 6540 6541fi 6542fi 6543DSYMUTIL=$ac_cv_prog_DSYMUTIL 6544if test -n "$DSYMUTIL"; then 6545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 6546$as_echo "$DSYMUTIL" >&6; } 6547else 6548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6549$as_echo "no" >&6; } 6550fi 6551 6552 6553fi 6554if test -z "$ac_cv_prog_DSYMUTIL"; then 6555 ac_ct_DSYMUTIL=$DSYMUTIL 6556 # Extract the first word of "dsymutil", so it can be a program name with args. 6557set dummy dsymutil; ac_word=$2 6558{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6559$as_echo_n "checking for $ac_word... " >&6; } 6560if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 6561 $as_echo_n "(cached) " >&6 6562else 6563 if test -n "$ac_ct_DSYMUTIL"; then 6564 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 6565else 6566as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6567for as_dir in $PATH 6568do 6569 IFS=$as_save_IFS 6570 test -z "$as_dir" && as_dir=. 6571 for ac_exec_ext in '' $ac_executable_extensions; do 6572 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6573 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 6574 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6575 break 2 6576 fi 6577done 6578 done 6579IFS=$as_save_IFS 6580 6581fi 6582fi 6583ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 6584if test -n "$ac_ct_DSYMUTIL"; then 6585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 6586$as_echo "$ac_ct_DSYMUTIL" >&6; } 6587else 6588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6589$as_echo "no" >&6; } 6590fi 6591 6592 if test "x$ac_ct_DSYMUTIL" = x; then 6593 DSYMUTIL=":" 6594 else 6595 case $cross_compiling:$ac_tool_warned in 6596yes:) 6597{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6598$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6599ac_tool_warned=yes ;; 6600esac 6601 DSYMUTIL=$ac_ct_DSYMUTIL 6602 fi 6603else 6604 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 6605fi 6606 6607 if test -n "$ac_tool_prefix"; then 6608 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 6609set dummy ${ac_tool_prefix}nmedit; ac_word=$2 6610{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6611$as_echo_n "checking for $ac_word... " >&6; } 6612if ${ac_cv_prog_NMEDIT+:} false; then : 6613 $as_echo_n "(cached) " >&6 6614else 6615 if test -n "$NMEDIT"; then 6616 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 6617else 6618as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6619for as_dir in $PATH 6620do 6621 IFS=$as_save_IFS 6622 test -z "$as_dir" && as_dir=. 6623 for ac_exec_ext in '' $ac_executable_extensions; do 6624 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6625 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 6626 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6627 break 2 6628 fi 6629done 6630 done 6631IFS=$as_save_IFS 6632 6633fi 6634fi 6635NMEDIT=$ac_cv_prog_NMEDIT 6636if test -n "$NMEDIT"; then 6637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 6638$as_echo "$NMEDIT" >&6; } 6639else 6640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6641$as_echo "no" >&6; } 6642fi 6643 6644 6645fi 6646if test -z "$ac_cv_prog_NMEDIT"; then 6647 ac_ct_NMEDIT=$NMEDIT 6648 # Extract the first word of "nmedit", so it can be a program name with args. 6649set dummy nmedit; ac_word=$2 6650{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6651$as_echo_n "checking for $ac_word... " >&6; } 6652if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 6653 $as_echo_n "(cached) " >&6 6654else 6655 if test -n "$ac_ct_NMEDIT"; then 6656 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 6657else 6658as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6659for as_dir in $PATH 6660do 6661 IFS=$as_save_IFS 6662 test -z "$as_dir" && as_dir=. 6663 for ac_exec_ext in '' $ac_executable_extensions; do 6664 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6665 ac_cv_prog_ac_ct_NMEDIT="nmedit" 6666 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6667 break 2 6668 fi 6669done 6670 done 6671IFS=$as_save_IFS 6672 6673fi 6674fi 6675ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 6676if test -n "$ac_ct_NMEDIT"; then 6677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 6678$as_echo "$ac_ct_NMEDIT" >&6; } 6679else 6680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6681$as_echo "no" >&6; } 6682fi 6683 6684 if test "x$ac_ct_NMEDIT" = x; then 6685 NMEDIT=":" 6686 else 6687 case $cross_compiling:$ac_tool_warned in 6688yes:) 6689{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6690$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6691ac_tool_warned=yes ;; 6692esac 6693 NMEDIT=$ac_ct_NMEDIT 6694 fi 6695else 6696 NMEDIT="$ac_cv_prog_NMEDIT" 6697fi 6698 6699 if test -n "$ac_tool_prefix"; then 6700 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 6701set dummy ${ac_tool_prefix}lipo; ac_word=$2 6702{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6703$as_echo_n "checking for $ac_word... " >&6; } 6704if ${ac_cv_prog_LIPO+:} false; then : 6705 $as_echo_n "(cached) " >&6 6706else 6707 if test -n "$LIPO"; then 6708 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 6709else 6710as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6711for as_dir in $PATH 6712do 6713 IFS=$as_save_IFS 6714 test -z "$as_dir" && as_dir=. 6715 for ac_exec_ext in '' $ac_executable_extensions; do 6716 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6717 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 6718 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6719 break 2 6720 fi 6721done 6722 done 6723IFS=$as_save_IFS 6724 6725fi 6726fi 6727LIPO=$ac_cv_prog_LIPO 6728if test -n "$LIPO"; then 6729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 6730$as_echo "$LIPO" >&6; } 6731else 6732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6733$as_echo "no" >&6; } 6734fi 6735 6736 6737fi 6738if test -z "$ac_cv_prog_LIPO"; then 6739 ac_ct_LIPO=$LIPO 6740 # Extract the first word of "lipo", so it can be a program name with args. 6741set dummy lipo; ac_word=$2 6742{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6743$as_echo_n "checking for $ac_word... " >&6; } 6744if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 6745 $as_echo_n "(cached) " >&6 6746else 6747 if test -n "$ac_ct_LIPO"; then 6748 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 6749else 6750as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6751for as_dir in $PATH 6752do 6753 IFS=$as_save_IFS 6754 test -z "$as_dir" && as_dir=. 6755 for ac_exec_ext in '' $ac_executable_extensions; do 6756 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6757 ac_cv_prog_ac_ct_LIPO="lipo" 6758 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6759 break 2 6760 fi 6761done 6762 done 6763IFS=$as_save_IFS 6764 6765fi 6766fi 6767ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 6768if test -n "$ac_ct_LIPO"; then 6769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 6770$as_echo "$ac_ct_LIPO" >&6; } 6771else 6772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6773$as_echo "no" >&6; } 6774fi 6775 6776 if test "x$ac_ct_LIPO" = x; then 6777 LIPO=":" 6778 else 6779 case $cross_compiling:$ac_tool_warned in 6780yes:) 6781{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6782$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6783ac_tool_warned=yes ;; 6784esac 6785 LIPO=$ac_ct_LIPO 6786 fi 6787else 6788 LIPO="$ac_cv_prog_LIPO" 6789fi 6790 6791 if test -n "$ac_tool_prefix"; then 6792 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 6793set dummy ${ac_tool_prefix}otool; ac_word=$2 6794{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6795$as_echo_n "checking for $ac_word... " >&6; } 6796if ${ac_cv_prog_OTOOL+:} false; then : 6797 $as_echo_n "(cached) " >&6 6798else 6799 if test -n "$OTOOL"; then 6800 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 6801else 6802as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6803for as_dir in $PATH 6804do 6805 IFS=$as_save_IFS 6806 test -z "$as_dir" && as_dir=. 6807 for ac_exec_ext in '' $ac_executable_extensions; do 6808 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6809 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 6810 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6811 break 2 6812 fi 6813done 6814 done 6815IFS=$as_save_IFS 6816 6817fi 6818fi 6819OTOOL=$ac_cv_prog_OTOOL 6820if test -n "$OTOOL"; then 6821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 6822$as_echo "$OTOOL" >&6; } 6823else 6824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6825$as_echo "no" >&6; } 6826fi 6827 6828 6829fi 6830if test -z "$ac_cv_prog_OTOOL"; then 6831 ac_ct_OTOOL=$OTOOL 6832 # Extract the first word of "otool", so it can be a program name with args. 6833set dummy otool; ac_word=$2 6834{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6835$as_echo_n "checking for $ac_word... " >&6; } 6836if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 6837 $as_echo_n "(cached) " >&6 6838else 6839 if test -n "$ac_ct_OTOOL"; then 6840 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 6841else 6842as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6843for as_dir in $PATH 6844do 6845 IFS=$as_save_IFS 6846 test -z "$as_dir" && as_dir=. 6847 for ac_exec_ext in '' $ac_executable_extensions; do 6848 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6849 ac_cv_prog_ac_ct_OTOOL="otool" 6850 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6851 break 2 6852 fi 6853done 6854 done 6855IFS=$as_save_IFS 6856 6857fi 6858fi 6859ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 6860if test -n "$ac_ct_OTOOL"; then 6861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 6862$as_echo "$ac_ct_OTOOL" >&6; } 6863else 6864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6865$as_echo "no" >&6; } 6866fi 6867 6868 if test "x$ac_ct_OTOOL" = x; then 6869 OTOOL=":" 6870 else 6871 case $cross_compiling:$ac_tool_warned in 6872yes:) 6873{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6874$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6875ac_tool_warned=yes ;; 6876esac 6877 OTOOL=$ac_ct_OTOOL 6878 fi 6879else 6880 OTOOL="$ac_cv_prog_OTOOL" 6881fi 6882 6883 if test -n "$ac_tool_prefix"; then 6884 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 6885set dummy ${ac_tool_prefix}otool64; ac_word=$2 6886{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6887$as_echo_n "checking for $ac_word... " >&6; } 6888if ${ac_cv_prog_OTOOL64+:} false; then : 6889 $as_echo_n "(cached) " >&6 6890else 6891 if test -n "$OTOOL64"; then 6892 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 6893else 6894as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6895for as_dir in $PATH 6896do 6897 IFS=$as_save_IFS 6898 test -z "$as_dir" && as_dir=. 6899 for ac_exec_ext in '' $ac_executable_extensions; do 6900 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6901 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 6902 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6903 break 2 6904 fi 6905done 6906 done 6907IFS=$as_save_IFS 6908 6909fi 6910fi 6911OTOOL64=$ac_cv_prog_OTOOL64 6912if test -n "$OTOOL64"; then 6913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 6914$as_echo "$OTOOL64" >&6; } 6915else 6916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6917$as_echo "no" >&6; } 6918fi 6919 6920 6921fi 6922if test -z "$ac_cv_prog_OTOOL64"; then 6923 ac_ct_OTOOL64=$OTOOL64 6924 # Extract the first word of "otool64", so it can be a program name with args. 6925set dummy otool64; ac_word=$2 6926{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6927$as_echo_n "checking for $ac_word... " >&6; } 6928if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 6929 $as_echo_n "(cached) " >&6 6930else 6931 if test -n "$ac_ct_OTOOL64"; then 6932 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 6933else 6934as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6935for as_dir in $PATH 6936do 6937 IFS=$as_save_IFS 6938 test -z "$as_dir" && as_dir=. 6939 for ac_exec_ext in '' $ac_executable_extensions; do 6940 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6941 ac_cv_prog_ac_ct_OTOOL64="otool64" 6942 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6943 break 2 6944 fi 6945done 6946 done 6947IFS=$as_save_IFS 6948 6949fi 6950fi 6951ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 6952if test -n "$ac_ct_OTOOL64"; then 6953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 6954$as_echo "$ac_ct_OTOOL64" >&6; } 6955else 6956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6957$as_echo "no" >&6; } 6958fi 6959 6960 if test "x$ac_ct_OTOOL64" = x; then 6961 OTOOL64=":" 6962 else 6963 case $cross_compiling:$ac_tool_warned in 6964yes:) 6965{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6966$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6967ac_tool_warned=yes ;; 6968esac 6969 OTOOL64=$ac_ct_OTOOL64 6970 fi 6971else 6972 OTOOL64="$ac_cv_prog_OTOOL64" 6973fi 6974 6975 6976 6977 6978 6979 6980 6981 6982 6983 6984 6985 6986 6987 6988 6989 6990 6991 6992 6993 6994 6995 6996 6997 6998 6999 7000 7001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 7002$as_echo_n "checking for -single_module linker flag... " >&6; } 7003if ${lt_cv_apple_cc_single_mod+:} false; then : 7004 $as_echo_n "(cached) " >&6 7005else 7006 lt_cv_apple_cc_single_mod=no 7007 if test -z "${LT_MULTI_MODULE}"; then 7008 # By default we will add the -single_module flag. You can override 7009 # by either setting the environment variable LT_MULTI_MODULE 7010 # non-empty at configure time, or by adding -multi_module to the 7011 # link flags. 7012 rm -rf libconftest.dylib* 7013 echo "int foo(void){return 1;}" > conftest.c 7014 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7015-dynamiclib -Wl,-single_module conftest.c" >&5 7016 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7017 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 7018 _lt_result=$? 7019 # If there is a non-empty error log, and "single_module" 7020 # appears in it, assume the flag caused a linker warning 7021 if test -s conftest.err && $GREP single_module conftest.err; then 7022 cat conftest.err >&5 7023 # Otherwise, if the output was created with a 0 exit code from 7024 # the compiler, it worked. 7025 elif test -f libconftest.dylib && test $_lt_result -eq 0; then 7026 lt_cv_apple_cc_single_mod=yes 7027 else 7028 cat conftest.err >&5 7029 fi 7030 rm -rf libconftest.dylib* 7031 rm -f conftest.* 7032 fi 7033fi 7034{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 7035$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 7036 7037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 7038$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 7039if ${lt_cv_ld_exported_symbols_list+:} false; then : 7040 $as_echo_n "(cached) " >&6 7041else 7042 lt_cv_ld_exported_symbols_list=no 7043 save_LDFLAGS=$LDFLAGS 7044 echo "_main" > conftest.sym 7045 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 7046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7047/* end confdefs.h. */ 7048 7049int 7050main () 7051{ 7052 7053 ; 7054 return 0; 7055} 7056_ACEOF 7057if ac_fn_c_try_link "$LINENO"; then : 7058 lt_cv_ld_exported_symbols_list=yes 7059else 7060 lt_cv_ld_exported_symbols_list=no 7061fi 7062rm -f core conftest.err conftest.$ac_objext \ 7063 conftest$ac_exeext conftest.$ac_ext 7064 LDFLAGS="$save_LDFLAGS" 7065 7066fi 7067{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 7068$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 7069 7070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 7071$as_echo_n "checking for -force_load linker flag... " >&6; } 7072if ${lt_cv_ld_force_load+:} false; then : 7073 $as_echo_n "(cached) " >&6 7074else 7075 lt_cv_ld_force_load=no 7076 cat > conftest.c << _LT_EOF 7077int forced_loaded() { return 2;} 7078_LT_EOF 7079 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 7080 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 7081 echo "$AR cru libconftest.a conftest.o" >&5 7082 $AR cru libconftest.a conftest.o 2>&5 7083 echo "$RANLIB libconftest.a" >&5 7084 $RANLIB libconftest.a 2>&5 7085 cat > conftest.c << _LT_EOF 7086int main() { return 0;} 7087_LT_EOF 7088 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 7089 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 7090 _lt_result=$? 7091 if test -s conftest.err && $GREP force_load conftest.err; then 7092 cat conftest.err >&5 7093 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then 7094 lt_cv_ld_force_load=yes 7095 else 7096 cat conftest.err >&5 7097 fi 7098 rm -f conftest.err libconftest.a conftest conftest.c 7099 rm -rf conftest.dSYM 7100 7101fi 7102{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 7103$as_echo "$lt_cv_ld_force_load" >&6; } 7104 case $host_os in 7105 rhapsody* | darwin1.[012]) 7106 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; 7107 darwin1.*) 7108 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 7109 darwin*) # darwin 5.x on 7110 # if running on 10.5 or later, the deployment target defaults 7111 # to the OS version, if on x86, and 10.4, the deployment 7112 # target defaults to 10.4. Don't you love it? 7113 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 7114 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 7115 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 7116 10.[012]*) 7117 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 7118 10.*) 7119 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 7120 esac 7121 ;; 7122 esac 7123 if test "$lt_cv_apple_cc_single_mod" = "yes"; then 7124 _lt_dar_single_mod='$single_module' 7125 fi 7126 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then 7127 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' 7128 else 7129 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' 7130 fi 7131 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then 7132 _lt_dsymutil='~$DSYMUTIL $lib || :' 7133 else 7134 _lt_dsymutil= 7135 fi 7136 ;; 7137 esac 7138 7139ac_ext=c 7140ac_cpp='$CPP $CPPFLAGS' 7141ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7142ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7143ac_compiler_gnu=$ac_cv_c_compiler_gnu 7144{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 7145$as_echo_n "checking how to run the C preprocessor... " >&6; } 7146# On Suns, sometimes $CPP names a directory. 7147if test -n "$CPP" && test -d "$CPP"; then 7148 CPP= 7149fi 7150if test -z "$CPP"; then 7151 if ${ac_cv_prog_CPP+:} false; then : 7152 $as_echo_n "(cached) " >&6 7153else 7154 # Double quotes because CPP needs to be expanded 7155 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 7156 do 7157 ac_preproc_ok=false 7158for ac_c_preproc_warn_flag in '' yes 7159do 7160 # Use a header file that comes with gcc, so configuring glibc 7161 # with a fresh cross-compiler works. 7162 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7163 # <limits.h> exists even on freestanding compilers. 7164 # On the NeXT, cc -E runs the code through the compiler's parser, 7165 # not just through cpp. "Syntax error" is here to catch this case. 7166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7167/* end confdefs.h. */ 7168#ifdef __STDC__ 7169# include <limits.h> 7170#else 7171# include <assert.h> 7172#endif 7173 Syntax error 7174_ACEOF 7175if ac_fn_c_try_cpp "$LINENO"; then : 7176 7177else 7178 # Broken: fails on valid input. 7179continue 7180fi 7181rm -f conftest.err conftest.i conftest.$ac_ext 7182 7183 # OK, works on sane cases. Now check whether nonexistent headers 7184 # can be detected and how. 7185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7186/* end confdefs.h. */ 7187#include <ac_nonexistent.h> 7188_ACEOF 7189if ac_fn_c_try_cpp "$LINENO"; then : 7190 # Broken: success on invalid input. 7191continue 7192else 7193 # Passes both tests. 7194ac_preproc_ok=: 7195break 7196fi 7197rm -f conftest.err conftest.i conftest.$ac_ext 7198 7199done 7200# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 7201rm -f conftest.i conftest.err conftest.$ac_ext 7202if $ac_preproc_ok; then : 7203 break 7204fi 7205 7206 done 7207 ac_cv_prog_CPP=$CPP 7208 7209fi 7210 CPP=$ac_cv_prog_CPP 7211else 7212 ac_cv_prog_CPP=$CPP 7213fi 7214{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 7215$as_echo "$CPP" >&6; } 7216ac_preproc_ok=false 7217for ac_c_preproc_warn_flag in '' yes 7218do 7219 # Use a header file that comes with gcc, so configuring glibc 7220 # with a fresh cross-compiler works. 7221 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7222 # <limits.h> exists even on freestanding compilers. 7223 # On the NeXT, cc -E runs the code through the compiler's parser, 7224 # not just through cpp. "Syntax error" is here to catch this case. 7225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7226/* end confdefs.h. */ 7227#ifdef __STDC__ 7228# include <limits.h> 7229#else 7230# include <assert.h> 7231#endif 7232 Syntax error 7233_ACEOF 7234if ac_fn_c_try_cpp "$LINENO"; then : 7235 7236else 7237 # Broken: fails on valid input. 7238continue 7239fi 7240rm -f conftest.err conftest.i conftest.$ac_ext 7241 7242 # OK, works on sane cases. Now check whether nonexistent headers 7243 # can be detected and how. 7244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7245/* end confdefs.h. */ 7246#include <ac_nonexistent.h> 7247_ACEOF 7248if ac_fn_c_try_cpp "$LINENO"; then : 7249 # Broken: success on invalid input. 7250continue 7251else 7252 # Passes both tests. 7253ac_preproc_ok=: 7254break 7255fi 7256rm -f conftest.err conftest.i conftest.$ac_ext 7257 7258done 7259# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 7260rm -f conftest.i conftest.err conftest.$ac_ext 7261if $ac_preproc_ok; then : 7262 7263else 7264 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 7265$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 7266as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 7267See \`config.log' for more details" "$LINENO" 5; } 7268fi 7269 7270ac_ext=c 7271ac_cpp='$CPP $CPPFLAGS' 7272ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7273ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7274ac_compiler_gnu=$ac_cv_c_compiler_gnu 7275 7276 7277{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 7278$as_echo_n "checking for ANSI C header files... " >&6; } 7279if ${ac_cv_header_stdc+:} false; then : 7280 $as_echo_n "(cached) " >&6 7281else 7282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7283/* end confdefs.h. */ 7284#include <stdlib.h> 7285#include <stdarg.h> 7286#include <string.h> 7287#include <float.h> 7288 7289int 7290main () 7291{ 7292 7293 ; 7294 return 0; 7295} 7296_ACEOF 7297if ac_fn_c_try_compile "$LINENO"; then : 7298 ac_cv_header_stdc=yes 7299else 7300 ac_cv_header_stdc=no 7301fi 7302rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7303 7304if test $ac_cv_header_stdc = yes; then 7305 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 7306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7307/* end confdefs.h. */ 7308#include <string.h> 7309 7310_ACEOF 7311if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7312 $EGREP "memchr" >/dev/null 2>&1; then : 7313 7314else 7315 ac_cv_header_stdc=no 7316fi 7317rm -f conftest* 7318 7319fi 7320 7321if test $ac_cv_header_stdc = yes; then 7322 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 7323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7324/* end confdefs.h. */ 7325#include <stdlib.h> 7326 7327_ACEOF 7328if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7329 $EGREP "free" >/dev/null 2>&1; then : 7330 7331else 7332 ac_cv_header_stdc=no 7333fi 7334rm -f conftest* 7335 7336fi 7337 7338if test $ac_cv_header_stdc = yes; then 7339 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 7340 if test "$cross_compiling" = yes; then : 7341 : 7342else 7343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7344/* end confdefs.h. */ 7345#include <ctype.h> 7346#include <stdlib.h> 7347#if ((' ' & 0x0FF) == 0x020) 7348# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 7349# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 7350#else 7351# define ISLOWER(c) \ 7352 (('a' <= (c) && (c) <= 'i') \ 7353 || ('j' <= (c) && (c) <= 'r') \ 7354 || ('s' <= (c) && (c) <= 'z')) 7355# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 7356#endif 7357 7358#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 7359int 7360main () 7361{ 7362 int i; 7363 for (i = 0; i < 256; i++) 7364 if (XOR (islower (i), ISLOWER (i)) 7365 || toupper (i) != TOUPPER (i)) 7366 return 2; 7367 return 0; 7368} 7369_ACEOF 7370if ac_fn_c_try_run "$LINENO"; then : 7371 7372else 7373 ac_cv_header_stdc=no 7374fi 7375rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 7376 conftest.$ac_objext conftest.beam conftest.$ac_ext 7377fi 7378 7379fi 7380fi 7381{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 7382$as_echo "$ac_cv_header_stdc" >&6; } 7383if test $ac_cv_header_stdc = yes; then 7384 7385$as_echo "#define STDC_HEADERS 1" >>confdefs.h 7386 7387fi 7388 7389# On IRIX 5.3, sys/types and inttypes.h are conflicting. 7390for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 7391 inttypes.h stdint.h unistd.h 7392do : 7393 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 7394ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 7395" 7396if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 7397 cat >>confdefs.h <<_ACEOF 7398#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 7399_ACEOF 7400 7401fi 7402 7403done 7404 7405 7406for ac_header in dlfcn.h 7407do : 7408 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 7409" 7410if test "x$ac_cv_header_dlfcn_h" = xyes; then : 7411 cat >>confdefs.h <<_ACEOF 7412#define HAVE_DLFCN_H 1 7413_ACEOF 7414 7415fi 7416 7417done 7418 7419 7420 7421 7422 7423# Set options 7424 7425 7426 7427 enable_dlopen=no 7428 7429 7430 enable_win32_dll=no 7431 7432 7433 # Check whether --enable-shared was given. 7434if test "${enable_shared+set}" = set; then : 7435 enableval=$enable_shared; p=${PACKAGE-default} 7436 case $enableval in 7437 yes) enable_shared=yes ;; 7438 no) enable_shared=no ;; 7439 *) 7440 enable_shared=no 7441 # Look at the argument we got. We use all the common list separators. 7442 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7443 for pkg in $enableval; do 7444 IFS="$lt_save_ifs" 7445 if test "X$pkg" = "X$p"; then 7446 enable_shared=yes 7447 fi 7448 done 7449 IFS="$lt_save_ifs" 7450 ;; 7451 esac 7452else 7453 enable_shared=yes 7454fi 7455 7456 7457 7458 7459 7460 7461 7462 7463 7464 # Check whether --enable-static was given. 7465if test "${enable_static+set}" = set; then : 7466 enableval=$enable_static; p=${PACKAGE-default} 7467 case $enableval in 7468 yes) enable_static=yes ;; 7469 no) enable_static=no ;; 7470 *) 7471 enable_static=no 7472 # Look at the argument we got. We use all the common list separators. 7473 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7474 for pkg in $enableval; do 7475 IFS="$lt_save_ifs" 7476 if test "X$pkg" = "X$p"; then 7477 enable_static=yes 7478 fi 7479 done 7480 IFS="$lt_save_ifs" 7481 ;; 7482 esac 7483else 7484 enable_static=yes 7485fi 7486 7487 7488 7489 7490 7491 7492 7493 7494 7495 7496# Check whether --with-pic was given. 7497if test "${with_pic+set}" = set; then : 7498 withval=$with_pic; lt_p=${PACKAGE-default} 7499 case $withval in 7500 yes|no) pic_mode=$withval ;; 7501 *) 7502 pic_mode=default 7503 # Look at the argument we got. We use all the common list separators. 7504 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7505 for lt_pkg in $withval; do 7506 IFS="$lt_save_ifs" 7507 if test "X$lt_pkg" = "X$lt_p"; then 7508 pic_mode=yes 7509 fi 7510 done 7511 IFS="$lt_save_ifs" 7512 ;; 7513 esac 7514else 7515 pic_mode=default 7516fi 7517 7518 7519test -z "$pic_mode" && pic_mode=default 7520 7521 7522 7523 7524 7525 7526 7527 # Check whether --enable-fast-install was given. 7528if test "${enable_fast_install+set}" = set; then : 7529 enableval=$enable_fast_install; p=${PACKAGE-default} 7530 case $enableval in 7531 yes) enable_fast_install=yes ;; 7532 no) enable_fast_install=no ;; 7533 *) 7534 enable_fast_install=no 7535 # Look at the argument we got. We use all the common list separators. 7536 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7537 for pkg in $enableval; do 7538 IFS="$lt_save_ifs" 7539 if test "X$pkg" = "X$p"; then 7540 enable_fast_install=yes 7541 fi 7542 done 7543 IFS="$lt_save_ifs" 7544 ;; 7545 esac 7546else 7547 enable_fast_install=yes 7548fi 7549 7550 7551 7552 7553 7554 7555 7556 7557 7558 7559 7560# This can be used to rebuild libtool when needed 7561LIBTOOL_DEPS="$ltmain" 7562 7563# Always use our own libtool. 7564LIBTOOL='$(SHELL) $(top_builddir)/libtool' 7565 7566 7567 7568 7569 7570 7571 7572 7573 7574 7575 7576 7577 7578 7579 7580 7581 7582 7583 7584 7585 7586 7587 7588 7589 7590 7591 7592 7593 7594 7595test -z "$LN_S" && LN_S="ln -s" 7596 7597 7598 7599 7600 7601 7602 7603 7604 7605 7606 7607 7608 7609 7610if test -n "${ZSH_VERSION+set}" ; then 7611 setopt NO_GLOB_SUBST 7612fi 7613 7614{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 7615$as_echo_n "checking for objdir... " >&6; } 7616if ${lt_cv_objdir+:} false; then : 7617 $as_echo_n "(cached) " >&6 7618else 7619 rm -f .libs 2>/dev/null 7620mkdir .libs 2>/dev/null 7621if test -d .libs; then 7622 lt_cv_objdir=.libs 7623else 7624 # MS-DOS does not allow filenames that begin with a dot. 7625 lt_cv_objdir=_libs 7626fi 7627rmdir .libs 2>/dev/null 7628fi 7629{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 7630$as_echo "$lt_cv_objdir" >&6; } 7631objdir=$lt_cv_objdir 7632 7633 7634 7635 7636 7637cat >>confdefs.h <<_ACEOF 7638#define LT_OBJDIR "$lt_cv_objdir/" 7639_ACEOF 7640 7641 7642 7643 7644case $host_os in 7645aix3*) 7646 # AIX sometimes has problems with the GCC collect2 program. For some 7647 # reason, if we set the COLLECT_NAMES environment variable, the problems 7648 # vanish in a puff of smoke. 7649 if test "X${COLLECT_NAMES+set}" != Xset; then 7650 COLLECT_NAMES= 7651 export COLLECT_NAMES 7652 fi 7653 ;; 7654esac 7655 7656# Global variables: 7657ofile=libtool 7658can_build_shared=yes 7659 7660# All known linkers require a `.a' archive for static linking (except MSVC, 7661# which needs '.lib'). 7662libext=a 7663 7664with_gnu_ld="$lt_cv_prog_gnu_ld" 7665 7666old_CC="$CC" 7667old_CFLAGS="$CFLAGS" 7668 7669# Set sane defaults for various variables 7670test -z "$CC" && CC=cc 7671test -z "$LTCC" && LTCC=$CC 7672test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 7673test -z "$LD" && LD=ld 7674test -z "$ac_objext" && ac_objext=o 7675 7676for cc_temp in $compiler""; do 7677 case $cc_temp in 7678 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 7679 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 7680 \-*) ;; 7681 *) break;; 7682 esac 7683done 7684cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 7685 7686 7687# Only perform the check for file, if the check method requires it 7688test -z "$MAGIC_CMD" && MAGIC_CMD=file 7689case $deplibs_check_method in 7690file_magic*) 7691 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 7692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 7693$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 7694if ${lt_cv_path_MAGIC_CMD+:} false; then : 7695 $as_echo_n "(cached) " >&6 7696else 7697 case $MAGIC_CMD in 7698[\\/*] | ?:[\\/]*) 7699 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 7700 ;; 7701*) 7702 lt_save_MAGIC_CMD="$MAGIC_CMD" 7703 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 7704 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 7705 for ac_dir in $ac_dummy; do 7706 IFS="$lt_save_ifs" 7707 test -z "$ac_dir" && ac_dir=. 7708 if test -f $ac_dir/${ac_tool_prefix}file; then 7709 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 7710 if test -n "$file_magic_test_file"; then 7711 case $deplibs_check_method in 7712 "file_magic "*) 7713 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 7714 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7715 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 7716 $EGREP "$file_magic_regex" > /dev/null; then 7717 : 7718 else 7719 cat <<_LT_EOF 1>&2 7720 7721*** Warning: the command libtool uses to detect shared libraries, 7722*** $file_magic_cmd, produces output that libtool cannot recognize. 7723*** The result is that libtool may fail to recognize shared libraries 7724*** as such. This will affect the creation of libtool libraries that 7725*** depend on shared libraries, but programs linked with such libtool 7726*** libraries will work regardless of this problem. Nevertheless, you 7727*** may want to report the problem to your system manager and/or to 7728*** bug-libtool@gnu.org 7729 7730_LT_EOF 7731 fi ;; 7732 esac 7733 fi 7734 break 7735 fi 7736 done 7737 IFS="$lt_save_ifs" 7738 MAGIC_CMD="$lt_save_MAGIC_CMD" 7739 ;; 7740esac 7741fi 7742 7743MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7744if test -n "$MAGIC_CMD"; then 7745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 7746$as_echo "$MAGIC_CMD" >&6; } 7747else 7748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7749$as_echo "no" >&6; } 7750fi 7751 7752 7753 7754 7755 7756if test -z "$lt_cv_path_MAGIC_CMD"; then 7757 if test -n "$ac_tool_prefix"; then 7758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 7759$as_echo_n "checking for file... " >&6; } 7760if ${lt_cv_path_MAGIC_CMD+:} false; then : 7761 $as_echo_n "(cached) " >&6 7762else 7763 case $MAGIC_CMD in 7764[\\/*] | ?:[\\/]*) 7765 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 7766 ;; 7767*) 7768 lt_save_MAGIC_CMD="$MAGIC_CMD" 7769 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 7770 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 7771 for ac_dir in $ac_dummy; do 7772 IFS="$lt_save_ifs" 7773 test -z "$ac_dir" && ac_dir=. 7774 if test -f $ac_dir/file; then 7775 lt_cv_path_MAGIC_CMD="$ac_dir/file" 7776 if test -n "$file_magic_test_file"; then 7777 case $deplibs_check_method in 7778 "file_magic "*) 7779 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 7780 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7781 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 7782 $EGREP "$file_magic_regex" > /dev/null; then 7783 : 7784 else 7785 cat <<_LT_EOF 1>&2 7786 7787*** Warning: the command libtool uses to detect shared libraries, 7788*** $file_magic_cmd, produces output that libtool cannot recognize. 7789*** The result is that libtool may fail to recognize shared libraries 7790*** as such. This will affect the creation of libtool libraries that 7791*** depend on shared libraries, but programs linked with such libtool 7792*** libraries will work regardless of this problem. Nevertheless, you 7793*** may want to report the problem to your system manager and/or to 7794*** bug-libtool@gnu.org 7795 7796_LT_EOF 7797 fi ;; 7798 esac 7799 fi 7800 break 7801 fi 7802 done 7803 IFS="$lt_save_ifs" 7804 MAGIC_CMD="$lt_save_MAGIC_CMD" 7805 ;; 7806esac 7807fi 7808 7809MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7810if test -n "$MAGIC_CMD"; then 7811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 7812$as_echo "$MAGIC_CMD" >&6; } 7813else 7814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7815$as_echo "no" >&6; } 7816fi 7817 7818 7819 else 7820 MAGIC_CMD=: 7821 fi 7822fi 7823 7824 fi 7825 ;; 7826esac 7827 7828# Use C for the default configuration in the libtool script 7829 7830lt_save_CC="$CC" 7831ac_ext=c 7832ac_cpp='$CPP $CPPFLAGS' 7833ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7834ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7835ac_compiler_gnu=$ac_cv_c_compiler_gnu 7836 7837 7838# Source file extension for C test sources. 7839ac_ext=c 7840 7841# Object file extension for compiled C test sources. 7842objext=o 7843objext=$objext 7844 7845# Code to be used in simple compile tests 7846lt_simple_compile_test_code="int some_variable = 0;" 7847 7848# Code to be used in simple link tests 7849lt_simple_link_test_code='int main(){return(0);}' 7850 7851 7852 7853 7854 7855 7856 7857# If no C compiler was specified, use CC. 7858LTCC=${LTCC-"$CC"} 7859 7860# If no C compiler flags were specified, use CFLAGS. 7861LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 7862 7863# Allow CC to be a program name with arguments. 7864compiler=$CC 7865 7866# Save the default compiler, since it gets overwritten when the other 7867# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 7868compiler_DEFAULT=$CC 7869 7870# save warnings/boilerplate of simple test code 7871ac_outfile=conftest.$ac_objext 7872echo "$lt_simple_compile_test_code" >conftest.$ac_ext 7873eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 7874_lt_compiler_boilerplate=`cat conftest.err` 7875$RM conftest* 7876 7877ac_outfile=conftest.$ac_objext 7878echo "$lt_simple_link_test_code" >conftest.$ac_ext 7879eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 7880_lt_linker_boilerplate=`cat conftest.err` 7881$RM -r conftest* 7882 7883 7884if test -n "$compiler"; then 7885 7886lt_prog_compiler_no_builtin_flag= 7887 7888if test "$GCC" = yes; then 7889 case $cc_basename in 7890 nvcc*) 7891 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 7892 *) 7893 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 7894 esac 7895 7896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 7897$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 7898if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 7899 $as_echo_n "(cached) " >&6 7900else 7901 lt_cv_prog_compiler_rtti_exceptions=no 7902 ac_outfile=conftest.$ac_objext 7903 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 7904 lt_compiler_flag="-fno-rtti -fno-exceptions" 7905 # Insert the option either (1) after the last *FLAGS variable, or 7906 # (2) before a word containing "conftest.", or (3) at the end. 7907 # Note that $ac_compile itself does not contain backslashes and begins 7908 # with a dollar sign (not a hyphen), so the echo should work correctly. 7909 # The option is referenced via a variable to avoid confusing sed. 7910 lt_compile=`echo "$ac_compile" | $SED \ 7911 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7912 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7913 -e 's:$: $lt_compiler_flag:'` 7914 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 7915 (eval "$lt_compile" 2>conftest.err) 7916 ac_status=$? 7917 cat conftest.err >&5 7918 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7919 if (exit $ac_status) && test -s "$ac_outfile"; then 7920 # The compiler can only warn and ignore the option if not recognized 7921 # So say no if there are warnings other than the usual output. 7922 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 7923 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7924 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 7925 lt_cv_prog_compiler_rtti_exceptions=yes 7926 fi 7927 fi 7928 $RM conftest* 7929 7930fi 7931{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 7932$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 7933 7934if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 7935 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 7936else 7937 : 7938fi 7939 7940fi 7941 7942 7943 7944 7945 7946 7947 lt_prog_compiler_wl= 7948lt_prog_compiler_pic= 7949lt_prog_compiler_static= 7950 7951 7952 if test "$GCC" = yes; then 7953 lt_prog_compiler_wl='-Wl,' 7954 lt_prog_compiler_static='-static' 7955 7956 case $host_os in 7957 aix*) 7958 # All AIX code is PIC. 7959 if test "$host_cpu" = ia64; then 7960 # AIX 5 now supports IA64 processor 7961 lt_prog_compiler_static='-Bstatic' 7962 fi 7963 ;; 7964 7965 amigaos*) 7966 case $host_cpu in 7967 powerpc) 7968 # see comment about AmigaOS4 .so support 7969 lt_prog_compiler_pic='-fPIC' 7970 ;; 7971 m68k) 7972 # FIXME: we need at least 68020 code to build shared libraries, but 7973 # adding the `-m68020' flag to GCC prevents building anything better, 7974 # like `-m68040'. 7975 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 7976 ;; 7977 esac 7978 ;; 7979 7980 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 7981 # PIC is the default for these OSes. 7982 ;; 7983 7984 mingw* | cygwin* | pw32* | os2* | cegcc*) 7985 # This hack is so that the source file can tell whether it is being 7986 # built for inclusion in a dll (and should export symbols for example). 7987 # Although the cygwin gcc ignores -fPIC, still need this for old-style 7988 # (--disable-auto-import) libraries 7989 lt_prog_compiler_pic='-DDLL_EXPORT' 7990 ;; 7991 7992 darwin* | rhapsody*) 7993 # PIC is the default on this platform 7994 # Common symbols not allowed in MH_DYLIB files 7995 lt_prog_compiler_pic='-fno-common' 7996 ;; 7997 7998 haiku*) 7999 # PIC is the default for Haiku. 8000 # The "-static" flag exists, but is broken. 8001 lt_prog_compiler_static= 8002 ;; 8003 8004 hpux*) 8005 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 8006 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 8007 # sets the default TLS model and affects inlining. 8008 case $host_cpu in 8009 hppa*64*) 8010 # +Z the default 8011 ;; 8012 *) 8013 lt_prog_compiler_pic='-fPIC' 8014 ;; 8015 esac 8016 ;; 8017 8018 interix[3-9]*) 8019 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 8020 # Instead, we relocate shared libraries at runtime. 8021 ;; 8022 8023 msdosdjgpp*) 8024 # Just because we use GCC doesn't mean we suddenly get shared libraries 8025 # on systems that don't support them. 8026 lt_prog_compiler_can_build_shared=no 8027 enable_shared=no 8028 ;; 8029 8030 *nto* | *qnx*) 8031 # QNX uses GNU C++, but need to define -shared option too, otherwise 8032 # it will coredump. 8033 lt_prog_compiler_pic='-fPIC -shared' 8034 ;; 8035 8036 sysv4*MP*) 8037 if test -d /usr/nec; then 8038 lt_prog_compiler_pic=-Kconform_pic 8039 fi 8040 ;; 8041 8042 *) 8043 lt_prog_compiler_pic='-fPIC' 8044 ;; 8045 esac 8046 8047 case $cc_basename in 8048 nvcc*) # Cuda Compiler Driver 2.2 8049 lt_prog_compiler_wl='-Xlinker ' 8050 if test -n "$lt_prog_compiler_pic"; then 8051 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 8052 fi 8053 ;; 8054 esac 8055 else 8056 # PORTME Check for flag to pass linker flags through the system compiler. 8057 case $host_os in 8058 aix*) 8059 lt_prog_compiler_wl='-Wl,' 8060 if test "$host_cpu" = ia64; then 8061 # AIX 5 now supports IA64 processor 8062 lt_prog_compiler_static='-Bstatic' 8063 else 8064 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 8065 fi 8066 ;; 8067 8068 mingw* | cygwin* | pw32* | os2* | cegcc*) 8069 # This hack is so that the source file can tell whether it is being 8070 # built for inclusion in a dll (and should export symbols for example). 8071 lt_prog_compiler_pic='-DDLL_EXPORT' 8072 ;; 8073 8074 hpux9* | hpux10* | hpux11*) 8075 lt_prog_compiler_wl='-Wl,' 8076 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 8077 # not for PA HP-UX. 8078 case $host_cpu in 8079 hppa*64*|ia64*) 8080 # +Z the default 8081 ;; 8082 *) 8083 lt_prog_compiler_pic='+Z' 8084 ;; 8085 esac 8086 # Is there a better lt_prog_compiler_static that works with the bundled CC? 8087 lt_prog_compiler_static='${wl}-a ${wl}archive' 8088 ;; 8089 8090 irix5* | irix6* | nonstopux*) 8091 lt_prog_compiler_wl='-Wl,' 8092 # PIC (with -KPIC) is the default. 8093 lt_prog_compiler_static='-non_shared' 8094 ;; 8095 8096 linux* | k*bsd*-gnu | kopensolaris*-gnu) 8097 case $cc_basename in 8098 # old Intel for x86_64 which still supported -KPIC. 8099 ecc*) 8100 lt_prog_compiler_wl='-Wl,' 8101 lt_prog_compiler_pic='-KPIC' 8102 lt_prog_compiler_static='-static' 8103 ;; 8104 # icc used to be incompatible with GCC. 8105 # ICC 10 doesn't accept -KPIC any more. 8106 icc* | ifort*) 8107 lt_prog_compiler_wl='-Wl,' 8108 lt_prog_compiler_pic='-fPIC' 8109 lt_prog_compiler_static='-static' 8110 ;; 8111 # Lahey Fortran 8.1. 8112 lf95*) 8113 lt_prog_compiler_wl='-Wl,' 8114 lt_prog_compiler_pic='--shared' 8115 lt_prog_compiler_static='--static' 8116 ;; 8117 nagfor*) 8118 # NAG Fortran compiler 8119 lt_prog_compiler_wl='-Wl,-Wl,,' 8120 lt_prog_compiler_pic='-PIC' 8121 lt_prog_compiler_static='-Bstatic' 8122 ;; 8123 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 8124 # Portland Group compilers (*not* the Pentium gcc compiler, 8125 # which looks to be a dead project) 8126 lt_prog_compiler_wl='-Wl,' 8127 lt_prog_compiler_pic='-fpic' 8128 lt_prog_compiler_static='-Bstatic' 8129 ;; 8130 ccc*) 8131 lt_prog_compiler_wl='-Wl,' 8132 # All Alpha code is PIC. 8133 lt_prog_compiler_static='-non_shared' 8134 ;; 8135 xl* | bgxl* | bgf* | mpixl*) 8136 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 8137 lt_prog_compiler_wl='-Wl,' 8138 lt_prog_compiler_pic='-qpic' 8139 lt_prog_compiler_static='-qstaticlink' 8140 ;; 8141 *) 8142 case `$CC -V 2>&1 | sed 5q` in 8143 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 8144 # Sun Fortran 8.3 passes all unrecognized flags to the linker 8145 lt_prog_compiler_pic='-KPIC' 8146 lt_prog_compiler_static='-Bstatic' 8147 lt_prog_compiler_wl='' 8148 ;; 8149 *Sun\ F* | *Sun*Fortran*) 8150 lt_prog_compiler_pic='-KPIC' 8151 lt_prog_compiler_static='-Bstatic' 8152 lt_prog_compiler_wl='-Qoption ld ' 8153 ;; 8154 *Sun\ C*) 8155 # Sun C 5.9 8156 lt_prog_compiler_pic='-KPIC' 8157 lt_prog_compiler_static='-Bstatic' 8158 lt_prog_compiler_wl='-Wl,' 8159 ;; 8160 *Intel*\ [CF]*Compiler*) 8161 lt_prog_compiler_wl='-Wl,' 8162 lt_prog_compiler_pic='-fPIC' 8163 lt_prog_compiler_static='-static' 8164 ;; 8165 *Portland\ Group*) 8166 lt_prog_compiler_wl='-Wl,' 8167 lt_prog_compiler_pic='-fpic' 8168 lt_prog_compiler_static='-Bstatic' 8169 ;; 8170 esac 8171 ;; 8172 esac 8173 ;; 8174 8175 newsos6) 8176 lt_prog_compiler_pic='-KPIC' 8177 lt_prog_compiler_static='-Bstatic' 8178 ;; 8179 8180 *nto* | *qnx*) 8181 # QNX uses GNU C++, but need to define -shared option too, otherwise 8182 # it will coredump. 8183 lt_prog_compiler_pic='-fPIC -shared' 8184 ;; 8185 8186 osf3* | osf4* | osf5*) 8187 lt_prog_compiler_wl='-Wl,' 8188 # All OSF/1 code is PIC. 8189 lt_prog_compiler_static='-non_shared' 8190 ;; 8191 8192 rdos*) 8193 lt_prog_compiler_static='-non_shared' 8194 ;; 8195 8196 solaris*) 8197 lt_prog_compiler_pic='-KPIC' 8198 lt_prog_compiler_static='-Bstatic' 8199 case $cc_basename in 8200 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 8201 lt_prog_compiler_wl='-Qoption ld ';; 8202 *) 8203 lt_prog_compiler_wl='-Wl,';; 8204 esac 8205 ;; 8206 8207 sunos4*) 8208 lt_prog_compiler_wl='-Qoption ld ' 8209 lt_prog_compiler_pic='-PIC' 8210 lt_prog_compiler_static='-Bstatic' 8211 ;; 8212 8213 sysv4 | sysv4.2uw2* | sysv4.3*) 8214 lt_prog_compiler_wl='-Wl,' 8215 lt_prog_compiler_pic='-KPIC' 8216 lt_prog_compiler_static='-Bstatic' 8217 ;; 8218 8219 sysv4*MP*) 8220 if test -d /usr/nec ;then 8221 lt_prog_compiler_pic='-Kconform_pic' 8222 lt_prog_compiler_static='-Bstatic' 8223 fi 8224 ;; 8225 8226 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 8227 lt_prog_compiler_wl='-Wl,' 8228 lt_prog_compiler_pic='-KPIC' 8229 lt_prog_compiler_static='-Bstatic' 8230 ;; 8231 8232 unicos*) 8233 lt_prog_compiler_wl='-Wl,' 8234 lt_prog_compiler_can_build_shared=no 8235 ;; 8236 8237 uts4*) 8238 lt_prog_compiler_pic='-pic' 8239 lt_prog_compiler_static='-Bstatic' 8240 ;; 8241 8242 *) 8243 lt_prog_compiler_can_build_shared=no 8244 ;; 8245 esac 8246 fi 8247 8248case $host_os in 8249 # For platforms which do not support PIC, -DPIC is meaningless: 8250 *djgpp*) 8251 lt_prog_compiler_pic= 8252 ;; 8253 *) 8254 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 8255 ;; 8256esac 8257 8258{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 8259$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 8260if ${lt_cv_prog_compiler_pic+:} false; then : 8261 $as_echo_n "(cached) " >&6 8262else 8263 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 8264fi 8265{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 8266$as_echo "$lt_cv_prog_compiler_pic" >&6; } 8267lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 8268 8269# 8270# Check to make sure the PIC flag actually works. 8271# 8272if test -n "$lt_prog_compiler_pic"; then 8273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 8274$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 8275if ${lt_cv_prog_compiler_pic_works+:} false; then : 8276 $as_echo_n "(cached) " >&6 8277else 8278 lt_cv_prog_compiler_pic_works=no 8279 ac_outfile=conftest.$ac_objext 8280 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8281 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 8282 # Insert the option either (1) after the last *FLAGS variable, or 8283 # (2) before a word containing "conftest.", or (3) at the end. 8284 # Note that $ac_compile itself does not contain backslashes and begins 8285 # with a dollar sign (not a hyphen), so the echo should work correctly. 8286 # The option is referenced via a variable to avoid confusing sed. 8287 lt_compile=`echo "$ac_compile" | $SED \ 8288 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8289 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8290 -e 's:$: $lt_compiler_flag:'` 8291 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8292 (eval "$lt_compile" 2>conftest.err) 8293 ac_status=$? 8294 cat conftest.err >&5 8295 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8296 if (exit $ac_status) && test -s "$ac_outfile"; then 8297 # The compiler can only warn and ignore the option if not recognized 8298 # So say no if there are warnings other than the usual output. 8299 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 8300 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8301 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8302 lt_cv_prog_compiler_pic_works=yes 8303 fi 8304 fi 8305 $RM conftest* 8306 8307fi 8308{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 8309$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 8310 8311if test x"$lt_cv_prog_compiler_pic_works" = xyes; then 8312 case $lt_prog_compiler_pic in 8313 "" | " "*) ;; 8314 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 8315 esac 8316else 8317 lt_prog_compiler_pic= 8318 lt_prog_compiler_can_build_shared=no 8319fi 8320 8321fi 8322 8323 8324 8325 8326 8327 8328 8329 8330 8331 8332 8333# 8334# Check to make sure the static flag actually works. 8335# 8336wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 8337{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 8338$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 8339if ${lt_cv_prog_compiler_static_works+:} false; then : 8340 $as_echo_n "(cached) " >&6 8341else 8342 lt_cv_prog_compiler_static_works=no 8343 save_LDFLAGS="$LDFLAGS" 8344 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 8345 echo "$lt_simple_link_test_code" > conftest.$ac_ext 8346 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 8347 # The linker can only warn and ignore the option if not recognized 8348 # So say no if there are warnings 8349 if test -s conftest.err; then 8350 # Append any errors to the config.log. 8351 cat conftest.err 1>&5 8352 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 8353 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8354 if diff conftest.exp conftest.er2 >/dev/null; then 8355 lt_cv_prog_compiler_static_works=yes 8356 fi 8357 else 8358 lt_cv_prog_compiler_static_works=yes 8359 fi 8360 fi 8361 $RM -r conftest* 8362 LDFLAGS="$save_LDFLAGS" 8363 8364fi 8365{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 8366$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 8367 8368if test x"$lt_cv_prog_compiler_static_works" = xyes; then 8369 : 8370else 8371 lt_prog_compiler_static= 8372fi 8373 8374 8375 8376 8377 8378 8379 8380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 8381$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 8382if ${lt_cv_prog_compiler_c_o+:} false; then : 8383 $as_echo_n "(cached) " >&6 8384else 8385 lt_cv_prog_compiler_c_o=no 8386 $RM -r conftest 2>/dev/null 8387 mkdir conftest 8388 cd conftest 8389 mkdir out 8390 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8391 8392 lt_compiler_flag="-o out/conftest2.$ac_objext" 8393 # Insert the option either (1) after the last *FLAGS variable, or 8394 # (2) before a word containing "conftest.", or (3) at the end. 8395 # Note that $ac_compile itself does not contain backslashes and begins 8396 # with a dollar sign (not a hyphen), so the echo should work correctly. 8397 lt_compile=`echo "$ac_compile" | $SED \ 8398 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8399 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8400 -e 's:$: $lt_compiler_flag:'` 8401 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8402 (eval "$lt_compile" 2>out/conftest.err) 8403 ac_status=$? 8404 cat out/conftest.err >&5 8405 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8406 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8407 then 8408 # The compiler can only warn and ignore the option if not recognized 8409 # So say no if there are warnings 8410 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 8411 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8412 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8413 lt_cv_prog_compiler_c_o=yes 8414 fi 8415 fi 8416 chmod u+w . 2>&5 8417 $RM conftest* 8418 # SGI C++ compiler will create directory out/ii_files/ for 8419 # template instantiation 8420 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 8421 $RM out/* && rmdir out 8422 cd .. 8423 $RM -r conftest 8424 $RM conftest* 8425 8426fi 8427{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 8428$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 8429 8430 8431 8432 8433 8434 8435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 8436$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 8437if ${lt_cv_prog_compiler_c_o+:} false; then : 8438 $as_echo_n "(cached) " >&6 8439else 8440 lt_cv_prog_compiler_c_o=no 8441 $RM -r conftest 2>/dev/null 8442 mkdir conftest 8443 cd conftest 8444 mkdir out 8445 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8446 8447 lt_compiler_flag="-o out/conftest2.$ac_objext" 8448 # Insert the option either (1) after the last *FLAGS variable, or 8449 # (2) before a word containing "conftest.", or (3) at the end. 8450 # Note that $ac_compile itself does not contain backslashes and begins 8451 # with a dollar sign (not a hyphen), so the echo should work correctly. 8452 lt_compile=`echo "$ac_compile" | $SED \ 8453 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8454 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8455 -e 's:$: $lt_compiler_flag:'` 8456 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8457 (eval "$lt_compile" 2>out/conftest.err) 8458 ac_status=$? 8459 cat out/conftest.err >&5 8460 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8461 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8462 then 8463 # The compiler can only warn and ignore the option if not recognized 8464 # So say no if there are warnings 8465 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 8466 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8467 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8468 lt_cv_prog_compiler_c_o=yes 8469 fi 8470 fi 8471 chmod u+w . 2>&5 8472 $RM conftest* 8473 # SGI C++ compiler will create directory out/ii_files/ for 8474 # template instantiation 8475 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 8476 $RM out/* && rmdir out 8477 cd .. 8478 $RM -r conftest 8479 $RM conftest* 8480 8481fi 8482{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 8483$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 8484 8485 8486 8487 8488hard_links="nottested" 8489if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 8490 # do not overwrite the value of need_locks provided by the user 8491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 8492$as_echo_n "checking if we can lock with hard links... " >&6; } 8493 hard_links=yes 8494 $RM conftest* 8495 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8496 touch conftest.a 8497 ln conftest.a conftest.b 2>&5 || hard_links=no 8498 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 8500$as_echo "$hard_links" >&6; } 8501 if test "$hard_links" = no; then 8502 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 8503$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 8504 need_locks=warn 8505 fi 8506else 8507 need_locks=no 8508fi 8509 8510 8511 8512 8513 8514 8515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 8516$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 8517 8518 runpath_var= 8519 allow_undefined_flag= 8520 always_export_symbols=no 8521 archive_cmds= 8522 archive_expsym_cmds= 8523 compiler_needs_object=no 8524 enable_shared_with_static_runtimes=no 8525 export_dynamic_flag_spec= 8526 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 8527 hardcode_automatic=no 8528 hardcode_direct=no 8529 hardcode_direct_absolute=no 8530 hardcode_libdir_flag_spec= 8531 hardcode_libdir_separator= 8532 hardcode_minus_L=no 8533 hardcode_shlibpath_var=unsupported 8534 inherit_rpath=no 8535 link_all_deplibs=unknown 8536 module_cmds= 8537 module_expsym_cmds= 8538 old_archive_from_new_cmds= 8539 old_archive_from_expsyms_cmds= 8540 thread_safe_flag_spec= 8541 whole_archive_flag_spec= 8542 # include_expsyms should be a list of space-separated symbols to be *always* 8543 # included in the symbol list 8544 include_expsyms= 8545 # exclude_expsyms can be an extended regexp of symbols to exclude 8546 # it will be wrapped by ` (' and `)$', so one must not match beginning or 8547 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 8548 # as well as any symbol that contains `d'. 8549 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 8550 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 8551 # platforms (ab)use it in PIC code, but their linkers get confused if 8552 # the symbol is explicitly referenced. Since portable code cannot 8553 # rely on this symbol name, it's probably fine to never include it in 8554 # preloaded symbol tables. 8555 # Exclude shared library initialization/finalization symbols. 8556 extract_expsyms_cmds= 8557 8558 case $host_os in 8559 cygwin* | mingw* | pw32* | cegcc*) 8560 # FIXME: the MSVC++ port hasn't been tested in a loooong time 8561 # When not using gcc, we currently assume that we are using 8562 # Microsoft Visual C++. 8563 if test "$GCC" != yes; then 8564 with_gnu_ld=no 8565 fi 8566 ;; 8567 interix*) 8568 # we just hope/assume this is gcc and not c89 (= MSVC++) 8569 with_gnu_ld=yes 8570 ;; 8571 openbsd*) 8572 with_gnu_ld=no 8573 ;; 8574 esac 8575 8576 ld_shlibs=yes 8577 8578 # On some targets, GNU ld is compatible enough with the native linker 8579 # that we're better off using the native interface for both. 8580 lt_use_gnu_ld_interface=no 8581 if test "$with_gnu_ld" = yes; then 8582 case $host_os in 8583 aix*) 8584 # The AIX port of GNU ld has always aspired to compatibility 8585 # with the native linker. However, as the warning in the GNU ld 8586 # block says, versions before 2.19.5* couldn't really create working 8587 # shared libraries, regardless of the interface used. 8588 case `$LD -v 2>&1` in 8589 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 8590 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 8591 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 8592 *) 8593 lt_use_gnu_ld_interface=yes 8594 ;; 8595 esac 8596 ;; 8597 *) 8598 lt_use_gnu_ld_interface=yes 8599 ;; 8600 esac 8601 fi 8602 8603 if test "$lt_use_gnu_ld_interface" = yes; then 8604 # If archive_cmds runs LD, not CC, wlarc should be empty 8605 wlarc='${wl}' 8606 8607 # Set some defaults for GNU ld with shared library support. These 8608 # are reset later if shared libraries are not supported. Putting them 8609 # here allows them to be overridden if necessary. 8610 runpath_var=LD_RUN_PATH 8611 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8612 export_dynamic_flag_spec='${wl}--export-dynamic' 8613 # ancient GNU ld didn't support --whole-archive et. al. 8614 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 8615 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 8616 else 8617 whole_archive_flag_spec= 8618 fi 8619 supports_anon_versioning=no 8620 case `$LD -v 2>&1` in 8621 *GNU\ gold*) supports_anon_versioning=yes ;; 8622 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 8623 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 8624 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 8625 *\ 2.11.*) ;; # other 2.11 versions 8626 *) supports_anon_versioning=yes ;; 8627 esac 8628 8629 # See if GNU ld supports shared libraries. 8630 case $host_os in 8631 aix[3-9]*) 8632 # On AIX/PPC, the GNU linker is very broken 8633 if test "$host_cpu" != ia64; then 8634 ld_shlibs=no 8635 cat <<_LT_EOF 1>&2 8636 8637*** Warning: the GNU linker, at least up to release 2.19, is reported 8638*** to be unable to reliably create shared libraries on AIX. 8639*** Therefore, libtool is disabling shared libraries support. If you 8640*** really care for shared libraries, you may want to install binutils 8641*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 8642*** You will then need to restart the configuration process. 8643 8644_LT_EOF 8645 fi 8646 ;; 8647 8648 amigaos*) 8649 case $host_cpu in 8650 powerpc) 8651 # see comment about AmigaOS4 .so support 8652 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8653 archive_expsym_cmds='' 8654 ;; 8655 m68k) 8656 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)' 8657 hardcode_libdir_flag_spec='-L$libdir' 8658 hardcode_minus_L=yes 8659 ;; 8660 esac 8661 ;; 8662 8663 beos*) 8664 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8665 allow_undefined_flag=unsupported 8666 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 8667 # support --undefined. This deserves some investigation. FIXME 8668 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8669 else 8670 ld_shlibs=no 8671 fi 8672 ;; 8673 8674 cygwin* | mingw* | pw32* | cegcc*) 8675 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 8676 # as there is no search path for DLLs. 8677 hardcode_libdir_flag_spec='-L$libdir' 8678 export_dynamic_flag_spec='${wl}--export-all-symbols' 8679 allow_undefined_flag=unsupported 8680 always_export_symbols=no 8681 enable_shared_with_static_runtimes=yes 8682 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' 8683 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 8684 8685 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 8686 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 8687 # If the export-symbols file already is a .def file (1st line 8688 # is EXPORTS), use it as is; otherwise, prepend... 8689 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 8690 cp $export_symbols $output_objdir/$soname.def; 8691 else 8692 echo EXPORTS > $output_objdir/$soname.def; 8693 cat $export_symbols >> $output_objdir/$soname.def; 8694 fi~ 8695 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 8696 else 8697 ld_shlibs=no 8698 fi 8699 ;; 8700 8701 haiku*) 8702 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8703 link_all_deplibs=yes 8704 ;; 8705 8706 interix[3-9]*) 8707 hardcode_direct=no 8708 hardcode_shlibpath_var=no 8709 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8710 export_dynamic_flag_spec='${wl}-E' 8711 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 8712 # Instead, shared libraries are loaded at an image base (0x10000000 by 8713 # default) and relocated if they conflict, which is a slow very memory 8714 # consuming and fragmenting process. To avoid this, we pick a random, 8715 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 8716 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 8717 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 8718 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' 8719 ;; 8720 8721 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 8722 tmp_diet=no 8723 if test "$host_os" = linux-dietlibc; then 8724 case $cc_basename in 8725 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 8726 esac 8727 fi 8728 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 8729 && test "$tmp_diet" = no 8730 then 8731 tmp_addflag=' $pic_flag' 8732 tmp_sharedflag='-shared' 8733 case $cc_basename,$host_cpu in 8734 pgcc*) # Portland Group C compiler 8735 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' 8736 tmp_addflag=' $pic_flag' 8737 ;; 8738 pgf77* | pgf90* | pgf95* | pgfortran*) 8739 # Portland Group f77 and f90 compilers 8740 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' 8741 tmp_addflag=' $pic_flag -Mnomain' ;; 8742 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 8743 tmp_addflag=' -i_dynamic' ;; 8744 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 8745 tmp_addflag=' -i_dynamic -nofor_main' ;; 8746 ifc* | ifort*) # Intel Fortran compiler 8747 tmp_addflag=' -nofor_main' ;; 8748 lf95*) # Lahey Fortran 8.1 8749 whole_archive_flag_spec= 8750 tmp_sharedflag='--shared' ;; 8751 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 8752 tmp_sharedflag='-qmkshrobj' 8753 tmp_addflag= ;; 8754 nvcc*) # Cuda Compiler Driver 2.2 8755 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' 8756 compiler_needs_object=yes 8757 ;; 8758 esac 8759 case `$CC -V 2>&1 | sed 5q` in 8760 *Sun\ C*) # Sun C 5.9 8761 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' 8762 compiler_needs_object=yes 8763 tmp_sharedflag='-G' ;; 8764 *Sun\ F*) # Sun Fortran 8.3 8765 tmp_sharedflag='-G' ;; 8766 esac 8767 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8768 8769 if test "x$supports_anon_versioning" = xyes; then 8770 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 8771 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 8772 echo "local: *; };" >> $output_objdir/$libname.ver~ 8773 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 8774 fi 8775 8776 case $cc_basename in 8777 xlf* | bgf* | bgxlf* | mpixlf*) 8778 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 8779 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 8780 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8781 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 8782 if test "x$supports_anon_versioning" = xyes; then 8783 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 8784 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 8785 echo "local: *; };" >> $output_objdir/$libname.ver~ 8786 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 8787 fi 8788 ;; 8789 esac 8790 else 8791 ld_shlibs=no 8792 fi 8793 ;; 8794 8795 netbsd*) 8796 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 8797 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 8798 wlarc= 8799 else 8800 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8801 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8802 fi 8803 ;; 8804 8805 solaris*) 8806 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 8807 ld_shlibs=no 8808 cat <<_LT_EOF 1>&2 8809 8810*** Warning: The releases 2.8.* of the GNU linker cannot reliably 8811*** create shared libraries on Solaris systems. Therefore, libtool 8812*** is disabling shared libraries support. We urge you to upgrade GNU 8813*** binutils to release 2.9.1 or newer. Another option is to modify 8814*** your PATH or compiler configuration so that the native linker is 8815*** used, and then restart. 8816 8817_LT_EOF 8818 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8819 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8820 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8821 else 8822 ld_shlibs=no 8823 fi 8824 ;; 8825 8826 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 8827 case `$LD -v 2>&1` in 8828 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 8829 ld_shlibs=no 8830 cat <<_LT_EOF 1>&2 8831 8832*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 8833*** reliably create shared libraries on SCO systems. Therefore, libtool 8834*** is disabling shared libraries support. We urge you to upgrade GNU 8835*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 8836*** your PATH or compiler configuration so that the native linker is 8837*** used, and then restart. 8838 8839_LT_EOF 8840 ;; 8841 *) 8842 # For security reasons, it is highly recommended that you always 8843 # use absolute paths for naming shared libraries, and exclude the 8844 # DT_RUNPATH tag from executables and libraries. But doing so 8845 # requires that you compile everything twice, which is a pain. 8846 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8847 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8848 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8849 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8850 else 8851 ld_shlibs=no 8852 fi 8853 ;; 8854 esac 8855 ;; 8856 8857 sunos4*) 8858 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8859 wlarc= 8860 hardcode_direct=yes 8861 hardcode_shlibpath_var=no 8862 ;; 8863 8864 *) 8865 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8866 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8867 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8868 else 8869 ld_shlibs=no 8870 fi 8871 ;; 8872 esac 8873 8874 if test "$ld_shlibs" = no; then 8875 runpath_var= 8876 hardcode_libdir_flag_spec= 8877 export_dynamic_flag_spec= 8878 whole_archive_flag_spec= 8879 fi 8880 else 8881 # PORTME fill in a description of your system's linker (not GNU ld) 8882 case $host_os in 8883 aix3*) 8884 allow_undefined_flag=unsupported 8885 always_export_symbols=yes 8886 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' 8887 # Note: this linker hardcodes the directories in LIBPATH if there 8888 # are no directories specified by -L. 8889 hardcode_minus_L=yes 8890 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 8891 # Neither direct hardcoding nor static linking is supported with a 8892 # broken collect2. 8893 hardcode_direct=unsupported 8894 fi 8895 ;; 8896 8897 aix[4-9]*) 8898 if test "$host_cpu" = ia64; then 8899 # On IA64, the linker does run time linking by default, so we don't 8900 # have to do anything special. 8901 aix_use_runtimelinking=no 8902 exp_sym_flag='-Bexport' 8903 no_entry_flag="" 8904 else 8905 # If we're using GNU nm, then we don't want the "-C" option. 8906 # -C means demangle to AIX nm, but means don't demangle with GNU nm 8907 # Also, AIX nm treats weak defined symbols like other global 8908 # defined symbols, whereas GNU nm marks them as "W". 8909 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 8910 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 8911 else 8912 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 8913 fi 8914 aix_use_runtimelinking=no 8915 8916 # Test if we are trying to use run time linking or normal 8917 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 8918 # need to do runtime linking. 8919 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 8920 for ld_flag in $LDFLAGS; do 8921 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 8922 aix_use_runtimelinking=yes 8923 break 8924 fi 8925 done 8926 ;; 8927 esac 8928 8929 exp_sym_flag='-bexport' 8930 no_entry_flag='-bnoentry' 8931 fi 8932 8933 # When large executables or shared objects are built, AIX ld can 8934 # have problems creating the table of contents. If linking a library 8935 # or program results in "error TOC overflow" add -mminimal-toc to 8936 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 8937 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 8938 8939 archive_cmds='' 8940 hardcode_direct=yes 8941 hardcode_direct_absolute=yes 8942 hardcode_libdir_separator=':' 8943 link_all_deplibs=yes 8944 file_list_spec='${wl}-f,' 8945 8946 if test "$GCC" = yes; then 8947 case $host_os in aix4.[012]|aix4.[012].*) 8948 # We only want to do this on AIX 4.2 and lower, the check 8949 # below for broken collect2 doesn't work under 4.3+ 8950 collect2name=`${CC} -print-prog-name=collect2` 8951 if test -f "$collect2name" && 8952 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 8953 then 8954 # We have reworked collect2 8955 : 8956 else 8957 # We have old collect2 8958 hardcode_direct=unsupported 8959 # It fails to find uninstalled libraries when the uninstalled 8960 # path is not listed in the libpath. Setting hardcode_minus_L 8961 # to unsupported forces relinking 8962 hardcode_minus_L=yes 8963 hardcode_libdir_flag_spec='-L$libdir' 8964 hardcode_libdir_separator= 8965 fi 8966 ;; 8967 esac 8968 shared_flag='-shared' 8969 if test "$aix_use_runtimelinking" = yes; then 8970 shared_flag="$shared_flag "'${wl}-G' 8971 fi 8972 else 8973 # not using gcc 8974 if test "$host_cpu" = ia64; then 8975 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 8976 # chokes on -Wl,-G. The following line is correct: 8977 shared_flag='-G' 8978 else 8979 if test "$aix_use_runtimelinking" = yes; then 8980 shared_flag='${wl}-G' 8981 else 8982 shared_flag='${wl}-bM:SRE' 8983 fi 8984 fi 8985 fi 8986 8987 export_dynamic_flag_spec='${wl}-bexpall' 8988 # It seems that -bexpall does not export symbols beginning with 8989 # underscore (_), so it is better to generate a list of symbols to export. 8990 always_export_symbols=yes 8991 if test "$aix_use_runtimelinking" = yes; then 8992 # Warning - without using the other runtime loading flags (-brtl), 8993 # -berok will link without error, but may produce a broken library. 8994 allow_undefined_flag='-berok' 8995 # Determine the default libpath from the value encoded in an 8996 # empty executable. 8997 if test "${lt_cv_aix_libpath+set}" = set; then 8998 aix_libpath=$lt_cv_aix_libpath 8999else 9000 if ${lt_cv_aix_libpath_+:} false; then : 9001 $as_echo_n "(cached) " >&6 9002else 9003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9004/* end confdefs.h. */ 9005 9006int 9007main () 9008{ 9009 9010 ; 9011 return 0; 9012} 9013_ACEOF 9014if ac_fn_c_try_link "$LINENO"; then : 9015 9016 lt_aix_libpath_sed=' 9017 /Import File Strings/,/^$/ { 9018 /^0/ { 9019 s/^0 *\([^ ]*\) *$/\1/ 9020 p 9021 } 9022 }' 9023 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9024 # Check for a 64-bit object if we didn't find anything. 9025 if test -z "$lt_cv_aix_libpath_"; then 9026 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9027 fi 9028fi 9029rm -f core conftest.err conftest.$ac_objext \ 9030 conftest$ac_exeext conftest.$ac_ext 9031 if test -z "$lt_cv_aix_libpath_"; then 9032 lt_cv_aix_libpath_="/usr/lib:/lib" 9033 fi 9034 9035fi 9036 9037 aix_libpath=$lt_cv_aix_libpath_ 9038fi 9039 9040 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 9041 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" 9042 else 9043 if test "$host_cpu" = ia64; then 9044 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 9045 allow_undefined_flag="-z nodefs" 9046 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" 9047 else 9048 # Determine the default libpath from the value encoded in an 9049 # empty executable. 9050 if test "${lt_cv_aix_libpath+set}" = set; then 9051 aix_libpath=$lt_cv_aix_libpath 9052else 9053 if ${lt_cv_aix_libpath_+:} false; then : 9054 $as_echo_n "(cached) " >&6 9055else 9056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9057/* end confdefs.h. */ 9058 9059int 9060main () 9061{ 9062 9063 ; 9064 return 0; 9065} 9066_ACEOF 9067if ac_fn_c_try_link "$LINENO"; then : 9068 9069 lt_aix_libpath_sed=' 9070 /Import File Strings/,/^$/ { 9071 /^0/ { 9072 s/^0 *\([^ ]*\) *$/\1/ 9073 p 9074 } 9075 }' 9076 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9077 # Check for a 64-bit object if we didn't find anything. 9078 if test -z "$lt_cv_aix_libpath_"; then 9079 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9080 fi 9081fi 9082rm -f core conftest.err conftest.$ac_objext \ 9083 conftest$ac_exeext conftest.$ac_ext 9084 if test -z "$lt_cv_aix_libpath_"; then 9085 lt_cv_aix_libpath_="/usr/lib:/lib" 9086 fi 9087 9088fi 9089 9090 aix_libpath=$lt_cv_aix_libpath_ 9091fi 9092 9093 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 9094 # Warning - without using the other run time loading flags, 9095 # -berok will link without error, but may produce a broken library. 9096 no_undefined_flag=' ${wl}-bernotok' 9097 allow_undefined_flag=' ${wl}-berok' 9098 if test "$with_gnu_ld" = yes; then 9099 # We only use this code for GNU lds that support --whole-archive. 9100 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 9101 else 9102 # Exported symbols can be pulled into shared objects from archives 9103 whole_archive_flag_spec='$convenience' 9104 fi 9105 archive_cmds_need_lc=yes 9106 # This is similar to how AIX traditionally builds its shared libraries. 9107 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' 9108 fi 9109 fi 9110 ;; 9111 9112 amigaos*) 9113 case $host_cpu in 9114 powerpc) 9115 # see comment about AmigaOS4 .so support 9116 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9117 archive_expsym_cmds='' 9118 ;; 9119 m68k) 9120 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)' 9121 hardcode_libdir_flag_spec='-L$libdir' 9122 hardcode_minus_L=yes 9123 ;; 9124 esac 9125 ;; 9126 9127 bsdi[45]*) 9128 export_dynamic_flag_spec=-rdynamic 9129 ;; 9130 9131 cygwin* | mingw* | pw32* | cegcc*) 9132 # When not using gcc, we currently assume that we are using 9133 # Microsoft Visual C++. 9134 # hardcode_libdir_flag_spec is actually meaningless, as there is 9135 # no search path for DLLs. 9136 case $cc_basename in 9137 cl*) 9138 # Native MSVC 9139 hardcode_libdir_flag_spec=' ' 9140 allow_undefined_flag=unsupported 9141 always_export_symbols=yes 9142 file_list_spec='@' 9143 # Tell ltmain to make .lib files, not .a files. 9144 libext=lib 9145 # Tell ltmain to make .dll files, not .so files. 9146 shrext_cmds=".dll" 9147 # FIXME: Setting linknames here is a bad hack. 9148 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' 9149 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 9150 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; 9151 else 9152 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; 9153 fi~ 9154 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 9155 linknames=' 9156 # The linker will not automatically build a static lib if we build a DLL. 9157 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 9158 enable_shared_with_static_runtimes=yes 9159 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 9160 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 9161 # Don't use ranlib 9162 old_postinstall_cmds='chmod 644 $oldlib' 9163 postlink_cmds='lt_outputfile="@OUTPUT@"~ 9164 lt_tool_outputfile="@TOOL_OUTPUT@"~ 9165 case $lt_outputfile in 9166 *.exe|*.EXE) ;; 9167 *) 9168 lt_outputfile="$lt_outputfile.exe" 9169 lt_tool_outputfile="$lt_tool_outputfile.exe" 9170 ;; 9171 esac~ 9172 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then 9173 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 9174 $RM "$lt_outputfile.manifest"; 9175 fi' 9176 ;; 9177 *) 9178 # Assume MSVC wrapper 9179 hardcode_libdir_flag_spec=' ' 9180 allow_undefined_flag=unsupported 9181 # Tell ltmain to make .lib files, not .a files. 9182 libext=lib 9183 # Tell ltmain to make .dll files, not .so files. 9184 shrext_cmds=".dll" 9185 # FIXME: Setting linknames here is a bad hack. 9186 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 9187 # The linker will automatically build a .lib file if we build a DLL. 9188 old_archive_from_new_cmds='true' 9189 # FIXME: Should let the user specify the lib program. 9190 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 9191 enable_shared_with_static_runtimes=yes 9192 ;; 9193 esac 9194 ;; 9195 9196 darwin* | rhapsody*) 9197 9198 9199 archive_cmds_need_lc=no 9200 hardcode_direct=no 9201 hardcode_automatic=yes 9202 hardcode_shlibpath_var=unsupported 9203 if test "$lt_cv_ld_force_load" = "yes"; then 9204 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\"`' 9205 9206 else 9207 whole_archive_flag_spec='' 9208 fi 9209 link_all_deplibs=yes 9210 allow_undefined_flag="$_lt_dar_allow_undefined" 9211 case $cc_basename in 9212 ifort*) _lt_dar_can_shared=yes ;; 9213 *) _lt_dar_can_shared=$GCC ;; 9214 esac 9215 if test "$_lt_dar_can_shared" = "yes"; then 9216 output_verbose_link_cmd=func_echo_all 9217 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 9218 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 9219 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}" 9220 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}" 9221 9222 else 9223 ld_shlibs=no 9224 fi 9225 9226 ;; 9227 9228 dgux*) 9229 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9230 hardcode_libdir_flag_spec='-L$libdir' 9231 hardcode_shlibpath_var=no 9232 ;; 9233 9234 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 9235 # support. Future versions do this automatically, but an explicit c++rt0.o 9236 # does not break anything, and helps significantly (at the cost of a little 9237 # extra space). 9238 freebsd2.2*) 9239 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 9240 hardcode_libdir_flag_spec='-R$libdir' 9241 hardcode_direct=yes 9242 hardcode_shlibpath_var=no 9243 ;; 9244 9245 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 9246 freebsd2.*) 9247 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9248 hardcode_direct=yes 9249 hardcode_minus_L=yes 9250 hardcode_shlibpath_var=no 9251 ;; 9252 9253 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 9254 freebsd* | dragonfly*) 9255 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9256 hardcode_libdir_flag_spec='-R$libdir' 9257 hardcode_direct=yes 9258 hardcode_shlibpath_var=no 9259 ;; 9260 9261 hpux9*) 9262 if test "$GCC" = yes; then 9263 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 9264 else 9265 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 9266 fi 9267 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9268 hardcode_libdir_separator=: 9269 hardcode_direct=yes 9270 9271 # hardcode_minus_L: Not really in the search PATH, 9272 # but as the default location of the library. 9273 hardcode_minus_L=yes 9274 export_dynamic_flag_spec='${wl}-E' 9275 ;; 9276 9277 hpux10*) 9278 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 9279 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9280 else 9281 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 9282 fi 9283 if test "$with_gnu_ld" = no; then 9284 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9285 hardcode_libdir_separator=: 9286 hardcode_direct=yes 9287 hardcode_direct_absolute=yes 9288 export_dynamic_flag_spec='${wl}-E' 9289 # hardcode_minus_L: Not really in the search PATH, 9290 # but as the default location of the library. 9291 hardcode_minus_L=yes 9292 fi 9293 ;; 9294 9295 hpux11*) 9296 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 9297 case $host_cpu in 9298 hppa*64*) 9299 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9300 ;; 9301 ia64*) 9302 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9303 ;; 9304 *) 9305 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9306 ;; 9307 esac 9308 else 9309 case $host_cpu in 9310 hppa*64*) 9311 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9312 ;; 9313 ia64*) 9314 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9315 ;; 9316 *) 9317 9318 # Older versions of the 11.00 compiler do not understand -b yet 9319 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 9320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 9321$as_echo_n "checking if $CC understands -b... " >&6; } 9322if ${lt_cv_prog_compiler__b+:} false; then : 9323 $as_echo_n "(cached) " >&6 9324else 9325 lt_cv_prog_compiler__b=no 9326 save_LDFLAGS="$LDFLAGS" 9327 LDFLAGS="$LDFLAGS -b" 9328 echo "$lt_simple_link_test_code" > conftest.$ac_ext 9329 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 9330 # The linker can only warn and ignore the option if not recognized 9331 # So say no if there are warnings 9332 if test -s conftest.err; then 9333 # Append any errors to the config.log. 9334 cat conftest.err 1>&5 9335 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 9336 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9337 if diff conftest.exp conftest.er2 >/dev/null; then 9338 lt_cv_prog_compiler__b=yes 9339 fi 9340 else 9341 lt_cv_prog_compiler__b=yes 9342 fi 9343 fi 9344 $RM -r conftest* 9345 LDFLAGS="$save_LDFLAGS" 9346 9347fi 9348{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 9349$as_echo "$lt_cv_prog_compiler__b" >&6; } 9350 9351if test x"$lt_cv_prog_compiler__b" = xyes; then 9352 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9353else 9354 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 9355fi 9356 9357 ;; 9358 esac 9359 fi 9360 if test "$with_gnu_ld" = no; then 9361 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9362 hardcode_libdir_separator=: 9363 9364 case $host_cpu in 9365 hppa*64*|ia64*) 9366 hardcode_direct=no 9367 hardcode_shlibpath_var=no 9368 ;; 9369 *) 9370 hardcode_direct=yes 9371 hardcode_direct_absolute=yes 9372 export_dynamic_flag_spec='${wl}-E' 9373 9374 # hardcode_minus_L: Not really in the search PATH, 9375 # but as the default location of the library. 9376 hardcode_minus_L=yes 9377 ;; 9378 esac 9379 fi 9380 ;; 9381 9382 irix5* | irix6* | nonstopux*) 9383 if test "$GCC" = yes; then 9384 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' 9385 # Try to use the -exported_symbol ld option, if it does not 9386 # work, assume that -exports_file does not work either and 9387 # implicitly export all symbols. 9388 # This should be the same for all languages, so no per-tag cache variable. 9389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 9390$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 9391if ${lt_cv_irix_exported_symbol+:} false; then : 9392 $as_echo_n "(cached) " >&6 9393else 9394 save_LDFLAGS="$LDFLAGS" 9395 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" 9396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9397/* end confdefs.h. */ 9398int foo (void) { return 0; } 9399_ACEOF 9400if ac_fn_c_try_link "$LINENO"; then : 9401 lt_cv_irix_exported_symbol=yes 9402else 9403 lt_cv_irix_exported_symbol=no 9404fi 9405rm -f core conftest.err conftest.$ac_objext \ 9406 conftest$ac_exeext conftest.$ac_ext 9407 LDFLAGS="$save_LDFLAGS" 9408fi 9409{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 9410$as_echo "$lt_cv_irix_exported_symbol" >&6; } 9411 if test "$lt_cv_irix_exported_symbol" = yes; then 9412 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' 9413 fi 9414 else 9415 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' 9416 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' 9417 fi 9418 archive_cmds_need_lc='no' 9419 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9420 hardcode_libdir_separator=: 9421 inherit_rpath=yes 9422 link_all_deplibs=yes 9423 ;; 9424 9425 netbsd*) 9426 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9427 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 9428 else 9429 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 9430 fi 9431 hardcode_libdir_flag_spec='-R$libdir' 9432 hardcode_direct=yes 9433 hardcode_shlibpath_var=no 9434 ;; 9435 9436 newsos6) 9437 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9438 hardcode_direct=yes 9439 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9440 hardcode_libdir_separator=: 9441 hardcode_shlibpath_var=no 9442 ;; 9443 9444 *nto* | *qnx*) 9445 ;; 9446 9447 openbsd*) 9448 if test -f /usr/libexec/ld.so; then 9449 hardcode_direct=yes 9450 hardcode_shlibpath_var=no 9451 hardcode_direct_absolute=yes 9452 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 9453 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9454 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 9455 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9456 export_dynamic_flag_spec='${wl}-E' 9457 else 9458 case $host_os in 9459 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 9460 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9461 hardcode_libdir_flag_spec='-R$libdir' 9462 ;; 9463 *) 9464 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9465 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9466 ;; 9467 esac 9468 fi 9469 else 9470 ld_shlibs=no 9471 fi 9472 ;; 9473 9474 os2*) 9475 hardcode_libdir_flag_spec='-L$libdir' 9476 hardcode_minus_L=yes 9477 allow_undefined_flag=unsupported 9478 archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' 9479 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 9480 ;; 9481 9482 osf3*) 9483 if test "$GCC" = yes; then 9484 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 9485 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' 9486 else 9487 allow_undefined_flag=' -expect_unresolved \*' 9488 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' 9489 fi 9490 archive_cmds_need_lc='no' 9491 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9492 hardcode_libdir_separator=: 9493 ;; 9494 9495 osf4* | osf5*) # as osf3* with the addition of -msym flag 9496 if test "$GCC" = yes; then 9497 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 9498 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' 9499 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9500 else 9501 allow_undefined_flag=' -expect_unresolved \*' 9502 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' 9503 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~ 9504 $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' 9505 9506 # Both c and cxx compiler support -rpath directly 9507 hardcode_libdir_flag_spec='-rpath $libdir' 9508 fi 9509 archive_cmds_need_lc='no' 9510 hardcode_libdir_separator=: 9511 ;; 9512 9513 solaris*) 9514 no_undefined_flag=' -z defs' 9515 if test "$GCC" = yes; then 9516 wlarc='${wl}' 9517 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9518 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9519 $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' 9520 else 9521 case `$CC -V 2>&1` in 9522 *"Compilers 5.0"*) 9523 wlarc='' 9524 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 9525 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9526 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 9527 ;; 9528 *) 9529 wlarc='${wl}' 9530 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' 9531 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9532 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 9533 ;; 9534 esac 9535 fi 9536 hardcode_libdir_flag_spec='-R$libdir' 9537 hardcode_shlibpath_var=no 9538 case $host_os in 9539 solaris2.[0-5] | solaris2.[0-5].*) ;; 9540 *) 9541 # The compiler driver will combine and reorder linker options, 9542 # but understands `-z linker_flag'. GCC discards it without `$wl', 9543 # but is careful enough not to reorder. 9544 # Supported since Solaris 2.6 (maybe 2.5.1?) 9545 if test "$GCC" = yes; then 9546 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 9547 else 9548 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 9549 fi 9550 ;; 9551 esac 9552 link_all_deplibs=yes 9553 ;; 9554 9555 sunos4*) 9556 if test "x$host_vendor" = xsequent; then 9557 # Use $CC to link under sequent, because it throws in some extra .o 9558 # files that make .init and .fini sections work. 9559 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 9560 else 9561 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 9562 fi 9563 hardcode_libdir_flag_spec='-L$libdir' 9564 hardcode_direct=yes 9565 hardcode_minus_L=yes 9566 hardcode_shlibpath_var=no 9567 ;; 9568 9569 sysv4) 9570 case $host_vendor in 9571 sni) 9572 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9573 hardcode_direct=yes # is this really true??? 9574 ;; 9575 siemens) 9576 ## LD is ld it makes a PLAMLIB 9577 ## CC just makes a GrossModule. 9578 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 9579 reload_cmds='$CC -r -o $output$reload_objs' 9580 hardcode_direct=no 9581 ;; 9582 motorola) 9583 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9584 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 9585 ;; 9586 esac 9587 runpath_var='LD_RUN_PATH' 9588 hardcode_shlibpath_var=no 9589 ;; 9590 9591 sysv4.3*) 9592 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9593 hardcode_shlibpath_var=no 9594 export_dynamic_flag_spec='-Bexport' 9595 ;; 9596 9597 sysv4*MP*) 9598 if test -d /usr/nec; then 9599 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9600 hardcode_shlibpath_var=no 9601 runpath_var=LD_RUN_PATH 9602 hardcode_runpath_var=yes 9603 ld_shlibs=yes 9604 fi 9605 ;; 9606 9607 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 9608 no_undefined_flag='${wl}-z,text' 9609 archive_cmds_need_lc=no 9610 hardcode_shlibpath_var=no 9611 runpath_var='LD_RUN_PATH' 9612 9613 if test "$GCC" = yes; then 9614 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9615 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9616 else 9617 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9618 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9619 fi 9620 ;; 9621 9622 sysv5* | sco3.2v5* | sco5v6*) 9623 # Note: We can NOT use -z defs as we might desire, because we do not 9624 # link with -lc, and that would cause any symbols used from libc to 9625 # always be unresolved, which means just about no library would 9626 # ever link correctly. If we're not using GNU ld we use -z text 9627 # though, which does catch some bad symbols but isn't as heavy-handed 9628 # as -z defs. 9629 no_undefined_flag='${wl}-z,text' 9630 allow_undefined_flag='${wl}-z,nodefs' 9631 archive_cmds_need_lc=no 9632 hardcode_shlibpath_var=no 9633 hardcode_libdir_flag_spec='${wl}-R,$libdir' 9634 hardcode_libdir_separator=':' 9635 link_all_deplibs=yes 9636 export_dynamic_flag_spec='${wl}-Bexport' 9637 runpath_var='LD_RUN_PATH' 9638 9639 if test "$GCC" = yes; then 9640 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9641 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9642 else 9643 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9644 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9645 fi 9646 ;; 9647 9648 uts4*) 9649 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9650 hardcode_libdir_flag_spec='-L$libdir' 9651 hardcode_shlibpath_var=no 9652 ;; 9653 9654 *) 9655 ld_shlibs=no 9656 ;; 9657 esac 9658 9659 if test x$host_vendor = xsni; then 9660 case $host in 9661 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 9662 export_dynamic_flag_spec='${wl}-Blargedynsym' 9663 ;; 9664 esac 9665 fi 9666 fi 9667 9668{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 9669$as_echo "$ld_shlibs" >&6; } 9670test "$ld_shlibs" = no && can_build_shared=no 9671 9672with_gnu_ld=$with_gnu_ld 9673 9674 9675 9676 9677 9678 9679 9680 9681 9682 9683 9684 9685 9686 9687 9688# 9689# Do we need to explicitly link libc? 9690# 9691case "x$archive_cmds_need_lc" in 9692x|xyes) 9693 # Assume -lc should be added 9694 archive_cmds_need_lc=yes 9695 9696 if test "$enable_shared" = yes && test "$GCC" = yes; then 9697 case $archive_cmds in 9698 *'~'*) 9699 # FIXME: we may have to deal with multi-command sequences. 9700 ;; 9701 '$CC '*) 9702 # Test whether the compiler implicitly links with -lc since on some 9703 # systems, -lgcc has to come before -lc. If gcc already passes -lc 9704 # to ld, don't add -lc before -lgcc. 9705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 9706$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 9707if ${lt_cv_archive_cmds_need_lc+:} false; then : 9708 $as_echo_n "(cached) " >&6 9709else 9710 $RM conftest* 9711 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9712 9713 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 9714 (eval $ac_compile) 2>&5 9715 ac_status=$? 9716 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9717 test $ac_status = 0; } 2>conftest.err; then 9718 soname=conftest 9719 lib=conftest 9720 libobjs=conftest.$ac_objext 9721 deplibs= 9722 wl=$lt_prog_compiler_wl 9723 pic_flag=$lt_prog_compiler_pic 9724 compiler_flags=-v 9725 linker_flags=-v 9726 verstring= 9727 output_objdir=. 9728 libname=conftest 9729 lt_save_allow_undefined_flag=$allow_undefined_flag 9730 allow_undefined_flag= 9731 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 9732 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 9733 ac_status=$? 9734 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9735 test $ac_status = 0; } 9736 then 9737 lt_cv_archive_cmds_need_lc=no 9738 else 9739 lt_cv_archive_cmds_need_lc=yes 9740 fi 9741 allow_undefined_flag=$lt_save_allow_undefined_flag 9742 else 9743 cat conftest.err 1>&5 9744 fi 9745 $RM conftest* 9746 9747fi 9748{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 9749$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 9750 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 9751 ;; 9752 esac 9753 fi 9754 ;; 9755esac 9756 9757 9758 9759 9760 9761 9762 9763 9764 9765 9766 9767 9768 9769 9770 9771 9772 9773 9774 9775 9776 9777 9778 9779 9780 9781 9782 9783 9784 9785 9786 9787 9788 9789 9790 9791 9792 9793 9794 9795 9796 9797 9798 9799 9800 9801 9802 9803 9804 9805 9806 9807 9808 9809 9810 9811 9812 9813 9814 9815 9816 9817 9818 9819 9820 9821 9822 9823 9824 9825 9826 9827 9828 9829 9830 9831 9832 9833 9834 9835 9836 9837 9838 9839 9840 9841 9842 9843 9844 9845 9846 9847 9848 9849 9850 9851 9852 9853 9854 9855 9856 9857 9858 9859 9860 9861 9862 9863 9864 9865 9866 9867 9868 9869 9870 9871 9872 9873 9874 9875 9876 9877 9878 9879 9880 9881 9882 9883 9884 9885 9886 9887 9888 9889 9890 9891 9892 9893 9894 9895 9896 9897 9898 9899 9900 9901 9902 9903 9904 9905 9906 9907 9908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 9909$as_echo_n "checking dynamic linker characteristics... " >&6; } 9910 9911if test "$GCC" = yes; then 9912 case $host_os in 9913 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; 9914 *) lt_awk_arg="/^libraries:/" ;; 9915 esac 9916 case $host_os in 9917 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;; 9918 *) lt_sed_strip_eq="s,=/,/,g" ;; 9919 esac 9920 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 9921 case $lt_search_path_spec in 9922 *\;*) 9923 # if the path contains ";" then we assume it to be the separator 9924 # otherwise default to the standard path separator (i.e. ":") - it is 9925 # assumed that no part of a normal pathname contains ";" but that should 9926 # okay in the real world where ";" in dirpaths is itself problematic. 9927 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 9928 ;; 9929 *) 9930 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 9931 ;; 9932 esac 9933 # Ok, now we have the path, separated by spaces, we can step through it 9934 # and add multilib dir if necessary. 9935 lt_tmp_lt_search_path_spec= 9936 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 9937 for lt_sys_path in $lt_search_path_spec; do 9938 if test -d "$lt_sys_path/$lt_multi_os_dir"; then 9939 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" 9940 else 9941 test -d "$lt_sys_path" && \ 9942 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 9943 fi 9944 done 9945 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 9946BEGIN {RS=" "; FS="/|\n";} { 9947 lt_foo=""; 9948 lt_count=0; 9949 for (lt_i = NF; lt_i > 0; lt_i--) { 9950 if ($lt_i != "" && $lt_i != ".") { 9951 if ($lt_i == "..") { 9952 lt_count++; 9953 } else { 9954 if (lt_count == 0) { 9955 lt_foo="/" $lt_i lt_foo; 9956 } else { 9957 lt_count--; 9958 } 9959 } 9960 } 9961 } 9962 if (lt_foo != "") { lt_freq[lt_foo]++; } 9963 if (lt_freq[lt_foo] == 1) { print lt_foo; } 9964}'` 9965 # AWK program above erroneously prepends '/' to C:/dos/paths 9966 # for these hosts. 9967 case $host_os in 9968 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 9969 $SED 's,/\([A-Za-z]:\),\1,g'` ;; 9970 esac 9971 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 9972else 9973 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 9974fi 9975library_names_spec= 9976libname_spec='lib$name' 9977soname_spec= 9978shrext_cmds=".so" 9979postinstall_cmds= 9980postuninstall_cmds= 9981finish_cmds= 9982finish_eval= 9983shlibpath_var= 9984shlibpath_overrides_runpath=unknown 9985version_type=none 9986dynamic_linker="$host_os ld.so" 9987sys_lib_dlsearch_path_spec="/lib /usr/lib" 9988need_lib_prefix=unknown 9989hardcode_into_libs=no 9990 9991# when you set need_version to no, make sure it does not cause -set_version 9992# flags to be left without arguments 9993need_version=unknown 9994 9995case $host_os in 9996aix3*) 9997 version_type=linux # correct to gnu/linux during the next big refactor 9998 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 9999 shlibpath_var=LIBPATH 10000 10001 # AIX 3 has no versioning support, so we append a major version to the name. 10002 soname_spec='${libname}${release}${shared_ext}$major' 10003 ;; 10004 10005aix[4-9]*) 10006 version_type=linux # correct to gnu/linux during the next big refactor 10007 need_lib_prefix=no 10008 need_version=no 10009 hardcode_into_libs=yes 10010 if test "$host_cpu" = ia64; then 10011 # AIX 5 supports IA64 10012 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 10013 shlibpath_var=LD_LIBRARY_PATH 10014 else 10015 # With GCC up to 2.95.x, collect2 would create an import file 10016 # for dependence libraries. The import file would start with 10017 # the line `#! .'. This would cause the generated library to 10018 # depend on `.', always an invalid library. This was fixed in 10019 # development snapshots of GCC prior to 3.0. 10020 case $host_os in 10021 aix4 | aix4.[01] | aix4.[01].*) 10022 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 10023 echo ' yes ' 10024 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 10025 : 10026 else 10027 can_build_shared=no 10028 fi 10029 ;; 10030 esac 10031 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 10032 # soname into executable. Probably we can add versioning support to 10033 # collect2, so additional links can be useful in future. 10034 if test "$aix_use_runtimelinking" = yes; then 10035 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 10036 # instead of lib<name>.a to let people know that these are not 10037 # typical AIX shared libraries. 10038 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10039 else 10040 # We preserve .a as extension for shared libraries through AIX4.2 10041 # and later when we are not doing run time linking. 10042 library_names_spec='${libname}${release}.a $libname.a' 10043 soname_spec='${libname}${release}${shared_ext}$major' 10044 fi 10045 shlibpath_var=LIBPATH 10046 fi 10047 ;; 10048 10049amigaos*) 10050 case $host_cpu in 10051 powerpc) 10052 # Since July 2007 AmigaOS4 officially supports .so libraries. 10053 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 10054 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10055 ;; 10056 m68k) 10057 library_names_spec='$libname.ixlibrary $libname.a' 10058 # Create ${libname}_ixlibrary.a entries in /sys/libs. 10059 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $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' 10060 ;; 10061 esac 10062 ;; 10063 10064beos*) 10065 library_names_spec='${libname}${shared_ext}' 10066 dynamic_linker="$host_os ld.so" 10067 shlibpath_var=LIBRARY_PATH 10068 ;; 10069 10070bsdi[45]*) 10071 version_type=linux # correct to gnu/linux during the next big refactor 10072 need_version=no 10073 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10074 soname_spec='${libname}${release}${shared_ext}$major' 10075 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 10076 shlibpath_var=LD_LIBRARY_PATH 10077 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 10078 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 10079 # the default ld.so.conf also contains /usr/contrib/lib and 10080 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 10081 # libtool to hard-code these into programs 10082 ;; 10083 10084cygwin* | mingw* | pw32* | cegcc*) 10085 version_type=windows 10086 shrext_cmds=".dll" 10087 need_version=no 10088 need_lib_prefix=no 10089 10090 case $GCC,$cc_basename in 10091 yes,*) 10092 # gcc 10093 library_names_spec='$libname.dll.a' 10094 # DLL is installed to $(libdir)/../bin by postinstall_cmds 10095 postinstall_cmds='base_file=`basename \${file}`~ 10096 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 10097 dldir=$destdir/`dirname \$dlpath`~ 10098 test -d \$dldir || mkdir -p \$dldir~ 10099 $install_prog $dir/$dlname \$dldir/$dlname~ 10100 chmod a+x \$dldir/$dlname~ 10101 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 10102 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 10103 fi' 10104 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 10105 dlpath=$dir/\$dldll~ 10106 $RM \$dlpath' 10107 shlibpath_overrides_runpath=yes 10108 10109 case $host_os in 10110 cygwin*) 10111 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 10112 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10113 10114 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 10115 ;; 10116 mingw* | cegcc*) 10117 # MinGW DLLs use traditional 'lib' prefix 10118 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10119 ;; 10120 pw32*) 10121 # pw32 DLLs use 'pw' prefix rather than 'lib' 10122 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10123 ;; 10124 esac 10125 dynamic_linker='Win32 ld.exe' 10126 ;; 10127 10128 *,cl*) 10129 # Native MSVC 10130 libname_spec='$name' 10131 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10132 library_names_spec='${libname}.dll.lib' 10133 10134 case $build_os in 10135 mingw*) 10136 sys_lib_search_path_spec= 10137 lt_save_ifs=$IFS 10138 IFS=';' 10139 for lt_path in $LIB 10140 do 10141 IFS=$lt_save_ifs 10142 # Let DOS variable expansion print the short 8.3 style file name. 10143 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 10144 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 10145 done 10146 IFS=$lt_save_ifs 10147 # Convert to MSYS style. 10148 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 10149 ;; 10150 cygwin*) 10151 # Convert to unix form, then to dos form, then back to unix form 10152 # but this time dos style (no spaces!) so that the unix form looks 10153 # like /cygdrive/c/PROGRA~1:/cygdr... 10154 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 10155 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 10156 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 10157 ;; 10158 *) 10159 sys_lib_search_path_spec="$LIB" 10160 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 10161 # It is most probably a Windows format PATH. 10162 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 10163 else 10164 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 10165 fi 10166 # FIXME: find the short name or the path components, as spaces are 10167 # common. (e.g. "Program Files" -> "PROGRA~1") 10168 ;; 10169 esac 10170 10171 # DLL is installed to $(libdir)/../bin by postinstall_cmds 10172 postinstall_cmds='base_file=`basename \${file}`~ 10173 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 10174 dldir=$destdir/`dirname \$dlpath`~ 10175 test -d \$dldir || mkdir -p \$dldir~ 10176 $install_prog $dir/$dlname \$dldir/$dlname' 10177 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 10178 dlpath=$dir/\$dldll~ 10179 $RM \$dlpath' 10180 shlibpath_overrides_runpath=yes 10181 dynamic_linker='Win32 link.exe' 10182 ;; 10183 10184 *) 10185 # Assume MSVC wrapper 10186 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 10187 dynamic_linker='Win32 ld.exe' 10188 ;; 10189 esac 10190 # FIXME: first we should search . and the directory the executable is in 10191 shlibpath_var=PATH 10192 ;; 10193 10194darwin* | rhapsody*) 10195 dynamic_linker="$host_os dyld" 10196 version_type=darwin 10197 need_lib_prefix=no 10198 need_version=no 10199 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 10200 soname_spec='${libname}${release}${major}$shared_ext' 10201 shlibpath_overrides_runpath=yes 10202 shlibpath_var=DYLD_LIBRARY_PATH 10203 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 10204 10205 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 10206 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 10207 ;; 10208 10209dgux*) 10210 version_type=linux # correct to gnu/linux during the next big refactor 10211 need_lib_prefix=no 10212 need_version=no 10213 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 10214 soname_spec='${libname}${release}${shared_ext}$major' 10215 shlibpath_var=LD_LIBRARY_PATH 10216 ;; 10217 10218freebsd* | dragonfly*) 10219 # DragonFly does not have aout. When/if they implement a new 10220 # versioning mechanism, adjust this. 10221 if test -x /usr/bin/objformat; then 10222 objformat=`/usr/bin/objformat` 10223 else 10224 case $host_os in 10225 freebsd[23].*) objformat=aout ;; 10226 *) objformat=elf ;; 10227 esac 10228 fi 10229 version_type=freebsd-$objformat 10230 case $version_type in 10231 freebsd-elf*) 10232 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 10233 need_version=no 10234 need_lib_prefix=no 10235 ;; 10236 freebsd-*) 10237 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 10238 need_version=yes 10239 ;; 10240 esac 10241 shlibpath_var=LD_LIBRARY_PATH 10242 case $host_os in 10243 freebsd2.*) 10244 shlibpath_overrides_runpath=yes 10245 ;; 10246 freebsd3.[01]* | freebsdelf3.[01]*) 10247 shlibpath_overrides_runpath=yes 10248 hardcode_into_libs=yes 10249 ;; 10250 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 10251 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 10252 shlibpath_overrides_runpath=no 10253 hardcode_into_libs=yes 10254 ;; 10255 *) # from 4.6 on, and DragonFly 10256 shlibpath_overrides_runpath=yes 10257 hardcode_into_libs=yes 10258 ;; 10259 esac 10260 ;; 10261 10262gnu*) 10263 version_type=linux # correct to gnu/linux during the next big refactor 10264 need_lib_prefix=no 10265 need_version=no 10266 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 10267 soname_spec='${libname}${release}${shared_ext}$major' 10268 shlibpath_var=LD_LIBRARY_PATH 10269 shlibpath_overrides_runpath=no 10270 hardcode_into_libs=yes 10271 ;; 10272 10273haiku*) 10274 version_type=linux # correct to gnu/linux during the next big refactor 10275 need_lib_prefix=no 10276 need_version=no 10277 dynamic_linker="$host_os runtime_loader" 10278 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 10279 soname_spec='${libname}${release}${shared_ext}$major' 10280 shlibpath_var=LIBRARY_PATH 10281 shlibpath_overrides_runpath=yes 10282 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 10283 hardcode_into_libs=yes 10284 ;; 10285 10286hpux9* | hpux10* | hpux11*) 10287 # Give a soname corresponding to the major version so that dld.sl refuses to 10288 # link against other versions. 10289 version_type=sunos 10290 need_lib_prefix=no 10291 need_version=no 10292 case $host_cpu in 10293 ia64*) 10294 shrext_cmds='.so' 10295 hardcode_into_libs=yes 10296 dynamic_linker="$host_os dld.so" 10297 shlibpath_var=LD_LIBRARY_PATH 10298 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 10299 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10300 soname_spec='${libname}${release}${shared_ext}$major' 10301 if test "X$HPUX_IA64_MODE" = X32; then 10302 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 10303 else 10304 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 10305 fi 10306 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 10307 ;; 10308 hppa*64*) 10309 shrext_cmds='.sl' 10310 hardcode_into_libs=yes 10311 dynamic_linker="$host_os dld.sl" 10312 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 10313 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 10314 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10315 soname_spec='${libname}${release}${shared_ext}$major' 10316 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 10317 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 10318 ;; 10319 *) 10320 shrext_cmds='.sl' 10321 dynamic_linker="$host_os dld.sl" 10322 shlibpath_var=SHLIB_PATH 10323 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 10324 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10325 soname_spec='${libname}${release}${shared_ext}$major' 10326 ;; 10327 esac 10328 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 10329 postinstall_cmds='chmod 555 $lib' 10330 # or fails outright, so override atomically: 10331 install_override_mode=555 10332 ;; 10333 10334interix[3-9]*) 10335 version_type=linux # correct to gnu/linux during the next big refactor 10336 need_lib_prefix=no 10337 need_version=no 10338 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 10339 soname_spec='${libname}${release}${shared_ext}$major' 10340 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 10341 shlibpath_var=LD_LIBRARY_PATH 10342 shlibpath_overrides_runpath=no 10343 hardcode_into_libs=yes 10344 ;; 10345 10346irix5* | irix6* | nonstopux*) 10347 case $host_os in 10348 nonstopux*) version_type=nonstopux ;; 10349 *) 10350 if test "$lt_cv_prog_gnu_ld" = yes; then 10351 version_type=linux # correct to gnu/linux during the next big refactor 10352 else 10353 version_type=irix 10354 fi ;; 10355 esac 10356 need_lib_prefix=no 10357 need_version=no 10358 soname_spec='${libname}${release}${shared_ext}$major' 10359 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 10360 case $host_os in 10361 irix5* | nonstopux*) 10362 libsuff= shlibsuff= 10363 ;; 10364 *) 10365 case $LD in # libtool.m4 will add one of these switches to LD 10366 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 10367 libsuff= shlibsuff= libmagic=32-bit;; 10368 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 10369 libsuff=32 shlibsuff=N32 libmagic=N32;; 10370 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 10371 libsuff=64 shlibsuff=64 libmagic=64-bit;; 10372 *) libsuff= shlibsuff= libmagic=never-match;; 10373 esac 10374 ;; 10375 esac 10376 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 10377 shlibpath_overrides_runpath=no 10378 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 10379 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 10380 hardcode_into_libs=yes 10381 ;; 10382 10383# No shared lib support for Linux oldld, aout, or coff. 10384linux*oldld* | linux*aout* | linux*coff*) 10385 dynamic_linker=no 10386 ;; 10387 10388# This must be glibc/ELF. 10389linux* | k*bsd*-gnu | kopensolaris*-gnu) 10390 version_type=linux # correct to gnu/linux during the next big refactor 10391 need_lib_prefix=no 10392 need_version=no 10393 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10394 soname_spec='${libname}${release}${shared_ext}$major' 10395 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 10396 shlibpath_var=LD_LIBRARY_PATH 10397 shlibpath_overrides_runpath=no 10398 10399 # Some binutils ld are patched to set DT_RUNPATH 10400 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 10401 $as_echo_n "(cached) " >&6 10402else 10403 lt_cv_shlibpath_overrides_runpath=no 10404 save_LDFLAGS=$LDFLAGS 10405 save_libdir=$libdir 10406 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 10407 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 10408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10409/* end confdefs.h. */ 10410 10411int 10412main () 10413{ 10414 10415 ; 10416 return 0; 10417} 10418_ACEOF 10419if ac_fn_c_try_link "$LINENO"; then : 10420 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 10421 lt_cv_shlibpath_overrides_runpath=yes 10422fi 10423fi 10424rm -f core conftest.err conftest.$ac_objext \ 10425 conftest$ac_exeext conftest.$ac_ext 10426 LDFLAGS=$save_LDFLAGS 10427 libdir=$save_libdir 10428 10429fi 10430 10431 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 10432 10433 # This implies no fast_install, which is unacceptable. 10434 # Some rework will be needed to allow for fast_install 10435 # before this can be enabled. 10436 hardcode_into_libs=yes 10437 10438 # Append ld.so.conf contents to the search path 10439 if test -f /etc/ld.so.conf; then 10440 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' ' '` 10441 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 10442 fi 10443 10444 # We used to test for /lib/ld.so.1 and disable shared libraries on 10445 # powerpc, because MkLinux only supported shared libraries with the 10446 # GNU dynamic linker. Since this was broken with cross compilers, 10447 # most powerpc-linux boxes support dynamic linking these days and 10448 # people can always --disable-shared, the test was removed, and we 10449 # assume the GNU/Linux dynamic linker is in use. 10450 dynamic_linker='GNU/Linux ld.so' 10451 ;; 10452 10453netbsd*) 10454 version_type=sunos 10455 need_lib_prefix=no 10456 need_version=no 10457 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10458 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10459 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 10460 dynamic_linker='NetBSD (a.out) ld.so' 10461 else 10462 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 10463 soname_spec='${libname}${release}${shared_ext}$major' 10464 dynamic_linker='NetBSD ld.elf_so' 10465 fi 10466 shlibpath_var=LD_LIBRARY_PATH 10467 shlibpath_overrides_runpath=yes 10468 hardcode_into_libs=yes 10469 ;; 10470 10471newsos6) 10472 version_type=linux # correct to gnu/linux during the next big refactor 10473 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10474 shlibpath_var=LD_LIBRARY_PATH 10475 shlibpath_overrides_runpath=yes 10476 ;; 10477 10478*nto* | *qnx*) 10479 version_type=qnx 10480 need_lib_prefix=no 10481 need_version=no 10482 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10483 soname_spec='${libname}${release}${shared_ext}$major' 10484 shlibpath_var=LD_LIBRARY_PATH 10485 shlibpath_overrides_runpath=no 10486 hardcode_into_libs=yes 10487 dynamic_linker='ldqnx.so' 10488 ;; 10489 10490openbsd*) 10491 version_type=sunos 10492 sys_lib_dlsearch_path_spec="/usr/lib" 10493 need_lib_prefix=no 10494 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 10495 case $host_os in 10496 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 10497 *) need_version=no ;; 10498 esac 10499 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10500 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 10501 shlibpath_var=LD_LIBRARY_PATH 10502 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 10503 case $host_os in 10504 openbsd2.[89] | openbsd2.[89].*) 10505 shlibpath_overrides_runpath=no 10506 ;; 10507 *) 10508 shlibpath_overrides_runpath=yes 10509 ;; 10510 esac 10511 else 10512 shlibpath_overrides_runpath=yes 10513 fi 10514 ;; 10515 10516os2*) 10517 libname_spec='$name' 10518 shrext_cmds=".dll" 10519 need_lib_prefix=no 10520 library_names_spec='$libname${shared_ext} $libname.a' 10521 dynamic_linker='OS/2 ld.exe' 10522 shlibpath_var=LIBPATH 10523 ;; 10524 10525osf3* | osf4* | osf5*) 10526 version_type=osf 10527 need_lib_prefix=no 10528 need_version=no 10529 soname_spec='${libname}${release}${shared_ext}$major' 10530 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10531 shlibpath_var=LD_LIBRARY_PATH 10532 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 10533 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 10534 ;; 10535 10536rdos*) 10537 dynamic_linker=no 10538 ;; 10539 10540solaris*) 10541 version_type=linux # correct to gnu/linux during the next big refactor 10542 need_lib_prefix=no 10543 need_version=no 10544 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10545 soname_spec='${libname}${release}${shared_ext}$major' 10546 shlibpath_var=LD_LIBRARY_PATH 10547 shlibpath_overrides_runpath=yes 10548 hardcode_into_libs=yes 10549 # ldd complains unless libraries are executable 10550 postinstall_cmds='chmod +x $lib' 10551 ;; 10552 10553sunos4*) 10554 version_type=sunos 10555 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10556 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 10557 shlibpath_var=LD_LIBRARY_PATH 10558 shlibpath_overrides_runpath=yes 10559 if test "$with_gnu_ld" = yes; then 10560 need_lib_prefix=no 10561 fi 10562 need_version=yes 10563 ;; 10564 10565sysv4 | sysv4.3*) 10566 version_type=linux # correct to gnu/linux during the next big refactor 10567 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10568 soname_spec='${libname}${release}${shared_ext}$major' 10569 shlibpath_var=LD_LIBRARY_PATH 10570 case $host_vendor in 10571 sni) 10572 shlibpath_overrides_runpath=no 10573 need_lib_prefix=no 10574 runpath_var=LD_RUN_PATH 10575 ;; 10576 siemens) 10577 need_lib_prefix=no 10578 ;; 10579 motorola) 10580 need_lib_prefix=no 10581 need_version=no 10582 shlibpath_overrides_runpath=no 10583 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 10584 ;; 10585 esac 10586 ;; 10587 10588sysv4*MP*) 10589 if test -d /usr/nec ;then 10590 version_type=linux # correct to gnu/linux during the next big refactor 10591 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 10592 soname_spec='$libname${shared_ext}.$major' 10593 shlibpath_var=LD_LIBRARY_PATH 10594 fi 10595 ;; 10596 10597sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 10598 version_type=freebsd-elf 10599 need_lib_prefix=no 10600 need_version=no 10601 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 10602 soname_spec='${libname}${release}${shared_ext}$major' 10603 shlibpath_var=LD_LIBRARY_PATH 10604 shlibpath_overrides_runpath=yes 10605 hardcode_into_libs=yes 10606 if test "$with_gnu_ld" = yes; then 10607 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 10608 else 10609 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 10610 case $host_os in 10611 sco3.2v5*) 10612 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 10613 ;; 10614 esac 10615 fi 10616 sys_lib_dlsearch_path_spec='/usr/lib' 10617 ;; 10618 10619tpf*) 10620 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 10621 version_type=linux # correct to gnu/linux during the next big refactor 10622 need_lib_prefix=no 10623 need_version=no 10624 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10625 shlibpath_var=LD_LIBRARY_PATH 10626 shlibpath_overrides_runpath=no 10627 hardcode_into_libs=yes 10628 ;; 10629 10630uts4*) 10631 version_type=linux # correct to gnu/linux during the next big refactor 10632 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10633 soname_spec='${libname}${release}${shared_ext}$major' 10634 shlibpath_var=LD_LIBRARY_PATH 10635 ;; 10636 10637*) 10638 dynamic_linker=no 10639 ;; 10640esac 10641{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 10642$as_echo "$dynamic_linker" >&6; } 10643test "$dynamic_linker" = no && can_build_shared=no 10644 10645variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 10646if test "$GCC" = yes; then 10647 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 10648fi 10649 10650if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 10651 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 10652fi 10653if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 10654 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 10655fi 10656 10657 10658 10659 10660 10661 10662 10663 10664 10665 10666 10667 10668 10669 10670 10671 10672 10673 10674 10675 10676 10677 10678 10679 10680 10681 10682 10683 10684 10685 10686 10687 10688 10689 10690 10691 10692 10693 10694 10695 10696 10697 10698 10699 10700 10701 10702 10703 10704 10705 10706 10707 10708 10709 10710 10711 10712 10713 10714 10715 10716 10717 10718 10719 10720 10721 10722 10723 10724 10725 10726 10727 10728 10729 10730 10731 10732 10733 10734 10735 10736 10737 10738 10739 10740 10741 10742 10743 10744 10745 10746 10747 10748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 10749$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 10750hardcode_action= 10751if test -n "$hardcode_libdir_flag_spec" || 10752 test -n "$runpath_var" || 10753 test "X$hardcode_automatic" = "Xyes" ; then 10754 10755 # We can hardcode non-existent directories. 10756 if test "$hardcode_direct" != no && 10757 # If the only mechanism to avoid hardcoding is shlibpath_var, we 10758 # have to relink, otherwise we might link with an installed library 10759 # when we should be linking with a yet-to-be-installed one 10760 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && 10761 test "$hardcode_minus_L" != no; then 10762 # Linking always hardcodes the temporary library directory. 10763 hardcode_action=relink 10764 else 10765 # We can link without hardcoding, and we can hardcode nonexisting dirs. 10766 hardcode_action=immediate 10767 fi 10768else 10769 # We cannot hardcode anything, or else we can only hardcode existing 10770 # directories. 10771 hardcode_action=unsupported 10772fi 10773{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 10774$as_echo "$hardcode_action" >&6; } 10775 10776if test "$hardcode_action" = relink || 10777 test "$inherit_rpath" = yes; then 10778 # Fast installation is not supported 10779 enable_fast_install=no 10780elif test "$shlibpath_overrides_runpath" = yes || 10781 test "$enable_shared" = no; then 10782 # Fast installation is not necessary 10783 enable_fast_install=needless 10784fi 10785 10786 10787 10788 10789 10790 10791 if test "x$enable_dlopen" != xyes; then 10792 enable_dlopen=unknown 10793 enable_dlopen_self=unknown 10794 enable_dlopen_self_static=unknown 10795else 10796 lt_cv_dlopen=no 10797 lt_cv_dlopen_libs= 10798 10799 case $host_os in 10800 beos*) 10801 lt_cv_dlopen="load_add_on" 10802 lt_cv_dlopen_libs= 10803 lt_cv_dlopen_self=yes 10804 ;; 10805 10806 mingw* | pw32* | cegcc*) 10807 lt_cv_dlopen="LoadLibrary" 10808 lt_cv_dlopen_libs= 10809 ;; 10810 10811 cygwin*) 10812 lt_cv_dlopen="dlopen" 10813 lt_cv_dlopen_libs= 10814 ;; 10815 10816 darwin*) 10817 # if libdl is installed we need to link against it 10818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 10819$as_echo_n "checking for dlopen in -ldl... " >&6; } 10820if ${ac_cv_lib_dl_dlopen+:} false; then : 10821 $as_echo_n "(cached) " >&6 10822else 10823 ac_check_lib_save_LIBS=$LIBS 10824LIBS="-ldl $LIBS" 10825cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10826/* end confdefs.h. */ 10827 10828/* Override any GCC internal prototype to avoid an error. 10829 Use char because int might match the return type of a GCC 10830 builtin and then its argument prototype would still apply. */ 10831#ifdef __cplusplus 10832extern "C" 10833#endif 10834char dlopen (); 10835int 10836main () 10837{ 10838return dlopen (); 10839 ; 10840 return 0; 10841} 10842_ACEOF 10843if ac_fn_c_try_link "$LINENO"; then : 10844 ac_cv_lib_dl_dlopen=yes 10845else 10846 ac_cv_lib_dl_dlopen=no 10847fi 10848rm -f core conftest.err conftest.$ac_objext \ 10849 conftest$ac_exeext conftest.$ac_ext 10850LIBS=$ac_check_lib_save_LIBS 10851fi 10852{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 10853$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 10854if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 10855 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 10856else 10857 10858 lt_cv_dlopen="dyld" 10859 lt_cv_dlopen_libs= 10860 lt_cv_dlopen_self=yes 10861 10862fi 10863 10864 ;; 10865 10866 *) 10867 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 10868if test "x$ac_cv_func_shl_load" = xyes; then : 10869 lt_cv_dlopen="shl_load" 10870else 10871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 10872$as_echo_n "checking for shl_load in -ldld... " >&6; } 10873if ${ac_cv_lib_dld_shl_load+:} false; then : 10874 $as_echo_n "(cached) " >&6 10875else 10876 ac_check_lib_save_LIBS=$LIBS 10877LIBS="-ldld $LIBS" 10878cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10879/* end confdefs.h. */ 10880 10881/* Override any GCC internal prototype to avoid an error. 10882 Use char because int might match the return type of a GCC 10883 builtin and then its argument prototype would still apply. */ 10884#ifdef __cplusplus 10885extern "C" 10886#endif 10887char shl_load (); 10888int 10889main () 10890{ 10891return shl_load (); 10892 ; 10893 return 0; 10894} 10895_ACEOF 10896if ac_fn_c_try_link "$LINENO"; then : 10897 ac_cv_lib_dld_shl_load=yes 10898else 10899 ac_cv_lib_dld_shl_load=no 10900fi 10901rm -f core conftest.err conftest.$ac_objext \ 10902 conftest$ac_exeext conftest.$ac_ext 10903LIBS=$ac_check_lib_save_LIBS 10904fi 10905{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 10906$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 10907if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 10908 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" 10909else 10910 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 10911if test "x$ac_cv_func_dlopen" = xyes; then : 10912 lt_cv_dlopen="dlopen" 10913else 10914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 10915$as_echo_n "checking for dlopen in -ldl... " >&6; } 10916if ${ac_cv_lib_dl_dlopen+:} false; then : 10917 $as_echo_n "(cached) " >&6 10918else 10919 ac_check_lib_save_LIBS=$LIBS 10920LIBS="-ldl $LIBS" 10921cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10922/* end confdefs.h. */ 10923 10924/* Override any GCC internal prototype to avoid an error. 10925 Use char because int might match the return type of a GCC 10926 builtin and then its argument prototype would still apply. */ 10927#ifdef __cplusplus 10928extern "C" 10929#endif 10930char dlopen (); 10931int 10932main () 10933{ 10934return dlopen (); 10935 ; 10936 return 0; 10937} 10938_ACEOF 10939if ac_fn_c_try_link "$LINENO"; then : 10940 ac_cv_lib_dl_dlopen=yes 10941else 10942 ac_cv_lib_dl_dlopen=no 10943fi 10944rm -f core conftest.err conftest.$ac_objext \ 10945 conftest$ac_exeext conftest.$ac_ext 10946LIBS=$ac_check_lib_save_LIBS 10947fi 10948{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 10949$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 10950if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 10951 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 10952else 10953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 10954$as_echo_n "checking for dlopen in -lsvld... " >&6; } 10955if ${ac_cv_lib_svld_dlopen+:} false; then : 10956 $as_echo_n "(cached) " >&6 10957else 10958 ac_check_lib_save_LIBS=$LIBS 10959LIBS="-lsvld $LIBS" 10960cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10961/* end confdefs.h. */ 10962 10963/* Override any GCC internal prototype to avoid an error. 10964 Use char because int might match the return type of a GCC 10965 builtin and then its argument prototype would still apply. */ 10966#ifdef __cplusplus 10967extern "C" 10968#endif 10969char dlopen (); 10970int 10971main () 10972{ 10973return dlopen (); 10974 ; 10975 return 0; 10976} 10977_ACEOF 10978if ac_fn_c_try_link "$LINENO"; then : 10979 ac_cv_lib_svld_dlopen=yes 10980else 10981 ac_cv_lib_svld_dlopen=no 10982fi 10983rm -f core conftest.err conftest.$ac_objext \ 10984 conftest$ac_exeext conftest.$ac_ext 10985LIBS=$ac_check_lib_save_LIBS 10986fi 10987{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 10988$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 10989if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 10990 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 10991else 10992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 10993$as_echo_n "checking for dld_link in -ldld... " >&6; } 10994if ${ac_cv_lib_dld_dld_link+:} false; then : 10995 $as_echo_n "(cached) " >&6 10996else 10997 ac_check_lib_save_LIBS=$LIBS 10998LIBS="-ldld $LIBS" 10999cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11000/* end confdefs.h. */ 11001 11002/* Override any GCC internal prototype to avoid an error. 11003 Use char because int might match the return type of a GCC 11004 builtin and then its argument prototype would still apply. */ 11005#ifdef __cplusplus 11006extern "C" 11007#endif 11008char dld_link (); 11009int 11010main () 11011{ 11012return dld_link (); 11013 ; 11014 return 0; 11015} 11016_ACEOF 11017if ac_fn_c_try_link "$LINENO"; then : 11018 ac_cv_lib_dld_dld_link=yes 11019else 11020 ac_cv_lib_dld_dld_link=no 11021fi 11022rm -f core conftest.err conftest.$ac_objext \ 11023 conftest$ac_exeext conftest.$ac_ext 11024LIBS=$ac_check_lib_save_LIBS 11025fi 11026{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 11027$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 11028if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 11029 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" 11030fi 11031 11032 11033fi 11034 11035 11036fi 11037 11038 11039fi 11040 11041 11042fi 11043 11044 11045fi 11046 11047 ;; 11048 esac 11049 11050 if test "x$lt_cv_dlopen" != xno; then 11051 enable_dlopen=yes 11052 else 11053 enable_dlopen=no 11054 fi 11055 11056 case $lt_cv_dlopen in 11057 dlopen) 11058 save_CPPFLAGS="$CPPFLAGS" 11059 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 11060 11061 save_LDFLAGS="$LDFLAGS" 11062 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 11063 11064 save_LIBS="$LIBS" 11065 LIBS="$lt_cv_dlopen_libs $LIBS" 11066 11067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 11068$as_echo_n "checking whether a program can dlopen itself... " >&6; } 11069if ${lt_cv_dlopen_self+:} false; then : 11070 $as_echo_n "(cached) " >&6 11071else 11072 if test "$cross_compiling" = yes; then : 11073 lt_cv_dlopen_self=cross 11074else 11075 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11076 lt_status=$lt_dlunknown 11077 cat > conftest.$ac_ext <<_LT_EOF 11078#line $LINENO "configure" 11079#include "confdefs.h" 11080 11081#if HAVE_DLFCN_H 11082#include <dlfcn.h> 11083#endif 11084 11085#include <stdio.h> 11086 11087#ifdef RTLD_GLOBAL 11088# define LT_DLGLOBAL RTLD_GLOBAL 11089#else 11090# ifdef DL_GLOBAL 11091# define LT_DLGLOBAL DL_GLOBAL 11092# else 11093# define LT_DLGLOBAL 0 11094# endif 11095#endif 11096 11097/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11098 find out it does not work in some platform. */ 11099#ifndef LT_DLLAZY_OR_NOW 11100# ifdef RTLD_LAZY 11101# define LT_DLLAZY_OR_NOW RTLD_LAZY 11102# else 11103# ifdef DL_LAZY 11104# define LT_DLLAZY_OR_NOW DL_LAZY 11105# else 11106# ifdef RTLD_NOW 11107# define LT_DLLAZY_OR_NOW RTLD_NOW 11108# else 11109# ifdef DL_NOW 11110# define LT_DLLAZY_OR_NOW DL_NOW 11111# else 11112# define LT_DLLAZY_OR_NOW 0 11113# endif 11114# endif 11115# endif 11116# endif 11117#endif 11118 11119/* When -fvisbility=hidden is used, assume the code has been annotated 11120 correspondingly for the symbols needed. */ 11121#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 11122int fnord () __attribute__((visibility("default"))); 11123#endif 11124 11125int fnord () { return 42; } 11126int main () 11127{ 11128 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11129 int status = $lt_dlunknown; 11130 11131 if (self) 11132 { 11133 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11134 else 11135 { 11136 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11137 else puts (dlerror ()); 11138 } 11139 /* dlclose (self); */ 11140 } 11141 else 11142 puts (dlerror ()); 11143 11144 return status; 11145} 11146_LT_EOF 11147 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 11148 (eval $ac_link) 2>&5 11149 ac_status=$? 11150 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11151 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 11152 (./conftest; exit; ) >&5 2>/dev/null 11153 lt_status=$? 11154 case x$lt_status in 11155 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 11156 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 11157 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 11158 esac 11159 else : 11160 # compilation failed 11161 lt_cv_dlopen_self=no 11162 fi 11163fi 11164rm -fr conftest* 11165 11166 11167fi 11168{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 11169$as_echo "$lt_cv_dlopen_self" >&6; } 11170 11171 if test "x$lt_cv_dlopen_self" = xyes; then 11172 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 11173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 11174$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 11175if ${lt_cv_dlopen_self_static+:} false; then : 11176 $as_echo_n "(cached) " >&6 11177else 11178 if test "$cross_compiling" = yes; then : 11179 lt_cv_dlopen_self_static=cross 11180else 11181 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11182 lt_status=$lt_dlunknown 11183 cat > conftest.$ac_ext <<_LT_EOF 11184#line $LINENO "configure" 11185#include "confdefs.h" 11186 11187#if HAVE_DLFCN_H 11188#include <dlfcn.h> 11189#endif 11190 11191#include <stdio.h> 11192 11193#ifdef RTLD_GLOBAL 11194# define LT_DLGLOBAL RTLD_GLOBAL 11195#else 11196# ifdef DL_GLOBAL 11197# define LT_DLGLOBAL DL_GLOBAL 11198# else 11199# define LT_DLGLOBAL 0 11200# endif 11201#endif 11202 11203/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11204 find out it does not work in some platform. */ 11205#ifndef LT_DLLAZY_OR_NOW 11206# ifdef RTLD_LAZY 11207# define LT_DLLAZY_OR_NOW RTLD_LAZY 11208# else 11209# ifdef DL_LAZY 11210# define LT_DLLAZY_OR_NOW DL_LAZY 11211# else 11212# ifdef RTLD_NOW 11213# define LT_DLLAZY_OR_NOW RTLD_NOW 11214# else 11215# ifdef DL_NOW 11216# define LT_DLLAZY_OR_NOW DL_NOW 11217# else 11218# define LT_DLLAZY_OR_NOW 0 11219# endif 11220# endif 11221# endif 11222# endif 11223#endif 11224 11225/* When -fvisbility=hidden is used, assume the code has been annotated 11226 correspondingly for the symbols needed. */ 11227#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 11228int fnord () __attribute__((visibility("default"))); 11229#endif 11230 11231int fnord () { return 42; } 11232int main () 11233{ 11234 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11235 int status = $lt_dlunknown; 11236 11237 if (self) 11238 { 11239 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11240 else 11241 { 11242 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11243 else puts (dlerror ()); 11244 } 11245 /* dlclose (self); */ 11246 } 11247 else 11248 puts (dlerror ()); 11249 11250 return status; 11251} 11252_LT_EOF 11253 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 11254 (eval $ac_link) 2>&5 11255 ac_status=$? 11256 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11257 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 11258 (./conftest; exit; ) >&5 2>/dev/null 11259 lt_status=$? 11260 case x$lt_status in 11261 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 11262 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 11263 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 11264 esac 11265 else : 11266 # compilation failed 11267 lt_cv_dlopen_self_static=no 11268 fi 11269fi 11270rm -fr conftest* 11271 11272 11273fi 11274{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 11275$as_echo "$lt_cv_dlopen_self_static" >&6; } 11276 fi 11277 11278 CPPFLAGS="$save_CPPFLAGS" 11279 LDFLAGS="$save_LDFLAGS" 11280 LIBS="$save_LIBS" 11281 ;; 11282 esac 11283 11284 case $lt_cv_dlopen_self in 11285 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 11286 *) enable_dlopen_self=unknown ;; 11287 esac 11288 11289 case $lt_cv_dlopen_self_static in 11290 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 11291 *) enable_dlopen_self_static=unknown ;; 11292 esac 11293fi 11294 11295 11296 11297 11298 11299 11300 11301 11302 11303 11304 11305 11306 11307 11308 11309 11310 11311striplib= 11312old_striplib= 11313{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 11314$as_echo_n "checking whether stripping libraries is possible... " >&6; } 11315if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 11316 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 11317 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 11318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11319$as_echo "yes" >&6; } 11320else 11321# FIXME - insert some real tests, host_os isn't really good enough 11322 case $host_os in 11323 darwin*) 11324 if test -n "$STRIP" ; then 11325 striplib="$STRIP -x" 11326 old_striplib="$STRIP -S" 11327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11328$as_echo "yes" >&6; } 11329 else 11330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11331$as_echo "no" >&6; } 11332 fi 11333 ;; 11334 *) 11335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11336$as_echo "no" >&6; } 11337 ;; 11338 esac 11339fi 11340 11341 11342 11343 11344 11345 11346 11347 11348 11349 11350 11351 11352 # Report which library types will actually be built 11353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 11354$as_echo_n "checking if libtool supports shared libraries... " >&6; } 11355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 11356$as_echo "$can_build_shared" >&6; } 11357 11358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 11359$as_echo_n "checking whether to build shared libraries... " >&6; } 11360 test "$can_build_shared" = "no" && enable_shared=no 11361 11362 # On AIX, shared libraries and static libraries use the same namespace, and 11363 # are all built from PIC. 11364 case $host_os in 11365 aix3*) 11366 test "$enable_shared" = yes && enable_static=no 11367 if test -n "$RANLIB"; then 11368 archive_cmds="$archive_cmds~\$RANLIB \$lib" 11369 postinstall_cmds='$RANLIB $lib' 11370 fi 11371 ;; 11372 11373 aix[4-9]*) 11374 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 11375 test "$enable_shared" = yes && enable_static=no 11376 fi 11377 ;; 11378 esac 11379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 11380$as_echo "$enable_shared" >&6; } 11381 11382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 11383$as_echo_n "checking whether to build static libraries... " >&6; } 11384 # Make sure either enable_shared or enable_static is yes. 11385 test "$enable_shared" = yes || enable_static=yes 11386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 11387$as_echo "$enable_static" >&6; } 11388 11389 11390 11391 11392fi 11393ac_ext=c 11394ac_cpp='$CPP $CPPFLAGS' 11395ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11396ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11397ac_compiler_gnu=$ac_cv_c_compiler_gnu 11398 11399CC="$lt_save_CC" 11400 11401 11402 11403 11404 11405 11406 11407 11408 11409 11410 11411 11412 11413 11414 11415 ac_config_commands="$ac_config_commands libtool" 11416 11417 11418 11419 11420# Only expand once: 11421 11422 11423 11424# Require xorg-macros minimum of 1.12 for DocBook external references 11425 11426 11427 11428 11429 11430 11431 11432 11433 11434 11435 11436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5 11437$as_echo_n "checking for $CC option to accept ISO C99... " >&6; } 11438if ${ac_cv_prog_cc_c99+:} false; then : 11439 $as_echo_n "(cached) " >&6 11440else 11441 ac_cv_prog_cc_c99=no 11442ac_save_CC=$CC 11443cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11444/* end confdefs.h. */ 11445#include <stdarg.h> 11446#include <stdbool.h> 11447#include <stdlib.h> 11448#include <wchar.h> 11449#include <stdio.h> 11450 11451// Check varargs macros. These examples are taken from C99 6.10.3.5. 11452#define debug(...) fprintf (stderr, __VA_ARGS__) 11453#define showlist(...) puts (#__VA_ARGS__) 11454#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 11455static void 11456test_varargs_macros (void) 11457{ 11458 int x = 1234; 11459 int y = 5678; 11460 debug ("Flag"); 11461 debug ("X = %d\n", x); 11462 showlist (The first, second, and third items.); 11463 report (x>y, "x is %d but y is %d", x, y); 11464} 11465 11466// Check long long types. 11467#define BIG64 18446744073709551615ull 11468#define BIG32 4294967295ul 11469#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 11470#if !BIG_OK 11471 your preprocessor is broken; 11472#endif 11473#if BIG_OK 11474#else 11475 your preprocessor is broken; 11476#endif 11477static long long int bignum = -9223372036854775807LL; 11478static unsigned long long int ubignum = BIG64; 11479 11480struct incomplete_array 11481{ 11482 int datasize; 11483 double data[]; 11484}; 11485 11486struct named_init { 11487 int number; 11488 const wchar_t *name; 11489 double average; 11490}; 11491 11492typedef const char *ccp; 11493 11494static inline int 11495test_restrict (ccp restrict text) 11496{ 11497 // See if C++-style comments work. 11498 // Iterate through items via the restricted pointer. 11499 // Also check for declarations in for loops. 11500 for (unsigned int i = 0; *(text+i) != '\0'; ++i) 11501 continue; 11502 return 0; 11503} 11504 11505// Check varargs and va_copy. 11506static void 11507test_varargs (const char *format, ...) 11508{ 11509 va_list args; 11510 va_start (args, format); 11511 va_list args_copy; 11512 va_copy (args_copy, args); 11513 11514 const char *str; 11515 int number; 11516 float fnumber; 11517 11518 while (*format) 11519 { 11520 switch (*format++) 11521 { 11522 case 's': // string 11523 str = va_arg (args_copy, const char *); 11524 break; 11525 case 'd': // int 11526 number = va_arg (args_copy, int); 11527 break; 11528 case 'f': // float 11529 fnumber = va_arg (args_copy, double); 11530 break; 11531 default: 11532 break; 11533 } 11534 } 11535 va_end (args_copy); 11536 va_end (args); 11537} 11538 11539int 11540main () 11541{ 11542 11543 // Check bool. 11544 _Bool success = false; 11545 11546 // Check restrict. 11547 if (test_restrict ("String literal") == 0) 11548 success = true; 11549 char *restrict newvar = "Another string"; 11550 11551 // Check varargs. 11552 test_varargs ("s, d' f .", "string", 65, 34.234); 11553 test_varargs_macros (); 11554 11555 // Check flexible array members. 11556 struct incomplete_array *ia = 11557 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 11558 ia->datasize = 10; 11559 for (int i = 0; i < ia->datasize; ++i) 11560 ia->data[i] = i * 1.234; 11561 11562 // Check named initializers. 11563 struct named_init ni = { 11564 .number = 34, 11565 .name = L"Test wide string", 11566 .average = 543.34343, 11567 }; 11568 11569 ni.number = 58; 11570 11571 int dynamic_array[ni.number]; 11572 dynamic_array[ni.number - 1] = 543; 11573 11574 // work around unused variable warnings 11575 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' 11576 || dynamic_array[ni.number - 1] != 543); 11577 11578 ; 11579 return 0; 11580} 11581_ACEOF 11582for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99 11583do 11584 CC="$ac_save_CC $ac_arg" 11585 if ac_fn_c_try_compile "$LINENO"; then : 11586 ac_cv_prog_cc_c99=$ac_arg 11587fi 11588rm -f core conftest.err conftest.$ac_objext 11589 test "x$ac_cv_prog_cc_c99" != "xno" && break 11590done 11591rm -f conftest.$ac_ext 11592CC=$ac_save_CC 11593 11594fi 11595# AC_CACHE_VAL 11596case "x$ac_cv_prog_cc_c99" in 11597 x) 11598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 11599$as_echo "none needed" >&6; } ;; 11600 xno) 11601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 11602$as_echo "unsupported" >&6; } ;; 11603 *) 11604 CC="$CC $ac_cv_prog_cc_c99" 11605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 11606$as_echo "$ac_cv_prog_cc_c99" >&6; } ;; 11607esac 11608if test "x$ac_cv_prog_cc_c99" != xno; then : 11609 11610fi 11611 11612 11613 11614 11615 11616 11617ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" 11618if test "x$ac_cv_have_decl___clang__" = xyes; then : 11619 CLANGCC="yes" 11620else 11621 CLANGCC="no" 11622fi 11623 11624ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" 11625if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then : 11626 INTELCC="yes" 11627else 11628 INTELCC="no" 11629fi 11630 11631ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" 11632if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then : 11633 SUNCC="yes" 11634else 11635 SUNCC="no" 11636fi 11637 11638 11639 11640 11641if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 11642 if test -n "$ac_tool_prefix"; then 11643 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 11644set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 11645{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11646$as_echo_n "checking for $ac_word... " >&6; } 11647if ${ac_cv_path_PKG_CONFIG+:} false; then : 11648 $as_echo_n "(cached) " >&6 11649else 11650 case $PKG_CONFIG in 11651 [\\/]* | ?:[\\/]*) 11652 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 11653 ;; 11654 *) 11655 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11656for as_dir in $PATH 11657do 11658 IFS=$as_save_IFS 11659 test -z "$as_dir" && as_dir=. 11660 for ac_exec_ext in '' $ac_executable_extensions; do 11661 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 11662 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 11663 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11664 break 2 11665 fi 11666done 11667 done 11668IFS=$as_save_IFS 11669 11670 ;; 11671esac 11672fi 11673PKG_CONFIG=$ac_cv_path_PKG_CONFIG 11674if test -n "$PKG_CONFIG"; then 11675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 11676$as_echo "$PKG_CONFIG" >&6; } 11677else 11678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11679$as_echo "no" >&6; } 11680fi 11681 11682 11683fi 11684if test -z "$ac_cv_path_PKG_CONFIG"; then 11685 ac_pt_PKG_CONFIG=$PKG_CONFIG 11686 # Extract the first word of "pkg-config", so it can be a program name with args. 11687set dummy pkg-config; ac_word=$2 11688{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11689$as_echo_n "checking for $ac_word... " >&6; } 11690if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 11691 $as_echo_n "(cached) " >&6 11692else 11693 case $ac_pt_PKG_CONFIG in 11694 [\\/]* | ?:[\\/]*) 11695 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 11696 ;; 11697 *) 11698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11699for as_dir in $PATH 11700do 11701 IFS=$as_save_IFS 11702 test -z "$as_dir" && as_dir=. 11703 for ac_exec_ext in '' $ac_executable_extensions; do 11704 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 11705 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 11706 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11707 break 2 11708 fi 11709done 11710 done 11711IFS=$as_save_IFS 11712 11713 ;; 11714esac 11715fi 11716ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 11717if test -n "$ac_pt_PKG_CONFIG"; then 11718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 11719$as_echo "$ac_pt_PKG_CONFIG" >&6; } 11720else 11721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11722$as_echo "no" >&6; } 11723fi 11724 11725 if test "x$ac_pt_PKG_CONFIG" = x; then 11726 PKG_CONFIG="" 11727 else 11728 case $cross_compiling:$ac_tool_warned in 11729yes:) 11730{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 11731$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 11732ac_tool_warned=yes ;; 11733esac 11734 PKG_CONFIG=$ac_pt_PKG_CONFIG 11735 fi 11736else 11737 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 11738fi 11739 11740fi 11741if test -n "$PKG_CONFIG"; then 11742 _pkg_min_version=0.9.0 11743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 11744$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 11745 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 11746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11747$as_echo "yes" >&6; } 11748 else 11749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11750$as_echo "no" >&6; } 11751 PKG_CONFIG="" 11752 fi 11753 11754fi 11755 11756 11757 11758 11759 11760# Check whether --enable-selective-werror was given. 11761if test "${enable_selective_werror+set}" = set; then : 11762 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval 11763else 11764 SELECTIVE_WERROR=yes 11765fi 11766 11767 11768 11769 11770 11771# -v is too short to test reliably with XORG_TESTSET_CFLAG 11772if test "x$SUNCC" = "xyes"; then 11773 BASE_CFLAGS="-v" 11774else 11775 BASE_CFLAGS="" 11776fi 11777 11778# This chunk of warnings were those that existed in the legacy CWARNFLAGS 11779 11780 11781 11782 11783 11784 11785 11786 11787 11788 11789 11790 11791 11792xorg_testset_save_CFLAGS="$CFLAGS" 11793 11794if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 11795 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 11797$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 11798if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 11799 $as_echo_n "(cached) " >&6 11800else 11801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11802/* end confdefs.h. */ 11803int i; 11804_ACEOF 11805if ac_fn_c_try_compile "$LINENO"; then : 11806 xorg_cv_cc_flag_unknown_warning_option=yes 11807else 11808 xorg_cv_cc_flag_unknown_warning_option=no 11809fi 11810rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11811fi 11812{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 11813$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 11814 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 11815 CFLAGS="$xorg_testset_save_CFLAGS" 11816fi 11817 11818if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 11819 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11820 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11821 fi 11822 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 11824$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 11825if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 11826 $as_echo_n "(cached) " >&6 11827else 11828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11829/* end confdefs.h. */ 11830int i; 11831_ACEOF 11832if ac_fn_c_try_compile "$LINENO"; then : 11833 xorg_cv_cc_flag_unused_command_line_argument=yes 11834else 11835 xorg_cv_cc_flag_unused_command_line_argument=no 11836fi 11837rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11838fi 11839{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 11840$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 11841 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 11842 CFLAGS="$xorg_testset_save_CFLAGS" 11843fi 11844 11845found="no" 11846 11847 if test $found = "no" ; then 11848 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 11849 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11850 fi 11851 11852 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 11853 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11854 fi 11855 11856 CFLAGS="$CFLAGS -Wall" 11857 11858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5 11859$as_echo_n "checking if $CC supports -Wall... " >&6; } 11860 cacheid=xorg_cv_cc_flag__Wall 11861 if eval \${$cacheid+:} false; then : 11862 $as_echo_n "(cached) " >&6 11863else 11864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11865/* end confdefs.h. */ 11866int i; 11867int 11868main () 11869{ 11870 11871 ; 11872 return 0; 11873} 11874_ACEOF 11875if ac_fn_c_try_link "$LINENO"; then : 11876 eval $cacheid=yes 11877else 11878 eval $cacheid=no 11879fi 11880rm -f core conftest.err conftest.$ac_objext \ 11881 conftest$ac_exeext conftest.$ac_ext 11882fi 11883 11884 11885 CFLAGS="$xorg_testset_save_CFLAGS" 11886 11887 eval supported=\$$cacheid 11888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 11889$as_echo "$supported" >&6; } 11890 if test "$supported" = "yes" ; then 11891 BASE_CFLAGS="$BASE_CFLAGS -Wall" 11892 found="yes" 11893 fi 11894 fi 11895 11896 11897 11898 11899 11900 11901 11902 11903 11904 11905 11906 11907 11908 11909 11910xorg_testset_save_CFLAGS="$CFLAGS" 11911 11912if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 11913 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 11915$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 11916if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 11917 $as_echo_n "(cached) " >&6 11918else 11919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11920/* end confdefs.h. */ 11921int i; 11922_ACEOF 11923if ac_fn_c_try_compile "$LINENO"; then : 11924 xorg_cv_cc_flag_unknown_warning_option=yes 11925else 11926 xorg_cv_cc_flag_unknown_warning_option=no 11927fi 11928rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11929fi 11930{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 11931$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 11932 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 11933 CFLAGS="$xorg_testset_save_CFLAGS" 11934fi 11935 11936if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 11937 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11938 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11939 fi 11940 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 11942$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 11943if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 11944 $as_echo_n "(cached) " >&6 11945else 11946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11947/* end confdefs.h. */ 11948int i; 11949_ACEOF 11950if ac_fn_c_try_compile "$LINENO"; then : 11951 xorg_cv_cc_flag_unused_command_line_argument=yes 11952else 11953 xorg_cv_cc_flag_unused_command_line_argument=no 11954fi 11955rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11956fi 11957{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 11958$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 11959 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 11960 CFLAGS="$xorg_testset_save_CFLAGS" 11961fi 11962 11963found="no" 11964 11965 if test $found = "no" ; then 11966 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 11967 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11968 fi 11969 11970 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 11971 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11972 fi 11973 11974 CFLAGS="$CFLAGS -Wpointer-arith" 11975 11976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5 11977$as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; } 11978 cacheid=xorg_cv_cc_flag__Wpointer_arith 11979 if eval \${$cacheid+:} false; then : 11980 $as_echo_n "(cached) " >&6 11981else 11982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11983/* end confdefs.h. */ 11984int i; 11985int 11986main () 11987{ 11988 11989 ; 11990 return 0; 11991} 11992_ACEOF 11993if ac_fn_c_try_link "$LINENO"; then : 11994 eval $cacheid=yes 11995else 11996 eval $cacheid=no 11997fi 11998rm -f core conftest.err conftest.$ac_objext \ 11999 conftest$ac_exeext conftest.$ac_ext 12000fi 12001 12002 12003 CFLAGS="$xorg_testset_save_CFLAGS" 12004 12005 eval supported=\$$cacheid 12006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12007$as_echo "$supported" >&6; } 12008 if test "$supported" = "yes" ; then 12009 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith" 12010 found="yes" 12011 fi 12012 fi 12013 12014 12015 12016 12017 12018 12019 12020 12021 12022 12023 12024 12025 12026 12027 12028xorg_testset_save_CFLAGS="$CFLAGS" 12029 12030if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 12031 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 12033$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 12034if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 12035 $as_echo_n "(cached) " >&6 12036else 12037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12038/* end confdefs.h. */ 12039int i; 12040_ACEOF 12041if ac_fn_c_try_compile "$LINENO"; then : 12042 xorg_cv_cc_flag_unknown_warning_option=yes 12043else 12044 xorg_cv_cc_flag_unknown_warning_option=no 12045fi 12046rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12047fi 12048{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 12049$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 12050 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 12051 CFLAGS="$xorg_testset_save_CFLAGS" 12052fi 12053 12054if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 12055 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12056 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12057 fi 12058 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 12060$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 12061if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 12062 $as_echo_n "(cached) " >&6 12063else 12064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12065/* end confdefs.h. */ 12066int i; 12067_ACEOF 12068if ac_fn_c_try_compile "$LINENO"; then : 12069 xorg_cv_cc_flag_unused_command_line_argument=yes 12070else 12071 xorg_cv_cc_flag_unused_command_line_argument=no 12072fi 12073rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12074fi 12075{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 12076$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 12077 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 12078 CFLAGS="$xorg_testset_save_CFLAGS" 12079fi 12080 12081found="no" 12082 12083 if test $found = "no" ; then 12084 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 12085 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12086 fi 12087 12088 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 12089 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12090 fi 12091 12092 CFLAGS="$CFLAGS -Wmissing-declarations" 12093 12094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5 12095$as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; } 12096 cacheid=xorg_cv_cc_flag__Wmissing_declarations 12097 if eval \${$cacheid+:} false; then : 12098 $as_echo_n "(cached) " >&6 12099else 12100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12101/* end confdefs.h. */ 12102int i; 12103int 12104main () 12105{ 12106 12107 ; 12108 return 0; 12109} 12110_ACEOF 12111if ac_fn_c_try_link "$LINENO"; then : 12112 eval $cacheid=yes 12113else 12114 eval $cacheid=no 12115fi 12116rm -f core conftest.err conftest.$ac_objext \ 12117 conftest$ac_exeext conftest.$ac_ext 12118fi 12119 12120 12121 CFLAGS="$xorg_testset_save_CFLAGS" 12122 12123 eval supported=\$$cacheid 12124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12125$as_echo "$supported" >&6; } 12126 if test "$supported" = "yes" ; then 12127 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations" 12128 found="yes" 12129 fi 12130 fi 12131 12132 12133 12134 12135 12136 12137 12138 12139 12140 12141 12142 12143 12144 12145 12146xorg_testset_save_CFLAGS="$CFLAGS" 12147 12148if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 12149 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 12151$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 12152if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 12153 $as_echo_n "(cached) " >&6 12154else 12155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12156/* end confdefs.h. */ 12157int i; 12158_ACEOF 12159if ac_fn_c_try_compile "$LINENO"; then : 12160 xorg_cv_cc_flag_unknown_warning_option=yes 12161else 12162 xorg_cv_cc_flag_unknown_warning_option=no 12163fi 12164rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12165fi 12166{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 12167$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 12168 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 12169 CFLAGS="$xorg_testset_save_CFLAGS" 12170fi 12171 12172if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 12173 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12174 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12175 fi 12176 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 12178$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 12179if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 12180 $as_echo_n "(cached) " >&6 12181else 12182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12183/* end confdefs.h. */ 12184int i; 12185_ACEOF 12186if ac_fn_c_try_compile "$LINENO"; then : 12187 xorg_cv_cc_flag_unused_command_line_argument=yes 12188else 12189 xorg_cv_cc_flag_unused_command_line_argument=no 12190fi 12191rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12192fi 12193{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 12194$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 12195 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 12196 CFLAGS="$xorg_testset_save_CFLAGS" 12197fi 12198 12199found="no" 12200 12201 if test $found = "no" ; then 12202 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 12203 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12204 fi 12205 12206 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 12207 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12208 fi 12209 12210 CFLAGS="$CFLAGS -Wformat=2" 12211 12212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5 12213$as_echo_n "checking if $CC supports -Wformat=2... " >&6; } 12214 cacheid=`$as_echo "xorg_cv_cc_flag_-Wformat=2" | $as_tr_sh` 12215 if eval \${$cacheid+:} false; then : 12216 $as_echo_n "(cached) " >&6 12217else 12218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12219/* end confdefs.h. */ 12220int i; 12221int 12222main () 12223{ 12224 12225 ; 12226 return 0; 12227} 12228_ACEOF 12229if ac_fn_c_try_link "$LINENO"; then : 12230 eval $cacheid=yes 12231else 12232 eval $cacheid=no 12233fi 12234rm -f core conftest.err conftest.$ac_objext \ 12235 conftest$ac_exeext conftest.$ac_ext 12236fi 12237 12238 12239 CFLAGS="$xorg_testset_save_CFLAGS" 12240 12241 eval supported=\$$cacheid 12242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12243$as_echo "$supported" >&6; } 12244 if test "$supported" = "yes" ; then 12245 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2" 12246 found="yes" 12247 fi 12248 fi 12249 12250 if test $found = "no" ; then 12251 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 12252 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12253 fi 12254 12255 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 12256 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12257 fi 12258 12259 CFLAGS="$CFLAGS -Wformat" 12260 12261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5 12262$as_echo_n "checking if $CC supports -Wformat... " >&6; } 12263 cacheid=xorg_cv_cc_flag__Wformat 12264 if eval \${$cacheid+:} false; then : 12265 $as_echo_n "(cached) " >&6 12266else 12267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12268/* end confdefs.h. */ 12269int i; 12270int 12271main () 12272{ 12273 12274 ; 12275 return 0; 12276} 12277_ACEOF 12278if ac_fn_c_try_link "$LINENO"; then : 12279 eval $cacheid=yes 12280else 12281 eval $cacheid=no 12282fi 12283rm -f core conftest.err conftest.$ac_objext \ 12284 conftest$ac_exeext conftest.$ac_ext 12285fi 12286 12287 12288 CFLAGS="$xorg_testset_save_CFLAGS" 12289 12290 eval supported=\$$cacheid 12291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12292$as_echo "$supported" >&6; } 12293 if test "$supported" = "yes" ; then 12294 BASE_CFLAGS="$BASE_CFLAGS -Wformat" 12295 found="yes" 12296 fi 12297 fi 12298 12299 12300 12301 12302 12303 12304 12305 12306 12307 12308 12309 12310 12311 12312 12313 12314 12315xorg_testset_save_CFLAGS="$CFLAGS" 12316 12317if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 12318 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 12320$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 12321if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 12322 $as_echo_n "(cached) " >&6 12323else 12324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12325/* end confdefs.h. */ 12326int i; 12327_ACEOF 12328if ac_fn_c_try_compile "$LINENO"; then : 12329 xorg_cv_cc_flag_unknown_warning_option=yes 12330else 12331 xorg_cv_cc_flag_unknown_warning_option=no 12332fi 12333rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12334fi 12335{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 12336$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 12337 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 12338 CFLAGS="$xorg_testset_save_CFLAGS" 12339fi 12340 12341if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 12342 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12343 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12344 fi 12345 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 12347$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 12348if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 12349 $as_echo_n "(cached) " >&6 12350else 12351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12352/* end confdefs.h. */ 12353int i; 12354_ACEOF 12355if ac_fn_c_try_compile "$LINENO"; then : 12356 xorg_cv_cc_flag_unused_command_line_argument=yes 12357else 12358 xorg_cv_cc_flag_unused_command_line_argument=no 12359fi 12360rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12361fi 12362{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 12363$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 12364 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 12365 CFLAGS="$xorg_testset_save_CFLAGS" 12366fi 12367 12368found="no" 12369 12370 if test $found = "no" ; then 12371 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 12372 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12373 fi 12374 12375 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 12376 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12377 fi 12378 12379 CFLAGS="$CFLAGS -Wstrict-prototypes" 12380 12381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5 12382$as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; } 12383 cacheid=xorg_cv_cc_flag__Wstrict_prototypes 12384 if eval \${$cacheid+:} false; then : 12385 $as_echo_n "(cached) " >&6 12386else 12387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12388/* end confdefs.h. */ 12389int i; 12390int 12391main () 12392{ 12393 12394 ; 12395 return 0; 12396} 12397_ACEOF 12398if ac_fn_c_try_link "$LINENO"; then : 12399 eval $cacheid=yes 12400else 12401 eval $cacheid=no 12402fi 12403rm -f core conftest.err conftest.$ac_objext \ 12404 conftest$ac_exeext conftest.$ac_ext 12405fi 12406 12407 12408 CFLAGS="$xorg_testset_save_CFLAGS" 12409 12410 eval supported=\$$cacheid 12411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12412$as_echo "$supported" >&6; } 12413 if test "$supported" = "yes" ; then 12414 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes" 12415 found="yes" 12416 fi 12417 fi 12418 12419 12420 12421 12422 12423 12424 12425 12426 12427 12428 12429 12430 12431 12432 12433xorg_testset_save_CFLAGS="$CFLAGS" 12434 12435if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 12436 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 12438$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 12439if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 12440 $as_echo_n "(cached) " >&6 12441else 12442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12443/* end confdefs.h. */ 12444int i; 12445_ACEOF 12446if ac_fn_c_try_compile "$LINENO"; then : 12447 xorg_cv_cc_flag_unknown_warning_option=yes 12448else 12449 xorg_cv_cc_flag_unknown_warning_option=no 12450fi 12451rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12452fi 12453{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 12454$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 12455 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 12456 CFLAGS="$xorg_testset_save_CFLAGS" 12457fi 12458 12459if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 12460 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12461 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12462 fi 12463 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 12465$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 12466if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 12467 $as_echo_n "(cached) " >&6 12468else 12469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12470/* end confdefs.h. */ 12471int i; 12472_ACEOF 12473if ac_fn_c_try_compile "$LINENO"; then : 12474 xorg_cv_cc_flag_unused_command_line_argument=yes 12475else 12476 xorg_cv_cc_flag_unused_command_line_argument=no 12477fi 12478rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12479fi 12480{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 12481$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 12482 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 12483 CFLAGS="$xorg_testset_save_CFLAGS" 12484fi 12485 12486found="no" 12487 12488 if test $found = "no" ; then 12489 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 12490 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12491 fi 12492 12493 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 12494 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12495 fi 12496 12497 CFLAGS="$CFLAGS -Wmissing-prototypes" 12498 12499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5 12500$as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; } 12501 cacheid=xorg_cv_cc_flag__Wmissing_prototypes 12502 if eval \${$cacheid+:} false; then : 12503 $as_echo_n "(cached) " >&6 12504else 12505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12506/* end confdefs.h. */ 12507int i; 12508int 12509main () 12510{ 12511 12512 ; 12513 return 0; 12514} 12515_ACEOF 12516if ac_fn_c_try_link "$LINENO"; then : 12517 eval $cacheid=yes 12518else 12519 eval $cacheid=no 12520fi 12521rm -f core conftest.err conftest.$ac_objext \ 12522 conftest$ac_exeext conftest.$ac_ext 12523fi 12524 12525 12526 CFLAGS="$xorg_testset_save_CFLAGS" 12527 12528 eval supported=\$$cacheid 12529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12530$as_echo "$supported" >&6; } 12531 if test "$supported" = "yes" ; then 12532 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes" 12533 found="yes" 12534 fi 12535 fi 12536 12537 12538 12539 12540 12541 12542 12543 12544 12545 12546 12547 12548 12549 12550 12551xorg_testset_save_CFLAGS="$CFLAGS" 12552 12553if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 12554 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 12556$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 12557if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 12558 $as_echo_n "(cached) " >&6 12559else 12560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12561/* end confdefs.h. */ 12562int i; 12563_ACEOF 12564if ac_fn_c_try_compile "$LINENO"; then : 12565 xorg_cv_cc_flag_unknown_warning_option=yes 12566else 12567 xorg_cv_cc_flag_unknown_warning_option=no 12568fi 12569rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12570fi 12571{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 12572$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 12573 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 12574 CFLAGS="$xorg_testset_save_CFLAGS" 12575fi 12576 12577if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 12578 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12579 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12580 fi 12581 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 12583$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 12584if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 12585 $as_echo_n "(cached) " >&6 12586else 12587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12588/* end confdefs.h. */ 12589int i; 12590_ACEOF 12591if ac_fn_c_try_compile "$LINENO"; then : 12592 xorg_cv_cc_flag_unused_command_line_argument=yes 12593else 12594 xorg_cv_cc_flag_unused_command_line_argument=no 12595fi 12596rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12597fi 12598{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 12599$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 12600 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 12601 CFLAGS="$xorg_testset_save_CFLAGS" 12602fi 12603 12604found="no" 12605 12606 if test $found = "no" ; then 12607 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 12608 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12609 fi 12610 12611 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 12612 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12613 fi 12614 12615 CFLAGS="$CFLAGS -Wnested-externs" 12616 12617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5 12618$as_echo_n "checking if $CC supports -Wnested-externs... " >&6; } 12619 cacheid=xorg_cv_cc_flag__Wnested_externs 12620 if eval \${$cacheid+:} false; then : 12621 $as_echo_n "(cached) " >&6 12622else 12623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12624/* end confdefs.h. */ 12625int i; 12626int 12627main () 12628{ 12629 12630 ; 12631 return 0; 12632} 12633_ACEOF 12634if ac_fn_c_try_link "$LINENO"; then : 12635 eval $cacheid=yes 12636else 12637 eval $cacheid=no 12638fi 12639rm -f core conftest.err conftest.$ac_objext \ 12640 conftest$ac_exeext conftest.$ac_ext 12641fi 12642 12643 12644 CFLAGS="$xorg_testset_save_CFLAGS" 12645 12646 eval supported=\$$cacheid 12647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12648$as_echo "$supported" >&6; } 12649 if test "$supported" = "yes" ; then 12650 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs" 12651 found="yes" 12652 fi 12653 fi 12654 12655 12656 12657 12658 12659 12660 12661 12662 12663 12664 12665 12666 12667 12668 12669xorg_testset_save_CFLAGS="$CFLAGS" 12670 12671if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 12672 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 12674$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 12675if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 12676 $as_echo_n "(cached) " >&6 12677else 12678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12679/* end confdefs.h. */ 12680int i; 12681_ACEOF 12682if ac_fn_c_try_compile "$LINENO"; then : 12683 xorg_cv_cc_flag_unknown_warning_option=yes 12684else 12685 xorg_cv_cc_flag_unknown_warning_option=no 12686fi 12687rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12688fi 12689{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 12690$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 12691 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 12692 CFLAGS="$xorg_testset_save_CFLAGS" 12693fi 12694 12695if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 12696 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12697 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12698 fi 12699 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 12701$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 12702if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 12703 $as_echo_n "(cached) " >&6 12704else 12705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12706/* end confdefs.h. */ 12707int i; 12708_ACEOF 12709if ac_fn_c_try_compile "$LINENO"; then : 12710 xorg_cv_cc_flag_unused_command_line_argument=yes 12711else 12712 xorg_cv_cc_flag_unused_command_line_argument=no 12713fi 12714rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12715fi 12716{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 12717$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 12718 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 12719 CFLAGS="$xorg_testset_save_CFLAGS" 12720fi 12721 12722found="no" 12723 12724 if test $found = "no" ; then 12725 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 12726 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12727 fi 12728 12729 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 12730 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12731 fi 12732 12733 CFLAGS="$CFLAGS -Wbad-function-cast" 12734 12735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5 12736$as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; } 12737 cacheid=xorg_cv_cc_flag__Wbad_function_cast 12738 if eval \${$cacheid+:} false; then : 12739 $as_echo_n "(cached) " >&6 12740else 12741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12742/* end confdefs.h. */ 12743int i; 12744int 12745main () 12746{ 12747 12748 ; 12749 return 0; 12750} 12751_ACEOF 12752if ac_fn_c_try_link "$LINENO"; then : 12753 eval $cacheid=yes 12754else 12755 eval $cacheid=no 12756fi 12757rm -f core conftest.err conftest.$ac_objext \ 12758 conftest$ac_exeext conftest.$ac_ext 12759fi 12760 12761 12762 CFLAGS="$xorg_testset_save_CFLAGS" 12763 12764 eval supported=\$$cacheid 12765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12766$as_echo "$supported" >&6; } 12767 if test "$supported" = "yes" ; then 12768 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast" 12769 found="yes" 12770 fi 12771 fi 12772 12773 12774 12775 12776 12777 12778 12779 12780 12781 12782 12783 12784 12785 12786 12787xorg_testset_save_CFLAGS="$CFLAGS" 12788 12789if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 12790 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 12792$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 12793if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 12794 $as_echo_n "(cached) " >&6 12795else 12796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12797/* end confdefs.h. */ 12798int i; 12799_ACEOF 12800if ac_fn_c_try_compile "$LINENO"; then : 12801 xorg_cv_cc_flag_unknown_warning_option=yes 12802else 12803 xorg_cv_cc_flag_unknown_warning_option=no 12804fi 12805rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12806fi 12807{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 12808$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 12809 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 12810 CFLAGS="$xorg_testset_save_CFLAGS" 12811fi 12812 12813if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 12814 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12815 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12816 fi 12817 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 12819$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 12820if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 12821 $as_echo_n "(cached) " >&6 12822else 12823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12824/* end confdefs.h. */ 12825int i; 12826_ACEOF 12827if ac_fn_c_try_compile "$LINENO"; then : 12828 xorg_cv_cc_flag_unused_command_line_argument=yes 12829else 12830 xorg_cv_cc_flag_unused_command_line_argument=no 12831fi 12832rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12833fi 12834{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 12835$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 12836 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 12837 CFLAGS="$xorg_testset_save_CFLAGS" 12838fi 12839 12840found="no" 12841 12842 if test $found = "no" ; then 12843 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 12844 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12845 fi 12846 12847 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 12848 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12849 fi 12850 12851 CFLAGS="$CFLAGS -Wold-style-definition" 12852 12853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5 12854$as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; } 12855 cacheid=xorg_cv_cc_flag__Wold_style_definition 12856 if eval \${$cacheid+:} false; then : 12857 $as_echo_n "(cached) " >&6 12858else 12859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12860/* end confdefs.h. */ 12861int i; 12862int 12863main () 12864{ 12865 12866 ; 12867 return 0; 12868} 12869_ACEOF 12870if ac_fn_c_try_link "$LINENO"; then : 12871 eval $cacheid=yes 12872else 12873 eval $cacheid=no 12874fi 12875rm -f core conftest.err conftest.$ac_objext \ 12876 conftest$ac_exeext conftest.$ac_ext 12877fi 12878 12879 12880 CFLAGS="$xorg_testset_save_CFLAGS" 12881 12882 eval supported=\$$cacheid 12883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12884$as_echo "$supported" >&6; } 12885 if test "$supported" = "yes" ; then 12886 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition" 12887 found="yes" 12888 fi 12889 fi 12890 12891 12892 12893 12894 12895 12896 12897 12898 12899 12900 12901 12902 12903 12904 12905xorg_testset_save_CFLAGS="$CFLAGS" 12906 12907if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 12908 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 12910$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 12911if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 12912 $as_echo_n "(cached) " >&6 12913else 12914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12915/* end confdefs.h. */ 12916int i; 12917_ACEOF 12918if ac_fn_c_try_compile "$LINENO"; then : 12919 xorg_cv_cc_flag_unknown_warning_option=yes 12920else 12921 xorg_cv_cc_flag_unknown_warning_option=no 12922fi 12923rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12924fi 12925{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 12926$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 12927 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 12928 CFLAGS="$xorg_testset_save_CFLAGS" 12929fi 12930 12931if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 12932 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12933 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12934 fi 12935 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 12937$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 12938if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 12939 $as_echo_n "(cached) " >&6 12940else 12941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12942/* end confdefs.h. */ 12943int i; 12944_ACEOF 12945if ac_fn_c_try_compile "$LINENO"; then : 12946 xorg_cv_cc_flag_unused_command_line_argument=yes 12947else 12948 xorg_cv_cc_flag_unused_command_line_argument=no 12949fi 12950rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12951fi 12952{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 12953$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 12954 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 12955 CFLAGS="$xorg_testset_save_CFLAGS" 12956fi 12957 12958found="no" 12959 12960 if test $found = "no" ; then 12961 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 12962 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12963 fi 12964 12965 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 12966 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12967 fi 12968 12969 CFLAGS="$CFLAGS -Wdeclaration-after-statement" 12970 12971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5 12972$as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; } 12973 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement 12974 if eval \${$cacheid+:} false; then : 12975 $as_echo_n "(cached) " >&6 12976else 12977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12978/* end confdefs.h. */ 12979int i; 12980int 12981main () 12982{ 12983 12984 ; 12985 return 0; 12986} 12987_ACEOF 12988if ac_fn_c_try_link "$LINENO"; then : 12989 eval $cacheid=yes 12990else 12991 eval $cacheid=no 12992fi 12993rm -f core conftest.err conftest.$ac_objext \ 12994 conftest$ac_exeext conftest.$ac_ext 12995fi 12996 12997 12998 CFLAGS="$xorg_testset_save_CFLAGS" 12999 13000 eval supported=\$$cacheid 13001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13002$as_echo "$supported" >&6; } 13003 if test "$supported" = "yes" ; then 13004 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement" 13005 found="yes" 13006 fi 13007 fi 13008 13009 13010 13011 13012 13013# This chunk adds additional warnings that could catch undesired effects. 13014 13015 13016 13017 13018 13019 13020 13021 13022 13023 13024 13025 13026 13027xorg_testset_save_CFLAGS="$CFLAGS" 13028 13029if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13030 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13032$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13033if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13034 $as_echo_n "(cached) " >&6 13035else 13036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13037/* end confdefs.h. */ 13038int i; 13039_ACEOF 13040if ac_fn_c_try_compile "$LINENO"; then : 13041 xorg_cv_cc_flag_unknown_warning_option=yes 13042else 13043 xorg_cv_cc_flag_unknown_warning_option=no 13044fi 13045rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13046fi 13047{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13048$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13049 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13050 CFLAGS="$xorg_testset_save_CFLAGS" 13051fi 13052 13053if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13054 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13055 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13056 fi 13057 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13059$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13060if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13061 $as_echo_n "(cached) " >&6 13062else 13063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13064/* end confdefs.h. */ 13065int i; 13066_ACEOF 13067if ac_fn_c_try_compile "$LINENO"; then : 13068 xorg_cv_cc_flag_unused_command_line_argument=yes 13069else 13070 xorg_cv_cc_flag_unused_command_line_argument=no 13071fi 13072rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13073fi 13074{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13075$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13076 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13077 CFLAGS="$xorg_testset_save_CFLAGS" 13078fi 13079 13080found="no" 13081 13082 if test $found = "no" ; then 13083 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 13084 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13085 fi 13086 13087 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 13088 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13089 fi 13090 13091 CFLAGS="$CFLAGS -Wunused" 13092 13093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5 13094$as_echo_n "checking if $CC supports -Wunused... " >&6; } 13095 cacheid=xorg_cv_cc_flag__Wunused 13096 if eval \${$cacheid+:} false; then : 13097 $as_echo_n "(cached) " >&6 13098else 13099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13100/* end confdefs.h. */ 13101int i; 13102int 13103main () 13104{ 13105 13106 ; 13107 return 0; 13108} 13109_ACEOF 13110if ac_fn_c_try_link "$LINENO"; then : 13111 eval $cacheid=yes 13112else 13113 eval $cacheid=no 13114fi 13115rm -f core conftest.err conftest.$ac_objext \ 13116 conftest$ac_exeext conftest.$ac_ext 13117fi 13118 13119 13120 CFLAGS="$xorg_testset_save_CFLAGS" 13121 13122 eval supported=\$$cacheid 13123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13124$as_echo "$supported" >&6; } 13125 if test "$supported" = "yes" ; then 13126 BASE_CFLAGS="$BASE_CFLAGS -Wunused" 13127 found="yes" 13128 fi 13129 fi 13130 13131 13132 13133 13134 13135 13136 13137 13138 13139 13140 13141 13142 13143 13144 13145xorg_testset_save_CFLAGS="$CFLAGS" 13146 13147if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13148 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13150$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13151if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13152 $as_echo_n "(cached) " >&6 13153else 13154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13155/* end confdefs.h. */ 13156int i; 13157_ACEOF 13158if ac_fn_c_try_compile "$LINENO"; then : 13159 xorg_cv_cc_flag_unknown_warning_option=yes 13160else 13161 xorg_cv_cc_flag_unknown_warning_option=no 13162fi 13163rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13164fi 13165{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13166$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13167 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13168 CFLAGS="$xorg_testset_save_CFLAGS" 13169fi 13170 13171if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13172 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13173 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13174 fi 13175 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13177$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13178if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13179 $as_echo_n "(cached) " >&6 13180else 13181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13182/* end confdefs.h. */ 13183int i; 13184_ACEOF 13185if ac_fn_c_try_compile "$LINENO"; then : 13186 xorg_cv_cc_flag_unused_command_line_argument=yes 13187else 13188 xorg_cv_cc_flag_unused_command_line_argument=no 13189fi 13190rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13191fi 13192{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13193$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13194 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13195 CFLAGS="$xorg_testset_save_CFLAGS" 13196fi 13197 13198found="no" 13199 13200 if test $found = "no" ; then 13201 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 13202 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13203 fi 13204 13205 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 13206 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13207 fi 13208 13209 CFLAGS="$CFLAGS -Wuninitialized" 13210 13211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5 13212$as_echo_n "checking if $CC supports -Wuninitialized... " >&6; } 13213 cacheid=xorg_cv_cc_flag__Wuninitialized 13214 if eval \${$cacheid+:} false; then : 13215 $as_echo_n "(cached) " >&6 13216else 13217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13218/* end confdefs.h. */ 13219int i; 13220int 13221main () 13222{ 13223 13224 ; 13225 return 0; 13226} 13227_ACEOF 13228if ac_fn_c_try_link "$LINENO"; then : 13229 eval $cacheid=yes 13230else 13231 eval $cacheid=no 13232fi 13233rm -f core conftest.err conftest.$ac_objext \ 13234 conftest$ac_exeext conftest.$ac_ext 13235fi 13236 13237 13238 CFLAGS="$xorg_testset_save_CFLAGS" 13239 13240 eval supported=\$$cacheid 13241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13242$as_echo "$supported" >&6; } 13243 if test "$supported" = "yes" ; then 13244 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized" 13245 found="yes" 13246 fi 13247 fi 13248 13249 13250 13251 13252 13253 13254 13255 13256 13257 13258 13259 13260 13261 13262 13263xorg_testset_save_CFLAGS="$CFLAGS" 13264 13265if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13266 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13268$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13269if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13270 $as_echo_n "(cached) " >&6 13271else 13272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13273/* end confdefs.h. */ 13274int i; 13275_ACEOF 13276if ac_fn_c_try_compile "$LINENO"; then : 13277 xorg_cv_cc_flag_unknown_warning_option=yes 13278else 13279 xorg_cv_cc_flag_unknown_warning_option=no 13280fi 13281rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13282fi 13283{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13284$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13285 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13286 CFLAGS="$xorg_testset_save_CFLAGS" 13287fi 13288 13289if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13290 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13291 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13292 fi 13293 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13295$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13296if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13297 $as_echo_n "(cached) " >&6 13298else 13299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13300/* end confdefs.h. */ 13301int i; 13302_ACEOF 13303if ac_fn_c_try_compile "$LINENO"; then : 13304 xorg_cv_cc_flag_unused_command_line_argument=yes 13305else 13306 xorg_cv_cc_flag_unused_command_line_argument=no 13307fi 13308rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13309fi 13310{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13311$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13312 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13313 CFLAGS="$xorg_testset_save_CFLAGS" 13314fi 13315 13316found="no" 13317 13318 if test $found = "no" ; then 13319 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 13320 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13321 fi 13322 13323 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 13324 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13325 fi 13326 13327 CFLAGS="$CFLAGS -Wshadow" 13328 13329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5 13330$as_echo_n "checking if $CC supports -Wshadow... " >&6; } 13331 cacheid=xorg_cv_cc_flag__Wshadow 13332 if eval \${$cacheid+:} false; then : 13333 $as_echo_n "(cached) " >&6 13334else 13335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13336/* end confdefs.h. */ 13337int i; 13338int 13339main () 13340{ 13341 13342 ; 13343 return 0; 13344} 13345_ACEOF 13346if ac_fn_c_try_link "$LINENO"; then : 13347 eval $cacheid=yes 13348else 13349 eval $cacheid=no 13350fi 13351rm -f core conftest.err conftest.$ac_objext \ 13352 conftest$ac_exeext conftest.$ac_ext 13353fi 13354 13355 13356 CFLAGS="$xorg_testset_save_CFLAGS" 13357 13358 eval supported=\$$cacheid 13359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13360$as_echo "$supported" >&6; } 13361 if test "$supported" = "yes" ; then 13362 BASE_CFLAGS="$BASE_CFLAGS -Wshadow" 13363 found="yes" 13364 fi 13365 fi 13366 13367 13368 13369 13370 13371 13372 13373 13374 13375 13376 13377 13378 13379 13380 13381xorg_testset_save_CFLAGS="$CFLAGS" 13382 13383if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13384 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13386$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13387if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13388 $as_echo_n "(cached) " >&6 13389else 13390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13391/* end confdefs.h. */ 13392int i; 13393_ACEOF 13394if ac_fn_c_try_compile "$LINENO"; then : 13395 xorg_cv_cc_flag_unknown_warning_option=yes 13396else 13397 xorg_cv_cc_flag_unknown_warning_option=no 13398fi 13399rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13400fi 13401{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13402$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13403 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13404 CFLAGS="$xorg_testset_save_CFLAGS" 13405fi 13406 13407if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13408 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13409 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13410 fi 13411 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13413$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13414if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13415 $as_echo_n "(cached) " >&6 13416else 13417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13418/* end confdefs.h. */ 13419int i; 13420_ACEOF 13421if ac_fn_c_try_compile "$LINENO"; then : 13422 xorg_cv_cc_flag_unused_command_line_argument=yes 13423else 13424 xorg_cv_cc_flag_unused_command_line_argument=no 13425fi 13426rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13427fi 13428{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13429$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13430 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13431 CFLAGS="$xorg_testset_save_CFLAGS" 13432fi 13433 13434found="no" 13435 13436 if test $found = "no" ; then 13437 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 13438 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13439 fi 13440 13441 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 13442 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13443 fi 13444 13445 CFLAGS="$CFLAGS -Wcast-qual" 13446 13447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wcast-qual" >&5 13448$as_echo_n "checking if $CC supports -Wcast-qual... " >&6; } 13449 cacheid=xorg_cv_cc_flag__Wcast_qual 13450 if eval \${$cacheid+:} false; then : 13451 $as_echo_n "(cached) " >&6 13452else 13453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13454/* end confdefs.h. */ 13455int i; 13456int 13457main () 13458{ 13459 13460 ; 13461 return 0; 13462} 13463_ACEOF 13464if ac_fn_c_try_link "$LINENO"; then : 13465 eval $cacheid=yes 13466else 13467 eval $cacheid=no 13468fi 13469rm -f core conftest.err conftest.$ac_objext \ 13470 conftest$ac_exeext conftest.$ac_ext 13471fi 13472 13473 13474 CFLAGS="$xorg_testset_save_CFLAGS" 13475 13476 eval supported=\$$cacheid 13477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13478$as_echo "$supported" >&6; } 13479 if test "$supported" = "yes" ; then 13480 BASE_CFLAGS="$BASE_CFLAGS -Wcast-qual" 13481 found="yes" 13482 fi 13483 fi 13484 13485 13486 13487 13488 13489 13490 13491 13492 13493 13494 13495 13496 13497 13498 13499xorg_testset_save_CFLAGS="$CFLAGS" 13500 13501if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13502 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13504$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13505if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13506 $as_echo_n "(cached) " >&6 13507else 13508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13509/* end confdefs.h. */ 13510int i; 13511_ACEOF 13512if ac_fn_c_try_compile "$LINENO"; then : 13513 xorg_cv_cc_flag_unknown_warning_option=yes 13514else 13515 xorg_cv_cc_flag_unknown_warning_option=no 13516fi 13517rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13518fi 13519{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13520$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13521 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13522 CFLAGS="$xorg_testset_save_CFLAGS" 13523fi 13524 13525if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13526 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13527 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13528 fi 13529 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13531$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13532if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13533 $as_echo_n "(cached) " >&6 13534else 13535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13536/* end confdefs.h. */ 13537int i; 13538_ACEOF 13539if ac_fn_c_try_compile "$LINENO"; then : 13540 xorg_cv_cc_flag_unused_command_line_argument=yes 13541else 13542 xorg_cv_cc_flag_unused_command_line_argument=no 13543fi 13544rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13545fi 13546{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13547$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13548 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13549 CFLAGS="$xorg_testset_save_CFLAGS" 13550fi 13551 13552found="no" 13553 13554 if test $found = "no" ; then 13555 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 13556 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13557 fi 13558 13559 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 13560 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13561 fi 13562 13563 CFLAGS="$CFLAGS -Wmissing-noreturn" 13564 13565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5 13566$as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; } 13567 cacheid=xorg_cv_cc_flag__Wmissing_noreturn 13568 if eval \${$cacheid+:} false; then : 13569 $as_echo_n "(cached) " >&6 13570else 13571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13572/* end confdefs.h. */ 13573int i; 13574int 13575main () 13576{ 13577 13578 ; 13579 return 0; 13580} 13581_ACEOF 13582if ac_fn_c_try_link "$LINENO"; then : 13583 eval $cacheid=yes 13584else 13585 eval $cacheid=no 13586fi 13587rm -f core conftest.err conftest.$ac_objext \ 13588 conftest$ac_exeext conftest.$ac_ext 13589fi 13590 13591 13592 CFLAGS="$xorg_testset_save_CFLAGS" 13593 13594 eval supported=\$$cacheid 13595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13596$as_echo "$supported" >&6; } 13597 if test "$supported" = "yes" ; then 13598 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn" 13599 found="yes" 13600 fi 13601 fi 13602 13603 13604 13605 13606 13607 13608 13609 13610 13611 13612 13613 13614 13615 13616 13617xorg_testset_save_CFLAGS="$CFLAGS" 13618 13619if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13620 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13622$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13623if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13624 $as_echo_n "(cached) " >&6 13625else 13626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13627/* end confdefs.h. */ 13628int i; 13629_ACEOF 13630if ac_fn_c_try_compile "$LINENO"; then : 13631 xorg_cv_cc_flag_unknown_warning_option=yes 13632else 13633 xorg_cv_cc_flag_unknown_warning_option=no 13634fi 13635rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13636fi 13637{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13638$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13639 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13640 CFLAGS="$xorg_testset_save_CFLAGS" 13641fi 13642 13643if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13644 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13645 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13646 fi 13647 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13649$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13650if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13651 $as_echo_n "(cached) " >&6 13652else 13653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13654/* end confdefs.h. */ 13655int i; 13656_ACEOF 13657if ac_fn_c_try_compile "$LINENO"; then : 13658 xorg_cv_cc_flag_unused_command_line_argument=yes 13659else 13660 xorg_cv_cc_flag_unused_command_line_argument=no 13661fi 13662rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13663fi 13664{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13665$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13666 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13667 CFLAGS="$xorg_testset_save_CFLAGS" 13668fi 13669 13670found="no" 13671 13672 if test $found = "no" ; then 13673 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 13674 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13675 fi 13676 13677 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 13678 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13679 fi 13680 13681 CFLAGS="$CFLAGS -Wmissing-format-attribute" 13682 13683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5 13684$as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; } 13685 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute 13686 if eval \${$cacheid+:} false; then : 13687 $as_echo_n "(cached) " >&6 13688else 13689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13690/* end confdefs.h. */ 13691int i; 13692int 13693main () 13694{ 13695 13696 ; 13697 return 0; 13698} 13699_ACEOF 13700if ac_fn_c_try_link "$LINENO"; then : 13701 eval $cacheid=yes 13702else 13703 eval $cacheid=no 13704fi 13705rm -f core conftest.err conftest.$ac_objext \ 13706 conftest$ac_exeext conftest.$ac_ext 13707fi 13708 13709 13710 CFLAGS="$xorg_testset_save_CFLAGS" 13711 13712 eval supported=\$$cacheid 13713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13714$as_echo "$supported" >&6; } 13715 if test "$supported" = "yes" ; then 13716 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute" 13717 found="yes" 13718 fi 13719 fi 13720 13721 13722 13723 13724 13725 13726 13727 13728 13729 13730 13731 13732 13733 13734 13735xorg_testset_save_CFLAGS="$CFLAGS" 13736 13737if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13738 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13740$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13741if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13742 $as_echo_n "(cached) " >&6 13743else 13744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13745/* end confdefs.h. */ 13746int i; 13747_ACEOF 13748if ac_fn_c_try_compile "$LINENO"; then : 13749 xorg_cv_cc_flag_unknown_warning_option=yes 13750else 13751 xorg_cv_cc_flag_unknown_warning_option=no 13752fi 13753rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13754fi 13755{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13756$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13757 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13758 CFLAGS="$xorg_testset_save_CFLAGS" 13759fi 13760 13761if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13762 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13763 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13764 fi 13765 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13767$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13768if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13769 $as_echo_n "(cached) " >&6 13770else 13771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13772/* end confdefs.h. */ 13773int i; 13774_ACEOF 13775if ac_fn_c_try_compile "$LINENO"; then : 13776 xorg_cv_cc_flag_unused_command_line_argument=yes 13777else 13778 xorg_cv_cc_flag_unused_command_line_argument=no 13779fi 13780rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13781fi 13782{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13783$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13784 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13785 CFLAGS="$xorg_testset_save_CFLAGS" 13786fi 13787 13788found="no" 13789 13790 if test $found = "no" ; then 13791 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 13792 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13793 fi 13794 13795 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 13796 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13797 fi 13798 13799 CFLAGS="$CFLAGS -Wredundant-decls" 13800 13801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5 13802$as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; } 13803 cacheid=xorg_cv_cc_flag__Wredundant_decls 13804 if eval \${$cacheid+:} false; then : 13805 $as_echo_n "(cached) " >&6 13806else 13807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13808/* end confdefs.h. */ 13809int i; 13810int 13811main () 13812{ 13813 13814 ; 13815 return 0; 13816} 13817_ACEOF 13818if ac_fn_c_try_link "$LINENO"; then : 13819 eval $cacheid=yes 13820else 13821 eval $cacheid=no 13822fi 13823rm -f core conftest.err conftest.$ac_objext \ 13824 conftest$ac_exeext conftest.$ac_ext 13825fi 13826 13827 13828 CFLAGS="$xorg_testset_save_CFLAGS" 13829 13830 eval supported=\$$cacheid 13831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13832$as_echo "$supported" >&6; } 13833 if test "$supported" = "yes" ; then 13834 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls" 13835 found="yes" 13836 fi 13837 fi 13838 13839 13840 13841# These are currently disabled because they are noisy. They will be enabled 13842# in the future once the codebase is sufficiently modernized to silence 13843# them. For now, I don't want them to drown out the other warnings. 13844# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wlogical-op]) 13845# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses]) 13846# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align]) 13847 13848# Turn some warnings into errors, so we don't accidently get successful builds 13849# when there are problems that should be fixed. 13850 13851if test "x$SELECTIVE_WERROR" = "xyes" ; then 13852 13853 13854 13855 13856 13857 13858 13859 13860 13861 13862 13863 13864 13865xorg_testset_save_CFLAGS="$CFLAGS" 13866 13867if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13868 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13870$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13871if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13872 $as_echo_n "(cached) " >&6 13873else 13874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13875/* end confdefs.h. */ 13876int i; 13877_ACEOF 13878if ac_fn_c_try_compile "$LINENO"; then : 13879 xorg_cv_cc_flag_unknown_warning_option=yes 13880else 13881 xorg_cv_cc_flag_unknown_warning_option=no 13882fi 13883rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13884fi 13885{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13886$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13887 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13888 CFLAGS="$xorg_testset_save_CFLAGS" 13889fi 13890 13891if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13892 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13893 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13894 fi 13895 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13897$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13898if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13899 $as_echo_n "(cached) " >&6 13900else 13901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13902/* end confdefs.h. */ 13903int i; 13904_ACEOF 13905if ac_fn_c_try_compile "$LINENO"; then : 13906 xorg_cv_cc_flag_unused_command_line_argument=yes 13907else 13908 xorg_cv_cc_flag_unused_command_line_argument=no 13909fi 13910rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13911fi 13912{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13913$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13914 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13915 CFLAGS="$xorg_testset_save_CFLAGS" 13916fi 13917 13918found="no" 13919 13920 if test $found = "no" ; then 13921 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 13922 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13923 fi 13924 13925 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 13926 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13927 fi 13928 13929 CFLAGS="$CFLAGS -Werror=implicit" 13930 13931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5 13932$as_echo_n "checking if $CC supports -Werror=implicit... " >&6; } 13933 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=implicit" | $as_tr_sh` 13934 if eval \${$cacheid+:} false; then : 13935 $as_echo_n "(cached) " >&6 13936else 13937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13938/* end confdefs.h. */ 13939int i; 13940int 13941main () 13942{ 13943 13944 ; 13945 return 0; 13946} 13947_ACEOF 13948if ac_fn_c_try_link "$LINENO"; then : 13949 eval $cacheid=yes 13950else 13951 eval $cacheid=no 13952fi 13953rm -f core conftest.err conftest.$ac_objext \ 13954 conftest$ac_exeext conftest.$ac_ext 13955fi 13956 13957 13958 CFLAGS="$xorg_testset_save_CFLAGS" 13959 13960 eval supported=\$$cacheid 13961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13962$as_echo "$supported" >&6; } 13963 if test "$supported" = "yes" ; then 13964 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit" 13965 found="yes" 13966 fi 13967 fi 13968 13969 if test $found = "no" ; then 13970 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 13971 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13972 fi 13973 13974 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 13975 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13976 fi 13977 13978 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 13979 13980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5 13981$as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; } 13982 cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" | $as_tr_sh` 13983 if eval \${$cacheid+:} false; then : 13984 $as_echo_n "(cached) " >&6 13985else 13986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13987/* end confdefs.h. */ 13988int i; 13989int 13990main () 13991{ 13992 13993 ; 13994 return 0; 13995} 13996_ACEOF 13997if ac_fn_c_try_link "$LINENO"; then : 13998 eval $cacheid=yes 13999else 14000 eval $cacheid=no 14001fi 14002rm -f core conftest.err conftest.$ac_objext \ 14003 conftest$ac_exeext conftest.$ac_ext 14004fi 14005 14006 14007 CFLAGS="$xorg_testset_save_CFLAGS" 14008 14009 eval supported=\$$cacheid 14010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14011$as_echo "$supported" >&6; } 14012 if test "$supported" = "yes" ; then 14013 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 14014 found="yes" 14015 fi 14016 fi 14017 14018 14019 14020 14021 14022 14023 14024 14025 14026 14027 14028 14029 14030 14031 14032xorg_testset_save_CFLAGS="$CFLAGS" 14033 14034if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14035 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14037$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14038if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14039 $as_echo_n "(cached) " >&6 14040else 14041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14042/* end confdefs.h. */ 14043int i; 14044_ACEOF 14045if ac_fn_c_try_compile "$LINENO"; then : 14046 xorg_cv_cc_flag_unknown_warning_option=yes 14047else 14048 xorg_cv_cc_flag_unknown_warning_option=no 14049fi 14050rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14051fi 14052{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14053$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14054 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14055 CFLAGS="$xorg_testset_save_CFLAGS" 14056fi 14057 14058if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14059 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14060 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14061 fi 14062 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14064$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14065if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14066 $as_echo_n "(cached) " >&6 14067else 14068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14069/* end confdefs.h. */ 14070int i; 14071_ACEOF 14072if ac_fn_c_try_compile "$LINENO"; then : 14073 xorg_cv_cc_flag_unused_command_line_argument=yes 14074else 14075 xorg_cv_cc_flag_unused_command_line_argument=no 14076fi 14077rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14078fi 14079{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14080$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14081 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14082 CFLAGS="$xorg_testset_save_CFLAGS" 14083fi 14084 14085found="no" 14086 14087 if test $found = "no" ; then 14088 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 14089 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14090 fi 14091 14092 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 14093 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14094 fi 14095 14096 CFLAGS="$CFLAGS -Werror=nonnull" 14097 14098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5 14099$as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; } 14100 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=nonnull" | $as_tr_sh` 14101 if eval \${$cacheid+:} false; then : 14102 $as_echo_n "(cached) " >&6 14103else 14104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14105/* end confdefs.h. */ 14106int i; 14107int 14108main () 14109{ 14110 14111 ; 14112 return 0; 14113} 14114_ACEOF 14115if ac_fn_c_try_link "$LINENO"; then : 14116 eval $cacheid=yes 14117else 14118 eval $cacheid=no 14119fi 14120rm -f core conftest.err conftest.$ac_objext \ 14121 conftest$ac_exeext conftest.$ac_ext 14122fi 14123 14124 14125 CFLAGS="$xorg_testset_save_CFLAGS" 14126 14127 eval supported=\$$cacheid 14128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14129$as_echo "$supported" >&6; } 14130 if test "$supported" = "yes" ; then 14131 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull" 14132 found="yes" 14133 fi 14134 fi 14135 14136 14137 14138 14139 14140 14141 14142 14143 14144 14145 14146 14147 14148 14149 14150xorg_testset_save_CFLAGS="$CFLAGS" 14151 14152if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14153 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14155$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14156if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14157 $as_echo_n "(cached) " >&6 14158else 14159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14160/* end confdefs.h. */ 14161int i; 14162_ACEOF 14163if ac_fn_c_try_compile "$LINENO"; then : 14164 xorg_cv_cc_flag_unknown_warning_option=yes 14165else 14166 xorg_cv_cc_flag_unknown_warning_option=no 14167fi 14168rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14169fi 14170{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14171$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14172 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14173 CFLAGS="$xorg_testset_save_CFLAGS" 14174fi 14175 14176if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14177 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14178 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14179 fi 14180 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14182$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14183if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14184 $as_echo_n "(cached) " >&6 14185else 14186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14187/* end confdefs.h. */ 14188int i; 14189_ACEOF 14190if ac_fn_c_try_compile "$LINENO"; then : 14191 xorg_cv_cc_flag_unused_command_line_argument=yes 14192else 14193 xorg_cv_cc_flag_unused_command_line_argument=no 14194fi 14195rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14196fi 14197{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14198$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14199 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14200 CFLAGS="$xorg_testset_save_CFLAGS" 14201fi 14202 14203found="no" 14204 14205 if test $found = "no" ; then 14206 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 14207 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14208 fi 14209 14210 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 14211 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14212 fi 14213 14214 CFLAGS="$CFLAGS -Werror=init-self" 14215 14216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5 14217$as_echo_n "checking if $CC supports -Werror=init-self... " >&6; } 14218 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=init-self" | $as_tr_sh` 14219 if eval \${$cacheid+:} false; then : 14220 $as_echo_n "(cached) " >&6 14221else 14222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14223/* end confdefs.h. */ 14224int i; 14225int 14226main () 14227{ 14228 14229 ; 14230 return 0; 14231} 14232_ACEOF 14233if ac_fn_c_try_link "$LINENO"; then : 14234 eval $cacheid=yes 14235else 14236 eval $cacheid=no 14237fi 14238rm -f core conftest.err conftest.$ac_objext \ 14239 conftest$ac_exeext conftest.$ac_ext 14240fi 14241 14242 14243 CFLAGS="$xorg_testset_save_CFLAGS" 14244 14245 eval supported=\$$cacheid 14246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14247$as_echo "$supported" >&6; } 14248 if test "$supported" = "yes" ; then 14249 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self" 14250 found="yes" 14251 fi 14252 fi 14253 14254 14255 14256 14257 14258 14259 14260 14261 14262 14263 14264 14265 14266 14267 14268xorg_testset_save_CFLAGS="$CFLAGS" 14269 14270if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14271 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14273$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14274if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14275 $as_echo_n "(cached) " >&6 14276else 14277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14278/* end confdefs.h. */ 14279int i; 14280_ACEOF 14281if ac_fn_c_try_compile "$LINENO"; then : 14282 xorg_cv_cc_flag_unknown_warning_option=yes 14283else 14284 xorg_cv_cc_flag_unknown_warning_option=no 14285fi 14286rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14287fi 14288{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14289$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14290 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14291 CFLAGS="$xorg_testset_save_CFLAGS" 14292fi 14293 14294if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14295 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14296 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14297 fi 14298 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14300$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14301if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14302 $as_echo_n "(cached) " >&6 14303else 14304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14305/* end confdefs.h. */ 14306int i; 14307_ACEOF 14308if ac_fn_c_try_compile "$LINENO"; then : 14309 xorg_cv_cc_flag_unused_command_line_argument=yes 14310else 14311 xorg_cv_cc_flag_unused_command_line_argument=no 14312fi 14313rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14314fi 14315{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14316$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14317 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14318 CFLAGS="$xorg_testset_save_CFLAGS" 14319fi 14320 14321found="no" 14322 14323 if test $found = "no" ; then 14324 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 14325 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14326 fi 14327 14328 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 14329 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14330 fi 14331 14332 CFLAGS="$CFLAGS -Werror=main" 14333 14334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5 14335$as_echo_n "checking if $CC supports -Werror=main... " >&6; } 14336 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=main" | $as_tr_sh` 14337 if eval \${$cacheid+:} false; then : 14338 $as_echo_n "(cached) " >&6 14339else 14340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14341/* end confdefs.h. */ 14342int i; 14343int 14344main () 14345{ 14346 14347 ; 14348 return 0; 14349} 14350_ACEOF 14351if ac_fn_c_try_link "$LINENO"; then : 14352 eval $cacheid=yes 14353else 14354 eval $cacheid=no 14355fi 14356rm -f core conftest.err conftest.$ac_objext \ 14357 conftest$ac_exeext conftest.$ac_ext 14358fi 14359 14360 14361 CFLAGS="$xorg_testset_save_CFLAGS" 14362 14363 eval supported=\$$cacheid 14364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14365$as_echo "$supported" >&6; } 14366 if test "$supported" = "yes" ; then 14367 BASE_CFLAGS="$BASE_CFLAGS -Werror=main" 14368 found="yes" 14369 fi 14370 fi 14371 14372 14373 14374 14375 14376 14377 14378 14379 14380 14381 14382 14383 14384 14385 14386xorg_testset_save_CFLAGS="$CFLAGS" 14387 14388if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14389 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14391$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14392if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14393 $as_echo_n "(cached) " >&6 14394else 14395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14396/* end confdefs.h. */ 14397int i; 14398_ACEOF 14399if ac_fn_c_try_compile "$LINENO"; then : 14400 xorg_cv_cc_flag_unknown_warning_option=yes 14401else 14402 xorg_cv_cc_flag_unknown_warning_option=no 14403fi 14404rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14405fi 14406{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14407$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14408 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14409 CFLAGS="$xorg_testset_save_CFLAGS" 14410fi 14411 14412if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14413 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14414 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14415 fi 14416 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14418$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14419if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14420 $as_echo_n "(cached) " >&6 14421else 14422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14423/* end confdefs.h. */ 14424int i; 14425_ACEOF 14426if ac_fn_c_try_compile "$LINENO"; then : 14427 xorg_cv_cc_flag_unused_command_line_argument=yes 14428else 14429 xorg_cv_cc_flag_unused_command_line_argument=no 14430fi 14431rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14432fi 14433{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14434$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14435 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14436 CFLAGS="$xorg_testset_save_CFLAGS" 14437fi 14438 14439found="no" 14440 14441 if test $found = "no" ; then 14442 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 14443 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14444 fi 14445 14446 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 14447 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14448 fi 14449 14450 CFLAGS="$CFLAGS -Werror=missing-braces" 14451 14452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5 14453$as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; } 14454 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=missing-braces" | $as_tr_sh` 14455 if eval \${$cacheid+:} false; then : 14456 $as_echo_n "(cached) " >&6 14457else 14458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14459/* end confdefs.h. */ 14460int i; 14461int 14462main () 14463{ 14464 14465 ; 14466 return 0; 14467} 14468_ACEOF 14469if ac_fn_c_try_link "$LINENO"; then : 14470 eval $cacheid=yes 14471else 14472 eval $cacheid=no 14473fi 14474rm -f core conftest.err conftest.$ac_objext \ 14475 conftest$ac_exeext conftest.$ac_ext 14476fi 14477 14478 14479 CFLAGS="$xorg_testset_save_CFLAGS" 14480 14481 eval supported=\$$cacheid 14482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14483$as_echo "$supported" >&6; } 14484 if test "$supported" = "yes" ; then 14485 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces" 14486 found="yes" 14487 fi 14488 fi 14489 14490 14491 14492 14493 14494 14495 14496 14497 14498 14499 14500 14501 14502 14503 14504xorg_testset_save_CFLAGS="$CFLAGS" 14505 14506if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14507 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14509$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14510if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14511 $as_echo_n "(cached) " >&6 14512else 14513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14514/* end confdefs.h. */ 14515int i; 14516_ACEOF 14517if ac_fn_c_try_compile "$LINENO"; then : 14518 xorg_cv_cc_flag_unknown_warning_option=yes 14519else 14520 xorg_cv_cc_flag_unknown_warning_option=no 14521fi 14522rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14523fi 14524{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14525$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14526 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14527 CFLAGS="$xorg_testset_save_CFLAGS" 14528fi 14529 14530if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14531 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14532 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14533 fi 14534 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14536$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14537if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14538 $as_echo_n "(cached) " >&6 14539else 14540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14541/* end confdefs.h. */ 14542int i; 14543_ACEOF 14544if ac_fn_c_try_compile "$LINENO"; then : 14545 xorg_cv_cc_flag_unused_command_line_argument=yes 14546else 14547 xorg_cv_cc_flag_unused_command_line_argument=no 14548fi 14549rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14550fi 14551{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14552$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14553 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14554 CFLAGS="$xorg_testset_save_CFLAGS" 14555fi 14556 14557found="no" 14558 14559 if test $found = "no" ; then 14560 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 14561 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14562 fi 14563 14564 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 14565 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14566 fi 14567 14568 CFLAGS="$CFLAGS -Werror=sequence-point" 14569 14570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5 14571$as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; } 14572 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=sequence-point" | $as_tr_sh` 14573 if eval \${$cacheid+:} false; then : 14574 $as_echo_n "(cached) " >&6 14575else 14576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14577/* end confdefs.h. */ 14578int i; 14579int 14580main () 14581{ 14582 14583 ; 14584 return 0; 14585} 14586_ACEOF 14587if ac_fn_c_try_link "$LINENO"; then : 14588 eval $cacheid=yes 14589else 14590 eval $cacheid=no 14591fi 14592rm -f core conftest.err conftest.$ac_objext \ 14593 conftest$ac_exeext conftest.$ac_ext 14594fi 14595 14596 14597 CFLAGS="$xorg_testset_save_CFLAGS" 14598 14599 eval supported=\$$cacheid 14600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14601$as_echo "$supported" >&6; } 14602 if test "$supported" = "yes" ; then 14603 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point" 14604 found="yes" 14605 fi 14606 fi 14607 14608 14609 14610 14611 14612 14613 14614 14615 14616 14617 14618 14619 14620 14621 14622xorg_testset_save_CFLAGS="$CFLAGS" 14623 14624if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14625 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14627$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14628if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14629 $as_echo_n "(cached) " >&6 14630else 14631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14632/* end confdefs.h. */ 14633int i; 14634_ACEOF 14635if ac_fn_c_try_compile "$LINENO"; then : 14636 xorg_cv_cc_flag_unknown_warning_option=yes 14637else 14638 xorg_cv_cc_flag_unknown_warning_option=no 14639fi 14640rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14641fi 14642{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14643$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14644 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14645 CFLAGS="$xorg_testset_save_CFLAGS" 14646fi 14647 14648if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14649 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14650 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14651 fi 14652 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14654$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14655if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14656 $as_echo_n "(cached) " >&6 14657else 14658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14659/* end confdefs.h. */ 14660int i; 14661_ACEOF 14662if ac_fn_c_try_compile "$LINENO"; then : 14663 xorg_cv_cc_flag_unused_command_line_argument=yes 14664else 14665 xorg_cv_cc_flag_unused_command_line_argument=no 14666fi 14667rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14668fi 14669{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14670$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14671 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14672 CFLAGS="$xorg_testset_save_CFLAGS" 14673fi 14674 14675found="no" 14676 14677 if test $found = "no" ; then 14678 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 14679 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14680 fi 14681 14682 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 14683 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14684 fi 14685 14686 CFLAGS="$CFLAGS -Werror=return-type" 14687 14688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5 14689$as_echo_n "checking if $CC supports -Werror=return-type... " >&6; } 14690 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=return-type" | $as_tr_sh` 14691 if eval \${$cacheid+:} false; then : 14692 $as_echo_n "(cached) " >&6 14693else 14694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14695/* end confdefs.h. */ 14696int i; 14697int 14698main () 14699{ 14700 14701 ; 14702 return 0; 14703} 14704_ACEOF 14705if ac_fn_c_try_link "$LINENO"; then : 14706 eval $cacheid=yes 14707else 14708 eval $cacheid=no 14709fi 14710rm -f core conftest.err conftest.$ac_objext \ 14711 conftest$ac_exeext conftest.$ac_ext 14712fi 14713 14714 14715 CFLAGS="$xorg_testset_save_CFLAGS" 14716 14717 eval supported=\$$cacheid 14718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14719$as_echo "$supported" >&6; } 14720 if test "$supported" = "yes" ; then 14721 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type" 14722 found="yes" 14723 fi 14724 fi 14725 14726 if test $found = "no" ; then 14727 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 14728 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14729 fi 14730 14731 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 14732 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14733 fi 14734 14735 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 14736 14737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5 14738$as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; } 14739 cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_FUNC_HAS_NO_RETURN_STMT" | $as_tr_sh` 14740 if eval \${$cacheid+:} false; then : 14741 $as_echo_n "(cached) " >&6 14742else 14743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14744/* end confdefs.h. */ 14745int i; 14746int 14747main () 14748{ 14749 14750 ; 14751 return 0; 14752} 14753_ACEOF 14754if ac_fn_c_try_link "$LINENO"; then : 14755 eval $cacheid=yes 14756else 14757 eval $cacheid=no 14758fi 14759rm -f core conftest.err conftest.$ac_objext \ 14760 conftest$ac_exeext conftest.$ac_ext 14761fi 14762 14763 14764 CFLAGS="$xorg_testset_save_CFLAGS" 14765 14766 eval supported=\$$cacheid 14767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14768$as_echo "$supported" >&6; } 14769 if test "$supported" = "yes" ; then 14770 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 14771 found="yes" 14772 fi 14773 fi 14774 14775 14776 14777 14778 14779 14780 14781 14782 14783 14784 14785 14786 14787 14788 14789xorg_testset_save_CFLAGS="$CFLAGS" 14790 14791if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14792 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14794$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14795if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14796 $as_echo_n "(cached) " >&6 14797else 14798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14799/* end confdefs.h. */ 14800int i; 14801_ACEOF 14802if ac_fn_c_try_compile "$LINENO"; then : 14803 xorg_cv_cc_flag_unknown_warning_option=yes 14804else 14805 xorg_cv_cc_flag_unknown_warning_option=no 14806fi 14807rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14808fi 14809{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14810$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14811 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14812 CFLAGS="$xorg_testset_save_CFLAGS" 14813fi 14814 14815if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14816 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14817 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14818 fi 14819 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14821$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14822if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14823 $as_echo_n "(cached) " >&6 14824else 14825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14826/* end confdefs.h. */ 14827int i; 14828_ACEOF 14829if ac_fn_c_try_compile "$LINENO"; then : 14830 xorg_cv_cc_flag_unused_command_line_argument=yes 14831else 14832 xorg_cv_cc_flag_unused_command_line_argument=no 14833fi 14834rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14835fi 14836{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14837$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14838 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14839 CFLAGS="$xorg_testset_save_CFLAGS" 14840fi 14841 14842found="no" 14843 14844 if test $found = "no" ; then 14845 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 14846 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14847 fi 14848 14849 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 14850 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14851 fi 14852 14853 CFLAGS="$CFLAGS -Werror=trigraphs" 14854 14855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5 14856$as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; } 14857 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=trigraphs" | $as_tr_sh` 14858 if eval \${$cacheid+:} false; then : 14859 $as_echo_n "(cached) " >&6 14860else 14861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14862/* end confdefs.h. */ 14863int i; 14864int 14865main () 14866{ 14867 14868 ; 14869 return 0; 14870} 14871_ACEOF 14872if ac_fn_c_try_link "$LINENO"; then : 14873 eval $cacheid=yes 14874else 14875 eval $cacheid=no 14876fi 14877rm -f core conftest.err conftest.$ac_objext \ 14878 conftest$ac_exeext conftest.$ac_ext 14879fi 14880 14881 14882 CFLAGS="$xorg_testset_save_CFLAGS" 14883 14884 eval supported=\$$cacheid 14885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14886$as_echo "$supported" >&6; } 14887 if test "$supported" = "yes" ; then 14888 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs" 14889 found="yes" 14890 fi 14891 fi 14892 14893 14894 14895 14896 14897 14898 14899 14900 14901 14902 14903 14904 14905 14906 14907xorg_testset_save_CFLAGS="$CFLAGS" 14908 14909if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14910 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14912$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14913if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14914 $as_echo_n "(cached) " >&6 14915else 14916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14917/* end confdefs.h. */ 14918int i; 14919_ACEOF 14920if ac_fn_c_try_compile "$LINENO"; then : 14921 xorg_cv_cc_flag_unknown_warning_option=yes 14922else 14923 xorg_cv_cc_flag_unknown_warning_option=no 14924fi 14925rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14926fi 14927{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14928$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14929 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14930 CFLAGS="$xorg_testset_save_CFLAGS" 14931fi 14932 14933if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14934 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14935 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14936 fi 14937 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14939$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14940if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14941 $as_echo_n "(cached) " >&6 14942else 14943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14944/* end confdefs.h. */ 14945int i; 14946_ACEOF 14947if ac_fn_c_try_compile "$LINENO"; then : 14948 xorg_cv_cc_flag_unused_command_line_argument=yes 14949else 14950 xorg_cv_cc_flag_unused_command_line_argument=no 14951fi 14952rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14953fi 14954{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14955$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14956 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14957 CFLAGS="$xorg_testset_save_CFLAGS" 14958fi 14959 14960found="no" 14961 14962 if test $found = "no" ; then 14963 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 14964 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14965 fi 14966 14967 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 14968 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14969 fi 14970 14971 CFLAGS="$CFLAGS -Werror=array-bounds" 14972 14973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5 14974$as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; } 14975 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=array-bounds" | $as_tr_sh` 14976 if eval \${$cacheid+:} false; then : 14977 $as_echo_n "(cached) " >&6 14978else 14979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14980/* end confdefs.h. */ 14981int i; 14982int 14983main () 14984{ 14985 14986 ; 14987 return 0; 14988} 14989_ACEOF 14990if ac_fn_c_try_link "$LINENO"; then : 14991 eval $cacheid=yes 14992else 14993 eval $cacheid=no 14994fi 14995rm -f core conftest.err conftest.$ac_objext \ 14996 conftest$ac_exeext conftest.$ac_ext 14997fi 14998 14999 15000 CFLAGS="$xorg_testset_save_CFLAGS" 15001 15002 eval supported=\$$cacheid 15003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15004$as_echo "$supported" >&6; } 15005 if test "$supported" = "yes" ; then 15006 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds" 15007 found="yes" 15008 fi 15009 fi 15010 15011 15012 15013 15014 15015 15016 15017 15018 15019 15020 15021 15022 15023 15024 15025xorg_testset_save_CFLAGS="$CFLAGS" 15026 15027if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15028 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15030$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15031if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15032 $as_echo_n "(cached) " >&6 15033else 15034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15035/* end confdefs.h. */ 15036int i; 15037_ACEOF 15038if ac_fn_c_try_compile "$LINENO"; then : 15039 xorg_cv_cc_flag_unknown_warning_option=yes 15040else 15041 xorg_cv_cc_flag_unknown_warning_option=no 15042fi 15043rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15044fi 15045{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15046$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15047 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15048 CFLAGS="$xorg_testset_save_CFLAGS" 15049fi 15050 15051if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15052 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15053 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15054 fi 15055 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15057$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15058if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15059 $as_echo_n "(cached) " >&6 15060else 15061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15062/* end confdefs.h. */ 15063int i; 15064_ACEOF 15065if ac_fn_c_try_compile "$LINENO"; then : 15066 xorg_cv_cc_flag_unused_command_line_argument=yes 15067else 15068 xorg_cv_cc_flag_unused_command_line_argument=no 15069fi 15070rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15071fi 15072{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15073$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15074 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15075 CFLAGS="$xorg_testset_save_CFLAGS" 15076fi 15077 15078found="no" 15079 15080 if test $found = "no" ; then 15081 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 15082 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15083 fi 15084 15085 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 15086 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15087 fi 15088 15089 CFLAGS="$CFLAGS -Werror=write-strings" 15090 15091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5 15092$as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; } 15093 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=write-strings" | $as_tr_sh` 15094 if eval \${$cacheid+:} false; then : 15095 $as_echo_n "(cached) " >&6 15096else 15097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15098/* end confdefs.h. */ 15099int i; 15100int 15101main () 15102{ 15103 15104 ; 15105 return 0; 15106} 15107_ACEOF 15108if ac_fn_c_try_link "$LINENO"; then : 15109 eval $cacheid=yes 15110else 15111 eval $cacheid=no 15112fi 15113rm -f core conftest.err conftest.$ac_objext \ 15114 conftest$ac_exeext conftest.$ac_ext 15115fi 15116 15117 15118 CFLAGS="$xorg_testset_save_CFLAGS" 15119 15120 eval supported=\$$cacheid 15121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15122$as_echo "$supported" >&6; } 15123 if test "$supported" = "yes" ; then 15124 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings" 15125 found="yes" 15126 fi 15127 fi 15128 15129 15130 15131 15132 15133 15134 15135 15136 15137 15138 15139 15140 15141 15142 15143xorg_testset_save_CFLAGS="$CFLAGS" 15144 15145if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15146 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15148$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15149if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15150 $as_echo_n "(cached) " >&6 15151else 15152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15153/* end confdefs.h. */ 15154int i; 15155_ACEOF 15156if ac_fn_c_try_compile "$LINENO"; then : 15157 xorg_cv_cc_flag_unknown_warning_option=yes 15158else 15159 xorg_cv_cc_flag_unknown_warning_option=no 15160fi 15161rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15162fi 15163{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15164$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15165 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15166 CFLAGS="$xorg_testset_save_CFLAGS" 15167fi 15168 15169if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15170 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15171 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15172 fi 15173 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15175$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15176if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15177 $as_echo_n "(cached) " >&6 15178else 15179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15180/* end confdefs.h. */ 15181int i; 15182_ACEOF 15183if ac_fn_c_try_compile "$LINENO"; then : 15184 xorg_cv_cc_flag_unused_command_line_argument=yes 15185else 15186 xorg_cv_cc_flag_unused_command_line_argument=no 15187fi 15188rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15189fi 15190{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15191$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15192 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15193 CFLAGS="$xorg_testset_save_CFLAGS" 15194fi 15195 15196found="no" 15197 15198 if test $found = "no" ; then 15199 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 15200 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15201 fi 15202 15203 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 15204 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15205 fi 15206 15207 CFLAGS="$CFLAGS -Werror=address" 15208 15209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5 15210$as_echo_n "checking if $CC supports -Werror=address... " >&6; } 15211 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=address" | $as_tr_sh` 15212 if eval \${$cacheid+:} false; then : 15213 $as_echo_n "(cached) " >&6 15214else 15215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15216/* end confdefs.h. */ 15217int i; 15218int 15219main () 15220{ 15221 15222 ; 15223 return 0; 15224} 15225_ACEOF 15226if ac_fn_c_try_link "$LINENO"; then : 15227 eval $cacheid=yes 15228else 15229 eval $cacheid=no 15230fi 15231rm -f core conftest.err conftest.$ac_objext \ 15232 conftest$ac_exeext conftest.$ac_ext 15233fi 15234 15235 15236 CFLAGS="$xorg_testset_save_CFLAGS" 15237 15238 eval supported=\$$cacheid 15239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15240$as_echo "$supported" >&6; } 15241 if test "$supported" = "yes" ; then 15242 BASE_CFLAGS="$BASE_CFLAGS -Werror=address" 15243 found="yes" 15244 fi 15245 fi 15246 15247 15248 15249 15250 15251 15252 15253 15254 15255 15256 15257 15258 15259 15260 15261xorg_testset_save_CFLAGS="$CFLAGS" 15262 15263if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15264 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15266$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15267if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15268 $as_echo_n "(cached) " >&6 15269else 15270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15271/* end confdefs.h. */ 15272int i; 15273_ACEOF 15274if ac_fn_c_try_compile "$LINENO"; then : 15275 xorg_cv_cc_flag_unknown_warning_option=yes 15276else 15277 xorg_cv_cc_flag_unknown_warning_option=no 15278fi 15279rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15280fi 15281{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15282$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15283 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15284 CFLAGS="$xorg_testset_save_CFLAGS" 15285fi 15286 15287if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15288 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15289 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15290 fi 15291 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15293$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15294if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15295 $as_echo_n "(cached) " >&6 15296else 15297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15298/* end confdefs.h. */ 15299int i; 15300_ACEOF 15301if ac_fn_c_try_compile "$LINENO"; then : 15302 xorg_cv_cc_flag_unused_command_line_argument=yes 15303else 15304 xorg_cv_cc_flag_unused_command_line_argument=no 15305fi 15306rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15307fi 15308{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15309$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15310 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15311 CFLAGS="$xorg_testset_save_CFLAGS" 15312fi 15313 15314found="no" 15315 15316 if test $found = "no" ; then 15317 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 15318 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15319 fi 15320 15321 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 15322 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15323 fi 15324 15325 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast" 15326 15327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5 15328$as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; } 15329 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=int-to-pointer-cast" | $as_tr_sh` 15330 if eval \${$cacheid+:} false; then : 15331 $as_echo_n "(cached) " >&6 15332else 15333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15334/* end confdefs.h. */ 15335int i; 15336int 15337main () 15338{ 15339 15340 ; 15341 return 0; 15342} 15343_ACEOF 15344if ac_fn_c_try_link "$LINENO"; then : 15345 eval $cacheid=yes 15346else 15347 eval $cacheid=no 15348fi 15349rm -f core conftest.err conftest.$ac_objext \ 15350 conftest$ac_exeext conftest.$ac_ext 15351fi 15352 15353 15354 CFLAGS="$xorg_testset_save_CFLAGS" 15355 15356 eval supported=\$$cacheid 15357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15358$as_echo "$supported" >&6; } 15359 if test "$supported" = "yes" ; then 15360 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast" 15361 found="yes" 15362 fi 15363 fi 15364 15365 if test $found = "no" ; then 15366 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 15367 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15368 fi 15369 15370 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 15371 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15372 fi 15373 15374 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 15375 15376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5 15377$as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; } 15378 cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_BAD_PTR_INT_COMBINATION" | $as_tr_sh` 15379 if eval \${$cacheid+:} false; then : 15380 $as_echo_n "(cached) " >&6 15381else 15382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15383/* end confdefs.h. */ 15384int i; 15385int 15386main () 15387{ 15388 15389 ; 15390 return 0; 15391} 15392_ACEOF 15393if ac_fn_c_try_link "$LINENO"; then : 15394 eval $cacheid=yes 15395else 15396 eval $cacheid=no 15397fi 15398rm -f core conftest.err conftest.$ac_objext \ 15399 conftest$ac_exeext conftest.$ac_ext 15400fi 15401 15402 15403 CFLAGS="$xorg_testset_save_CFLAGS" 15404 15405 eval supported=\$$cacheid 15406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15407$as_echo "$supported" >&6; } 15408 if test "$supported" = "yes" ; then 15409 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 15410 found="yes" 15411 fi 15412 fi 15413 15414 15415 15416 15417 15418 15419 15420 15421 15422 15423 15424 15425 15426 15427 15428xorg_testset_save_CFLAGS="$CFLAGS" 15429 15430if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15431 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15433$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15434if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15435 $as_echo_n "(cached) " >&6 15436else 15437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15438/* end confdefs.h. */ 15439int i; 15440_ACEOF 15441if ac_fn_c_try_compile "$LINENO"; then : 15442 xorg_cv_cc_flag_unknown_warning_option=yes 15443else 15444 xorg_cv_cc_flag_unknown_warning_option=no 15445fi 15446rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15447fi 15448{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15449$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15450 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15451 CFLAGS="$xorg_testset_save_CFLAGS" 15452fi 15453 15454if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15455 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15456 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15457 fi 15458 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15460$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15461if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15462 $as_echo_n "(cached) " >&6 15463else 15464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15465/* end confdefs.h. */ 15466int i; 15467_ACEOF 15468if ac_fn_c_try_compile "$LINENO"; then : 15469 xorg_cv_cc_flag_unused_command_line_argument=yes 15470else 15471 xorg_cv_cc_flag_unused_command_line_argument=no 15472fi 15473rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15474fi 15475{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15476$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15477 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15478 CFLAGS="$xorg_testset_save_CFLAGS" 15479fi 15480 15481found="no" 15482 15483 if test $found = "no" ; then 15484 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 15485 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15486 fi 15487 15488 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 15489 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15490 fi 15491 15492 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast" 15493 15494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5 15495$as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; } 15496 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=pointer-to-int-cast" | $as_tr_sh` 15497 if eval \${$cacheid+:} false; then : 15498 $as_echo_n "(cached) " >&6 15499else 15500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15501/* end confdefs.h. */ 15502int i; 15503int 15504main () 15505{ 15506 15507 ; 15508 return 0; 15509} 15510_ACEOF 15511if ac_fn_c_try_link "$LINENO"; then : 15512 eval $cacheid=yes 15513else 15514 eval $cacheid=no 15515fi 15516rm -f core conftest.err conftest.$ac_objext \ 15517 conftest$ac_exeext conftest.$ac_ext 15518fi 15519 15520 15521 CFLAGS="$xorg_testset_save_CFLAGS" 15522 15523 eval supported=\$$cacheid 15524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15525$as_echo "$supported" >&6; } 15526 if test "$supported" = "yes" ; then 15527 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast" 15528 found="yes" 15529 fi 15530 fi 15531 15532 # Also -errwarn=E_BAD_PTR_INT_COMBINATION 15533else 15534{ $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 15535$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;} 15536 15537 15538 15539 15540 15541 15542 15543 15544 15545 15546 15547 15548 15549xorg_testset_save_CFLAGS="$CFLAGS" 15550 15551if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15552 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15554$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15555if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15556 $as_echo_n "(cached) " >&6 15557else 15558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15559/* end confdefs.h. */ 15560int i; 15561_ACEOF 15562if ac_fn_c_try_compile "$LINENO"; then : 15563 xorg_cv_cc_flag_unknown_warning_option=yes 15564else 15565 xorg_cv_cc_flag_unknown_warning_option=no 15566fi 15567rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15568fi 15569{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15570$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15571 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15572 CFLAGS="$xorg_testset_save_CFLAGS" 15573fi 15574 15575if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15576 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15577 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15578 fi 15579 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15581$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15582if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15583 $as_echo_n "(cached) " >&6 15584else 15585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15586/* end confdefs.h. */ 15587int i; 15588_ACEOF 15589if ac_fn_c_try_compile "$LINENO"; then : 15590 xorg_cv_cc_flag_unused_command_line_argument=yes 15591else 15592 xorg_cv_cc_flag_unused_command_line_argument=no 15593fi 15594rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15595fi 15596{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15597$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15598 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15599 CFLAGS="$xorg_testset_save_CFLAGS" 15600fi 15601 15602found="no" 15603 15604 if test $found = "no" ; then 15605 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 15606 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15607 fi 15608 15609 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 15610 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15611 fi 15612 15613 CFLAGS="$CFLAGS -Wimplicit" 15614 15615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5 15616$as_echo_n "checking if $CC supports -Wimplicit... " >&6; } 15617 cacheid=xorg_cv_cc_flag__Wimplicit 15618 if eval \${$cacheid+:} false; then : 15619 $as_echo_n "(cached) " >&6 15620else 15621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15622/* end confdefs.h. */ 15623int i; 15624int 15625main () 15626{ 15627 15628 ; 15629 return 0; 15630} 15631_ACEOF 15632if ac_fn_c_try_link "$LINENO"; then : 15633 eval $cacheid=yes 15634else 15635 eval $cacheid=no 15636fi 15637rm -f core conftest.err conftest.$ac_objext \ 15638 conftest$ac_exeext conftest.$ac_ext 15639fi 15640 15641 15642 CFLAGS="$xorg_testset_save_CFLAGS" 15643 15644 eval supported=\$$cacheid 15645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15646$as_echo "$supported" >&6; } 15647 if test "$supported" = "yes" ; then 15648 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit" 15649 found="yes" 15650 fi 15651 fi 15652 15653 15654 15655 15656 15657 15658 15659 15660 15661 15662 15663 15664 15665 15666 15667xorg_testset_save_CFLAGS="$CFLAGS" 15668 15669if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15670 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15672$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15673if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15674 $as_echo_n "(cached) " >&6 15675else 15676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15677/* end confdefs.h. */ 15678int i; 15679_ACEOF 15680if ac_fn_c_try_compile "$LINENO"; then : 15681 xorg_cv_cc_flag_unknown_warning_option=yes 15682else 15683 xorg_cv_cc_flag_unknown_warning_option=no 15684fi 15685rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15686fi 15687{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15688$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15689 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15690 CFLAGS="$xorg_testset_save_CFLAGS" 15691fi 15692 15693if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15694 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15695 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15696 fi 15697 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15699$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15700if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15701 $as_echo_n "(cached) " >&6 15702else 15703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15704/* end confdefs.h. */ 15705int i; 15706_ACEOF 15707if ac_fn_c_try_compile "$LINENO"; then : 15708 xorg_cv_cc_flag_unused_command_line_argument=yes 15709else 15710 xorg_cv_cc_flag_unused_command_line_argument=no 15711fi 15712rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15713fi 15714{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15715$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15716 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15717 CFLAGS="$xorg_testset_save_CFLAGS" 15718fi 15719 15720found="no" 15721 15722 if test $found = "no" ; then 15723 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 15724 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15725 fi 15726 15727 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 15728 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15729 fi 15730 15731 CFLAGS="$CFLAGS -Wnonnull" 15732 15733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5 15734$as_echo_n "checking if $CC supports -Wnonnull... " >&6; } 15735 cacheid=xorg_cv_cc_flag__Wnonnull 15736 if eval \${$cacheid+:} false; then : 15737 $as_echo_n "(cached) " >&6 15738else 15739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15740/* end confdefs.h. */ 15741int i; 15742int 15743main () 15744{ 15745 15746 ; 15747 return 0; 15748} 15749_ACEOF 15750if ac_fn_c_try_link "$LINENO"; then : 15751 eval $cacheid=yes 15752else 15753 eval $cacheid=no 15754fi 15755rm -f core conftest.err conftest.$ac_objext \ 15756 conftest$ac_exeext conftest.$ac_ext 15757fi 15758 15759 15760 CFLAGS="$xorg_testset_save_CFLAGS" 15761 15762 eval supported=\$$cacheid 15763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15764$as_echo "$supported" >&6; } 15765 if test "$supported" = "yes" ; then 15766 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull" 15767 found="yes" 15768 fi 15769 fi 15770 15771 15772 15773 15774 15775 15776 15777 15778 15779 15780 15781 15782 15783 15784 15785xorg_testset_save_CFLAGS="$CFLAGS" 15786 15787if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15788 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15790$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15791if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15792 $as_echo_n "(cached) " >&6 15793else 15794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15795/* end confdefs.h. */ 15796int i; 15797_ACEOF 15798if ac_fn_c_try_compile "$LINENO"; then : 15799 xorg_cv_cc_flag_unknown_warning_option=yes 15800else 15801 xorg_cv_cc_flag_unknown_warning_option=no 15802fi 15803rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15804fi 15805{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15806$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15807 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15808 CFLAGS="$xorg_testset_save_CFLAGS" 15809fi 15810 15811if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15812 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15813 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15814 fi 15815 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15817$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15818if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15819 $as_echo_n "(cached) " >&6 15820else 15821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15822/* end confdefs.h. */ 15823int i; 15824_ACEOF 15825if ac_fn_c_try_compile "$LINENO"; then : 15826 xorg_cv_cc_flag_unused_command_line_argument=yes 15827else 15828 xorg_cv_cc_flag_unused_command_line_argument=no 15829fi 15830rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15831fi 15832{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15833$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15834 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15835 CFLAGS="$xorg_testset_save_CFLAGS" 15836fi 15837 15838found="no" 15839 15840 if test $found = "no" ; then 15841 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 15842 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15843 fi 15844 15845 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 15846 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15847 fi 15848 15849 CFLAGS="$CFLAGS -Winit-self" 15850 15851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5 15852$as_echo_n "checking if $CC supports -Winit-self... " >&6; } 15853 cacheid=xorg_cv_cc_flag__Winit_self 15854 if eval \${$cacheid+:} false; then : 15855 $as_echo_n "(cached) " >&6 15856else 15857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15858/* end confdefs.h. */ 15859int i; 15860int 15861main () 15862{ 15863 15864 ; 15865 return 0; 15866} 15867_ACEOF 15868if ac_fn_c_try_link "$LINENO"; then : 15869 eval $cacheid=yes 15870else 15871 eval $cacheid=no 15872fi 15873rm -f core conftest.err conftest.$ac_objext \ 15874 conftest$ac_exeext conftest.$ac_ext 15875fi 15876 15877 15878 CFLAGS="$xorg_testset_save_CFLAGS" 15879 15880 eval supported=\$$cacheid 15881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15882$as_echo "$supported" >&6; } 15883 if test "$supported" = "yes" ; then 15884 BASE_CFLAGS="$BASE_CFLAGS -Winit-self" 15885 found="yes" 15886 fi 15887 fi 15888 15889 15890 15891 15892 15893 15894 15895 15896 15897 15898 15899 15900 15901 15902 15903xorg_testset_save_CFLAGS="$CFLAGS" 15904 15905if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15906 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15908$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15909if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15910 $as_echo_n "(cached) " >&6 15911else 15912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15913/* end confdefs.h. */ 15914int i; 15915_ACEOF 15916if ac_fn_c_try_compile "$LINENO"; then : 15917 xorg_cv_cc_flag_unknown_warning_option=yes 15918else 15919 xorg_cv_cc_flag_unknown_warning_option=no 15920fi 15921rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15922fi 15923{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15924$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15925 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15926 CFLAGS="$xorg_testset_save_CFLAGS" 15927fi 15928 15929if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15930 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15931 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15932 fi 15933 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15935$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15936if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15937 $as_echo_n "(cached) " >&6 15938else 15939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15940/* end confdefs.h. */ 15941int i; 15942_ACEOF 15943if ac_fn_c_try_compile "$LINENO"; then : 15944 xorg_cv_cc_flag_unused_command_line_argument=yes 15945else 15946 xorg_cv_cc_flag_unused_command_line_argument=no 15947fi 15948rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15949fi 15950{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15951$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15952 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15953 CFLAGS="$xorg_testset_save_CFLAGS" 15954fi 15955 15956found="no" 15957 15958 if test $found = "no" ; then 15959 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 15960 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15961 fi 15962 15963 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 15964 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15965 fi 15966 15967 CFLAGS="$CFLAGS -Wmain" 15968 15969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5 15970$as_echo_n "checking if $CC supports -Wmain... " >&6; } 15971 cacheid=xorg_cv_cc_flag__Wmain 15972 if eval \${$cacheid+:} false; then : 15973 $as_echo_n "(cached) " >&6 15974else 15975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15976/* end confdefs.h. */ 15977int i; 15978int 15979main () 15980{ 15981 15982 ; 15983 return 0; 15984} 15985_ACEOF 15986if ac_fn_c_try_link "$LINENO"; then : 15987 eval $cacheid=yes 15988else 15989 eval $cacheid=no 15990fi 15991rm -f core conftest.err conftest.$ac_objext \ 15992 conftest$ac_exeext conftest.$ac_ext 15993fi 15994 15995 15996 CFLAGS="$xorg_testset_save_CFLAGS" 15997 15998 eval supported=\$$cacheid 15999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16000$as_echo "$supported" >&6; } 16001 if test "$supported" = "yes" ; then 16002 BASE_CFLAGS="$BASE_CFLAGS -Wmain" 16003 found="yes" 16004 fi 16005 fi 16006 16007 16008 16009 16010 16011 16012 16013 16014 16015 16016 16017 16018 16019 16020 16021xorg_testset_save_CFLAGS="$CFLAGS" 16022 16023if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16024 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16026$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16027if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16028 $as_echo_n "(cached) " >&6 16029else 16030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16031/* end confdefs.h. */ 16032int i; 16033_ACEOF 16034if ac_fn_c_try_compile "$LINENO"; then : 16035 xorg_cv_cc_flag_unknown_warning_option=yes 16036else 16037 xorg_cv_cc_flag_unknown_warning_option=no 16038fi 16039rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16040fi 16041{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16042$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16043 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16044 CFLAGS="$xorg_testset_save_CFLAGS" 16045fi 16046 16047if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16048 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16049 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16050 fi 16051 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16053$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16054if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16055 $as_echo_n "(cached) " >&6 16056else 16057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16058/* end confdefs.h. */ 16059int i; 16060_ACEOF 16061if ac_fn_c_try_compile "$LINENO"; then : 16062 xorg_cv_cc_flag_unused_command_line_argument=yes 16063else 16064 xorg_cv_cc_flag_unused_command_line_argument=no 16065fi 16066rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16067fi 16068{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16069$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16070 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16071 CFLAGS="$xorg_testset_save_CFLAGS" 16072fi 16073 16074found="no" 16075 16076 if test $found = "no" ; then 16077 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 16078 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16079 fi 16080 16081 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 16082 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16083 fi 16084 16085 CFLAGS="$CFLAGS -Wmissing-braces" 16086 16087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5 16088$as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; } 16089 cacheid=xorg_cv_cc_flag__Wmissing_braces 16090 if eval \${$cacheid+:} false; then : 16091 $as_echo_n "(cached) " >&6 16092else 16093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16094/* end confdefs.h. */ 16095int i; 16096int 16097main () 16098{ 16099 16100 ; 16101 return 0; 16102} 16103_ACEOF 16104if ac_fn_c_try_link "$LINENO"; then : 16105 eval $cacheid=yes 16106else 16107 eval $cacheid=no 16108fi 16109rm -f core conftest.err conftest.$ac_objext \ 16110 conftest$ac_exeext conftest.$ac_ext 16111fi 16112 16113 16114 CFLAGS="$xorg_testset_save_CFLAGS" 16115 16116 eval supported=\$$cacheid 16117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16118$as_echo "$supported" >&6; } 16119 if test "$supported" = "yes" ; then 16120 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces" 16121 found="yes" 16122 fi 16123 fi 16124 16125 16126 16127 16128 16129 16130 16131 16132 16133 16134 16135 16136 16137 16138 16139xorg_testset_save_CFLAGS="$CFLAGS" 16140 16141if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16142 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16144$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16145if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16146 $as_echo_n "(cached) " >&6 16147else 16148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16149/* end confdefs.h. */ 16150int i; 16151_ACEOF 16152if ac_fn_c_try_compile "$LINENO"; then : 16153 xorg_cv_cc_flag_unknown_warning_option=yes 16154else 16155 xorg_cv_cc_flag_unknown_warning_option=no 16156fi 16157rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16158fi 16159{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16160$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16161 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16162 CFLAGS="$xorg_testset_save_CFLAGS" 16163fi 16164 16165if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16166 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16167 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16168 fi 16169 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16171$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16172if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16173 $as_echo_n "(cached) " >&6 16174else 16175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16176/* end confdefs.h. */ 16177int i; 16178_ACEOF 16179if ac_fn_c_try_compile "$LINENO"; then : 16180 xorg_cv_cc_flag_unused_command_line_argument=yes 16181else 16182 xorg_cv_cc_flag_unused_command_line_argument=no 16183fi 16184rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16185fi 16186{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16187$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16188 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16189 CFLAGS="$xorg_testset_save_CFLAGS" 16190fi 16191 16192found="no" 16193 16194 if test $found = "no" ; then 16195 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 16196 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16197 fi 16198 16199 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 16200 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16201 fi 16202 16203 CFLAGS="$CFLAGS -Wsequence-point" 16204 16205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5 16206$as_echo_n "checking if $CC supports -Wsequence-point... " >&6; } 16207 cacheid=xorg_cv_cc_flag__Wsequence_point 16208 if eval \${$cacheid+:} false; then : 16209 $as_echo_n "(cached) " >&6 16210else 16211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16212/* end confdefs.h. */ 16213int i; 16214int 16215main () 16216{ 16217 16218 ; 16219 return 0; 16220} 16221_ACEOF 16222if ac_fn_c_try_link "$LINENO"; then : 16223 eval $cacheid=yes 16224else 16225 eval $cacheid=no 16226fi 16227rm -f core conftest.err conftest.$ac_objext \ 16228 conftest$ac_exeext conftest.$ac_ext 16229fi 16230 16231 16232 CFLAGS="$xorg_testset_save_CFLAGS" 16233 16234 eval supported=\$$cacheid 16235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16236$as_echo "$supported" >&6; } 16237 if test "$supported" = "yes" ; then 16238 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point" 16239 found="yes" 16240 fi 16241 fi 16242 16243 16244 16245 16246 16247 16248 16249 16250 16251 16252 16253 16254 16255 16256 16257xorg_testset_save_CFLAGS="$CFLAGS" 16258 16259if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16260 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16262$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16263if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16264 $as_echo_n "(cached) " >&6 16265else 16266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16267/* end confdefs.h. */ 16268int i; 16269_ACEOF 16270if ac_fn_c_try_compile "$LINENO"; then : 16271 xorg_cv_cc_flag_unknown_warning_option=yes 16272else 16273 xorg_cv_cc_flag_unknown_warning_option=no 16274fi 16275rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16276fi 16277{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16278$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16279 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16280 CFLAGS="$xorg_testset_save_CFLAGS" 16281fi 16282 16283if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16284 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16285 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16286 fi 16287 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16289$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16290if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16291 $as_echo_n "(cached) " >&6 16292else 16293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16294/* end confdefs.h. */ 16295int i; 16296_ACEOF 16297if ac_fn_c_try_compile "$LINENO"; then : 16298 xorg_cv_cc_flag_unused_command_line_argument=yes 16299else 16300 xorg_cv_cc_flag_unused_command_line_argument=no 16301fi 16302rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16303fi 16304{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16305$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16306 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16307 CFLAGS="$xorg_testset_save_CFLAGS" 16308fi 16309 16310found="no" 16311 16312 if test $found = "no" ; then 16313 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 16314 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16315 fi 16316 16317 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 16318 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16319 fi 16320 16321 CFLAGS="$CFLAGS -Wreturn-type" 16322 16323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5 16324$as_echo_n "checking if $CC supports -Wreturn-type... " >&6; } 16325 cacheid=xorg_cv_cc_flag__Wreturn_type 16326 if eval \${$cacheid+:} false; then : 16327 $as_echo_n "(cached) " >&6 16328else 16329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16330/* end confdefs.h. */ 16331int i; 16332int 16333main () 16334{ 16335 16336 ; 16337 return 0; 16338} 16339_ACEOF 16340if ac_fn_c_try_link "$LINENO"; then : 16341 eval $cacheid=yes 16342else 16343 eval $cacheid=no 16344fi 16345rm -f core conftest.err conftest.$ac_objext \ 16346 conftest$ac_exeext conftest.$ac_ext 16347fi 16348 16349 16350 CFLAGS="$xorg_testset_save_CFLAGS" 16351 16352 eval supported=\$$cacheid 16353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16354$as_echo "$supported" >&6; } 16355 if test "$supported" = "yes" ; then 16356 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type" 16357 found="yes" 16358 fi 16359 fi 16360 16361 16362 16363 16364 16365 16366 16367 16368 16369 16370 16371 16372 16373 16374 16375xorg_testset_save_CFLAGS="$CFLAGS" 16376 16377if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16378 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16380$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16381if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16382 $as_echo_n "(cached) " >&6 16383else 16384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16385/* end confdefs.h. */ 16386int i; 16387_ACEOF 16388if ac_fn_c_try_compile "$LINENO"; then : 16389 xorg_cv_cc_flag_unknown_warning_option=yes 16390else 16391 xorg_cv_cc_flag_unknown_warning_option=no 16392fi 16393rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16394fi 16395{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16396$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16397 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16398 CFLAGS="$xorg_testset_save_CFLAGS" 16399fi 16400 16401if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16402 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16403 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16404 fi 16405 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16407$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16408if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16409 $as_echo_n "(cached) " >&6 16410else 16411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16412/* end confdefs.h. */ 16413int i; 16414_ACEOF 16415if ac_fn_c_try_compile "$LINENO"; then : 16416 xorg_cv_cc_flag_unused_command_line_argument=yes 16417else 16418 xorg_cv_cc_flag_unused_command_line_argument=no 16419fi 16420rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16421fi 16422{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16423$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16424 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16425 CFLAGS="$xorg_testset_save_CFLAGS" 16426fi 16427 16428found="no" 16429 16430 if test $found = "no" ; then 16431 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 16432 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16433 fi 16434 16435 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 16436 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16437 fi 16438 16439 CFLAGS="$CFLAGS -Wtrigraphs" 16440 16441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5 16442$as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; } 16443 cacheid=xorg_cv_cc_flag__Wtrigraphs 16444 if eval \${$cacheid+:} false; then : 16445 $as_echo_n "(cached) " >&6 16446else 16447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16448/* end confdefs.h. */ 16449int i; 16450int 16451main () 16452{ 16453 16454 ; 16455 return 0; 16456} 16457_ACEOF 16458if ac_fn_c_try_link "$LINENO"; then : 16459 eval $cacheid=yes 16460else 16461 eval $cacheid=no 16462fi 16463rm -f core conftest.err conftest.$ac_objext \ 16464 conftest$ac_exeext conftest.$ac_ext 16465fi 16466 16467 16468 CFLAGS="$xorg_testset_save_CFLAGS" 16469 16470 eval supported=\$$cacheid 16471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16472$as_echo "$supported" >&6; } 16473 if test "$supported" = "yes" ; then 16474 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs" 16475 found="yes" 16476 fi 16477 fi 16478 16479 16480 16481 16482 16483 16484 16485 16486 16487 16488 16489 16490 16491 16492 16493xorg_testset_save_CFLAGS="$CFLAGS" 16494 16495if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16496 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16498$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16499if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16500 $as_echo_n "(cached) " >&6 16501else 16502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16503/* end confdefs.h. */ 16504int i; 16505_ACEOF 16506if ac_fn_c_try_compile "$LINENO"; then : 16507 xorg_cv_cc_flag_unknown_warning_option=yes 16508else 16509 xorg_cv_cc_flag_unknown_warning_option=no 16510fi 16511rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16512fi 16513{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16514$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16515 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16516 CFLAGS="$xorg_testset_save_CFLAGS" 16517fi 16518 16519if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16520 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16521 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16522 fi 16523 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16525$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16526if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16527 $as_echo_n "(cached) " >&6 16528else 16529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16530/* end confdefs.h. */ 16531int i; 16532_ACEOF 16533if ac_fn_c_try_compile "$LINENO"; then : 16534 xorg_cv_cc_flag_unused_command_line_argument=yes 16535else 16536 xorg_cv_cc_flag_unused_command_line_argument=no 16537fi 16538rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16539fi 16540{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16541$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16542 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16543 CFLAGS="$xorg_testset_save_CFLAGS" 16544fi 16545 16546found="no" 16547 16548 if test $found = "no" ; then 16549 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 16550 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16551 fi 16552 16553 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 16554 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16555 fi 16556 16557 CFLAGS="$CFLAGS -Warray-bounds" 16558 16559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5 16560$as_echo_n "checking if $CC supports -Warray-bounds... " >&6; } 16561 cacheid=xorg_cv_cc_flag__Warray_bounds 16562 if eval \${$cacheid+:} false; then : 16563 $as_echo_n "(cached) " >&6 16564else 16565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16566/* end confdefs.h. */ 16567int i; 16568int 16569main () 16570{ 16571 16572 ; 16573 return 0; 16574} 16575_ACEOF 16576if ac_fn_c_try_link "$LINENO"; then : 16577 eval $cacheid=yes 16578else 16579 eval $cacheid=no 16580fi 16581rm -f core conftest.err conftest.$ac_objext \ 16582 conftest$ac_exeext conftest.$ac_ext 16583fi 16584 16585 16586 CFLAGS="$xorg_testset_save_CFLAGS" 16587 16588 eval supported=\$$cacheid 16589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16590$as_echo "$supported" >&6; } 16591 if test "$supported" = "yes" ; then 16592 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds" 16593 found="yes" 16594 fi 16595 fi 16596 16597 16598 16599 16600 16601 16602 16603 16604 16605 16606 16607 16608 16609 16610 16611xorg_testset_save_CFLAGS="$CFLAGS" 16612 16613if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16614 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16616$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16617if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16618 $as_echo_n "(cached) " >&6 16619else 16620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16621/* end confdefs.h. */ 16622int i; 16623_ACEOF 16624if ac_fn_c_try_compile "$LINENO"; then : 16625 xorg_cv_cc_flag_unknown_warning_option=yes 16626else 16627 xorg_cv_cc_flag_unknown_warning_option=no 16628fi 16629rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16630fi 16631{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16632$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16633 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16634 CFLAGS="$xorg_testset_save_CFLAGS" 16635fi 16636 16637if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16638 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16639 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16640 fi 16641 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16643$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16644if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16645 $as_echo_n "(cached) " >&6 16646else 16647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16648/* end confdefs.h. */ 16649int i; 16650_ACEOF 16651if ac_fn_c_try_compile "$LINENO"; then : 16652 xorg_cv_cc_flag_unused_command_line_argument=yes 16653else 16654 xorg_cv_cc_flag_unused_command_line_argument=no 16655fi 16656rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16657fi 16658{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16659$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16660 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16661 CFLAGS="$xorg_testset_save_CFLAGS" 16662fi 16663 16664found="no" 16665 16666 if test $found = "no" ; then 16667 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 16668 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16669 fi 16670 16671 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 16672 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16673 fi 16674 16675 CFLAGS="$CFLAGS -Wwrite-strings" 16676 16677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5 16678$as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; } 16679 cacheid=xorg_cv_cc_flag__Wwrite_strings 16680 if eval \${$cacheid+:} false; then : 16681 $as_echo_n "(cached) " >&6 16682else 16683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16684/* end confdefs.h. */ 16685int i; 16686int 16687main () 16688{ 16689 16690 ; 16691 return 0; 16692} 16693_ACEOF 16694if ac_fn_c_try_link "$LINENO"; then : 16695 eval $cacheid=yes 16696else 16697 eval $cacheid=no 16698fi 16699rm -f core conftest.err conftest.$ac_objext \ 16700 conftest$ac_exeext conftest.$ac_ext 16701fi 16702 16703 16704 CFLAGS="$xorg_testset_save_CFLAGS" 16705 16706 eval supported=\$$cacheid 16707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16708$as_echo "$supported" >&6; } 16709 if test "$supported" = "yes" ; then 16710 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings" 16711 found="yes" 16712 fi 16713 fi 16714 16715 16716 16717 16718 16719 16720 16721 16722 16723 16724 16725 16726 16727 16728 16729xorg_testset_save_CFLAGS="$CFLAGS" 16730 16731if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16732 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16734$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16735if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16736 $as_echo_n "(cached) " >&6 16737else 16738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16739/* end confdefs.h. */ 16740int i; 16741_ACEOF 16742if ac_fn_c_try_compile "$LINENO"; then : 16743 xorg_cv_cc_flag_unknown_warning_option=yes 16744else 16745 xorg_cv_cc_flag_unknown_warning_option=no 16746fi 16747rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16748fi 16749{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16750$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16751 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16752 CFLAGS="$xorg_testset_save_CFLAGS" 16753fi 16754 16755if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16756 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16757 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16758 fi 16759 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16761$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16762if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16763 $as_echo_n "(cached) " >&6 16764else 16765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16766/* end confdefs.h. */ 16767int i; 16768_ACEOF 16769if ac_fn_c_try_compile "$LINENO"; then : 16770 xorg_cv_cc_flag_unused_command_line_argument=yes 16771else 16772 xorg_cv_cc_flag_unused_command_line_argument=no 16773fi 16774rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16775fi 16776{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16777$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16778 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16779 CFLAGS="$xorg_testset_save_CFLAGS" 16780fi 16781 16782found="no" 16783 16784 if test $found = "no" ; then 16785 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 16786 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16787 fi 16788 16789 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 16790 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16791 fi 16792 16793 CFLAGS="$CFLAGS -Waddress" 16794 16795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5 16796$as_echo_n "checking if $CC supports -Waddress... " >&6; } 16797 cacheid=xorg_cv_cc_flag__Waddress 16798 if eval \${$cacheid+:} false; then : 16799 $as_echo_n "(cached) " >&6 16800else 16801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16802/* end confdefs.h. */ 16803int i; 16804int 16805main () 16806{ 16807 16808 ; 16809 return 0; 16810} 16811_ACEOF 16812if ac_fn_c_try_link "$LINENO"; then : 16813 eval $cacheid=yes 16814else 16815 eval $cacheid=no 16816fi 16817rm -f core conftest.err conftest.$ac_objext \ 16818 conftest$ac_exeext conftest.$ac_ext 16819fi 16820 16821 16822 CFLAGS="$xorg_testset_save_CFLAGS" 16823 16824 eval supported=\$$cacheid 16825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16826$as_echo "$supported" >&6; } 16827 if test "$supported" = "yes" ; then 16828 BASE_CFLAGS="$BASE_CFLAGS -Waddress" 16829 found="yes" 16830 fi 16831 fi 16832 16833 16834 16835 16836 16837 16838 16839 16840 16841 16842 16843 16844 16845 16846 16847xorg_testset_save_CFLAGS="$CFLAGS" 16848 16849if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16850 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16852$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16853if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16854 $as_echo_n "(cached) " >&6 16855else 16856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16857/* end confdefs.h. */ 16858int i; 16859_ACEOF 16860if ac_fn_c_try_compile "$LINENO"; then : 16861 xorg_cv_cc_flag_unknown_warning_option=yes 16862else 16863 xorg_cv_cc_flag_unknown_warning_option=no 16864fi 16865rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16866fi 16867{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16868$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16869 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16870 CFLAGS="$xorg_testset_save_CFLAGS" 16871fi 16872 16873if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16874 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16875 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16876 fi 16877 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16879$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16880if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16881 $as_echo_n "(cached) " >&6 16882else 16883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16884/* end confdefs.h. */ 16885int i; 16886_ACEOF 16887if ac_fn_c_try_compile "$LINENO"; then : 16888 xorg_cv_cc_flag_unused_command_line_argument=yes 16889else 16890 xorg_cv_cc_flag_unused_command_line_argument=no 16891fi 16892rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16893fi 16894{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16895$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16896 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16897 CFLAGS="$xorg_testset_save_CFLAGS" 16898fi 16899 16900found="no" 16901 16902 if test $found = "no" ; then 16903 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 16904 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16905 fi 16906 16907 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 16908 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16909 fi 16910 16911 CFLAGS="$CFLAGS -Wint-to-pointer-cast" 16912 16913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5 16914$as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; } 16915 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast 16916 if eval \${$cacheid+:} false; then : 16917 $as_echo_n "(cached) " >&6 16918else 16919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16920/* end confdefs.h. */ 16921int i; 16922int 16923main () 16924{ 16925 16926 ; 16927 return 0; 16928} 16929_ACEOF 16930if ac_fn_c_try_link "$LINENO"; then : 16931 eval $cacheid=yes 16932else 16933 eval $cacheid=no 16934fi 16935rm -f core conftest.err conftest.$ac_objext \ 16936 conftest$ac_exeext conftest.$ac_ext 16937fi 16938 16939 16940 CFLAGS="$xorg_testset_save_CFLAGS" 16941 16942 eval supported=\$$cacheid 16943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16944$as_echo "$supported" >&6; } 16945 if test "$supported" = "yes" ; then 16946 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast" 16947 found="yes" 16948 fi 16949 fi 16950 16951 16952 16953 16954 16955 16956 16957 16958 16959 16960 16961 16962 16963 16964 16965xorg_testset_save_CFLAGS="$CFLAGS" 16966 16967if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16968 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16970$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16971if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16972 $as_echo_n "(cached) " >&6 16973else 16974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16975/* end confdefs.h. */ 16976int i; 16977_ACEOF 16978if ac_fn_c_try_compile "$LINENO"; then : 16979 xorg_cv_cc_flag_unknown_warning_option=yes 16980else 16981 xorg_cv_cc_flag_unknown_warning_option=no 16982fi 16983rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16984fi 16985{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16986$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16987 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16988 CFLAGS="$xorg_testset_save_CFLAGS" 16989fi 16990 16991if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16992 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16993 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16994 fi 16995 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16997$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16998if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16999 $as_echo_n "(cached) " >&6 17000else 17001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17002/* end confdefs.h. */ 17003int i; 17004_ACEOF 17005if ac_fn_c_try_compile "$LINENO"; then : 17006 xorg_cv_cc_flag_unused_command_line_argument=yes 17007else 17008 xorg_cv_cc_flag_unused_command_line_argument=no 17009fi 17010rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17011fi 17012{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17013$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17014 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17015 CFLAGS="$xorg_testset_save_CFLAGS" 17016fi 17017 17018found="no" 17019 17020 if test $found = "no" ; then 17021 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 17022 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17023 fi 17024 17025 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 17026 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17027 fi 17028 17029 CFLAGS="$CFLAGS -Wpointer-to-int-cast" 17030 17031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5 17032$as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; } 17033 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast 17034 if eval \${$cacheid+:} false; then : 17035 $as_echo_n "(cached) " >&6 17036else 17037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17038/* end confdefs.h. */ 17039int i; 17040int 17041main () 17042{ 17043 17044 ; 17045 return 0; 17046} 17047_ACEOF 17048if ac_fn_c_try_link "$LINENO"; then : 17049 eval $cacheid=yes 17050else 17051 eval $cacheid=no 17052fi 17053rm -f core conftest.err conftest.$ac_objext \ 17054 conftest$ac_exeext conftest.$ac_ext 17055fi 17056 17057 17058 CFLAGS="$xorg_testset_save_CFLAGS" 17059 17060 eval supported=\$$cacheid 17061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17062$as_echo "$supported" >&6; } 17063 if test "$supported" = "yes" ; then 17064 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast" 17065 found="yes" 17066 fi 17067 fi 17068 17069 17070fi 17071 17072 17073 17074 17075 17076 17077 17078 CWARNFLAGS="$BASE_CFLAGS" 17079 if test "x$GCC" = xyes ; then 17080 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing" 17081 fi 17082 17083 17084 17085 17086 17087 17088 17089 17090# Check whether --enable-strict-compilation was given. 17091if test "${enable_strict_compilation+set}" = set; then : 17092 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 17093else 17094 STRICT_COMPILE=no 17095fi 17096 17097 17098 17099 17100 17101 17102STRICT_CFLAGS="" 17103 17104 17105 17106 17107 17108 17109 17110 17111 17112 17113 17114 17115 17116xorg_testset_save_CFLAGS="$CFLAGS" 17117 17118if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17119 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17121$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17122if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 17123 $as_echo_n "(cached) " >&6 17124else 17125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17126/* end confdefs.h. */ 17127int i; 17128_ACEOF 17129if ac_fn_c_try_compile "$LINENO"; then : 17130 xorg_cv_cc_flag_unknown_warning_option=yes 17131else 17132 xorg_cv_cc_flag_unknown_warning_option=no 17133fi 17134rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17135fi 17136{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17137$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17138 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17139 CFLAGS="$xorg_testset_save_CFLAGS" 17140fi 17141 17142if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17143 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17144 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17145 fi 17146 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17148$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17149if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 17150 $as_echo_n "(cached) " >&6 17151else 17152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17153/* end confdefs.h. */ 17154int i; 17155_ACEOF 17156if ac_fn_c_try_compile "$LINENO"; then : 17157 xorg_cv_cc_flag_unused_command_line_argument=yes 17158else 17159 xorg_cv_cc_flag_unused_command_line_argument=no 17160fi 17161rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17162fi 17163{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17164$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17165 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17166 CFLAGS="$xorg_testset_save_CFLAGS" 17167fi 17168 17169found="no" 17170 17171 if test $found = "no" ; then 17172 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 17173 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17174 fi 17175 17176 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 17177 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17178 fi 17179 17180 CFLAGS="$CFLAGS -pedantic" 17181 17182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5 17183$as_echo_n "checking if $CC supports -pedantic... " >&6; } 17184 cacheid=xorg_cv_cc_flag__pedantic 17185 if eval \${$cacheid+:} false; then : 17186 $as_echo_n "(cached) " >&6 17187else 17188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17189/* end confdefs.h. */ 17190int i; 17191int 17192main () 17193{ 17194 17195 ; 17196 return 0; 17197} 17198_ACEOF 17199if ac_fn_c_try_link "$LINENO"; then : 17200 eval $cacheid=yes 17201else 17202 eval $cacheid=no 17203fi 17204rm -f core conftest.err conftest.$ac_objext \ 17205 conftest$ac_exeext conftest.$ac_ext 17206fi 17207 17208 17209 CFLAGS="$xorg_testset_save_CFLAGS" 17210 17211 eval supported=\$$cacheid 17212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17213$as_echo "$supported" >&6; } 17214 if test "$supported" = "yes" ; then 17215 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic" 17216 found="yes" 17217 fi 17218 fi 17219 17220 17221 17222 17223 17224 17225 17226 17227 17228 17229 17230 17231 17232 17233 17234xorg_testset_save_CFLAGS="$CFLAGS" 17235 17236if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17237 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17239$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17240if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 17241 $as_echo_n "(cached) " >&6 17242else 17243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17244/* end confdefs.h. */ 17245int i; 17246_ACEOF 17247if ac_fn_c_try_compile "$LINENO"; then : 17248 xorg_cv_cc_flag_unknown_warning_option=yes 17249else 17250 xorg_cv_cc_flag_unknown_warning_option=no 17251fi 17252rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17253fi 17254{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17255$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17256 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17257 CFLAGS="$xorg_testset_save_CFLAGS" 17258fi 17259 17260if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17261 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17262 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17263 fi 17264 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17266$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17267if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 17268 $as_echo_n "(cached) " >&6 17269else 17270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17271/* end confdefs.h. */ 17272int i; 17273_ACEOF 17274if ac_fn_c_try_compile "$LINENO"; then : 17275 xorg_cv_cc_flag_unused_command_line_argument=yes 17276else 17277 xorg_cv_cc_flag_unused_command_line_argument=no 17278fi 17279rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17280fi 17281{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17282$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17283 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17284 CFLAGS="$xorg_testset_save_CFLAGS" 17285fi 17286 17287found="no" 17288 17289 if test $found = "no" ; then 17290 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 17291 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17292 fi 17293 17294 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 17295 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17296 fi 17297 17298 CFLAGS="$CFLAGS -Werror" 17299 17300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5 17301$as_echo_n "checking if $CC supports -Werror... " >&6; } 17302 cacheid=xorg_cv_cc_flag__Werror 17303 if eval \${$cacheid+:} false; then : 17304 $as_echo_n "(cached) " >&6 17305else 17306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17307/* end confdefs.h. */ 17308int i; 17309int 17310main () 17311{ 17312 17313 ; 17314 return 0; 17315} 17316_ACEOF 17317if ac_fn_c_try_link "$LINENO"; then : 17318 eval $cacheid=yes 17319else 17320 eval $cacheid=no 17321fi 17322rm -f core conftest.err conftest.$ac_objext \ 17323 conftest$ac_exeext conftest.$ac_ext 17324fi 17325 17326 17327 CFLAGS="$xorg_testset_save_CFLAGS" 17328 17329 eval supported=\$$cacheid 17330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17331$as_echo "$supported" >&6; } 17332 if test "$supported" = "yes" ; then 17333 STRICT_CFLAGS="$STRICT_CFLAGS -Werror" 17334 found="yes" 17335 fi 17336 fi 17337 17338 if test $found = "no" ; then 17339 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 17340 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17341 fi 17342 17343 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 17344 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17345 fi 17346 17347 CFLAGS="$CFLAGS -errwarn" 17348 17349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5 17350$as_echo_n "checking if $CC supports -errwarn... " >&6; } 17351 cacheid=xorg_cv_cc_flag__errwarn 17352 if eval \${$cacheid+:} false; then : 17353 $as_echo_n "(cached) " >&6 17354else 17355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17356/* end confdefs.h. */ 17357int i; 17358int 17359main () 17360{ 17361 17362 ; 17363 return 0; 17364} 17365_ACEOF 17366if ac_fn_c_try_link "$LINENO"; then : 17367 eval $cacheid=yes 17368else 17369 eval $cacheid=no 17370fi 17371rm -f core conftest.err conftest.$ac_objext \ 17372 conftest$ac_exeext conftest.$ac_ext 17373fi 17374 17375 17376 CFLAGS="$xorg_testset_save_CFLAGS" 17377 17378 eval supported=\$$cacheid 17379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17380$as_echo "$supported" >&6; } 17381 if test "$supported" = "yes" ; then 17382 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn" 17383 found="yes" 17384 fi 17385 fi 17386 17387 17388 17389# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not 17390# activate it with -Werror, so we add it here explicitly. 17391 17392 17393 17394 17395 17396 17397 17398 17399 17400 17401 17402 17403 17404xorg_testset_save_CFLAGS="$CFLAGS" 17405 17406if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17407 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17409$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17410if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 17411 $as_echo_n "(cached) " >&6 17412else 17413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17414/* end confdefs.h. */ 17415int i; 17416_ACEOF 17417if ac_fn_c_try_compile "$LINENO"; then : 17418 xorg_cv_cc_flag_unknown_warning_option=yes 17419else 17420 xorg_cv_cc_flag_unknown_warning_option=no 17421fi 17422rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17423fi 17424{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17425$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17426 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17427 CFLAGS="$xorg_testset_save_CFLAGS" 17428fi 17429 17430if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17431 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17432 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17433 fi 17434 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17436$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17437if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 17438 $as_echo_n "(cached) " >&6 17439else 17440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17441/* end confdefs.h. */ 17442int i; 17443_ACEOF 17444if ac_fn_c_try_compile "$LINENO"; then : 17445 xorg_cv_cc_flag_unused_command_line_argument=yes 17446else 17447 xorg_cv_cc_flag_unused_command_line_argument=no 17448fi 17449rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17450fi 17451{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17452$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17453 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17454 CFLAGS="$xorg_testset_save_CFLAGS" 17455fi 17456 17457found="no" 17458 17459 if test $found = "no" ; then 17460 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 17461 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17462 fi 17463 17464 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 17465 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17466 fi 17467 17468 CFLAGS="$CFLAGS -Werror=attributes" 17469 17470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5 17471$as_echo_n "checking if $CC supports -Werror=attributes... " >&6; } 17472 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=attributes" | $as_tr_sh` 17473 if eval \${$cacheid+:} false; then : 17474 $as_echo_n "(cached) " >&6 17475else 17476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17477/* end confdefs.h. */ 17478int i; 17479int 17480main () 17481{ 17482 17483 ; 17484 return 0; 17485} 17486_ACEOF 17487if ac_fn_c_try_link "$LINENO"; then : 17488 eval $cacheid=yes 17489else 17490 eval $cacheid=no 17491fi 17492rm -f core conftest.err conftest.$ac_objext \ 17493 conftest$ac_exeext conftest.$ac_ext 17494fi 17495 17496 17497 CFLAGS="$xorg_testset_save_CFLAGS" 17498 17499 eval supported=\$$cacheid 17500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17501$as_echo "$supported" >&6; } 17502 if test "$supported" = "yes" ; then 17503 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes" 17504 found="yes" 17505 fi 17506 fi 17507 17508 17509 17510if test "x$STRICT_COMPILE" = "xyes"; then 17511 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS" 17512 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 17513fi 17514 17515 17516 17517 17518 17519 17520cat >>confdefs.h <<_ACEOF 17521#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 17522_ACEOF 17523 17524 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 17525 if test "x$PVM" = "x"; then 17526 PVM="0" 17527 fi 17528 17529cat >>confdefs.h <<_ACEOF 17530#define PACKAGE_VERSION_MINOR $PVM 17531_ACEOF 17532 17533 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 17534 if test "x$PVP" = "x"; then 17535 PVP="0" 17536 fi 17537 17538cat >>confdefs.h <<_ACEOF 17539#define PACKAGE_VERSION_PATCHLEVEL $PVP 17540_ACEOF 17541 17542 17543 17544CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \ 17545mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 17546|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \ 17547echo 'git directory not found: installing possibly empty changelog.' >&2)" 17548 17549 17550 17551 17552macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros` 17553INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \ 17554mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \ 17555|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \ 17556echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)" 17557 17558 17559 17560 17561 17562 17563if test x$APP_MAN_SUFFIX = x ; then 17564 APP_MAN_SUFFIX=1 17565fi 17566if test x$APP_MAN_DIR = x ; then 17567 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 17568fi 17569 17570if test x$LIB_MAN_SUFFIX = x ; then 17571 LIB_MAN_SUFFIX=3 17572fi 17573if test x$LIB_MAN_DIR = x ; then 17574 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 17575fi 17576 17577if test x$FILE_MAN_SUFFIX = x ; then 17578 case $host_os in 17579 solaris*) FILE_MAN_SUFFIX=4 ;; 17580 *) FILE_MAN_SUFFIX=5 ;; 17581 esac 17582fi 17583if test x$FILE_MAN_DIR = x ; then 17584 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 17585fi 17586 17587if test x$MISC_MAN_SUFFIX = x ; then 17588 case $host_os in 17589 solaris*) MISC_MAN_SUFFIX=5 ;; 17590 *) MISC_MAN_SUFFIX=7 ;; 17591 esac 17592fi 17593if test x$MISC_MAN_DIR = x ; then 17594 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 17595fi 17596 17597if test x$DRIVER_MAN_SUFFIX = x ; then 17598 case $host_os in 17599 solaris*) DRIVER_MAN_SUFFIX=7 ;; 17600 *) DRIVER_MAN_SUFFIX=4 ;; 17601 esac 17602fi 17603if test x$DRIVER_MAN_DIR = x ; then 17604 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 17605fi 17606 17607if test x$ADMIN_MAN_SUFFIX = x ; then 17608 case $host_os in 17609 solaris*) ADMIN_MAN_SUFFIX=1m ;; 17610 *) ADMIN_MAN_SUFFIX=8 ;; 17611 esac 17612fi 17613if test x$ADMIN_MAN_DIR = x ; then 17614 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 17615fi 17616 17617 17618 17619 17620 17621 17622 17623 17624 17625 17626 17627 17628 17629 17630 17631XORG_MAN_PAGE="X Version 11" 17632 17633MAN_SUBSTS="\ 17634 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 17635 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 17636 -e 's|__xservername__|Xorg|g' \ 17637 -e 's|__xconfigfile__|xorg.conf|g' \ 17638 -e 's|__projectroot__|\$(prefix)|g' \ 17639 -e 's|__apploaddir__|\$(appdefaultdir)|g' \ 17640 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \ 17641 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \ 17642 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \ 17643 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \ 17644 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \ 17645 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'" 17646 17647 17648 17649# Check whether --enable-silent-rules was given. 17650if test "${enable_silent_rules+set}" = set; then : 17651 enableval=$enable_silent_rules; 17652fi 17653 17654case $enable_silent_rules in # ((( 17655 yes) AM_DEFAULT_VERBOSITY=0;; 17656 no) AM_DEFAULT_VERBOSITY=1;; 17657 *) AM_DEFAULT_VERBOSITY=0;; 17658esac 17659am_make=${MAKE-make} 17660{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 17661$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 17662if ${am_cv_make_support_nested_variables+:} false; then : 17663 $as_echo_n "(cached) " >&6 17664else 17665 if $as_echo 'TRUE=$(BAR$(V)) 17666BAR0=false 17667BAR1=true 17668V=1 17669am__doit: 17670 @$(TRUE) 17671.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 17672 am_cv_make_support_nested_variables=yes 17673else 17674 am_cv_make_support_nested_variables=no 17675fi 17676fi 17677{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 17678$as_echo "$am_cv_make_support_nested_variables" >&6; } 17679if test $am_cv_make_support_nested_variables = yes; then 17680 AM_V='$(V)' 17681 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 17682else 17683 AM_V=$AM_DEFAULT_VERBOSITY 17684 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 17685fi 17686AM_BACKSLASH='\' 17687 17688 17689 17690 17691# Check whether --enable-specs was given. 17692if test "${enable_specs+set}" = set; then : 17693 enableval=$enable_specs; build_specs=$enableval 17694else 17695 build_specs=yes 17696fi 17697 17698 17699 if test x$build_specs = xyes; then 17700 ENABLE_SPECS_TRUE= 17701 ENABLE_SPECS_FALSE='#' 17702else 17703 ENABLE_SPECS_TRUE='#' 17704 ENABLE_SPECS_FALSE= 17705fi 17706 17707{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build functional specifications" >&5 17708$as_echo_n "checking whether to build functional specifications... " >&6; } 17709{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $build_specs" >&5 17710$as_echo "$build_specs" >&6; } 17711 17712 17713 17714 17715 17716# Check whether --with-xmlto was given. 17717if test "${with_xmlto+set}" = set; then : 17718 withval=$with_xmlto; use_xmlto=$withval 17719else 17720 use_xmlto=auto 17721fi 17722 17723 17724 17725if test "x$use_xmlto" = x"auto"; then 17726 # Extract the first word of "xmlto", so it can be a program name with args. 17727set dummy xmlto; ac_word=$2 17728{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17729$as_echo_n "checking for $ac_word... " >&6; } 17730if ${ac_cv_path_XMLTO+:} false; then : 17731 $as_echo_n "(cached) " >&6 17732else 17733 case $XMLTO in 17734 [\\/]* | ?:[\\/]*) 17735 ac_cv_path_XMLTO="$XMLTO" # Let the user override the test with a path. 17736 ;; 17737 *) 17738 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17739for as_dir in $PATH 17740do 17741 IFS=$as_save_IFS 17742 test -z "$as_dir" && as_dir=. 17743 for ac_exec_ext in '' $ac_executable_extensions; do 17744 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 17745 ac_cv_path_XMLTO="$as_dir/$ac_word$ac_exec_ext" 17746 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17747 break 2 17748 fi 17749done 17750 done 17751IFS=$as_save_IFS 17752 17753 ;; 17754esac 17755fi 17756XMLTO=$ac_cv_path_XMLTO 17757if test -n "$XMLTO"; then 17758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMLTO" >&5 17759$as_echo "$XMLTO" >&6; } 17760else 17761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17762$as_echo "no" >&6; } 17763fi 17764 17765 17766 if test "x$XMLTO" = "x"; then 17767 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xmlto not found - documentation targets will be skipped" >&5 17768$as_echo "$as_me: WARNING: xmlto not found - documentation targets will be skipped" >&2;} 17769 have_xmlto=no 17770 else 17771 have_xmlto=yes 17772 fi 17773elif test "x$use_xmlto" = x"yes" ; then 17774 # Extract the first word of "xmlto", so it can be a program name with args. 17775set dummy xmlto; ac_word=$2 17776{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17777$as_echo_n "checking for $ac_word... " >&6; } 17778if ${ac_cv_path_XMLTO+:} false; then : 17779 $as_echo_n "(cached) " >&6 17780else 17781 case $XMLTO in 17782 [\\/]* | ?:[\\/]*) 17783 ac_cv_path_XMLTO="$XMLTO" # Let the user override the test with a path. 17784 ;; 17785 *) 17786 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17787for as_dir in $PATH 17788do 17789 IFS=$as_save_IFS 17790 test -z "$as_dir" && as_dir=. 17791 for ac_exec_ext in '' $ac_executable_extensions; do 17792 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 17793 ac_cv_path_XMLTO="$as_dir/$ac_word$ac_exec_ext" 17794 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17795 break 2 17796 fi 17797done 17798 done 17799IFS=$as_save_IFS 17800 17801 ;; 17802esac 17803fi 17804XMLTO=$ac_cv_path_XMLTO 17805if test -n "$XMLTO"; then 17806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMLTO" >&5 17807$as_echo "$XMLTO" >&6; } 17808else 17809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17810$as_echo "no" >&6; } 17811fi 17812 17813 17814 if test "x$XMLTO" = "x"; then 17815 as_fn_error $? "--with-xmlto=yes specified but xmlto not found in PATH" "$LINENO" 5 17816 fi 17817 have_xmlto=yes 17818elif test "x$use_xmlto" = x"no" ; then 17819 if test "x$XMLTO" != "x"; then 17820 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring XMLTO environment variable since --with-xmlto=no was specified" >&5 17821$as_echo "$as_me: WARNING: ignoring XMLTO environment variable since --with-xmlto=no was specified" >&2;} 17822 fi 17823 have_xmlto=no 17824else 17825 as_fn_error $? "--with-xmlto expects 'yes' or 'no'" "$LINENO" 5 17826fi 17827 17828# Test for a minimum version of xmlto, if provided. 17829if test "$have_xmlto" = yes; then 17830 # scrape the xmlto version 17831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the xmlto version" >&5 17832$as_echo_n "checking the xmlto version... " >&6; } 17833 xmlto_version=`$XMLTO --version 2>/dev/null | cut -d' ' -f3` 17834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xmlto_version" >&5 17835$as_echo "$xmlto_version" >&6; } 17836 as_arg_v1=$xmlto_version 17837as_arg_v2=0.0.22 17838awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null 17839case $? in #( 17840 1) : 17841 if test "x$use_xmlto" = xauto; then 17842 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xmlto version $xmlto_version found, but 0.0.22 needed" >&5 17843$as_echo "$as_me: WARNING: xmlto version $xmlto_version found, but 0.0.22 needed" >&2;} 17844 have_xmlto=no 17845 else 17846 as_fn_error $? "xmlto version $xmlto_version found, but 0.0.22 needed" "$LINENO" 5 17847 fi ;; #( 17848 0) : 17849 ;; #( 17850 2) : 17851 ;; #( 17852 *) : 17853 ;; 17854esac 17855fi 17856 17857# Test for the ability of xmlto to generate a text target 17858have_xmlto_text=no 17859cat > conftest.xml << "EOF" 17860EOF 17861if test "$have_xmlto" = yes; then : 17862 if $XMLTO --skip-validation txt conftest.xml >/dev/null 2>&1; then : 17863 have_xmlto_text=yes 17864else 17865 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xmlto cannot generate text format, this format skipped" >&5 17866$as_echo "$as_me: WARNING: xmlto cannot generate text format, this format skipped" >&2;} 17867fi 17868fi 17869rm -f conftest.xml 17870 if test $have_xmlto_text = yes; then 17871 HAVE_XMLTO_TEXT_TRUE= 17872 HAVE_XMLTO_TEXT_FALSE='#' 17873else 17874 HAVE_XMLTO_TEXT_TRUE='#' 17875 HAVE_XMLTO_TEXT_FALSE= 17876fi 17877 17878 if test "$have_xmlto" = yes; then 17879 HAVE_XMLTO_TRUE= 17880 HAVE_XMLTO_FALSE='#' 17881else 17882 HAVE_XMLTO_TRUE='#' 17883 HAVE_XMLTO_FALSE= 17884fi 17885 17886 17887 17888 17889 17890 17891# Check whether --with-fop was given. 17892if test "${with_fop+set}" = set; then : 17893 withval=$with_fop; use_fop=$withval 17894else 17895 use_fop=auto 17896fi 17897 17898 17899 17900if test "x$use_fop" = x"auto"; then 17901 # Extract the first word of "fop", so it can be a program name with args. 17902set dummy fop; ac_word=$2 17903{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17904$as_echo_n "checking for $ac_word... " >&6; } 17905if ${ac_cv_path_FOP+:} false; then : 17906 $as_echo_n "(cached) " >&6 17907else 17908 case $FOP in 17909 [\\/]* | ?:[\\/]*) 17910 ac_cv_path_FOP="$FOP" # Let the user override the test with a path. 17911 ;; 17912 *) 17913 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17914for as_dir in $PATH 17915do 17916 IFS=$as_save_IFS 17917 test -z "$as_dir" && as_dir=. 17918 for ac_exec_ext in '' $ac_executable_extensions; do 17919 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 17920 ac_cv_path_FOP="$as_dir/$ac_word$ac_exec_ext" 17921 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17922 break 2 17923 fi 17924done 17925 done 17926IFS=$as_save_IFS 17927 17928 ;; 17929esac 17930fi 17931FOP=$ac_cv_path_FOP 17932if test -n "$FOP"; then 17933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FOP" >&5 17934$as_echo "$FOP" >&6; } 17935else 17936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17937$as_echo "no" >&6; } 17938fi 17939 17940 17941 if test "x$FOP" = "x"; then 17942 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fop not found - documentation targets will be skipped" >&5 17943$as_echo "$as_me: WARNING: fop not found - documentation targets will be skipped" >&2;} 17944 have_fop=no 17945 else 17946 have_fop=yes 17947 fi 17948elif test "x$use_fop" = x"yes" ; then 17949 # Extract the first word of "fop", so it can be a program name with args. 17950set dummy fop; ac_word=$2 17951{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17952$as_echo_n "checking for $ac_word... " >&6; } 17953if ${ac_cv_path_FOP+:} false; then : 17954 $as_echo_n "(cached) " >&6 17955else 17956 case $FOP in 17957 [\\/]* | ?:[\\/]*) 17958 ac_cv_path_FOP="$FOP" # Let the user override the test with a path. 17959 ;; 17960 *) 17961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17962for as_dir in $PATH 17963do 17964 IFS=$as_save_IFS 17965 test -z "$as_dir" && as_dir=. 17966 for ac_exec_ext in '' $ac_executable_extensions; do 17967 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 17968 ac_cv_path_FOP="$as_dir/$ac_word$ac_exec_ext" 17969 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17970 break 2 17971 fi 17972done 17973 done 17974IFS=$as_save_IFS 17975 17976 ;; 17977esac 17978fi 17979FOP=$ac_cv_path_FOP 17980if test -n "$FOP"; then 17981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FOP" >&5 17982$as_echo "$FOP" >&6; } 17983else 17984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17985$as_echo "no" >&6; } 17986fi 17987 17988 17989 if test "x$FOP" = "x"; then 17990 as_fn_error $? "--with-fop=yes specified but fop not found in PATH" "$LINENO" 5 17991 fi 17992 have_fop=yes 17993elif test "x$use_fop" = x"no" ; then 17994 if test "x$FOP" != "x"; then 17995 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring FOP environment variable since --with-fop=no was specified" >&5 17996$as_echo "$as_me: WARNING: ignoring FOP environment variable since --with-fop=no was specified" >&2;} 17997 fi 17998 have_fop=no 17999else 18000 as_fn_error $? "--with-fop expects 'yes' or 'no'" "$LINENO" 5 18001fi 18002 18003# Test for a minimum version of fop, if provided. 18004 18005 if test "$have_fop" = yes; then 18006 HAVE_FOP_TRUE= 18007 HAVE_FOP_FALSE='#' 18008else 18009 HAVE_FOP_TRUE='#' 18010 HAVE_FOP_FALSE= 18011fi 18012 18013 18014 18015 18016# Preserves the interface, should it be implemented later 18017 18018 18019 18020# Check whether --with-xsltproc was given. 18021if test "${with_xsltproc+set}" = set; then : 18022 withval=$with_xsltproc; use_xsltproc=$withval 18023else 18024 use_xsltproc=auto 18025fi 18026 18027 18028 18029if test "x$use_xsltproc" = x"auto"; then 18030 # Extract the first word of "xsltproc", so it can be a program name with args. 18031set dummy xsltproc; ac_word=$2 18032{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18033$as_echo_n "checking for $ac_word... " >&6; } 18034if ${ac_cv_path_XSLTPROC+:} false; then : 18035 $as_echo_n "(cached) " >&6 18036else 18037 case $XSLTPROC in 18038 [\\/]* | ?:[\\/]*) 18039 ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path. 18040 ;; 18041 *) 18042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18043for as_dir in $PATH 18044do 18045 IFS=$as_save_IFS 18046 test -z "$as_dir" && as_dir=. 18047 for ac_exec_ext in '' $ac_executable_extensions; do 18048 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 18049 ac_cv_path_XSLTPROC="$as_dir/$ac_word$ac_exec_ext" 18050 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18051 break 2 18052 fi 18053done 18054 done 18055IFS=$as_save_IFS 18056 18057 ;; 18058esac 18059fi 18060XSLTPROC=$ac_cv_path_XSLTPROC 18061if test -n "$XSLTPROC"; then 18062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5 18063$as_echo "$XSLTPROC" >&6; } 18064else 18065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18066$as_echo "no" >&6; } 18067fi 18068 18069 18070 if test "x$XSLTPROC" = "x"; then 18071 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xsltproc not found - cannot transform XML documents" >&5 18072$as_echo "$as_me: WARNING: xsltproc not found - cannot transform XML documents" >&2;} 18073 have_xsltproc=no 18074 else 18075 have_xsltproc=yes 18076 fi 18077elif test "x$use_xsltproc" = x"yes" ; then 18078 # Extract the first word of "xsltproc", so it can be a program name with args. 18079set dummy xsltproc; ac_word=$2 18080{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18081$as_echo_n "checking for $ac_word... " >&6; } 18082if ${ac_cv_path_XSLTPROC+:} false; then : 18083 $as_echo_n "(cached) " >&6 18084else 18085 case $XSLTPROC in 18086 [\\/]* | ?:[\\/]*) 18087 ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path. 18088 ;; 18089 *) 18090 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18091for as_dir in $PATH 18092do 18093 IFS=$as_save_IFS 18094 test -z "$as_dir" && as_dir=. 18095 for ac_exec_ext in '' $ac_executable_extensions; do 18096 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 18097 ac_cv_path_XSLTPROC="$as_dir/$ac_word$ac_exec_ext" 18098 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18099 break 2 18100 fi 18101done 18102 done 18103IFS=$as_save_IFS 18104 18105 ;; 18106esac 18107fi 18108XSLTPROC=$ac_cv_path_XSLTPROC 18109if test -n "$XSLTPROC"; then 18110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5 18111$as_echo "$XSLTPROC" >&6; } 18112else 18113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18114$as_echo "no" >&6; } 18115fi 18116 18117 18118 if test "x$XSLTPROC" = "x"; then 18119 as_fn_error $? "--with-xsltproc=yes specified but xsltproc not found in PATH" "$LINENO" 5 18120 fi 18121 have_xsltproc=yes 18122elif test "x$use_xsltproc" = x"no" ; then 18123 if test "x$XSLTPROC" != "x"; then 18124 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring XSLTPROC environment variable since --with-xsltproc=no was specified" >&5 18125$as_echo "$as_me: WARNING: ignoring XSLTPROC environment variable since --with-xsltproc=no was specified" >&2;} 18126 fi 18127 have_xsltproc=no 18128else 18129 as_fn_error $? "--with-xsltproc expects 'yes' or 'no'" "$LINENO" 5 18130fi 18131 18132 if test "$have_xsltproc" = yes; then 18133 HAVE_XSLTPROC_TRUE= 18134 HAVE_XSLTPROC_FALSE='#' 18135else 18136 HAVE_XSLTPROC_TRUE='#' 18137 HAVE_XSLTPROC_FALSE= 18138fi 18139 18140 18141 18142{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X.Org SGML entities >= 1.8" >&5 18143$as_echo_n "checking for X.Org SGML entities >= 1.8... " >&6; } 18144XORG_SGML_PATH= 18145if test -n "$PKG_CONFIG" && \ 18146 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-sgml-doctools >= 1.8\""; } >&5 18147 ($PKG_CONFIG --exists --print-errors "xorg-sgml-doctools >= 1.8") 2>&5 18148 ac_status=$? 18149 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18150 test $ac_status = 0; }; then 18151 XORG_SGML_PATH=`$PKG_CONFIG --variable=sgmlrootdir xorg-sgml-doctools` 18152else 18153 : 18154 18155fi 18156 18157# Define variables STYLESHEET_SRCDIR and XSL_STYLESHEET containing 18158# the path and the name of the doc stylesheet 18159if test "x$XORG_SGML_PATH" != "x" ; then 18160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XORG_SGML_PATH" >&5 18161$as_echo "$XORG_SGML_PATH" >&6; } 18162 STYLESHEET_SRCDIR=$XORG_SGML_PATH/X11 18163 XSL_STYLESHEET=$STYLESHEET_SRCDIR/xorg.xsl 18164else 18165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18166$as_echo "no" >&6; } 18167fi 18168 18169 18170 18171 18172 if test "x$XSL_STYLESHEET" != "x"; then 18173 HAVE_STYLESHEETS_TRUE= 18174 HAVE_STYLESHEETS_FALSE='#' 18175else 18176 HAVE_STYLESHEETS_TRUE='#' 18177 HAVE_STYLESHEETS_FALSE= 18178fi 18179 18180 18181 18182# Obtain compiler/linker options for depedencies 18183 18184pkg_failed=no 18185{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XTST" >&5 18186$as_echo_n "checking for XTST... " >&6; } 18187 18188if test -n "$XTST_CFLAGS"; then 18189 pkg_cv_XTST_CFLAGS="$XTST_CFLAGS" 18190 elif test -n "$PKG_CONFIG"; then 18191 if test -n "$PKG_CONFIG" && \ 18192 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xext >= 1.0.99.4 xi recordproto >= 1.13.99.1 xextproto >= 7.0.99.3 inputproto\""; } >&5 18193 ($PKG_CONFIG --exists --print-errors "x11 xext >= 1.0.99.4 xi recordproto >= 1.13.99.1 xextproto >= 7.0.99.3 inputproto") 2>&5 18194 ac_status=$? 18195 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18196 test $ac_status = 0; }; then 18197 pkg_cv_XTST_CFLAGS=`$PKG_CONFIG --cflags "x11 xext >= 1.0.99.4 xi recordproto >= 1.13.99.1 xextproto >= 7.0.99.3 inputproto" 2>/dev/null` 18198else 18199 pkg_failed=yes 18200fi 18201 else 18202 pkg_failed=untried 18203fi 18204if test -n "$XTST_LIBS"; then 18205 pkg_cv_XTST_LIBS="$XTST_LIBS" 18206 elif test -n "$PKG_CONFIG"; then 18207 if test -n "$PKG_CONFIG" && \ 18208 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xext >= 1.0.99.4 xi recordproto >= 1.13.99.1 xextproto >= 7.0.99.3 inputproto\""; } >&5 18209 ($PKG_CONFIG --exists --print-errors "x11 xext >= 1.0.99.4 xi recordproto >= 1.13.99.1 xextproto >= 7.0.99.3 inputproto") 2>&5 18210 ac_status=$? 18211 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18212 test $ac_status = 0; }; then 18213 pkg_cv_XTST_LIBS=`$PKG_CONFIG --libs "x11 xext >= 1.0.99.4 xi recordproto >= 1.13.99.1 xextproto >= 7.0.99.3 inputproto" 2>/dev/null` 18214else 18215 pkg_failed=yes 18216fi 18217 else 18218 pkg_failed=untried 18219fi 18220 18221 18222 18223if test $pkg_failed = yes; then 18224 18225if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 18226 _pkg_short_errors_supported=yes 18227else 18228 _pkg_short_errors_supported=no 18229fi 18230 if test $_pkg_short_errors_supported = yes; then 18231 XTST_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "x11 xext >= 1.0.99.4 xi recordproto >= 1.13.99.1 xextproto >= 7.0.99.3 inputproto" 2>&1` 18232 else 18233 XTST_PKG_ERRORS=`$PKG_CONFIG --print-errors "x11 xext >= 1.0.99.4 xi recordproto >= 1.13.99.1 xextproto >= 7.0.99.3 inputproto" 2>&1` 18234 fi 18235 # Put the nasty error message in config.log where it belongs 18236 echo "$XTST_PKG_ERRORS" >&5 18237 18238 as_fn_error $? "Package requirements (x11 xext >= 1.0.99.4 xi recordproto >= 1.13.99.1 xextproto >= 7.0.99.3 inputproto) were not met: 18239 18240$XTST_PKG_ERRORS 18241 18242Consider adjusting the PKG_CONFIG_PATH environment variable if you 18243installed software in a non-standard prefix. 18244 18245Alternatively, you may set the environment variables XTST_CFLAGS 18246and XTST_LIBS to avoid the need to call pkg-config. 18247See the pkg-config man page for more details. 18248" "$LINENO" 5 18249elif test $pkg_failed = untried; then 18250 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 18251$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 18252as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 18253is in your PATH or set the PKG_CONFIG environment variable to the full 18254path to pkg-config. 18255 18256Alternatively, you may set the environment variables XTST_CFLAGS 18257and XTST_LIBS to avoid the need to call pkg-config. 18258See the pkg-config man page for more details. 18259 18260To get pkg-config, see <http://pkg-config.freedesktop.org/>. 18261See \`config.log' for more details" "$LINENO" 5; } 18262else 18263 XTST_CFLAGS=$pkg_cv_XTST_CFLAGS 18264 XTST_LIBS=$pkg_cv_XTST_LIBS 18265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18266$as_echo "yes" >&6; } 18267 : 18268fi 18269 18270# Check for _XEatDataWords function that may be patched into older Xlib release 18271SAVE_LIBS="$LIBS" 18272LIBS="$XTST_LIBS" 18273for ac_func in _XEatDataWords 18274do : 18275 ac_fn_c_check_func "$LINENO" "_XEatDataWords" "ac_cv_func__XEatDataWords" 18276if test "x$ac_cv_func__XEatDataWords" = xyes; then : 18277 cat >>confdefs.h <<_ACEOF 18278#define HAVE__XEATDATAWORDS 1 18279_ACEOF 18280 18281fi 18282done 18283 18284LIBS="$SAVE_LIBS" 18285 18286# Determine if the source for man pages is available 18287# It may already be present (tarball) or can be generated using xmlto 18288 if test -f "$srcdir/man/XTestQueryExtension.man" || test "x$have_xmlto" = xyes; then 18289 INSTALL_MANPAGES_TRUE= 18290 INSTALL_MANPAGES_FALSE='#' 18291else 18292 INSTALL_MANPAGES_TRUE='#' 18293 INSTALL_MANPAGES_FALSE= 18294fi 18295 18296 18297# Allow checking code with lint, sparse, etc. 18298 18299 18300 18301 18302 18303# Check whether --with-lint was given. 18304if test "${with_lint+set}" = set; then : 18305 withval=$with_lint; use_lint=$withval 18306else 18307 use_lint=no 18308fi 18309 18310 18311# Obtain platform specific info like program name and options 18312# The lint program on FreeBSD and NetBSD is different from the one on Solaris 18313case $host_os in 18314 *linux* | *openbsd* | kfreebsd*-gnu | darwin* | cygwin*) 18315 lint_name=splint 18316 lint_options="-badflag" 18317 ;; 18318 *freebsd* | *netbsd*) 18319 lint_name=lint 18320 lint_options="-u -b" 18321 ;; 18322 *solaris*) 18323 lint_name=lint 18324 lint_options="-u -b -h -erroff=E_INDISTING_FROM_TRUNC2" 18325 ;; 18326esac 18327 18328# Test for the presence of the program (either guessed by the code or spelled out by the user) 18329if test "x$use_lint" = x"yes" ; then 18330 # Extract the first word of "$lint_name", so it can be a program name with args. 18331set dummy $lint_name; ac_word=$2 18332{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18333$as_echo_n "checking for $ac_word... " >&6; } 18334if ${ac_cv_path_LINT+:} false; then : 18335 $as_echo_n "(cached) " >&6 18336else 18337 case $LINT in 18338 [\\/]* | ?:[\\/]*) 18339 ac_cv_path_LINT="$LINT" # Let the user override the test with a path. 18340 ;; 18341 *) 18342 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18343for as_dir in $PATH 18344do 18345 IFS=$as_save_IFS 18346 test -z "$as_dir" && as_dir=. 18347 for ac_exec_ext in '' $ac_executable_extensions; do 18348 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 18349 ac_cv_path_LINT="$as_dir/$ac_word$ac_exec_ext" 18350 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18351 break 2 18352 fi 18353done 18354 done 18355IFS=$as_save_IFS 18356 18357 ;; 18358esac 18359fi 18360LINT=$ac_cv_path_LINT 18361if test -n "$LINT"; then 18362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINT" >&5 18363$as_echo "$LINT" >&6; } 18364else 18365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18366$as_echo "no" >&6; } 18367fi 18368 18369 18370 if test "x$LINT" = "x"; then 18371 as_fn_error $? "--with-lint=yes specified but lint-style tool not found in PATH" "$LINENO" 5 18372 fi 18373elif test "x$use_lint" = x"no" ; then 18374 if test "x$LINT" != "x"; then 18375 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&5 18376$as_echo "$as_me: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&2;} 18377 fi 18378else 18379 as_fn_error $? "--with-lint expects 'yes' or 'no'. Use LINT variable to specify path." "$LINENO" 5 18380fi 18381 18382# User supplied flags override default flags 18383if test "x$LINT_FLAGS" != "x"; then 18384 lint_options=$LINT_FLAGS 18385fi 18386 18387LINT_FLAGS=$lint_options 18388 18389 if test "x$LINT" != x; then 18390 LINT_TRUE= 18391 LINT_FALSE='#' 18392else 18393 LINT_TRUE='#' 18394 LINT_FALSE= 18395fi 18396 18397 18398 18399 18400 18401# Check whether --enable-lint-library was given. 18402if test "${enable_lint_library+set}" = set; then : 18403 enableval=$enable_lint_library; make_lint_lib=$enableval 18404else 18405 make_lint_lib=no 18406fi 18407 18408 18409if test "x$make_lint_lib" = x"yes" ; then 18410 LINTLIB=llib-lXtst.ln 18411 if test "x$LINT" = "x"; then 18412 as_fn_error $? "Cannot make lint library without --with-lint" "$LINENO" 5 18413 fi 18414elif test "x$make_lint_lib" != x"no" ; then 18415 as_fn_error $? "--enable-lint-library expects 'yes' or 'no'." "$LINENO" 5 18416fi 18417 18418 18419 if test x$make_lint_lib != xno; then 18420 MAKE_LINT_LIB_TRUE= 18421 MAKE_LINT_LIB_FALSE='#' 18422else 18423 MAKE_LINT_LIB_TRUE='#' 18424 MAKE_LINT_LIB_FALSE= 18425fi 18426 18427 18428 18429LINT_FLAGS="${LINT_FLAGS} ${XTST_CFLAGS}" 18430 18431ac_config_files="$ac_config_files Makefile man/Makefile src/Makefile specs/Makefile xtst.pc" 18432 18433cat >confcache <<\_ACEOF 18434# This file is a shell script that caches the results of configure 18435# tests run on this system so they can be shared between configure 18436# scripts and configure runs, see configure's option --config-cache. 18437# It is not useful on other systems. If it contains results you don't 18438# want to keep, you may remove or edit it. 18439# 18440# config.status only pays attention to the cache file if you give it 18441# the --recheck option to rerun configure. 18442# 18443# `ac_cv_env_foo' variables (set or unset) will be overridden when 18444# loading this file, other *unset* `ac_cv_foo' will be assigned the 18445# following values. 18446 18447_ACEOF 18448 18449# The following way of writing the cache mishandles newlines in values, 18450# but we know of no workaround that is simple, portable, and efficient. 18451# So, we kill variables containing newlines. 18452# Ultrix sh set writes to stderr and can't be redirected directly, 18453# and sets the high bit in the cache file unless we assign to the vars. 18454( 18455 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 18456 eval ac_val=\$$ac_var 18457 case $ac_val in #( 18458 *${as_nl}*) 18459 case $ac_var in #( 18460 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 18461$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 18462 esac 18463 case $ac_var in #( 18464 _ | IFS | as_nl) ;; #( 18465 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 18466 *) { eval $ac_var=; unset $ac_var;} ;; 18467 esac ;; 18468 esac 18469 done 18470 18471 (set) 2>&1 | 18472 case $as_nl`(ac_space=' '; set) 2>&1` in #( 18473 *${as_nl}ac_space=\ *) 18474 # `set' does not quote correctly, so add quotes: double-quote 18475 # substitution turns \\\\ into \\, and sed turns \\ into \. 18476 sed -n \ 18477 "s/'/'\\\\''/g; 18478 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 18479 ;; #( 18480 *) 18481 # `set' quotes correctly as required by POSIX, so do not add quotes. 18482 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 18483 ;; 18484 esac | 18485 sort 18486) | 18487 sed ' 18488 /^ac_cv_env_/b end 18489 t clear 18490 :clear 18491 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 18492 t end 18493 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 18494 :end' >>confcache 18495if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 18496 if test -w "$cache_file"; then 18497 if test "x$cache_file" != "x/dev/null"; then 18498 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 18499$as_echo "$as_me: updating cache $cache_file" >&6;} 18500 if test ! -f "$cache_file" || test -h "$cache_file"; then 18501 cat confcache >"$cache_file" 18502 else 18503 case $cache_file in #( 18504 */* | ?:*) 18505 mv -f confcache "$cache_file"$$ && 18506 mv -f "$cache_file"$$ "$cache_file" ;; #( 18507 *) 18508 mv -f confcache "$cache_file" ;; 18509 esac 18510 fi 18511 fi 18512 else 18513 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 18514$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 18515 fi 18516fi 18517rm -f confcache 18518 18519test "x$prefix" = xNONE && prefix=$ac_default_prefix 18520# Let make expand exec_prefix. 18521test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 18522 18523DEFS=-DHAVE_CONFIG_H 18524 18525ac_libobjs= 18526ac_ltlibobjs= 18527U= 18528for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 18529 # 1. Remove the extension, and $U if already installed. 18530 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 18531 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 18532 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 18533 # will be set to the directory where LIBOBJS objects are built. 18534 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 18535 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 18536done 18537LIBOBJS=$ac_libobjs 18538 18539LTLIBOBJS=$ac_ltlibobjs 18540 18541 18542{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 18543$as_echo_n "checking that generated files are newer than configure... " >&6; } 18544 if test -n "$am_sleep_pid"; then 18545 # Hide warnings about reused PIDs. 18546 wait $am_sleep_pid 2>/dev/null 18547 fi 18548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 18549$as_echo "done" >&6; } 18550 if test -n "$EXEEXT"; then 18551 am__EXEEXT_TRUE= 18552 am__EXEEXT_FALSE='#' 18553else 18554 am__EXEEXT_TRUE='#' 18555 am__EXEEXT_FALSE= 18556fi 18557 18558if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 18559 as_fn_error $? "conditional \"AMDEP\" was never defined. 18560Usually this means the macro was only invoked conditionally." "$LINENO" 5 18561fi 18562if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 18563 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 18564Usually this means the macro was only invoked conditionally." "$LINENO" 5 18565fi 18566if test -z "${ENABLE_SPECS_TRUE}" && test -z "${ENABLE_SPECS_FALSE}"; then 18567 as_fn_error $? "conditional \"ENABLE_SPECS\" was never defined. 18568Usually this means the macro was only invoked conditionally." "$LINENO" 5 18569fi 18570if test -z "${HAVE_XMLTO_TEXT_TRUE}" && test -z "${HAVE_XMLTO_TEXT_FALSE}"; then 18571 as_fn_error $? "conditional \"HAVE_XMLTO_TEXT\" was never defined. 18572Usually this means the macro was only invoked conditionally." "$LINENO" 5 18573fi 18574if test -z "${HAVE_XMLTO_TRUE}" && test -z "${HAVE_XMLTO_FALSE}"; then 18575 as_fn_error $? "conditional \"HAVE_XMLTO\" was never defined. 18576Usually this means the macro was only invoked conditionally." "$LINENO" 5 18577fi 18578if test -z "${HAVE_FOP_TRUE}" && test -z "${HAVE_FOP_FALSE}"; then 18579 as_fn_error $? "conditional \"HAVE_FOP\" was never defined. 18580Usually this means the macro was only invoked conditionally." "$LINENO" 5 18581fi 18582if test -z "${HAVE_XSLTPROC_TRUE}" && test -z "${HAVE_XSLTPROC_FALSE}"; then 18583 as_fn_error $? "conditional \"HAVE_XSLTPROC\" was never defined. 18584Usually this means the macro was only invoked conditionally." "$LINENO" 5 18585fi 18586if test -z "${HAVE_STYLESHEETS_TRUE}" && test -z "${HAVE_STYLESHEETS_FALSE}"; then 18587 as_fn_error $? "conditional \"HAVE_STYLESHEETS\" was never defined. 18588Usually this means the macro was only invoked conditionally." "$LINENO" 5 18589fi 18590if test -z "${INSTALL_MANPAGES_TRUE}" && test -z "${INSTALL_MANPAGES_FALSE}"; then 18591 as_fn_error $? "conditional \"INSTALL_MANPAGES\" was never defined. 18592Usually this means the macro was only invoked conditionally." "$LINENO" 5 18593fi 18594if test -z "${LINT_TRUE}" && test -z "${LINT_FALSE}"; then 18595 as_fn_error $? "conditional \"LINT\" was never defined. 18596Usually this means the macro was only invoked conditionally." "$LINENO" 5 18597fi 18598if test -z "${MAKE_LINT_LIB_TRUE}" && test -z "${MAKE_LINT_LIB_FALSE}"; then 18599 as_fn_error $? "conditional \"MAKE_LINT_LIB\" was never defined. 18600Usually this means the macro was only invoked conditionally." "$LINENO" 5 18601fi 18602 18603: "${CONFIG_STATUS=./config.status}" 18604ac_write_fail=0 18605ac_clean_files_save=$ac_clean_files 18606ac_clean_files="$ac_clean_files $CONFIG_STATUS" 18607{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 18608$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 18609as_write_fail=0 18610cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 18611#! $SHELL 18612# Generated by $as_me. 18613# Run this file to recreate the current configuration. 18614# Compiler output produced by configure, useful for debugging 18615# configure, is in config.log if it exists. 18616 18617debug=false 18618ac_cs_recheck=false 18619ac_cs_silent=false 18620 18621SHELL=\${CONFIG_SHELL-$SHELL} 18622export SHELL 18623_ASEOF 18624cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 18625## -------------------- ## 18626## M4sh Initialization. ## 18627## -------------------- ## 18628 18629# Be more Bourne compatible 18630DUALCASE=1; export DUALCASE # for MKS sh 18631if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 18632 emulate sh 18633 NULLCMD=: 18634 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 18635 # is contrary to our usage. Disable this feature. 18636 alias -g '${1+"$@"}'='"$@"' 18637 setopt NO_GLOB_SUBST 18638else 18639 case `(set -o) 2>/dev/null` in #( 18640 *posix*) : 18641 set -o posix ;; #( 18642 *) : 18643 ;; 18644esac 18645fi 18646 18647 18648as_nl=' 18649' 18650export as_nl 18651# Printing a long string crashes Solaris 7 /usr/bin/printf. 18652as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 18653as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 18654as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 18655# Prefer a ksh shell builtin over an external printf program on Solaris, 18656# but without wasting forks for bash or zsh. 18657if test -z "$BASH_VERSION$ZSH_VERSION" \ 18658 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 18659 as_echo='print -r --' 18660 as_echo_n='print -rn --' 18661elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 18662 as_echo='printf %s\n' 18663 as_echo_n='printf %s' 18664else 18665 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 18666 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 18667 as_echo_n='/usr/ucb/echo -n' 18668 else 18669 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 18670 as_echo_n_body='eval 18671 arg=$1; 18672 case $arg in #( 18673 *"$as_nl"*) 18674 expr "X$arg" : "X\\(.*\\)$as_nl"; 18675 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 18676 esac; 18677 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 18678 ' 18679 export as_echo_n_body 18680 as_echo_n='sh -c $as_echo_n_body as_echo' 18681 fi 18682 export as_echo_body 18683 as_echo='sh -c $as_echo_body as_echo' 18684fi 18685 18686# The user is always right. 18687if test "${PATH_SEPARATOR+set}" != set; then 18688 PATH_SEPARATOR=: 18689 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 18690 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 18691 PATH_SEPARATOR=';' 18692 } 18693fi 18694 18695 18696# IFS 18697# We need space, tab and new line, in precisely that order. Quoting is 18698# there to prevent editors from complaining about space-tab. 18699# (If _AS_PATH_WALK were called with IFS unset, it would disable word 18700# splitting by setting IFS to empty value.) 18701IFS=" "" $as_nl" 18702 18703# Find who we are. Look in the path if we contain no directory separator. 18704as_myself= 18705case $0 in #(( 18706 *[\\/]* ) as_myself=$0 ;; 18707 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18708for as_dir in $PATH 18709do 18710 IFS=$as_save_IFS 18711 test -z "$as_dir" && as_dir=. 18712 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 18713 done 18714IFS=$as_save_IFS 18715 18716 ;; 18717esac 18718# We did not find ourselves, most probably we were run as `sh COMMAND' 18719# in which case we are not to be found in the path. 18720if test "x$as_myself" = x; then 18721 as_myself=$0 18722fi 18723if test ! -f "$as_myself"; then 18724 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 18725 exit 1 18726fi 18727 18728# Unset variables that we do not need and which cause bugs (e.g. in 18729# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 18730# suppresses any "Segmentation fault" message there. '((' could 18731# trigger a bug in pdksh 5.2.14. 18732for as_var in BASH_ENV ENV MAIL MAILPATH 18733do eval test x\${$as_var+set} = xset \ 18734 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 18735done 18736PS1='$ ' 18737PS2='> ' 18738PS4='+ ' 18739 18740# NLS nuisances. 18741LC_ALL=C 18742export LC_ALL 18743LANGUAGE=C 18744export LANGUAGE 18745 18746# CDPATH. 18747(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 18748 18749 18750# as_fn_error STATUS ERROR [LINENO LOG_FD] 18751# ---------------------------------------- 18752# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 18753# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 18754# script with STATUS, using 1 if that was 0. 18755as_fn_error () 18756{ 18757 as_status=$1; test $as_status -eq 0 && as_status=1 18758 if test "$4"; then 18759 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 18760 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 18761 fi 18762 $as_echo "$as_me: error: $2" >&2 18763 as_fn_exit $as_status 18764} # as_fn_error 18765 18766 18767# as_fn_set_status STATUS 18768# ----------------------- 18769# Set $? to STATUS, without forking. 18770as_fn_set_status () 18771{ 18772 return $1 18773} # as_fn_set_status 18774 18775# as_fn_exit STATUS 18776# ----------------- 18777# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 18778as_fn_exit () 18779{ 18780 set +e 18781 as_fn_set_status $1 18782 exit $1 18783} # as_fn_exit 18784 18785# as_fn_unset VAR 18786# --------------- 18787# Portably unset VAR. 18788as_fn_unset () 18789{ 18790 { eval $1=; unset $1;} 18791} 18792as_unset=as_fn_unset 18793# as_fn_append VAR VALUE 18794# ---------------------- 18795# Append the text in VALUE to the end of the definition contained in VAR. Take 18796# advantage of any shell optimizations that allow amortized linear growth over 18797# repeated appends, instead of the typical quadratic growth present in naive 18798# implementations. 18799if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 18800 eval 'as_fn_append () 18801 { 18802 eval $1+=\$2 18803 }' 18804else 18805 as_fn_append () 18806 { 18807 eval $1=\$$1\$2 18808 } 18809fi # as_fn_append 18810 18811# as_fn_arith ARG... 18812# ------------------ 18813# Perform arithmetic evaluation on the ARGs, and store the result in the 18814# global $as_val. Take advantage of shells that can avoid forks. The arguments 18815# must be portable across $(()) and expr. 18816if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 18817 eval 'as_fn_arith () 18818 { 18819 as_val=$(( $* )) 18820 }' 18821else 18822 as_fn_arith () 18823 { 18824 as_val=`expr "$@" || test $? -eq 1` 18825 } 18826fi # as_fn_arith 18827 18828 18829if expr a : '\(a\)' >/dev/null 2>&1 && 18830 test "X`expr 00001 : '.*\(...\)'`" = X001; then 18831 as_expr=expr 18832else 18833 as_expr=false 18834fi 18835 18836if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 18837 as_basename=basename 18838else 18839 as_basename=false 18840fi 18841 18842if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 18843 as_dirname=dirname 18844else 18845 as_dirname=false 18846fi 18847 18848as_me=`$as_basename -- "$0" || 18849$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 18850 X"$0" : 'X\(//\)$' \| \ 18851 X"$0" : 'X\(/\)' \| . 2>/dev/null || 18852$as_echo X/"$0" | 18853 sed '/^.*\/\([^/][^/]*\)\/*$/{ 18854 s//\1/ 18855 q 18856 } 18857 /^X\/\(\/\/\)$/{ 18858 s//\1/ 18859 q 18860 } 18861 /^X\/\(\/\).*/{ 18862 s//\1/ 18863 q 18864 } 18865 s/.*/./; q'` 18866 18867# Avoid depending upon Character Ranges. 18868as_cr_letters='abcdefghijklmnopqrstuvwxyz' 18869as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 18870as_cr_Letters=$as_cr_letters$as_cr_LETTERS 18871as_cr_digits='0123456789' 18872as_cr_alnum=$as_cr_Letters$as_cr_digits 18873 18874ECHO_C= ECHO_N= ECHO_T= 18875case `echo -n x` in #((((( 18876-n*) 18877 case `echo 'xy\c'` in 18878 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 18879 xy) ECHO_C='\c';; 18880 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 18881 ECHO_T=' ';; 18882 esac;; 18883*) 18884 ECHO_N='-n';; 18885esac 18886 18887rm -f conf$$ conf$$.exe conf$$.file 18888if test -d conf$$.dir; then 18889 rm -f conf$$.dir/conf$$.file 18890else 18891 rm -f conf$$.dir 18892 mkdir conf$$.dir 2>/dev/null 18893fi 18894if (echo >conf$$.file) 2>/dev/null; then 18895 if ln -s conf$$.file conf$$ 2>/dev/null; then 18896 as_ln_s='ln -s' 18897 # ... but there are two gotchas: 18898 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 18899 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 18900 # In both cases, we have to default to `cp -p'. 18901 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 18902 as_ln_s='cp -p' 18903 elif ln conf$$.file conf$$ 2>/dev/null; then 18904 as_ln_s=ln 18905 else 18906 as_ln_s='cp -p' 18907 fi 18908else 18909 as_ln_s='cp -p' 18910fi 18911rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 18912rmdir conf$$.dir 2>/dev/null 18913 18914 18915# as_fn_mkdir_p 18916# ------------- 18917# Create "$as_dir" as a directory, including parents if necessary. 18918as_fn_mkdir_p () 18919{ 18920 18921 case $as_dir in #( 18922 -*) as_dir=./$as_dir;; 18923 esac 18924 test -d "$as_dir" || eval $as_mkdir_p || { 18925 as_dirs= 18926 while :; do 18927 case $as_dir in #( 18928 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 18929 *) as_qdir=$as_dir;; 18930 esac 18931 as_dirs="'$as_qdir' $as_dirs" 18932 as_dir=`$as_dirname -- "$as_dir" || 18933$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 18934 X"$as_dir" : 'X\(//\)[^/]' \| \ 18935 X"$as_dir" : 'X\(//\)$' \| \ 18936 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 18937$as_echo X"$as_dir" | 18938 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 18939 s//\1/ 18940 q 18941 } 18942 /^X\(\/\/\)[^/].*/{ 18943 s//\1/ 18944 q 18945 } 18946 /^X\(\/\/\)$/{ 18947 s//\1/ 18948 q 18949 } 18950 /^X\(\/\).*/{ 18951 s//\1/ 18952 q 18953 } 18954 s/.*/./; q'` 18955 test -d "$as_dir" && break 18956 done 18957 test -z "$as_dirs" || eval "mkdir $as_dirs" 18958 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 18959 18960 18961} # as_fn_mkdir_p 18962if mkdir -p . 2>/dev/null; then 18963 as_mkdir_p='mkdir -p "$as_dir"' 18964else 18965 test -d ./-p && rmdir ./-p 18966 as_mkdir_p=false 18967fi 18968 18969if test -x / >/dev/null 2>&1; then 18970 as_test_x='test -x' 18971else 18972 if ls -dL / >/dev/null 2>&1; then 18973 as_ls_L_option=L 18974 else 18975 as_ls_L_option= 18976 fi 18977 as_test_x=' 18978 eval sh -c '\'' 18979 if test -d "$1"; then 18980 test -d "$1/."; 18981 else 18982 case $1 in #( 18983 -*)set "./$1";; 18984 esac; 18985 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 18986 ???[sx]*):;;*)false;;esac;fi 18987 '\'' sh 18988 ' 18989fi 18990as_executable_p=$as_test_x 18991 18992# Sed expression to map a string onto a valid CPP name. 18993as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 18994 18995# Sed expression to map a string onto a valid variable name. 18996as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 18997 18998 18999exec 6>&1 19000## ----------------------------------- ## 19001## Main body of $CONFIG_STATUS script. ## 19002## ----------------------------------- ## 19003_ASEOF 19004test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 19005 19006cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19007# Save the log message, to keep $0 and so on meaningful, and to 19008# report actual input values of CONFIG_FILES etc. instead of their 19009# values after options handling. 19010ac_log=" 19011This file was extended by libXtst $as_me 1.2.2, which was 19012generated by GNU Autoconf 2.68. Invocation command line was 19013 19014 CONFIG_FILES = $CONFIG_FILES 19015 CONFIG_HEADERS = $CONFIG_HEADERS 19016 CONFIG_LINKS = $CONFIG_LINKS 19017 CONFIG_COMMANDS = $CONFIG_COMMANDS 19018 $ $0 $@ 19019 19020on `(hostname || uname -n) 2>/dev/null | sed 1q` 19021" 19022 19023_ACEOF 19024 19025case $ac_config_files in *" 19026"*) set x $ac_config_files; shift; ac_config_files=$*;; 19027esac 19028 19029case $ac_config_headers in *" 19030"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 19031esac 19032 19033 19034cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19035# Files that config.status was made for. 19036config_files="$ac_config_files" 19037config_headers="$ac_config_headers" 19038config_commands="$ac_config_commands" 19039 19040_ACEOF 19041 19042cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19043ac_cs_usage="\ 19044\`$as_me' instantiates files and other configuration actions 19045from templates according to the current configuration. Unless the files 19046and actions are specified as TAGs, all are instantiated by default. 19047 19048Usage: $0 [OPTION]... [TAG]... 19049 19050 -h, --help print this help, then exit 19051 -V, --version print version number and configuration settings, then exit 19052 --config print configuration, then exit 19053 -q, --quiet, --silent 19054 do not print progress messages 19055 -d, --debug don't remove temporary files 19056 --recheck update $as_me by reconfiguring in the same conditions 19057 --file=FILE[:TEMPLATE] 19058 instantiate the configuration file FILE 19059 --header=FILE[:TEMPLATE] 19060 instantiate the configuration header FILE 19061 19062Configuration files: 19063$config_files 19064 19065Configuration headers: 19066$config_headers 19067 19068Configuration commands: 19069$config_commands 19070 19071Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>." 19072 19073_ACEOF 19074cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19075ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 19076ac_cs_version="\\ 19077libXtst config.status 1.2.2 19078configured by $0, generated by GNU Autoconf 2.68, 19079 with options \\"\$ac_cs_config\\" 19080 19081Copyright (C) 2010 Free Software Foundation, Inc. 19082This config.status script is free software; the Free Software Foundation 19083gives unlimited permission to copy, distribute and modify it." 19084 19085ac_pwd='$ac_pwd' 19086srcdir='$srcdir' 19087INSTALL='$INSTALL' 19088MKDIR_P='$MKDIR_P' 19089AWK='$AWK' 19090test -n "\$AWK" || AWK=awk 19091_ACEOF 19092 19093cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19094# The default lists apply if the user does not specify any file. 19095ac_need_defaults=: 19096while test $# != 0 19097do 19098 case $1 in 19099 --*=?*) 19100 ac_option=`expr "X$1" : 'X\([^=]*\)='` 19101 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 19102 ac_shift=: 19103 ;; 19104 --*=) 19105 ac_option=`expr "X$1" : 'X\([^=]*\)='` 19106 ac_optarg= 19107 ac_shift=: 19108 ;; 19109 *) 19110 ac_option=$1 19111 ac_optarg=$2 19112 ac_shift=shift 19113 ;; 19114 esac 19115 19116 case $ac_option in 19117 # Handling of the options. 19118 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 19119 ac_cs_recheck=: ;; 19120 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 19121 $as_echo "$ac_cs_version"; exit ;; 19122 --config | --confi | --conf | --con | --co | --c ) 19123 $as_echo "$ac_cs_config"; exit ;; 19124 --debug | --debu | --deb | --de | --d | -d ) 19125 debug=: ;; 19126 --file | --fil | --fi | --f ) 19127 $ac_shift 19128 case $ac_optarg in 19129 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 19130 '') as_fn_error $? "missing file argument" ;; 19131 esac 19132 as_fn_append CONFIG_FILES " '$ac_optarg'" 19133 ac_need_defaults=false;; 19134 --header | --heade | --head | --hea ) 19135 $ac_shift 19136 case $ac_optarg in 19137 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 19138 esac 19139 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 19140 ac_need_defaults=false;; 19141 --he | --h) 19142 # Conflict between --help and --header 19143 as_fn_error $? "ambiguous option: \`$1' 19144Try \`$0 --help' for more information.";; 19145 --help | --hel | -h ) 19146 $as_echo "$ac_cs_usage"; exit ;; 19147 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 19148 | -silent | --silent | --silen | --sile | --sil | --si | --s) 19149 ac_cs_silent=: ;; 19150 19151 # This is an error. 19152 -*) as_fn_error $? "unrecognized option: \`$1' 19153Try \`$0 --help' for more information." ;; 19154 19155 *) as_fn_append ac_config_targets " $1" 19156 ac_need_defaults=false ;; 19157 19158 esac 19159 shift 19160done 19161 19162ac_configure_extra_args= 19163 19164if $ac_cs_silent; then 19165 exec 6>/dev/null 19166 ac_configure_extra_args="$ac_configure_extra_args --silent" 19167fi 19168 19169_ACEOF 19170cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19171if \$ac_cs_recheck; then 19172 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 19173 shift 19174 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 19175 CONFIG_SHELL='$SHELL' 19176 export CONFIG_SHELL 19177 exec "\$@" 19178fi 19179 19180_ACEOF 19181cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19182exec 5>>config.log 19183{ 19184 echo 19185 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 19186## Running $as_me. ## 19187_ASBOX 19188 $as_echo "$ac_log" 19189} >&5 19190 19191_ACEOF 19192cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19193# 19194# INIT-COMMANDS 19195# 19196AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 19197 19198 19199# The HP-UX ksh and POSIX shell print the target directory to stdout 19200# if CDPATH is set. 19201(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 19202 19203sed_quote_subst='$sed_quote_subst' 19204double_quote_subst='$double_quote_subst' 19205delay_variable_subst='$delay_variable_subst' 19206macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 19207macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 19208enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 19209enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 19210pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 19211enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 19212SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 19213ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 19214PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 19215host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 19216host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 19217host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 19218build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 19219build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 19220build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 19221SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 19222Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 19223GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 19224EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 19225FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 19226LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 19227NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 19228LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 19229max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 19230ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 19231exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 19232lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 19233lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 19234lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 19235lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 19236lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 19237reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 19238reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 19239OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 19240deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 19241file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 19242file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 19243want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 19244DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 19245sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 19246AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 19247AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 19248archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 19249STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 19250RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 19251old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 19252old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 19253old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 19254lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 19255CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 19256CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 19257compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 19258GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 19259lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 19260lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 19261lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 19262lt_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"`' 19263nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 19264lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 19265objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 19266MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 19267lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 19268lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 19269lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 19270lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 19271lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 19272need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 19273MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 19274DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 19275NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 19276LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 19277OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 19278OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 19279libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 19280shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 19281extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 19282archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 19283enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 19284export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 19285whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 19286compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 19287old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 19288old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 19289archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 19290archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 19291module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 19292module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 19293with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 19294allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 19295no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 19296hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 19297hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 19298hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 19299hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 19300hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 19301hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 19302hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 19303inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 19304link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 19305always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 19306export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 19307exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 19308include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 19309prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 19310postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 19311file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 19312variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 19313need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 19314need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 19315version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 19316runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 19317shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 19318shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 19319libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 19320library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 19321soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 19322install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 19323postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 19324postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 19325finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 19326finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 19327hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 19328sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 19329sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`' 19330hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 19331enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 19332enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 19333enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 19334old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 19335striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 19336 19337LTCC='$LTCC' 19338LTCFLAGS='$LTCFLAGS' 19339compiler='$compiler_DEFAULT' 19340 19341# A function that is used when there is no print builtin or printf. 19342func_fallback_echo () 19343{ 19344 eval 'cat <<_LTECHO_EOF 19345\$1 19346_LTECHO_EOF' 19347} 19348 19349# Quote evaled strings. 19350for var in SHELL \ 19351ECHO \ 19352PATH_SEPARATOR \ 19353SED \ 19354GREP \ 19355EGREP \ 19356FGREP \ 19357LD \ 19358NM \ 19359LN_S \ 19360lt_SP2NL \ 19361lt_NL2SP \ 19362reload_flag \ 19363OBJDUMP \ 19364deplibs_check_method \ 19365file_magic_cmd \ 19366file_magic_glob \ 19367want_nocaseglob \ 19368DLLTOOL \ 19369sharedlib_from_linklib_cmd \ 19370AR \ 19371AR_FLAGS \ 19372archiver_list_spec \ 19373STRIP \ 19374RANLIB \ 19375CC \ 19376CFLAGS \ 19377compiler \ 19378lt_cv_sys_global_symbol_pipe \ 19379lt_cv_sys_global_symbol_to_cdecl \ 19380lt_cv_sys_global_symbol_to_c_name_address \ 19381lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 19382nm_file_list_spec \ 19383lt_prog_compiler_no_builtin_flag \ 19384lt_prog_compiler_pic \ 19385lt_prog_compiler_wl \ 19386lt_prog_compiler_static \ 19387lt_cv_prog_compiler_c_o \ 19388need_locks \ 19389MANIFEST_TOOL \ 19390DSYMUTIL \ 19391NMEDIT \ 19392LIPO \ 19393OTOOL \ 19394OTOOL64 \ 19395shrext_cmds \ 19396export_dynamic_flag_spec \ 19397whole_archive_flag_spec \ 19398compiler_needs_object \ 19399with_gnu_ld \ 19400allow_undefined_flag \ 19401no_undefined_flag \ 19402hardcode_libdir_flag_spec \ 19403hardcode_libdir_separator \ 19404exclude_expsyms \ 19405include_expsyms \ 19406file_list_spec \ 19407variables_saved_for_relink \ 19408libname_spec \ 19409library_names_spec \ 19410soname_spec \ 19411install_override_mode \ 19412finish_eval \ 19413old_striplib \ 19414striplib; do 19415 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 19416 *[\\\\\\\`\\"\\\$]*) 19417 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" 19418 ;; 19419 *) 19420 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 19421 ;; 19422 esac 19423done 19424 19425# Double-quote double-evaled strings. 19426for var in reload_cmds \ 19427old_postinstall_cmds \ 19428old_postuninstall_cmds \ 19429old_archive_cmds \ 19430extract_expsyms_cmds \ 19431old_archive_from_new_cmds \ 19432old_archive_from_expsyms_cmds \ 19433archive_cmds \ 19434archive_expsym_cmds \ 19435module_cmds \ 19436module_expsym_cmds \ 19437export_symbols_cmds \ 19438prelink_cmds \ 19439postlink_cmds \ 19440postinstall_cmds \ 19441postuninstall_cmds \ 19442finish_cmds \ 19443sys_lib_search_path_spec \ 19444sys_lib_dlsearch_path_spec; do 19445 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 19446 *[\\\\\\\`\\"\\\$]*) 19447 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" 19448 ;; 19449 *) 19450 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 19451 ;; 19452 esac 19453done 19454 19455ac_aux_dir='$ac_aux_dir' 19456xsi_shell='$xsi_shell' 19457lt_shell_append='$lt_shell_append' 19458 19459# See if we are running on zsh, and set the options which allow our 19460# commands through without removal of \ escapes INIT. 19461if test -n "\${ZSH_VERSION+set}" ; then 19462 setopt NO_GLOB_SUBST 19463fi 19464 19465 19466 PACKAGE='$PACKAGE' 19467 VERSION='$VERSION' 19468 TIMESTAMP='$TIMESTAMP' 19469 RM='$RM' 19470 ofile='$ofile' 19471 19472 19473 19474 19475_ACEOF 19476 19477cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19478 19479# Handling of arguments. 19480for ac_config_target in $ac_config_targets 19481do 19482 case $ac_config_target in 19483 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 19484 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 19485 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 19486 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 19487 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 19488 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 19489 "specs/Makefile") CONFIG_FILES="$CONFIG_FILES specs/Makefile" ;; 19490 "xtst.pc") CONFIG_FILES="$CONFIG_FILES xtst.pc" ;; 19491 19492 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 19493 esac 19494done 19495 19496 19497# If the user did not use the arguments to specify the items to instantiate, 19498# then the envvar interface is used. Set only those that are not. 19499# We use the long form for the default assignment because of an extremely 19500# bizarre bug on SunOS 4.1.3. 19501if $ac_need_defaults; then 19502 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 19503 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 19504 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 19505fi 19506 19507# Have a temporary directory for convenience. Make it in the build tree 19508# simply because there is no reason against having it here, and in addition, 19509# creating and moving files from /tmp can sometimes cause problems. 19510# Hook for its removal unless debugging. 19511# Note that there is a small window in which the directory will not be cleaned: 19512# after its creation but before its name has been assigned to `$tmp'. 19513$debug || 19514{ 19515 tmp= ac_tmp= 19516 trap 'exit_status=$? 19517 : "${ac_tmp:=$tmp}" 19518 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 19519' 0 19520 trap 'as_fn_exit 1' 1 2 13 15 19521} 19522# Create a (secure) tmp directory for tmp files. 19523 19524{ 19525 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 19526 test -d "$tmp" 19527} || 19528{ 19529 tmp=./conf$$-$RANDOM 19530 (umask 077 && mkdir "$tmp") 19531} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 19532ac_tmp=$tmp 19533 19534# Set up the scripts for CONFIG_FILES section. 19535# No need to generate them if there are no CONFIG_FILES. 19536# This happens for instance with `./config.status config.h'. 19537if test -n "$CONFIG_FILES"; then 19538 19539 19540ac_cr=`echo X | tr X '\015'` 19541# On cygwin, bash can eat \r inside `` if the user requested igncr. 19542# But we know of no other shell where ac_cr would be empty at this 19543# point, so we can use a bashism as a fallback. 19544if test "x$ac_cr" = x; then 19545 eval ac_cr=\$\'\\r\' 19546fi 19547ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 19548if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 19549 ac_cs_awk_cr='\\r' 19550else 19551 ac_cs_awk_cr=$ac_cr 19552fi 19553 19554echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 19555_ACEOF 19556 19557 19558{ 19559 echo "cat >conf$$subs.awk <<_ACEOF" && 19560 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 19561 echo "_ACEOF" 19562} >conf$$subs.sh || 19563 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 19564ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 19565ac_delim='%!_!# ' 19566for ac_last_try in false false false false false :; do 19567 . ./conf$$subs.sh || 19568 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 19569 19570 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 19571 if test $ac_delim_n = $ac_delim_num; then 19572 break 19573 elif $ac_last_try; then 19574 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 19575 else 19576 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 19577 fi 19578done 19579rm -f conf$$subs.sh 19580 19581cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19582cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 19583_ACEOF 19584sed -n ' 19585h 19586s/^/S["/; s/!.*/"]=/ 19587p 19588g 19589s/^[^!]*!// 19590:repl 19591t repl 19592s/'"$ac_delim"'$// 19593t delim 19594:nl 19595h 19596s/\(.\{148\}\)..*/\1/ 19597t more1 19598s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 19599p 19600n 19601b repl 19602:more1 19603s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 19604p 19605g 19606s/.\{148\}// 19607t nl 19608:delim 19609h 19610s/\(.\{148\}\)..*/\1/ 19611t more2 19612s/["\\]/\\&/g; s/^/"/; s/$/"/ 19613p 19614b 19615:more2 19616s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 19617p 19618g 19619s/.\{148\}// 19620t delim 19621' <conf$$subs.awk | sed ' 19622/^[^""]/{ 19623 N 19624 s/\n// 19625} 19626' >>$CONFIG_STATUS || ac_write_fail=1 19627rm -f conf$$subs.awk 19628cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19629_ACAWK 19630cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 19631 for (key in S) S_is_set[key] = 1 19632 FS = "" 19633 19634} 19635{ 19636 line = $ 0 19637 nfields = split(line, field, "@") 19638 substed = 0 19639 len = length(field[1]) 19640 for (i = 2; i < nfields; i++) { 19641 key = field[i] 19642 keylen = length(key) 19643 if (S_is_set[key]) { 19644 value = S[key] 19645 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 19646 len += length(value) + length(field[++i]) 19647 substed = 1 19648 } else 19649 len += 1 + keylen 19650 } 19651 19652 print line 19653} 19654 19655_ACAWK 19656_ACEOF 19657cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19658if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 19659 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 19660else 19661 cat 19662fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 19663 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 19664_ACEOF 19665 19666# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 19667# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 19668# trailing colons and then remove the whole line if VPATH becomes empty 19669# (actually we leave an empty line to preserve line numbers). 19670if test "x$srcdir" = x.; then 19671 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 19672h 19673s/// 19674s/^/:/ 19675s/[ ]*$/:/ 19676s/:\$(srcdir):/:/g 19677s/:\${srcdir}:/:/g 19678s/:@srcdir@:/:/g 19679s/^:*// 19680s/:*$// 19681x 19682s/\(=[ ]*\).*/\1/ 19683G 19684s/\n// 19685s/^[^=]*=[ ]*$// 19686}' 19687fi 19688 19689cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19690fi # test -n "$CONFIG_FILES" 19691 19692# Set up the scripts for CONFIG_HEADERS section. 19693# No need to generate them if there are no CONFIG_HEADERS. 19694# This happens for instance with `./config.status Makefile'. 19695if test -n "$CONFIG_HEADERS"; then 19696cat >"$ac_tmp/defines.awk" <<\_ACAWK || 19697BEGIN { 19698_ACEOF 19699 19700# Transform confdefs.h into an awk script `defines.awk', embedded as 19701# here-document in config.status, that substitutes the proper values into 19702# config.h.in to produce config.h. 19703 19704# Create a delimiter string that does not exist in confdefs.h, to ease 19705# handling of long lines. 19706ac_delim='%!_!# ' 19707for ac_last_try in false false :; do 19708 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 19709 if test -z "$ac_tt"; then 19710 break 19711 elif $ac_last_try; then 19712 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 19713 else 19714 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 19715 fi 19716done 19717 19718# For the awk script, D is an array of macro values keyed by name, 19719# likewise P contains macro parameters if any. Preserve backslash 19720# newline sequences. 19721 19722ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 19723sed -n ' 19724s/.\{148\}/&'"$ac_delim"'/g 19725t rset 19726:rset 19727s/^[ ]*#[ ]*define[ ][ ]*/ / 19728t def 19729d 19730:def 19731s/\\$// 19732t bsnl 19733s/["\\]/\\&/g 19734s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 19735D["\1"]=" \3"/p 19736s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 19737d 19738:bsnl 19739s/["\\]/\\&/g 19740s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 19741D["\1"]=" \3\\\\\\n"\\/p 19742t cont 19743s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 19744t cont 19745d 19746:cont 19747n 19748s/.\{148\}/&'"$ac_delim"'/g 19749t clear 19750:clear 19751s/\\$// 19752t bsnlc 19753s/["\\]/\\&/g; s/^/"/; s/$/"/p 19754d 19755:bsnlc 19756s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 19757b cont 19758' <confdefs.h | sed ' 19759s/'"$ac_delim"'/"\\\ 19760"/g' >>$CONFIG_STATUS || ac_write_fail=1 19761 19762cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19763 for (key in D) D_is_set[key] = 1 19764 FS = "" 19765} 19766/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 19767 line = \$ 0 19768 split(line, arg, " ") 19769 if (arg[1] == "#") { 19770 defundef = arg[2] 19771 mac1 = arg[3] 19772 } else { 19773 defundef = substr(arg[1], 2) 19774 mac1 = arg[2] 19775 } 19776 split(mac1, mac2, "(") #) 19777 macro = mac2[1] 19778 prefix = substr(line, 1, index(line, defundef) - 1) 19779 if (D_is_set[macro]) { 19780 # Preserve the white space surrounding the "#". 19781 print prefix "define", macro P[macro] D[macro] 19782 next 19783 } else { 19784 # Replace #undef with comments. This is necessary, for example, 19785 # in the case of _POSIX_SOURCE, which is predefined and required 19786 # on some systems where configure will not decide to define it. 19787 if (defundef == "undef") { 19788 print "/*", prefix defundef, macro, "*/" 19789 next 19790 } 19791 } 19792} 19793{ print } 19794_ACAWK 19795_ACEOF 19796cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19797 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 19798fi # test -n "$CONFIG_HEADERS" 19799 19800 19801eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 19802shift 19803for ac_tag 19804do 19805 case $ac_tag in 19806 :[FHLC]) ac_mode=$ac_tag; continue;; 19807 esac 19808 case $ac_mode$ac_tag in 19809 :[FHL]*:*);; 19810 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 19811 :[FH]-) ac_tag=-:-;; 19812 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 19813 esac 19814 ac_save_IFS=$IFS 19815 IFS=: 19816 set x $ac_tag 19817 IFS=$ac_save_IFS 19818 shift 19819 ac_file=$1 19820 shift 19821 19822 case $ac_mode in 19823 :L) ac_source=$1;; 19824 :[FH]) 19825 ac_file_inputs= 19826 for ac_f 19827 do 19828 case $ac_f in 19829 -) ac_f="$ac_tmp/stdin";; 19830 *) # Look for the file first in the build tree, then in the source tree 19831 # (if the path is not absolute). The absolute path cannot be DOS-style, 19832 # because $ac_f cannot contain `:'. 19833 test -f "$ac_f" || 19834 case $ac_f in 19835 [\\/$]*) false;; 19836 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 19837 esac || 19838 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 19839 esac 19840 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 19841 as_fn_append ac_file_inputs " '$ac_f'" 19842 done 19843 19844 # Let's still pretend it is `configure' which instantiates (i.e., don't 19845 # use $as_me), people would be surprised to read: 19846 # /* config.h. Generated by config.status. */ 19847 configure_input='Generated from '` 19848 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 19849 `' by configure.' 19850 if test x"$ac_file" != x-; then 19851 configure_input="$ac_file. $configure_input" 19852 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 19853$as_echo "$as_me: creating $ac_file" >&6;} 19854 fi 19855 # Neutralize special characters interpreted by sed in replacement strings. 19856 case $configure_input in #( 19857 *\&* | *\|* | *\\* ) 19858 ac_sed_conf_input=`$as_echo "$configure_input" | 19859 sed 's/[\\\\&|]/\\\\&/g'`;; #( 19860 *) ac_sed_conf_input=$configure_input;; 19861 esac 19862 19863 case $ac_tag in 19864 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 19865 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 19866 esac 19867 ;; 19868 esac 19869 19870 ac_dir=`$as_dirname -- "$ac_file" || 19871$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 19872 X"$ac_file" : 'X\(//\)[^/]' \| \ 19873 X"$ac_file" : 'X\(//\)$' \| \ 19874 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 19875$as_echo X"$ac_file" | 19876 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 19877 s//\1/ 19878 q 19879 } 19880 /^X\(\/\/\)[^/].*/{ 19881 s//\1/ 19882 q 19883 } 19884 /^X\(\/\/\)$/{ 19885 s//\1/ 19886 q 19887 } 19888 /^X\(\/\).*/{ 19889 s//\1/ 19890 q 19891 } 19892 s/.*/./; q'` 19893 as_dir="$ac_dir"; as_fn_mkdir_p 19894 ac_builddir=. 19895 19896case "$ac_dir" in 19897.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 19898*) 19899 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 19900 # A ".." for each directory in $ac_dir_suffix. 19901 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 19902 case $ac_top_builddir_sub in 19903 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 19904 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 19905 esac ;; 19906esac 19907ac_abs_top_builddir=$ac_pwd 19908ac_abs_builddir=$ac_pwd$ac_dir_suffix 19909# for backward compatibility: 19910ac_top_builddir=$ac_top_build_prefix 19911 19912case $srcdir in 19913 .) # We are building in place. 19914 ac_srcdir=. 19915 ac_top_srcdir=$ac_top_builddir_sub 19916 ac_abs_top_srcdir=$ac_pwd ;; 19917 [\\/]* | ?:[\\/]* ) # Absolute name. 19918 ac_srcdir=$srcdir$ac_dir_suffix; 19919 ac_top_srcdir=$srcdir 19920 ac_abs_top_srcdir=$srcdir ;; 19921 *) # Relative name. 19922 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 19923 ac_top_srcdir=$ac_top_build_prefix$srcdir 19924 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 19925esac 19926ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 19927 19928 19929 case $ac_mode in 19930 :F) 19931 # 19932 # CONFIG_FILE 19933 # 19934 19935 case $INSTALL in 19936 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 19937 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 19938 esac 19939 ac_MKDIR_P=$MKDIR_P 19940 case $MKDIR_P in 19941 [\\/$]* | ?:[\\/]* ) ;; 19942 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 19943 esac 19944_ACEOF 19945 19946cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19947# If the template does not know about datarootdir, expand it. 19948# FIXME: This hack should be removed a few years after 2.60. 19949ac_datarootdir_hack=; ac_datarootdir_seen= 19950ac_sed_dataroot=' 19951/datarootdir/ { 19952 p 19953 q 19954} 19955/@datadir@/p 19956/@docdir@/p 19957/@infodir@/p 19958/@localedir@/p 19959/@mandir@/p' 19960case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 19961*datarootdir*) ac_datarootdir_seen=yes;; 19962*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 19963 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 19964$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 19965_ACEOF 19966cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19967 ac_datarootdir_hack=' 19968 s&@datadir@&$datadir&g 19969 s&@docdir@&$docdir&g 19970 s&@infodir@&$infodir&g 19971 s&@localedir@&$localedir&g 19972 s&@mandir@&$mandir&g 19973 s&\\\${datarootdir}&$datarootdir&g' ;; 19974esac 19975_ACEOF 19976 19977# Neutralize VPATH when `$srcdir' = `.'. 19978# Shell code in configure.ac might set extrasub. 19979# FIXME: do we really want to maintain this feature? 19980cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19981ac_sed_extra="$ac_vpsub 19982$extrasub 19983_ACEOF 19984cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19985:t 19986/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 19987s|@configure_input@|$ac_sed_conf_input|;t t 19988s&@top_builddir@&$ac_top_builddir_sub&;t t 19989s&@top_build_prefix@&$ac_top_build_prefix&;t t 19990s&@srcdir@&$ac_srcdir&;t t 19991s&@abs_srcdir@&$ac_abs_srcdir&;t t 19992s&@top_srcdir@&$ac_top_srcdir&;t t 19993s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 19994s&@builddir@&$ac_builddir&;t t 19995s&@abs_builddir@&$ac_abs_builddir&;t t 19996s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 19997s&@INSTALL@&$ac_INSTALL&;t t 19998s&@MKDIR_P@&$ac_MKDIR_P&;t t 19999$ac_datarootdir_hack 20000" 20001eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 20002 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 20003 20004test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 20005 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 20006 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 20007 "$ac_tmp/out"`; test -z "$ac_out"; } && 20008 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 20009which seems to be undefined. Please make sure it is defined" >&5 20010$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 20011which seems to be undefined. Please make sure it is defined" >&2;} 20012 20013 rm -f "$ac_tmp/stdin" 20014 case $ac_file in 20015 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 20016 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 20017 esac \ 20018 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 20019 ;; 20020 :H) 20021 # 20022 # CONFIG_HEADER 20023 # 20024 if test x"$ac_file" != x-; then 20025 { 20026 $as_echo "/* $configure_input */" \ 20027 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 20028 } >"$ac_tmp/config.h" \ 20029 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 20030 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 20031 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 20032$as_echo "$as_me: $ac_file is unchanged" >&6;} 20033 else 20034 rm -f "$ac_file" 20035 mv "$ac_tmp/config.h" "$ac_file" \ 20036 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 20037 fi 20038 else 20039 $as_echo "/* $configure_input */" \ 20040 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 20041 || as_fn_error $? "could not create -" "$LINENO" 5 20042 fi 20043# Compute "$ac_file"'s index in $config_headers. 20044_am_arg="$ac_file" 20045_am_stamp_count=1 20046for _am_header in $config_headers :; do 20047 case $_am_header in 20048 $_am_arg | $_am_arg:* ) 20049 break ;; 20050 * ) 20051 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 20052 esac 20053done 20054echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 20055$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20056 X"$_am_arg" : 'X\(//\)[^/]' \| \ 20057 X"$_am_arg" : 'X\(//\)$' \| \ 20058 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 20059$as_echo X"$_am_arg" | 20060 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 20061 s//\1/ 20062 q 20063 } 20064 /^X\(\/\/\)[^/].*/{ 20065 s//\1/ 20066 q 20067 } 20068 /^X\(\/\/\)$/{ 20069 s//\1/ 20070 q 20071 } 20072 /^X\(\/\).*/{ 20073 s//\1/ 20074 q 20075 } 20076 s/.*/./; q'`/stamp-h$_am_stamp_count 20077 ;; 20078 20079 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 20080$as_echo "$as_me: executing $ac_file commands" >&6;} 20081 ;; 20082 esac 20083 20084 20085 case $ac_file$ac_mode in 20086 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 20087 # Older Autoconf quotes --file arguments for eval, but not when files 20088 # are listed without --file. Let's play safe and only enable the eval 20089 # if we detect the quoting. 20090 case $CONFIG_FILES in 20091 *\'*) eval set x "$CONFIG_FILES" ;; 20092 *) set x $CONFIG_FILES ;; 20093 esac 20094 shift 20095 for mf 20096 do 20097 # Strip MF so we end up with the name of the file. 20098 mf=`echo "$mf" | sed -e 's/:.*$//'` 20099 # Check whether this is an Automake generated Makefile or not. 20100 # We used to match only the files named 'Makefile.in', but 20101 # some people rename them; so instead we look at the file content. 20102 # Grep'ing the first line is not enough: some people post-process 20103 # each Makefile.in and add a new line on top of each file to say so. 20104 # Grep'ing the whole file is not good either: AIX grep has a line 20105 # limit of 2048, but all sed's we know have understand at least 4000. 20106 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 20107 dirpart=`$as_dirname -- "$mf" || 20108$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20109 X"$mf" : 'X\(//\)[^/]' \| \ 20110 X"$mf" : 'X\(//\)$' \| \ 20111 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 20112$as_echo X"$mf" | 20113 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 20114 s//\1/ 20115 q 20116 } 20117 /^X\(\/\/\)[^/].*/{ 20118 s//\1/ 20119 q 20120 } 20121 /^X\(\/\/\)$/{ 20122 s//\1/ 20123 q 20124 } 20125 /^X\(\/\).*/{ 20126 s//\1/ 20127 q 20128 } 20129 s/.*/./; q'` 20130 else 20131 continue 20132 fi 20133 # Extract the definition of DEPDIR, am__include, and am__quote 20134 # from the Makefile without running 'make'. 20135 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 20136 test -z "$DEPDIR" && continue 20137 am__include=`sed -n 's/^am__include = //p' < "$mf"` 20138 test -z "$am__include" && continue 20139 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 20140 # Find all dependency output files, they are included files with 20141 # $(DEPDIR) in their names. We invoke sed twice because it is the 20142 # simplest approach to changing $(DEPDIR) to its actual value in the 20143 # expansion. 20144 for file in `sed -n " 20145 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 20146 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do 20147 # Make sure the directory exists. 20148 test -f "$dirpart/$file" && continue 20149 fdir=`$as_dirname -- "$file" || 20150$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20151 X"$file" : 'X\(//\)[^/]' \| \ 20152 X"$file" : 'X\(//\)$' \| \ 20153 X"$file" : 'X\(/\)' \| . 2>/dev/null || 20154$as_echo X"$file" | 20155 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 20156 s//\1/ 20157 q 20158 } 20159 /^X\(\/\/\)[^/].*/{ 20160 s//\1/ 20161 q 20162 } 20163 /^X\(\/\/\)$/{ 20164 s//\1/ 20165 q 20166 } 20167 /^X\(\/\).*/{ 20168 s//\1/ 20169 q 20170 } 20171 s/.*/./; q'` 20172 as_dir=$dirpart/$fdir; as_fn_mkdir_p 20173 # echo "creating $dirpart/$file" 20174 echo '# dummy' > "$dirpart/$file" 20175 done 20176 done 20177} 20178 ;; 20179 "libtool":C) 20180 20181 # See if we are running on zsh, and set the options which allow our 20182 # commands through without removal of \ escapes. 20183 if test -n "${ZSH_VERSION+set}" ; then 20184 setopt NO_GLOB_SUBST 20185 fi 20186 20187 cfgfile="${ofile}T" 20188 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 20189 $RM "$cfgfile" 20190 20191 cat <<_LT_EOF >> "$cfgfile" 20192#! $SHELL 20193 20194# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 20195# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION 20196# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 20197# NOTE: Changes made to this file will be lost: look at ltmain.sh. 20198# 20199# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 20200# 2006, 2007, 2008, 2009, 2010, 2011 Free Software 20201# Foundation, Inc. 20202# Written by Gordon Matzigkeit, 1996 20203# 20204# This file is part of GNU Libtool. 20205# 20206# GNU Libtool is free software; you can redistribute it and/or 20207# modify it under the terms of the GNU General Public License as 20208# published by the Free Software Foundation; either version 2 of 20209# the License, or (at your option) any later version. 20210# 20211# As a special exception to the GNU General Public License, 20212# if you distribute this file as part of a program or library that 20213# is built using GNU Libtool, you may include this file under the 20214# same distribution terms that you use for the rest of that program. 20215# 20216# GNU Libtool is distributed in the hope that it will be useful, 20217# but WITHOUT ANY WARRANTY; without even the implied warranty of 20218# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 20219# GNU General Public License for more details. 20220# 20221# You should have received a copy of the GNU General Public License 20222# along with GNU Libtool; see the file COPYING. If not, a copy 20223# can be downloaded from http://www.gnu.org/licenses/gpl.html, or 20224# obtained by writing to the Free Software Foundation, Inc., 20225# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 20226 20227 20228# The names of the tagged configurations supported by this script. 20229available_tags="" 20230 20231# ### BEGIN LIBTOOL CONFIG 20232 20233# Which release of libtool.m4 was used? 20234macro_version=$macro_version 20235macro_revision=$macro_revision 20236 20237# Whether or not to build shared libraries. 20238build_libtool_libs=$enable_shared 20239 20240# Whether or not to build static libraries. 20241build_old_libs=$enable_static 20242 20243# What type of objects to build. 20244pic_mode=$pic_mode 20245 20246# Whether or not to optimize for fast installation. 20247fast_install=$enable_fast_install 20248 20249# Shell to use when invoking shell scripts. 20250SHELL=$lt_SHELL 20251 20252# An echo program that protects backslashes. 20253ECHO=$lt_ECHO 20254 20255# The PATH separator for the build system. 20256PATH_SEPARATOR=$lt_PATH_SEPARATOR 20257 20258# The host system. 20259host_alias=$host_alias 20260host=$host 20261host_os=$host_os 20262 20263# The build system. 20264build_alias=$build_alias 20265build=$build 20266build_os=$build_os 20267 20268# A sed program that does not truncate output. 20269SED=$lt_SED 20270 20271# Sed that helps us avoid accidentally triggering echo(1) options like -n. 20272Xsed="\$SED -e 1s/^X//" 20273 20274# A grep program that handles long lines. 20275GREP=$lt_GREP 20276 20277# An ERE matcher. 20278EGREP=$lt_EGREP 20279 20280# A literal string matcher. 20281FGREP=$lt_FGREP 20282 20283# A BSD- or MS-compatible name lister. 20284NM=$lt_NM 20285 20286# Whether we need soft or hard links. 20287LN_S=$lt_LN_S 20288 20289# What is the maximum length of a command? 20290max_cmd_len=$max_cmd_len 20291 20292# Object file suffix (normally "o"). 20293objext=$ac_objext 20294 20295# Executable file suffix (normally ""). 20296exeext=$exeext 20297 20298# whether the shell understands "unset". 20299lt_unset=$lt_unset 20300 20301# turn spaces into newlines. 20302SP2NL=$lt_lt_SP2NL 20303 20304# turn newlines into spaces. 20305NL2SP=$lt_lt_NL2SP 20306 20307# convert \$build file names to \$host format. 20308to_host_file_cmd=$lt_cv_to_host_file_cmd 20309 20310# convert \$build files to toolchain format. 20311to_tool_file_cmd=$lt_cv_to_tool_file_cmd 20312 20313# An object symbol dumper. 20314OBJDUMP=$lt_OBJDUMP 20315 20316# Method to check whether dependent libraries are shared objects. 20317deplibs_check_method=$lt_deplibs_check_method 20318 20319# Command to use when deplibs_check_method = "file_magic". 20320file_magic_cmd=$lt_file_magic_cmd 20321 20322# How to find potential files when deplibs_check_method = "file_magic". 20323file_magic_glob=$lt_file_magic_glob 20324 20325# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 20326want_nocaseglob=$lt_want_nocaseglob 20327 20328# DLL creation program. 20329DLLTOOL=$lt_DLLTOOL 20330 20331# Command to associate shared and link libraries. 20332sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 20333 20334# The archiver. 20335AR=$lt_AR 20336 20337# Flags to create an archive. 20338AR_FLAGS=$lt_AR_FLAGS 20339 20340# How to feed a file listing to the archiver. 20341archiver_list_spec=$lt_archiver_list_spec 20342 20343# A symbol stripping program. 20344STRIP=$lt_STRIP 20345 20346# Commands used to install an old-style archive. 20347RANLIB=$lt_RANLIB 20348old_postinstall_cmds=$lt_old_postinstall_cmds 20349old_postuninstall_cmds=$lt_old_postuninstall_cmds 20350 20351# Whether to use a lock for old archive extraction. 20352lock_old_archive_extraction=$lock_old_archive_extraction 20353 20354# A C compiler. 20355LTCC=$lt_CC 20356 20357# LTCC compiler flags. 20358LTCFLAGS=$lt_CFLAGS 20359 20360# Take the output of nm and produce a listing of raw symbols and C names. 20361global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 20362 20363# Transform the output of nm in a proper C declaration. 20364global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 20365 20366# Transform the output of nm in a C name address pair. 20367global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 20368 20369# Transform the output of nm in a C name address pair when lib prefix is needed. 20370global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 20371 20372# Specify filename containing input files for \$NM. 20373nm_file_list_spec=$lt_nm_file_list_spec 20374 20375# The root where to search for dependent libraries,and in which our libraries should be installed. 20376lt_sysroot=$lt_sysroot 20377 20378# The name of the directory that contains temporary libtool files. 20379objdir=$objdir 20380 20381# Used to examine libraries when file_magic_cmd begins with "file". 20382MAGIC_CMD=$MAGIC_CMD 20383 20384# Must we lock files when doing compilation? 20385need_locks=$lt_need_locks 20386 20387# Manifest tool. 20388MANIFEST_TOOL=$lt_MANIFEST_TOOL 20389 20390# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 20391DSYMUTIL=$lt_DSYMUTIL 20392 20393# Tool to change global to local symbols on Mac OS X. 20394NMEDIT=$lt_NMEDIT 20395 20396# Tool to manipulate fat objects and archives on Mac OS X. 20397LIPO=$lt_LIPO 20398 20399# ldd/readelf like tool for Mach-O binaries on Mac OS X. 20400OTOOL=$lt_OTOOL 20401 20402# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 20403OTOOL64=$lt_OTOOL64 20404 20405# Old archive suffix (normally "a"). 20406libext=$libext 20407 20408# Shared library suffix (normally ".so"). 20409shrext_cmds=$lt_shrext_cmds 20410 20411# The commands to extract the exported symbol list from a shared archive. 20412extract_expsyms_cmds=$lt_extract_expsyms_cmds 20413 20414# Variables whose values should be saved in libtool wrapper scripts and 20415# restored at link time. 20416variables_saved_for_relink=$lt_variables_saved_for_relink 20417 20418# Do we need the "lib" prefix for modules? 20419need_lib_prefix=$need_lib_prefix 20420 20421# Do we need a version for libraries? 20422need_version=$need_version 20423 20424# Library versioning type. 20425version_type=$version_type 20426 20427# Shared library runtime path variable. 20428runpath_var=$runpath_var 20429 20430# Shared library path variable. 20431shlibpath_var=$shlibpath_var 20432 20433# Is shlibpath searched before the hard-coded library search path? 20434shlibpath_overrides_runpath=$shlibpath_overrides_runpath 20435 20436# Format of library name prefix. 20437libname_spec=$lt_libname_spec 20438 20439# List of archive names. First name is the real one, the rest are links. 20440# The last name is the one that the linker finds with -lNAME 20441library_names_spec=$lt_library_names_spec 20442 20443# The coded name of the library, if different from the real name. 20444soname_spec=$lt_soname_spec 20445 20446# Permission mode override for installation of shared libraries. 20447install_override_mode=$lt_install_override_mode 20448 20449# Command to use after installation of a shared archive. 20450postinstall_cmds=$lt_postinstall_cmds 20451 20452# Command to use after uninstallation of a shared archive. 20453postuninstall_cmds=$lt_postuninstall_cmds 20454 20455# Commands used to finish a libtool library installation in a directory. 20456finish_cmds=$lt_finish_cmds 20457 20458# As "finish_cmds", except a single script fragment to be evaled but 20459# not shown. 20460finish_eval=$lt_finish_eval 20461 20462# Whether we should hardcode library paths into libraries. 20463hardcode_into_libs=$hardcode_into_libs 20464 20465# Compile-time system search path for libraries. 20466sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 20467 20468# Run-time system search path for libraries. 20469sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 20470 20471# Whether dlopen is supported. 20472dlopen_support=$enable_dlopen 20473 20474# Whether dlopen of programs is supported. 20475dlopen_self=$enable_dlopen_self 20476 20477# Whether dlopen of statically linked programs is supported. 20478dlopen_self_static=$enable_dlopen_self_static 20479 20480# Commands to strip libraries. 20481old_striplib=$lt_old_striplib 20482striplib=$lt_striplib 20483 20484 20485# The linker used to build libraries. 20486LD=$lt_LD 20487 20488# How to create reloadable object files. 20489reload_flag=$lt_reload_flag 20490reload_cmds=$lt_reload_cmds 20491 20492# Commands used to build an old-style archive. 20493old_archive_cmds=$lt_old_archive_cmds 20494 20495# A language specific compiler. 20496CC=$lt_compiler 20497 20498# Is the compiler the GNU compiler? 20499with_gcc=$GCC 20500 20501# Compiler flag to turn off builtin functions. 20502no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 20503 20504# Additional compiler flags for building library objects. 20505pic_flag=$lt_lt_prog_compiler_pic 20506 20507# How to pass a linker flag through the compiler. 20508wl=$lt_lt_prog_compiler_wl 20509 20510# Compiler flag to prevent dynamic linking. 20511link_static_flag=$lt_lt_prog_compiler_static 20512 20513# Does compiler simultaneously support -c and -o options? 20514compiler_c_o=$lt_lt_cv_prog_compiler_c_o 20515 20516# Whether or not to add -lc for building shared libraries. 20517build_libtool_need_lc=$archive_cmds_need_lc 20518 20519# Whether or not to disallow shared libs when runtime libs are static. 20520allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 20521 20522# Compiler flag to allow reflexive dlopens. 20523export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 20524 20525# Compiler flag to generate shared objects directly from archives. 20526whole_archive_flag_spec=$lt_whole_archive_flag_spec 20527 20528# Whether the compiler copes with passing no objects directly. 20529compiler_needs_object=$lt_compiler_needs_object 20530 20531# Create an old-style archive from a shared archive. 20532old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 20533 20534# Create a temporary old-style archive to link instead of a shared archive. 20535old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 20536 20537# Commands used to build a shared archive. 20538archive_cmds=$lt_archive_cmds 20539archive_expsym_cmds=$lt_archive_expsym_cmds 20540 20541# Commands used to build a loadable module if different from building 20542# a shared archive. 20543module_cmds=$lt_module_cmds 20544module_expsym_cmds=$lt_module_expsym_cmds 20545 20546# Whether we are building with GNU ld or not. 20547with_gnu_ld=$lt_with_gnu_ld 20548 20549# Flag that allows shared libraries with undefined symbols to be built. 20550allow_undefined_flag=$lt_allow_undefined_flag 20551 20552# Flag that enforces no undefined symbols. 20553no_undefined_flag=$lt_no_undefined_flag 20554 20555# Flag to hardcode \$libdir into a binary during linking. 20556# This must work even if \$libdir does not exist 20557hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 20558 20559# Whether we need a single "-rpath" flag with a separated argument. 20560hardcode_libdir_separator=$lt_hardcode_libdir_separator 20561 20562# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 20563# DIR into the resulting binary. 20564hardcode_direct=$hardcode_direct 20565 20566# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 20567# DIR into the resulting binary and the resulting library dependency is 20568# "absolute",i.e impossible to change by setting \${shlibpath_var} if the 20569# library is relocated. 20570hardcode_direct_absolute=$hardcode_direct_absolute 20571 20572# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 20573# into the resulting binary. 20574hardcode_minus_L=$hardcode_minus_L 20575 20576# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 20577# into the resulting binary. 20578hardcode_shlibpath_var=$hardcode_shlibpath_var 20579 20580# Set to "yes" if building a shared library automatically hardcodes DIR 20581# into the library and all subsequent libraries and executables linked 20582# against it. 20583hardcode_automatic=$hardcode_automatic 20584 20585# Set to yes if linker adds runtime paths of dependent libraries 20586# to runtime path list. 20587inherit_rpath=$inherit_rpath 20588 20589# Whether libtool must link a program against all its dependency libraries. 20590link_all_deplibs=$link_all_deplibs 20591 20592# Set to "yes" if exported symbols are required. 20593always_export_symbols=$always_export_symbols 20594 20595# The commands to list exported symbols. 20596export_symbols_cmds=$lt_export_symbols_cmds 20597 20598# Symbols that should not be listed in the preloaded symbols. 20599exclude_expsyms=$lt_exclude_expsyms 20600 20601# Symbols that must always be exported. 20602include_expsyms=$lt_include_expsyms 20603 20604# Commands necessary for linking programs (against libraries) with templates. 20605prelink_cmds=$lt_prelink_cmds 20606 20607# Commands necessary for finishing linking programs. 20608postlink_cmds=$lt_postlink_cmds 20609 20610# Specify filename containing input files. 20611file_list_spec=$lt_file_list_spec 20612 20613# How to hardcode a shared library path into an executable. 20614hardcode_action=$hardcode_action 20615 20616# ### END LIBTOOL CONFIG 20617 20618_LT_EOF 20619 20620 case $host_os in 20621 aix3*) 20622 cat <<\_LT_EOF >> "$cfgfile" 20623# AIX sometimes has problems with the GCC collect2 program. For some 20624# reason, if we set the COLLECT_NAMES environment variable, the problems 20625# vanish in a puff of smoke. 20626if test "X${COLLECT_NAMES+set}" != Xset; then 20627 COLLECT_NAMES= 20628 export COLLECT_NAMES 20629fi 20630_LT_EOF 20631 ;; 20632 esac 20633 20634 20635ltmain="$ac_aux_dir/ltmain.sh" 20636 20637 20638 # We use sed instead of cat because bash on DJGPP gets confused if 20639 # if finds mixed CR/LF and LF-only lines. Since sed operates in 20640 # text mode, it properly converts lines to CR/LF. This bash problem 20641 # is reportedly fixed, but why not run on old versions too? 20642 sed '$q' "$ltmain" >> "$cfgfile" \ 20643 || (rm -f "$cfgfile"; exit 1) 20644 20645 if test x"$xsi_shell" = xyes; then 20646 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\ 20647func_dirname ()\ 20648{\ 20649\ case ${1} in\ 20650\ */*) func_dirname_result="${1%/*}${2}" ;;\ 20651\ * ) func_dirname_result="${3}" ;;\ 20652\ esac\ 20653} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \ 20654 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20655 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20656test 0 -eq $? || _lt_function_replace_fail=: 20657 20658 20659 sed -e '/^func_basename ()$/,/^} # func_basename /c\ 20660func_basename ()\ 20661{\ 20662\ func_basename_result="${1##*/}"\ 20663} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \ 20664 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20665 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20666test 0 -eq $? || _lt_function_replace_fail=: 20667 20668 20669 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\ 20670func_dirname_and_basename ()\ 20671{\ 20672\ case ${1} in\ 20673\ */*) func_dirname_result="${1%/*}${2}" ;;\ 20674\ * ) func_dirname_result="${3}" ;;\ 20675\ esac\ 20676\ func_basename_result="${1##*/}"\ 20677} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \ 20678 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20679 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20680test 0 -eq $? || _lt_function_replace_fail=: 20681 20682 20683 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\ 20684func_stripname ()\ 20685{\ 20686\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\ 20687\ # positional parameters, so assign one to ordinary parameter first.\ 20688\ func_stripname_result=${3}\ 20689\ func_stripname_result=${func_stripname_result#"${1}"}\ 20690\ func_stripname_result=${func_stripname_result%"${2}"}\ 20691} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \ 20692 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20693 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20694test 0 -eq $? || _lt_function_replace_fail=: 20695 20696 20697 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\ 20698func_split_long_opt ()\ 20699{\ 20700\ func_split_long_opt_name=${1%%=*}\ 20701\ func_split_long_opt_arg=${1#*=}\ 20702} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \ 20703 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20704 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20705test 0 -eq $? || _lt_function_replace_fail=: 20706 20707 20708 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\ 20709func_split_short_opt ()\ 20710{\ 20711\ func_split_short_opt_arg=${1#??}\ 20712\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\ 20713} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \ 20714 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20715 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20716test 0 -eq $? || _lt_function_replace_fail=: 20717 20718 20719 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\ 20720func_lo2o ()\ 20721{\ 20722\ case ${1} in\ 20723\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\ 20724\ *) func_lo2o_result=${1} ;;\ 20725\ esac\ 20726} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \ 20727 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20728 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20729test 0 -eq $? || _lt_function_replace_fail=: 20730 20731 20732 sed -e '/^func_xform ()$/,/^} # func_xform /c\ 20733func_xform ()\ 20734{\ 20735 func_xform_result=${1%.*}.lo\ 20736} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \ 20737 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20738 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20739test 0 -eq $? || _lt_function_replace_fail=: 20740 20741 20742 sed -e '/^func_arith ()$/,/^} # func_arith /c\ 20743func_arith ()\ 20744{\ 20745 func_arith_result=$(( $* ))\ 20746} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \ 20747 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20748 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20749test 0 -eq $? || _lt_function_replace_fail=: 20750 20751 20752 sed -e '/^func_len ()$/,/^} # func_len /c\ 20753func_len ()\ 20754{\ 20755 func_len_result=${#1}\ 20756} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \ 20757 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20758 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20759test 0 -eq $? || _lt_function_replace_fail=: 20760 20761fi 20762 20763if test x"$lt_shell_append" = xyes; then 20764 sed -e '/^func_append ()$/,/^} # func_append /c\ 20765func_append ()\ 20766{\ 20767 eval "${1}+=\\${2}"\ 20768} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \ 20769 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20770 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20771test 0 -eq $? || _lt_function_replace_fail=: 20772 20773 20774 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\ 20775func_append_quoted ()\ 20776{\ 20777\ func_quote_for_eval "${2}"\ 20778\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\ 20779} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \ 20780 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20781 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20782test 0 -eq $? || _lt_function_replace_fail=: 20783 20784 20785 # Save a `func_append' function call where possible by direct use of '+=' 20786 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \ 20787 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20788 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20789 test 0 -eq $? || _lt_function_replace_fail=: 20790else 20791 # Save a `func_append' function call even when '+=' is not available 20792 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \ 20793 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20794 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20795 test 0 -eq $? || _lt_function_replace_fail=: 20796fi 20797 20798if test x"$_lt_function_replace_fail" = x":"; then 20799 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5 20800$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;} 20801fi 20802 20803 20804 mv -f "$cfgfile" "$ofile" || 20805 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 20806 chmod +x "$ofile" 20807 20808 ;; 20809 20810 esac 20811done # for ac_tag 20812 20813 20814as_fn_exit 0 20815_ACEOF 20816ac_clean_files=$ac_clean_files_save 20817 20818test $ac_write_fail = 0 || 20819 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 20820 20821 20822# configure is writing to config.log, and then calls config.status. 20823# config.status does its own redirection, appending to config.log. 20824# Unfortunately, on DOS this fails, as config.log is still kept open 20825# by configure, so config.status won't be able to write to it; its 20826# output is simply discarded. So we exec the FD to /dev/null, 20827# effectively closing config.log, so it can be properly (re)opened and 20828# appended to by config.status. When coming back to configure, we 20829# need to make the FD available again. 20830if test "$no_create" != yes; then 20831 ac_cs_success=: 20832 ac_config_status_args= 20833 test "$silent" = yes && 20834 ac_config_status_args="$ac_config_status_args --quiet" 20835 exec 5>/dev/null 20836 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 20837 exec 5>>config.log 20838 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 20839 # would make configure fail if this is the last instruction. 20840 $ac_cs_success || as_fn_exit 1 20841fi 20842if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 20843 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 20844$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 20845fi 20846 20847