configure revision af9a7ee5
1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.68 for libXext 1.3.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='libXext' 633PACKAGE_TARNAME='libXext' 634PACKAGE_VERSION='1.3.2' 635PACKAGE_STRING='libXext 1.3.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 687XEXT_LIBS 688XEXT_CFLAGS 689XEXT_SOREV 690XTMALLOC_ZERO_CFLAGS 691XMALLOC_ZERO_CFLAGS 692MALLOC_ZERO_CFLAGS 693HAVE_STYLESHEETS_FALSE 694HAVE_STYLESHEETS_TRUE 695XSL_STYLESHEET 696STYLESHEET_SRCDIR 697XORG_SGML_PATH 698HAVE_XSLTPROC_FALSE 699HAVE_XSLTPROC_TRUE 700XSLTPROC 701HAVE_FOP_FALSE 702HAVE_FOP_TRUE 703FOP 704HAVE_XMLTO_FALSE 705HAVE_XMLTO_TRUE 706HAVE_XMLTO_TEXT_FALSE 707HAVE_XMLTO_TEXT_TRUE 708XMLTO 709ENABLE_SPECS_FALSE 710ENABLE_SPECS_TRUE 711MAN_SUBSTS 712XORG_MAN_PAGE 713ADMIN_MAN_DIR 714DRIVER_MAN_DIR 715MISC_MAN_DIR 716FILE_MAN_DIR 717LIB_MAN_DIR 718APP_MAN_DIR 719ADMIN_MAN_SUFFIX 720DRIVER_MAN_SUFFIX 721MISC_MAN_SUFFIX 722FILE_MAN_SUFFIX 723LIB_MAN_SUFFIX 724APP_MAN_SUFFIX 725INSTALL_CMD 726PKG_CONFIG 727CHANGELOG_CMD 728STRICT_CFLAGS 729CWARNFLAGS 730BASE_CFLAGS 731CPP 732OTOOL64 733OTOOL 734LIPO 735NMEDIT 736DSYMUTIL 737MANIFEST_TOOL 738RANLIB 739ac_ct_AR 740AR 741DLLTOOL 742OBJDUMP 743LN_S 744NM 745ac_ct_DUMPBIN 746DUMPBIN 747LD 748FGREP 749EGREP 750GREP 751SED 752am__fastdepCC_FALSE 753am__fastdepCC_TRUE 754CCDEPMODE 755am__nodep 756AMDEPBACKSLASH 757AMDEP_FALSE 758AMDEP_TRUE 759am__quote 760am__include 761DEPDIR 762OBJEXT 763EXEEXT 764ac_ct_CC 765CPPFLAGS 766LDFLAGS 767CFLAGS 768CC 769host_os 770host_vendor 771host_cpu 772host 773build_os 774build_vendor 775build_cpu 776build 777LIBTOOL 778AM_BACKSLASH 779AM_DEFAULT_VERBOSITY 780AM_DEFAULT_V 781AM_V 782am__untar 783am__tar 784AMTAR 785am__leading_dot 786SET_MAKE 787AWK 788mkdir_p 789MKDIR_P 790INSTALL_STRIP_PROGRAM 791STRIP 792install_sh 793MAKEINFO 794AUTOHEADER 795AUTOMAKE 796AUTOCONF 797ACLOCAL 798VERSION 799PACKAGE 800CYGPATH_W 801am__isrc 802INSTALL_DATA 803INSTALL_SCRIPT 804INSTALL_PROGRAM 805target_alias 806host_alias 807build_alias 808LIBS 809ECHO_T 810ECHO_N 811ECHO_C 812DEFS 813mandir 814localedir 815libdir 816psdir 817pdfdir 818dvidir 819htmldir 820infodir 821docdir 822oldincludedir 823includedir 824localstatedir 825sharedstatedir 826sysconfdir 827datadir 828datarootdir 829libexecdir 830sbindir 831bindir 832program_transform_name 833prefix 834exec_prefix 835PACKAGE_URL 836PACKAGE_BUGREPORT 837PACKAGE_STRING 838PACKAGE_VERSION 839PACKAGE_TARNAME 840PACKAGE_NAME 841PATH_SEPARATOR 842SHELL' 843ac_subst_files='' 844ac_user_opts=' 845enable_option_checking 846enable_silent_rules 847enable_shared 848enable_static 849with_pic 850enable_fast_install 851enable_dependency_tracking 852with_gnu_ld 853with_sysroot 854enable_libtool_lock 855enable_selective_werror 856enable_strict_compilation 857enable_specs 858with_xmlto 859with_fop 860with_xsltproc 861enable_malloc0returnsnull 862with_lint 863enable_lint_library 864' 865 ac_precious_vars='build_alias 866host_alias 867target_alias 868CC 869CFLAGS 870LDFLAGS 871LIBS 872CPPFLAGS 873CPP 874PKG_CONFIG 875XMLTO 876FOP 877XSLTPROC 878XEXT_CFLAGS 879XEXT_LIBS 880LINT 881LINT_FLAGS' 882 883 884# Initialize some variables set by options. 885ac_init_help= 886ac_init_version=false 887ac_unrecognized_opts= 888ac_unrecognized_sep= 889# The variables have the same names as the options, with 890# dashes changed to underlines. 891cache_file=/dev/null 892exec_prefix=NONE 893no_create= 894no_recursion= 895prefix=NONE 896program_prefix=NONE 897program_suffix=NONE 898program_transform_name=s,x,x, 899silent= 900site= 901srcdir= 902verbose= 903x_includes=NONE 904x_libraries=NONE 905 906# Installation directory options. 907# These are left unexpanded so users can "make install exec_prefix=/foo" 908# and all the variables that are supposed to be based on exec_prefix 909# by default will actually change. 910# Use braces instead of parens because sh, perl, etc. also accept them. 911# (The list follows the same order as the GNU Coding Standards.) 912bindir='${exec_prefix}/bin' 913sbindir='${exec_prefix}/sbin' 914libexecdir='${exec_prefix}/libexec' 915datarootdir='${prefix}/share' 916datadir='${datarootdir}' 917sysconfdir='${prefix}/etc' 918sharedstatedir='${prefix}/com' 919localstatedir='${prefix}/var' 920includedir='${prefix}/include' 921oldincludedir='/usr/include' 922docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 923infodir='${datarootdir}/info' 924htmldir='${docdir}' 925dvidir='${docdir}' 926pdfdir='${docdir}' 927psdir='${docdir}' 928libdir='${exec_prefix}/lib' 929localedir='${datarootdir}/locale' 930mandir='${datarootdir}/man' 931 932ac_prev= 933ac_dashdash= 934for ac_option 935do 936 # If the previous option needs an argument, assign it. 937 if test -n "$ac_prev"; then 938 eval $ac_prev=\$ac_option 939 ac_prev= 940 continue 941 fi 942 943 case $ac_option in 944 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 945 *=) ac_optarg= ;; 946 *) ac_optarg=yes ;; 947 esac 948 949 # Accept the important Cygnus configure options, so we can diagnose typos. 950 951 case $ac_dashdash$ac_option in 952 --) 953 ac_dashdash=yes ;; 954 955 -bindir | --bindir | --bindi | --bind | --bin | --bi) 956 ac_prev=bindir ;; 957 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 958 bindir=$ac_optarg ;; 959 960 -build | --build | --buil | --bui | --bu) 961 ac_prev=build_alias ;; 962 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 963 build_alias=$ac_optarg ;; 964 965 -cache-file | --cache-file | --cache-fil | --cache-fi \ 966 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 967 ac_prev=cache_file ;; 968 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 969 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 970 cache_file=$ac_optarg ;; 971 972 --config-cache | -C) 973 cache_file=config.cache ;; 974 975 -datadir | --datadir | --datadi | --datad) 976 ac_prev=datadir ;; 977 -datadir=* | --datadir=* | --datadi=* | --datad=*) 978 datadir=$ac_optarg ;; 979 980 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 981 | --dataroo | --dataro | --datar) 982 ac_prev=datarootdir ;; 983 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 984 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 985 datarootdir=$ac_optarg ;; 986 987 -disable-* | --disable-*) 988 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 989 # Reject names that are not valid shell variable names. 990 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 991 as_fn_error $? "invalid feature name: $ac_useropt" 992 ac_useropt_orig=$ac_useropt 993 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 994 case $ac_user_opts in 995 *" 996"enable_$ac_useropt" 997"*) ;; 998 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 999 ac_unrecognized_sep=', ';; 1000 esac 1001 eval enable_$ac_useropt=no ;; 1002 1003 -docdir | --docdir | --docdi | --doc | --do) 1004 ac_prev=docdir ;; 1005 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1006 docdir=$ac_optarg ;; 1007 1008 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1009 ac_prev=dvidir ;; 1010 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1011 dvidir=$ac_optarg ;; 1012 1013 -enable-* | --enable-*) 1014 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1015 # Reject names that are not valid shell variable names. 1016 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1017 as_fn_error $? "invalid feature name: $ac_useropt" 1018 ac_useropt_orig=$ac_useropt 1019 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1020 case $ac_user_opts in 1021 *" 1022"enable_$ac_useropt" 1023"*) ;; 1024 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1025 ac_unrecognized_sep=', ';; 1026 esac 1027 eval enable_$ac_useropt=\$ac_optarg ;; 1028 1029 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1030 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1031 | --exec | --exe | --ex) 1032 ac_prev=exec_prefix ;; 1033 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1034 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1035 | --exec=* | --exe=* | --ex=*) 1036 exec_prefix=$ac_optarg ;; 1037 1038 -gas | --gas | --ga | --g) 1039 # Obsolete; use --with-gas. 1040 with_gas=yes ;; 1041 1042 -help | --help | --hel | --he | -h) 1043 ac_init_help=long ;; 1044 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1045 ac_init_help=recursive ;; 1046 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1047 ac_init_help=short ;; 1048 1049 -host | --host | --hos | --ho) 1050 ac_prev=host_alias ;; 1051 -host=* | --host=* | --hos=* | --ho=*) 1052 host_alias=$ac_optarg ;; 1053 1054 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1055 ac_prev=htmldir ;; 1056 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1057 | --ht=*) 1058 htmldir=$ac_optarg ;; 1059 1060 -includedir | --includedir | --includedi | --included | --include \ 1061 | --includ | --inclu | --incl | --inc) 1062 ac_prev=includedir ;; 1063 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1064 | --includ=* | --inclu=* | --incl=* | --inc=*) 1065 includedir=$ac_optarg ;; 1066 1067 -infodir | --infodir | --infodi | --infod | --info | --inf) 1068 ac_prev=infodir ;; 1069 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1070 infodir=$ac_optarg ;; 1071 1072 -libdir | --libdir | --libdi | --libd) 1073 ac_prev=libdir ;; 1074 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1075 libdir=$ac_optarg ;; 1076 1077 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1078 | --libexe | --libex | --libe) 1079 ac_prev=libexecdir ;; 1080 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1081 | --libexe=* | --libex=* | --libe=*) 1082 libexecdir=$ac_optarg ;; 1083 1084 -localedir | --localedir | --localedi | --localed | --locale) 1085 ac_prev=localedir ;; 1086 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1087 localedir=$ac_optarg ;; 1088 1089 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1090 | --localstate | --localstat | --localsta | --localst | --locals) 1091 ac_prev=localstatedir ;; 1092 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1093 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1094 localstatedir=$ac_optarg ;; 1095 1096 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1097 ac_prev=mandir ;; 1098 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1099 mandir=$ac_optarg ;; 1100 1101 -nfp | --nfp | --nf) 1102 # Obsolete; use --without-fp. 1103 with_fp=no ;; 1104 1105 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1106 | --no-cr | --no-c | -n) 1107 no_create=yes ;; 1108 1109 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1110 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1111 no_recursion=yes ;; 1112 1113 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1114 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1115 | --oldin | --oldi | --old | --ol | --o) 1116 ac_prev=oldincludedir ;; 1117 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1118 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1119 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1120 oldincludedir=$ac_optarg ;; 1121 1122 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1123 ac_prev=prefix ;; 1124 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1125 prefix=$ac_optarg ;; 1126 1127 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1128 | --program-pre | --program-pr | --program-p) 1129 ac_prev=program_prefix ;; 1130 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1131 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1132 program_prefix=$ac_optarg ;; 1133 1134 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1135 | --program-suf | --program-su | --program-s) 1136 ac_prev=program_suffix ;; 1137 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1138 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1139 program_suffix=$ac_optarg ;; 1140 1141 -program-transform-name | --program-transform-name \ 1142 | --program-transform-nam | --program-transform-na \ 1143 | --program-transform-n | --program-transform- \ 1144 | --program-transform | --program-transfor \ 1145 | --program-transfo | --program-transf \ 1146 | --program-trans | --program-tran \ 1147 | --progr-tra | --program-tr | --program-t) 1148 ac_prev=program_transform_name ;; 1149 -program-transform-name=* | --program-transform-name=* \ 1150 | --program-transform-nam=* | --program-transform-na=* \ 1151 | --program-transform-n=* | --program-transform-=* \ 1152 | --program-transform=* | --program-transfor=* \ 1153 | --program-transfo=* | --program-transf=* \ 1154 | --program-trans=* | --program-tran=* \ 1155 | --progr-tra=* | --program-tr=* | --program-t=*) 1156 program_transform_name=$ac_optarg ;; 1157 1158 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1159 ac_prev=pdfdir ;; 1160 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1161 pdfdir=$ac_optarg ;; 1162 1163 -psdir | --psdir | --psdi | --psd | --ps) 1164 ac_prev=psdir ;; 1165 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1166 psdir=$ac_optarg ;; 1167 1168 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1169 | -silent | --silent | --silen | --sile | --sil) 1170 silent=yes ;; 1171 1172 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1173 ac_prev=sbindir ;; 1174 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1175 | --sbi=* | --sb=*) 1176 sbindir=$ac_optarg ;; 1177 1178 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1179 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1180 | --sharedst | --shareds | --shared | --share | --shar \ 1181 | --sha | --sh) 1182 ac_prev=sharedstatedir ;; 1183 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1184 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1185 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1186 | --sha=* | --sh=*) 1187 sharedstatedir=$ac_optarg ;; 1188 1189 -site | --site | --sit) 1190 ac_prev=site ;; 1191 -site=* | --site=* | --sit=*) 1192 site=$ac_optarg ;; 1193 1194 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1195 ac_prev=srcdir ;; 1196 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1197 srcdir=$ac_optarg ;; 1198 1199 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1200 | --syscon | --sysco | --sysc | --sys | --sy) 1201 ac_prev=sysconfdir ;; 1202 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1203 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1204 sysconfdir=$ac_optarg ;; 1205 1206 -target | --target | --targe | --targ | --tar | --ta | --t) 1207 ac_prev=target_alias ;; 1208 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1209 target_alias=$ac_optarg ;; 1210 1211 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1212 verbose=yes ;; 1213 1214 -version | --version | --versio | --versi | --vers | -V) 1215 ac_init_version=: ;; 1216 1217 -with-* | --with-*) 1218 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1219 # Reject names that are not valid shell variable names. 1220 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1221 as_fn_error $? "invalid package name: $ac_useropt" 1222 ac_useropt_orig=$ac_useropt 1223 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1224 case $ac_user_opts in 1225 *" 1226"with_$ac_useropt" 1227"*) ;; 1228 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1229 ac_unrecognized_sep=', ';; 1230 esac 1231 eval with_$ac_useropt=\$ac_optarg ;; 1232 1233 -without-* | --without-*) 1234 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1235 # Reject names that are not valid shell variable names. 1236 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1237 as_fn_error $? "invalid package name: $ac_useropt" 1238 ac_useropt_orig=$ac_useropt 1239 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1240 case $ac_user_opts in 1241 *" 1242"with_$ac_useropt" 1243"*) ;; 1244 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1245 ac_unrecognized_sep=', ';; 1246 esac 1247 eval with_$ac_useropt=no ;; 1248 1249 --x) 1250 # Obsolete; use --with-x. 1251 with_x=yes ;; 1252 1253 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1254 | --x-incl | --x-inc | --x-in | --x-i) 1255 ac_prev=x_includes ;; 1256 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1257 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1258 x_includes=$ac_optarg ;; 1259 1260 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1261 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1262 ac_prev=x_libraries ;; 1263 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1264 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1265 x_libraries=$ac_optarg ;; 1266 1267 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1268Try \`$0 --help' for more information" 1269 ;; 1270 1271 *=*) 1272 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1273 # Reject names that are not valid shell variable names. 1274 case $ac_envvar in #( 1275 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1276 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1277 esac 1278 eval $ac_envvar=\$ac_optarg 1279 export $ac_envvar ;; 1280 1281 *) 1282 # FIXME: should be removed in autoconf 3.0. 1283 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1284 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1285 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1286 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1287 ;; 1288 1289 esac 1290done 1291 1292if test -n "$ac_prev"; then 1293 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1294 as_fn_error $? "missing argument to $ac_option" 1295fi 1296 1297if test -n "$ac_unrecognized_opts"; then 1298 case $enable_option_checking in 1299 no) ;; 1300 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1301 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1302 esac 1303fi 1304 1305# Check all directory arguments for consistency. 1306for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1307 datadir sysconfdir sharedstatedir localstatedir includedir \ 1308 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1309 libdir localedir mandir 1310do 1311 eval ac_val=\$$ac_var 1312 # Remove trailing slashes. 1313 case $ac_val in 1314 */ ) 1315 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1316 eval $ac_var=\$ac_val;; 1317 esac 1318 # Be sure to have absolute directory names. 1319 case $ac_val in 1320 [\\/$]* | ?:[\\/]* ) continue;; 1321 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1322 esac 1323 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1324done 1325 1326# There might be people who depend on the old broken behavior: `$host' 1327# used to hold the argument of --host etc. 1328# FIXME: To remove some day. 1329build=$build_alias 1330host=$host_alias 1331target=$target_alias 1332 1333# FIXME: To remove some day. 1334if test "x$host_alias" != x; then 1335 if test "x$build_alias" = x; then 1336 cross_compiling=maybe 1337 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host. 1338 If a cross compiler is detected then cross compile mode will be used" >&2 1339 elif test "x$build_alias" != "x$host_alias"; then 1340 cross_compiling=yes 1341 fi 1342fi 1343 1344ac_tool_prefix= 1345test -n "$host_alias" && ac_tool_prefix=$host_alias- 1346 1347test "$silent" = yes && exec 6>/dev/null 1348 1349 1350ac_pwd=`pwd` && test -n "$ac_pwd" && 1351ac_ls_di=`ls -di .` && 1352ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1353 as_fn_error $? "working directory cannot be determined" 1354test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1355 as_fn_error $? "pwd does not report name of working directory" 1356 1357 1358# Find the source files, if location was not specified. 1359if test -z "$srcdir"; then 1360 ac_srcdir_defaulted=yes 1361 # Try the directory containing this script, then the parent directory. 1362 ac_confdir=`$as_dirname -- "$as_myself" || 1363$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1364 X"$as_myself" : 'X\(//\)[^/]' \| \ 1365 X"$as_myself" : 'X\(//\)$' \| \ 1366 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1367$as_echo X"$as_myself" | 1368 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1369 s//\1/ 1370 q 1371 } 1372 /^X\(\/\/\)[^/].*/{ 1373 s//\1/ 1374 q 1375 } 1376 /^X\(\/\/\)$/{ 1377 s//\1/ 1378 q 1379 } 1380 /^X\(\/\).*/{ 1381 s//\1/ 1382 q 1383 } 1384 s/.*/./; q'` 1385 srcdir=$ac_confdir 1386 if test ! -r "$srcdir/$ac_unique_file"; then 1387 srcdir=.. 1388 fi 1389else 1390 ac_srcdir_defaulted=no 1391fi 1392if test ! -r "$srcdir/$ac_unique_file"; then 1393 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1394 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1395fi 1396ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1397ac_abs_confdir=`( 1398 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1399 pwd)` 1400# When building in place, set srcdir=. 1401if test "$ac_abs_confdir" = "$ac_pwd"; then 1402 srcdir=. 1403fi 1404# Remove unnecessary trailing slashes from srcdir. 1405# Double slashes in file names in object file debugging info 1406# mess up M-x gdb in Emacs. 1407case $srcdir in 1408*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1409esac 1410for ac_var in $ac_precious_vars; do 1411 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1412 eval ac_env_${ac_var}_value=\$${ac_var} 1413 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1414 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1415done 1416 1417# 1418# Report the --help message. 1419# 1420if test "$ac_init_help" = "long"; then 1421 # Omit some internal or obsolete options to make the list less imposing. 1422 # This message is too long to be a string in the A/UX 3.1 sh. 1423 cat <<_ACEOF 1424\`configure' configures libXext 1.3.2 to adapt to many kinds of systems. 1425 1426Usage: $0 [OPTION]... [VAR=VALUE]... 1427 1428To assign environment variables (e.g., CC, CFLAGS...), specify them as 1429VAR=VALUE. See below for descriptions of some of the useful variables. 1430 1431Defaults for the options are specified in brackets. 1432 1433Configuration: 1434 -h, --help display this help and exit 1435 --help=short display options specific to this package 1436 --help=recursive display the short help of all the included packages 1437 -V, --version display version information and exit 1438 -q, --quiet, --silent do not print \`checking ...' messages 1439 --cache-file=FILE cache test results in FILE [disabled] 1440 -C, --config-cache alias for \`--cache-file=config.cache' 1441 -n, --no-create do not create output files 1442 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1443 1444Installation directories: 1445 --prefix=PREFIX install architecture-independent files in PREFIX 1446 [$ac_default_prefix] 1447 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1448 [PREFIX] 1449 1450By default, \`make install' will install all the files in 1451\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1452an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1453for instance \`--prefix=\$HOME'. 1454 1455For better control, use the options below. 1456 1457Fine tuning of the installation directories: 1458 --bindir=DIR user executables [EPREFIX/bin] 1459 --sbindir=DIR system admin executables [EPREFIX/sbin] 1460 --libexecdir=DIR program executables [EPREFIX/libexec] 1461 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1462 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1463 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1464 --libdir=DIR object code libraries [EPREFIX/lib] 1465 --includedir=DIR C header files [PREFIX/include] 1466 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1467 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1468 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1469 --infodir=DIR info documentation [DATAROOTDIR/info] 1470 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1471 --mandir=DIR man documentation [DATAROOTDIR/man] 1472 --docdir=DIR documentation root [DATAROOTDIR/doc/libXext] 1473 --htmldir=DIR html documentation [DOCDIR] 1474 --dvidir=DIR dvi documentation [DOCDIR] 1475 --pdfdir=DIR pdf documentation [DOCDIR] 1476 --psdir=DIR ps documentation [DOCDIR] 1477_ACEOF 1478 1479 cat <<\_ACEOF 1480 1481Program names: 1482 --program-prefix=PREFIX prepend PREFIX to installed program names 1483 --program-suffix=SUFFIX append SUFFIX to installed program names 1484 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1485 1486System types: 1487 --build=BUILD configure for building on BUILD [guessed] 1488 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1489_ACEOF 1490fi 1491 1492if test -n "$ac_init_help"; then 1493 case $ac_init_help in 1494 short | recursive ) echo "Configuration of libXext 1.3.2:";; 1495 esac 1496 cat <<\_ACEOF 1497 1498Optional Features: 1499 --disable-option-checking ignore unrecognized --enable/--with options 1500 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1501 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1502 --enable-silent-rules less verbose build output (undo: "make V=1") 1503 --disable-silent-rules verbose build output (undo: "make V=0") 1504 --enable-shared[=PKGS] build shared libraries [default=yes] 1505 --enable-static[=PKGS] build static libraries [default=yes] 1506 --enable-fast-install[=PKGS] 1507 optimize for fast installation [default=yes] 1508 --enable-dependency-tracking 1509 do not reject slow dependency extractors 1510 --disable-dependency-tracking 1511 speeds up one-time build 1512 --disable-libtool-lock avoid locking (might break parallel builds) 1513 --disable-selective-werror 1514 Turn off selective compiler errors. (default: 1515 enabled) 1516 --enable-strict-compilation 1517 Enable all warnings from compiler and make them 1518 errors (default: disabled) 1519 --enable-specs Enable building the specs (default: yes) 1520 --enable-malloc0returnsnull 1521 malloc(0) returns NULL (default: auto) 1522 --enable-lint-library Create lint library (default: disabled) 1523 1524Optional Packages: 1525 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1526 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1527 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1528 both] 1529 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1530 --with-sysroot=DIR Search for dependent libraries within DIR 1531 (or the compiler's sysroot if not specified). 1532 --with-xmlto Use xmlto to regenerate documentation (default: 1533 auto) 1534 --with-fop Use fop to regenerate documentation (default: auto) 1535 --with-xsltproc Use xsltproc for the transformation of XML documents 1536 (default: auto) 1537 --with-lint Use a lint-style source code checker (default: 1538 disabled) 1539 1540Some influential environment variables: 1541 CC C compiler command 1542 CFLAGS C compiler flags 1543 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1544 nonstandard directory <lib dir> 1545 LIBS libraries to pass to the linker, e.g. -l<library> 1546 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1547 you have headers in a nonstandard directory <include dir> 1548 CPP C preprocessor 1549 PKG_CONFIG path to pkg-config utility 1550 XMLTO Path to xmlto command 1551 FOP Path to fop command 1552 XSLTPROC Path to xsltproc command 1553 XEXT_CFLAGS C compiler flags for XEXT, overriding pkg-config 1554 XEXT_LIBS linker flags for XEXT, overriding pkg-config 1555 LINT Path to a lint-style command 1556 LINT_FLAGS Flags for the lint-style command 1557 1558Use these variables to override the choices made by `configure' or to help 1559it to find libraries and programs with nonstandard names/locations. 1560 1561Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>. 1562_ACEOF 1563ac_status=$? 1564fi 1565 1566if test "$ac_init_help" = "recursive"; then 1567 # If there are subdirs, report their specific --help. 1568 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1569 test -d "$ac_dir" || 1570 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1571 continue 1572 ac_builddir=. 1573 1574case "$ac_dir" in 1575.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1576*) 1577 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1578 # A ".." for each directory in $ac_dir_suffix. 1579 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1580 case $ac_top_builddir_sub in 1581 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1582 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1583 esac ;; 1584esac 1585ac_abs_top_builddir=$ac_pwd 1586ac_abs_builddir=$ac_pwd$ac_dir_suffix 1587# for backward compatibility: 1588ac_top_builddir=$ac_top_build_prefix 1589 1590case $srcdir in 1591 .) # We are building in place. 1592 ac_srcdir=. 1593 ac_top_srcdir=$ac_top_builddir_sub 1594 ac_abs_top_srcdir=$ac_pwd ;; 1595 [\\/]* | ?:[\\/]* ) # Absolute name. 1596 ac_srcdir=$srcdir$ac_dir_suffix; 1597 ac_top_srcdir=$srcdir 1598 ac_abs_top_srcdir=$srcdir ;; 1599 *) # Relative name. 1600 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1601 ac_top_srcdir=$ac_top_build_prefix$srcdir 1602 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1603esac 1604ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1605 1606 cd "$ac_dir" || { ac_status=$?; continue; } 1607 # Check for guested configure. 1608 if test -f "$ac_srcdir/configure.gnu"; then 1609 echo && 1610 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1611 elif test -f "$ac_srcdir/configure"; then 1612 echo && 1613 $SHELL "$ac_srcdir/configure" --help=recursive 1614 else 1615 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1616 fi || ac_status=$? 1617 cd "$ac_pwd" || { ac_status=$?; break; } 1618 done 1619fi 1620 1621test -n "$ac_init_help" && exit $ac_status 1622if $ac_init_version; then 1623 cat <<\_ACEOF 1624libXext configure 1.3.2 1625generated by GNU Autoconf 2.68 1626 1627Copyright (C) 2010 Free Software Foundation, Inc. 1628This configure script is free software; the Free Software Foundation 1629gives unlimited permission to copy, distribute and modify it. 1630_ACEOF 1631 exit 1632fi 1633 1634## ------------------------ ## 1635## Autoconf initialization. ## 1636## ------------------------ ## 1637 1638# ac_fn_c_try_compile LINENO 1639# -------------------------- 1640# Try to compile conftest.$ac_ext, and return whether this succeeded. 1641ac_fn_c_try_compile () 1642{ 1643 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1644 rm -f conftest.$ac_objext 1645 if { { ac_try="$ac_compile" 1646case "(($ac_try" in 1647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1648 *) ac_try_echo=$ac_try;; 1649esac 1650eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1651$as_echo "$ac_try_echo"; } >&5 1652 (eval "$ac_compile") 2>conftest.err 1653 ac_status=$? 1654 if test -s conftest.err; then 1655 grep -v '^ *+' conftest.err >conftest.er1 1656 cat conftest.er1 >&5 1657 mv -f conftest.er1 conftest.err 1658 fi 1659 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1660 test $ac_status = 0; } && { 1661 test -z "$ac_c_werror_flag" || 1662 test ! -s conftest.err 1663 } && test -s conftest.$ac_objext; then : 1664 ac_retval=0 1665else 1666 $as_echo "$as_me: failed program was:" >&5 1667sed 's/^/| /' conftest.$ac_ext >&5 1668 1669 ac_retval=1 1670fi 1671 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1672 as_fn_set_status $ac_retval 1673 1674} # ac_fn_c_try_compile 1675 1676# ac_fn_c_try_link LINENO 1677# ----------------------- 1678# Try to link conftest.$ac_ext, and return whether this succeeded. 1679ac_fn_c_try_link () 1680{ 1681 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1682 rm -f conftest.$ac_objext conftest$ac_exeext 1683 if { { ac_try="$ac_link" 1684case "(($ac_try" in 1685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1686 *) ac_try_echo=$ac_try;; 1687esac 1688eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1689$as_echo "$ac_try_echo"; } >&5 1690 (eval "$ac_link") 2>conftest.err 1691 ac_status=$? 1692 if test -s conftest.err; then 1693 grep -v '^ *+' conftest.err >conftest.er1 1694 cat conftest.er1 >&5 1695 mv -f conftest.er1 conftest.err 1696 fi 1697 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1698 test $ac_status = 0; } && { 1699 test -z "$ac_c_werror_flag" || 1700 test ! -s conftest.err 1701 } && test -s conftest$ac_exeext && { 1702 test "$cross_compiling" = yes || 1703 $as_test_x conftest$ac_exeext 1704 }; then : 1705 ac_retval=0 1706else 1707 $as_echo "$as_me: failed program was:" >&5 1708sed 's/^/| /' conftest.$ac_ext >&5 1709 1710 ac_retval=1 1711fi 1712 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1713 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1714 # interfere with the next link command; also delete a directory that is 1715 # left behind by Apple's compiler. We do this before executing the actions. 1716 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1717 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1718 as_fn_set_status $ac_retval 1719 1720} # ac_fn_c_try_link 1721 1722# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1723# ------------------------------------------------------- 1724# Tests whether HEADER exists and can be compiled using the include files in 1725# INCLUDES, setting the cache variable VAR accordingly. 1726ac_fn_c_check_header_compile () 1727{ 1728 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1730$as_echo_n "checking for $2... " >&6; } 1731if eval \${$3+:} false; then : 1732 $as_echo_n "(cached) " >&6 1733else 1734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1735/* end confdefs.h. */ 1736$4 1737#include <$2> 1738_ACEOF 1739if ac_fn_c_try_compile "$LINENO"; then : 1740 eval "$3=yes" 1741else 1742 eval "$3=no" 1743fi 1744rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1745fi 1746eval ac_res=\$$3 1747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1748$as_echo "$ac_res" >&6; } 1749 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1750 1751} # ac_fn_c_check_header_compile 1752 1753# ac_fn_c_try_cpp LINENO 1754# ---------------------- 1755# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1756ac_fn_c_try_cpp () 1757{ 1758 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1759 if { { ac_try="$ac_cpp conftest.$ac_ext" 1760case "(($ac_try" in 1761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1762 *) ac_try_echo=$ac_try;; 1763esac 1764eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1765$as_echo "$ac_try_echo"; } >&5 1766 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1767 ac_status=$? 1768 if test -s conftest.err; then 1769 grep -v '^ *+' conftest.err >conftest.er1 1770 cat conftest.er1 >&5 1771 mv -f conftest.er1 conftest.err 1772 fi 1773 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1774 test $ac_status = 0; } > conftest.i && { 1775 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1776 test ! -s conftest.err 1777 }; then : 1778 ac_retval=0 1779else 1780 $as_echo "$as_me: failed program was:" >&5 1781sed 's/^/| /' conftest.$ac_ext >&5 1782 1783 ac_retval=1 1784fi 1785 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1786 as_fn_set_status $ac_retval 1787 1788} # ac_fn_c_try_cpp 1789 1790# ac_fn_c_try_run LINENO 1791# ---------------------- 1792# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1793# that executables *can* be run. 1794ac_fn_c_try_run () 1795{ 1796 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1797 if { { ac_try="$ac_link" 1798case "(($ac_try" in 1799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1800 *) ac_try_echo=$ac_try;; 1801esac 1802eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1803$as_echo "$ac_try_echo"; } >&5 1804 (eval "$ac_link") 2>&5 1805 ac_status=$? 1806 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1807 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1808 { { case "(($ac_try" in 1809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1810 *) ac_try_echo=$ac_try;; 1811esac 1812eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1813$as_echo "$ac_try_echo"; } >&5 1814 (eval "$ac_try") 2>&5 1815 ac_status=$? 1816 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1817 test $ac_status = 0; }; }; then : 1818 ac_retval=0 1819else 1820 $as_echo "$as_me: program exited with status $ac_status" >&5 1821 $as_echo "$as_me: failed program was:" >&5 1822sed 's/^/| /' conftest.$ac_ext >&5 1823 1824 ac_retval=$ac_status 1825fi 1826 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1827 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1828 as_fn_set_status $ac_retval 1829 1830} # ac_fn_c_try_run 1831 1832# ac_fn_c_check_func LINENO FUNC VAR 1833# ---------------------------------- 1834# Tests whether FUNC exists, setting the cache variable VAR accordingly 1835ac_fn_c_check_func () 1836{ 1837 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1839$as_echo_n "checking for $2... " >&6; } 1840if eval \${$3+:} false; then : 1841 $as_echo_n "(cached) " >&6 1842else 1843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1844/* end confdefs.h. */ 1845/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1846 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1847#define $2 innocuous_$2 1848 1849/* System header to define __stub macros and hopefully few prototypes, 1850 which can conflict with char $2 (); below. 1851 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1852 <limits.h> exists even on freestanding compilers. */ 1853 1854#ifdef __STDC__ 1855# include <limits.h> 1856#else 1857# include <assert.h> 1858#endif 1859 1860#undef $2 1861 1862/* Override any GCC internal prototype to avoid an error. 1863 Use char because int might match the return type of a GCC 1864 builtin and then its argument prototype would still apply. */ 1865#ifdef __cplusplus 1866extern "C" 1867#endif 1868char $2 (); 1869/* The GNU C library defines this for functions which it implements 1870 to always fail with ENOSYS. Some functions are actually named 1871 something starting with __ and the normal name is an alias. */ 1872#if defined __stub_$2 || defined __stub___$2 1873choke me 1874#endif 1875 1876int 1877main () 1878{ 1879return $2 (); 1880 ; 1881 return 0; 1882} 1883_ACEOF 1884if ac_fn_c_try_link "$LINENO"; then : 1885 eval "$3=yes" 1886else 1887 eval "$3=no" 1888fi 1889rm -f core conftest.err conftest.$ac_objext \ 1890 conftest$ac_exeext conftest.$ac_ext 1891fi 1892eval ac_res=\$$3 1893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1894$as_echo "$ac_res" >&6; } 1895 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1896 1897} # ac_fn_c_check_func 1898 1899# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES 1900# --------------------------------------------- 1901# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 1902# accordingly. 1903ac_fn_c_check_decl () 1904{ 1905 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1906 as_decl_name=`echo $2|sed 's/ *(.*//'` 1907 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 1908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 1909$as_echo_n "checking whether $as_decl_name is declared... " >&6; } 1910if eval \${$3+:} false; then : 1911 $as_echo_n "(cached) " >&6 1912else 1913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1914/* end confdefs.h. */ 1915$4 1916int 1917main () 1918{ 1919#ifndef $as_decl_name 1920#ifdef __cplusplus 1921 (void) $as_decl_use; 1922#else 1923 (void) $as_decl_name; 1924#endif 1925#endif 1926 1927 ; 1928 return 0; 1929} 1930_ACEOF 1931if ac_fn_c_try_compile "$LINENO"; then : 1932 eval "$3=yes" 1933else 1934 eval "$3=no" 1935fi 1936rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1937fi 1938eval ac_res=\$$3 1939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1940$as_echo "$ac_res" >&6; } 1941 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1942 1943} # ac_fn_c_check_decl 1944cat >config.log <<_ACEOF 1945This file contains any messages produced by compilers while 1946running configure, to aid debugging if configure makes a mistake. 1947 1948It was created by libXext $as_me 1.3.2, which was 1949generated by GNU Autoconf 2.68. Invocation command line was 1950 1951 $ $0 $@ 1952 1953_ACEOF 1954exec 5>>config.log 1955{ 1956cat <<_ASUNAME 1957## --------- ## 1958## Platform. ## 1959## --------- ## 1960 1961hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1962uname -m = `(uname -m) 2>/dev/null || echo unknown` 1963uname -r = `(uname -r) 2>/dev/null || echo unknown` 1964uname -s = `(uname -s) 2>/dev/null || echo unknown` 1965uname -v = `(uname -v) 2>/dev/null || echo unknown` 1966 1967/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1968/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1969 1970/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1971/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1972/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1973/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1974/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1975/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1976/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1977 1978_ASUNAME 1979 1980as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1981for as_dir in $PATH 1982do 1983 IFS=$as_save_IFS 1984 test -z "$as_dir" && as_dir=. 1985 $as_echo "PATH: $as_dir" 1986 done 1987IFS=$as_save_IFS 1988 1989} >&5 1990 1991cat >&5 <<_ACEOF 1992 1993 1994## ----------- ## 1995## Core tests. ## 1996## ----------- ## 1997 1998_ACEOF 1999 2000 2001# Keep a trace of the command line. 2002# Strip out --no-create and --no-recursion so they do not pile up. 2003# Strip out --silent because we don't want to record it for future runs. 2004# Also quote any args containing shell meta-characters. 2005# Make two passes to allow for proper duplicate-argument suppression. 2006ac_configure_args= 2007ac_configure_args0= 2008ac_configure_args1= 2009ac_must_keep_next=false 2010for ac_pass in 1 2 2011do 2012 for ac_arg 2013 do 2014 case $ac_arg in 2015 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2016 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2017 | -silent | --silent | --silen | --sile | --sil) 2018 continue ;; 2019 *\'*) 2020 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2021 esac 2022 case $ac_pass in 2023 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2024 2) 2025 as_fn_append ac_configure_args1 " '$ac_arg'" 2026 if test $ac_must_keep_next = true; then 2027 ac_must_keep_next=false # Got value, back to normal. 2028 else 2029 case $ac_arg in 2030 *=* | --config-cache | -C | -disable-* | --disable-* \ 2031 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2032 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2033 | -with-* | --with-* | -without-* | --without-* | --x) 2034 case "$ac_configure_args0 " in 2035 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2036 esac 2037 ;; 2038 -* ) ac_must_keep_next=true ;; 2039 esac 2040 fi 2041 as_fn_append ac_configure_args " '$ac_arg'" 2042 ;; 2043 esac 2044 done 2045done 2046{ ac_configure_args0=; unset ac_configure_args0;} 2047{ ac_configure_args1=; unset ac_configure_args1;} 2048 2049# When interrupted or exit'd, cleanup temporary files, and complete 2050# config.log. We remove comments because anyway the quotes in there 2051# would cause problems or look ugly. 2052# WARNING: Use '\'' to represent an apostrophe within the trap. 2053# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2054trap 'exit_status=$? 2055 # Save into config.log some information that might help in debugging. 2056 { 2057 echo 2058 2059 $as_echo "## ---------------- ## 2060## Cache variables. ## 2061## ---------------- ##" 2062 echo 2063 # The following way of writing the cache mishandles newlines in values, 2064( 2065 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2066 eval ac_val=\$$ac_var 2067 case $ac_val in #( 2068 *${as_nl}*) 2069 case $ac_var in #( 2070 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2071$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2072 esac 2073 case $ac_var in #( 2074 _ | IFS | as_nl) ;; #( 2075 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2076 *) { eval $ac_var=; unset $ac_var;} ;; 2077 esac ;; 2078 esac 2079 done 2080 (set) 2>&1 | 2081 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2082 *${as_nl}ac_space=\ *) 2083 sed -n \ 2084 "s/'\''/'\''\\\\'\'''\''/g; 2085 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2086 ;; #( 2087 *) 2088 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2089 ;; 2090 esac | 2091 sort 2092) 2093 echo 2094 2095 $as_echo "## ----------------- ## 2096## Output variables. ## 2097## ----------------- ##" 2098 echo 2099 for ac_var in $ac_subst_vars 2100 do 2101 eval ac_val=\$$ac_var 2102 case $ac_val in 2103 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2104 esac 2105 $as_echo "$ac_var='\''$ac_val'\''" 2106 done | sort 2107 echo 2108 2109 if test -n "$ac_subst_files"; then 2110 $as_echo "## ------------------- ## 2111## File substitutions. ## 2112## ------------------- ##" 2113 echo 2114 for ac_var in $ac_subst_files 2115 do 2116 eval ac_val=\$$ac_var 2117 case $ac_val in 2118 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2119 esac 2120 $as_echo "$ac_var='\''$ac_val'\''" 2121 done | sort 2122 echo 2123 fi 2124 2125 if test -s confdefs.h; then 2126 $as_echo "## ----------- ## 2127## confdefs.h. ## 2128## ----------- ##" 2129 echo 2130 cat confdefs.h 2131 echo 2132 fi 2133 test "$ac_signal" != 0 && 2134 $as_echo "$as_me: caught signal $ac_signal" 2135 $as_echo "$as_me: exit $exit_status" 2136 } >&5 2137 rm -f core *.core core.conftest.* && 2138 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2139 exit $exit_status 2140' 0 2141for ac_signal in 1 2 13 15; do 2142 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2143done 2144ac_signal=0 2145 2146# confdefs.h avoids OS command line length limits that DEFS can exceed. 2147rm -f -r conftest* confdefs.h 2148 2149$as_echo "/* confdefs.h */" > confdefs.h 2150 2151# Predefined preprocessor variables. 2152 2153cat >>confdefs.h <<_ACEOF 2154#define PACKAGE_NAME "$PACKAGE_NAME" 2155_ACEOF 2156 2157cat >>confdefs.h <<_ACEOF 2158#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2159_ACEOF 2160 2161cat >>confdefs.h <<_ACEOF 2162#define PACKAGE_VERSION "$PACKAGE_VERSION" 2163_ACEOF 2164 2165cat >>confdefs.h <<_ACEOF 2166#define PACKAGE_STRING "$PACKAGE_STRING" 2167_ACEOF 2168 2169cat >>confdefs.h <<_ACEOF 2170#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2171_ACEOF 2172 2173cat >>confdefs.h <<_ACEOF 2174#define PACKAGE_URL "$PACKAGE_URL" 2175_ACEOF 2176 2177 2178# Let the site file select an alternate cache file if it wants to. 2179# Prefer an explicitly selected file to automatically selected ones. 2180ac_site_file1=NONE 2181ac_site_file2=NONE 2182if test -n "$CONFIG_SITE"; then 2183 # We do not want a PATH search for config.site. 2184 case $CONFIG_SITE in #(( 2185 -*) ac_site_file1=./$CONFIG_SITE;; 2186 */*) ac_site_file1=$CONFIG_SITE;; 2187 *) ac_site_file1=./$CONFIG_SITE;; 2188 esac 2189elif test "x$prefix" != xNONE; then 2190 ac_site_file1=$prefix/share/config.site 2191 ac_site_file2=$prefix/etc/config.site 2192else 2193 ac_site_file1=$ac_default_prefix/share/config.site 2194 ac_site_file2=$ac_default_prefix/etc/config.site 2195fi 2196for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2197do 2198 test "x$ac_site_file" = xNONE && continue 2199 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2200 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2201$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2202 sed 's/^/| /' "$ac_site_file" >&5 2203 . "$ac_site_file" \ 2204 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2205$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2206as_fn_error $? "failed to load site script $ac_site_file 2207See \`config.log' for more details" "$LINENO" 5; } 2208 fi 2209done 2210 2211if test -r "$cache_file"; then 2212 # Some versions of bash will fail to source /dev/null (special files 2213 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2214 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2215 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2216$as_echo "$as_me: loading cache $cache_file" >&6;} 2217 case $cache_file in 2218 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2219 *) . "./$cache_file";; 2220 esac 2221 fi 2222else 2223 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2224$as_echo "$as_me: creating cache $cache_file" >&6;} 2225 >$cache_file 2226fi 2227 2228# Check that the precious variables saved in the cache have kept the same 2229# value. 2230ac_cache_corrupted=false 2231for ac_var in $ac_precious_vars; do 2232 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2233 eval ac_new_set=\$ac_env_${ac_var}_set 2234 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2235 eval ac_new_val=\$ac_env_${ac_var}_value 2236 case $ac_old_set,$ac_new_set in 2237 set,) 2238 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2239$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2240 ac_cache_corrupted=: ;; 2241 ,set) 2242 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2243$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2244 ac_cache_corrupted=: ;; 2245 ,);; 2246 *) 2247 if test "x$ac_old_val" != "x$ac_new_val"; then 2248 # differences in whitespace do not lead to failure. 2249 ac_old_val_w=`echo x $ac_old_val` 2250 ac_new_val_w=`echo x $ac_new_val` 2251 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2252 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2253$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2254 ac_cache_corrupted=: 2255 else 2256 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2257$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2258 eval $ac_var=\$ac_old_val 2259 fi 2260 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2261$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2262 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2263$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2264 fi;; 2265 esac 2266 # Pass precious variables to config.status. 2267 if test "$ac_new_set" = set; then 2268 case $ac_new_val in 2269 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2270 *) ac_arg=$ac_var=$ac_new_val ;; 2271 esac 2272 case " $ac_configure_args " in 2273 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2274 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2275 esac 2276 fi 2277done 2278if $ac_cache_corrupted; then 2279 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2280$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2281 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2282$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2283 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2284fi 2285## -------------------- ## 2286## Main body of script. ## 2287## -------------------- ## 2288 2289ac_ext=c 2290ac_cpp='$CPP $CPPFLAGS' 2291ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2292ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2293ac_compiler_gnu=$ac_cv_c_compiler_gnu 2294 2295 2296 2297ac_config_headers="$ac_config_headers config.h" 2298 2299 2300# Initialize Automake 2301am__api_version='1.13' 2302 2303ac_aux_dir= 2304for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2305 if test -f "$ac_dir/install-sh"; then 2306 ac_aux_dir=$ac_dir 2307 ac_install_sh="$ac_aux_dir/install-sh -c" 2308 break 2309 elif test -f "$ac_dir/install.sh"; then 2310 ac_aux_dir=$ac_dir 2311 ac_install_sh="$ac_aux_dir/install.sh -c" 2312 break 2313 elif test -f "$ac_dir/shtool"; then 2314 ac_aux_dir=$ac_dir 2315 ac_install_sh="$ac_aux_dir/shtool install -c" 2316 break 2317 fi 2318done 2319if test -z "$ac_aux_dir"; then 2320 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 2321fi 2322 2323# These three variables are undocumented and unsupported, 2324# and are intended to be withdrawn in a future Autoconf release. 2325# They can cause serious problems if a builder's source tree is in a directory 2326# whose full name contains unusual characters. 2327ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2328ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2329ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2330 2331 2332# Find a good install program. We prefer a C program (faster), 2333# so one script is as good as another. But avoid the broken or 2334# incompatible versions: 2335# SysV /etc/install, /usr/sbin/install 2336# SunOS /usr/etc/install 2337# IRIX /sbin/install 2338# AIX /bin/install 2339# AmigaOS /C/install, which installs bootblocks on floppy discs 2340# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2341# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2342# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2343# OS/2's system install, which has a completely different semantic 2344# ./install, which can be erroneously created by make from ./install.sh. 2345# Reject install programs that cannot install multiple files. 2346{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2347$as_echo_n "checking for a BSD-compatible install... " >&6; } 2348if test -z "$INSTALL"; then 2349if ${ac_cv_path_install+:} false; then : 2350 $as_echo_n "(cached) " >&6 2351else 2352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2353for as_dir in $PATH 2354do 2355 IFS=$as_save_IFS 2356 test -z "$as_dir" && as_dir=. 2357 # Account for people who put trailing slashes in PATH elements. 2358case $as_dir/ in #(( 2359 ./ | .// | /[cC]/* | \ 2360 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2361 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2362 /usr/ucb/* ) ;; 2363 *) 2364 # OSF1 and SCO ODT 3.0 have their own names for install. 2365 # Don't use installbsd from OSF since it installs stuff as root 2366 # by default. 2367 for ac_prog in ginstall scoinst install; do 2368 for ac_exec_ext in '' $ac_executable_extensions; do 2369 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 2370 if test $ac_prog = install && 2371 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2372 # AIX install. It has an incompatible calling convention. 2373 : 2374 elif test $ac_prog = install && 2375 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2376 # program-specific install script used by HP pwplus--don't use. 2377 : 2378 else 2379 rm -rf conftest.one conftest.two conftest.dir 2380 echo one > conftest.one 2381 echo two > conftest.two 2382 mkdir conftest.dir 2383 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2384 test -s conftest.one && test -s conftest.two && 2385 test -s conftest.dir/conftest.one && 2386 test -s conftest.dir/conftest.two 2387 then 2388 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2389 break 3 2390 fi 2391 fi 2392 fi 2393 done 2394 done 2395 ;; 2396esac 2397 2398 done 2399IFS=$as_save_IFS 2400 2401rm -rf conftest.one conftest.two conftest.dir 2402 2403fi 2404 if test "${ac_cv_path_install+set}" = set; then 2405 INSTALL=$ac_cv_path_install 2406 else 2407 # As a last resort, use the slow shell script. Don't cache a 2408 # value for INSTALL within a source directory, because that will 2409 # break other packages using the cache if that directory is 2410 # removed, or if the value is a relative name. 2411 INSTALL=$ac_install_sh 2412 fi 2413fi 2414{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2415$as_echo "$INSTALL" >&6; } 2416 2417# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2418# It thinks the first close brace ends the variable substitution. 2419test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2420 2421test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2422 2423test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2424 2425{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2426$as_echo_n "checking whether build environment is sane... " >&6; } 2427# Reject unsafe characters in $srcdir or the absolute working directory 2428# name. Accept space and tab only in the latter. 2429am_lf=' 2430' 2431case `pwd` in 2432 *[\\\"\#\$\&\'\`$am_lf]*) 2433 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2434esac 2435case $srcdir in 2436 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2437 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 2438esac 2439 2440# Do 'set' in a subshell so we don't clobber the current shell's 2441# arguments. Must try -L first in case configure is actually a 2442# symlink; some systems play weird games with the mod time of symlinks 2443# (eg FreeBSD returns the mod time of the symlink's containing 2444# directory). 2445if ( 2446 am_has_slept=no 2447 for am_try in 1 2; do 2448 echo "timestamp, slept: $am_has_slept" > conftest.file 2449 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2450 if test "$*" = "X"; then 2451 # -L didn't work. 2452 set X `ls -t "$srcdir/configure" conftest.file` 2453 fi 2454 if test "$*" != "X $srcdir/configure conftest.file" \ 2455 && test "$*" != "X conftest.file $srcdir/configure"; then 2456 2457 # If neither matched, then we have a broken ls. This can happen 2458 # if, for instance, CONFIG_SHELL is bash and it inherits a 2459 # broken ls alias from the environment. This has actually 2460 # happened. Such a system could not be considered "sane". 2461 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2462 alias in your environment" "$LINENO" 5 2463 fi 2464 if test "$2" = conftest.file || test $am_try -eq 2; then 2465 break 2466 fi 2467 # Just in case. 2468 sleep 1 2469 am_has_slept=yes 2470 done 2471 test "$2" = conftest.file 2472 ) 2473then 2474 # Ok. 2475 : 2476else 2477 as_fn_error $? "newly created file is older than distributed files! 2478Check your system clock" "$LINENO" 5 2479fi 2480{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2481$as_echo "yes" >&6; } 2482# If we didn't sleep, we still need to ensure time stamps of config.status and 2483# generated files are strictly newer. 2484am_sleep_pid= 2485if grep 'slept: no' conftest.file >/dev/null 2>&1; then 2486 ( sleep 1 ) & 2487 am_sleep_pid=$! 2488fi 2489 2490rm -f conftest.file 2491 2492test "$program_prefix" != NONE && 2493 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2494# Use a double $ so make ignores it. 2495test "$program_suffix" != NONE && 2496 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2497# Double any \ or $. 2498# By default was `s,x,x', remove it if useless. 2499ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2500program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2501 2502# expand $ac_aux_dir to an absolute path 2503am_aux_dir=`cd $ac_aux_dir && pwd` 2504 2505if test x"${MISSING+set}" != xset; then 2506 case $am_aux_dir in 2507 *\ * | *\ *) 2508 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 2509 *) 2510 MISSING="\${SHELL} $am_aux_dir/missing" ;; 2511 esac 2512fi 2513# Use eval to expand $SHELL 2514if eval "$MISSING --is-lightweight"; then 2515 am_missing_run="$MISSING " 2516else 2517 am_missing_run= 2518 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 2519$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 2520fi 2521 2522if test x"${install_sh}" != xset; then 2523 case $am_aux_dir in 2524 *\ * | *\ *) 2525 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2526 *) 2527 install_sh="\${SHELL} $am_aux_dir/install-sh" 2528 esac 2529fi 2530 2531# Installed binaries are usually stripped using 'strip' when the user 2532# run "make install-strip". However 'strip' might not be the right 2533# tool to use in cross-compilation environments, therefore Automake 2534# will honor the 'STRIP' environment variable to overrule this program. 2535if test "$cross_compiling" != no; then 2536 if test -n "$ac_tool_prefix"; then 2537 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2538set dummy ${ac_tool_prefix}strip; ac_word=$2 2539{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2540$as_echo_n "checking for $ac_word... " >&6; } 2541if ${ac_cv_prog_STRIP+:} false; then : 2542 $as_echo_n "(cached) " >&6 2543else 2544 if test -n "$STRIP"; then 2545 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2546else 2547as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2548for as_dir in $PATH 2549do 2550 IFS=$as_save_IFS 2551 test -z "$as_dir" && as_dir=. 2552 for ac_exec_ext in '' $ac_executable_extensions; do 2553 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2554 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2555 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2556 break 2 2557 fi 2558done 2559 done 2560IFS=$as_save_IFS 2561 2562fi 2563fi 2564STRIP=$ac_cv_prog_STRIP 2565if test -n "$STRIP"; then 2566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2567$as_echo "$STRIP" >&6; } 2568else 2569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2570$as_echo "no" >&6; } 2571fi 2572 2573 2574fi 2575if test -z "$ac_cv_prog_STRIP"; then 2576 ac_ct_STRIP=$STRIP 2577 # Extract the first word of "strip", so it can be a program name with args. 2578set dummy strip; ac_word=$2 2579{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2580$as_echo_n "checking for $ac_word... " >&6; } 2581if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 2582 $as_echo_n "(cached) " >&6 2583else 2584 if test -n "$ac_ct_STRIP"; then 2585 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2586else 2587as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2588for as_dir in $PATH 2589do 2590 IFS=$as_save_IFS 2591 test -z "$as_dir" && as_dir=. 2592 for ac_exec_ext in '' $ac_executable_extensions; do 2593 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2594 ac_cv_prog_ac_ct_STRIP="strip" 2595 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2596 break 2 2597 fi 2598done 2599 done 2600IFS=$as_save_IFS 2601 2602fi 2603fi 2604ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2605if test -n "$ac_ct_STRIP"; then 2606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2607$as_echo "$ac_ct_STRIP" >&6; } 2608else 2609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2610$as_echo "no" >&6; } 2611fi 2612 2613 if test "x$ac_ct_STRIP" = x; then 2614 STRIP=":" 2615 else 2616 case $cross_compiling:$ac_tool_warned in 2617yes:) 2618{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2619$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2620ac_tool_warned=yes ;; 2621esac 2622 STRIP=$ac_ct_STRIP 2623 fi 2624else 2625 STRIP="$ac_cv_prog_STRIP" 2626fi 2627 2628fi 2629INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2630 2631{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 2632$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2633if test -z "$MKDIR_P"; then 2634 if ${ac_cv_path_mkdir+:} false; then : 2635 $as_echo_n "(cached) " >&6 2636else 2637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2638for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2639do 2640 IFS=$as_save_IFS 2641 test -z "$as_dir" && as_dir=. 2642 for ac_prog in mkdir gmkdir; do 2643 for ac_exec_ext in '' $ac_executable_extensions; do 2644 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue 2645 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2646 'mkdir (GNU coreutils) '* | \ 2647 'mkdir (coreutils) '* | \ 2648 'mkdir (fileutils) '4.1*) 2649 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2650 break 3;; 2651 esac 2652 done 2653 done 2654 done 2655IFS=$as_save_IFS 2656 2657fi 2658 2659 test -d ./--version && rmdir ./--version 2660 if test "${ac_cv_path_mkdir+set}" = set; then 2661 MKDIR_P="$ac_cv_path_mkdir -p" 2662 else 2663 # As a last resort, use the slow shell script. Don't cache a 2664 # value for MKDIR_P within a source directory, because that will 2665 # break other packages using the cache if that directory is 2666 # removed, or if the value is a relative name. 2667 MKDIR_P="$ac_install_sh -d" 2668 fi 2669fi 2670{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 2671$as_echo "$MKDIR_P" >&6; } 2672 2673for ac_prog in gawk mawk nawk awk 2674do 2675 # Extract the first word of "$ac_prog", so it can be a program name with args. 2676set dummy $ac_prog; ac_word=$2 2677{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2678$as_echo_n "checking for $ac_word... " >&6; } 2679if ${ac_cv_prog_AWK+:} false; then : 2680 $as_echo_n "(cached) " >&6 2681else 2682 if test -n "$AWK"; then 2683 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2684else 2685as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2686for as_dir in $PATH 2687do 2688 IFS=$as_save_IFS 2689 test -z "$as_dir" && as_dir=. 2690 for ac_exec_ext in '' $ac_executable_extensions; do 2691 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2692 ac_cv_prog_AWK="$ac_prog" 2693 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2694 break 2 2695 fi 2696done 2697 done 2698IFS=$as_save_IFS 2699 2700fi 2701fi 2702AWK=$ac_cv_prog_AWK 2703if test -n "$AWK"; then 2704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 2705$as_echo "$AWK" >&6; } 2706else 2707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2708$as_echo "no" >&6; } 2709fi 2710 2711 2712 test -n "$AWK" && break 2713done 2714 2715{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2716$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2717set x ${MAKE-make} 2718ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2719if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 2720 $as_echo_n "(cached) " >&6 2721else 2722 cat >conftest.make <<\_ACEOF 2723SHELL = /bin/sh 2724all: 2725 @echo '@@@%%%=$(MAKE)=@@@%%%' 2726_ACEOF 2727# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 2728case `${MAKE-make} -f conftest.make 2>/dev/null` in 2729 *@@@%%%=?*=@@@%%%*) 2730 eval ac_cv_prog_make_${ac_make}_set=yes;; 2731 *) 2732 eval ac_cv_prog_make_${ac_make}_set=no;; 2733esac 2734rm -f conftest.make 2735fi 2736if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2738$as_echo "yes" >&6; } 2739 SET_MAKE= 2740else 2741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2742$as_echo "no" >&6; } 2743 SET_MAKE="MAKE=${MAKE-make}" 2744fi 2745 2746rm -rf .tst 2>/dev/null 2747mkdir .tst 2>/dev/null 2748if test -d .tst; then 2749 am__leading_dot=. 2750else 2751 am__leading_dot=_ 2752fi 2753rmdir .tst 2>/dev/null 2754 2755# Check whether --enable-silent-rules was given. 2756if test "${enable_silent_rules+set}" = set; then : 2757 enableval=$enable_silent_rules; 2758fi 2759 2760case $enable_silent_rules in # ((( 2761 yes) AM_DEFAULT_VERBOSITY=0;; 2762 no) AM_DEFAULT_VERBOSITY=1;; 2763 *) AM_DEFAULT_VERBOSITY=1;; 2764esac 2765am_make=${MAKE-make} 2766{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 2767$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 2768if ${am_cv_make_support_nested_variables+:} false; then : 2769 $as_echo_n "(cached) " >&6 2770else 2771 if $as_echo 'TRUE=$(BAR$(V)) 2772BAR0=false 2773BAR1=true 2774V=1 2775am__doit: 2776 @$(TRUE) 2777.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 2778 am_cv_make_support_nested_variables=yes 2779else 2780 am_cv_make_support_nested_variables=no 2781fi 2782fi 2783{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 2784$as_echo "$am_cv_make_support_nested_variables" >&6; } 2785if test $am_cv_make_support_nested_variables = yes; then 2786 AM_V='$(V)' 2787 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 2788else 2789 AM_V=$AM_DEFAULT_VERBOSITY 2790 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 2791fi 2792AM_BACKSLASH='\' 2793 2794if test "`cd $srcdir && pwd`" != "`pwd`"; then 2795 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 2796 # is not polluted with repeated "-I." 2797 am__isrc=' -I$(srcdir)' 2798 # test to see if srcdir already configured 2799 if test -f $srcdir/config.status; then 2800 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 2801 fi 2802fi 2803 2804# test whether we have cygpath 2805if test -z "$CYGPATH_W"; then 2806 if (cygpath --version) >/dev/null 2>/dev/null; then 2807 CYGPATH_W='cygpath -w' 2808 else 2809 CYGPATH_W=echo 2810 fi 2811fi 2812 2813 2814# Define the identity of the package. 2815 PACKAGE='libXext' 2816 VERSION='1.3.2' 2817 2818 2819cat >>confdefs.h <<_ACEOF 2820#define PACKAGE "$PACKAGE" 2821_ACEOF 2822 2823 2824cat >>confdefs.h <<_ACEOF 2825#define VERSION "$VERSION" 2826_ACEOF 2827 2828# Some tools Automake needs. 2829 2830ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2831 2832 2833AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2834 2835 2836AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2837 2838 2839AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2840 2841 2842MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2843 2844# For better backward compatibility. To be removed once Automake 1.9.x 2845# dies out for good. For more background, see: 2846# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 2847# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 2848mkdir_p='$(MKDIR_P)' 2849 2850# We need awk for the "check" target. The system "awk" is bad on 2851# some platforms. 2852# Always define AMTAR for backward compatibility. Yes, it's still used 2853# in the wild :-( We should find a proper way to deprecate it ... 2854AMTAR='$${TAR-tar}' 2855 2856 2857# We'll loop over all known methods to create a tar archive until one works. 2858_am_tools='gnutar pax cpio none' 2859 2860am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 2861 2862 2863 2864 2865 2866 2867 2868# Initialize libtool 2869case `pwd` in 2870 *\ * | *\ *) 2871 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 2872$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 2873esac 2874 2875 2876 2877macro_version='2.4.2' 2878macro_revision='1.3337' 2879 2880 2881 2882 2883 2884 2885 2886 2887 2888 2889 2890 2891 2892ltmain="$ac_aux_dir/ltmain.sh" 2893 2894# Make sure we can run config.sub. 2895$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 2896 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 2897 2898{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 2899$as_echo_n "checking build system type... " >&6; } 2900if ${ac_cv_build+:} false; then : 2901 $as_echo_n "(cached) " >&6 2902else 2903 ac_build_alias=$build_alias 2904test "x$ac_build_alias" = x && 2905 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 2906test "x$ac_build_alias" = x && 2907 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 2908ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 2909 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 2910 2911fi 2912{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 2913$as_echo "$ac_cv_build" >&6; } 2914case $ac_cv_build in 2915*-*-*) ;; 2916*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 2917esac 2918build=$ac_cv_build 2919ac_save_IFS=$IFS; IFS='-' 2920set x $ac_cv_build 2921shift 2922build_cpu=$1 2923build_vendor=$2 2924shift; shift 2925# Remember, the first character of IFS is used to create $*, 2926# except with old shells: 2927build_os=$* 2928IFS=$ac_save_IFS 2929case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 2930 2931 2932{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 2933$as_echo_n "checking host system type... " >&6; } 2934if ${ac_cv_host+:} false; then : 2935 $as_echo_n "(cached) " >&6 2936else 2937 if test "x$host_alias" = x; then 2938 ac_cv_host=$ac_cv_build 2939else 2940 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 2941 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 2942fi 2943 2944fi 2945{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 2946$as_echo "$ac_cv_host" >&6; } 2947case $ac_cv_host in 2948*-*-*) ;; 2949*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 2950esac 2951host=$ac_cv_host 2952ac_save_IFS=$IFS; IFS='-' 2953set x $ac_cv_host 2954shift 2955host_cpu=$1 2956host_vendor=$2 2957shift; shift 2958# Remember, the first character of IFS is used to create $*, 2959# except with old shells: 2960host_os=$* 2961IFS=$ac_save_IFS 2962case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 2963 2964 2965# Backslashify metacharacters that are still active within 2966# double-quoted strings. 2967sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 2968 2969# Same as above, but do not quote variable references. 2970double_quote_subst='s/\(["`\\]\)/\\\1/g' 2971 2972# Sed substitution to delay expansion of an escaped shell variable in a 2973# double_quote_subst'ed string. 2974delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 2975 2976# Sed substitution to delay expansion of an escaped single quote. 2977delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 2978 2979# Sed substitution to avoid accidental globbing in evaled expressions 2980no_glob_subst='s/\*/\\\*/g' 2981 2982ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 2983ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 2984ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 2985 2986{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 2987$as_echo_n "checking how to print strings... " >&6; } 2988# Test print first, because it will be a builtin if present. 2989if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 2990 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 2991 ECHO='print -r --' 2992elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 2993 ECHO='printf %s\n' 2994else 2995 # Use this function as a fallback that always works. 2996 func_fallback_echo () 2997 { 2998 eval 'cat <<_LTECHO_EOF 2999$1 3000_LTECHO_EOF' 3001 } 3002 ECHO='func_fallback_echo' 3003fi 3004 3005# func_echo_all arg... 3006# Invoke $ECHO with all args, space-separated. 3007func_echo_all () 3008{ 3009 $ECHO "" 3010} 3011 3012case "$ECHO" in 3013 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 3014$as_echo "printf" >&6; } ;; 3015 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 3016$as_echo "print -r" >&6; } ;; 3017 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 3018$as_echo "cat" >&6; } ;; 3019esac 3020 3021 3022 3023 3024 3025 3026 3027 3028 3029 3030 3031 3032 3033 3034DEPDIR="${am__leading_dot}deps" 3035 3036ac_config_commands="$ac_config_commands depfiles" 3037 3038 3039am_make=${MAKE-make} 3040cat > confinc << 'END' 3041am__doit: 3042 @echo this is the am__doit target 3043.PHONY: am__doit 3044END 3045# If we don't find an include directive, just comment out the code. 3046{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 3047$as_echo_n "checking for style of include used by $am_make... " >&6; } 3048am__include="#" 3049am__quote= 3050_am_result=none 3051# First try GNU make style include. 3052echo "include confinc" > confmf 3053# Ignore all kinds of additional output from 'make'. 3054case `$am_make -s -f confmf 2> /dev/null` in #( 3055*the\ am__doit\ target*) 3056 am__include=include 3057 am__quote= 3058 _am_result=GNU 3059 ;; 3060esac 3061# Now try BSD make style include. 3062if test "$am__include" = "#"; then 3063 echo '.include "confinc"' > confmf 3064 case `$am_make -s -f confmf 2> /dev/null` in #( 3065 *the\ am__doit\ target*) 3066 am__include=.include 3067 am__quote="\"" 3068 _am_result=BSD 3069 ;; 3070 esac 3071fi 3072 3073 3074{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 3075$as_echo "$_am_result" >&6; } 3076rm -f confinc confmf 3077 3078# Check whether --enable-dependency-tracking was given. 3079if test "${enable_dependency_tracking+set}" = set; then : 3080 enableval=$enable_dependency_tracking; 3081fi 3082 3083if test "x$enable_dependency_tracking" != xno; then 3084 am_depcomp="$ac_aux_dir/depcomp" 3085 AMDEPBACKSLASH='\' 3086 am__nodep='_no' 3087fi 3088 if test "x$enable_dependency_tracking" != xno; then 3089 AMDEP_TRUE= 3090 AMDEP_FALSE='#' 3091else 3092 AMDEP_TRUE='#' 3093 AMDEP_FALSE= 3094fi 3095 3096 3097ac_ext=c 3098ac_cpp='$CPP $CPPFLAGS' 3099ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3100ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3101ac_compiler_gnu=$ac_cv_c_compiler_gnu 3102if test -n "$ac_tool_prefix"; then 3103 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3104set dummy ${ac_tool_prefix}gcc; ac_word=$2 3105{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3106$as_echo_n "checking for $ac_word... " >&6; } 3107if ${ac_cv_prog_CC+:} false; then : 3108 $as_echo_n "(cached) " >&6 3109else 3110 if test -n "$CC"; then 3111 ac_cv_prog_CC="$CC" # Let the user override the test. 3112else 3113as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3114for as_dir in $PATH 3115do 3116 IFS=$as_save_IFS 3117 test -z "$as_dir" && as_dir=. 3118 for ac_exec_ext in '' $ac_executable_extensions; do 3119 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3120 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3121 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3122 break 2 3123 fi 3124done 3125 done 3126IFS=$as_save_IFS 3127 3128fi 3129fi 3130CC=$ac_cv_prog_CC 3131if test -n "$CC"; then 3132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3133$as_echo "$CC" >&6; } 3134else 3135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3136$as_echo "no" >&6; } 3137fi 3138 3139 3140fi 3141if test -z "$ac_cv_prog_CC"; then 3142 ac_ct_CC=$CC 3143 # Extract the first word of "gcc", so it can be a program name with args. 3144set dummy gcc; ac_word=$2 3145{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3146$as_echo_n "checking for $ac_word... " >&6; } 3147if ${ac_cv_prog_ac_ct_CC+:} false; then : 3148 $as_echo_n "(cached) " >&6 3149else 3150 if test -n "$ac_ct_CC"; then 3151 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3152else 3153as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3154for as_dir in $PATH 3155do 3156 IFS=$as_save_IFS 3157 test -z "$as_dir" && as_dir=. 3158 for ac_exec_ext in '' $ac_executable_extensions; do 3159 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3160 ac_cv_prog_ac_ct_CC="gcc" 3161 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3162 break 2 3163 fi 3164done 3165 done 3166IFS=$as_save_IFS 3167 3168fi 3169fi 3170ac_ct_CC=$ac_cv_prog_ac_ct_CC 3171if test -n "$ac_ct_CC"; then 3172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3173$as_echo "$ac_ct_CC" >&6; } 3174else 3175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3176$as_echo "no" >&6; } 3177fi 3178 3179 if test "x$ac_ct_CC" = x; then 3180 CC="" 3181 else 3182 case $cross_compiling:$ac_tool_warned in 3183yes:) 3184{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3185$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3186ac_tool_warned=yes ;; 3187esac 3188 CC=$ac_ct_CC 3189 fi 3190else 3191 CC="$ac_cv_prog_CC" 3192fi 3193 3194if test -z "$CC"; then 3195 if test -n "$ac_tool_prefix"; then 3196 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3197set dummy ${ac_tool_prefix}cc; ac_word=$2 3198{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3199$as_echo_n "checking for $ac_word... " >&6; } 3200if ${ac_cv_prog_CC+:} false; then : 3201 $as_echo_n "(cached) " >&6 3202else 3203 if test -n "$CC"; then 3204 ac_cv_prog_CC="$CC" # Let the user override the test. 3205else 3206as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3207for as_dir in $PATH 3208do 3209 IFS=$as_save_IFS 3210 test -z "$as_dir" && as_dir=. 3211 for ac_exec_ext in '' $ac_executable_extensions; do 3212 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3213 ac_cv_prog_CC="${ac_tool_prefix}cc" 3214 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3215 break 2 3216 fi 3217done 3218 done 3219IFS=$as_save_IFS 3220 3221fi 3222fi 3223CC=$ac_cv_prog_CC 3224if test -n "$CC"; then 3225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3226$as_echo "$CC" >&6; } 3227else 3228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3229$as_echo "no" >&6; } 3230fi 3231 3232 3233 fi 3234fi 3235if test -z "$CC"; then 3236 # Extract the first word of "cc", so it can be a program name with args. 3237set dummy cc; ac_word=$2 3238{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3239$as_echo_n "checking for $ac_word... " >&6; } 3240if ${ac_cv_prog_CC+:} false; then : 3241 $as_echo_n "(cached) " >&6 3242else 3243 if test -n "$CC"; then 3244 ac_cv_prog_CC="$CC" # Let the user override the test. 3245else 3246 ac_prog_rejected=no 3247as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3248for as_dir in $PATH 3249do 3250 IFS=$as_save_IFS 3251 test -z "$as_dir" && as_dir=. 3252 for ac_exec_ext in '' $ac_executable_extensions; do 3253 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3254 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3255 ac_prog_rejected=yes 3256 continue 3257 fi 3258 ac_cv_prog_CC="cc" 3259 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3260 break 2 3261 fi 3262done 3263 done 3264IFS=$as_save_IFS 3265 3266if test $ac_prog_rejected = yes; then 3267 # We found a bogon in the path, so make sure we never use it. 3268 set dummy $ac_cv_prog_CC 3269 shift 3270 if test $# != 0; then 3271 # We chose a different compiler from the bogus one. 3272 # However, it has the same basename, so the bogon will be chosen 3273 # first if we set CC to just the basename; use the full file name. 3274 shift 3275 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3276 fi 3277fi 3278fi 3279fi 3280CC=$ac_cv_prog_CC 3281if test -n "$CC"; then 3282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3283$as_echo "$CC" >&6; } 3284else 3285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3286$as_echo "no" >&6; } 3287fi 3288 3289 3290fi 3291if test -z "$CC"; then 3292 if test -n "$ac_tool_prefix"; then 3293 for ac_prog in cl.exe 3294 do 3295 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3296set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3297{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3298$as_echo_n "checking for $ac_word... " >&6; } 3299if ${ac_cv_prog_CC+:} false; then : 3300 $as_echo_n "(cached) " >&6 3301else 3302 if test -n "$CC"; then 3303 ac_cv_prog_CC="$CC" # Let the user override the test. 3304else 3305as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3306for as_dir in $PATH 3307do 3308 IFS=$as_save_IFS 3309 test -z "$as_dir" && as_dir=. 3310 for ac_exec_ext in '' $ac_executable_extensions; do 3311 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3312 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3313 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3314 break 2 3315 fi 3316done 3317 done 3318IFS=$as_save_IFS 3319 3320fi 3321fi 3322CC=$ac_cv_prog_CC 3323if test -n "$CC"; then 3324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3325$as_echo "$CC" >&6; } 3326else 3327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3328$as_echo "no" >&6; } 3329fi 3330 3331 3332 test -n "$CC" && break 3333 done 3334fi 3335if test -z "$CC"; then 3336 ac_ct_CC=$CC 3337 for ac_prog in cl.exe 3338do 3339 # Extract the first word of "$ac_prog", so it can be a program name with args. 3340set dummy $ac_prog; ac_word=$2 3341{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3342$as_echo_n "checking for $ac_word... " >&6; } 3343if ${ac_cv_prog_ac_ct_CC+:} false; then : 3344 $as_echo_n "(cached) " >&6 3345else 3346 if test -n "$ac_ct_CC"; then 3347 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3348else 3349as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3350for as_dir in $PATH 3351do 3352 IFS=$as_save_IFS 3353 test -z "$as_dir" && as_dir=. 3354 for ac_exec_ext in '' $ac_executable_extensions; do 3355 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3356 ac_cv_prog_ac_ct_CC="$ac_prog" 3357 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3358 break 2 3359 fi 3360done 3361 done 3362IFS=$as_save_IFS 3363 3364fi 3365fi 3366ac_ct_CC=$ac_cv_prog_ac_ct_CC 3367if test -n "$ac_ct_CC"; then 3368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3369$as_echo "$ac_ct_CC" >&6; } 3370else 3371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3372$as_echo "no" >&6; } 3373fi 3374 3375 3376 test -n "$ac_ct_CC" && break 3377done 3378 3379 if test "x$ac_ct_CC" = x; then 3380 CC="" 3381 else 3382 case $cross_compiling:$ac_tool_warned in 3383yes:) 3384{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3385$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3386ac_tool_warned=yes ;; 3387esac 3388 CC=$ac_ct_CC 3389 fi 3390fi 3391 3392fi 3393 3394 3395test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3396$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3397as_fn_error $? "no acceptable C compiler found in \$PATH 3398See \`config.log' for more details" "$LINENO" 5; } 3399 3400# Provide some information about the compiler. 3401$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3402set X $ac_compile 3403ac_compiler=$2 3404for ac_option in --version -v -V -qversion; do 3405 { { ac_try="$ac_compiler $ac_option >&5" 3406case "(($ac_try" in 3407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3408 *) ac_try_echo=$ac_try;; 3409esac 3410eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3411$as_echo "$ac_try_echo"; } >&5 3412 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3413 ac_status=$? 3414 if test -s conftest.err; then 3415 sed '10a\ 3416... rest of stderr output deleted ... 3417 10q' conftest.err >conftest.er1 3418 cat conftest.er1 >&5 3419 fi 3420 rm -f conftest.er1 conftest.err 3421 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3422 test $ac_status = 0; } 3423done 3424 3425cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3426/* end confdefs.h. */ 3427 3428int 3429main () 3430{ 3431 3432 ; 3433 return 0; 3434} 3435_ACEOF 3436ac_clean_files_save=$ac_clean_files 3437ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3438# Try to create an executable without -o first, disregard a.out. 3439# It will help us diagnose broken compilers, and finding out an intuition 3440# of exeext. 3441{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3442$as_echo_n "checking whether the C compiler works... " >&6; } 3443ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3444 3445# The possible output files: 3446ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3447 3448ac_rmfiles= 3449for ac_file in $ac_files 3450do 3451 case $ac_file in 3452 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3453 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3454 esac 3455done 3456rm -f $ac_rmfiles 3457 3458if { { ac_try="$ac_link_default" 3459case "(($ac_try" in 3460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3461 *) ac_try_echo=$ac_try;; 3462esac 3463eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3464$as_echo "$ac_try_echo"; } >&5 3465 (eval "$ac_link_default") 2>&5 3466 ac_status=$? 3467 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3468 test $ac_status = 0; }; then : 3469 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3470# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3471# in a Makefile. We should not override ac_cv_exeext if it was cached, 3472# so that the user can short-circuit this test for compilers unknown to 3473# Autoconf. 3474for ac_file in $ac_files '' 3475do 3476 test -f "$ac_file" || continue 3477 case $ac_file in 3478 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3479 ;; 3480 [ab].out ) 3481 # We found the default executable, but exeext='' is most 3482 # certainly right. 3483 break;; 3484 *.* ) 3485 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3486 then :; else 3487 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3488 fi 3489 # We set ac_cv_exeext here because the later test for it is not 3490 # safe: cross compilers may not add the suffix if given an `-o' 3491 # argument, so we may need to know it at that point already. 3492 # Even if this section looks crufty: it has the advantage of 3493 # actually working. 3494 break;; 3495 * ) 3496 break;; 3497 esac 3498done 3499test "$ac_cv_exeext" = no && ac_cv_exeext= 3500 3501else 3502 ac_file='' 3503fi 3504if test -z "$ac_file"; then : 3505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3506$as_echo "no" >&6; } 3507$as_echo "$as_me: failed program was:" >&5 3508sed 's/^/| /' conftest.$ac_ext >&5 3509 3510{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3511$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3512as_fn_error 77 "C compiler cannot create executables 3513See \`config.log' for more details" "$LINENO" 5; } 3514else 3515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3516$as_echo "yes" >&6; } 3517fi 3518{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3519$as_echo_n "checking for C compiler default output file name... " >&6; } 3520{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3521$as_echo "$ac_file" >&6; } 3522ac_exeext=$ac_cv_exeext 3523 3524rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3525ac_clean_files=$ac_clean_files_save 3526{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3527$as_echo_n "checking for suffix of executables... " >&6; } 3528if { { ac_try="$ac_link" 3529case "(($ac_try" in 3530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3531 *) ac_try_echo=$ac_try;; 3532esac 3533eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3534$as_echo "$ac_try_echo"; } >&5 3535 (eval "$ac_link") 2>&5 3536 ac_status=$? 3537 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3538 test $ac_status = 0; }; then : 3539 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3540# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3541# work properly (i.e., refer to `conftest.exe'), while it won't with 3542# `rm'. 3543for ac_file in conftest.exe conftest conftest.*; do 3544 test -f "$ac_file" || continue 3545 case $ac_file in 3546 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3547 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3548 break;; 3549 * ) break;; 3550 esac 3551done 3552else 3553 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3554$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3555as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3556See \`config.log' for more details" "$LINENO" 5; } 3557fi 3558rm -f conftest conftest$ac_cv_exeext 3559{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3560$as_echo "$ac_cv_exeext" >&6; } 3561 3562rm -f conftest.$ac_ext 3563EXEEXT=$ac_cv_exeext 3564ac_exeext=$EXEEXT 3565cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3566/* end confdefs.h. */ 3567#include <stdio.h> 3568int 3569main () 3570{ 3571FILE *f = fopen ("conftest.out", "w"); 3572 return ferror (f) || fclose (f) != 0; 3573 3574 ; 3575 return 0; 3576} 3577_ACEOF 3578ac_clean_files="$ac_clean_files conftest.out" 3579# Check that the compiler produces executables we can run. If not, either 3580# the compiler is broken, or we cross compile. 3581{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3582$as_echo_n "checking whether we are cross compiling... " >&6; } 3583if test "$cross_compiling" != yes; then 3584 { { ac_try="$ac_link" 3585case "(($ac_try" in 3586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3587 *) ac_try_echo=$ac_try;; 3588esac 3589eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3590$as_echo "$ac_try_echo"; } >&5 3591 (eval "$ac_link") 2>&5 3592 ac_status=$? 3593 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3594 test $ac_status = 0; } 3595 if { ac_try='./conftest$ac_cv_exeext' 3596 { { case "(($ac_try" in 3597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3598 *) ac_try_echo=$ac_try;; 3599esac 3600eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3601$as_echo "$ac_try_echo"; } >&5 3602 (eval "$ac_try") 2>&5 3603 ac_status=$? 3604 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3605 test $ac_status = 0; }; }; then 3606 cross_compiling=no 3607 else 3608 if test "$cross_compiling" = maybe; then 3609 cross_compiling=yes 3610 else 3611 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3612$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3613as_fn_error $? "cannot run C compiled programs. 3614If you meant to cross compile, use \`--host'. 3615See \`config.log' for more details" "$LINENO" 5; } 3616 fi 3617 fi 3618fi 3619{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3620$as_echo "$cross_compiling" >&6; } 3621 3622rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3623ac_clean_files=$ac_clean_files_save 3624{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3625$as_echo_n "checking for suffix of object files... " >&6; } 3626if ${ac_cv_objext+:} false; then : 3627 $as_echo_n "(cached) " >&6 3628else 3629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3630/* end confdefs.h. */ 3631 3632int 3633main () 3634{ 3635 3636 ; 3637 return 0; 3638} 3639_ACEOF 3640rm -f conftest.o conftest.obj 3641if { { ac_try="$ac_compile" 3642case "(($ac_try" in 3643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3644 *) ac_try_echo=$ac_try;; 3645esac 3646eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3647$as_echo "$ac_try_echo"; } >&5 3648 (eval "$ac_compile") 2>&5 3649 ac_status=$? 3650 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3651 test $ac_status = 0; }; then : 3652 for ac_file in conftest.o conftest.obj conftest.*; do 3653 test -f "$ac_file" || continue; 3654 case $ac_file in 3655 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3656 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3657 break;; 3658 esac 3659done 3660else 3661 $as_echo "$as_me: failed program was:" >&5 3662sed 's/^/| /' conftest.$ac_ext >&5 3663 3664{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3665$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3666as_fn_error $? "cannot compute suffix of object files: cannot compile 3667See \`config.log' for more details" "$LINENO" 5; } 3668fi 3669rm -f conftest.$ac_cv_objext conftest.$ac_ext 3670fi 3671{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3672$as_echo "$ac_cv_objext" >&6; } 3673OBJEXT=$ac_cv_objext 3674ac_objext=$OBJEXT 3675{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3676$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3677if ${ac_cv_c_compiler_gnu+:} false; then : 3678 $as_echo_n "(cached) " >&6 3679else 3680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3681/* end confdefs.h. */ 3682 3683int 3684main () 3685{ 3686#ifndef __GNUC__ 3687 choke me 3688#endif 3689 3690 ; 3691 return 0; 3692} 3693_ACEOF 3694if ac_fn_c_try_compile "$LINENO"; then : 3695 ac_compiler_gnu=yes 3696else 3697 ac_compiler_gnu=no 3698fi 3699rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3700ac_cv_c_compiler_gnu=$ac_compiler_gnu 3701 3702fi 3703{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3704$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3705if test $ac_compiler_gnu = yes; then 3706 GCC=yes 3707else 3708 GCC= 3709fi 3710ac_test_CFLAGS=${CFLAGS+set} 3711ac_save_CFLAGS=$CFLAGS 3712{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3713$as_echo_n "checking whether $CC accepts -g... " >&6; } 3714if ${ac_cv_prog_cc_g+:} false; then : 3715 $as_echo_n "(cached) " >&6 3716else 3717 ac_save_c_werror_flag=$ac_c_werror_flag 3718 ac_c_werror_flag=yes 3719 ac_cv_prog_cc_g=no 3720 CFLAGS="-g" 3721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3722/* end confdefs.h. */ 3723 3724int 3725main () 3726{ 3727 3728 ; 3729 return 0; 3730} 3731_ACEOF 3732if ac_fn_c_try_compile "$LINENO"; then : 3733 ac_cv_prog_cc_g=yes 3734else 3735 CFLAGS="" 3736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3737/* end confdefs.h. */ 3738 3739int 3740main () 3741{ 3742 3743 ; 3744 return 0; 3745} 3746_ACEOF 3747if ac_fn_c_try_compile "$LINENO"; then : 3748 3749else 3750 ac_c_werror_flag=$ac_save_c_werror_flag 3751 CFLAGS="-g" 3752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3753/* end confdefs.h. */ 3754 3755int 3756main () 3757{ 3758 3759 ; 3760 return 0; 3761} 3762_ACEOF 3763if ac_fn_c_try_compile "$LINENO"; then : 3764 ac_cv_prog_cc_g=yes 3765fi 3766rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3767fi 3768rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3769fi 3770rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3771 ac_c_werror_flag=$ac_save_c_werror_flag 3772fi 3773{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3774$as_echo "$ac_cv_prog_cc_g" >&6; } 3775if test "$ac_test_CFLAGS" = set; then 3776 CFLAGS=$ac_save_CFLAGS 3777elif test $ac_cv_prog_cc_g = yes; then 3778 if test "$GCC" = yes; then 3779 CFLAGS="-g -O2" 3780 else 3781 CFLAGS="-g" 3782 fi 3783else 3784 if test "$GCC" = yes; then 3785 CFLAGS="-O2" 3786 else 3787 CFLAGS= 3788 fi 3789fi 3790{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3791$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3792if ${ac_cv_prog_cc_c89+:} false; then : 3793 $as_echo_n "(cached) " >&6 3794else 3795 ac_cv_prog_cc_c89=no 3796ac_save_CC=$CC 3797cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3798/* end confdefs.h. */ 3799#include <stdarg.h> 3800#include <stdio.h> 3801#include <sys/types.h> 3802#include <sys/stat.h> 3803/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3804struct buf { int x; }; 3805FILE * (*rcsopen) (struct buf *, struct stat *, int); 3806static char *e (p, i) 3807 char **p; 3808 int i; 3809{ 3810 return p[i]; 3811} 3812static char *f (char * (*g) (char **, int), char **p, ...) 3813{ 3814 char *s; 3815 va_list v; 3816 va_start (v,p); 3817 s = g (p, va_arg (v,int)); 3818 va_end (v); 3819 return s; 3820} 3821 3822/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3823 function prototypes and stuff, but not '\xHH' hex character constants. 3824 These don't provoke an error unfortunately, instead are silently treated 3825 as 'x'. The following induces an error, until -std is added to get 3826 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3827 array size at least. It's necessary to write '\x00'==0 to get something 3828 that's true only with -std. */ 3829int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3830 3831/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3832 inside strings and character constants. */ 3833#define FOO(x) 'x' 3834int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3835 3836int test (int i, double x); 3837struct s1 {int (*f) (int a);}; 3838struct s2 {int (*f) (double a);}; 3839int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3840int argc; 3841char **argv; 3842int 3843main () 3844{ 3845return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3846 ; 3847 return 0; 3848} 3849_ACEOF 3850for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3851 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3852do 3853 CC="$ac_save_CC $ac_arg" 3854 if ac_fn_c_try_compile "$LINENO"; then : 3855 ac_cv_prog_cc_c89=$ac_arg 3856fi 3857rm -f core conftest.err conftest.$ac_objext 3858 test "x$ac_cv_prog_cc_c89" != "xno" && break 3859done 3860rm -f conftest.$ac_ext 3861CC=$ac_save_CC 3862 3863fi 3864# AC_CACHE_VAL 3865case "x$ac_cv_prog_cc_c89" in 3866 x) 3867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3868$as_echo "none needed" >&6; } ;; 3869 xno) 3870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3871$as_echo "unsupported" >&6; } ;; 3872 *) 3873 CC="$CC $ac_cv_prog_cc_c89" 3874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3875$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3876esac 3877if test "x$ac_cv_prog_cc_c89" != xno; then : 3878 3879fi 3880 3881ac_ext=c 3882ac_cpp='$CPP $CPPFLAGS' 3883ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3884ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3885ac_compiler_gnu=$ac_cv_c_compiler_gnu 3886 3887depcc="$CC" am_compiler_list= 3888 3889{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 3890$as_echo_n "checking dependency style of $depcc... " >&6; } 3891if ${am_cv_CC_dependencies_compiler_type+:} false; then : 3892 $as_echo_n "(cached) " >&6 3893else 3894 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3895 # We make a subdir and do the tests there. Otherwise we can end up 3896 # making bogus files that we don't know about and never remove. For 3897 # instance it was reported that on HP-UX the gcc test will end up 3898 # making a dummy file named 'D' -- because '-MD' means "put the output 3899 # in D". 3900 rm -rf conftest.dir 3901 mkdir conftest.dir 3902 # Copy depcomp to subdir because otherwise we won't find it if we're 3903 # using a relative directory. 3904 cp "$am_depcomp" conftest.dir 3905 cd conftest.dir 3906 # We will build objects and dependencies in a subdirectory because 3907 # it helps to detect inapplicable dependency modes. For instance 3908 # both Tru64's cc and ICC support -MD to output dependencies as a 3909 # side effect of compilation, but ICC will put the dependencies in 3910 # the current directory while Tru64 will put them in the object 3911 # directory. 3912 mkdir sub 3913 3914 am_cv_CC_dependencies_compiler_type=none 3915 if test "$am_compiler_list" = ""; then 3916 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3917 fi 3918 am__universal=false 3919 case " $depcc " in #( 3920 *\ -arch\ *\ -arch\ *) am__universal=true ;; 3921 esac 3922 3923 for depmode in $am_compiler_list; do 3924 # Setup a source with many dependencies, because some compilers 3925 # like to wrap large dependency lists on column 80 (with \), and 3926 # we should not choose a depcomp mode which is confused by this. 3927 # 3928 # We need to recreate these files for each test, as the compiler may 3929 # overwrite some of them when testing with obscure command lines. 3930 # This happens at least with the AIX C compiler. 3931 : > sub/conftest.c 3932 for i in 1 2 3 4 5 6; do 3933 echo '#include "conftst'$i'.h"' >> sub/conftest.c 3934 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 3935 # Solaris 10 /bin/sh. 3936 echo '/* dummy */' > sub/conftst$i.h 3937 done 3938 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 3939 3940 # We check with '-c' and '-o' for the sake of the "dashmstdout" 3941 # mode. It turns out that the SunPro C++ compiler does not properly 3942 # handle '-M -o', and we need to detect this. Also, some Intel 3943 # versions had trouble with output in subdirs. 3944 am__obj=sub/conftest.${OBJEXT-o} 3945 am__minus_obj="-o $am__obj" 3946 case $depmode in 3947 gcc) 3948 # This depmode causes a compiler race in universal mode. 3949 test "$am__universal" = false || continue 3950 ;; 3951 nosideeffect) 3952 # After this tag, mechanisms are not by side-effect, so they'll 3953 # only be used when explicitly requested. 3954 if test "x$enable_dependency_tracking" = xyes; then 3955 continue 3956 else 3957 break 3958 fi 3959 ;; 3960 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 3961 # This compiler won't grok '-c -o', but also, the minuso test has 3962 # not run yet. These depmodes are late enough in the game, and 3963 # so weak that their functioning should not be impacted. 3964 am__obj=conftest.${OBJEXT-o} 3965 am__minus_obj= 3966 ;; 3967 none) break ;; 3968 esac 3969 if depmode=$depmode \ 3970 source=sub/conftest.c object=$am__obj \ 3971 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 3972 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 3973 >/dev/null 2>conftest.err && 3974 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 3975 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 3976 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 3977 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 3978 # icc doesn't choke on unknown options, it will just issue warnings 3979 # or remarks (even with -Werror). So we grep stderr for any message 3980 # that says an option was ignored or not supported. 3981 # When given -MP, icc 7.0 and 7.1 complain thusly: 3982 # icc: Command line warning: ignoring option '-M'; no argument required 3983 # The diagnosis changed in icc 8.0: 3984 # icc: Command line remark: option '-MP' not supported 3985 if (grep 'ignoring option' conftest.err || 3986 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 3987 am_cv_CC_dependencies_compiler_type=$depmode 3988 break 3989 fi 3990 fi 3991 done 3992 3993 cd .. 3994 rm -rf conftest.dir 3995else 3996 am_cv_CC_dependencies_compiler_type=none 3997fi 3998 3999fi 4000{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4001$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 4002CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4003 4004 if 4005 test "x$enable_dependency_tracking" != xno \ 4006 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4007 am__fastdepCC_TRUE= 4008 am__fastdepCC_FALSE='#' 4009else 4010 am__fastdepCC_TRUE='#' 4011 am__fastdepCC_FALSE= 4012fi 4013 4014 4015{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4016$as_echo_n "checking for a sed that does not truncate output... " >&6; } 4017if ${ac_cv_path_SED+:} false; then : 4018 $as_echo_n "(cached) " >&6 4019else 4020 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4021 for ac_i in 1 2 3 4 5 6 7; do 4022 ac_script="$ac_script$as_nl$ac_script" 4023 done 4024 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4025 { ac_script=; unset ac_script;} 4026 if test -z "$SED"; then 4027 ac_path_SED_found=false 4028 # Loop through the user's path and test for each of PROGNAME-LIST 4029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4030for as_dir in $PATH 4031do 4032 IFS=$as_save_IFS 4033 test -z "$as_dir" && as_dir=. 4034 for ac_prog in sed gsed; do 4035 for ac_exec_ext in '' $ac_executable_extensions; do 4036 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 4037 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue 4038# Check for GNU ac_path_SED and select it if it is found. 4039 # Check for GNU $ac_path_SED 4040case `"$ac_path_SED" --version 2>&1` in 4041*GNU*) 4042 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4043*) 4044 ac_count=0 4045 $as_echo_n 0123456789 >"conftest.in" 4046 while : 4047 do 4048 cat "conftest.in" "conftest.in" >"conftest.tmp" 4049 mv "conftest.tmp" "conftest.in" 4050 cp "conftest.in" "conftest.nl" 4051 $as_echo '' >> "conftest.nl" 4052 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4053 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4054 as_fn_arith $ac_count + 1 && ac_count=$as_val 4055 if test $ac_count -gt ${ac_path_SED_max-0}; then 4056 # Best one so far, save it but keep looking for a better one 4057 ac_cv_path_SED="$ac_path_SED" 4058 ac_path_SED_max=$ac_count 4059 fi 4060 # 10*(2^10) chars as input seems more than enough 4061 test $ac_count -gt 10 && break 4062 done 4063 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4064esac 4065 4066 $ac_path_SED_found && break 3 4067 done 4068 done 4069 done 4070IFS=$as_save_IFS 4071 if test -z "$ac_cv_path_SED"; then 4072 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 4073 fi 4074else 4075 ac_cv_path_SED=$SED 4076fi 4077 4078fi 4079{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4080$as_echo "$ac_cv_path_SED" >&6; } 4081 SED="$ac_cv_path_SED" 4082 rm -f conftest.sed 4083 4084test -z "$SED" && SED=sed 4085Xsed="$SED -e 1s/^X//" 4086 4087 4088 4089 4090 4091 4092 4093 4094 4095 4096 4097{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4098$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4099if ${ac_cv_path_GREP+:} false; then : 4100 $as_echo_n "(cached) " >&6 4101else 4102 if test -z "$GREP"; then 4103 ac_path_GREP_found=false 4104 # Loop through the user's path and test for each of PROGNAME-LIST 4105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4106for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4107do 4108 IFS=$as_save_IFS 4109 test -z "$as_dir" && as_dir=. 4110 for ac_prog in grep ggrep; do 4111 for ac_exec_ext in '' $ac_executable_extensions; do 4112 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4113 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 4114# Check for GNU ac_path_GREP and select it if it is found. 4115 # Check for GNU $ac_path_GREP 4116case `"$ac_path_GREP" --version 2>&1` in 4117*GNU*) 4118 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4119*) 4120 ac_count=0 4121 $as_echo_n 0123456789 >"conftest.in" 4122 while : 4123 do 4124 cat "conftest.in" "conftest.in" >"conftest.tmp" 4125 mv "conftest.tmp" "conftest.in" 4126 cp "conftest.in" "conftest.nl" 4127 $as_echo 'GREP' >> "conftest.nl" 4128 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4129 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4130 as_fn_arith $ac_count + 1 && ac_count=$as_val 4131 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4132 # Best one so far, save it but keep looking for a better one 4133 ac_cv_path_GREP="$ac_path_GREP" 4134 ac_path_GREP_max=$ac_count 4135 fi 4136 # 10*(2^10) chars as input seems more than enough 4137 test $ac_count -gt 10 && break 4138 done 4139 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4140esac 4141 4142 $ac_path_GREP_found && break 3 4143 done 4144 done 4145 done 4146IFS=$as_save_IFS 4147 if test -z "$ac_cv_path_GREP"; then 4148 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4149 fi 4150else 4151 ac_cv_path_GREP=$GREP 4152fi 4153 4154fi 4155{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4156$as_echo "$ac_cv_path_GREP" >&6; } 4157 GREP="$ac_cv_path_GREP" 4158 4159 4160{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4161$as_echo_n "checking for egrep... " >&6; } 4162if ${ac_cv_path_EGREP+:} false; then : 4163 $as_echo_n "(cached) " >&6 4164else 4165 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4166 then ac_cv_path_EGREP="$GREP -E" 4167 else 4168 if test -z "$EGREP"; then 4169 ac_path_EGREP_found=false 4170 # Loop through the user's path and test for each of PROGNAME-LIST 4171 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4172for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4173do 4174 IFS=$as_save_IFS 4175 test -z "$as_dir" && as_dir=. 4176 for ac_prog in egrep; do 4177 for ac_exec_ext in '' $ac_executable_extensions; do 4178 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4179 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 4180# Check for GNU ac_path_EGREP and select it if it is found. 4181 # Check for GNU $ac_path_EGREP 4182case `"$ac_path_EGREP" --version 2>&1` in 4183*GNU*) 4184 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4185*) 4186 ac_count=0 4187 $as_echo_n 0123456789 >"conftest.in" 4188 while : 4189 do 4190 cat "conftest.in" "conftest.in" >"conftest.tmp" 4191 mv "conftest.tmp" "conftest.in" 4192 cp "conftest.in" "conftest.nl" 4193 $as_echo 'EGREP' >> "conftest.nl" 4194 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4195 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4196 as_fn_arith $ac_count + 1 && ac_count=$as_val 4197 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4198 # Best one so far, save it but keep looking for a better one 4199 ac_cv_path_EGREP="$ac_path_EGREP" 4200 ac_path_EGREP_max=$ac_count 4201 fi 4202 # 10*(2^10) chars as input seems more than enough 4203 test $ac_count -gt 10 && break 4204 done 4205 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4206esac 4207 4208 $ac_path_EGREP_found && break 3 4209 done 4210 done 4211 done 4212IFS=$as_save_IFS 4213 if test -z "$ac_cv_path_EGREP"; then 4214 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4215 fi 4216else 4217 ac_cv_path_EGREP=$EGREP 4218fi 4219 4220 fi 4221fi 4222{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4223$as_echo "$ac_cv_path_EGREP" >&6; } 4224 EGREP="$ac_cv_path_EGREP" 4225 4226 4227{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 4228$as_echo_n "checking for fgrep... " >&6; } 4229if ${ac_cv_path_FGREP+:} false; then : 4230 $as_echo_n "(cached) " >&6 4231else 4232 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 4233 then ac_cv_path_FGREP="$GREP -F" 4234 else 4235 if test -z "$FGREP"; then 4236 ac_path_FGREP_found=false 4237 # Loop through the user's path and test for each of PROGNAME-LIST 4238 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4239for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4240do 4241 IFS=$as_save_IFS 4242 test -z "$as_dir" && as_dir=. 4243 for ac_prog in fgrep; do 4244 for ac_exec_ext in '' $ac_executable_extensions; do 4245 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 4246 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue 4247# Check for GNU ac_path_FGREP and select it if it is found. 4248 # Check for GNU $ac_path_FGREP 4249case `"$ac_path_FGREP" --version 2>&1` in 4250*GNU*) 4251 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 4252*) 4253 ac_count=0 4254 $as_echo_n 0123456789 >"conftest.in" 4255 while : 4256 do 4257 cat "conftest.in" "conftest.in" >"conftest.tmp" 4258 mv "conftest.tmp" "conftest.in" 4259 cp "conftest.in" "conftest.nl" 4260 $as_echo 'FGREP' >> "conftest.nl" 4261 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 4262 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4263 as_fn_arith $ac_count + 1 && ac_count=$as_val 4264 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 4265 # Best one so far, save it but keep looking for a better one 4266 ac_cv_path_FGREP="$ac_path_FGREP" 4267 ac_path_FGREP_max=$ac_count 4268 fi 4269 # 10*(2^10) chars as input seems more than enough 4270 test $ac_count -gt 10 && break 4271 done 4272 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4273esac 4274 4275 $ac_path_FGREP_found && break 3 4276 done 4277 done 4278 done 4279IFS=$as_save_IFS 4280 if test -z "$ac_cv_path_FGREP"; then 4281 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4282 fi 4283else 4284 ac_cv_path_FGREP=$FGREP 4285fi 4286 4287 fi 4288fi 4289{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 4290$as_echo "$ac_cv_path_FGREP" >&6; } 4291 FGREP="$ac_cv_path_FGREP" 4292 4293 4294test -z "$GREP" && GREP=grep 4295 4296 4297 4298 4299 4300 4301 4302 4303 4304 4305 4306 4307 4308 4309 4310 4311 4312 4313 4314# Check whether --with-gnu-ld was given. 4315if test "${with_gnu_ld+set}" = set; then : 4316 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 4317else 4318 with_gnu_ld=no 4319fi 4320 4321ac_prog=ld 4322if test "$GCC" = yes; then 4323 # Check if gcc -print-prog-name=ld gives a path. 4324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 4325$as_echo_n "checking for ld used by $CC... " >&6; } 4326 case $host in 4327 *-*-mingw*) 4328 # gcc leaves a trailing carriage return which upsets mingw 4329 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 4330 *) 4331 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 4332 esac 4333 case $ac_prog in 4334 # Accept absolute paths. 4335 [\\/]* | ?:[\\/]*) 4336 re_direlt='/[^/][^/]*/\.\./' 4337 # Canonicalize the pathname of ld 4338 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 4339 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 4340 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 4341 done 4342 test -z "$LD" && LD="$ac_prog" 4343 ;; 4344 "") 4345 # If it fails, then pretend we aren't using GCC. 4346 ac_prog=ld 4347 ;; 4348 *) 4349 # If it is relative, then search for the first ld in PATH. 4350 with_gnu_ld=unknown 4351 ;; 4352 esac 4353elif test "$with_gnu_ld" = yes; then 4354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 4355$as_echo_n "checking for GNU ld... " >&6; } 4356else 4357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 4358$as_echo_n "checking for non-GNU ld... " >&6; } 4359fi 4360if ${lt_cv_path_LD+:} false; then : 4361 $as_echo_n "(cached) " >&6 4362else 4363 if test -z "$LD"; then 4364 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4365 for ac_dir in $PATH; do 4366 IFS="$lt_save_ifs" 4367 test -z "$ac_dir" && ac_dir=. 4368 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 4369 lt_cv_path_LD="$ac_dir/$ac_prog" 4370 # Check to see if the program is GNU ld. I'd rather use --version, 4371 # but apparently some variants of GNU ld only accept -v. 4372 # Break only if it was the GNU/non-GNU ld that we prefer. 4373 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 4374 *GNU* | *'with BFD'*) 4375 test "$with_gnu_ld" != no && break 4376 ;; 4377 *) 4378 test "$with_gnu_ld" != yes && break 4379 ;; 4380 esac 4381 fi 4382 done 4383 IFS="$lt_save_ifs" 4384else 4385 lt_cv_path_LD="$LD" # Let the user override the test with a path. 4386fi 4387fi 4388 4389LD="$lt_cv_path_LD" 4390if test -n "$LD"; then 4391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 4392$as_echo "$LD" >&6; } 4393else 4394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4395$as_echo "no" >&6; } 4396fi 4397test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 4398{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 4399$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 4400if ${lt_cv_prog_gnu_ld+:} false; then : 4401 $as_echo_n "(cached) " >&6 4402else 4403 # I'd rather use --version here, but apparently some GNU lds only accept -v. 4404case `$LD -v 2>&1 </dev/null` in 4405*GNU* | *'with BFD'*) 4406 lt_cv_prog_gnu_ld=yes 4407 ;; 4408*) 4409 lt_cv_prog_gnu_ld=no 4410 ;; 4411esac 4412fi 4413{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 4414$as_echo "$lt_cv_prog_gnu_ld" >&6; } 4415with_gnu_ld=$lt_cv_prog_gnu_ld 4416 4417 4418 4419 4420 4421 4422 4423 4424 4425{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 4426$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 4427if ${lt_cv_path_NM+:} false; then : 4428 $as_echo_n "(cached) " >&6 4429else 4430 if test -n "$NM"; then 4431 # Let the user override the test. 4432 lt_cv_path_NM="$NM" 4433else 4434 lt_nm_to_check="${ac_tool_prefix}nm" 4435 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 4436 lt_nm_to_check="$lt_nm_to_check nm" 4437 fi 4438 for lt_tmp_nm in $lt_nm_to_check; do 4439 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4440 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 4441 IFS="$lt_save_ifs" 4442 test -z "$ac_dir" && ac_dir=. 4443 tmp_nm="$ac_dir/$lt_tmp_nm" 4444 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 4445 # Check to see if the nm accepts a BSD-compat flag. 4446 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 4447 # nm: unknown option "B" ignored 4448 # Tru64's nm complains that /dev/null is an invalid object file 4449 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 4450 */dev/null* | *'Invalid file or object type'*) 4451 lt_cv_path_NM="$tmp_nm -B" 4452 break 4453 ;; 4454 *) 4455 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 4456 */dev/null*) 4457 lt_cv_path_NM="$tmp_nm -p" 4458 break 4459 ;; 4460 *) 4461 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 4462 continue # so that we can try to find one that supports BSD flags 4463 ;; 4464 esac 4465 ;; 4466 esac 4467 fi 4468 done 4469 IFS="$lt_save_ifs" 4470 done 4471 : ${lt_cv_path_NM=no} 4472fi 4473fi 4474{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 4475$as_echo "$lt_cv_path_NM" >&6; } 4476if test "$lt_cv_path_NM" != "no"; then 4477 NM="$lt_cv_path_NM" 4478else 4479 # Didn't find any BSD compatible name lister, look for dumpbin. 4480 if test -n "$DUMPBIN"; then : 4481 # Let the user override the test. 4482 else 4483 if test -n "$ac_tool_prefix"; then 4484 for ac_prog in dumpbin "link -dump" 4485 do 4486 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4487set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4488{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4489$as_echo_n "checking for $ac_word... " >&6; } 4490if ${ac_cv_prog_DUMPBIN+:} false; then : 4491 $as_echo_n "(cached) " >&6 4492else 4493 if test -n "$DUMPBIN"; then 4494 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 4495else 4496as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4497for as_dir in $PATH 4498do 4499 IFS=$as_save_IFS 4500 test -z "$as_dir" && as_dir=. 4501 for ac_exec_ext in '' $ac_executable_extensions; do 4502 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4503 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 4504 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4505 break 2 4506 fi 4507done 4508 done 4509IFS=$as_save_IFS 4510 4511fi 4512fi 4513DUMPBIN=$ac_cv_prog_DUMPBIN 4514if test -n "$DUMPBIN"; then 4515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 4516$as_echo "$DUMPBIN" >&6; } 4517else 4518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4519$as_echo "no" >&6; } 4520fi 4521 4522 4523 test -n "$DUMPBIN" && break 4524 done 4525fi 4526if test -z "$DUMPBIN"; then 4527 ac_ct_DUMPBIN=$DUMPBIN 4528 for ac_prog in dumpbin "link -dump" 4529do 4530 # Extract the first word of "$ac_prog", so it can be a program name with args. 4531set dummy $ac_prog; ac_word=$2 4532{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4533$as_echo_n "checking for $ac_word... " >&6; } 4534if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 4535 $as_echo_n "(cached) " >&6 4536else 4537 if test -n "$ac_ct_DUMPBIN"; then 4538 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 4539else 4540as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4541for as_dir in $PATH 4542do 4543 IFS=$as_save_IFS 4544 test -z "$as_dir" && as_dir=. 4545 for ac_exec_ext in '' $ac_executable_extensions; do 4546 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4547 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 4548 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4549 break 2 4550 fi 4551done 4552 done 4553IFS=$as_save_IFS 4554 4555fi 4556fi 4557ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 4558if test -n "$ac_ct_DUMPBIN"; then 4559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 4560$as_echo "$ac_ct_DUMPBIN" >&6; } 4561else 4562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4563$as_echo "no" >&6; } 4564fi 4565 4566 4567 test -n "$ac_ct_DUMPBIN" && break 4568done 4569 4570 if test "x$ac_ct_DUMPBIN" = x; then 4571 DUMPBIN=":" 4572 else 4573 case $cross_compiling:$ac_tool_warned in 4574yes:) 4575{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4576$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4577ac_tool_warned=yes ;; 4578esac 4579 DUMPBIN=$ac_ct_DUMPBIN 4580 fi 4581fi 4582 4583 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in 4584 *COFF*) 4585 DUMPBIN="$DUMPBIN -symbols" 4586 ;; 4587 *) 4588 DUMPBIN=: 4589 ;; 4590 esac 4591 fi 4592 4593 if test "$DUMPBIN" != ":"; then 4594 NM="$DUMPBIN" 4595 fi 4596fi 4597test -z "$NM" && NM=nm 4598 4599 4600 4601 4602 4603 4604{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 4605$as_echo_n "checking the name lister ($NM) interface... " >&6; } 4606if ${lt_cv_nm_interface+:} false; then : 4607 $as_echo_n "(cached) " >&6 4608else 4609 lt_cv_nm_interface="BSD nm" 4610 echo "int some_variable = 0;" > conftest.$ac_ext 4611 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 4612 (eval "$ac_compile" 2>conftest.err) 4613 cat conftest.err >&5 4614 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 4615 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 4616 cat conftest.err >&5 4617 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 4618 cat conftest.out >&5 4619 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 4620 lt_cv_nm_interface="MS dumpbin" 4621 fi 4622 rm -f conftest* 4623fi 4624{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 4625$as_echo "$lt_cv_nm_interface" >&6; } 4626 4627{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 4628$as_echo_n "checking whether ln -s works... " >&6; } 4629LN_S=$as_ln_s 4630if test "$LN_S" = "ln -s"; then 4631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4632$as_echo "yes" >&6; } 4633else 4634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 4635$as_echo "no, using $LN_S" >&6; } 4636fi 4637 4638# find the maximum length of command line arguments 4639{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 4640$as_echo_n "checking the maximum length of command line arguments... " >&6; } 4641if ${lt_cv_sys_max_cmd_len+:} false; then : 4642 $as_echo_n "(cached) " >&6 4643else 4644 i=0 4645 teststring="ABCD" 4646 4647 case $build_os in 4648 msdosdjgpp*) 4649 # On DJGPP, this test can blow up pretty badly due to problems in libc 4650 # (any single argument exceeding 2000 bytes causes a buffer overrun 4651 # during glob expansion). Even if it were fixed, the result of this 4652 # check would be larger than it should be. 4653 lt_cv_sys_max_cmd_len=12288; # 12K is about right 4654 ;; 4655 4656 gnu*) 4657 # Under GNU Hurd, this test is not required because there is 4658 # no limit to the length of command line arguments. 4659 # Libtool will interpret -1 as no limit whatsoever 4660 lt_cv_sys_max_cmd_len=-1; 4661 ;; 4662 4663 cygwin* | mingw* | cegcc*) 4664 # On Win9x/ME, this test blows up -- it succeeds, but takes 4665 # about 5 minutes as the teststring grows exponentially. 4666 # Worse, since 9x/ME are not pre-emptively multitasking, 4667 # you end up with a "frozen" computer, even though with patience 4668 # the test eventually succeeds (with a max line length of 256k). 4669 # Instead, let's just punt: use the minimum linelength reported by 4670 # all of the supported platforms: 8192 (on NT/2K/XP). 4671 lt_cv_sys_max_cmd_len=8192; 4672 ;; 4673 4674 mint*) 4675 # On MiNT this can take a long time and run out of memory. 4676 lt_cv_sys_max_cmd_len=8192; 4677 ;; 4678 4679 amigaos*) 4680 # On AmigaOS with pdksh, this test takes hours, literally. 4681 # So we just punt and use a minimum line length of 8192. 4682 lt_cv_sys_max_cmd_len=8192; 4683 ;; 4684 4685 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 4686 # This has been around since 386BSD, at least. Likely further. 4687 if test -x /sbin/sysctl; then 4688 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 4689 elif test -x /usr/sbin/sysctl; then 4690 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 4691 else 4692 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 4693 fi 4694 # And add a safety zone 4695 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 4696 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 4697 ;; 4698 4699 interix*) 4700 # We know the value 262144 and hardcode it with a safety zone (like BSD) 4701 lt_cv_sys_max_cmd_len=196608 4702 ;; 4703 4704 os2*) 4705 # The test takes a long time on OS/2. 4706 lt_cv_sys_max_cmd_len=8192 4707 ;; 4708 4709 osf*) 4710 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 4711 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 4712 # nice to cause kernel panics so lets avoid the loop below. 4713 # First set a reasonable default. 4714 lt_cv_sys_max_cmd_len=16384 4715 # 4716 if test -x /sbin/sysconfig; then 4717 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 4718 *1*) lt_cv_sys_max_cmd_len=-1 ;; 4719 esac 4720 fi 4721 ;; 4722 sco3.2v5*) 4723 lt_cv_sys_max_cmd_len=102400 4724 ;; 4725 sysv5* | sco5v6* | sysv4.2uw2*) 4726 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 4727 if test -n "$kargmax"; then 4728 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 4729 else 4730 lt_cv_sys_max_cmd_len=32768 4731 fi 4732 ;; 4733 *) 4734 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 4735 if test -n "$lt_cv_sys_max_cmd_len"; then 4736 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 4737 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 4738 else 4739 # Make teststring a little bigger before we do anything with it. 4740 # a 1K string should be a reasonable start. 4741 for i in 1 2 3 4 5 6 7 8 ; do 4742 teststring=$teststring$teststring 4743 done 4744 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 4745 # If test is not a shell built-in, we'll probably end up computing a 4746 # maximum length that is only half of the actual maximum length, but 4747 # we can't tell. 4748 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \ 4749 = "X$teststring$teststring"; } >/dev/null 2>&1 && 4750 test $i != 17 # 1/2 MB should be enough 4751 do 4752 i=`expr $i + 1` 4753 teststring=$teststring$teststring 4754 done 4755 # Only check the string length outside the loop. 4756 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 4757 teststring= 4758 # Add a significant safety factor because C++ compilers can tack on 4759 # massive amounts of additional arguments before passing them to the 4760 # linker. It appears as though 1/2 is a usable value. 4761 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 4762 fi 4763 ;; 4764 esac 4765 4766fi 4767 4768if test -n $lt_cv_sys_max_cmd_len ; then 4769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 4770$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 4771else 4772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 4773$as_echo "none" >&6; } 4774fi 4775max_cmd_len=$lt_cv_sys_max_cmd_len 4776 4777 4778 4779 4780 4781 4782: ${CP="cp -f"} 4783: ${MV="mv -f"} 4784: ${RM="rm -f"} 4785 4786{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 4787$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } 4788# Try some XSI features 4789xsi_shell=no 4790( _lt_dummy="a/b/c" 4791 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \ 4792 = c,a/b,b/c, \ 4793 && eval 'test $(( 1 + 1 )) -eq 2 \ 4794 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ 4795 && xsi_shell=yes 4796{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 4797$as_echo "$xsi_shell" >&6; } 4798 4799 4800{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 4801$as_echo_n "checking whether the shell understands \"+=\"... " >&6; } 4802lt_shell_append=no 4803( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ 4804 >/dev/null 2>&1 \ 4805 && lt_shell_append=yes 4806{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 4807$as_echo "$lt_shell_append" >&6; } 4808 4809 4810if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 4811 lt_unset=unset 4812else 4813 lt_unset=false 4814fi 4815 4816 4817 4818 4819 4820# test EBCDIC or ASCII 4821case `echo X|tr X '\101'` in 4822 A) # ASCII based system 4823 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 4824 lt_SP2NL='tr \040 \012' 4825 lt_NL2SP='tr \015\012 \040\040' 4826 ;; 4827 *) # EBCDIC based system 4828 lt_SP2NL='tr \100 \n' 4829 lt_NL2SP='tr \r\n \100\100' 4830 ;; 4831esac 4832 4833 4834 4835 4836 4837 4838 4839 4840 4841{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 4842$as_echo_n "checking how to convert $build file names to $host format... " >&6; } 4843if ${lt_cv_to_host_file_cmd+:} false; then : 4844 $as_echo_n "(cached) " >&6 4845else 4846 case $host in 4847 *-*-mingw* ) 4848 case $build in 4849 *-*-mingw* ) # actually msys 4850 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 4851 ;; 4852 *-*-cygwin* ) 4853 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 4854 ;; 4855 * ) # otherwise, assume *nix 4856 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 4857 ;; 4858 esac 4859 ;; 4860 *-*-cygwin* ) 4861 case $build in 4862 *-*-mingw* ) # actually msys 4863 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 4864 ;; 4865 *-*-cygwin* ) 4866 lt_cv_to_host_file_cmd=func_convert_file_noop 4867 ;; 4868 * ) # otherwise, assume *nix 4869 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 4870 ;; 4871 esac 4872 ;; 4873 * ) # unhandled hosts (and "normal" native builds) 4874 lt_cv_to_host_file_cmd=func_convert_file_noop 4875 ;; 4876esac 4877 4878fi 4879 4880to_host_file_cmd=$lt_cv_to_host_file_cmd 4881{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 4882$as_echo "$lt_cv_to_host_file_cmd" >&6; } 4883 4884 4885 4886 4887 4888{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 4889$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } 4890if ${lt_cv_to_tool_file_cmd+:} false; then : 4891 $as_echo_n "(cached) " >&6 4892else 4893 #assume ordinary cross tools, or native build. 4894lt_cv_to_tool_file_cmd=func_convert_file_noop 4895case $host in 4896 *-*-mingw* ) 4897 case $build in 4898 *-*-mingw* ) # actually msys 4899 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 4900 ;; 4901 esac 4902 ;; 4903esac 4904 4905fi 4906 4907to_tool_file_cmd=$lt_cv_to_tool_file_cmd 4908{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 4909$as_echo "$lt_cv_to_tool_file_cmd" >&6; } 4910 4911 4912 4913 4914 4915{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 4916$as_echo_n "checking for $LD option to reload object files... " >&6; } 4917if ${lt_cv_ld_reload_flag+:} false; then : 4918 $as_echo_n "(cached) " >&6 4919else 4920 lt_cv_ld_reload_flag='-r' 4921fi 4922{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 4923$as_echo "$lt_cv_ld_reload_flag" >&6; } 4924reload_flag=$lt_cv_ld_reload_flag 4925case $reload_flag in 4926"" | " "*) ;; 4927*) reload_flag=" $reload_flag" ;; 4928esac 4929reload_cmds='$LD$reload_flag -o $output$reload_objs' 4930case $host_os in 4931 cygwin* | mingw* | pw32* | cegcc*) 4932 if test "$GCC" != yes; then 4933 reload_cmds=false 4934 fi 4935 ;; 4936 darwin*) 4937 if test "$GCC" = yes; then 4938 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 4939 else 4940 reload_cmds='$LD$reload_flag -o $output$reload_objs' 4941 fi 4942 ;; 4943esac 4944 4945 4946 4947 4948 4949 4950 4951 4952 4953if test -n "$ac_tool_prefix"; then 4954 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 4955set dummy ${ac_tool_prefix}objdump; ac_word=$2 4956{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4957$as_echo_n "checking for $ac_word... " >&6; } 4958if ${ac_cv_prog_OBJDUMP+:} false; then : 4959 $as_echo_n "(cached) " >&6 4960else 4961 if test -n "$OBJDUMP"; then 4962 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 4963else 4964as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4965for as_dir in $PATH 4966do 4967 IFS=$as_save_IFS 4968 test -z "$as_dir" && as_dir=. 4969 for ac_exec_ext in '' $ac_executable_extensions; do 4970 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4971 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 4972 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4973 break 2 4974 fi 4975done 4976 done 4977IFS=$as_save_IFS 4978 4979fi 4980fi 4981OBJDUMP=$ac_cv_prog_OBJDUMP 4982if test -n "$OBJDUMP"; then 4983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 4984$as_echo "$OBJDUMP" >&6; } 4985else 4986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4987$as_echo "no" >&6; } 4988fi 4989 4990 4991fi 4992if test -z "$ac_cv_prog_OBJDUMP"; then 4993 ac_ct_OBJDUMP=$OBJDUMP 4994 # Extract the first word of "objdump", so it can be a program name with args. 4995set dummy objdump; ac_word=$2 4996{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4997$as_echo_n "checking for $ac_word... " >&6; } 4998if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 4999 $as_echo_n "(cached) " >&6 5000else 5001 if test -n "$ac_ct_OBJDUMP"; then 5002 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 5003else 5004as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5005for as_dir in $PATH 5006do 5007 IFS=$as_save_IFS 5008 test -z "$as_dir" && as_dir=. 5009 for ac_exec_ext in '' $ac_executable_extensions; do 5010 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5011 ac_cv_prog_ac_ct_OBJDUMP="objdump" 5012 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5013 break 2 5014 fi 5015done 5016 done 5017IFS=$as_save_IFS 5018 5019fi 5020fi 5021ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 5022if test -n "$ac_ct_OBJDUMP"; then 5023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 5024$as_echo "$ac_ct_OBJDUMP" >&6; } 5025else 5026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5027$as_echo "no" >&6; } 5028fi 5029 5030 if test "x$ac_ct_OBJDUMP" = x; then 5031 OBJDUMP="false" 5032 else 5033 case $cross_compiling:$ac_tool_warned in 5034yes:) 5035{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5036$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5037ac_tool_warned=yes ;; 5038esac 5039 OBJDUMP=$ac_ct_OBJDUMP 5040 fi 5041else 5042 OBJDUMP="$ac_cv_prog_OBJDUMP" 5043fi 5044 5045test -z "$OBJDUMP" && OBJDUMP=objdump 5046 5047 5048 5049 5050 5051 5052 5053 5054 5055{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 5056$as_echo_n "checking how to recognize dependent libraries... " >&6; } 5057if ${lt_cv_deplibs_check_method+:} false; then : 5058 $as_echo_n "(cached) " >&6 5059else 5060 lt_cv_file_magic_cmd='$MAGIC_CMD' 5061lt_cv_file_magic_test_file= 5062lt_cv_deplibs_check_method='unknown' 5063# Need to set the preceding variable on all platforms that support 5064# interlibrary dependencies. 5065# 'none' -- dependencies not supported. 5066# `unknown' -- same as none, but documents that we really don't know. 5067# 'pass_all' -- all dependencies passed with no checks. 5068# 'test_compile' -- check by making test program. 5069# 'file_magic [[regex]]' -- check by looking for files in library path 5070# which responds to the $file_magic_cmd with a given extended regex. 5071# If you have `file' or equivalent on your system and you're not sure 5072# whether `pass_all' will *always* work, you probably want this one. 5073 5074case $host_os in 5075aix[4-9]*) 5076 lt_cv_deplibs_check_method=pass_all 5077 ;; 5078 5079beos*) 5080 lt_cv_deplibs_check_method=pass_all 5081 ;; 5082 5083bsdi[45]*) 5084 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 5085 lt_cv_file_magic_cmd='/usr/bin/file -L' 5086 lt_cv_file_magic_test_file=/shlib/libc.so 5087 ;; 5088 5089cygwin*) 5090 # func_win32_libid is a shell function defined in ltmain.sh 5091 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5092 lt_cv_file_magic_cmd='func_win32_libid' 5093 ;; 5094 5095mingw* | pw32*) 5096 # Base MSYS/MinGW do not provide the 'file' command needed by 5097 # func_win32_libid shell function, so use a weaker test based on 'objdump', 5098 # unless we find 'file', for example because we are cross-compiling. 5099 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin. 5100 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then 5101 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5102 lt_cv_file_magic_cmd='func_win32_libid' 5103 else 5104 # Keep this pattern in sync with the one in func_win32_libid. 5105 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 5106 lt_cv_file_magic_cmd='$OBJDUMP -f' 5107 fi 5108 ;; 5109 5110cegcc*) 5111 # use the weaker test based on 'objdump'. See mingw*. 5112 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 5113 lt_cv_file_magic_cmd='$OBJDUMP -f' 5114 ;; 5115 5116darwin* | rhapsody*) 5117 lt_cv_deplibs_check_method=pass_all 5118 ;; 5119 5120freebsd* | dragonfly*) 5121 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5122 case $host_cpu in 5123 i*86 ) 5124 # Not sure whether the presence of OpenBSD here was a mistake. 5125 # Let's accept both of them until this is cleared up. 5126 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 5127 lt_cv_file_magic_cmd=/usr/bin/file 5128 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 5129 ;; 5130 esac 5131 else 5132 lt_cv_deplibs_check_method=pass_all 5133 fi 5134 ;; 5135 5136gnu*) 5137 lt_cv_deplibs_check_method=pass_all 5138 ;; 5139 5140haiku*) 5141 lt_cv_deplibs_check_method=pass_all 5142 ;; 5143 5144hpux10.20* | hpux11*) 5145 lt_cv_file_magic_cmd=/usr/bin/file 5146 case $host_cpu in 5147 ia64*) 5148 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 5149 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 5150 ;; 5151 hppa*64*) 5152 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]' 5153 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 5154 ;; 5155 *) 5156 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 5157 lt_cv_file_magic_test_file=/usr/lib/libc.sl 5158 ;; 5159 esac 5160 ;; 5161 5162interix[3-9]*) 5163 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 5164 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 5165 ;; 5166 5167irix5* | irix6* | nonstopux*) 5168 case $LD in 5169 *-32|*"-32 ") libmagic=32-bit;; 5170 *-n32|*"-n32 ") libmagic=N32;; 5171 *-64|*"-64 ") libmagic=64-bit;; 5172 *) libmagic=never-match;; 5173 esac 5174 lt_cv_deplibs_check_method=pass_all 5175 ;; 5176 5177# This must be glibc/ELF. 5178linux* | k*bsd*-gnu | kopensolaris*-gnu) 5179 lt_cv_deplibs_check_method=pass_all 5180 ;; 5181 5182netbsd*) 5183 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5184 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5185 else 5186 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 5187 fi 5188 ;; 5189 5190newos6*) 5191 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 5192 lt_cv_file_magic_cmd=/usr/bin/file 5193 lt_cv_file_magic_test_file=/usr/lib/libnls.so 5194 ;; 5195 5196*nto* | *qnx*) 5197 lt_cv_deplibs_check_method=pass_all 5198 ;; 5199 5200openbsd*) 5201 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 5202 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 5203 else 5204 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5205 fi 5206 ;; 5207 5208osf3* | osf4* | osf5*) 5209 lt_cv_deplibs_check_method=pass_all 5210 ;; 5211 5212rdos*) 5213 lt_cv_deplibs_check_method=pass_all 5214 ;; 5215 5216solaris*) 5217 lt_cv_deplibs_check_method=pass_all 5218 ;; 5219 5220sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 5221 lt_cv_deplibs_check_method=pass_all 5222 ;; 5223 5224sysv4 | sysv4.3*) 5225 case $host_vendor in 5226 motorola) 5227 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]' 5228 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 5229 ;; 5230 ncr) 5231 lt_cv_deplibs_check_method=pass_all 5232 ;; 5233 sequent) 5234 lt_cv_file_magic_cmd='/bin/file' 5235 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 5236 ;; 5237 sni) 5238 lt_cv_file_magic_cmd='/bin/file' 5239 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 5240 lt_cv_file_magic_test_file=/lib/libc.so 5241 ;; 5242 siemens) 5243 lt_cv_deplibs_check_method=pass_all 5244 ;; 5245 pc) 5246 lt_cv_deplibs_check_method=pass_all 5247 ;; 5248 esac 5249 ;; 5250 5251tpf*) 5252 lt_cv_deplibs_check_method=pass_all 5253 ;; 5254esac 5255 5256fi 5257{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 5258$as_echo "$lt_cv_deplibs_check_method" >&6; } 5259 5260file_magic_glob= 5261want_nocaseglob=no 5262if test "$build" = "$host"; then 5263 case $host_os in 5264 mingw* | pw32*) 5265 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 5266 want_nocaseglob=yes 5267 else 5268 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 5269 fi 5270 ;; 5271 esac 5272fi 5273 5274file_magic_cmd=$lt_cv_file_magic_cmd 5275deplibs_check_method=$lt_cv_deplibs_check_method 5276test -z "$deplibs_check_method" && deplibs_check_method=unknown 5277 5278 5279 5280 5281 5282 5283 5284 5285 5286 5287 5288 5289 5290 5291 5292 5293 5294 5295 5296 5297 5298 5299if test -n "$ac_tool_prefix"; then 5300 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 5301set dummy ${ac_tool_prefix}dlltool; ac_word=$2 5302{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5303$as_echo_n "checking for $ac_word... " >&6; } 5304if ${ac_cv_prog_DLLTOOL+:} false; then : 5305 $as_echo_n "(cached) " >&6 5306else 5307 if test -n "$DLLTOOL"; then 5308 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 5309else 5310as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5311for as_dir in $PATH 5312do 5313 IFS=$as_save_IFS 5314 test -z "$as_dir" && as_dir=. 5315 for ac_exec_ext in '' $ac_executable_extensions; do 5316 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5317 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 5318 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5319 break 2 5320 fi 5321done 5322 done 5323IFS=$as_save_IFS 5324 5325fi 5326fi 5327DLLTOOL=$ac_cv_prog_DLLTOOL 5328if test -n "$DLLTOOL"; then 5329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 5330$as_echo "$DLLTOOL" >&6; } 5331else 5332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5333$as_echo "no" >&6; } 5334fi 5335 5336 5337fi 5338if test -z "$ac_cv_prog_DLLTOOL"; then 5339 ac_ct_DLLTOOL=$DLLTOOL 5340 # Extract the first word of "dlltool", so it can be a program name with args. 5341set dummy dlltool; ac_word=$2 5342{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5343$as_echo_n "checking for $ac_word... " >&6; } 5344if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 5345 $as_echo_n "(cached) " >&6 5346else 5347 if test -n "$ac_ct_DLLTOOL"; then 5348 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 5349else 5350as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5351for as_dir in $PATH 5352do 5353 IFS=$as_save_IFS 5354 test -z "$as_dir" && as_dir=. 5355 for ac_exec_ext in '' $ac_executable_extensions; do 5356 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5357 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 5358 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5359 break 2 5360 fi 5361done 5362 done 5363IFS=$as_save_IFS 5364 5365fi 5366fi 5367ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 5368if test -n "$ac_ct_DLLTOOL"; then 5369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 5370$as_echo "$ac_ct_DLLTOOL" >&6; } 5371else 5372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5373$as_echo "no" >&6; } 5374fi 5375 5376 if test "x$ac_ct_DLLTOOL" = x; then 5377 DLLTOOL="false" 5378 else 5379 case $cross_compiling:$ac_tool_warned in 5380yes:) 5381{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5382$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5383ac_tool_warned=yes ;; 5384esac 5385 DLLTOOL=$ac_ct_DLLTOOL 5386 fi 5387else 5388 DLLTOOL="$ac_cv_prog_DLLTOOL" 5389fi 5390 5391test -z "$DLLTOOL" && DLLTOOL=dlltool 5392 5393 5394 5395 5396 5397 5398 5399 5400 5401 5402{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 5403$as_echo_n "checking how to associate runtime and link libraries... " >&6; } 5404if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : 5405 $as_echo_n "(cached) " >&6 5406else 5407 lt_cv_sharedlib_from_linklib_cmd='unknown' 5408 5409case $host_os in 5410cygwin* | mingw* | pw32* | cegcc*) 5411 # two different shell functions defined in ltmain.sh 5412 # decide which to use based on capabilities of $DLLTOOL 5413 case `$DLLTOOL --help 2>&1` in 5414 *--identify-strict*) 5415 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 5416 ;; 5417 *) 5418 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 5419 ;; 5420 esac 5421 ;; 5422*) 5423 # fallback: assume linklib IS sharedlib 5424 lt_cv_sharedlib_from_linklib_cmd="$ECHO" 5425 ;; 5426esac 5427 5428fi 5429{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 5430$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 5431sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 5432test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 5433 5434 5435 5436 5437 5438 5439 5440 5441if test -n "$ac_tool_prefix"; then 5442 for ac_prog in ar 5443 do 5444 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5445set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5446{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5447$as_echo_n "checking for $ac_word... " >&6; } 5448if ${ac_cv_prog_AR+:} false; then : 5449 $as_echo_n "(cached) " >&6 5450else 5451 if test -n "$AR"; then 5452 ac_cv_prog_AR="$AR" # Let the user override the test. 5453else 5454as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5455for as_dir in $PATH 5456do 5457 IFS=$as_save_IFS 5458 test -z "$as_dir" && as_dir=. 5459 for ac_exec_ext in '' $ac_executable_extensions; do 5460 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5461 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 5462 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5463 break 2 5464 fi 5465done 5466 done 5467IFS=$as_save_IFS 5468 5469fi 5470fi 5471AR=$ac_cv_prog_AR 5472if test -n "$AR"; then 5473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 5474$as_echo "$AR" >&6; } 5475else 5476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5477$as_echo "no" >&6; } 5478fi 5479 5480 5481 test -n "$AR" && break 5482 done 5483fi 5484if test -z "$AR"; then 5485 ac_ct_AR=$AR 5486 for ac_prog in ar 5487do 5488 # Extract the first word of "$ac_prog", so it can be a program name with args. 5489set dummy $ac_prog; ac_word=$2 5490{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5491$as_echo_n "checking for $ac_word... " >&6; } 5492if ${ac_cv_prog_ac_ct_AR+:} false; then : 5493 $as_echo_n "(cached) " >&6 5494else 5495 if test -n "$ac_ct_AR"; then 5496 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 5497else 5498as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5499for as_dir in $PATH 5500do 5501 IFS=$as_save_IFS 5502 test -z "$as_dir" && as_dir=. 5503 for ac_exec_ext in '' $ac_executable_extensions; do 5504 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5505 ac_cv_prog_ac_ct_AR="$ac_prog" 5506 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5507 break 2 5508 fi 5509done 5510 done 5511IFS=$as_save_IFS 5512 5513fi 5514fi 5515ac_ct_AR=$ac_cv_prog_ac_ct_AR 5516if test -n "$ac_ct_AR"; then 5517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 5518$as_echo "$ac_ct_AR" >&6; } 5519else 5520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5521$as_echo "no" >&6; } 5522fi 5523 5524 5525 test -n "$ac_ct_AR" && break 5526done 5527 5528 if test "x$ac_ct_AR" = x; then 5529 AR="false" 5530 else 5531 case $cross_compiling:$ac_tool_warned in 5532yes:) 5533{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5534$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5535ac_tool_warned=yes ;; 5536esac 5537 AR=$ac_ct_AR 5538 fi 5539fi 5540 5541: ${AR=ar} 5542: ${AR_FLAGS=cru} 5543 5544 5545 5546 5547 5548 5549 5550 5551 5552 5553 5554{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 5555$as_echo_n "checking for archiver @FILE support... " >&6; } 5556if ${lt_cv_ar_at_file+:} false; then : 5557 $as_echo_n "(cached) " >&6 5558else 5559 lt_cv_ar_at_file=no 5560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5561/* end confdefs.h. */ 5562 5563int 5564main () 5565{ 5566 5567 ; 5568 return 0; 5569} 5570_ACEOF 5571if ac_fn_c_try_compile "$LINENO"; then : 5572 echo conftest.$ac_objext > conftest.lst 5573 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 5574 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 5575 (eval $lt_ar_try) 2>&5 5576 ac_status=$? 5577 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5578 test $ac_status = 0; } 5579 if test "$ac_status" -eq 0; then 5580 # Ensure the archiver fails upon bogus file names. 5581 rm -f conftest.$ac_objext libconftest.a 5582 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 5583 (eval $lt_ar_try) 2>&5 5584 ac_status=$? 5585 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5586 test $ac_status = 0; } 5587 if test "$ac_status" -ne 0; then 5588 lt_cv_ar_at_file=@ 5589 fi 5590 fi 5591 rm -f conftest.* libconftest.a 5592 5593fi 5594rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5595 5596fi 5597{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 5598$as_echo "$lt_cv_ar_at_file" >&6; } 5599 5600if test "x$lt_cv_ar_at_file" = xno; then 5601 archiver_list_spec= 5602else 5603 archiver_list_spec=$lt_cv_ar_at_file 5604fi 5605 5606 5607 5608 5609 5610 5611 5612if test -n "$ac_tool_prefix"; then 5613 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 5614set dummy ${ac_tool_prefix}strip; ac_word=$2 5615{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5616$as_echo_n "checking for $ac_word... " >&6; } 5617if ${ac_cv_prog_STRIP+:} false; then : 5618 $as_echo_n "(cached) " >&6 5619else 5620 if test -n "$STRIP"; then 5621 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 5622else 5623as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5624for as_dir in $PATH 5625do 5626 IFS=$as_save_IFS 5627 test -z "$as_dir" && as_dir=. 5628 for ac_exec_ext in '' $ac_executable_extensions; do 5629 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5630 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 5631 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5632 break 2 5633 fi 5634done 5635 done 5636IFS=$as_save_IFS 5637 5638fi 5639fi 5640STRIP=$ac_cv_prog_STRIP 5641if test -n "$STRIP"; then 5642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 5643$as_echo "$STRIP" >&6; } 5644else 5645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5646$as_echo "no" >&6; } 5647fi 5648 5649 5650fi 5651if test -z "$ac_cv_prog_STRIP"; then 5652 ac_ct_STRIP=$STRIP 5653 # Extract the first word of "strip", so it can be a program name with args. 5654set dummy strip; ac_word=$2 5655{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5656$as_echo_n "checking for $ac_word... " >&6; } 5657if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 5658 $as_echo_n "(cached) " >&6 5659else 5660 if test -n "$ac_ct_STRIP"; then 5661 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 5662else 5663as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5664for as_dir in $PATH 5665do 5666 IFS=$as_save_IFS 5667 test -z "$as_dir" && as_dir=. 5668 for ac_exec_ext in '' $ac_executable_extensions; do 5669 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5670 ac_cv_prog_ac_ct_STRIP="strip" 5671 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5672 break 2 5673 fi 5674done 5675 done 5676IFS=$as_save_IFS 5677 5678fi 5679fi 5680ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 5681if test -n "$ac_ct_STRIP"; then 5682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 5683$as_echo "$ac_ct_STRIP" >&6; } 5684else 5685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5686$as_echo "no" >&6; } 5687fi 5688 5689 if test "x$ac_ct_STRIP" = x; then 5690 STRIP=":" 5691 else 5692 case $cross_compiling:$ac_tool_warned in 5693yes:) 5694{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5695$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5696ac_tool_warned=yes ;; 5697esac 5698 STRIP=$ac_ct_STRIP 5699 fi 5700else 5701 STRIP="$ac_cv_prog_STRIP" 5702fi 5703 5704test -z "$STRIP" && STRIP=: 5705 5706 5707 5708 5709 5710 5711if test -n "$ac_tool_prefix"; then 5712 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 5713set dummy ${ac_tool_prefix}ranlib; ac_word=$2 5714{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5715$as_echo_n "checking for $ac_word... " >&6; } 5716if ${ac_cv_prog_RANLIB+:} false; then : 5717 $as_echo_n "(cached) " >&6 5718else 5719 if test -n "$RANLIB"; then 5720 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 5721else 5722as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5723for as_dir in $PATH 5724do 5725 IFS=$as_save_IFS 5726 test -z "$as_dir" && as_dir=. 5727 for ac_exec_ext in '' $ac_executable_extensions; do 5728 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5729 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 5730 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5731 break 2 5732 fi 5733done 5734 done 5735IFS=$as_save_IFS 5736 5737fi 5738fi 5739RANLIB=$ac_cv_prog_RANLIB 5740if test -n "$RANLIB"; then 5741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 5742$as_echo "$RANLIB" >&6; } 5743else 5744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5745$as_echo "no" >&6; } 5746fi 5747 5748 5749fi 5750if test -z "$ac_cv_prog_RANLIB"; then 5751 ac_ct_RANLIB=$RANLIB 5752 # Extract the first word of "ranlib", so it can be a program name with args. 5753set dummy ranlib; ac_word=$2 5754{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5755$as_echo_n "checking for $ac_word... " >&6; } 5756if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 5757 $as_echo_n "(cached) " >&6 5758else 5759 if test -n "$ac_ct_RANLIB"; then 5760 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 5761else 5762as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5763for as_dir in $PATH 5764do 5765 IFS=$as_save_IFS 5766 test -z "$as_dir" && as_dir=. 5767 for ac_exec_ext in '' $ac_executable_extensions; do 5768 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5769 ac_cv_prog_ac_ct_RANLIB="ranlib" 5770 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5771 break 2 5772 fi 5773done 5774 done 5775IFS=$as_save_IFS 5776 5777fi 5778fi 5779ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 5780if test -n "$ac_ct_RANLIB"; then 5781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 5782$as_echo "$ac_ct_RANLIB" >&6; } 5783else 5784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5785$as_echo "no" >&6; } 5786fi 5787 5788 if test "x$ac_ct_RANLIB" = x; then 5789 RANLIB=":" 5790 else 5791 case $cross_compiling:$ac_tool_warned in 5792yes:) 5793{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5794$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5795ac_tool_warned=yes ;; 5796esac 5797 RANLIB=$ac_ct_RANLIB 5798 fi 5799else 5800 RANLIB="$ac_cv_prog_RANLIB" 5801fi 5802 5803test -z "$RANLIB" && RANLIB=: 5804 5805 5806 5807 5808 5809 5810# Determine commands to create old-style static archives. 5811old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 5812old_postinstall_cmds='chmod 644 $oldlib' 5813old_postuninstall_cmds= 5814 5815if test -n "$RANLIB"; then 5816 case $host_os in 5817 openbsd*) 5818 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 5819 ;; 5820 *) 5821 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 5822 ;; 5823 esac 5824 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 5825fi 5826 5827case $host_os in 5828 darwin*) 5829 lock_old_archive_extraction=yes ;; 5830 *) 5831 lock_old_archive_extraction=no ;; 5832esac 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 5868 5869 5870 5871 5872# If no C compiler was specified, use CC. 5873LTCC=${LTCC-"$CC"} 5874 5875# If no C compiler flags were specified, use CFLAGS. 5876LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 5877 5878# Allow CC to be a program name with arguments. 5879compiler=$CC 5880 5881 5882# Check for command to grab the raw symbol name followed by C symbol from nm. 5883{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 5884$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 5885if ${lt_cv_sys_global_symbol_pipe+:} false; then : 5886 $as_echo_n "(cached) " >&6 5887else 5888 5889# These are sane defaults that work on at least a few old systems. 5890# [They come from Ultrix. What could be older than Ultrix?!! ;)] 5891 5892# Character class describing NM global symbol codes. 5893symcode='[BCDEGRST]' 5894 5895# Regexp to match symbols that can be accessed directly from C. 5896sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 5897 5898# Define system-specific variables. 5899case $host_os in 5900aix*) 5901 symcode='[BCDT]' 5902 ;; 5903cygwin* | mingw* | pw32* | cegcc*) 5904 symcode='[ABCDGISTW]' 5905 ;; 5906hpux*) 5907 if test "$host_cpu" = ia64; then 5908 symcode='[ABCDEGRST]' 5909 fi 5910 ;; 5911irix* | nonstopux*) 5912 symcode='[BCDEGRST]' 5913 ;; 5914osf*) 5915 symcode='[BCDEGQRST]' 5916 ;; 5917solaris*) 5918 symcode='[BDRT]' 5919 ;; 5920sco3.2v5*) 5921 symcode='[DT]' 5922 ;; 5923sysv4.2uw2*) 5924 symcode='[DT]' 5925 ;; 5926sysv5* | sco5v6* | unixware* | OpenUNIX*) 5927 symcode='[ABDT]' 5928 ;; 5929sysv4) 5930 symcode='[DFNSTU]' 5931 ;; 5932esac 5933 5934# If we're using GNU nm, then use its standard symbol codes. 5935case `$NM -V 2>&1` in 5936*GNU* | *'with BFD'*) 5937 symcode='[ABCDGIRSTW]' ;; 5938esac 5939 5940# Transform an extracted symbol line into a proper C declaration. 5941# Some systems (esp. on ia64) link data and code symbols differently, 5942# so use this general approach. 5943lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 5944 5945# Transform an extracted symbol line into symbol name and symbol address 5946lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" 5947lt_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'" 5948 5949# Handle CRLF in mingw tool chain 5950opt_cr= 5951case $build_os in 5952mingw*) 5953 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 5954 ;; 5955esac 5956 5957# Try without a prefix underscore, then with it. 5958for ac_symprfx in "" "_"; do 5959 5960 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 5961 symxfrm="\\1 $ac_symprfx\\2 \\2" 5962 5963 # Write the raw and C identifiers. 5964 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 5965 # Fake it for dumpbin and say T for any non-static function 5966 # and D for any global variable. 5967 # Also find C++ and __fastcall symbols from MSVC++, 5968 # which start with @ or ?. 5969 lt_cv_sys_global_symbol_pipe="$AWK '"\ 5970" {last_section=section; section=\$ 3};"\ 5971" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 5972" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 5973" \$ 0!~/External *\|/{next};"\ 5974" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 5975" {if(hide[section]) next};"\ 5976" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ 5977" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ 5978" s[1]~/^[@?]/{print s[1], s[1]; next};"\ 5979" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ 5980" ' prfx=^$ac_symprfx" 5981 else 5982 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 5983 fi 5984 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 5985 5986 # Check to see that the pipe works correctly. 5987 pipe_works=no 5988 5989 rm -f conftest* 5990 cat > conftest.$ac_ext <<_LT_EOF 5991#ifdef __cplusplus 5992extern "C" { 5993#endif 5994char nm_test_var; 5995void nm_test_func(void); 5996void nm_test_func(void){} 5997#ifdef __cplusplus 5998} 5999#endif 6000int main(){nm_test_var='a';nm_test_func();return(0);} 6001_LT_EOF 6002 6003 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6004 (eval $ac_compile) 2>&5 6005 ac_status=$? 6006 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6007 test $ac_status = 0; }; then 6008 # Now try to grab the symbols. 6009 nlist=conftest.nm 6010 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 6011 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 6012 ac_status=$? 6013 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6014 test $ac_status = 0; } && test -s "$nlist"; then 6015 # Try sorting and uniquifying the output. 6016 if sort "$nlist" | uniq > "$nlist"T; then 6017 mv -f "$nlist"T "$nlist" 6018 else 6019 rm -f "$nlist"T 6020 fi 6021 6022 # Make sure that we snagged all the symbols we need. 6023 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 6024 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 6025 cat <<_LT_EOF > conftest.$ac_ext 6026/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 6027#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE) 6028/* DATA imports from DLLs on WIN32 con't be const, because runtime 6029 relocations are performed -- see ld's documentation on pseudo-relocs. */ 6030# define LT_DLSYM_CONST 6031#elif defined(__osf__) 6032/* This system does not cope well with relocations in const data. */ 6033# define LT_DLSYM_CONST 6034#else 6035# define LT_DLSYM_CONST const 6036#endif 6037 6038#ifdef __cplusplus 6039extern "C" { 6040#endif 6041 6042_LT_EOF 6043 # Now generate the symbol file. 6044 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 6045 6046 cat <<_LT_EOF >> conftest.$ac_ext 6047 6048/* The mapping between symbol names and symbols. */ 6049LT_DLSYM_CONST struct { 6050 const char *name; 6051 void *address; 6052} 6053lt__PROGRAM__LTX_preloaded_symbols[] = 6054{ 6055 { "@PROGRAM@", (void *) 0 }, 6056_LT_EOF 6057 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 6058 cat <<\_LT_EOF >> conftest.$ac_ext 6059 {0, (void *) 0} 6060}; 6061 6062/* This works around a problem in FreeBSD linker */ 6063#ifdef FREEBSD_WORKAROUND 6064static const void *lt_preloaded_setup() { 6065 return lt__PROGRAM__LTX_preloaded_symbols; 6066} 6067#endif 6068 6069#ifdef __cplusplus 6070} 6071#endif 6072_LT_EOF 6073 # Now try linking the two files. 6074 mv conftest.$ac_objext conftstm.$ac_objext 6075 lt_globsym_save_LIBS=$LIBS 6076 lt_globsym_save_CFLAGS=$CFLAGS 6077 LIBS="conftstm.$ac_objext" 6078 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 6079 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 6080 (eval $ac_link) 2>&5 6081 ac_status=$? 6082 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6083 test $ac_status = 0; } && test -s conftest${ac_exeext}; then 6084 pipe_works=yes 6085 fi 6086 LIBS=$lt_globsym_save_LIBS 6087 CFLAGS=$lt_globsym_save_CFLAGS 6088 else 6089 echo "cannot find nm_test_func in $nlist" >&5 6090 fi 6091 else 6092 echo "cannot find nm_test_var in $nlist" >&5 6093 fi 6094 else 6095 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 6096 fi 6097 else 6098 echo "$progname: failed program was:" >&5 6099 cat conftest.$ac_ext >&5 6100 fi 6101 rm -rf conftest* conftst* 6102 6103 # Do not use the global_symbol_pipe unless it works. 6104 if test "$pipe_works" = yes; then 6105 break 6106 else 6107 lt_cv_sys_global_symbol_pipe= 6108 fi 6109done 6110 6111fi 6112 6113if test -z "$lt_cv_sys_global_symbol_pipe"; then 6114 lt_cv_sys_global_symbol_to_cdecl= 6115fi 6116if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 6117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 6118$as_echo "failed" >&6; } 6119else 6120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 6121$as_echo "ok" >&6; } 6122fi 6123 6124# Response file support. 6125if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6126 nm_file_list_spec='@' 6127elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 6128 nm_file_list_spec='@' 6129fi 6130 6131 6132 6133 6134 6135 6136 6137 6138 6139 6140 6141 6142 6143 6144 6145 6146 6147 6148 6149 6150 6151 6152 6153 6154 6155 6156 6157{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 6158$as_echo_n "checking for sysroot... " >&6; } 6159 6160# Check whether --with-sysroot was given. 6161if test "${with_sysroot+set}" = set; then : 6162 withval=$with_sysroot; 6163else 6164 with_sysroot=no 6165fi 6166 6167 6168lt_sysroot= 6169case ${with_sysroot} in #( 6170 yes) 6171 if test "$GCC" = yes; then 6172 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 6173 fi 6174 ;; #( 6175 /*) 6176 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 6177 ;; #( 6178 no|'') 6179 ;; #( 6180 *) 6181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5 6182$as_echo "${with_sysroot}" >&6; } 6183 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 6184 ;; 6185esac 6186 6187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 6188$as_echo "${lt_sysroot:-no}" >&6; } 6189 6190 6191 6192 6193 6194# Check whether --enable-libtool-lock was given. 6195if test "${enable_libtool_lock+set}" = set; then : 6196 enableval=$enable_libtool_lock; 6197fi 6198 6199test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 6200 6201# Some flags need to be propagated to the compiler or linker for good 6202# libtool support. 6203case $host in 6204ia64-*-hpux*) 6205 # Find out which ABI we are using. 6206 echo 'int i;' > conftest.$ac_ext 6207 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6208 (eval $ac_compile) 2>&5 6209 ac_status=$? 6210 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6211 test $ac_status = 0; }; then 6212 case `/usr/bin/file conftest.$ac_objext` in 6213 *ELF-32*) 6214 HPUX_IA64_MODE="32" 6215 ;; 6216 *ELF-64*) 6217 HPUX_IA64_MODE="64" 6218 ;; 6219 esac 6220 fi 6221 rm -rf conftest* 6222 ;; 6223*-*-irix6*) 6224 # Find out which ABI we are using. 6225 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 6226 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6227 (eval $ac_compile) 2>&5 6228 ac_status=$? 6229 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6230 test $ac_status = 0; }; then 6231 if test "$lt_cv_prog_gnu_ld" = yes; then 6232 case `/usr/bin/file conftest.$ac_objext` in 6233 *32-bit*) 6234 LD="${LD-ld} -melf32bsmip" 6235 ;; 6236 *N32*) 6237 LD="${LD-ld} -melf32bmipn32" 6238 ;; 6239 *64-bit*) 6240 LD="${LD-ld} -melf64bmip" 6241 ;; 6242 esac 6243 else 6244 case `/usr/bin/file conftest.$ac_objext` in 6245 *32-bit*) 6246 LD="${LD-ld} -32" 6247 ;; 6248 *N32*) 6249 LD="${LD-ld} -n32" 6250 ;; 6251 *64-bit*) 6252 LD="${LD-ld} -64" 6253 ;; 6254 esac 6255 fi 6256 fi 6257 rm -rf conftest* 6258 ;; 6259 6260x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ 6261s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 6262 # Find out which ABI we are using. 6263 echo 'int i;' > conftest.$ac_ext 6264 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6265 (eval $ac_compile) 2>&5 6266 ac_status=$? 6267 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6268 test $ac_status = 0; }; then 6269 case `/usr/bin/file conftest.o` in 6270 *32-bit*) 6271 case $host in 6272 x86_64-*kfreebsd*-gnu) 6273 LD="${LD-ld} -m elf_i386_fbsd" 6274 ;; 6275 x86_64-*linux*) 6276 LD="${LD-ld} -m elf_i386" 6277 ;; 6278 ppc64-*linux*|powerpc64-*linux*) 6279 LD="${LD-ld} -m elf32ppclinux" 6280 ;; 6281 s390x-*linux*) 6282 LD="${LD-ld} -m elf_s390" 6283 ;; 6284 sparc64-*linux*) 6285 LD="${LD-ld} -m elf32_sparc" 6286 ;; 6287 esac 6288 ;; 6289 *64-bit*) 6290 case $host in 6291 x86_64-*kfreebsd*-gnu) 6292 LD="${LD-ld} -m elf_x86_64_fbsd" 6293 ;; 6294 x86_64-*linux*) 6295 LD="${LD-ld} -m elf_x86_64" 6296 ;; 6297 ppc*-*linux*|powerpc*-*linux*) 6298 LD="${LD-ld} -m elf64ppc" 6299 ;; 6300 s390*-*linux*|s390*-*tpf*) 6301 LD="${LD-ld} -m elf64_s390" 6302 ;; 6303 sparc*-*linux*) 6304 LD="${LD-ld} -m elf64_sparc" 6305 ;; 6306 esac 6307 ;; 6308 esac 6309 fi 6310 rm -rf conftest* 6311 ;; 6312 6313*-*-sco3.2v5*) 6314 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 6315 SAVE_CFLAGS="$CFLAGS" 6316 CFLAGS="$CFLAGS -belf" 6317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 6318$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 6319if ${lt_cv_cc_needs_belf+:} false; then : 6320 $as_echo_n "(cached) " >&6 6321else 6322 ac_ext=c 6323ac_cpp='$CPP $CPPFLAGS' 6324ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6325ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6326ac_compiler_gnu=$ac_cv_c_compiler_gnu 6327 6328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6329/* end confdefs.h. */ 6330 6331int 6332main () 6333{ 6334 6335 ; 6336 return 0; 6337} 6338_ACEOF 6339if ac_fn_c_try_link "$LINENO"; then : 6340 lt_cv_cc_needs_belf=yes 6341else 6342 lt_cv_cc_needs_belf=no 6343fi 6344rm -f core conftest.err conftest.$ac_objext \ 6345 conftest$ac_exeext conftest.$ac_ext 6346 ac_ext=c 6347ac_cpp='$CPP $CPPFLAGS' 6348ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6349ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6350ac_compiler_gnu=$ac_cv_c_compiler_gnu 6351 6352fi 6353{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 6354$as_echo "$lt_cv_cc_needs_belf" >&6; } 6355 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 6356 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 6357 CFLAGS="$SAVE_CFLAGS" 6358 fi 6359 ;; 6360*-*solaris*) 6361 # Find out which ABI we are using. 6362 echo 'int i;' > conftest.$ac_ext 6363 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6364 (eval $ac_compile) 2>&5 6365 ac_status=$? 6366 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6367 test $ac_status = 0; }; then 6368 case `/usr/bin/file conftest.o` in 6369 *64-bit*) 6370 case $lt_cv_prog_gnu_ld in 6371 yes*) 6372 case $host in 6373 i?86-*-solaris*) 6374 LD="${LD-ld} -m elf_x86_64" 6375 ;; 6376 sparc*-*-solaris*) 6377 LD="${LD-ld} -m elf64_sparc" 6378 ;; 6379 esac 6380 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 6381 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 6382 LD="${LD-ld}_sol2" 6383 fi 6384 ;; 6385 *) 6386 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 6387 LD="${LD-ld} -64" 6388 fi 6389 ;; 6390 esac 6391 ;; 6392 esac 6393 fi 6394 rm -rf conftest* 6395 ;; 6396esac 6397 6398need_locks="$enable_libtool_lock" 6399 6400if test -n "$ac_tool_prefix"; then 6401 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 6402set dummy ${ac_tool_prefix}mt; ac_word=$2 6403{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6404$as_echo_n "checking for $ac_word... " >&6; } 6405if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : 6406 $as_echo_n "(cached) " >&6 6407else 6408 if test -n "$MANIFEST_TOOL"; then 6409 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 6410else 6411as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6412for as_dir in $PATH 6413do 6414 IFS=$as_save_IFS 6415 test -z "$as_dir" && as_dir=. 6416 for ac_exec_ext in '' $ac_executable_extensions; do 6417 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6418 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 6419 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6420 break 2 6421 fi 6422done 6423 done 6424IFS=$as_save_IFS 6425 6426fi 6427fi 6428MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 6429if test -n "$MANIFEST_TOOL"; then 6430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 6431$as_echo "$MANIFEST_TOOL" >&6; } 6432else 6433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6434$as_echo "no" >&6; } 6435fi 6436 6437 6438fi 6439if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 6440 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 6441 # Extract the first word of "mt", so it can be a program name with args. 6442set dummy mt; ac_word=$2 6443{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6444$as_echo_n "checking for $ac_word... " >&6; } 6445if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : 6446 $as_echo_n "(cached) " >&6 6447else 6448 if test -n "$ac_ct_MANIFEST_TOOL"; then 6449 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 6450else 6451as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6452for as_dir in $PATH 6453do 6454 IFS=$as_save_IFS 6455 test -z "$as_dir" && as_dir=. 6456 for ac_exec_ext in '' $ac_executable_extensions; do 6457 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6458 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 6459 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6460 break 2 6461 fi 6462done 6463 done 6464IFS=$as_save_IFS 6465 6466fi 6467fi 6468ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 6469if test -n "$ac_ct_MANIFEST_TOOL"; then 6470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 6471$as_echo "$ac_ct_MANIFEST_TOOL" >&6; } 6472else 6473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6474$as_echo "no" >&6; } 6475fi 6476 6477 if test "x$ac_ct_MANIFEST_TOOL" = x; then 6478 MANIFEST_TOOL=":" 6479 else 6480 case $cross_compiling:$ac_tool_warned in 6481yes:) 6482{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6483$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6484ac_tool_warned=yes ;; 6485esac 6486 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 6487 fi 6488else 6489 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 6490fi 6491 6492test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 6493{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 6494$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 6495if ${lt_cv_path_mainfest_tool+:} false; then : 6496 $as_echo_n "(cached) " >&6 6497else 6498 lt_cv_path_mainfest_tool=no 6499 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 6500 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 6501 cat conftest.err >&5 6502 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 6503 lt_cv_path_mainfest_tool=yes 6504 fi 6505 rm -f conftest* 6506fi 6507{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 6508$as_echo "$lt_cv_path_mainfest_tool" >&6; } 6509if test "x$lt_cv_path_mainfest_tool" != xyes; then 6510 MANIFEST_TOOL=: 6511fi 6512 6513 6514 6515 6516 6517 6518 case $host_os in 6519 rhapsody* | darwin*) 6520 if test -n "$ac_tool_prefix"; then 6521 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 6522set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 6523{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6524$as_echo_n "checking for $ac_word... " >&6; } 6525if ${ac_cv_prog_DSYMUTIL+:} false; then : 6526 $as_echo_n "(cached) " >&6 6527else 6528 if test -n "$DSYMUTIL"; then 6529 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 6530else 6531as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6532for as_dir in $PATH 6533do 6534 IFS=$as_save_IFS 6535 test -z "$as_dir" && as_dir=. 6536 for ac_exec_ext in '' $ac_executable_extensions; do 6537 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6538 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 6539 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6540 break 2 6541 fi 6542done 6543 done 6544IFS=$as_save_IFS 6545 6546fi 6547fi 6548DSYMUTIL=$ac_cv_prog_DSYMUTIL 6549if test -n "$DSYMUTIL"; then 6550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 6551$as_echo "$DSYMUTIL" >&6; } 6552else 6553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6554$as_echo "no" >&6; } 6555fi 6556 6557 6558fi 6559if test -z "$ac_cv_prog_DSYMUTIL"; then 6560 ac_ct_DSYMUTIL=$DSYMUTIL 6561 # Extract the first word of "dsymutil", so it can be a program name with args. 6562set dummy dsymutil; ac_word=$2 6563{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6564$as_echo_n "checking for $ac_word... " >&6; } 6565if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 6566 $as_echo_n "(cached) " >&6 6567else 6568 if test -n "$ac_ct_DSYMUTIL"; then 6569 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 6570else 6571as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6572for as_dir in $PATH 6573do 6574 IFS=$as_save_IFS 6575 test -z "$as_dir" && as_dir=. 6576 for ac_exec_ext in '' $ac_executable_extensions; do 6577 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6578 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 6579 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6580 break 2 6581 fi 6582done 6583 done 6584IFS=$as_save_IFS 6585 6586fi 6587fi 6588ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 6589if test -n "$ac_ct_DSYMUTIL"; then 6590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 6591$as_echo "$ac_ct_DSYMUTIL" >&6; } 6592else 6593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6594$as_echo "no" >&6; } 6595fi 6596 6597 if test "x$ac_ct_DSYMUTIL" = x; then 6598 DSYMUTIL=":" 6599 else 6600 case $cross_compiling:$ac_tool_warned in 6601yes:) 6602{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6603$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6604ac_tool_warned=yes ;; 6605esac 6606 DSYMUTIL=$ac_ct_DSYMUTIL 6607 fi 6608else 6609 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 6610fi 6611 6612 if test -n "$ac_tool_prefix"; then 6613 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 6614set dummy ${ac_tool_prefix}nmedit; ac_word=$2 6615{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6616$as_echo_n "checking for $ac_word... " >&6; } 6617if ${ac_cv_prog_NMEDIT+:} false; then : 6618 $as_echo_n "(cached) " >&6 6619else 6620 if test -n "$NMEDIT"; then 6621 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 6622else 6623as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6624for as_dir in $PATH 6625do 6626 IFS=$as_save_IFS 6627 test -z "$as_dir" && as_dir=. 6628 for ac_exec_ext in '' $ac_executable_extensions; do 6629 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6630 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 6631 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6632 break 2 6633 fi 6634done 6635 done 6636IFS=$as_save_IFS 6637 6638fi 6639fi 6640NMEDIT=$ac_cv_prog_NMEDIT 6641if test -n "$NMEDIT"; then 6642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 6643$as_echo "$NMEDIT" >&6; } 6644else 6645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6646$as_echo "no" >&6; } 6647fi 6648 6649 6650fi 6651if test -z "$ac_cv_prog_NMEDIT"; then 6652 ac_ct_NMEDIT=$NMEDIT 6653 # Extract the first word of "nmedit", so it can be a program name with args. 6654set dummy nmedit; ac_word=$2 6655{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6656$as_echo_n "checking for $ac_word... " >&6; } 6657if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 6658 $as_echo_n "(cached) " >&6 6659else 6660 if test -n "$ac_ct_NMEDIT"; then 6661 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 6662else 6663as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6664for as_dir in $PATH 6665do 6666 IFS=$as_save_IFS 6667 test -z "$as_dir" && as_dir=. 6668 for ac_exec_ext in '' $ac_executable_extensions; do 6669 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6670 ac_cv_prog_ac_ct_NMEDIT="nmedit" 6671 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6672 break 2 6673 fi 6674done 6675 done 6676IFS=$as_save_IFS 6677 6678fi 6679fi 6680ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 6681if test -n "$ac_ct_NMEDIT"; then 6682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 6683$as_echo "$ac_ct_NMEDIT" >&6; } 6684else 6685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6686$as_echo "no" >&6; } 6687fi 6688 6689 if test "x$ac_ct_NMEDIT" = x; then 6690 NMEDIT=":" 6691 else 6692 case $cross_compiling:$ac_tool_warned in 6693yes:) 6694{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6695$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6696ac_tool_warned=yes ;; 6697esac 6698 NMEDIT=$ac_ct_NMEDIT 6699 fi 6700else 6701 NMEDIT="$ac_cv_prog_NMEDIT" 6702fi 6703 6704 if test -n "$ac_tool_prefix"; then 6705 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 6706set dummy ${ac_tool_prefix}lipo; ac_word=$2 6707{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6708$as_echo_n "checking for $ac_word... " >&6; } 6709if ${ac_cv_prog_LIPO+:} false; then : 6710 $as_echo_n "(cached) " >&6 6711else 6712 if test -n "$LIPO"; then 6713 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 6714else 6715as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6716for as_dir in $PATH 6717do 6718 IFS=$as_save_IFS 6719 test -z "$as_dir" && as_dir=. 6720 for ac_exec_ext in '' $ac_executable_extensions; do 6721 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6722 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 6723 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6724 break 2 6725 fi 6726done 6727 done 6728IFS=$as_save_IFS 6729 6730fi 6731fi 6732LIPO=$ac_cv_prog_LIPO 6733if test -n "$LIPO"; then 6734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 6735$as_echo "$LIPO" >&6; } 6736else 6737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6738$as_echo "no" >&6; } 6739fi 6740 6741 6742fi 6743if test -z "$ac_cv_prog_LIPO"; then 6744 ac_ct_LIPO=$LIPO 6745 # Extract the first word of "lipo", so it can be a program name with args. 6746set dummy lipo; ac_word=$2 6747{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6748$as_echo_n "checking for $ac_word... " >&6; } 6749if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 6750 $as_echo_n "(cached) " >&6 6751else 6752 if test -n "$ac_ct_LIPO"; then 6753 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 6754else 6755as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6756for as_dir in $PATH 6757do 6758 IFS=$as_save_IFS 6759 test -z "$as_dir" && as_dir=. 6760 for ac_exec_ext in '' $ac_executable_extensions; do 6761 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6762 ac_cv_prog_ac_ct_LIPO="lipo" 6763 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6764 break 2 6765 fi 6766done 6767 done 6768IFS=$as_save_IFS 6769 6770fi 6771fi 6772ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 6773if test -n "$ac_ct_LIPO"; then 6774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 6775$as_echo "$ac_ct_LIPO" >&6; } 6776else 6777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6778$as_echo "no" >&6; } 6779fi 6780 6781 if test "x$ac_ct_LIPO" = x; then 6782 LIPO=":" 6783 else 6784 case $cross_compiling:$ac_tool_warned in 6785yes:) 6786{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6787$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6788ac_tool_warned=yes ;; 6789esac 6790 LIPO=$ac_ct_LIPO 6791 fi 6792else 6793 LIPO="$ac_cv_prog_LIPO" 6794fi 6795 6796 if test -n "$ac_tool_prefix"; then 6797 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 6798set dummy ${ac_tool_prefix}otool; ac_word=$2 6799{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6800$as_echo_n "checking for $ac_word... " >&6; } 6801if ${ac_cv_prog_OTOOL+:} false; then : 6802 $as_echo_n "(cached) " >&6 6803else 6804 if test -n "$OTOOL"; then 6805 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 6806else 6807as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6808for as_dir in $PATH 6809do 6810 IFS=$as_save_IFS 6811 test -z "$as_dir" && as_dir=. 6812 for ac_exec_ext in '' $ac_executable_extensions; do 6813 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6814 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 6815 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6816 break 2 6817 fi 6818done 6819 done 6820IFS=$as_save_IFS 6821 6822fi 6823fi 6824OTOOL=$ac_cv_prog_OTOOL 6825if test -n "$OTOOL"; then 6826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 6827$as_echo "$OTOOL" >&6; } 6828else 6829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6830$as_echo "no" >&6; } 6831fi 6832 6833 6834fi 6835if test -z "$ac_cv_prog_OTOOL"; then 6836 ac_ct_OTOOL=$OTOOL 6837 # Extract the first word of "otool", so it can be a program name with args. 6838set dummy otool; ac_word=$2 6839{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6840$as_echo_n "checking for $ac_word... " >&6; } 6841if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 6842 $as_echo_n "(cached) " >&6 6843else 6844 if test -n "$ac_ct_OTOOL"; then 6845 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 6846else 6847as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6848for as_dir in $PATH 6849do 6850 IFS=$as_save_IFS 6851 test -z "$as_dir" && as_dir=. 6852 for ac_exec_ext in '' $ac_executable_extensions; do 6853 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6854 ac_cv_prog_ac_ct_OTOOL="otool" 6855 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6856 break 2 6857 fi 6858done 6859 done 6860IFS=$as_save_IFS 6861 6862fi 6863fi 6864ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 6865if test -n "$ac_ct_OTOOL"; then 6866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 6867$as_echo "$ac_ct_OTOOL" >&6; } 6868else 6869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6870$as_echo "no" >&6; } 6871fi 6872 6873 if test "x$ac_ct_OTOOL" = x; then 6874 OTOOL=":" 6875 else 6876 case $cross_compiling:$ac_tool_warned in 6877yes:) 6878{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6879$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6880ac_tool_warned=yes ;; 6881esac 6882 OTOOL=$ac_ct_OTOOL 6883 fi 6884else 6885 OTOOL="$ac_cv_prog_OTOOL" 6886fi 6887 6888 if test -n "$ac_tool_prefix"; then 6889 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 6890set dummy ${ac_tool_prefix}otool64; ac_word=$2 6891{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6892$as_echo_n "checking for $ac_word... " >&6; } 6893if ${ac_cv_prog_OTOOL64+:} false; then : 6894 $as_echo_n "(cached) " >&6 6895else 6896 if test -n "$OTOOL64"; then 6897 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 6898else 6899as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6900for as_dir in $PATH 6901do 6902 IFS=$as_save_IFS 6903 test -z "$as_dir" && as_dir=. 6904 for ac_exec_ext in '' $ac_executable_extensions; do 6905 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6906 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 6907 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6908 break 2 6909 fi 6910done 6911 done 6912IFS=$as_save_IFS 6913 6914fi 6915fi 6916OTOOL64=$ac_cv_prog_OTOOL64 6917if test -n "$OTOOL64"; then 6918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 6919$as_echo "$OTOOL64" >&6; } 6920else 6921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6922$as_echo "no" >&6; } 6923fi 6924 6925 6926fi 6927if test -z "$ac_cv_prog_OTOOL64"; then 6928 ac_ct_OTOOL64=$OTOOL64 6929 # Extract the first word of "otool64", so it can be a program name with args. 6930set dummy otool64; ac_word=$2 6931{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6932$as_echo_n "checking for $ac_word... " >&6; } 6933if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 6934 $as_echo_n "(cached) " >&6 6935else 6936 if test -n "$ac_ct_OTOOL64"; then 6937 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 6938else 6939as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6940for as_dir in $PATH 6941do 6942 IFS=$as_save_IFS 6943 test -z "$as_dir" && as_dir=. 6944 for ac_exec_ext in '' $ac_executable_extensions; do 6945 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6946 ac_cv_prog_ac_ct_OTOOL64="otool64" 6947 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6948 break 2 6949 fi 6950done 6951 done 6952IFS=$as_save_IFS 6953 6954fi 6955fi 6956ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 6957if test -n "$ac_ct_OTOOL64"; then 6958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 6959$as_echo "$ac_ct_OTOOL64" >&6; } 6960else 6961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6962$as_echo "no" >&6; } 6963fi 6964 6965 if test "x$ac_ct_OTOOL64" = x; then 6966 OTOOL64=":" 6967 else 6968 case $cross_compiling:$ac_tool_warned in 6969yes:) 6970{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6971$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6972ac_tool_warned=yes ;; 6973esac 6974 OTOOL64=$ac_ct_OTOOL64 6975 fi 6976else 6977 OTOOL64="$ac_cv_prog_OTOOL64" 6978fi 6979 6980 6981 6982 6983 6984 6985 6986 6987 6988 6989 6990 6991 6992 6993 6994 6995 6996 6997 6998 6999 7000 7001 7002 7003 7004 7005 7006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 7007$as_echo_n "checking for -single_module linker flag... " >&6; } 7008if ${lt_cv_apple_cc_single_mod+:} false; then : 7009 $as_echo_n "(cached) " >&6 7010else 7011 lt_cv_apple_cc_single_mod=no 7012 if test -z "${LT_MULTI_MODULE}"; then 7013 # By default we will add the -single_module flag. You can override 7014 # by either setting the environment variable LT_MULTI_MODULE 7015 # non-empty at configure time, or by adding -multi_module to the 7016 # link flags. 7017 rm -rf libconftest.dylib* 7018 echo "int foo(void){return 1;}" > conftest.c 7019 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7020-dynamiclib -Wl,-single_module conftest.c" >&5 7021 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7022 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 7023 _lt_result=$? 7024 # If there is a non-empty error log, and "single_module" 7025 # appears in it, assume the flag caused a linker warning 7026 if test -s conftest.err && $GREP single_module conftest.err; then 7027 cat conftest.err >&5 7028 # Otherwise, if the output was created with a 0 exit code from 7029 # the compiler, it worked. 7030 elif test -f libconftest.dylib && test $_lt_result -eq 0; then 7031 lt_cv_apple_cc_single_mod=yes 7032 else 7033 cat conftest.err >&5 7034 fi 7035 rm -rf libconftest.dylib* 7036 rm -f conftest.* 7037 fi 7038fi 7039{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 7040$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 7041 7042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 7043$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 7044if ${lt_cv_ld_exported_symbols_list+:} false; then : 7045 $as_echo_n "(cached) " >&6 7046else 7047 lt_cv_ld_exported_symbols_list=no 7048 save_LDFLAGS=$LDFLAGS 7049 echo "_main" > conftest.sym 7050 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 7051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7052/* end confdefs.h. */ 7053 7054int 7055main () 7056{ 7057 7058 ; 7059 return 0; 7060} 7061_ACEOF 7062if ac_fn_c_try_link "$LINENO"; then : 7063 lt_cv_ld_exported_symbols_list=yes 7064else 7065 lt_cv_ld_exported_symbols_list=no 7066fi 7067rm -f core conftest.err conftest.$ac_objext \ 7068 conftest$ac_exeext conftest.$ac_ext 7069 LDFLAGS="$save_LDFLAGS" 7070 7071fi 7072{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 7073$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 7074 7075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 7076$as_echo_n "checking for -force_load linker flag... " >&6; } 7077if ${lt_cv_ld_force_load+:} false; then : 7078 $as_echo_n "(cached) " >&6 7079else 7080 lt_cv_ld_force_load=no 7081 cat > conftest.c << _LT_EOF 7082int forced_loaded() { return 2;} 7083_LT_EOF 7084 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 7085 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 7086 echo "$AR cru libconftest.a conftest.o" >&5 7087 $AR cru libconftest.a conftest.o 2>&5 7088 echo "$RANLIB libconftest.a" >&5 7089 $RANLIB libconftest.a 2>&5 7090 cat > conftest.c << _LT_EOF 7091int main() { return 0;} 7092_LT_EOF 7093 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 7094 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 7095 _lt_result=$? 7096 if test -s conftest.err && $GREP force_load conftest.err; then 7097 cat conftest.err >&5 7098 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then 7099 lt_cv_ld_force_load=yes 7100 else 7101 cat conftest.err >&5 7102 fi 7103 rm -f conftest.err libconftest.a conftest conftest.c 7104 rm -rf conftest.dSYM 7105 7106fi 7107{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 7108$as_echo "$lt_cv_ld_force_load" >&6; } 7109 case $host_os in 7110 rhapsody* | darwin1.[012]) 7111 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; 7112 darwin1.*) 7113 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 7114 darwin*) # darwin 5.x on 7115 # if running on 10.5 or later, the deployment target defaults 7116 # to the OS version, if on x86, and 10.4, the deployment 7117 # target defaults to 10.4. Don't you love it? 7118 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 7119 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 7120 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 7121 10.[012]*) 7122 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 7123 10.*) 7124 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 7125 esac 7126 ;; 7127 esac 7128 if test "$lt_cv_apple_cc_single_mod" = "yes"; then 7129 _lt_dar_single_mod='$single_module' 7130 fi 7131 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then 7132 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' 7133 else 7134 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' 7135 fi 7136 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then 7137 _lt_dsymutil='~$DSYMUTIL $lib || :' 7138 else 7139 _lt_dsymutil= 7140 fi 7141 ;; 7142 esac 7143 7144ac_ext=c 7145ac_cpp='$CPP $CPPFLAGS' 7146ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7147ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7148ac_compiler_gnu=$ac_cv_c_compiler_gnu 7149{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 7150$as_echo_n "checking how to run the C preprocessor... " >&6; } 7151# On Suns, sometimes $CPP names a directory. 7152if test -n "$CPP" && test -d "$CPP"; then 7153 CPP= 7154fi 7155if test -z "$CPP"; then 7156 if ${ac_cv_prog_CPP+:} false; then : 7157 $as_echo_n "(cached) " >&6 7158else 7159 # Double quotes because CPP needs to be expanded 7160 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 7161 do 7162 ac_preproc_ok=false 7163for ac_c_preproc_warn_flag in '' yes 7164do 7165 # Use a header file that comes with gcc, so configuring glibc 7166 # with a fresh cross-compiler works. 7167 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7168 # <limits.h> exists even on freestanding compilers. 7169 # On the NeXT, cc -E runs the code through the compiler's parser, 7170 # not just through cpp. "Syntax error" is here to catch this case. 7171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7172/* end confdefs.h. */ 7173#ifdef __STDC__ 7174# include <limits.h> 7175#else 7176# include <assert.h> 7177#endif 7178 Syntax error 7179_ACEOF 7180if ac_fn_c_try_cpp "$LINENO"; then : 7181 7182else 7183 # Broken: fails on valid input. 7184continue 7185fi 7186rm -f conftest.err conftest.i conftest.$ac_ext 7187 7188 # OK, works on sane cases. Now check whether nonexistent headers 7189 # can be detected and how. 7190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7191/* end confdefs.h. */ 7192#include <ac_nonexistent.h> 7193_ACEOF 7194if ac_fn_c_try_cpp "$LINENO"; then : 7195 # Broken: success on invalid input. 7196continue 7197else 7198 # Passes both tests. 7199ac_preproc_ok=: 7200break 7201fi 7202rm -f conftest.err conftest.i conftest.$ac_ext 7203 7204done 7205# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 7206rm -f conftest.i conftest.err conftest.$ac_ext 7207if $ac_preproc_ok; then : 7208 break 7209fi 7210 7211 done 7212 ac_cv_prog_CPP=$CPP 7213 7214fi 7215 CPP=$ac_cv_prog_CPP 7216else 7217 ac_cv_prog_CPP=$CPP 7218fi 7219{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 7220$as_echo "$CPP" >&6; } 7221ac_preproc_ok=false 7222for ac_c_preproc_warn_flag in '' yes 7223do 7224 # Use a header file that comes with gcc, so configuring glibc 7225 # with a fresh cross-compiler works. 7226 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7227 # <limits.h> exists even on freestanding compilers. 7228 # On the NeXT, cc -E runs the code through the compiler's parser, 7229 # not just through cpp. "Syntax error" is here to catch this case. 7230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7231/* end confdefs.h. */ 7232#ifdef __STDC__ 7233# include <limits.h> 7234#else 7235# include <assert.h> 7236#endif 7237 Syntax error 7238_ACEOF 7239if ac_fn_c_try_cpp "$LINENO"; then : 7240 7241else 7242 # Broken: fails on valid input. 7243continue 7244fi 7245rm -f conftest.err conftest.i conftest.$ac_ext 7246 7247 # OK, works on sane cases. Now check whether nonexistent headers 7248 # can be detected and how. 7249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7250/* end confdefs.h. */ 7251#include <ac_nonexistent.h> 7252_ACEOF 7253if ac_fn_c_try_cpp "$LINENO"; then : 7254 # Broken: success on invalid input. 7255continue 7256else 7257 # Passes both tests. 7258ac_preproc_ok=: 7259break 7260fi 7261rm -f conftest.err conftest.i conftest.$ac_ext 7262 7263done 7264# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 7265rm -f conftest.i conftest.err conftest.$ac_ext 7266if $ac_preproc_ok; then : 7267 7268else 7269 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 7270$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 7271as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 7272See \`config.log' for more details" "$LINENO" 5; } 7273fi 7274 7275ac_ext=c 7276ac_cpp='$CPP $CPPFLAGS' 7277ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7278ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7279ac_compiler_gnu=$ac_cv_c_compiler_gnu 7280 7281 7282{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 7283$as_echo_n "checking for ANSI C header files... " >&6; } 7284if ${ac_cv_header_stdc+:} false; then : 7285 $as_echo_n "(cached) " >&6 7286else 7287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7288/* end confdefs.h. */ 7289#include <stdlib.h> 7290#include <stdarg.h> 7291#include <string.h> 7292#include <float.h> 7293 7294int 7295main () 7296{ 7297 7298 ; 7299 return 0; 7300} 7301_ACEOF 7302if ac_fn_c_try_compile "$LINENO"; then : 7303 ac_cv_header_stdc=yes 7304else 7305 ac_cv_header_stdc=no 7306fi 7307rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7308 7309if test $ac_cv_header_stdc = yes; then 7310 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 7311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7312/* end confdefs.h. */ 7313#include <string.h> 7314 7315_ACEOF 7316if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7317 $EGREP "memchr" >/dev/null 2>&1; then : 7318 7319else 7320 ac_cv_header_stdc=no 7321fi 7322rm -f conftest* 7323 7324fi 7325 7326if test $ac_cv_header_stdc = yes; then 7327 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 7328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7329/* end confdefs.h. */ 7330#include <stdlib.h> 7331 7332_ACEOF 7333if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7334 $EGREP "free" >/dev/null 2>&1; then : 7335 7336else 7337 ac_cv_header_stdc=no 7338fi 7339rm -f conftest* 7340 7341fi 7342 7343if test $ac_cv_header_stdc = yes; then 7344 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 7345 if test "$cross_compiling" = yes; then : 7346 : 7347else 7348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7349/* end confdefs.h. */ 7350#include <ctype.h> 7351#include <stdlib.h> 7352#if ((' ' & 0x0FF) == 0x020) 7353# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 7354# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 7355#else 7356# define ISLOWER(c) \ 7357 (('a' <= (c) && (c) <= 'i') \ 7358 || ('j' <= (c) && (c) <= 'r') \ 7359 || ('s' <= (c) && (c) <= 'z')) 7360# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 7361#endif 7362 7363#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 7364int 7365main () 7366{ 7367 int i; 7368 for (i = 0; i < 256; i++) 7369 if (XOR (islower (i), ISLOWER (i)) 7370 || toupper (i) != TOUPPER (i)) 7371 return 2; 7372 return 0; 7373} 7374_ACEOF 7375if ac_fn_c_try_run "$LINENO"; then : 7376 7377else 7378 ac_cv_header_stdc=no 7379fi 7380rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 7381 conftest.$ac_objext conftest.beam conftest.$ac_ext 7382fi 7383 7384fi 7385fi 7386{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 7387$as_echo "$ac_cv_header_stdc" >&6; } 7388if test $ac_cv_header_stdc = yes; then 7389 7390$as_echo "#define STDC_HEADERS 1" >>confdefs.h 7391 7392fi 7393 7394# On IRIX 5.3, sys/types and inttypes.h are conflicting. 7395for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 7396 inttypes.h stdint.h unistd.h 7397do : 7398 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 7399ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 7400" 7401if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 7402 cat >>confdefs.h <<_ACEOF 7403#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 7404_ACEOF 7405 7406fi 7407 7408done 7409 7410 7411for ac_header in dlfcn.h 7412do : 7413 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 7414" 7415if test "x$ac_cv_header_dlfcn_h" = xyes; then : 7416 cat >>confdefs.h <<_ACEOF 7417#define HAVE_DLFCN_H 1 7418_ACEOF 7419 7420fi 7421 7422done 7423 7424 7425 7426 7427 7428# Set options 7429 7430 7431 7432 enable_dlopen=no 7433 7434 7435 enable_win32_dll=no 7436 7437 7438 # Check whether --enable-shared was given. 7439if test "${enable_shared+set}" = set; then : 7440 enableval=$enable_shared; p=${PACKAGE-default} 7441 case $enableval in 7442 yes) enable_shared=yes ;; 7443 no) enable_shared=no ;; 7444 *) 7445 enable_shared=no 7446 # Look at the argument we got. We use all the common list separators. 7447 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7448 for pkg in $enableval; do 7449 IFS="$lt_save_ifs" 7450 if test "X$pkg" = "X$p"; then 7451 enable_shared=yes 7452 fi 7453 done 7454 IFS="$lt_save_ifs" 7455 ;; 7456 esac 7457else 7458 enable_shared=yes 7459fi 7460 7461 7462 7463 7464 7465 7466 7467 7468 7469 # Check whether --enable-static was given. 7470if test "${enable_static+set}" = set; then : 7471 enableval=$enable_static; p=${PACKAGE-default} 7472 case $enableval in 7473 yes) enable_static=yes ;; 7474 no) enable_static=no ;; 7475 *) 7476 enable_static=no 7477 # Look at the argument we got. We use all the common list separators. 7478 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7479 for pkg in $enableval; do 7480 IFS="$lt_save_ifs" 7481 if test "X$pkg" = "X$p"; then 7482 enable_static=yes 7483 fi 7484 done 7485 IFS="$lt_save_ifs" 7486 ;; 7487 esac 7488else 7489 enable_static=yes 7490fi 7491 7492 7493 7494 7495 7496 7497 7498 7499 7500 7501# Check whether --with-pic was given. 7502if test "${with_pic+set}" = set; then : 7503 withval=$with_pic; lt_p=${PACKAGE-default} 7504 case $withval in 7505 yes|no) pic_mode=$withval ;; 7506 *) 7507 pic_mode=default 7508 # Look at the argument we got. We use all the common list separators. 7509 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7510 for lt_pkg in $withval; do 7511 IFS="$lt_save_ifs" 7512 if test "X$lt_pkg" = "X$lt_p"; then 7513 pic_mode=yes 7514 fi 7515 done 7516 IFS="$lt_save_ifs" 7517 ;; 7518 esac 7519else 7520 pic_mode=default 7521fi 7522 7523 7524test -z "$pic_mode" && pic_mode=default 7525 7526 7527 7528 7529 7530 7531 7532 # Check whether --enable-fast-install was given. 7533if test "${enable_fast_install+set}" = set; then : 7534 enableval=$enable_fast_install; p=${PACKAGE-default} 7535 case $enableval in 7536 yes) enable_fast_install=yes ;; 7537 no) enable_fast_install=no ;; 7538 *) 7539 enable_fast_install=no 7540 # Look at the argument we got. We use all the common list separators. 7541 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7542 for pkg in $enableval; do 7543 IFS="$lt_save_ifs" 7544 if test "X$pkg" = "X$p"; then 7545 enable_fast_install=yes 7546 fi 7547 done 7548 IFS="$lt_save_ifs" 7549 ;; 7550 esac 7551else 7552 enable_fast_install=yes 7553fi 7554 7555 7556 7557 7558 7559 7560 7561 7562 7563 7564 7565# This can be used to rebuild libtool when needed 7566LIBTOOL_DEPS="$ltmain" 7567 7568# Always use our own libtool. 7569LIBTOOL='$(SHELL) $(top_builddir)/libtool' 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 7595 7596 7597 7598 7599 7600test -z "$LN_S" && LN_S="ln -s" 7601 7602 7603 7604 7605 7606 7607 7608 7609 7610 7611 7612 7613 7614 7615if test -n "${ZSH_VERSION+set}" ; then 7616 setopt NO_GLOB_SUBST 7617fi 7618 7619{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 7620$as_echo_n "checking for objdir... " >&6; } 7621if ${lt_cv_objdir+:} false; then : 7622 $as_echo_n "(cached) " >&6 7623else 7624 rm -f .libs 2>/dev/null 7625mkdir .libs 2>/dev/null 7626if test -d .libs; then 7627 lt_cv_objdir=.libs 7628else 7629 # MS-DOS does not allow filenames that begin with a dot. 7630 lt_cv_objdir=_libs 7631fi 7632rmdir .libs 2>/dev/null 7633fi 7634{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 7635$as_echo "$lt_cv_objdir" >&6; } 7636objdir=$lt_cv_objdir 7637 7638 7639 7640 7641 7642cat >>confdefs.h <<_ACEOF 7643#define LT_OBJDIR "$lt_cv_objdir/" 7644_ACEOF 7645 7646 7647 7648 7649case $host_os in 7650aix3*) 7651 # AIX sometimes has problems with the GCC collect2 program. For some 7652 # reason, if we set the COLLECT_NAMES environment variable, the problems 7653 # vanish in a puff of smoke. 7654 if test "X${COLLECT_NAMES+set}" != Xset; then 7655 COLLECT_NAMES= 7656 export COLLECT_NAMES 7657 fi 7658 ;; 7659esac 7660 7661# Global variables: 7662ofile=libtool 7663can_build_shared=yes 7664 7665# All known linkers require a `.a' archive for static linking (except MSVC, 7666# which needs '.lib'). 7667libext=a 7668 7669with_gnu_ld="$lt_cv_prog_gnu_ld" 7670 7671old_CC="$CC" 7672old_CFLAGS="$CFLAGS" 7673 7674# Set sane defaults for various variables 7675test -z "$CC" && CC=cc 7676test -z "$LTCC" && LTCC=$CC 7677test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 7678test -z "$LD" && LD=ld 7679test -z "$ac_objext" && ac_objext=o 7680 7681for cc_temp in $compiler""; do 7682 case $cc_temp in 7683 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 7684 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 7685 \-*) ;; 7686 *) break;; 7687 esac 7688done 7689cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 7690 7691 7692# Only perform the check for file, if the check method requires it 7693test -z "$MAGIC_CMD" && MAGIC_CMD=file 7694case $deplibs_check_method in 7695file_magic*) 7696 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 7697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 7698$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 7699if ${lt_cv_path_MAGIC_CMD+:} false; then : 7700 $as_echo_n "(cached) " >&6 7701else 7702 case $MAGIC_CMD in 7703[\\/*] | ?:[\\/]*) 7704 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 7705 ;; 7706*) 7707 lt_save_MAGIC_CMD="$MAGIC_CMD" 7708 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 7709 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 7710 for ac_dir in $ac_dummy; do 7711 IFS="$lt_save_ifs" 7712 test -z "$ac_dir" && ac_dir=. 7713 if test -f $ac_dir/${ac_tool_prefix}file; then 7714 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 7715 if test -n "$file_magic_test_file"; then 7716 case $deplibs_check_method in 7717 "file_magic "*) 7718 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 7719 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7720 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 7721 $EGREP "$file_magic_regex" > /dev/null; then 7722 : 7723 else 7724 cat <<_LT_EOF 1>&2 7725 7726*** Warning: the command libtool uses to detect shared libraries, 7727*** $file_magic_cmd, produces output that libtool cannot recognize. 7728*** The result is that libtool may fail to recognize shared libraries 7729*** as such. This will affect the creation of libtool libraries that 7730*** depend on shared libraries, but programs linked with such libtool 7731*** libraries will work regardless of this problem. Nevertheless, you 7732*** may want to report the problem to your system manager and/or to 7733*** bug-libtool@gnu.org 7734 7735_LT_EOF 7736 fi ;; 7737 esac 7738 fi 7739 break 7740 fi 7741 done 7742 IFS="$lt_save_ifs" 7743 MAGIC_CMD="$lt_save_MAGIC_CMD" 7744 ;; 7745esac 7746fi 7747 7748MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7749if test -n "$MAGIC_CMD"; then 7750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 7751$as_echo "$MAGIC_CMD" >&6; } 7752else 7753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7754$as_echo "no" >&6; } 7755fi 7756 7757 7758 7759 7760 7761if test -z "$lt_cv_path_MAGIC_CMD"; then 7762 if test -n "$ac_tool_prefix"; then 7763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 7764$as_echo_n "checking for file... " >&6; } 7765if ${lt_cv_path_MAGIC_CMD+:} false; then : 7766 $as_echo_n "(cached) " >&6 7767else 7768 case $MAGIC_CMD in 7769[\\/*] | ?:[\\/]*) 7770 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 7771 ;; 7772*) 7773 lt_save_MAGIC_CMD="$MAGIC_CMD" 7774 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 7775 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 7776 for ac_dir in $ac_dummy; do 7777 IFS="$lt_save_ifs" 7778 test -z "$ac_dir" && ac_dir=. 7779 if test -f $ac_dir/file; then 7780 lt_cv_path_MAGIC_CMD="$ac_dir/file" 7781 if test -n "$file_magic_test_file"; then 7782 case $deplibs_check_method in 7783 "file_magic "*) 7784 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 7785 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7786 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 7787 $EGREP "$file_magic_regex" > /dev/null; then 7788 : 7789 else 7790 cat <<_LT_EOF 1>&2 7791 7792*** Warning: the command libtool uses to detect shared libraries, 7793*** $file_magic_cmd, produces output that libtool cannot recognize. 7794*** The result is that libtool may fail to recognize shared libraries 7795*** as such. This will affect the creation of libtool libraries that 7796*** depend on shared libraries, but programs linked with such libtool 7797*** libraries will work regardless of this problem. Nevertheless, you 7798*** may want to report the problem to your system manager and/or to 7799*** bug-libtool@gnu.org 7800 7801_LT_EOF 7802 fi ;; 7803 esac 7804 fi 7805 break 7806 fi 7807 done 7808 IFS="$lt_save_ifs" 7809 MAGIC_CMD="$lt_save_MAGIC_CMD" 7810 ;; 7811esac 7812fi 7813 7814MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7815if test -n "$MAGIC_CMD"; then 7816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 7817$as_echo "$MAGIC_CMD" >&6; } 7818else 7819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7820$as_echo "no" >&6; } 7821fi 7822 7823 7824 else 7825 MAGIC_CMD=: 7826 fi 7827fi 7828 7829 fi 7830 ;; 7831esac 7832 7833# Use C for the default configuration in the libtool script 7834 7835lt_save_CC="$CC" 7836ac_ext=c 7837ac_cpp='$CPP $CPPFLAGS' 7838ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7839ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7840ac_compiler_gnu=$ac_cv_c_compiler_gnu 7841 7842 7843# Source file extension for C test sources. 7844ac_ext=c 7845 7846# Object file extension for compiled C test sources. 7847objext=o 7848objext=$objext 7849 7850# Code to be used in simple compile tests 7851lt_simple_compile_test_code="int some_variable = 0;" 7852 7853# Code to be used in simple link tests 7854lt_simple_link_test_code='int main(){return(0);}' 7855 7856 7857 7858 7859 7860 7861 7862# If no C compiler was specified, use CC. 7863LTCC=${LTCC-"$CC"} 7864 7865# If no C compiler flags were specified, use CFLAGS. 7866LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 7867 7868# Allow CC to be a program name with arguments. 7869compiler=$CC 7870 7871# Save the default compiler, since it gets overwritten when the other 7872# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 7873compiler_DEFAULT=$CC 7874 7875# save warnings/boilerplate of simple test code 7876ac_outfile=conftest.$ac_objext 7877echo "$lt_simple_compile_test_code" >conftest.$ac_ext 7878eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 7879_lt_compiler_boilerplate=`cat conftest.err` 7880$RM conftest* 7881 7882ac_outfile=conftest.$ac_objext 7883echo "$lt_simple_link_test_code" >conftest.$ac_ext 7884eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 7885_lt_linker_boilerplate=`cat conftest.err` 7886$RM -r conftest* 7887 7888 7889if test -n "$compiler"; then 7890 7891lt_prog_compiler_no_builtin_flag= 7892 7893if test "$GCC" = yes; then 7894 case $cc_basename in 7895 nvcc*) 7896 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 7897 *) 7898 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 7899 esac 7900 7901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 7902$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 7903if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 7904 $as_echo_n "(cached) " >&6 7905else 7906 lt_cv_prog_compiler_rtti_exceptions=no 7907 ac_outfile=conftest.$ac_objext 7908 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 7909 lt_compiler_flag="-fno-rtti -fno-exceptions" 7910 # Insert the option either (1) after the last *FLAGS variable, or 7911 # (2) before a word containing "conftest.", or (3) at the end. 7912 # Note that $ac_compile itself does not contain backslashes and begins 7913 # with a dollar sign (not a hyphen), so the echo should work correctly. 7914 # The option is referenced via a variable to avoid confusing sed. 7915 lt_compile=`echo "$ac_compile" | $SED \ 7916 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7917 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7918 -e 's:$: $lt_compiler_flag:'` 7919 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 7920 (eval "$lt_compile" 2>conftest.err) 7921 ac_status=$? 7922 cat conftest.err >&5 7923 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7924 if (exit $ac_status) && test -s "$ac_outfile"; then 7925 # The compiler can only warn and ignore the option if not recognized 7926 # So say no if there are warnings other than the usual output. 7927 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 7928 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7929 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 7930 lt_cv_prog_compiler_rtti_exceptions=yes 7931 fi 7932 fi 7933 $RM conftest* 7934 7935fi 7936{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 7937$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 7938 7939if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 7940 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 7941else 7942 : 7943fi 7944 7945fi 7946 7947 7948 7949 7950 7951 7952 lt_prog_compiler_wl= 7953lt_prog_compiler_pic= 7954lt_prog_compiler_static= 7955 7956 7957 if test "$GCC" = yes; then 7958 lt_prog_compiler_wl='-Wl,' 7959 lt_prog_compiler_static='-static' 7960 7961 case $host_os in 7962 aix*) 7963 # All AIX code is PIC. 7964 if test "$host_cpu" = ia64; then 7965 # AIX 5 now supports IA64 processor 7966 lt_prog_compiler_static='-Bstatic' 7967 fi 7968 ;; 7969 7970 amigaos*) 7971 case $host_cpu in 7972 powerpc) 7973 # see comment about AmigaOS4 .so support 7974 lt_prog_compiler_pic='-fPIC' 7975 ;; 7976 m68k) 7977 # FIXME: we need at least 68020 code to build shared libraries, but 7978 # adding the `-m68020' flag to GCC prevents building anything better, 7979 # like `-m68040'. 7980 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 7981 ;; 7982 esac 7983 ;; 7984 7985 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 7986 # PIC is the default for these OSes. 7987 ;; 7988 7989 mingw* | cygwin* | pw32* | os2* | cegcc*) 7990 # This hack is so that the source file can tell whether it is being 7991 # built for inclusion in a dll (and should export symbols for example). 7992 # Although the cygwin gcc ignores -fPIC, still need this for old-style 7993 # (--disable-auto-import) libraries 7994 lt_prog_compiler_pic='-DDLL_EXPORT' 7995 ;; 7996 7997 darwin* | rhapsody*) 7998 # PIC is the default on this platform 7999 # Common symbols not allowed in MH_DYLIB files 8000 lt_prog_compiler_pic='-fno-common' 8001 ;; 8002 8003 haiku*) 8004 # PIC is the default for Haiku. 8005 # The "-static" flag exists, but is broken. 8006 lt_prog_compiler_static= 8007 ;; 8008 8009 hpux*) 8010 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 8011 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 8012 # sets the default TLS model and affects inlining. 8013 case $host_cpu in 8014 hppa*64*) 8015 # +Z the default 8016 ;; 8017 *) 8018 lt_prog_compiler_pic='-fPIC' 8019 ;; 8020 esac 8021 ;; 8022 8023 interix[3-9]*) 8024 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 8025 # Instead, we relocate shared libraries at runtime. 8026 ;; 8027 8028 msdosdjgpp*) 8029 # Just because we use GCC doesn't mean we suddenly get shared libraries 8030 # on systems that don't support them. 8031 lt_prog_compiler_can_build_shared=no 8032 enable_shared=no 8033 ;; 8034 8035 *nto* | *qnx*) 8036 # QNX uses GNU C++, but need to define -shared option too, otherwise 8037 # it will coredump. 8038 lt_prog_compiler_pic='-fPIC -shared' 8039 ;; 8040 8041 sysv4*MP*) 8042 if test -d /usr/nec; then 8043 lt_prog_compiler_pic=-Kconform_pic 8044 fi 8045 ;; 8046 8047 *) 8048 lt_prog_compiler_pic='-fPIC' 8049 ;; 8050 esac 8051 8052 case $cc_basename in 8053 nvcc*) # Cuda Compiler Driver 2.2 8054 lt_prog_compiler_wl='-Xlinker ' 8055 if test -n "$lt_prog_compiler_pic"; then 8056 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 8057 fi 8058 ;; 8059 esac 8060 else 8061 # PORTME Check for flag to pass linker flags through the system compiler. 8062 case $host_os in 8063 aix*) 8064 lt_prog_compiler_wl='-Wl,' 8065 if test "$host_cpu" = ia64; then 8066 # AIX 5 now supports IA64 processor 8067 lt_prog_compiler_static='-Bstatic' 8068 else 8069 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 8070 fi 8071 ;; 8072 8073 mingw* | cygwin* | pw32* | os2* | cegcc*) 8074 # This hack is so that the source file can tell whether it is being 8075 # built for inclusion in a dll (and should export symbols for example). 8076 lt_prog_compiler_pic='-DDLL_EXPORT' 8077 ;; 8078 8079 hpux9* | hpux10* | hpux11*) 8080 lt_prog_compiler_wl='-Wl,' 8081 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 8082 # not for PA HP-UX. 8083 case $host_cpu in 8084 hppa*64*|ia64*) 8085 # +Z the default 8086 ;; 8087 *) 8088 lt_prog_compiler_pic='+Z' 8089 ;; 8090 esac 8091 # Is there a better lt_prog_compiler_static that works with the bundled CC? 8092 lt_prog_compiler_static='${wl}-a ${wl}archive' 8093 ;; 8094 8095 irix5* | irix6* | nonstopux*) 8096 lt_prog_compiler_wl='-Wl,' 8097 # PIC (with -KPIC) is the default. 8098 lt_prog_compiler_static='-non_shared' 8099 ;; 8100 8101 linux* | k*bsd*-gnu | kopensolaris*-gnu) 8102 case $cc_basename in 8103 # old Intel for x86_64 which still supported -KPIC. 8104 ecc*) 8105 lt_prog_compiler_wl='-Wl,' 8106 lt_prog_compiler_pic='-KPIC' 8107 lt_prog_compiler_static='-static' 8108 ;; 8109 # icc used to be incompatible with GCC. 8110 # ICC 10 doesn't accept -KPIC any more. 8111 icc* | ifort*) 8112 lt_prog_compiler_wl='-Wl,' 8113 lt_prog_compiler_pic='-fPIC' 8114 lt_prog_compiler_static='-static' 8115 ;; 8116 # Lahey Fortran 8.1. 8117 lf95*) 8118 lt_prog_compiler_wl='-Wl,' 8119 lt_prog_compiler_pic='--shared' 8120 lt_prog_compiler_static='--static' 8121 ;; 8122 nagfor*) 8123 # NAG Fortran compiler 8124 lt_prog_compiler_wl='-Wl,-Wl,,' 8125 lt_prog_compiler_pic='-PIC' 8126 lt_prog_compiler_static='-Bstatic' 8127 ;; 8128 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 8129 # Portland Group compilers (*not* the Pentium gcc compiler, 8130 # which looks to be a dead project) 8131 lt_prog_compiler_wl='-Wl,' 8132 lt_prog_compiler_pic='-fpic' 8133 lt_prog_compiler_static='-Bstatic' 8134 ;; 8135 ccc*) 8136 lt_prog_compiler_wl='-Wl,' 8137 # All Alpha code is PIC. 8138 lt_prog_compiler_static='-non_shared' 8139 ;; 8140 xl* | bgxl* | bgf* | mpixl*) 8141 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 8142 lt_prog_compiler_wl='-Wl,' 8143 lt_prog_compiler_pic='-qpic' 8144 lt_prog_compiler_static='-qstaticlink' 8145 ;; 8146 *) 8147 case `$CC -V 2>&1 | sed 5q` in 8148 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 8149 # Sun Fortran 8.3 passes all unrecognized flags to the linker 8150 lt_prog_compiler_pic='-KPIC' 8151 lt_prog_compiler_static='-Bstatic' 8152 lt_prog_compiler_wl='' 8153 ;; 8154 *Sun\ F* | *Sun*Fortran*) 8155 lt_prog_compiler_pic='-KPIC' 8156 lt_prog_compiler_static='-Bstatic' 8157 lt_prog_compiler_wl='-Qoption ld ' 8158 ;; 8159 *Sun\ C*) 8160 # Sun C 5.9 8161 lt_prog_compiler_pic='-KPIC' 8162 lt_prog_compiler_static='-Bstatic' 8163 lt_prog_compiler_wl='-Wl,' 8164 ;; 8165 *Intel*\ [CF]*Compiler*) 8166 lt_prog_compiler_wl='-Wl,' 8167 lt_prog_compiler_pic='-fPIC' 8168 lt_prog_compiler_static='-static' 8169 ;; 8170 *Portland\ Group*) 8171 lt_prog_compiler_wl='-Wl,' 8172 lt_prog_compiler_pic='-fpic' 8173 lt_prog_compiler_static='-Bstatic' 8174 ;; 8175 esac 8176 ;; 8177 esac 8178 ;; 8179 8180 newsos6) 8181 lt_prog_compiler_pic='-KPIC' 8182 lt_prog_compiler_static='-Bstatic' 8183 ;; 8184 8185 *nto* | *qnx*) 8186 # QNX uses GNU C++, but need to define -shared option too, otherwise 8187 # it will coredump. 8188 lt_prog_compiler_pic='-fPIC -shared' 8189 ;; 8190 8191 osf3* | osf4* | osf5*) 8192 lt_prog_compiler_wl='-Wl,' 8193 # All OSF/1 code is PIC. 8194 lt_prog_compiler_static='-non_shared' 8195 ;; 8196 8197 rdos*) 8198 lt_prog_compiler_static='-non_shared' 8199 ;; 8200 8201 solaris*) 8202 lt_prog_compiler_pic='-KPIC' 8203 lt_prog_compiler_static='-Bstatic' 8204 case $cc_basename in 8205 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 8206 lt_prog_compiler_wl='-Qoption ld ';; 8207 *) 8208 lt_prog_compiler_wl='-Wl,';; 8209 esac 8210 ;; 8211 8212 sunos4*) 8213 lt_prog_compiler_wl='-Qoption ld ' 8214 lt_prog_compiler_pic='-PIC' 8215 lt_prog_compiler_static='-Bstatic' 8216 ;; 8217 8218 sysv4 | sysv4.2uw2* | sysv4.3*) 8219 lt_prog_compiler_wl='-Wl,' 8220 lt_prog_compiler_pic='-KPIC' 8221 lt_prog_compiler_static='-Bstatic' 8222 ;; 8223 8224 sysv4*MP*) 8225 if test -d /usr/nec ;then 8226 lt_prog_compiler_pic='-Kconform_pic' 8227 lt_prog_compiler_static='-Bstatic' 8228 fi 8229 ;; 8230 8231 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 8232 lt_prog_compiler_wl='-Wl,' 8233 lt_prog_compiler_pic='-KPIC' 8234 lt_prog_compiler_static='-Bstatic' 8235 ;; 8236 8237 unicos*) 8238 lt_prog_compiler_wl='-Wl,' 8239 lt_prog_compiler_can_build_shared=no 8240 ;; 8241 8242 uts4*) 8243 lt_prog_compiler_pic='-pic' 8244 lt_prog_compiler_static='-Bstatic' 8245 ;; 8246 8247 *) 8248 lt_prog_compiler_can_build_shared=no 8249 ;; 8250 esac 8251 fi 8252 8253case $host_os in 8254 # For platforms which do not support PIC, -DPIC is meaningless: 8255 *djgpp*) 8256 lt_prog_compiler_pic= 8257 ;; 8258 *) 8259 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 8260 ;; 8261esac 8262 8263{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 8264$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 8265if ${lt_cv_prog_compiler_pic+:} false; then : 8266 $as_echo_n "(cached) " >&6 8267else 8268 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 8269fi 8270{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 8271$as_echo "$lt_cv_prog_compiler_pic" >&6; } 8272lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 8273 8274# 8275# Check to make sure the PIC flag actually works. 8276# 8277if test -n "$lt_prog_compiler_pic"; then 8278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 8279$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 8280if ${lt_cv_prog_compiler_pic_works+:} false; then : 8281 $as_echo_n "(cached) " >&6 8282else 8283 lt_cv_prog_compiler_pic_works=no 8284 ac_outfile=conftest.$ac_objext 8285 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8286 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 8287 # Insert the option either (1) after the last *FLAGS variable, or 8288 # (2) before a word containing "conftest.", or (3) at the end. 8289 # Note that $ac_compile itself does not contain backslashes and begins 8290 # with a dollar sign (not a hyphen), so the echo should work correctly. 8291 # The option is referenced via a variable to avoid confusing sed. 8292 lt_compile=`echo "$ac_compile" | $SED \ 8293 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8294 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8295 -e 's:$: $lt_compiler_flag:'` 8296 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8297 (eval "$lt_compile" 2>conftest.err) 8298 ac_status=$? 8299 cat conftest.err >&5 8300 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8301 if (exit $ac_status) && test -s "$ac_outfile"; then 8302 # The compiler can only warn and ignore the option if not recognized 8303 # So say no if there are warnings other than the usual output. 8304 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 8305 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8306 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8307 lt_cv_prog_compiler_pic_works=yes 8308 fi 8309 fi 8310 $RM conftest* 8311 8312fi 8313{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 8314$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 8315 8316if test x"$lt_cv_prog_compiler_pic_works" = xyes; then 8317 case $lt_prog_compiler_pic in 8318 "" | " "*) ;; 8319 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 8320 esac 8321else 8322 lt_prog_compiler_pic= 8323 lt_prog_compiler_can_build_shared=no 8324fi 8325 8326fi 8327 8328 8329 8330 8331 8332 8333 8334 8335 8336 8337 8338# 8339# Check to make sure the static flag actually works. 8340# 8341wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 8342{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 8343$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 8344if ${lt_cv_prog_compiler_static_works+:} false; then : 8345 $as_echo_n "(cached) " >&6 8346else 8347 lt_cv_prog_compiler_static_works=no 8348 save_LDFLAGS="$LDFLAGS" 8349 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 8350 echo "$lt_simple_link_test_code" > conftest.$ac_ext 8351 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 8352 # The linker can only warn and ignore the option if not recognized 8353 # So say no if there are warnings 8354 if test -s conftest.err; then 8355 # Append any errors to the config.log. 8356 cat conftest.err 1>&5 8357 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 8358 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8359 if diff conftest.exp conftest.er2 >/dev/null; then 8360 lt_cv_prog_compiler_static_works=yes 8361 fi 8362 else 8363 lt_cv_prog_compiler_static_works=yes 8364 fi 8365 fi 8366 $RM -r conftest* 8367 LDFLAGS="$save_LDFLAGS" 8368 8369fi 8370{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 8371$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 8372 8373if test x"$lt_cv_prog_compiler_static_works" = xyes; then 8374 : 8375else 8376 lt_prog_compiler_static= 8377fi 8378 8379 8380 8381 8382 8383 8384 8385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 8386$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 8387if ${lt_cv_prog_compiler_c_o+:} false; then : 8388 $as_echo_n "(cached) " >&6 8389else 8390 lt_cv_prog_compiler_c_o=no 8391 $RM -r conftest 2>/dev/null 8392 mkdir conftest 8393 cd conftest 8394 mkdir out 8395 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8396 8397 lt_compiler_flag="-o out/conftest2.$ac_objext" 8398 # Insert the option either (1) after the last *FLAGS variable, or 8399 # (2) before a word containing "conftest.", or (3) at the end. 8400 # Note that $ac_compile itself does not contain backslashes and begins 8401 # with a dollar sign (not a hyphen), so the echo should work correctly. 8402 lt_compile=`echo "$ac_compile" | $SED \ 8403 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8404 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8405 -e 's:$: $lt_compiler_flag:'` 8406 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8407 (eval "$lt_compile" 2>out/conftest.err) 8408 ac_status=$? 8409 cat out/conftest.err >&5 8410 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8411 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8412 then 8413 # The compiler can only warn and ignore the option if not recognized 8414 # So say no if there are warnings 8415 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 8416 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8417 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8418 lt_cv_prog_compiler_c_o=yes 8419 fi 8420 fi 8421 chmod u+w . 2>&5 8422 $RM conftest* 8423 # SGI C++ compiler will create directory out/ii_files/ for 8424 # template instantiation 8425 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 8426 $RM out/* && rmdir out 8427 cd .. 8428 $RM -r conftest 8429 $RM conftest* 8430 8431fi 8432{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 8433$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 8434 8435 8436 8437 8438 8439 8440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 8441$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 8442if ${lt_cv_prog_compiler_c_o+:} false; then : 8443 $as_echo_n "(cached) " >&6 8444else 8445 lt_cv_prog_compiler_c_o=no 8446 $RM -r conftest 2>/dev/null 8447 mkdir conftest 8448 cd conftest 8449 mkdir out 8450 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8451 8452 lt_compiler_flag="-o out/conftest2.$ac_objext" 8453 # Insert the option either (1) after the last *FLAGS variable, or 8454 # (2) before a word containing "conftest.", or (3) at the end. 8455 # Note that $ac_compile itself does not contain backslashes and begins 8456 # with a dollar sign (not a hyphen), so the echo should work correctly. 8457 lt_compile=`echo "$ac_compile" | $SED \ 8458 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8459 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8460 -e 's:$: $lt_compiler_flag:'` 8461 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8462 (eval "$lt_compile" 2>out/conftest.err) 8463 ac_status=$? 8464 cat out/conftest.err >&5 8465 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8466 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8467 then 8468 # The compiler can only warn and ignore the option if not recognized 8469 # So say no if there are warnings 8470 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 8471 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8472 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8473 lt_cv_prog_compiler_c_o=yes 8474 fi 8475 fi 8476 chmod u+w . 2>&5 8477 $RM conftest* 8478 # SGI C++ compiler will create directory out/ii_files/ for 8479 # template instantiation 8480 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 8481 $RM out/* && rmdir out 8482 cd .. 8483 $RM -r conftest 8484 $RM conftest* 8485 8486fi 8487{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 8488$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 8489 8490 8491 8492 8493hard_links="nottested" 8494if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 8495 # do not overwrite the value of need_locks provided by the user 8496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 8497$as_echo_n "checking if we can lock with hard links... " >&6; } 8498 hard_links=yes 8499 $RM conftest* 8500 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8501 touch conftest.a 8502 ln conftest.a conftest.b 2>&5 || hard_links=no 8503 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 8505$as_echo "$hard_links" >&6; } 8506 if test "$hard_links" = no; then 8507 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 8508$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 8509 need_locks=warn 8510 fi 8511else 8512 need_locks=no 8513fi 8514 8515 8516 8517 8518 8519 8520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 8521$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 8522 8523 runpath_var= 8524 allow_undefined_flag= 8525 always_export_symbols=no 8526 archive_cmds= 8527 archive_expsym_cmds= 8528 compiler_needs_object=no 8529 enable_shared_with_static_runtimes=no 8530 export_dynamic_flag_spec= 8531 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 8532 hardcode_automatic=no 8533 hardcode_direct=no 8534 hardcode_direct_absolute=no 8535 hardcode_libdir_flag_spec= 8536 hardcode_libdir_separator= 8537 hardcode_minus_L=no 8538 hardcode_shlibpath_var=unsupported 8539 inherit_rpath=no 8540 link_all_deplibs=unknown 8541 module_cmds= 8542 module_expsym_cmds= 8543 old_archive_from_new_cmds= 8544 old_archive_from_expsyms_cmds= 8545 thread_safe_flag_spec= 8546 whole_archive_flag_spec= 8547 # include_expsyms should be a list of space-separated symbols to be *always* 8548 # included in the symbol list 8549 include_expsyms= 8550 # exclude_expsyms can be an extended regexp of symbols to exclude 8551 # it will be wrapped by ` (' and `)$', so one must not match beginning or 8552 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 8553 # as well as any symbol that contains `d'. 8554 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 8555 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 8556 # platforms (ab)use it in PIC code, but their linkers get confused if 8557 # the symbol is explicitly referenced. Since portable code cannot 8558 # rely on this symbol name, it's probably fine to never include it in 8559 # preloaded symbol tables. 8560 # Exclude shared library initialization/finalization symbols. 8561 extract_expsyms_cmds= 8562 8563 case $host_os in 8564 cygwin* | mingw* | pw32* | cegcc*) 8565 # FIXME: the MSVC++ port hasn't been tested in a loooong time 8566 # When not using gcc, we currently assume that we are using 8567 # Microsoft Visual C++. 8568 if test "$GCC" != yes; then 8569 with_gnu_ld=no 8570 fi 8571 ;; 8572 interix*) 8573 # we just hope/assume this is gcc and not c89 (= MSVC++) 8574 with_gnu_ld=yes 8575 ;; 8576 openbsd*) 8577 with_gnu_ld=no 8578 ;; 8579 esac 8580 8581 ld_shlibs=yes 8582 8583 # On some targets, GNU ld is compatible enough with the native linker 8584 # that we're better off using the native interface for both. 8585 lt_use_gnu_ld_interface=no 8586 if test "$with_gnu_ld" = yes; then 8587 case $host_os in 8588 aix*) 8589 # The AIX port of GNU ld has always aspired to compatibility 8590 # with the native linker. However, as the warning in the GNU ld 8591 # block says, versions before 2.19.5* couldn't really create working 8592 # shared libraries, regardless of the interface used. 8593 case `$LD -v 2>&1` in 8594 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 8595 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 8596 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 8597 *) 8598 lt_use_gnu_ld_interface=yes 8599 ;; 8600 esac 8601 ;; 8602 *) 8603 lt_use_gnu_ld_interface=yes 8604 ;; 8605 esac 8606 fi 8607 8608 if test "$lt_use_gnu_ld_interface" = yes; then 8609 # If archive_cmds runs LD, not CC, wlarc should be empty 8610 wlarc='${wl}' 8611 8612 # Set some defaults for GNU ld with shared library support. These 8613 # are reset later if shared libraries are not supported. Putting them 8614 # here allows them to be overridden if necessary. 8615 runpath_var=LD_RUN_PATH 8616 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8617 export_dynamic_flag_spec='${wl}--export-dynamic' 8618 # ancient GNU ld didn't support --whole-archive et. al. 8619 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 8620 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 8621 else 8622 whole_archive_flag_spec= 8623 fi 8624 supports_anon_versioning=no 8625 case `$LD -v 2>&1` in 8626 *GNU\ gold*) supports_anon_versioning=yes ;; 8627 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 8628 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 8629 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 8630 *\ 2.11.*) ;; # other 2.11 versions 8631 *) supports_anon_versioning=yes ;; 8632 esac 8633 8634 # See if GNU ld supports shared libraries. 8635 case $host_os in 8636 aix[3-9]*) 8637 # On AIX/PPC, the GNU linker is very broken 8638 if test "$host_cpu" != ia64; then 8639 ld_shlibs=no 8640 cat <<_LT_EOF 1>&2 8641 8642*** Warning: the GNU linker, at least up to release 2.19, is reported 8643*** to be unable to reliably create shared libraries on AIX. 8644*** Therefore, libtool is disabling shared libraries support. If you 8645*** really care for shared libraries, you may want to install binutils 8646*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 8647*** You will then need to restart the configuration process. 8648 8649_LT_EOF 8650 fi 8651 ;; 8652 8653 amigaos*) 8654 case $host_cpu in 8655 powerpc) 8656 # see comment about AmigaOS4 .so support 8657 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8658 archive_expsym_cmds='' 8659 ;; 8660 m68k) 8661 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)' 8662 hardcode_libdir_flag_spec='-L$libdir' 8663 hardcode_minus_L=yes 8664 ;; 8665 esac 8666 ;; 8667 8668 beos*) 8669 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8670 allow_undefined_flag=unsupported 8671 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 8672 # support --undefined. This deserves some investigation. FIXME 8673 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8674 else 8675 ld_shlibs=no 8676 fi 8677 ;; 8678 8679 cygwin* | mingw* | pw32* | cegcc*) 8680 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 8681 # as there is no search path for DLLs. 8682 hardcode_libdir_flag_spec='-L$libdir' 8683 export_dynamic_flag_spec='${wl}--export-all-symbols' 8684 allow_undefined_flag=unsupported 8685 always_export_symbols=no 8686 enable_shared_with_static_runtimes=yes 8687 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' 8688 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 8689 8690 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 8691 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 8692 # If the export-symbols file already is a .def file (1st line 8693 # is EXPORTS), use it as is; otherwise, prepend... 8694 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 8695 cp $export_symbols $output_objdir/$soname.def; 8696 else 8697 echo EXPORTS > $output_objdir/$soname.def; 8698 cat $export_symbols >> $output_objdir/$soname.def; 8699 fi~ 8700 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 8701 else 8702 ld_shlibs=no 8703 fi 8704 ;; 8705 8706 haiku*) 8707 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8708 link_all_deplibs=yes 8709 ;; 8710 8711 interix[3-9]*) 8712 hardcode_direct=no 8713 hardcode_shlibpath_var=no 8714 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8715 export_dynamic_flag_spec='${wl}-E' 8716 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 8717 # Instead, shared libraries are loaded at an image base (0x10000000 by 8718 # default) and relocated if they conflict, which is a slow very memory 8719 # consuming and fragmenting process. To avoid this, we pick a random, 8720 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 8721 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 8722 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 8723 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' 8724 ;; 8725 8726 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 8727 tmp_diet=no 8728 if test "$host_os" = linux-dietlibc; then 8729 case $cc_basename in 8730 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 8731 esac 8732 fi 8733 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 8734 && test "$tmp_diet" = no 8735 then 8736 tmp_addflag=' $pic_flag' 8737 tmp_sharedflag='-shared' 8738 case $cc_basename,$host_cpu in 8739 pgcc*) # Portland Group C compiler 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' 8742 ;; 8743 pgf77* | pgf90* | pgf95* | pgfortran*) 8744 # Portland Group f77 and f90 compilers 8745 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' 8746 tmp_addflag=' $pic_flag -Mnomain' ;; 8747 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 8748 tmp_addflag=' -i_dynamic' ;; 8749 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 8750 tmp_addflag=' -i_dynamic -nofor_main' ;; 8751 ifc* | ifort*) # Intel Fortran compiler 8752 tmp_addflag=' -nofor_main' ;; 8753 lf95*) # Lahey Fortran 8.1 8754 whole_archive_flag_spec= 8755 tmp_sharedflag='--shared' ;; 8756 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 8757 tmp_sharedflag='-qmkshrobj' 8758 tmp_addflag= ;; 8759 nvcc*) # Cuda Compiler Driver 2.2 8760 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' 8761 compiler_needs_object=yes 8762 ;; 8763 esac 8764 case `$CC -V 2>&1 | sed 5q` in 8765 *Sun\ C*) # Sun C 5.9 8766 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' 8767 compiler_needs_object=yes 8768 tmp_sharedflag='-G' ;; 8769 *Sun\ F*) # Sun Fortran 8.3 8770 tmp_sharedflag='-G' ;; 8771 esac 8772 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8773 8774 if test "x$supports_anon_versioning" = xyes; then 8775 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 8776 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 8777 echo "local: *; };" >> $output_objdir/$libname.ver~ 8778 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 8779 fi 8780 8781 case $cc_basename in 8782 xlf* | bgf* | bgxlf* | mpixlf*) 8783 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 8784 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 8785 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8786 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 8787 if test "x$supports_anon_versioning" = xyes; then 8788 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 8789 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 8790 echo "local: *; };" >> $output_objdir/$libname.ver~ 8791 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 8792 fi 8793 ;; 8794 esac 8795 else 8796 ld_shlibs=no 8797 fi 8798 ;; 8799 8800 netbsd*) 8801 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 8802 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 8803 wlarc= 8804 else 8805 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8806 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8807 fi 8808 ;; 8809 8810 solaris*) 8811 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 8812 ld_shlibs=no 8813 cat <<_LT_EOF 1>&2 8814 8815*** Warning: The releases 2.8.* of the GNU linker cannot reliably 8816*** create shared libraries on Solaris systems. Therefore, libtool 8817*** is disabling shared libraries support. We urge you to upgrade GNU 8818*** binutils to release 2.9.1 or newer. Another option is to modify 8819*** your PATH or compiler configuration so that the native linker is 8820*** used, and then restart. 8821 8822_LT_EOF 8823 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8824 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8825 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8826 else 8827 ld_shlibs=no 8828 fi 8829 ;; 8830 8831 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 8832 case `$LD -v 2>&1` in 8833 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 8834 ld_shlibs=no 8835 cat <<_LT_EOF 1>&2 8836 8837*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 8838*** reliably create shared libraries on SCO systems. Therefore, libtool 8839*** is disabling shared libraries support. We urge you to upgrade GNU 8840*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 8841*** your PATH or compiler configuration so that the native linker is 8842*** used, and then restart. 8843 8844_LT_EOF 8845 ;; 8846 *) 8847 # For security reasons, it is highly recommended that you always 8848 # use absolute paths for naming shared libraries, and exclude the 8849 # DT_RUNPATH tag from executables and libraries. But doing so 8850 # requires that you compile everything twice, which is a pain. 8851 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8852 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8853 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8854 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8855 else 8856 ld_shlibs=no 8857 fi 8858 ;; 8859 esac 8860 ;; 8861 8862 sunos4*) 8863 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8864 wlarc= 8865 hardcode_direct=yes 8866 hardcode_shlibpath_var=no 8867 ;; 8868 8869 *) 8870 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8871 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8872 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8873 else 8874 ld_shlibs=no 8875 fi 8876 ;; 8877 esac 8878 8879 if test "$ld_shlibs" = no; then 8880 runpath_var= 8881 hardcode_libdir_flag_spec= 8882 export_dynamic_flag_spec= 8883 whole_archive_flag_spec= 8884 fi 8885 else 8886 # PORTME fill in a description of your system's linker (not GNU ld) 8887 case $host_os in 8888 aix3*) 8889 allow_undefined_flag=unsupported 8890 always_export_symbols=yes 8891 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' 8892 # Note: this linker hardcodes the directories in LIBPATH if there 8893 # are no directories specified by -L. 8894 hardcode_minus_L=yes 8895 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 8896 # Neither direct hardcoding nor static linking is supported with a 8897 # broken collect2. 8898 hardcode_direct=unsupported 8899 fi 8900 ;; 8901 8902 aix[4-9]*) 8903 if test "$host_cpu" = ia64; then 8904 # On IA64, the linker does run time linking by default, so we don't 8905 # have to do anything special. 8906 aix_use_runtimelinking=no 8907 exp_sym_flag='-Bexport' 8908 no_entry_flag="" 8909 else 8910 # If we're using GNU nm, then we don't want the "-C" option. 8911 # -C means demangle to AIX nm, but means don't demangle with GNU nm 8912 # Also, AIX nm treats weak defined symbols like other global 8913 # defined symbols, whereas GNU nm marks them as "W". 8914 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 8915 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' 8916 else 8917 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' 8918 fi 8919 aix_use_runtimelinking=no 8920 8921 # Test if we are trying to use run time linking or normal 8922 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 8923 # need to do runtime linking. 8924 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 8925 for ld_flag in $LDFLAGS; do 8926 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 8927 aix_use_runtimelinking=yes 8928 break 8929 fi 8930 done 8931 ;; 8932 esac 8933 8934 exp_sym_flag='-bexport' 8935 no_entry_flag='-bnoentry' 8936 fi 8937 8938 # When large executables or shared objects are built, AIX ld can 8939 # have problems creating the table of contents. If linking a library 8940 # or program results in "error TOC overflow" add -mminimal-toc to 8941 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 8942 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 8943 8944 archive_cmds='' 8945 hardcode_direct=yes 8946 hardcode_direct_absolute=yes 8947 hardcode_libdir_separator=':' 8948 link_all_deplibs=yes 8949 file_list_spec='${wl}-f,' 8950 8951 if test "$GCC" = yes; then 8952 case $host_os in aix4.[012]|aix4.[012].*) 8953 # We only want to do this on AIX 4.2 and lower, the check 8954 # below for broken collect2 doesn't work under 4.3+ 8955 collect2name=`${CC} -print-prog-name=collect2` 8956 if test -f "$collect2name" && 8957 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 8958 then 8959 # We have reworked collect2 8960 : 8961 else 8962 # We have old collect2 8963 hardcode_direct=unsupported 8964 # It fails to find uninstalled libraries when the uninstalled 8965 # path is not listed in the libpath. Setting hardcode_minus_L 8966 # to unsupported forces relinking 8967 hardcode_minus_L=yes 8968 hardcode_libdir_flag_spec='-L$libdir' 8969 hardcode_libdir_separator= 8970 fi 8971 ;; 8972 esac 8973 shared_flag='-shared' 8974 if test "$aix_use_runtimelinking" = yes; then 8975 shared_flag="$shared_flag "'${wl}-G' 8976 fi 8977 else 8978 # not using gcc 8979 if test "$host_cpu" = ia64; then 8980 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 8981 # chokes on -Wl,-G. The following line is correct: 8982 shared_flag='-G' 8983 else 8984 if test "$aix_use_runtimelinking" = yes; then 8985 shared_flag='${wl}-G' 8986 else 8987 shared_flag='${wl}-bM:SRE' 8988 fi 8989 fi 8990 fi 8991 8992 export_dynamic_flag_spec='${wl}-bexpall' 8993 # It seems that -bexpall does not export symbols beginning with 8994 # underscore (_), so it is better to generate a list of symbols to export. 8995 always_export_symbols=yes 8996 if test "$aix_use_runtimelinking" = yes; then 8997 # Warning - without using the other runtime loading flags (-brtl), 8998 # -berok will link without error, but may produce a broken library. 8999 allow_undefined_flag='-berok' 9000 # Determine the default libpath from the value encoded in an 9001 # empty executable. 9002 if test "${lt_cv_aix_libpath+set}" = set; then 9003 aix_libpath=$lt_cv_aix_libpath 9004else 9005 if ${lt_cv_aix_libpath_+:} false; then : 9006 $as_echo_n "(cached) " >&6 9007else 9008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9009/* end confdefs.h. */ 9010 9011int 9012main () 9013{ 9014 9015 ; 9016 return 0; 9017} 9018_ACEOF 9019if ac_fn_c_try_link "$LINENO"; then : 9020 9021 lt_aix_libpath_sed=' 9022 /Import File Strings/,/^$/ { 9023 /^0/ { 9024 s/^0 *\([^ ]*\) *$/\1/ 9025 p 9026 } 9027 }' 9028 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9029 # Check for a 64-bit object if we didn't find anything. 9030 if test -z "$lt_cv_aix_libpath_"; then 9031 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9032 fi 9033fi 9034rm -f core conftest.err conftest.$ac_objext \ 9035 conftest$ac_exeext conftest.$ac_ext 9036 if test -z "$lt_cv_aix_libpath_"; then 9037 lt_cv_aix_libpath_="/usr/lib:/lib" 9038 fi 9039 9040fi 9041 9042 aix_libpath=$lt_cv_aix_libpath_ 9043fi 9044 9045 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 9046 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" 9047 else 9048 if test "$host_cpu" = ia64; then 9049 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 9050 allow_undefined_flag="-z nodefs" 9051 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" 9052 else 9053 # Determine the default libpath from the value encoded in an 9054 # empty executable. 9055 if test "${lt_cv_aix_libpath+set}" = set; then 9056 aix_libpath=$lt_cv_aix_libpath 9057else 9058 if ${lt_cv_aix_libpath_+:} false; then : 9059 $as_echo_n "(cached) " >&6 9060else 9061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9062/* end confdefs.h. */ 9063 9064int 9065main () 9066{ 9067 9068 ; 9069 return 0; 9070} 9071_ACEOF 9072if ac_fn_c_try_link "$LINENO"; then : 9073 9074 lt_aix_libpath_sed=' 9075 /Import File Strings/,/^$/ { 9076 /^0/ { 9077 s/^0 *\([^ ]*\) *$/\1/ 9078 p 9079 } 9080 }' 9081 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9082 # Check for a 64-bit object if we didn't find anything. 9083 if test -z "$lt_cv_aix_libpath_"; then 9084 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9085 fi 9086fi 9087rm -f core conftest.err conftest.$ac_objext \ 9088 conftest$ac_exeext conftest.$ac_ext 9089 if test -z "$lt_cv_aix_libpath_"; then 9090 lt_cv_aix_libpath_="/usr/lib:/lib" 9091 fi 9092 9093fi 9094 9095 aix_libpath=$lt_cv_aix_libpath_ 9096fi 9097 9098 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 9099 # Warning - without using the other run time loading flags, 9100 # -berok will link without error, but may produce a broken library. 9101 no_undefined_flag=' ${wl}-bernotok' 9102 allow_undefined_flag=' ${wl}-berok' 9103 if test "$with_gnu_ld" = yes; then 9104 # We only use this code for GNU lds that support --whole-archive. 9105 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 9106 else 9107 # Exported symbols can be pulled into shared objects from archives 9108 whole_archive_flag_spec='$convenience' 9109 fi 9110 archive_cmds_need_lc=yes 9111 # This is similar to how AIX traditionally builds its shared libraries. 9112 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' 9113 fi 9114 fi 9115 ;; 9116 9117 amigaos*) 9118 case $host_cpu in 9119 powerpc) 9120 # see comment about AmigaOS4 .so support 9121 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9122 archive_expsym_cmds='' 9123 ;; 9124 m68k) 9125 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)' 9126 hardcode_libdir_flag_spec='-L$libdir' 9127 hardcode_minus_L=yes 9128 ;; 9129 esac 9130 ;; 9131 9132 bsdi[45]*) 9133 export_dynamic_flag_spec=-rdynamic 9134 ;; 9135 9136 cygwin* | mingw* | pw32* | cegcc*) 9137 # When not using gcc, we currently assume that we are using 9138 # Microsoft Visual C++. 9139 # hardcode_libdir_flag_spec is actually meaningless, as there is 9140 # no search path for DLLs. 9141 case $cc_basename in 9142 cl*) 9143 # Native MSVC 9144 hardcode_libdir_flag_spec=' ' 9145 allow_undefined_flag=unsupported 9146 always_export_symbols=yes 9147 file_list_spec='@' 9148 # Tell ltmain to make .lib files, not .a files. 9149 libext=lib 9150 # Tell ltmain to make .dll files, not .so files. 9151 shrext_cmds=".dll" 9152 # FIXME: Setting linknames here is a bad hack. 9153 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' 9154 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 9155 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; 9156 else 9157 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; 9158 fi~ 9159 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 9160 linknames=' 9161 # The linker will not automatically build a static lib if we build a DLL. 9162 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 9163 enable_shared_with_static_runtimes=yes 9164 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 9165 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 9166 # Don't use ranlib 9167 old_postinstall_cmds='chmod 644 $oldlib' 9168 postlink_cmds='lt_outputfile="@OUTPUT@"~ 9169 lt_tool_outputfile="@TOOL_OUTPUT@"~ 9170 case $lt_outputfile in 9171 *.exe|*.EXE) ;; 9172 *) 9173 lt_outputfile="$lt_outputfile.exe" 9174 lt_tool_outputfile="$lt_tool_outputfile.exe" 9175 ;; 9176 esac~ 9177 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then 9178 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 9179 $RM "$lt_outputfile.manifest"; 9180 fi' 9181 ;; 9182 *) 9183 # Assume MSVC wrapper 9184 hardcode_libdir_flag_spec=' ' 9185 allow_undefined_flag=unsupported 9186 # Tell ltmain to make .lib files, not .a files. 9187 libext=lib 9188 # Tell ltmain to make .dll files, not .so files. 9189 shrext_cmds=".dll" 9190 # FIXME: Setting linknames here is a bad hack. 9191 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 9192 # The linker will automatically build a .lib file if we build a DLL. 9193 old_archive_from_new_cmds='true' 9194 # FIXME: Should let the user specify the lib program. 9195 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 9196 enable_shared_with_static_runtimes=yes 9197 ;; 9198 esac 9199 ;; 9200 9201 darwin* | rhapsody*) 9202 9203 9204 archive_cmds_need_lc=no 9205 hardcode_direct=no 9206 hardcode_automatic=yes 9207 hardcode_shlibpath_var=unsupported 9208 if test "$lt_cv_ld_force_load" = "yes"; then 9209 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\"`' 9210 9211 else 9212 whole_archive_flag_spec='' 9213 fi 9214 link_all_deplibs=yes 9215 allow_undefined_flag="$_lt_dar_allow_undefined" 9216 case $cc_basename in 9217 ifort*) _lt_dar_can_shared=yes ;; 9218 *) _lt_dar_can_shared=$GCC ;; 9219 esac 9220 if test "$_lt_dar_can_shared" = "yes"; then 9221 output_verbose_link_cmd=func_echo_all 9222 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 9223 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 9224 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}" 9225 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}" 9226 9227 else 9228 ld_shlibs=no 9229 fi 9230 9231 ;; 9232 9233 dgux*) 9234 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9235 hardcode_libdir_flag_spec='-L$libdir' 9236 hardcode_shlibpath_var=no 9237 ;; 9238 9239 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 9240 # support. Future versions do this automatically, but an explicit c++rt0.o 9241 # does not break anything, and helps significantly (at the cost of a little 9242 # extra space). 9243 freebsd2.2*) 9244 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 9245 hardcode_libdir_flag_spec='-R$libdir' 9246 hardcode_direct=yes 9247 hardcode_shlibpath_var=no 9248 ;; 9249 9250 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 9251 freebsd2.*) 9252 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9253 hardcode_direct=yes 9254 hardcode_minus_L=yes 9255 hardcode_shlibpath_var=no 9256 ;; 9257 9258 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 9259 freebsd* | dragonfly*) 9260 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9261 hardcode_libdir_flag_spec='-R$libdir' 9262 hardcode_direct=yes 9263 hardcode_shlibpath_var=no 9264 ;; 9265 9266 hpux9*) 9267 if test "$GCC" = yes; then 9268 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' 9269 else 9270 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' 9271 fi 9272 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9273 hardcode_libdir_separator=: 9274 hardcode_direct=yes 9275 9276 # hardcode_minus_L: Not really in the search PATH, 9277 # but as the default location of the library. 9278 hardcode_minus_L=yes 9279 export_dynamic_flag_spec='${wl}-E' 9280 ;; 9281 9282 hpux10*) 9283 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 9284 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9285 else 9286 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 9287 fi 9288 if test "$with_gnu_ld" = no; then 9289 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9290 hardcode_libdir_separator=: 9291 hardcode_direct=yes 9292 hardcode_direct_absolute=yes 9293 export_dynamic_flag_spec='${wl}-E' 9294 # hardcode_minus_L: Not really in the search PATH, 9295 # but as the default location of the library. 9296 hardcode_minus_L=yes 9297 fi 9298 ;; 9299 9300 hpux11*) 9301 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 9302 case $host_cpu in 9303 hppa*64*) 9304 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9305 ;; 9306 ia64*) 9307 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9308 ;; 9309 *) 9310 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9311 ;; 9312 esac 9313 else 9314 case $host_cpu in 9315 hppa*64*) 9316 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9317 ;; 9318 ia64*) 9319 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9320 ;; 9321 *) 9322 9323 # Older versions of the 11.00 compiler do not understand -b yet 9324 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 9325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 9326$as_echo_n "checking if $CC understands -b... " >&6; } 9327if ${lt_cv_prog_compiler__b+:} false; then : 9328 $as_echo_n "(cached) " >&6 9329else 9330 lt_cv_prog_compiler__b=no 9331 save_LDFLAGS="$LDFLAGS" 9332 LDFLAGS="$LDFLAGS -b" 9333 echo "$lt_simple_link_test_code" > conftest.$ac_ext 9334 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 9335 # The linker can only warn and ignore the option if not recognized 9336 # So say no if there are warnings 9337 if test -s conftest.err; then 9338 # Append any errors to the config.log. 9339 cat conftest.err 1>&5 9340 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 9341 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9342 if diff conftest.exp conftest.er2 >/dev/null; then 9343 lt_cv_prog_compiler__b=yes 9344 fi 9345 else 9346 lt_cv_prog_compiler__b=yes 9347 fi 9348 fi 9349 $RM -r conftest* 9350 LDFLAGS="$save_LDFLAGS" 9351 9352fi 9353{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 9354$as_echo "$lt_cv_prog_compiler__b" >&6; } 9355 9356if test x"$lt_cv_prog_compiler__b" = xyes; then 9357 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9358else 9359 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 9360fi 9361 9362 ;; 9363 esac 9364 fi 9365 if test "$with_gnu_ld" = no; then 9366 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9367 hardcode_libdir_separator=: 9368 9369 case $host_cpu in 9370 hppa*64*|ia64*) 9371 hardcode_direct=no 9372 hardcode_shlibpath_var=no 9373 ;; 9374 *) 9375 hardcode_direct=yes 9376 hardcode_direct_absolute=yes 9377 export_dynamic_flag_spec='${wl}-E' 9378 9379 # hardcode_minus_L: Not really in the search PATH, 9380 # but as the default location of the library. 9381 hardcode_minus_L=yes 9382 ;; 9383 esac 9384 fi 9385 ;; 9386 9387 irix5* | irix6* | nonstopux*) 9388 if test "$GCC" = yes; then 9389 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' 9390 # Try to use the -exported_symbol ld option, if it does not 9391 # work, assume that -exports_file does not work either and 9392 # implicitly export all symbols. 9393 # This should be the same for all languages, so no per-tag cache variable. 9394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 9395$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 9396if ${lt_cv_irix_exported_symbol+:} false; then : 9397 $as_echo_n "(cached) " >&6 9398else 9399 save_LDFLAGS="$LDFLAGS" 9400 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" 9401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9402/* end confdefs.h. */ 9403int foo (void) { return 0; } 9404_ACEOF 9405if ac_fn_c_try_link "$LINENO"; then : 9406 lt_cv_irix_exported_symbol=yes 9407else 9408 lt_cv_irix_exported_symbol=no 9409fi 9410rm -f core conftest.err conftest.$ac_objext \ 9411 conftest$ac_exeext conftest.$ac_ext 9412 LDFLAGS="$save_LDFLAGS" 9413fi 9414{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 9415$as_echo "$lt_cv_irix_exported_symbol" >&6; } 9416 if test "$lt_cv_irix_exported_symbol" = yes; then 9417 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' 9418 fi 9419 else 9420 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' 9421 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' 9422 fi 9423 archive_cmds_need_lc='no' 9424 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9425 hardcode_libdir_separator=: 9426 inherit_rpath=yes 9427 link_all_deplibs=yes 9428 ;; 9429 9430 netbsd*) 9431 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9432 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 9433 else 9434 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 9435 fi 9436 hardcode_libdir_flag_spec='-R$libdir' 9437 hardcode_direct=yes 9438 hardcode_shlibpath_var=no 9439 ;; 9440 9441 newsos6) 9442 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9443 hardcode_direct=yes 9444 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9445 hardcode_libdir_separator=: 9446 hardcode_shlibpath_var=no 9447 ;; 9448 9449 *nto* | *qnx*) 9450 ;; 9451 9452 openbsd*) 9453 if test -f /usr/libexec/ld.so; then 9454 hardcode_direct=yes 9455 hardcode_shlibpath_var=no 9456 hardcode_direct_absolute=yes 9457 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 9458 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9459 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 9460 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9461 export_dynamic_flag_spec='${wl}-E' 9462 else 9463 case $host_os in 9464 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 9465 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9466 hardcode_libdir_flag_spec='-R$libdir' 9467 ;; 9468 *) 9469 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9470 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9471 ;; 9472 esac 9473 fi 9474 else 9475 ld_shlibs=no 9476 fi 9477 ;; 9478 9479 os2*) 9480 hardcode_libdir_flag_spec='-L$libdir' 9481 hardcode_minus_L=yes 9482 allow_undefined_flag=unsupported 9483 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' 9484 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 9485 ;; 9486 9487 osf3*) 9488 if test "$GCC" = yes; then 9489 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 9490 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' 9491 else 9492 allow_undefined_flag=' -expect_unresolved \*' 9493 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' 9494 fi 9495 archive_cmds_need_lc='no' 9496 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9497 hardcode_libdir_separator=: 9498 ;; 9499 9500 osf4* | osf5*) # as osf3* with the addition of -msym flag 9501 if test "$GCC" = yes; then 9502 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 9503 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' 9504 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9505 else 9506 allow_undefined_flag=' -expect_unresolved \*' 9507 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' 9508 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~ 9509 $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' 9510 9511 # Both c and cxx compiler support -rpath directly 9512 hardcode_libdir_flag_spec='-rpath $libdir' 9513 fi 9514 archive_cmds_need_lc='no' 9515 hardcode_libdir_separator=: 9516 ;; 9517 9518 solaris*) 9519 no_undefined_flag=' -z defs' 9520 if test "$GCC" = yes; then 9521 wlarc='${wl}' 9522 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9523 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9524 $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' 9525 else 9526 case `$CC -V 2>&1` in 9527 *"Compilers 5.0"*) 9528 wlarc='' 9529 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 9530 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9531 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 9532 ;; 9533 *) 9534 wlarc='${wl}' 9535 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' 9536 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9537 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 9538 ;; 9539 esac 9540 fi 9541 hardcode_libdir_flag_spec='-R$libdir' 9542 hardcode_shlibpath_var=no 9543 case $host_os in 9544 solaris2.[0-5] | solaris2.[0-5].*) ;; 9545 *) 9546 # The compiler driver will combine and reorder linker options, 9547 # but understands `-z linker_flag'. GCC discards it without `$wl', 9548 # but is careful enough not to reorder. 9549 # Supported since Solaris 2.6 (maybe 2.5.1?) 9550 if test "$GCC" = yes; then 9551 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 9552 else 9553 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 9554 fi 9555 ;; 9556 esac 9557 link_all_deplibs=yes 9558 ;; 9559 9560 sunos4*) 9561 if test "x$host_vendor" = xsequent; then 9562 # Use $CC to link under sequent, because it throws in some extra .o 9563 # files that make .init and .fini sections work. 9564 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 9565 else 9566 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 9567 fi 9568 hardcode_libdir_flag_spec='-L$libdir' 9569 hardcode_direct=yes 9570 hardcode_minus_L=yes 9571 hardcode_shlibpath_var=no 9572 ;; 9573 9574 sysv4) 9575 case $host_vendor in 9576 sni) 9577 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9578 hardcode_direct=yes # is this really true??? 9579 ;; 9580 siemens) 9581 ## LD is ld it makes a PLAMLIB 9582 ## CC just makes a GrossModule. 9583 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 9584 reload_cmds='$CC -r -o $output$reload_objs' 9585 hardcode_direct=no 9586 ;; 9587 motorola) 9588 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9589 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 9590 ;; 9591 esac 9592 runpath_var='LD_RUN_PATH' 9593 hardcode_shlibpath_var=no 9594 ;; 9595 9596 sysv4.3*) 9597 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9598 hardcode_shlibpath_var=no 9599 export_dynamic_flag_spec='-Bexport' 9600 ;; 9601 9602 sysv4*MP*) 9603 if test -d /usr/nec; then 9604 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9605 hardcode_shlibpath_var=no 9606 runpath_var=LD_RUN_PATH 9607 hardcode_runpath_var=yes 9608 ld_shlibs=yes 9609 fi 9610 ;; 9611 9612 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 9613 no_undefined_flag='${wl}-z,text' 9614 archive_cmds_need_lc=no 9615 hardcode_shlibpath_var=no 9616 runpath_var='LD_RUN_PATH' 9617 9618 if test "$GCC" = yes; then 9619 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9620 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9621 else 9622 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9623 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9624 fi 9625 ;; 9626 9627 sysv5* | sco3.2v5* | sco5v6*) 9628 # Note: We can NOT use -z defs as we might desire, because we do not 9629 # link with -lc, and that would cause any symbols used from libc to 9630 # always be unresolved, which means just about no library would 9631 # ever link correctly. If we're not using GNU ld we use -z text 9632 # though, which does catch some bad symbols but isn't as heavy-handed 9633 # as -z defs. 9634 no_undefined_flag='${wl}-z,text' 9635 allow_undefined_flag='${wl}-z,nodefs' 9636 archive_cmds_need_lc=no 9637 hardcode_shlibpath_var=no 9638 hardcode_libdir_flag_spec='${wl}-R,$libdir' 9639 hardcode_libdir_separator=':' 9640 link_all_deplibs=yes 9641 export_dynamic_flag_spec='${wl}-Bexport' 9642 runpath_var='LD_RUN_PATH' 9643 9644 if test "$GCC" = yes; then 9645 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9646 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9647 else 9648 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9649 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9650 fi 9651 ;; 9652 9653 uts4*) 9654 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9655 hardcode_libdir_flag_spec='-L$libdir' 9656 hardcode_shlibpath_var=no 9657 ;; 9658 9659 *) 9660 ld_shlibs=no 9661 ;; 9662 esac 9663 9664 if test x$host_vendor = xsni; then 9665 case $host in 9666 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 9667 export_dynamic_flag_spec='${wl}-Blargedynsym' 9668 ;; 9669 esac 9670 fi 9671 fi 9672 9673{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 9674$as_echo "$ld_shlibs" >&6; } 9675test "$ld_shlibs" = no && can_build_shared=no 9676 9677with_gnu_ld=$with_gnu_ld 9678 9679 9680 9681 9682 9683 9684 9685 9686 9687 9688 9689 9690 9691 9692 9693# 9694# Do we need to explicitly link libc? 9695# 9696case "x$archive_cmds_need_lc" in 9697x|xyes) 9698 # Assume -lc should be added 9699 archive_cmds_need_lc=yes 9700 9701 if test "$enable_shared" = yes && test "$GCC" = yes; then 9702 case $archive_cmds in 9703 *'~'*) 9704 # FIXME: we may have to deal with multi-command sequences. 9705 ;; 9706 '$CC '*) 9707 # Test whether the compiler implicitly links with -lc since on some 9708 # systems, -lgcc has to come before -lc. If gcc already passes -lc 9709 # to ld, don't add -lc before -lgcc. 9710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 9711$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 9712if ${lt_cv_archive_cmds_need_lc+:} false; then : 9713 $as_echo_n "(cached) " >&6 9714else 9715 $RM conftest* 9716 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9717 9718 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 9719 (eval $ac_compile) 2>&5 9720 ac_status=$? 9721 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9722 test $ac_status = 0; } 2>conftest.err; then 9723 soname=conftest 9724 lib=conftest 9725 libobjs=conftest.$ac_objext 9726 deplibs= 9727 wl=$lt_prog_compiler_wl 9728 pic_flag=$lt_prog_compiler_pic 9729 compiler_flags=-v 9730 linker_flags=-v 9731 verstring= 9732 output_objdir=. 9733 libname=conftest 9734 lt_save_allow_undefined_flag=$allow_undefined_flag 9735 allow_undefined_flag= 9736 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 9737 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 9738 ac_status=$? 9739 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9740 test $ac_status = 0; } 9741 then 9742 lt_cv_archive_cmds_need_lc=no 9743 else 9744 lt_cv_archive_cmds_need_lc=yes 9745 fi 9746 allow_undefined_flag=$lt_save_allow_undefined_flag 9747 else 9748 cat conftest.err 1>&5 9749 fi 9750 $RM conftest* 9751 9752fi 9753{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 9754$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 9755 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 9756 ;; 9757 esac 9758 fi 9759 ;; 9760esac 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 9909 9910 9911 9912 9913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 9914$as_echo_n "checking dynamic linker characteristics... " >&6; } 9915 9916if test "$GCC" = yes; then 9917 case $host_os in 9918 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; 9919 *) lt_awk_arg="/^libraries:/" ;; 9920 esac 9921 case $host_os in 9922 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;; 9923 *) lt_sed_strip_eq="s,=/,/,g" ;; 9924 esac 9925 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 9926 case $lt_search_path_spec in 9927 *\;*) 9928 # if the path contains ";" then we assume it to be the separator 9929 # otherwise default to the standard path separator (i.e. ":") - it is 9930 # assumed that no part of a normal pathname contains ";" but that should 9931 # okay in the real world where ";" in dirpaths is itself problematic. 9932 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 9933 ;; 9934 *) 9935 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 9936 ;; 9937 esac 9938 # Ok, now we have the path, separated by spaces, we can step through it 9939 # and add multilib dir if necessary. 9940 lt_tmp_lt_search_path_spec= 9941 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 9942 for lt_sys_path in $lt_search_path_spec; do 9943 if test -d "$lt_sys_path/$lt_multi_os_dir"; then 9944 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" 9945 else 9946 test -d "$lt_sys_path" && \ 9947 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 9948 fi 9949 done 9950 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 9951BEGIN {RS=" "; FS="/|\n";} { 9952 lt_foo=""; 9953 lt_count=0; 9954 for (lt_i = NF; lt_i > 0; lt_i--) { 9955 if ($lt_i != "" && $lt_i != ".") { 9956 if ($lt_i == "..") { 9957 lt_count++; 9958 } else { 9959 if (lt_count == 0) { 9960 lt_foo="/" $lt_i lt_foo; 9961 } else { 9962 lt_count--; 9963 } 9964 } 9965 } 9966 } 9967 if (lt_foo != "") { lt_freq[lt_foo]++; } 9968 if (lt_freq[lt_foo] == 1) { print lt_foo; } 9969}'` 9970 # AWK program above erroneously prepends '/' to C:/dos/paths 9971 # for these hosts. 9972 case $host_os in 9973 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 9974 $SED 's,/\([A-Za-z]:\),\1,g'` ;; 9975 esac 9976 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 9977else 9978 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 9979fi 9980library_names_spec= 9981libname_spec='lib$name' 9982soname_spec= 9983shrext_cmds=".so" 9984postinstall_cmds= 9985postuninstall_cmds= 9986finish_cmds= 9987finish_eval= 9988shlibpath_var= 9989shlibpath_overrides_runpath=unknown 9990version_type=none 9991dynamic_linker="$host_os ld.so" 9992sys_lib_dlsearch_path_spec="/lib /usr/lib" 9993need_lib_prefix=unknown 9994hardcode_into_libs=no 9995 9996# when you set need_version to no, make sure it does not cause -set_version 9997# flags to be left without arguments 9998need_version=unknown 9999 10000case $host_os in 10001aix3*) 10002 version_type=linux # correct to gnu/linux during the next big refactor 10003 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 10004 shlibpath_var=LIBPATH 10005 10006 # AIX 3 has no versioning support, so we append a major version to the name. 10007 soname_spec='${libname}${release}${shared_ext}$major' 10008 ;; 10009 10010aix[4-9]*) 10011 version_type=linux # correct to gnu/linux during the next big refactor 10012 need_lib_prefix=no 10013 need_version=no 10014 hardcode_into_libs=yes 10015 if test "$host_cpu" = ia64; then 10016 # AIX 5 supports IA64 10017 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 10018 shlibpath_var=LD_LIBRARY_PATH 10019 else 10020 # With GCC up to 2.95.x, collect2 would create an import file 10021 # for dependence libraries. The import file would start with 10022 # the line `#! .'. This would cause the generated library to 10023 # depend on `.', always an invalid library. This was fixed in 10024 # development snapshots of GCC prior to 3.0. 10025 case $host_os in 10026 aix4 | aix4.[01] | aix4.[01].*) 10027 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 10028 echo ' yes ' 10029 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 10030 : 10031 else 10032 can_build_shared=no 10033 fi 10034 ;; 10035 esac 10036 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 10037 # soname into executable. Probably we can add versioning support to 10038 # collect2, so additional links can be useful in future. 10039 if test "$aix_use_runtimelinking" = yes; then 10040 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 10041 # instead of lib<name>.a to let people know that these are not 10042 # typical AIX shared libraries. 10043 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10044 else 10045 # We preserve .a as extension for shared libraries through AIX4.2 10046 # and later when we are not doing run time linking. 10047 library_names_spec='${libname}${release}.a $libname.a' 10048 soname_spec='${libname}${release}${shared_ext}$major' 10049 fi 10050 shlibpath_var=LIBPATH 10051 fi 10052 ;; 10053 10054amigaos*) 10055 case $host_cpu in 10056 powerpc) 10057 # Since July 2007 AmigaOS4 officially supports .so libraries. 10058 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 10059 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10060 ;; 10061 m68k) 10062 library_names_spec='$libname.ixlibrary $libname.a' 10063 # Create ${libname}_ixlibrary.a entries in /sys/libs. 10064 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' 10065 ;; 10066 esac 10067 ;; 10068 10069beos*) 10070 library_names_spec='${libname}${shared_ext}' 10071 dynamic_linker="$host_os ld.so" 10072 shlibpath_var=LIBRARY_PATH 10073 ;; 10074 10075bsdi[45]*) 10076 version_type=linux # correct to gnu/linux during the next big refactor 10077 need_version=no 10078 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10079 soname_spec='${libname}${release}${shared_ext}$major' 10080 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 10081 shlibpath_var=LD_LIBRARY_PATH 10082 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 10083 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 10084 # the default ld.so.conf also contains /usr/contrib/lib and 10085 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 10086 # libtool to hard-code these into programs 10087 ;; 10088 10089cygwin* | mingw* | pw32* | cegcc*) 10090 version_type=windows 10091 shrext_cmds=".dll" 10092 need_version=no 10093 need_lib_prefix=no 10094 10095 case $GCC,$cc_basename in 10096 yes,*) 10097 # gcc 10098 library_names_spec='$libname.dll.a' 10099 # DLL is installed to $(libdir)/../bin by postinstall_cmds 10100 postinstall_cmds='base_file=`basename \${file}`~ 10101 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 10102 dldir=$destdir/`dirname \$dlpath`~ 10103 test -d \$dldir || mkdir -p \$dldir~ 10104 $install_prog $dir/$dlname \$dldir/$dlname~ 10105 chmod a+x \$dldir/$dlname~ 10106 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 10107 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 10108 fi' 10109 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 10110 dlpath=$dir/\$dldll~ 10111 $RM \$dlpath' 10112 shlibpath_overrides_runpath=yes 10113 10114 case $host_os in 10115 cygwin*) 10116 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 10117 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10118 10119 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 10120 ;; 10121 mingw* | cegcc*) 10122 # MinGW DLLs use traditional 'lib' prefix 10123 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10124 ;; 10125 pw32*) 10126 # pw32 DLLs use 'pw' prefix rather than 'lib' 10127 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10128 ;; 10129 esac 10130 dynamic_linker='Win32 ld.exe' 10131 ;; 10132 10133 *,cl*) 10134 # Native MSVC 10135 libname_spec='$name' 10136 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10137 library_names_spec='${libname}.dll.lib' 10138 10139 case $build_os in 10140 mingw*) 10141 sys_lib_search_path_spec= 10142 lt_save_ifs=$IFS 10143 IFS=';' 10144 for lt_path in $LIB 10145 do 10146 IFS=$lt_save_ifs 10147 # Let DOS variable expansion print the short 8.3 style file name. 10148 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 10149 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 10150 done 10151 IFS=$lt_save_ifs 10152 # Convert to MSYS style. 10153 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 10154 ;; 10155 cygwin*) 10156 # Convert to unix form, then to dos form, then back to unix form 10157 # but this time dos style (no spaces!) so that the unix form looks 10158 # like /cygdrive/c/PROGRA~1:/cygdr... 10159 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 10160 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 10161 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 10162 ;; 10163 *) 10164 sys_lib_search_path_spec="$LIB" 10165 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 10166 # It is most probably a Windows format PATH. 10167 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 10168 else 10169 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 10170 fi 10171 # FIXME: find the short name or the path components, as spaces are 10172 # common. (e.g. "Program Files" -> "PROGRA~1") 10173 ;; 10174 esac 10175 10176 # DLL is installed to $(libdir)/../bin by postinstall_cmds 10177 postinstall_cmds='base_file=`basename \${file}`~ 10178 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 10179 dldir=$destdir/`dirname \$dlpath`~ 10180 test -d \$dldir || mkdir -p \$dldir~ 10181 $install_prog $dir/$dlname \$dldir/$dlname' 10182 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 10183 dlpath=$dir/\$dldll~ 10184 $RM \$dlpath' 10185 shlibpath_overrides_runpath=yes 10186 dynamic_linker='Win32 link.exe' 10187 ;; 10188 10189 *) 10190 # Assume MSVC wrapper 10191 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 10192 dynamic_linker='Win32 ld.exe' 10193 ;; 10194 esac 10195 # FIXME: first we should search . and the directory the executable is in 10196 shlibpath_var=PATH 10197 ;; 10198 10199darwin* | rhapsody*) 10200 dynamic_linker="$host_os dyld" 10201 version_type=darwin 10202 need_lib_prefix=no 10203 need_version=no 10204 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 10205 soname_spec='${libname}${release}${major}$shared_ext' 10206 shlibpath_overrides_runpath=yes 10207 shlibpath_var=DYLD_LIBRARY_PATH 10208 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 10209 10210 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 10211 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 10212 ;; 10213 10214dgux*) 10215 version_type=linux # correct to gnu/linux during the next big refactor 10216 need_lib_prefix=no 10217 need_version=no 10218 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 10219 soname_spec='${libname}${release}${shared_ext}$major' 10220 shlibpath_var=LD_LIBRARY_PATH 10221 ;; 10222 10223freebsd* | dragonfly*) 10224 # DragonFly does not have aout. When/if they implement a new 10225 # versioning mechanism, adjust this. 10226 if test -x /usr/bin/objformat; then 10227 objformat=`/usr/bin/objformat` 10228 else 10229 case $host_os in 10230 freebsd[23].*) objformat=aout ;; 10231 *) objformat=elf ;; 10232 esac 10233 fi 10234 version_type=freebsd-$objformat 10235 case $version_type in 10236 freebsd-elf*) 10237 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 10238 need_version=no 10239 need_lib_prefix=no 10240 ;; 10241 freebsd-*) 10242 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 10243 need_version=yes 10244 ;; 10245 esac 10246 shlibpath_var=LD_LIBRARY_PATH 10247 case $host_os in 10248 freebsd2.*) 10249 shlibpath_overrides_runpath=yes 10250 ;; 10251 freebsd3.[01]* | freebsdelf3.[01]*) 10252 shlibpath_overrides_runpath=yes 10253 hardcode_into_libs=yes 10254 ;; 10255 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 10256 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 10257 shlibpath_overrides_runpath=no 10258 hardcode_into_libs=yes 10259 ;; 10260 *) # from 4.6 on, and DragonFly 10261 shlibpath_overrides_runpath=yes 10262 hardcode_into_libs=yes 10263 ;; 10264 esac 10265 ;; 10266 10267gnu*) 10268 version_type=linux # correct to gnu/linux during the next big refactor 10269 need_lib_prefix=no 10270 need_version=no 10271 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 10272 soname_spec='${libname}${release}${shared_ext}$major' 10273 shlibpath_var=LD_LIBRARY_PATH 10274 shlibpath_overrides_runpath=no 10275 hardcode_into_libs=yes 10276 ;; 10277 10278haiku*) 10279 version_type=linux # correct to gnu/linux during the next big refactor 10280 need_lib_prefix=no 10281 need_version=no 10282 dynamic_linker="$host_os runtime_loader" 10283 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 10284 soname_spec='${libname}${release}${shared_ext}$major' 10285 shlibpath_var=LIBRARY_PATH 10286 shlibpath_overrides_runpath=yes 10287 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 10288 hardcode_into_libs=yes 10289 ;; 10290 10291hpux9* | hpux10* | hpux11*) 10292 # Give a soname corresponding to the major version so that dld.sl refuses to 10293 # link against other versions. 10294 version_type=sunos 10295 need_lib_prefix=no 10296 need_version=no 10297 case $host_cpu in 10298 ia64*) 10299 shrext_cmds='.so' 10300 hardcode_into_libs=yes 10301 dynamic_linker="$host_os dld.so" 10302 shlibpath_var=LD_LIBRARY_PATH 10303 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 10304 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10305 soname_spec='${libname}${release}${shared_ext}$major' 10306 if test "X$HPUX_IA64_MODE" = X32; then 10307 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 10308 else 10309 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 10310 fi 10311 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 10312 ;; 10313 hppa*64*) 10314 shrext_cmds='.sl' 10315 hardcode_into_libs=yes 10316 dynamic_linker="$host_os dld.sl" 10317 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 10318 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 10319 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10320 soname_spec='${libname}${release}${shared_ext}$major' 10321 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 10322 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 10323 ;; 10324 *) 10325 shrext_cmds='.sl' 10326 dynamic_linker="$host_os dld.sl" 10327 shlibpath_var=SHLIB_PATH 10328 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 10329 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10330 soname_spec='${libname}${release}${shared_ext}$major' 10331 ;; 10332 esac 10333 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 10334 postinstall_cmds='chmod 555 $lib' 10335 # or fails outright, so override atomically: 10336 install_override_mode=555 10337 ;; 10338 10339interix[3-9]*) 10340 version_type=linux # correct to gnu/linux during the next big refactor 10341 need_lib_prefix=no 10342 need_version=no 10343 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 10344 soname_spec='${libname}${release}${shared_ext}$major' 10345 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 10346 shlibpath_var=LD_LIBRARY_PATH 10347 shlibpath_overrides_runpath=no 10348 hardcode_into_libs=yes 10349 ;; 10350 10351irix5* | irix6* | nonstopux*) 10352 case $host_os in 10353 nonstopux*) version_type=nonstopux ;; 10354 *) 10355 if test "$lt_cv_prog_gnu_ld" = yes; then 10356 version_type=linux # correct to gnu/linux during the next big refactor 10357 else 10358 version_type=irix 10359 fi ;; 10360 esac 10361 need_lib_prefix=no 10362 need_version=no 10363 soname_spec='${libname}${release}${shared_ext}$major' 10364 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 10365 case $host_os in 10366 irix5* | nonstopux*) 10367 libsuff= shlibsuff= 10368 ;; 10369 *) 10370 case $LD in # libtool.m4 will add one of these switches to LD 10371 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 10372 libsuff= shlibsuff= libmagic=32-bit;; 10373 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 10374 libsuff=32 shlibsuff=N32 libmagic=N32;; 10375 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 10376 libsuff=64 shlibsuff=64 libmagic=64-bit;; 10377 *) libsuff= shlibsuff= libmagic=never-match;; 10378 esac 10379 ;; 10380 esac 10381 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 10382 shlibpath_overrides_runpath=no 10383 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 10384 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 10385 hardcode_into_libs=yes 10386 ;; 10387 10388# No shared lib support for Linux oldld, aout, or coff. 10389linux*oldld* | linux*aout* | linux*coff*) 10390 dynamic_linker=no 10391 ;; 10392 10393# This must be glibc/ELF. 10394linux* | k*bsd*-gnu | kopensolaris*-gnu) 10395 version_type=linux # correct to gnu/linux during the next big refactor 10396 need_lib_prefix=no 10397 need_version=no 10398 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10399 soname_spec='${libname}${release}${shared_ext}$major' 10400 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 10401 shlibpath_var=LD_LIBRARY_PATH 10402 shlibpath_overrides_runpath=no 10403 10404 # Some binutils ld are patched to set DT_RUNPATH 10405 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 10406 $as_echo_n "(cached) " >&6 10407else 10408 lt_cv_shlibpath_overrides_runpath=no 10409 save_LDFLAGS=$LDFLAGS 10410 save_libdir=$libdir 10411 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 10412 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 10413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10414/* end confdefs.h. */ 10415 10416int 10417main () 10418{ 10419 10420 ; 10421 return 0; 10422} 10423_ACEOF 10424if ac_fn_c_try_link "$LINENO"; then : 10425 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 10426 lt_cv_shlibpath_overrides_runpath=yes 10427fi 10428fi 10429rm -f core conftest.err conftest.$ac_objext \ 10430 conftest$ac_exeext conftest.$ac_ext 10431 LDFLAGS=$save_LDFLAGS 10432 libdir=$save_libdir 10433 10434fi 10435 10436 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 10437 10438 # This implies no fast_install, which is unacceptable. 10439 # Some rework will be needed to allow for fast_install 10440 # before this can be enabled. 10441 hardcode_into_libs=yes 10442 10443 # Append ld.so.conf contents to the search path 10444 if test -f /etc/ld.so.conf; then 10445 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' ' '` 10446 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 10447 fi 10448 10449 # We used to test for /lib/ld.so.1 and disable shared libraries on 10450 # powerpc, because MkLinux only supported shared libraries with the 10451 # GNU dynamic linker. Since this was broken with cross compilers, 10452 # most powerpc-linux boxes support dynamic linking these days and 10453 # people can always --disable-shared, the test was removed, and we 10454 # assume the GNU/Linux dynamic linker is in use. 10455 dynamic_linker='GNU/Linux ld.so' 10456 ;; 10457 10458netbsd*) 10459 version_type=sunos 10460 need_lib_prefix=no 10461 need_version=no 10462 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10463 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10464 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 10465 dynamic_linker='NetBSD (a.out) ld.so' 10466 else 10467 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 10468 soname_spec='${libname}${release}${shared_ext}$major' 10469 dynamic_linker='NetBSD ld.elf_so' 10470 fi 10471 shlibpath_var=LD_LIBRARY_PATH 10472 shlibpath_overrides_runpath=yes 10473 hardcode_into_libs=yes 10474 ;; 10475 10476newsos6) 10477 version_type=linux # correct to gnu/linux during the next big refactor 10478 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10479 shlibpath_var=LD_LIBRARY_PATH 10480 shlibpath_overrides_runpath=yes 10481 ;; 10482 10483*nto* | *qnx*) 10484 version_type=qnx 10485 need_lib_prefix=no 10486 need_version=no 10487 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10488 soname_spec='${libname}${release}${shared_ext}$major' 10489 shlibpath_var=LD_LIBRARY_PATH 10490 shlibpath_overrides_runpath=no 10491 hardcode_into_libs=yes 10492 dynamic_linker='ldqnx.so' 10493 ;; 10494 10495openbsd*) 10496 version_type=sunos 10497 sys_lib_dlsearch_path_spec="/usr/lib" 10498 need_lib_prefix=no 10499 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 10500 case $host_os in 10501 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 10502 *) need_version=no ;; 10503 esac 10504 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10505 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 10506 shlibpath_var=LD_LIBRARY_PATH 10507 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 10508 case $host_os in 10509 openbsd2.[89] | openbsd2.[89].*) 10510 shlibpath_overrides_runpath=no 10511 ;; 10512 *) 10513 shlibpath_overrides_runpath=yes 10514 ;; 10515 esac 10516 else 10517 shlibpath_overrides_runpath=yes 10518 fi 10519 ;; 10520 10521os2*) 10522 libname_spec='$name' 10523 shrext_cmds=".dll" 10524 need_lib_prefix=no 10525 library_names_spec='$libname${shared_ext} $libname.a' 10526 dynamic_linker='OS/2 ld.exe' 10527 shlibpath_var=LIBPATH 10528 ;; 10529 10530osf3* | osf4* | osf5*) 10531 version_type=osf 10532 need_lib_prefix=no 10533 need_version=no 10534 soname_spec='${libname}${release}${shared_ext}$major' 10535 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10536 shlibpath_var=LD_LIBRARY_PATH 10537 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 10538 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 10539 ;; 10540 10541rdos*) 10542 dynamic_linker=no 10543 ;; 10544 10545solaris*) 10546 version_type=linux # correct to gnu/linux during the next big refactor 10547 need_lib_prefix=no 10548 need_version=no 10549 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10550 soname_spec='${libname}${release}${shared_ext}$major' 10551 shlibpath_var=LD_LIBRARY_PATH 10552 shlibpath_overrides_runpath=yes 10553 hardcode_into_libs=yes 10554 # ldd complains unless libraries are executable 10555 postinstall_cmds='chmod +x $lib' 10556 ;; 10557 10558sunos4*) 10559 version_type=sunos 10560 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10561 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 10562 shlibpath_var=LD_LIBRARY_PATH 10563 shlibpath_overrides_runpath=yes 10564 if test "$with_gnu_ld" = yes; then 10565 need_lib_prefix=no 10566 fi 10567 need_version=yes 10568 ;; 10569 10570sysv4 | sysv4.3*) 10571 version_type=linux # correct to gnu/linux during the next big refactor 10572 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10573 soname_spec='${libname}${release}${shared_ext}$major' 10574 shlibpath_var=LD_LIBRARY_PATH 10575 case $host_vendor in 10576 sni) 10577 shlibpath_overrides_runpath=no 10578 need_lib_prefix=no 10579 runpath_var=LD_RUN_PATH 10580 ;; 10581 siemens) 10582 need_lib_prefix=no 10583 ;; 10584 motorola) 10585 need_lib_prefix=no 10586 need_version=no 10587 shlibpath_overrides_runpath=no 10588 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 10589 ;; 10590 esac 10591 ;; 10592 10593sysv4*MP*) 10594 if test -d /usr/nec ;then 10595 version_type=linux # correct to gnu/linux during the next big refactor 10596 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 10597 soname_spec='$libname${shared_ext}.$major' 10598 shlibpath_var=LD_LIBRARY_PATH 10599 fi 10600 ;; 10601 10602sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 10603 version_type=freebsd-elf 10604 need_lib_prefix=no 10605 need_version=no 10606 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 10607 soname_spec='${libname}${release}${shared_ext}$major' 10608 shlibpath_var=LD_LIBRARY_PATH 10609 shlibpath_overrides_runpath=yes 10610 hardcode_into_libs=yes 10611 if test "$with_gnu_ld" = yes; then 10612 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 10613 else 10614 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 10615 case $host_os in 10616 sco3.2v5*) 10617 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 10618 ;; 10619 esac 10620 fi 10621 sys_lib_dlsearch_path_spec='/usr/lib' 10622 ;; 10623 10624tpf*) 10625 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 10626 version_type=linux # correct to gnu/linux during the next big refactor 10627 need_lib_prefix=no 10628 need_version=no 10629 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10630 shlibpath_var=LD_LIBRARY_PATH 10631 shlibpath_overrides_runpath=no 10632 hardcode_into_libs=yes 10633 ;; 10634 10635uts4*) 10636 version_type=linux # correct to gnu/linux during the next big refactor 10637 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10638 soname_spec='${libname}${release}${shared_ext}$major' 10639 shlibpath_var=LD_LIBRARY_PATH 10640 ;; 10641 10642*) 10643 dynamic_linker=no 10644 ;; 10645esac 10646{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 10647$as_echo "$dynamic_linker" >&6; } 10648test "$dynamic_linker" = no && can_build_shared=no 10649 10650variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 10651if test "$GCC" = yes; then 10652 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 10653fi 10654 10655if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 10656 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 10657fi 10658if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 10659 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 10660fi 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 10749 10750 10751 10752 10753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 10754$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 10755hardcode_action= 10756if test -n "$hardcode_libdir_flag_spec" || 10757 test -n "$runpath_var" || 10758 test "X$hardcode_automatic" = "Xyes" ; then 10759 10760 # We can hardcode non-existent directories. 10761 if test "$hardcode_direct" != no && 10762 # If the only mechanism to avoid hardcoding is shlibpath_var, we 10763 # have to relink, otherwise we might link with an installed library 10764 # when we should be linking with a yet-to-be-installed one 10765 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && 10766 test "$hardcode_minus_L" != no; then 10767 # Linking always hardcodes the temporary library directory. 10768 hardcode_action=relink 10769 else 10770 # We can link without hardcoding, and we can hardcode nonexisting dirs. 10771 hardcode_action=immediate 10772 fi 10773else 10774 # We cannot hardcode anything, or else we can only hardcode existing 10775 # directories. 10776 hardcode_action=unsupported 10777fi 10778{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 10779$as_echo "$hardcode_action" >&6; } 10780 10781if test "$hardcode_action" = relink || 10782 test "$inherit_rpath" = yes; then 10783 # Fast installation is not supported 10784 enable_fast_install=no 10785elif test "$shlibpath_overrides_runpath" = yes || 10786 test "$enable_shared" = no; then 10787 # Fast installation is not necessary 10788 enable_fast_install=needless 10789fi 10790 10791 10792 10793 10794 10795 10796 if test "x$enable_dlopen" != xyes; then 10797 enable_dlopen=unknown 10798 enable_dlopen_self=unknown 10799 enable_dlopen_self_static=unknown 10800else 10801 lt_cv_dlopen=no 10802 lt_cv_dlopen_libs= 10803 10804 case $host_os in 10805 beos*) 10806 lt_cv_dlopen="load_add_on" 10807 lt_cv_dlopen_libs= 10808 lt_cv_dlopen_self=yes 10809 ;; 10810 10811 mingw* | pw32* | cegcc*) 10812 lt_cv_dlopen="LoadLibrary" 10813 lt_cv_dlopen_libs= 10814 ;; 10815 10816 cygwin*) 10817 lt_cv_dlopen="dlopen" 10818 lt_cv_dlopen_libs= 10819 ;; 10820 10821 darwin*) 10822 # if libdl is installed we need to link against it 10823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 10824$as_echo_n "checking for dlopen in -ldl... " >&6; } 10825if ${ac_cv_lib_dl_dlopen+:} false; then : 10826 $as_echo_n "(cached) " >&6 10827else 10828 ac_check_lib_save_LIBS=$LIBS 10829LIBS="-ldl $LIBS" 10830cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10831/* end confdefs.h. */ 10832 10833/* Override any GCC internal prototype to avoid an error. 10834 Use char because int might match the return type of a GCC 10835 builtin and then its argument prototype would still apply. */ 10836#ifdef __cplusplus 10837extern "C" 10838#endif 10839char dlopen (); 10840int 10841main () 10842{ 10843return dlopen (); 10844 ; 10845 return 0; 10846} 10847_ACEOF 10848if ac_fn_c_try_link "$LINENO"; then : 10849 ac_cv_lib_dl_dlopen=yes 10850else 10851 ac_cv_lib_dl_dlopen=no 10852fi 10853rm -f core conftest.err conftest.$ac_objext \ 10854 conftest$ac_exeext conftest.$ac_ext 10855LIBS=$ac_check_lib_save_LIBS 10856fi 10857{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 10858$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 10859if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 10860 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 10861else 10862 10863 lt_cv_dlopen="dyld" 10864 lt_cv_dlopen_libs= 10865 lt_cv_dlopen_self=yes 10866 10867fi 10868 10869 ;; 10870 10871 *) 10872 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 10873if test "x$ac_cv_func_shl_load" = xyes; then : 10874 lt_cv_dlopen="shl_load" 10875else 10876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 10877$as_echo_n "checking for shl_load in -ldld... " >&6; } 10878if ${ac_cv_lib_dld_shl_load+:} false; then : 10879 $as_echo_n "(cached) " >&6 10880else 10881 ac_check_lib_save_LIBS=$LIBS 10882LIBS="-ldld $LIBS" 10883cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10884/* end confdefs.h. */ 10885 10886/* Override any GCC internal prototype to avoid an error. 10887 Use char because int might match the return type of a GCC 10888 builtin and then its argument prototype would still apply. */ 10889#ifdef __cplusplus 10890extern "C" 10891#endif 10892char shl_load (); 10893int 10894main () 10895{ 10896return shl_load (); 10897 ; 10898 return 0; 10899} 10900_ACEOF 10901if ac_fn_c_try_link "$LINENO"; then : 10902 ac_cv_lib_dld_shl_load=yes 10903else 10904 ac_cv_lib_dld_shl_load=no 10905fi 10906rm -f core conftest.err conftest.$ac_objext \ 10907 conftest$ac_exeext conftest.$ac_ext 10908LIBS=$ac_check_lib_save_LIBS 10909fi 10910{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 10911$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 10912if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 10913 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" 10914else 10915 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 10916if test "x$ac_cv_func_dlopen" = xyes; then : 10917 lt_cv_dlopen="dlopen" 10918else 10919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 10920$as_echo_n "checking for dlopen in -ldl... " >&6; } 10921if ${ac_cv_lib_dl_dlopen+:} false; then : 10922 $as_echo_n "(cached) " >&6 10923else 10924 ac_check_lib_save_LIBS=$LIBS 10925LIBS="-ldl $LIBS" 10926cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10927/* end confdefs.h. */ 10928 10929/* Override any GCC internal prototype to avoid an error. 10930 Use char because int might match the return type of a GCC 10931 builtin and then its argument prototype would still apply. */ 10932#ifdef __cplusplus 10933extern "C" 10934#endif 10935char dlopen (); 10936int 10937main () 10938{ 10939return dlopen (); 10940 ; 10941 return 0; 10942} 10943_ACEOF 10944if ac_fn_c_try_link "$LINENO"; then : 10945 ac_cv_lib_dl_dlopen=yes 10946else 10947 ac_cv_lib_dl_dlopen=no 10948fi 10949rm -f core conftest.err conftest.$ac_objext \ 10950 conftest$ac_exeext conftest.$ac_ext 10951LIBS=$ac_check_lib_save_LIBS 10952fi 10953{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 10954$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 10955if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 10956 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 10957else 10958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 10959$as_echo_n "checking for dlopen in -lsvld... " >&6; } 10960if ${ac_cv_lib_svld_dlopen+:} false; then : 10961 $as_echo_n "(cached) " >&6 10962else 10963 ac_check_lib_save_LIBS=$LIBS 10964LIBS="-lsvld $LIBS" 10965cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10966/* end confdefs.h. */ 10967 10968/* Override any GCC internal prototype to avoid an error. 10969 Use char because int might match the return type of a GCC 10970 builtin and then its argument prototype would still apply. */ 10971#ifdef __cplusplus 10972extern "C" 10973#endif 10974char dlopen (); 10975int 10976main () 10977{ 10978return dlopen (); 10979 ; 10980 return 0; 10981} 10982_ACEOF 10983if ac_fn_c_try_link "$LINENO"; then : 10984 ac_cv_lib_svld_dlopen=yes 10985else 10986 ac_cv_lib_svld_dlopen=no 10987fi 10988rm -f core conftest.err conftest.$ac_objext \ 10989 conftest$ac_exeext conftest.$ac_ext 10990LIBS=$ac_check_lib_save_LIBS 10991fi 10992{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 10993$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 10994if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 10995 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 10996else 10997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 10998$as_echo_n "checking for dld_link in -ldld... " >&6; } 10999if ${ac_cv_lib_dld_dld_link+:} false; then : 11000 $as_echo_n "(cached) " >&6 11001else 11002 ac_check_lib_save_LIBS=$LIBS 11003LIBS="-ldld $LIBS" 11004cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11005/* end confdefs.h. */ 11006 11007/* Override any GCC internal prototype to avoid an error. 11008 Use char because int might match the return type of a GCC 11009 builtin and then its argument prototype would still apply. */ 11010#ifdef __cplusplus 11011extern "C" 11012#endif 11013char dld_link (); 11014int 11015main () 11016{ 11017return dld_link (); 11018 ; 11019 return 0; 11020} 11021_ACEOF 11022if ac_fn_c_try_link "$LINENO"; then : 11023 ac_cv_lib_dld_dld_link=yes 11024else 11025 ac_cv_lib_dld_dld_link=no 11026fi 11027rm -f core conftest.err conftest.$ac_objext \ 11028 conftest$ac_exeext conftest.$ac_ext 11029LIBS=$ac_check_lib_save_LIBS 11030fi 11031{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 11032$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 11033if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 11034 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" 11035fi 11036 11037 11038fi 11039 11040 11041fi 11042 11043 11044fi 11045 11046 11047fi 11048 11049 11050fi 11051 11052 ;; 11053 esac 11054 11055 if test "x$lt_cv_dlopen" != xno; then 11056 enable_dlopen=yes 11057 else 11058 enable_dlopen=no 11059 fi 11060 11061 case $lt_cv_dlopen in 11062 dlopen) 11063 save_CPPFLAGS="$CPPFLAGS" 11064 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 11065 11066 save_LDFLAGS="$LDFLAGS" 11067 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 11068 11069 save_LIBS="$LIBS" 11070 LIBS="$lt_cv_dlopen_libs $LIBS" 11071 11072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 11073$as_echo_n "checking whether a program can dlopen itself... " >&6; } 11074if ${lt_cv_dlopen_self+:} false; then : 11075 $as_echo_n "(cached) " >&6 11076else 11077 if test "$cross_compiling" = yes; then : 11078 lt_cv_dlopen_self=cross 11079else 11080 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11081 lt_status=$lt_dlunknown 11082 cat > conftest.$ac_ext <<_LT_EOF 11083#line $LINENO "configure" 11084#include "confdefs.h" 11085 11086#if HAVE_DLFCN_H 11087#include <dlfcn.h> 11088#endif 11089 11090#include <stdio.h> 11091 11092#ifdef RTLD_GLOBAL 11093# define LT_DLGLOBAL RTLD_GLOBAL 11094#else 11095# ifdef DL_GLOBAL 11096# define LT_DLGLOBAL DL_GLOBAL 11097# else 11098# define LT_DLGLOBAL 0 11099# endif 11100#endif 11101 11102/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11103 find out it does not work in some platform. */ 11104#ifndef LT_DLLAZY_OR_NOW 11105# ifdef RTLD_LAZY 11106# define LT_DLLAZY_OR_NOW RTLD_LAZY 11107# else 11108# ifdef DL_LAZY 11109# define LT_DLLAZY_OR_NOW DL_LAZY 11110# else 11111# ifdef RTLD_NOW 11112# define LT_DLLAZY_OR_NOW RTLD_NOW 11113# else 11114# ifdef DL_NOW 11115# define LT_DLLAZY_OR_NOW DL_NOW 11116# else 11117# define LT_DLLAZY_OR_NOW 0 11118# endif 11119# endif 11120# endif 11121# endif 11122#endif 11123 11124/* When -fvisbility=hidden is used, assume the code has been annotated 11125 correspondingly for the symbols needed. */ 11126#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 11127int fnord () __attribute__((visibility("default"))); 11128#endif 11129 11130int fnord () { return 42; } 11131int main () 11132{ 11133 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11134 int status = $lt_dlunknown; 11135 11136 if (self) 11137 { 11138 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11139 else 11140 { 11141 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11142 else puts (dlerror ()); 11143 } 11144 /* dlclose (self); */ 11145 } 11146 else 11147 puts (dlerror ()); 11148 11149 return status; 11150} 11151_LT_EOF 11152 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 11153 (eval $ac_link) 2>&5 11154 ac_status=$? 11155 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11156 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 11157 (./conftest; exit; ) >&5 2>/dev/null 11158 lt_status=$? 11159 case x$lt_status in 11160 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 11161 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 11162 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 11163 esac 11164 else : 11165 # compilation failed 11166 lt_cv_dlopen_self=no 11167 fi 11168fi 11169rm -fr conftest* 11170 11171 11172fi 11173{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 11174$as_echo "$lt_cv_dlopen_self" >&6; } 11175 11176 if test "x$lt_cv_dlopen_self" = xyes; then 11177 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 11178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 11179$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 11180if ${lt_cv_dlopen_self_static+:} false; then : 11181 $as_echo_n "(cached) " >&6 11182else 11183 if test "$cross_compiling" = yes; then : 11184 lt_cv_dlopen_self_static=cross 11185else 11186 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11187 lt_status=$lt_dlunknown 11188 cat > conftest.$ac_ext <<_LT_EOF 11189#line $LINENO "configure" 11190#include "confdefs.h" 11191 11192#if HAVE_DLFCN_H 11193#include <dlfcn.h> 11194#endif 11195 11196#include <stdio.h> 11197 11198#ifdef RTLD_GLOBAL 11199# define LT_DLGLOBAL RTLD_GLOBAL 11200#else 11201# ifdef DL_GLOBAL 11202# define LT_DLGLOBAL DL_GLOBAL 11203# else 11204# define LT_DLGLOBAL 0 11205# endif 11206#endif 11207 11208/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11209 find out it does not work in some platform. */ 11210#ifndef LT_DLLAZY_OR_NOW 11211# ifdef RTLD_LAZY 11212# define LT_DLLAZY_OR_NOW RTLD_LAZY 11213# else 11214# ifdef DL_LAZY 11215# define LT_DLLAZY_OR_NOW DL_LAZY 11216# else 11217# ifdef RTLD_NOW 11218# define LT_DLLAZY_OR_NOW RTLD_NOW 11219# else 11220# ifdef DL_NOW 11221# define LT_DLLAZY_OR_NOW DL_NOW 11222# else 11223# define LT_DLLAZY_OR_NOW 0 11224# endif 11225# endif 11226# endif 11227# endif 11228#endif 11229 11230/* When -fvisbility=hidden is used, assume the code has been annotated 11231 correspondingly for the symbols needed. */ 11232#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 11233int fnord () __attribute__((visibility("default"))); 11234#endif 11235 11236int fnord () { return 42; } 11237int main () 11238{ 11239 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11240 int status = $lt_dlunknown; 11241 11242 if (self) 11243 { 11244 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11245 else 11246 { 11247 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11248 else puts (dlerror ()); 11249 } 11250 /* dlclose (self); */ 11251 } 11252 else 11253 puts (dlerror ()); 11254 11255 return status; 11256} 11257_LT_EOF 11258 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 11259 (eval $ac_link) 2>&5 11260 ac_status=$? 11261 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11262 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 11263 (./conftest; exit; ) >&5 2>/dev/null 11264 lt_status=$? 11265 case x$lt_status in 11266 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 11267 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 11268 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 11269 esac 11270 else : 11271 # compilation failed 11272 lt_cv_dlopen_self_static=no 11273 fi 11274fi 11275rm -fr conftest* 11276 11277 11278fi 11279{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 11280$as_echo "$lt_cv_dlopen_self_static" >&6; } 11281 fi 11282 11283 CPPFLAGS="$save_CPPFLAGS" 11284 LDFLAGS="$save_LDFLAGS" 11285 LIBS="$save_LIBS" 11286 ;; 11287 esac 11288 11289 case $lt_cv_dlopen_self in 11290 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 11291 *) enable_dlopen_self=unknown ;; 11292 esac 11293 11294 case $lt_cv_dlopen_self_static in 11295 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 11296 *) enable_dlopen_self_static=unknown ;; 11297 esac 11298fi 11299 11300 11301 11302 11303 11304 11305 11306 11307 11308 11309 11310 11311 11312 11313 11314 11315 11316striplib= 11317old_striplib= 11318{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 11319$as_echo_n "checking whether stripping libraries is possible... " >&6; } 11320if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 11321 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 11322 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 11323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11324$as_echo "yes" >&6; } 11325else 11326# FIXME - insert some real tests, host_os isn't really good enough 11327 case $host_os in 11328 darwin*) 11329 if test -n "$STRIP" ; then 11330 striplib="$STRIP -x" 11331 old_striplib="$STRIP -S" 11332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11333$as_echo "yes" >&6; } 11334 else 11335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11336$as_echo "no" >&6; } 11337 fi 11338 ;; 11339 *) 11340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11341$as_echo "no" >&6; } 11342 ;; 11343 esac 11344fi 11345 11346 11347 11348 11349 11350 11351 11352 11353 11354 11355 11356 11357 # Report which library types will actually be built 11358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 11359$as_echo_n "checking if libtool supports shared libraries... " >&6; } 11360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 11361$as_echo "$can_build_shared" >&6; } 11362 11363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 11364$as_echo_n "checking whether to build shared libraries... " >&6; } 11365 test "$can_build_shared" = "no" && enable_shared=no 11366 11367 # On AIX, shared libraries and static libraries use the same namespace, and 11368 # are all built from PIC. 11369 case $host_os in 11370 aix3*) 11371 test "$enable_shared" = yes && enable_static=no 11372 if test -n "$RANLIB"; then 11373 archive_cmds="$archive_cmds~\$RANLIB \$lib" 11374 postinstall_cmds='$RANLIB $lib' 11375 fi 11376 ;; 11377 11378 aix[4-9]*) 11379 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 11380 test "$enable_shared" = yes && enable_static=no 11381 fi 11382 ;; 11383 esac 11384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 11385$as_echo "$enable_shared" >&6; } 11386 11387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 11388$as_echo_n "checking whether to build static libraries... " >&6; } 11389 # Make sure either enable_shared or enable_static is yes. 11390 test "$enable_shared" = yes || enable_static=yes 11391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 11392$as_echo "$enable_static" >&6; } 11393 11394 11395 11396 11397fi 11398ac_ext=c 11399ac_cpp='$CPP $CPPFLAGS' 11400ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11401ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11402ac_compiler_gnu=$ac_cv_c_compiler_gnu 11403 11404CC="$lt_save_CC" 11405 11406 11407 11408 11409 11410 11411 11412 11413 11414 11415 11416 11417 11418 11419 11420 ac_config_commands="$ac_config_commands libtool" 11421 11422 11423 11424 11425# Only expand once: 11426 11427 11428 11429# Require xorg-macros minimum of 1.12 for DocBook external references 11430 11431 11432 11433 11434 11435 11436 11437 11438 11439 11440 11441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5 11442$as_echo_n "checking for $CC option to accept ISO C99... " >&6; } 11443if ${ac_cv_prog_cc_c99+:} false; then : 11444 $as_echo_n "(cached) " >&6 11445else 11446 ac_cv_prog_cc_c99=no 11447ac_save_CC=$CC 11448cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11449/* end confdefs.h. */ 11450#include <stdarg.h> 11451#include <stdbool.h> 11452#include <stdlib.h> 11453#include <wchar.h> 11454#include <stdio.h> 11455 11456// Check varargs macros. These examples are taken from C99 6.10.3.5. 11457#define debug(...) fprintf (stderr, __VA_ARGS__) 11458#define showlist(...) puts (#__VA_ARGS__) 11459#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 11460static void 11461test_varargs_macros (void) 11462{ 11463 int x = 1234; 11464 int y = 5678; 11465 debug ("Flag"); 11466 debug ("X = %d\n", x); 11467 showlist (The first, second, and third items.); 11468 report (x>y, "x is %d but y is %d", x, y); 11469} 11470 11471// Check long long types. 11472#define BIG64 18446744073709551615ull 11473#define BIG32 4294967295ul 11474#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 11475#if !BIG_OK 11476 your preprocessor is broken; 11477#endif 11478#if BIG_OK 11479#else 11480 your preprocessor is broken; 11481#endif 11482static long long int bignum = -9223372036854775807LL; 11483static unsigned long long int ubignum = BIG64; 11484 11485struct incomplete_array 11486{ 11487 int datasize; 11488 double data[]; 11489}; 11490 11491struct named_init { 11492 int number; 11493 const wchar_t *name; 11494 double average; 11495}; 11496 11497typedef const char *ccp; 11498 11499static inline int 11500test_restrict (ccp restrict text) 11501{ 11502 // See if C++-style comments work. 11503 // Iterate through items via the restricted pointer. 11504 // Also check for declarations in for loops. 11505 for (unsigned int i = 0; *(text+i) != '\0'; ++i) 11506 continue; 11507 return 0; 11508} 11509 11510// Check varargs and va_copy. 11511static void 11512test_varargs (const char *format, ...) 11513{ 11514 va_list args; 11515 va_start (args, format); 11516 va_list args_copy; 11517 va_copy (args_copy, args); 11518 11519 const char *str; 11520 int number; 11521 float fnumber; 11522 11523 while (*format) 11524 { 11525 switch (*format++) 11526 { 11527 case 's': // string 11528 str = va_arg (args_copy, const char *); 11529 break; 11530 case 'd': // int 11531 number = va_arg (args_copy, int); 11532 break; 11533 case 'f': // float 11534 fnumber = va_arg (args_copy, double); 11535 break; 11536 default: 11537 break; 11538 } 11539 } 11540 va_end (args_copy); 11541 va_end (args); 11542} 11543 11544int 11545main () 11546{ 11547 11548 // Check bool. 11549 _Bool success = false; 11550 11551 // Check restrict. 11552 if (test_restrict ("String literal") == 0) 11553 success = true; 11554 char *restrict newvar = "Another string"; 11555 11556 // Check varargs. 11557 test_varargs ("s, d' f .", "string", 65, 34.234); 11558 test_varargs_macros (); 11559 11560 // Check flexible array members. 11561 struct incomplete_array *ia = 11562 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 11563 ia->datasize = 10; 11564 for (int i = 0; i < ia->datasize; ++i) 11565 ia->data[i] = i * 1.234; 11566 11567 // Check named initializers. 11568 struct named_init ni = { 11569 .number = 34, 11570 .name = L"Test wide string", 11571 .average = 543.34343, 11572 }; 11573 11574 ni.number = 58; 11575 11576 int dynamic_array[ni.number]; 11577 dynamic_array[ni.number - 1] = 543; 11578 11579 // work around unused variable warnings 11580 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' 11581 || dynamic_array[ni.number - 1] != 543); 11582 11583 ; 11584 return 0; 11585} 11586_ACEOF 11587for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99 11588do 11589 CC="$ac_save_CC $ac_arg" 11590 if ac_fn_c_try_compile "$LINENO"; then : 11591 ac_cv_prog_cc_c99=$ac_arg 11592fi 11593rm -f core conftest.err conftest.$ac_objext 11594 test "x$ac_cv_prog_cc_c99" != "xno" && break 11595done 11596rm -f conftest.$ac_ext 11597CC=$ac_save_CC 11598 11599fi 11600# AC_CACHE_VAL 11601case "x$ac_cv_prog_cc_c99" in 11602 x) 11603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 11604$as_echo "none needed" >&6; } ;; 11605 xno) 11606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 11607$as_echo "unsupported" >&6; } ;; 11608 *) 11609 CC="$CC $ac_cv_prog_cc_c99" 11610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 11611$as_echo "$ac_cv_prog_cc_c99" >&6; } ;; 11612esac 11613if test "x$ac_cv_prog_cc_c99" != xno; then : 11614 11615fi 11616 11617 11618 11619 11620 11621 11622ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" 11623if test "x$ac_cv_have_decl___clang__" = xyes; then : 11624 CLANGCC="yes" 11625else 11626 CLANGCC="no" 11627fi 11628 11629ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" 11630if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then : 11631 INTELCC="yes" 11632else 11633 INTELCC="no" 11634fi 11635 11636ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" 11637if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then : 11638 SUNCC="yes" 11639else 11640 SUNCC="no" 11641fi 11642 11643 11644 11645 11646if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 11647 if test -n "$ac_tool_prefix"; then 11648 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 11649set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 11650{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11651$as_echo_n "checking for $ac_word... " >&6; } 11652if ${ac_cv_path_PKG_CONFIG+:} false; then : 11653 $as_echo_n "(cached) " >&6 11654else 11655 case $PKG_CONFIG in 11656 [\\/]* | ?:[\\/]*) 11657 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 11658 ;; 11659 *) 11660 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11661for as_dir in $PATH 11662do 11663 IFS=$as_save_IFS 11664 test -z "$as_dir" && as_dir=. 11665 for ac_exec_ext in '' $ac_executable_extensions; do 11666 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 11667 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 11668 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11669 break 2 11670 fi 11671done 11672 done 11673IFS=$as_save_IFS 11674 11675 ;; 11676esac 11677fi 11678PKG_CONFIG=$ac_cv_path_PKG_CONFIG 11679if test -n "$PKG_CONFIG"; then 11680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 11681$as_echo "$PKG_CONFIG" >&6; } 11682else 11683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11684$as_echo "no" >&6; } 11685fi 11686 11687 11688fi 11689if test -z "$ac_cv_path_PKG_CONFIG"; then 11690 ac_pt_PKG_CONFIG=$PKG_CONFIG 11691 # Extract the first word of "pkg-config", so it can be a program name with args. 11692set dummy pkg-config; ac_word=$2 11693{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11694$as_echo_n "checking for $ac_word... " >&6; } 11695if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 11696 $as_echo_n "(cached) " >&6 11697else 11698 case $ac_pt_PKG_CONFIG in 11699 [\\/]* | ?:[\\/]*) 11700 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 11701 ;; 11702 *) 11703 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11704for as_dir in $PATH 11705do 11706 IFS=$as_save_IFS 11707 test -z "$as_dir" && as_dir=. 11708 for ac_exec_ext in '' $ac_executable_extensions; do 11709 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 11710 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 11711 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11712 break 2 11713 fi 11714done 11715 done 11716IFS=$as_save_IFS 11717 11718 ;; 11719esac 11720fi 11721ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 11722if test -n "$ac_pt_PKG_CONFIG"; then 11723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 11724$as_echo "$ac_pt_PKG_CONFIG" >&6; } 11725else 11726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11727$as_echo "no" >&6; } 11728fi 11729 11730 if test "x$ac_pt_PKG_CONFIG" = x; then 11731 PKG_CONFIG="" 11732 else 11733 case $cross_compiling:$ac_tool_warned in 11734yes:) 11735{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 11736$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 11737ac_tool_warned=yes ;; 11738esac 11739 PKG_CONFIG=$ac_pt_PKG_CONFIG 11740 fi 11741else 11742 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 11743fi 11744 11745fi 11746if test -n "$PKG_CONFIG"; then 11747 _pkg_min_version=0.9.0 11748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 11749$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 11750 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 11751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11752$as_echo "yes" >&6; } 11753 else 11754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11755$as_echo "no" >&6; } 11756 PKG_CONFIG="" 11757 fi 11758 11759fi 11760 11761 11762 11763 11764 11765# Check whether --enable-selective-werror was given. 11766if test "${enable_selective_werror+set}" = set; then : 11767 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval 11768else 11769 SELECTIVE_WERROR=yes 11770fi 11771 11772 11773 11774 11775 11776# -v is too short to test reliably with XORG_TESTSET_CFLAG 11777if test "x$SUNCC" = "xyes"; then 11778 BASE_CFLAGS="-v" 11779else 11780 BASE_CFLAGS="" 11781fi 11782 11783# This chunk of warnings were those that existed in the legacy CWARNFLAGS 11784 11785 11786 11787 11788 11789 11790 11791 11792 11793 11794 11795 11796 11797xorg_testset_save_CFLAGS="$CFLAGS" 11798 11799if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 11800 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 11802$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 11803if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 11804 $as_echo_n "(cached) " >&6 11805else 11806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11807/* end confdefs.h. */ 11808int i; 11809_ACEOF 11810if ac_fn_c_try_compile "$LINENO"; then : 11811 xorg_cv_cc_flag_unknown_warning_option=yes 11812else 11813 xorg_cv_cc_flag_unknown_warning_option=no 11814fi 11815rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11816fi 11817{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 11818$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 11819 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 11820 CFLAGS="$xorg_testset_save_CFLAGS" 11821fi 11822 11823if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 11824 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11825 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11826 fi 11827 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 11829$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 11830if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 11831 $as_echo_n "(cached) " >&6 11832else 11833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11834/* end confdefs.h. */ 11835int i; 11836_ACEOF 11837if ac_fn_c_try_compile "$LINENO"; then : 11838 xorg_cv_cc_flag_unused_command_line_argument=yes 11839else 11840 xorg_cv_cc_flag_unused_command_line_argument=no 11841fi 11842rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11843fi 11844{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 11845$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 11846 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 11847 CFLAGS="$xorg_testset_save_CFLAGS" 11848fi 11849 11850found="no" 11851 11852 if test $found = "no" ; then 11853 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 11854 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11855 fi 11856 11857 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 11858 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11859 fi 11860 11861 CFLAGS="$CFLAGS -Wall" 11862 11863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5 11864$as_echo_n "checking if $CC supports -Wall... " >&6; } 11865 cacheid=xorg_cv_cc_flag__Wall 11866 if eval \${$cacheid+:} false; then : 11867 $as_echo_n "(cached) " >&6 11868else 11869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11870/* end confdefs.h. */ 11871int i; 11872int 11873main () 11874{ 11875 11876 ; 11877 return 0; 11878} 11879_ACEOF 11880if ac_fn_c_try_link "$LINENO"; then : 11881 eval $cacheid=yes 11882else 11883 eval $cacheid=no 11884fi 11885rm -f core conftest.err conftest.$ac_objext \ 11886 conftest$ac_exeext conftest.$ac_ext 11887fi 11888 11889 11890 CFLAGS="$xorg_testset_save_CFLAGS" 11891 11892 eval supported=\$$cacheid 11893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 11894$as_echo "$supported" >&6; } 11895 if test "$supported" = "yes" ; then 11896 BASE_CFLAGS="$BASE_CFLAGS -Wall" 11897 found="yes" 11898 fi 11899 fi 11900 11901 11902 11903 11904 11905 11906 11907 11908 11909 11910 11911 11912 11913 11914 11915xorg_testset_save_CFLAGS="$CFLAGS" 11916 11917if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 11918 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 11920$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 11921if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 11922 $as_echo_n "(cached) " >&6 11923else 11924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11925/* end confdefs.h. */ 11926int i; 11927_ACEOF 11928if ac_fn_c_try_compile "$LINENO"; then : 11929 xorg_cv_cc_flag_unknown_warning_option=yes 11930else 11931 xorg_cv_cc_flag_unknown_warning_option=no 11932fi 11933rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11934fi 11935{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 11936$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 11937 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 11938 CFLAGS="$xorg_testset_save_CFLAGS" 11939fi 11940 11941if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 11942 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11943 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11944 fi 11945 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 11947$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 11948if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 11949 $as_echo_n "(cached) " >&6 11950else 11951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11952/* end confdefs.h. */ 11953int i; 11954_ACEOF 11955if ac_fn_c_try_compile "$LINENO"; then : 11956 xorg_cv_cc_flag_unused_command_line_argument=yes 11957else 11958 xorg_cv_cc_flag_unused_command_line_argument=no 11959fi 11960rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11961fi 11962{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 11963$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 11964 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 11965 CFLAGS="$xorg_testset_save_CFLAGS" 11966fi 11967 11968found="no" 11969 11970 if test $found = "no" ; then 11971 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 11972 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11973 fi 11974 11975 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 11976 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11977 fi 11978 11979 CFLAGS="$CFLAGS -Wpointer-arith" 11980 11981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5 11982$as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; } 11983 cacheid=xorg_cv_cc_flag__Wpointer_arith 11984 if eval \${$cacheid+:} false; then : 11985 $as_echo_n "(cached) " >&6 11986else 11987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11988/* end confdefs.h. */ 11989int i; 11990int 11991main () 11992{ 11993 11994 ; 11995 return 0; 11996} 11997_ACEOF 11998if ac_fn_c_try_link "$LINENO"; then : 11999 eval $cacheid=yes 12000else 12001 eval $cacheid=no 12002fi 12003rm -f core conftest.err conftest.$ac_objext \ 12004 conftest$ac_exeext conftest.$ac_ext 12005fi 12006 12007 12008 CFLAGS="$xorg_testset_save_CFLAGS" 12009 12010 eval supported=\$$cacheid 12011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12012$as_echo "$supported" >&6; } 12013 if test "$supported" = "yes" ; then 12014 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith" 12015 found="yes" 12016 fi 12017 fi 12018 12019 12020 12021 12022 12023 12024 12025 12026 12027 12028 12029 12030 12031 12032 12033xorg_testset_save_CFLAGS="$CFLAGS" 12034 12035if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 12036 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 12038$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 12039if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 12040 $as_echo_n "(cached) " >&6 12041else 12042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12043/* end confdefs.h. */ 12044int i; 12045_ACEOF 12046if ac_fn_c_try_compile "$LINENO"; then : 12047 xorg_cv_cc_flag_unknown_warning_option=yes 12048else 12049 xorg_cv_cc_flag_unknown_warning_option=no 12050fi 12051rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12052fi 12053{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 12054$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 12055 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 12056 CFLAGS="$xorg_testset_save_CFLAGS" 12057fi 12058 12059if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 12060 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12061 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12062 fi 12063 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 12065$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 12066if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 12067 $as_echo_n "(cached) " >&6 12068else 12069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12070/* end confdefs.h. */ 12071int i; 12072_ACEOF 12073if ac_fn_c_try_compile "$LINENO"; then : 12074 xorg_cv_cc_flag_unused_command_line_argument=yes 12075else 12076 xorg_cv_cc_flag_unused_command_line_argument=no 12077fi 12078rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12079fi 12080{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 12081$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 12082 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 12083 CFLAGS="$xorg_testset_save_CFLAGS" 12084fi 12085 12086found="no" 12087 12088 if test $found = "no" ; then 12089 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 12090 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12091 fi 12092 12093 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 12094 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12095 fi 12096 12097 CFLAGS="$CFLAGS -Wmissing-declarations" 12098 12099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5 12100$as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; } 12101 cacheid=xorg_cv_cc_flag__Wmissing_declarations 12102 if eval \${$cacheid+:} false; then : 12103 $as_echo_n "(cached) " >&6 12104else 12105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12106/* end confdefs.h. */ 12107int i; 12108int 12109main () 12110{ 12111 12112 ; 12113 return 0; 12114} 12115_ACEOF 12116if ac_fn_c_try_link "$LINENO"; then : 12117 eval $cacheid=yes 12118else 12119 eval $cacheid=no 12120fi 12121rm -f core conftest.err conftest.$ac_objext \ 12122 conftest$ac_exeext conftest.$ac_ext 12123fi 12124 12125 12126 CFLAGS="$xorg_testset_save_CFLAGS" 12127 12128 eval supported=\$$cacheid 12129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12130$as_echo "$supported" >&6; } 12131 if test "$supported" = "yes" ; then 12132 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations" 12133 found="yes" 12134 fi 12135 fi 12136 12137 12138 12139 12140 12141 12142 12143 12144 12145 12146 12147 12148 12149 12150 12151xorg_testset_save_CFLAGS="$CFLAGS" 12152 12153if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 12154 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 12156$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 12157if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 12158 $as_echo_n "(cached) " >&6 12159else 12160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12161/* end confdefs.h. */ 12162int i; 12163_ACEOF 12164if ac_fn_c_try_compile "$LINENO"; then : 12165 xorg_cv_cc_flag_unknown_warning_option=yes 12166else 12167 xorg_cv_cc_flag_unknown_warning_option=no 12168fi 12169rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12170fi 12171{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 12172$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 12173 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 12174 CFLAGS="$xorg_testset_save_CFLAGS" 12175fi 12176 12177if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 12178 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12179 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12180 fi 12181 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 12183$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 12184if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 12185 $as_echo_n "(cached) " >&6 12186else 12187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12188/* end confdefs.h. */ 12189int i; 12190_ACEOF 12191if ac_fn_c_try_compile "$LINENO"; then : 12192 xorg_cv_cc_flag_unused_command_line_argument=yes 12193else 12194 xorg_cv_cc_flag_unused_command_line_argument=no 12195fi 12196rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12197fi 12198{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 12199$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 12200 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 12201 CFLAGS="$xorg_testset_save_CFLAGS" 12202fi 12203 12204found="no" 12205 12206 if test $found = "no" ; then 12207 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 12208 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12209 fi 12210 12211 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 12212 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12213 fi 12214 12215 CFLAGS="$CFLAGS -Wformat=2" 12216 12217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5 12218$as_echo_n "checking if $CC supports -Wformat=2... " >&6; } 12219 cacheid=`$as_echo "xorg_cv_cc_flag_-Wformat=2" | $as_tr_sh` 12220 if eval \${$cacheid+:} false; then : 12221 $as_echo_n "(cached) " >&6 12222else 12223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12224/* end confdefs.h. */ 12225int i; 12226int 12227main () 12228{ 12229 12230 ; 12231 return 0; 12232} 12233_ACEOF 12234if ac_fn_c_try_link "$LINENO"; then : 12235 eval $cacheid=yes 12236else 12237 eval $cacheid=no 12238fi 12239rm -f core conftest.err conftest.$ac_objext \ 12240 conftest$ac_exeext conftest.$ac_ext 12241fi 12242 12243 12244 CFLAGS="$xorg_testset_save_CFLAGS" 12245 12246 eval supported=\$$cacheid 12247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12248$as_echo "$supported" >&6; } 12249 if test "$supported" = "yes" ; then 12250 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2" 12251 found="yes" 12252 fi 12253 fi 12254 12255 if test $found = "no" ; then 12256 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 12257 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12258 fi 12259 12260 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 12261 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12262 fi 12263 12264 CFLAGS="$CFLAGS -Wformat" 12265 12266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5 12267$as_echo_n "checking if $CC supports -Wformat... " >&6; } 12268 cacheid=xorg_cv_cc_flag__Wformat 12269 if eval \${$cacheid+:} false; then : 12270 $as_echo_n "(cached) " >&6 12271else 12272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12273/* end confdefs.h. */ 12274int i; 12275int 12276main () 12277{ 12278 12279 ; 12280 return 0; 12281} 12282_ACEOF 12283if ac_fn_c_try_link "$LINENO"; then : 12284 eval $cacheid=yes 12285else 12286 eval $cacheid=no 12287fi 12288rm -f core conftest.err conftest.$ac_objext \ 12289 conftest$ac_exeext conftest.$ac_ext 12290fi 12291 12292 12293 CFLAGS="$xorg_testset_save_CFLAGS" 12294 12295 eval supported=\$$cacheid 12296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12297$as_echo "$supported" >&6; } 12298 if test "$supported" = "yes" ; then 12299 BASE_CFLAGS="$BASE_CFLAGS -Wformat" 12300 found="yes" 12301 fi 12302 fi 12303 12304 12305 12306 12307 12308 12309 12310 12311 12312 12313 12314 12315 12316 12317 12318 12319 12320xorg_testset_save_CFLAGS="$CFLAGS" 12321 12322if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 12323 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 12325$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 12326if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 12327 $as_echo_n "(cached) " >&6 12328else 12329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12330/* end confdefs.h. */ 12331int i; 12332_ACEOF 12333if ac_fn_c_try_compile "$LINENO"; then : 12334 xorg_cv_cc_flag_unknown_warning_option=yes 12335else 12336 xorg_cv_cc_flag_unknown_warning_option=no 12337fi 12338rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12339fi 12340{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 12341$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 12342 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 12343 CFLAGS="$xorg_testset_save_CFLAGS" 12344fi 12345 12346if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 12347 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12348 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12349 fi 12350 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 12352$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 12353if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 12354 $as_echo_n "(cached) " >&6 12355else 12356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12357/* end confdefs.h. */ 12358int i; 12359_ACEOF 12360if ac_fn_c_try_compile "$LINENO"; then : 12361 xorg_cv_cc_flag_unused_command_line_argument=yes 12362else 12363 xorg_cv_cc_flag_unused_command_line_argument=no 12364fi 12365rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12366fi 12367{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 12368$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 12369 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 12370 CFLAGS="$xorg_testset_save_CFLAGS" 12371fi 12372 12373found="no" 12374 12375 if test $found = "no" ; then 12376 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 12377 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12378 fi 12379 12380 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 12381 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12382 fi 12383 12384 CFLAGS="$CFLAGS -Wstrict-prototypes" 12385 12386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5 12387$as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; } 12388 cacheid=xorg_cv_cc_flag__Wstrict_prototypes 12389 if eval \${$cacheid+:} false; then : 12390 $as_echo_n "(cached) " >&6 12391else 12392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12393/* end confdefs.h. */ 12394int i; 12395int 12396main () 12397{ 12398 12399 ; 12400 return 0; 12401} 12402_ACEOF 12403if ac_fn_c_try_link "$LINENO"; then : 12404 eval $cacheid=yes 12405else 12406 eval $cacheid=no 12407fi 12408rm -f core conftest.err conftest.$ac_objext \ 12409 conftest$ac_exeext conftest.$ac_ext 12410fi 12411 12412 12413 CFLAGS="$xorg_testset_save_CFLAGS" 12414 12415 eval supported=\$$cacheid 12416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12417$as_echo "$supported" >&6; } 12418 if test "$supported" = "yes" ; then 12419 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes" 12420 found="yes" 12421 fi 12422 fi 12423 12424 12425 12426 12427 12428 12429 12430 12431 12432 12433 12434 12435 12436 12437 12438xorg_testset_save_CFLAGS="$CFLAGS" 12439 12440if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 12441 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 12443$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 12444if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 12445 $as_echo_n "(cached) " >&6 12446else 12447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12448/* end confdefs.h. */ 12449int i; 12450_ACEOF 12451if ac_fn_c_try_compile "$LINENO"; then : 12452 xorg_cv_cc_flag_unknown_warning_option=yes 12453else 12454 xorg_cv_cc_flag_unknown_warning_option=no 12455fi 12456rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12457fi 12458{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 12459$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 12460 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 12461 CFLAGS="$xorg_testset_save_CFLAGS" 12462fi 12463 12464if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 12465 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12466 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12467 fi 12468 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 12470$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 12471if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 12472 $as_echo_n "(cached) " >&6 12473else 12474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12475/* end confdefs.h. */ 12476int i; 12477_ACEOF 12478if ac_fn_c_try_compile "$LINENO"; then : 12479 xorg_cv_cc_flag_unused_command_line_argument=yes 12480else 12481 xorg_cv_cc_flag_unused_command_line_argument=no 12482fi 12483rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12484fi 12485{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 12486$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 12487 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 12488 CFLAGS="$xorg_testset_save_CFLAGS" 12489fi 12490 12491found="no" 12492 12493 if test $found = "no" ; then 12494 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 12495 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12496 fi 12497 12498 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 12499 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12500 fi 12501 12502 CFLAGS="$CFLAGS -Wmissing-prototypes" 12503 12504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5 12505$as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; } 12506 cacheid=xorg_cv_cc_flag__Wmissing_prototypes 12507 if eval \${$cacheid+:} false; then : 12508 $as_echo_n "(cached) " >&6 12509else 12510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12511/* end confdefs.h. */ 12512int i; 12513int 12514main () 12515{ 12516 12517 ; 12518 return 0; 12519} 12520_ACEOF 12521if ac_fn_c_try_link "$LINENO"; then : 12522 eval $cacheid=yes 12523else 12524 eval $cacheid=no 12525fi 12526rm -f core conftest.err conftest.$ac_objext \ 12527 conftest$ac_exeext conftest.$ac_ext 12528fi 12529 12530 12531 CFLAGS="$xorg_testset_save_CFLAGS" 12532 12533 eval supported=\$$cacheid 12534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12535$as_echo "$supported" >&6; } 12536 if test "$supported" = "yes" ; then 12537 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes" 12538 found="yes" 12539 fi 12540 fi 12541 12542 12543 12544 12545 12546 12547 12548 12549 12550 12551 12552 12553 12554 12555 12556xorg_testset_save_CFLAGS="$CFLAGS" 12557 12558if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 12559 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 12561$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 12562if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 12563 $as_echo_n "(cached) " >&6 12564else 12565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12566/* end confdefs.h. */ 12567int i; 12568_ACEOF 12569if ac_fn_c_try_compile "$LINENO"; then : 12570 xorg_cv_cc_flag_unknown_warning_option=yes 12571else 12572 xorg_cv_cc_flag_unknown_warning_option=no 12573fi 12574rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12575fi 12576{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 12577$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 12578 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 12579 CFLAGS="$xorg_testset_save_CFLAGS" 12580fi 12581 12582if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 12583 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12584 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12585 fi 12586 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 12588$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 12589if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 12590 $as_echo_n "(cached) " >&6 12591else 12592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12593/* end confdefs.h. */ 12594int i; 12595_ACEOF 12596if ac_fn_c_try_compile "$LINENO"; then : 12597 xorg_cv_cc_flag_unused_command_line_argument=yes 12598else 12599 xorg_cv_cc_flag_unused_command_line_argument=no 12600fi 12601rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12602fi 12603{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 12604$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 12605 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 12606 CFLAGS="$xorg_testset_save_CFLAGS" 12607fi 12608 12609found="no" 12610 12611 if test $found = "no" ; then 12612 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 12613 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12614 fi 12615 12616 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 12617 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12618 fi 12619 12620 CFLAGS="$CFLAGS -Wnested-externs" 12621 12622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5 12623$as_echo_n "checking if $CC supports -Wnested-externs... " >&6; } 12624 cacheid=xorg_cv_cc_flag__Wnested_externs 12625 if eval \${$cacheid+:} false; then : 12626 $as_echo_n "(cached) " >&6 12627else 12628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12629/* end confdefs.h. */ 12630int i; 12631int 12632main () 12633{ 12634 12635 ; 12636 return 0; 12637} 12638_ACEOF 12639if ac_fn_c_try_link "$LINENO"; then : 12640 eval $cacheid=yes 12641else 12642 eval $cacheid=no 12643fi 12644rm -f core conftest.err conftest.$ac_objext \ 12645 conftest$ac_exeext conftest.$ac_ext 12646fi 12647 12648 12649 CFLAGS="$xorg_testset_save_CFLAGS" 12650 12651 eval supported=\$$cacheid 12652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12653$as_echo "$supported" >&6; } 12654 if test "$supported" = "yes" ; then 12655 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs" 12656 found="yes" 12657 fi 12658 fi 12659 12660 12661 12662 12663 12664 12665 12666 12667 12668 12669 12670 12671 12672 12673 12674xorg_testset_save_CFLAGS="$CFLAGS" 12675 12676if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 12677 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 12679$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 12680if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 12681 $as_echo_n "(cached) " >&6 12682else 12683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12684/* end confdefs.h. */ 12685int i; 12686_ACEOF 12687if ac_fn_c_try_compile "$LINENO"; then : 12688 xorg_cv_cc_flag_unknown_warning_option=yes 12689else 12690 xorg_cv_cc_flag_unknown_warning_option=no 12691fi 12692rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12693fi 12694{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 12695$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 12696 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 12697 CFLAGS="$xorg_testset_save_CFLAGS" 12698fi 12699 12700if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 12701 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12702 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12703 fi 12704 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 12706$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 12707if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 12708 $as_echo_n "(cached) " >&6 12709else 12710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12711/* end confdefs.h. */ 12712int i; 12713_ACEOF 12714if ac_fn_c_try_compile "$LINENO"; then : 12715 xorg_cv_cc_flag_unused_command_line_argument=yes 12716else 12717 xorg_cv_cc_flag_unused_command_line_argument=no 12718fi 12719rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12720fi 12721{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 12722$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 12723 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 12724 CFLAGS="$xorg_testset_save_CFLAGS" 12725fi 12726 12727found="no" 12728 12729 if test $found = "no" ; then 12730 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 12731 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12732 fi 12733 12734 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 12735 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12736 fi 12737 12738 CFLAGS="$CFLAGS -Wbad-function-cast" 12739 12740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5 12741$as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; } 12742 cacheid=xorg_cv_cc_flag__Wbad_function_cast 12743 if eval \${$cacheid+:} false; then : 12744 $as_echo_n "(cached) " >&6 12745else 12746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12747/* end confdefs.h. */ 12748int i; 12749int 12750main () 12751{ 12752 12753 ; 12754 return 0; 12755} 12756_ACEOF 12757if ac_fn_c_try_link "$LINENO"; then : 12758 eval $cacheid=yes 12759else 12760 eval $cacheid=no 12761fi 12762rm -f core conftest.err conftest.$ac_objext \ 12763 conftest$ac_exeext conftest.$ac_ext 12764fi 12765 12766 12767 CFLAGS="$xorg_testset_save_CFLAGS" 12768 12769 eval supported=\$$cacheid 12770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12771$as_echo "$supported" >&6; } 12772 if test "$supported" = "yes" ; then 12773 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast" 12774 found="yes" 12775 fi 12776 fi 12777 12778 12779 12780 12781 12782 12783 12784 12785 12786 12787 12788 12789 12790 12791 12792xorg_testset_save_CFLAGS="$CFLAGS" 12793 12794if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 12795 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 12797$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 12798if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 12799 $as_echo_n "(cached) " >&6 12800else 12801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12802/* end confdefs.h. */ 12803int i; 12804_ACEOF 12805if ac_fn_c_try_compile "$LINENO"; then : 12806 xorg_cv_cc_flag_unknown_warning_option=yes 12807else 12808 xorg_cv_cc_flag_unknown_warning_option=no 12809fi 12810rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12811fi 12812{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 12813$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 12814 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 12815 CFLAGS="$xorg_testset_save_CFLAGS" 12816fi 12817 12818if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 12819 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12820 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12821 fi 12822 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 12824$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 12825if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 12826 $as_echo_n "(cached) " >&6 12827else 12828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12829/* end confdefs.h. */ 12830int i; 12831_ACEOF 12832if ac_fn_c_try_compile "$LINENO"; then : 12833 xorg_cv_cc_flag_unused_command_line_argument=yes 12834else 12835 xorg_cv_cc_flag_unused_command_line_argument=no 12836fi 12837rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12838fi 12839{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 12840$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 12841 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 12842 CFLAGS="$xorg_testset_save_CFLAGS" 12843fi 12844 12845found="no" 12846 12847 if test $found = "no" ; then 12848 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 12849 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12850 fi 12851 12852 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 12853 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12854 fi 12855 12856 CFLAGS="$CFLAGS -Wold-style-definition" 12857 12858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5 12859$as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; } 12860 cacheid=xorg_cv_cc_flag__Wold_style_definition 12861 if eval \${$cacheid+:} false; then : 12862 $as_echo_n "(cached) " >&6 12863else 12864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12865/* end confdefs.h. */ 12866int i; 12867int 12868main () 12869{ 12870 12871 ; 12872 return 0; 12873} 12874_ACEOF 12875if ac_fn_c_try_link "$LINENO"; then : 12876 eval $cacheid=yes 12877else 12878 eval $cacheid=no 12879fi 12880rm -f core conftest.err conftest.$ac_objext \ 12881 conftest$ac_exeext conftest.$ac_ext 12882fi 12883 12884 12885 CFLAGS="$xorg_testset_save_CFLAGS" 12886 12887 eval supported=\$$cacheid 12888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12889$as_echo "$supported" >&6; } 12890 if test "$supported" = "yes" ; then 12891 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition" 12892 found="yes" 12893 fi 12894 fi 12895 12896 12897 12898 12899 12900 12901 12902 12903 12904 12905 12906 12907 12908 12909 12910xorg_testset_save_CFLAGS="$CFLAGS" 12911 12912if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 12913 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 12915$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 12916if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 12917 $as_echo_n "(cached) " >&6 12918else 12919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12920/* end confdefs.h. */ 12921int i; 12922_ACEOF 12923if ac_fn_c_try_compile "$LINENO"; then : 12924 xorg_cv_cc_flag_unknown_warning_option=yes 12925else 12926 xorg_cv_cc_flag_unknown_warning_option=no 12927fi 12928rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12929fi 12930{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 12931$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 12932 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 12933 CFLAGS="$xorg_testset_save_CFLAGS" 12934fi 12935 12936if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 12937 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12938 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12939 fi 12940 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 12942$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 12943if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 12944 $as_echo_n "(cached) " >&6 12945else 12946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12947/* end confdefs.h. */ 12948int i; 12949_ACEOF 12950if ac_fn_c_try_compile "$LINENO"; then : 12951 xorg_cv_cc_flag_unused_command_line_argument=yes 12952else 12953 xorg_cv_cc_flag_unused_command_line_argument=no 12954fi 12955rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12956fi 12957{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 12958$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 12959 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 12960 CFLAGS="$xorg_testset_save_CFLAGS" 12961fi 12962 12963found="no" 12964 12965 if test $found = "no" ; then 12966 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 12967 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12968 fi 12969 12970 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 12971 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12972 fi 12973 12974 CFLAGS="$CFLAGS -Wdeclaration-after-statement" 12975 12976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5 12977$as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; } 12978 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement 12979 if eval \${$cacheid+:} false; then : 12980 $as_echo_n "(cached) " >&6 12981else 12982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12983/* end confdefs.h. */ 12984int i; 12985int 12986main () 12987{ 12988 12989 ; 12990 return 0; 12991} 12992_ACEOF 12993if ac_fn_c_try_link "$LINENO"; then : 12994 eval $cacheid=yes 12995else 12996 eval $cacheid=no 12997fi 12998rm -f core conftest.err conftest.$ac_objext \ 12999 conftest$ac_exeext conftest.$ac_ext 13000fi 13001 13002 13003 CFLAGS="$xorg_testset_save_CFLAGS" 13004 13005 eval supported=\$$cacheid 13006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13007$as_echo "$supported" >&6; } 13008 if test "$supported" = "yes" ; then 13009 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement" 13010 found="yes" 13011 fi 13012 fi 13013 13014 13015 13016 13017 13018# This chunk adds additional warnings that could catch undesired effects. 13019 13020 13021 13022 13023 13024 13025 13026 13027 13028 13029 13030 13031 13032xorg_testset_save_CFLAGS="$CFLAGS" 13033 13034if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13035 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13037$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13038if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13039 $as_echo_n "(cached) " >&6 13040else 13041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13042/* end confdefs.h. */ 13043int i; 13044_ACEOF 13045if ac_fn_c_try_compile "$LINENO"; then : 13046 xorg_cv_cc_flag_unknown_warning_option=yes 13047else 13048 xorg_cv_cc_flag_unknown_warning_option=no 13049fi 13050rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13051fi 13052{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13053$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13054 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13055 CFLAGS="$xorg_testset_save_CFLAGS" 13056fi 13057 13058if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13059 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13060 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13061 fi 13062 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13064$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13065if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13066 $as_echo_n "(cached) " >&6 13067else 13068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13069/* end confdefs.h. */ 13070int i; 13071_ACEOF 13072if ac_fn_c_try_compile "$LINENO"; then : 13073 xorg_cv_cc_flag_unused_command_line_argument=yes 13074else 13075 xorg_cv_cc_flag_unused_command_line_argument=no 13076fi 13077rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13078fi 13079{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13080$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13081 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13082 CFLAGS="$xorg_testset_save_CFLAGS" 13083fi 13084 13085found="no" 13086 13087 if test $found = "no" ; then 13088 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 13089 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13090 fi 13091 13092 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 13093 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13094 fi 13095 13096 CFLAGS="$CFLAGS -Wunused" 13097 13098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5 13099$as_echo_n "checking if $CC supports -Wunused... " >&6; } 13100 cacheid=xorg_cv_cc_flag__Wunused 13101 if eval \${$cacheid+:} false; then : 13102 $as_echo_n "(cached) " >&6 13103else 13104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13105/* end confdefs.h. */ 13106int i; 13107int 13108main () 13109{ 13110 13111 ; 13112 return 0; 13113} 13114_ACEOF 13115if ac_fn_c_try_link "$LINENO"; then : 13116 eval $cacheid=yes 13117else 13118 eval $cacheid=no 13119fi 13120rm -f core conftest.err conftest.$ac_objext \ 13121 conftest$ac_exeext conftest.$ac_ext 13122fi 13123 13124 13125 CFLAGS="$xorg_testset_save_CFLAGS" 13126 13127 eval supported=\$$cacheid 13128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13129$as_echo "$supported" >&6; } 13130 if test "$supported" = "yes" ; then 13131 BASE_CFLAGS="$BASE_CFLAGS -Wunused" 13132 found="yes" 13133 fi 13134 fi 13135 13136 13137 13138 13139 13140 13141 13142 13143 13144 13145 13146 13147 13148 13149 13150xorg_testset_save_CFLAGS="$CFLAGS" 13151 13152if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13153 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13155$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13156if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13157 $as_echo_n "(cached) " >&6 13158else 13159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13160/* end confdefs.h. */ 13161int i; 13162_ACEOF 13163if ac_fn_c_try_compile "$LINENO"; then : 13164 xorg_cv_cc_flag_unknown_warning_option=yes 13165else 13166 xorg_cv_cc_flag_unknown_warning_option=no 13167fi 13168rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13169fi 13170{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13171$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13172 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13173 CFLAGS="$xorg_testset_save_CFLAGS" 13174fi 13175 13176if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13177 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13178 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13179 fi 13180 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13182$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13183if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13184 $as_echo_n "(cached) " >&6 13185else 13186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13187/* end confdefs.h. */ 13188int i; 13189_ACEOF 13190if ac_fn_c_try_compile "$LINENO"; then : 13191 xorg_cv_cc_flag_unused_command_line_argument=yes 13192else 13193 xorg_cv_cc_flag_unused_command_line_argument=no 13194fi 13195rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13196fi 13197{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13198$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13199 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13200 CFLAGS="$xorg_testset_save_CFLAGS" 13201fi 13202 13203found="no" 13204 13205 if test $found = "no" ; then 13206 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 13207 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13208 fi 13209 13210 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 13211 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13212 fi 13213 13214 CFLAGS="$CFLAGS -Wuninitialized" 13215 13216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5 13217$as_echo_n "checking if $CC supports -Wuninitialized... " >&6; } 13218 cacheid=xorg_cv_cc_flag__Wuninitialized 13219 if eval \${$cacheid+:} false; then : 13220 $as_echo_n "(cached) " >&6 13221else 13222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13223/* end confdefs.h. */ 13224int i; 13225int 13226main () 13227{ 13228 13229 ; 13230 return 0; 13231} 13232_ACEOF 13233if ac_fn_c_try_link "$LINENO"; then : 13234 eval $cacheid=yes 13235else 13236 eval $cacheid=no 13237fi 13238rm -f core conftest.err conftest.$ac_objext \ 13239 conftest$ac_exeext conftest.$ac_ext 13240fi 13241 13242 13243 CFLAGS="$xorg_testset_save_CFLAGS" 13244 13245 eval supported=\$$cacheid 13246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13247$as_echo "$supported" >&6; } 13248 if test "$supported" = "yes" ; then 13249 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized" 13250 found="yes" 13251 fi 13252 fi 13253 13254 13255 13256 13257 13258 13259 13260 13261 13262 13263 13264 13265 13266 13267 13268xorg_testset_save_CFLAGS="$CFLAGS" 13269 13270if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13271 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13273$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13274if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13275 $as_echo_n "(cached) " >&6 13276else 13277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13278/* end confdefs.h. */ 13279int i; 13280_ACEOF 13281if ac_fn_c_try_compile "$LINENO"; then : 13282 xorg_cv_cc_flag_unknown_warning_option=yes 13283else 13284 xorg_cv_cc_flag_unknown_warning_option=no 13285fi 13286rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13287fi 13288{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13289$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13290 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13291 CFLAGS="$xorg_testset_save_CFLAGS" 13292fi 13293 13294if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13295 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13296 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13297 fi 13298 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13300$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13301if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13302 $as_echo_n "(cached) " >&6 13303else 13304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13305/* end confdefs.h. */ 13306int i; 13307_ACEOF 13308if ac_fn_c_try_compile "$LINENO"; then : 13309 xorg_cv_cc_flag_unused_command_line_argument=yes 13310else 13311 xorg_cv_cc_flag_unused_command_line_argument=no 13312fi 13313rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13314fi 13315{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13316$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13317 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13318 CFLAGS="$xorg_testset_save_CFLAGS" 13319fi 13320 13321found="no" 13322 13323 if test $found = "no" ; then 13324 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 13325 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13326 fi 13327 13328 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 13329 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13330 fi 13331 13332 CFLAGS="$CFLAGS -Wshadow" 13333 13334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5 13335$as_echo_n "checking if $CC supports -Wshadow... " >&6; } 13336 cacheid=xorg_cv_cc_flag__Wshadow 13337 if eval \${$cacheid+:} false; then : 13338 $as_echo_n "(cached) " >&6 13339else 13340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13341/* end confdefs.h. */ 13342int i; 13343int 13344main () 13345{ 13346 13347 ; 13348 return 0; 13349} 13350_ACEOF 13351if ac_fn_c_try_link "$LINENO"; then : 13352 eval $cacheid=yes 13353else 13354 eval $cacheid=no 13355fi 13356rm -f core conftest.err conftest.$ac_objext \ 13357 conftest$ac_exeext conftest.$ac_ext 13358fi 13359 13360 13361 CFLAGS="$xorg_testset_save_CFLAGS" 13362 13363 eval supported=\$$cacheid 13364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13365$as_echo "$supported" >&6; } 13366 if test "$supported" = "yes" ; then 13367 BASE_CFLAGS="$BASE_CFLAGS -Wshadow" 13368 found="yes" 13369 fi 13370 fi 13371 13372 13373 13374 13375 13376 13377 13378 13379 13380 13381 13382 13383 13384 13385 13386xorg_testset_save_CFLAGS="$CFLAGS" 13387 13388if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13389 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13391$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13392if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13393 $as_echo_n "(cached) " >&6 13394else 13395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13396/* end confdefs.h. */ 13397int i; 13398_ACEOF 13399if ac_fn_c_try_compile "$LINENO"; then : 13400 xorg_cv_cc_flag_unknown_warning_option=yes 13401else 13402 xorg_cv_cc_flag_unknown_warning_option=no 13403fi 13404rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13405fi 13406{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13407$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13408 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13409 CFLAGS="$xorg_testset_save_CFLAGS" 13410fi 13411 13412if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13413 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13414 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13415 fi 13416 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13418$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13419if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13420 $as_echo_n "(cached) " >&6 13421else 13422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13423/* end confdefs.h. */ 13424int i; 13425_ACEOF 13426if ac_fn_c_try_compile "$LINENO"; then : 13427 xorg_cv_cc_flag_unused_command_line_argument=yes 13428else 13429 xorg_cv_cc_flag_unused_command_line_argument=no 13430fi 13431rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13432fi 13433{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13434$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13435 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13436 CFLAGS="$xorg_testset_save_CFLAGS" 13437fi 13438 13439found="no" 13440 13441 if test $found = "no" ; then 13442 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 13443 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13444 fi 13445 13446 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 13447 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13448 fi 13449 13450 CFLAGS="$CFLAGS -Wcast-qual" 13451 13452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wcast-qual" >&5 13453$as_echo_n "checking if $CC supports -Wcast-qual... " >&6; } 13454 cacheid=xorg_cv_cc_flag__Wcast_qual 13455 if eval \${$cacheid+:} false; then : 13456 $as_echo_n "(cached) " >&6 13457else 13458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13459/* end confdefs.h. */ 13460int i; 13461int 13462main () 13463{ 13464 13465 ; 13466 return 0; 13467} 13468_ACEOF 13469if ac_fn_c_try_link "$LINENO"; then : 13470 eval $cacheid=yes 13471else 13472 eval $cacheid=no 13473fi 13474rm -f core conftest.err conftest.$ac_objext \ 13475 conftest$ac_exeext conftest.$ac_ext 13476fi 13477 13478 13479 CFLAGS="$xorg_testset_save_CFLAGS" 13480 13481 eval supported=\$$cacheid 13482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13483$as_echo "$supported" >&6; } 13484 if test "$supported" = "yes" ; then 13485 BASE_CFLAGS="$BASE_CFLAGS -Wcast-qual" 13486 found="yes" 13487 fi 13488 fi 13489 13490 13491 13492 13493 13494 13495 13496 13497 13498 13499 13500 13501 13502 13503 13504xorg_testset_save_CFLAGS="$CFLAGS" 13505 13506if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13507 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13509$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13510if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13511 $as_echo_n "(cached) " >&6 13512else 13513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13514/* end confdefs.h. */ 13515int i; 13516_ACEOF 13517if ac_fn_c_try_compile "$LINENO"; then : 13518 xorg_cv_cc_flag_unknown_warning_option=yes 13519else 13520 xorg_cv_cc_flag_unknown_warning_option=no 13521fi 13522rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13523fi 13524{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13525$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13526 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13527 CFLAGS="$xorg_testset_save_CFLAGS" 13528fi 13529 13530if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13531 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13532 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13533 fi 13534 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13536$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13537if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13538 $as_echo_n "(cached) " >&6 13539else 13540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13541/* end confdefs.h. */ 13542int i; 13543_ACEOF 13544if ac_fn_c_try_compile "$LINENO"; then : 13545 xorg_cv_cc_flag_unused_command_line_argument=yes 13546else 13547 xorg_cv_cc_flag_unused_command_line_argument=no 13548fi 13549rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13550fi 13551{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13552$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13553 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13554 CFLAGS="$xorg_testset_save_CFLAGS" 13555fi 13556 13557found="no" 13558 13559 if test $found = "no" ; then 13560 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 13561 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13562 fi 13563 13564 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 13565 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13566 fi 13567 13568 CFLAGS="$CFLAGS -Wmissing-noreturn" 13569 13570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5 13571$as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; } 13572 cacheid=xorg_cv_cc_flag__Wmissing_noreturn 13573 if eval \${$cacheid+:} false; then : 13574 $as_echo_n "(cached) " >&6 13575else 13576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13577/* end confdefs.h. */ 13578int i; 13579int 13580main () 13581{ 13582 13583 ; 13584 return 0; 13585} 13586_ACEOF 13587if ac_fn_c_try_link "$LINENO"; then : 13588 eval $cacheid=yes 13589else 13590 eval $cacheid=no 13591fi 13592rm -f core conftest.err conftest.$ac_objext \ 13593 conftest$ac_exeext conftest.$ac_ext 13594fi 13595 13596 13597 CFLAGS="$xorg_testset_save_CFLAGS" 13598 13599 eval supported=\$$cacheid 13600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13601$as_echo "$supported" >&6; } 13602 if test "$supported" = "yes" ; then 13603 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn" 13604 found="yes" 13605 fi 13606 fi 13607 13608 13609 13610 13611 13612 13613 13614 13615 13616 13617 13618 13619 13620 13621 13622xorg_testset_save_CFLAGS="$CFLAGS" 13623 13624if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13625 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13627$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13628if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13629 $as_echo_n "(cached) " >&6 13630else 13631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13632/* end confdefs.h. */ 13633int i; 13634_ACEOF 13635if ac_fn_c_try_compile "$LINENO"; then : 13636 xorg_cv_cc_flag_unknown_warning_option=yes 13637else 13638 xorg_cv_cc_flag_unknown_warning_option=no 13639fi 13640rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13641fi 13642{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13643$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13644 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13645 CFLAGS="$xorg_testset_save_CFLAGS" 13646fi 13647 13648if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13649 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13650 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13651 fi 13652 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13654$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13655if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13656 $as_echo_n "(cached) " >&6 13657else 13658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13659/* end confdefs.h. */ 13660int i; 13661_ACEOF 13662if ac_fn_c_try_compile "$LINENO"; then : 13663 xorg_cv_cc_flag_unused_command_line_argument=yes 13664else 13665 xorg_cv_cc_flag_unused_command_line_argument=no 13666fi 13667rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13668fi 13669{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13670$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13671 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13672 CFLAGS="$xorg_testset_save_CFLAGS" 13673fi 13674 13675found="no" 13676 13677 if test $found = "no" ; then 13678 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 13679 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13680 fi 13681 13682 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 13683 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13684 fi 13685 13686 CFLAGS="$CFLAGS -Wmissing-format-attribute" 13687 13688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5 13689$as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; } 13690 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute 13691 if eval \${$cacheid+:} false; then : 13692 $as_echo_n "(cached) " >&6 13693else 13694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13695/* end confdefs.h. */ 13696int i; 13697int 13698main () 13699{ 13700 13701 ; 13702 return 0; 13703} 13704_ACEOF 13705if ac_fn_c_try_link "$LINENO"; then : 13706 eval $cacheid=yes 13707else 13708 eval $cacheid=no 13709fi 13710rm -f core conftest.err conftest.$ac_objext \ 13711 conftest$ac_exeext conftest.$ac_ext 13712fi 13713 13714 13715 CFLAGS="$xorg_testset_save_CFLAGS" 13716 13717 eval supported=\$$cacheid 13718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13719$as_echo "$supported" >&6; } 13720 if test "$supported" = "yes" ; then 13721 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute" 13722 found="yes" 13723 fi 13724 fi 13725 13726 13727 13728 13729 13730 13731 13732 13733 13734 13735 13736 13737 13738 13739 13740xorg_testset_save_CFLAGS="$CFLAGS" 13741 13742if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13743 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13745$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13746if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13747 $as_echo_n "(cached) " >&6 13748else 13749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13750/* end confdefs.h. */ 13751int i; 13752_ACEOF 13753if ac_fn_c_try_compile "$LINENO"; then : 13754 xorg_cv_cc_flag_unknown_warning_option=yes 13755else 13756 xorg_cv_cc_flag_unknown_warning_option=no 13757fi 13758rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13759fi 13760{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13761$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13762 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13763 CFLAGS="$xorg_testset_save_CFLAGS" 13764fi 13765 13766if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13767 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13768 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13769 fi 13770 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13772$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13773if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13774 $as_echo_n "(cached) " >&6 13775else 13776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13777/* end confdefs.h. */ 13778int i; 13779_ACEOF 13780if ac_fn_c_try_compile "$LINENO"; then : 13781 xorg_cv_cc_flag_unused_command_line_argument=yes 13782else 13783 xorg_cv_cc_flag_unused_command_line_argument=no 13784fi 13785rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13786fi 13787{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13788$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13789 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13790 CFLAGS="$xorg_testset_save_CFLAGS" 13791fi 13792 13793found="no" 13794 13795 if test $found = "no" ; then 13796 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 13797 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13798 fi 13799 13800 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 13801 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13802 fi 13803 13804 CFLAGS="$CFLAGS -Wredundant-decls" 13805 13806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5 13807$as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; } 13808 cacheid=xorg_cv_cc_flag__Wredundant_decls 13809 if eval \${$cacheid+:} false; then : 13810 $as_echo_n "(cached) " >&6 13811else 13812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13813/* end confdefs.h. */ 13814int i; 13815int 13816main () 13817{ 13818 13819 ; 13820 return 0; 13821} 13822_ACEOF 13823if ac_fn_c_try_link "$LINENO"; then : 13824 eval $cacheid=yes 13825else 13826 eval $cacheid=no 13827fi 13828rm -f core conftest.err conftest.$ac_objext \ 13829 conftest$ac_exeext conftest.$ac_ext 13830fi 13831 13832 13833 CFLAGS="$xorg_testset_save_CFLAGS" 13834 13835 eval supported=\$$cacheid 13836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13837$as_echo "$supported" >&6; } 13838 if test "$supported" = "yes" ; then 13839 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls" 13840 found="yes" 13841 fi 13842 fi 13843 13844 13845 13846# These are currently disabled because they are noisy. They will be enabled 13847# in the future once the codebase is sufficiently modernized to silence 13848# them. For now, I don't want them to drown out the other warnings. 13849# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wlogical-op]) 13850# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses]) 13851# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align]) 13852 13853# Turn some warnings into errors, so we don't accidently get successful builds 13854# when there are problems that should be fixed. 13855 13856if test "x$SELECTIVE_WERROR" = "xyes" ; then 13857 13858 13859 13860 13861 13862 13863 13864 13865 13866 13867 13868 13869 13870xorg_testset_save_CFLAGS="$CFLAGS" 13871 13872if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13873 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13875$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13876if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13877 $as_echo_n "(cached) " >&6 13878else 13879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13880/* end confdefs.h. */ 13881int i; 13882_ACEOF 13883if ac_fn_c_try_compile "$LINENO"; then : 13884 xorg_cv_cc_flag_unknown_warning_option=yes 13885else 13886 xorg_cv_cc_flag_unknown_warning_option=no 13887fi 13888rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13889fi 13890{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13891$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13892 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13893 CFLAGS="$xorg_testset_save_CFLAGS" 13894fi 13895 13896if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13897 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13898 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13899 fi 13900 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13902$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13903if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13904 $as_echo_n "(cached) " >&6 13905else 13906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13907/* end confdefs.h. */ 13908int i; 13909_ACEOF 13910if ac_fn_c_try_compile "$LINENO"; then : 13911 xorg_cv_cc_flag_unused_command_line_argument=yes 13912else 13913 xorg_cv_cc_flag_unused_command_line_argument=no 13914fi 13915rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13916fi 13917{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13918$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13919 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13920 CFLAGS="$xorg_testset_save_CFLAGS" 13921fi 13922 13923found="no" 13924 13925 if test $found = "no" ; then 13926 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 13927 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13928 fi 13929 13930 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 13931 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13932 fi 13933 13934 CFLAGS="$CFLAGS -Werror=implicit" 13935 13936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5 13937$as_echo_n "checking if $CC supports -Werror=implicit... " >&6; } 13938 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=implicit" | $as_tr_sh` 13939 if eval \${$cacheid+:} false; then : 13940 $as_echo_n "(cached) " >&6 13941else 13942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13943/* end confdefs.h. */ 13944int i; 13945int 13946main () 13947{ 13948 13949 ; 13950 return 0; 13951} 13952_ACEOF 13953if ac_fn_c_try_link "$LINENO"; then : 13954 eval $cacheid=yes 13955else 13956 eval $cacheid=no 13957fi 13958rm -f core conftest.err conftest.$ac_objext \ 13959 conftest$ac_exeext conftest.$ac_ext 13960fi 13961 13962 13963 CFLAGS="$xorg_testset_save_CFLAGS" 13964 13965 eval supported=\$$cacheid 13966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13967$as_echo "$supported" >&6; } 13968 if test "$supported" = "yes" ; then 13969 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit" 13970 found="yes" 13971 fi 13972 fi 13973 13974 if test $found = "no" ; then 13975 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 13976 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13977 fi 13978 13979 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 13980 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13981 fi 13982 13983 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 13984 13985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5 13986$as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; } 13987 cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" | $as_tr_sh` 13988 if eval \${$cacheid+:} false; then : 13989 $as_echo_n "(cached) " >&6 13990else 13991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13992/* end confdefs.h. */ 13993int i; 13994int 13995main () 13996{ 13997 13998 ; 13999 return 0; 14000} 14001_ACEOF 14002if ac_fn_c_try_link "$LINENO"; then : 14003 eval $cacheid=yes 14004else 14005 eval $cacheid=no 14006fi 14007rm -f core conftest.err conftest.$ac_objext \ 14008 conftest$ac_exeext conftest.$ac_ext 14009fi 14010 14011 14012 CFLAGS="$xorg_testset_save_CFLAGS" 14013 14014 eval supported=\$$cacheid 14015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14016$as_echo "$supported" >&6; } 14017 if test "$supported" = "yes" ; then 14018 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 14019 found="yes" 14020 fi 14021 fi 14022 14023 14024 14025 14026 14027 14028 14029 14030 14031 14032 14033 14034 14035 14036 14037xorg_testset_save_CFLAGS="$CFLAGS" 14038 14039if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14040 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14042$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14043if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14044 $as_echo_n "(cached) " >&6 14045else 14046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14047/* end confdefs.h. */ 14048int i; 14049_ACEOF 14050if ac_fn_c_try_compile "$LINENO"; then : 14051 xorg_cv_cc_flag_unknown_warning_option=yes 14052else 14053 xorg_cv_cc_flag_unknown_warning_option=no 14054fi 14055rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14056fi 14057{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14058$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14059 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14060 CFLAGS="$xorg_testset_save_CFLAGS" 14061fi 14062 14063if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14064 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14065 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14066 fi 14067 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14069$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14070if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14071 $as_echo_n "(cached) " >&6 14072else 14073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14074/* end confdefs.h. */ 14075int i; 14076_ACEOF 14077if ac_fn_c_try_compile "$LINENO"; then : 14078 xorg_cv_cc_flag_unused_command_line_argument=yes 14079else 14080 xorg_cv_cc_flag_unused_command_line_argument=no 14081fi 14082rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14083fi 14084{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14085$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14086 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14087 CFLAGS="$xorg_testset_save_CFLAGS" 14088fi 14089 14090found="no" 14091 14092 if test $found = "no" ; then 14093 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 14094 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14095 fi 14096 14097 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 14098 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14099 fi 14100 14101 CFLAGS="$CFLAGS -Werror=nonnull" 14102 14103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5 14104$as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; } 14105 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=nonnull" | $as_tr_sh` 14106 if eval \${$cacheid+:} false; then : 14107 $as_echo_n "(cached) " >&6 14108else 14109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14110/* end confdefs.h. */ 14111int i; 14112int 14113main () 14114{ 14115 14116 ; 14117 return 0; 14118} 14119_ACEOF 14120if ac_fn_c_try_link "$LINENO"; then : 14121 eval $cacheid=yes 14122else 14123 eval $cacheid=no 14124fi 14125rm -f core conftest.err conftest.$ac_objext \ 14126 conftest$ac_exeext conftest.$ac_ext 14127fi 14128 14129 14130 CFLAGS="$xorg_testset_save_CFLAGS" 14131 14132 eval supported=\$$cacheid 14133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14134$as_echo "$supported" >&6; } 14135 if test "$supported" = "yes" ; then 14136 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull" 14137 found="yes" 14138 fi 14139 fi 14140 14141 14142 14143 14144 14145 14146 14147 14148 14149 14150 14151 14152 14153 14154 14155xorg_testset_save_CFLAGS="$CFLAGS" 14156 14157if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14158 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14160$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14161if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14162 $as_echo_n "(cached) " >&6 14163else 14164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14165/* end confdefs.h. */ 14166int i; 14167_ACEOF 14168if ac_fn_c_try_compile "$LINENO"; then : 14169 xorg_cv_cc_flag_unknown_warning_option=yes 14170else 14171 xorg_cv_cc_flag_unknown_warning_option=no 14172fi 14173rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14174fi 14175{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14176$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14177 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14178 CFLAGS="$xorg_testset_save_CFLAGS" 14179fi 14180 14181if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14182 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14183 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14184 fi 14185 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14187$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14188if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14189 $as_echo_n "(cached) " >&6 14190else 14191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14192/* end confdefs.h. */ 14193int i; 14194_ACEOF 14195if ac_fn_c_try_compile "$LINENO"; then : 14196 xorg_cv_cc_flag_unused_command_line_argument=yes 14197else 14198 xorg_cv_cc_flag_unused_command_line_argument=no 14199fi 14200rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14201fi 14202{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14203$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14204 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14205 CFLAGS="$xorg_testset_save_CFLAGS" 14206fi 14207 14208found="no" 14209 14210 if test $found = "no" ; then 14211 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 14212 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14213 fi 14214 14215 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 14216 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14217 fi 14218 14219 CFLAGS="$CFLAGS -Werror=init-self" 14220 14221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5 14222$as_echo_n "checking if $CC supports -Werror=init-self... " >&6; } 14223 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=init-self" | $as_tr_sh` 14224 if eval \${$cacheid+:} false; then : 14225 $as_echo_n "(cached) " >&6 14226else 14227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14228/* end confdefs.h. */ 14229int i; 14230int 14231main () 14232{ 14233 14234 ; 14235 return 0; 14236} 14237_ACEOF 14238if ac_fn_c_try_link "$LINENO"; then : 14239 eval $cacheid=yes 14240else 14241 eval $cacheid=no 14242fi 14243rm -f core conftest.err conftest.$ac_objext \ 14244 conftest$ac_exeext conftest.$ac_ext 14245fi 14246 14247 14248 CFLAGS="$xorg_testset_save_CFLAGS" 14249 14250 eval supported=\$$cacheid 14251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14252$as_echo "$supported" >&6; } 14253 if test "$supported" = "yes" ; then 14254 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self" 14255 found="yes" 14256 fi 14257 fi 14258 14259 14260 14261 14262 14263 14264 14265 14266 14267 14268 14269 14270 14271 14272 14273xorg_testset_save_CFLAGS="$CFLAGS" 14274 14275if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14276 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14278$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14279if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14280 $as_echo_n "(cached) " >&6 14281else 14282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14283/* end confdefs.h. */ 14284int i; 14285_ACEOF 14286if ac_fn_c_try_compile "$LINENO"; then : 14287 xorg_cv_cc_flag_unknown_warning_option=yes 14288else 14289 xorg_cv_cc_flag_unknown_warning_option=no 14290fi 14291rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14292fi 14293{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14294$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14295 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14296 CFLAGS="$xorg_testset_save_CFLAGS" 14297fi 14298 14299if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14300 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14301 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14302 fi 14303 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14305$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14306if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14307 $as_echo_n "(cached) " >&6 14308else 14309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14310/* end confdefs.h. */ 14311int i; 14312_ACEOF 14313if ac_fn_c_try_compile "$LINENO"; then : 14314 xorg_cv_cc_flag_unused_command_line_argument=yes 14315else 14316 xorg_cv_cc_flag_unused_command_line_argument=no 14317fi 14318rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14319fi 14320{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14321$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14322 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14323 CFLAGS="$xorg_testset_save_CFLAGS" 14324fi 14325 14326found="no" 14327 14328 if test $found = "no" ; then 14329 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 14330 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14331 fi 14332 14333 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 14334 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14335 fi 14336 14337 CFLAGS="$CFLAGS -Werror=main" 14338 14339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5 14340$as_echo_n "checking if $CC supports -Werror=main... " >&6; } 14341 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=main" | $as_tr_sh` 14342 if eval \${$cacheid+:} false; then : 14343 $as_echo_n "(cached) " >&6 14344else 14345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14346/* end confdefs.h. */ 14347int i; 14348int 14349main () 14350{ 14351 14352 ; 14353 return 0; 14354} 14355_ACEOF 14356if ac_fn_c_try_link "$LINENO"; then : 14357 eval $cacheid=yes 14358else 14359 eval $cacheid=no 14360fi 14361rm -f core conftest.err conftest.$ac_objext \ 14362 conftest$ac_exeext conftest.$ac_ext 14363fi 14364 14365 14366 CFLAGS="$xorg_testset_save_CFLAGS" 14367 14368 eval supported=\$$cacheid 14369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14370$as_echo "$supported" >&6; } 14371 if test "$supported" = "yes" ; then 14372 BASE_CFLAGS="$BASE_CFLAGS -Werror=main" 14373 found="yes" 14374 fi 14375 fi 14376 14377 14378 14379 14380 14381 14382 14383 14384 14385 14386 14387 14388 14389 14390 14391xorg_testset_save_CFLAGS="$CFLAGS" 14392 14393if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14394 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14396$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14397if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14398 $as_echo_n "(cached) " >&6 14399else 14400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14401/* end confdefs.h. */ 14402int i; 14403_ACEOF 14404if ac_fn_c_try_compile "$LINENO"; then : 14405 xorg_cv_cc_flag_unknown_warning_option=yes 14406else 14407 xorg_cv_cc_flag_unknown_warning_option=no 14408fi 14409rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14410fi 14411{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14412$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14413 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14414 CFLAGS="$xorg_testset_save_CFLAGS" 14415fi 14416 14417if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14418 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14419 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14420 fi 14421 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14423$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14424if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14425 $as_echo_n "(cached) " >&6 14426else 14427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14428/* end confdefs.h. */ 14429int i; 14430_ACEOF 14431if ac_fn_c_try_compile "$LINENO"; then : 14432 xorg_cv_cc_flag_unused_command_line_argument=yes 14433else 14434 xorg_cv_cc_flag_unused_command_line_argument=no 14435fi 14436rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14437fi 14438{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14439$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14440 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14441 CFLAGS="$xorg_testset_save_CFLAGS" 14442fi 14443 14444found="no" 14445 14446 if test $found = "no" ; then 14447 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 14448 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14449 fi 14450 14451 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 14452 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14453 fi 14454 14455 CFLAGS="$CFLAGS -Werror=missing-braces" 14456 14457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5 14458$as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; } 14459 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=missing-braces" | $as_tr_sh` 14460 if eval \${$cacheid+:} false; then : 14461 $as_echo_n "(cached) " >&6 14462else 14463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14464/* end confdefs.h. */ 14465int i; 14466int 14467main () 14468{ 14469 14470 ; 14471 return 0; 14472} 14473_ACEOF 14474if ac_fn_c_try_link "$LINENO"; then : 14475 eval $cacheid=yes 14476else 14477 eval $cacheid=no 14478fi 14479rm -f core conftest.err conftest.$ac_objext \ 14480 conftest$ac_exeext conftest.$ac_ext 14481fi 14482 14483 14484 CFLAGS="$xorg_testset_save_CFLAGS" 14485 14486 eval supported=\$$cacheid 14487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14488$as_echo "$supported" >&6; } 14489 if test "$supported" = "yes" ; then 14490 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces" 14491 found="yes" 14492 fi 14493 fi 14494 14495 14496 14497 14498 14499 14500 14501 14502 14503 14504 14505 14506 14507 14508 14509xorg_testset_save_CFLAGS="$CFLAGS" 14510 14511if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14512 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14514$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14515if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14516 $as_echo_n "(cached) " >&6 14517else 14518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14519/* end confdefs.h. */ 14520int i; 14521_ACEOF 14522if ac_fn_c_try_compile "$LINENO"; then : 14523 xorg_cv_cc_flag_unknown_warning_option=yes 14524else 14525 xorg_cv_cc_flag_unknown_warning_option=no 14526fi 14527rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14528fi 14529{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14530$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14531 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14532 CFLAGS="$xorg_testset_save_CFLAGS" 14533fi 14534 14535if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14536 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14537 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14538 fi 14539 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14541$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14542if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14543 $as_echo_n "(cached) " >&6 14544else 14545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14546/* end confdefs.h. */ 14547int i; 14548_ACEOF 14549if ac_fn_c_try_compile "$LINENO"; then : 14550 xorg_cv_cc_flag_unused_command_line_argument=yes 14551else 14552 xorg_cv_cc_flag_unused_command_line_argument=no 14553fi 14554rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14555fi 14556{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14557$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14558 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14559 CFLAGS="$xorg_testset_save_CFLAGS" 14560fi 14561 14562found="no" 14563 14564 if test $found = "no" ; then 14565 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 14566 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14567 fi 14568 14569 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 14570 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14571 fi 14572 14573 CFLAGS="$CFLAGS -Werror=sequence-point" 14574 14575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5 14576$as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; } 14577 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=sequence-point" | $as_tr_sh` 14578 if eval \${$cacheid+:} false; then : 14579 $as_echo_n "(cached) " >&6 14580else 14581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14582/* end confdefs.h. */ 14583int i; 14584int 14585main () 14586{ 14587 14588 ; 14589 return 0; 14590} 14591_ACEOF 14592if ac_fn_c_try_link "$LINENO"; then : 14593 eval $cacheid=yes 14594else 14595 eval $cacheid=no 14596fi 14597rm -f core conftest.err conftest.$ac_objext \ 14598 conftest$ac_exeext conftest.$ac_ext 14599fi 14600 14601 14602 CFLAGS="$xorg_testset_save_CFLAGS" 14603 14604 eval supported=\$$cacheid 14605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14606$as_echo "$supported" >&6; } 14607 if test "$supported" = "yes" ; then 14608 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point" 14609 found="yes" 14610 fi 14611 fi 14612 14613 14614 14615 14616 14617 14618 14619 14620 14621 14622 14623 14624 14625 14626 14627xorg_testset_save_CFLAGS="$CFLAGS" 14628 14629if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14630 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14632$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14633if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14634 $as_echo_n "(cached) " >&6 14635else 14636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14637/* end confdefs.h. */ 14638int i; 14639_ACEOF 14640if ac_fn_c_try_compile "$LINENO"; then : 14641 xorg_cv_cc_flag_unknown_warning_option=yes 14642else 14643 xorg_cv_cc_flag_unknown_warning_option=no 14644fi 14645rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14646fi 14647{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14648$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14649 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14650 CFLAGS="$xorg_testset_save_CFLAGS" 14651fi 14652 14653if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14654 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14655 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14656 fi 14657 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14659$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14660if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14661 $as_echo_n "(cached) " >&6 14662else 14663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14664/* end confdefs.h. */ 14665int i; 14666_ACEOF 14667if ac_fn_c_try_compile "$LINENO"; then : 14668 xorg_cv_cc_flag_unused_command_line_argument=yes 14669else 14670 xorg_cv_cc_flag_unused_command_line_argument=no 14671fi 14672rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14673fi 14674{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14675$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14676 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14677 CFLAGS="$xorg_testset_save_CFLAGS" 14678fi 14679 14680found="no" 14681 14682 if test $found = "no" ; then 14683 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 14684 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14685 fi 14686 14687 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 14688 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14689 fi 14690 14691 CFLAGS="$CFLAGS -Werror=return-type" 14692 14693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5 14694$as_echo_n "checking if $CC supports -Werror=return-type... " >&6; } 14695 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=return-type" | $as_tr_sh` 14696 if eval \${$cacheid+:} false; then : 14697 $as_echo_n "(cached) " >&6 14698else 14699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14700/* end confdefs.h. */ 14701int i; 14702int 14703main () 14704{ 14705 14706 ; 14707 return 0; 14708} 14709_ACEOF 14710if ac_fn_c_try_link "$LINENO"; then : 14711 eval $cacheid=yes 14712else 14713 eval $cacheid=no 14714fi 14715rm -f core conftest.err conftest.$ac_objext \ 14716 conftest$ac_exeext conftest.$ac_ext 14717fi 14718 14719 14720 CFLAGS="$xorg_testset_save_CFLAGS" 14721 14722 eval supported=\$$cacheid 14723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14724$as_echo "$supported" >&6; } 14725 if test "$supported" = "yes" ; then 14726 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type" 14727 found="yes" 14728 fi 14729 fi 14730 14731 if test $found = "no" ; then 14732 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 14733 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14734 fi 14735 14736 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 14737 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14738 fi 14739 14740 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 14741 14742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5 14743$as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; } 14744 cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_FUNC_HAS_NO_RETURN_STMT" | $as_tr_sh` 14745 if eval \${$cacheid+:} false; then : 14746 $as_echo_n "(cached) " >&6 14747else 14748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14749/* end confdefs.h. */ 14750int i; 14751int 14752main () 14753{ 14754 14755 ; 14756 return 0; 14757} 14758_ACEOF 14759if ac_fn_c_try_link "$LINENO"; then : 14760 eval $cacheid=yes 14761else 14762 eval $cacheid=no 14763fi 14764rm -f core conftest.err conftest.$ac_objext \ 14765 conftest$ac_exeext conftest.$ac_ext 14766fi 14767 14768 14769 CFLAGS="$xorg_testset_save_CFLAGS" 14770 14771 eval supported=\$$cacheid 14772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14773$as_echo "$supported" >&6; } 14774 if test "$supported" = "yes" ; then 14775 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 14776 found="yes" 14777 fi 14778 fi 14779 14780 14781 14782 14783 14784 14785 14786 14787 14788 14789 14790 14791 14792 14793 14794xorg_testset_save_CFLAGS="$CFLAGS" 14795 14796if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14797 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14799$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14800if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14801 $as_echo_n "(cached) " >&6 14802else 14803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14804/* end confdefs.h. */ 14805int i; 14806_ACEOF 14807if ac_fn_c_try_compile "$LINENO"; then : 14808 xorg_cv_cc_flag_unknown_warning_option=yes 14809else 14810 xorg_cv_cc_flag_unknown_warning_option=no 14811fi 14812rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14813fi 14814{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14815$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14816 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14817 CFLAGS="$xorg_testset_save_CFLAGS" 14818fi 14819 14820if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14821 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14822 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14823 fi 14824 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14826$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14827if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14828 $as_echo_n "(cached) " >&6 14829else 14830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14831/* end confdefs.h. */ 14832int i; 14833_ACEOF 14834if ac_fn_c_try_compile "$LINENO"; then : 14835 xorg_cv_cc_flag_unused_command_line_argument=yes 14836else 14837 xorg_cv_cc_flag_unused_command_line_argument=no 14838fi 14839rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14840fi 14841{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14842$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14843 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14844 CFLAGS="$xorg_testset_save_CFLAGS" 14845fi 14846 14847found="no" 14848 14849 if test $found = "no" ; then 14850 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 14851 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14852 fi 14853 14854 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 14855 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14856 fi 14857 14858 CFLAGS="$CFLAGS -Werror=trigraphs" 14859 14860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5 14861$as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; } 14862 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=trigraphs" | $as_tr_sh` 14863 if eval \${$cacheid+:} false; then : 14864 $as_echo_n "(cached) " >&6 14865else 14866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14867/* end confdefs.h. */ 14868int i; 14869int 14870main () 14871{ 14872 14873 ; 14874 return 0; 14875} 14876_ACEOF 14877if ac_fn_c_try_link "$LINENO"; then : 14878 eval $cacheid=yes 14879else 14880 eval $cacheid=no 14881fi 14882rm -f core conftest.err conftest.$ac_objext \ 14883 conftest$ac_exeext conftest.$ac_ext 14884fi 14885 14886 14887 CFLAGS="$xorg_testset_save_CFLAGS" 14888 14889 eval supported=\$$cacheid 14890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14891$as_echo "$supported" >&6; } 14892 if test "$supported" = "yes" ; then 14893 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs" 14894 found="yes" 14895 fi 14896 fi 14897 14898 14899 14900 14901 14902 14903 14904 14905 14906 14907 14908 14909 14910 14911 14912xorg_testset_save_CFLAGS="$CFLAGS" 14913 14914if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14915 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14917$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14918if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14919 $as_echo_n "(cached) " >&6 14920else 14921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14922/* end confdefs.h. */ 14923int i; 14924_ACEOF 14925if ac_fn_c_try_compile "$LINENO"; then : 14926 xorg_cv_cc_flag_unknown_warning_option=yes 14927else 14928 xorg_cv_cc_flag_unknown_warning_option=no 14929fi 14930rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14931fi 14932{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14933$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14934 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14935 CFLAGS="$xorg_testset_save_CFLAGS" 14936fi 14937 14938if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14939 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14940 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14941 fi 14942 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14944$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14945if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14946 $as_echo_n "(cached) " >&6 14947else 14948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14949/* end confdefs.h. */ 14950int i; 14951_ACEOF 14952if ac_fn_c_try_compile "$LINENO"; then : 14953 xorg_cv_cc_flag_unused_command_line_argument=yes 14954else 14955 xorg_cv_cc_flag_unused_command_line_argument=no 14956fi 14957rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14958fi 14959{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14960$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14961 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14962 CFLAGS="$xorg_testset_save_CFLAGS" 14963fi 14964 14965found="no" 14966 14967 if test $found = "no" ; then 14968 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 14969 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14970 fi 14971 14972 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 14973 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14974 fi 14975 14976 CFLAGS="$CFLAGS -Werror=array-bounds" 14977 14978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5 14979$as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; } 14980 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=array-bounds" | $as_tr_sh` 14981 if eval \${$cacheid+:} false; then : 14982 $as_echo_n "(cached) " >&6 14983else 14984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14985/* end confdefs.h. */ 14986int i; 14987int 14988main () 14989{ 14990 14991 ; 14992 return 0; 14993} 14994_ACEOF 14995if ac_fn_c_try_link "$LINENO"; then : 14996 eval $cacheid=yes 14997else 14998 eval $cacheid=no 14999fi 15000rm -f core conftest.err conftest.$ac_objext \ 15001 conftest$ac_exeext conftest.$ac_ext 15002fi 15003 15004 15005 CFLAGS="$xorg_testset_save_CFLAGS" 15006 15007 eval supported=\$$cacheid 15008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15009$as_echo "$supported" >&6; } 15010 if test "$supported" = "yes" ; then 15011 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds" 15012 found="yes" 15013 fi 15014 fi 15015 15016 15017 15018 15019 15020 15021 15022 15023 15024 15025 15026 15027 15028 15029 15030xorg_testset_save_CFLAGS="$CFLAGS" 15031 15032if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15033 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15035$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15036if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15037 $as_echo_n "(cached) " >&6 15038else 15039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15040/* end confdefs.h. */ 15041int i; 15042_ACEOF 15043if ac_fn_c_try_compile "$LINENO"; then : 15044 xorg_cv_cc_flag_unknown_warning_option=yes 15045else 15046 xorg_cv_cc_flag_unknown_warning_option=no 15047fi 15048rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15049fi 15050{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15051$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15052 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15053 CFLAGS="$xorg_testset_save_CFLAGS" 15054fi 15055 15056if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15057 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15058 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15059 fi 15060 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15062$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15063if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15064 $as_echo_n "(cached) " >&6 15065else 15066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15067/* end confdefs.h. */ 15068int i; 15069_ACEOF 15070if ac_fn_c_try_compile "$LINENO"; then : 15071 xorg_cv_cc_flag_unused_command_line_argument=yes 15072else 15073 xorg_cv_cc_flag_unused_command_line_argument=no 15074fi 15075rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15076fi 15077{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15078$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15079 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15080 CFLAGS="$xorg_testset_save_CFLAGS" 15081fi 15082 15083found="no" 15084 15085 if test $found = "no" ; then 15086 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 15087 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15088 fi 15089 15090 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 15091 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15092 fi 15093 15094 CFLAGS="$CFLAGS -Werror=write-strings" 15095 15096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5 15097$as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; } 15098 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=write-strings" | $as_tr_sh` 15099 if eval \${$cacheid+:} false; then : 15100 $as_echo_n "(cached) " >&6 15101else 15102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15103/* end confdefs.h. */ 15104int i; 15105int 15106main () 15107{ 15108 15109 ; 15110 return 0; 15111} 15112_ACEOF 15113if ac_fn_c_try_link "$LINENO"; then : 15114 eval $cacheid=yes 15115else 15116 eval $cacheid=no 15117fi 15118rm -f core conftest.err conftest.$ac_objext \ 15119 conftest$ac_exeext conftest.$ac_ext 15120fi 15121 15122 15123 CFLAGS="$xorg_testset_save_CFLAGS" 15124 15125 eval supported=\$$cacheid 15126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15127$as_echo "$supported" >&6; } 15128 if test "$supported" = "yes" ; then 15129 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings" 15130 found="yes" 15131 fi 15132 fi 15133 15134 15135 15136 15137 15138 15139 15140 15141 15142 15143 15144 15145 15146 15147 15148xorg_testset_save_CFLAGS="$CFLAGS" 15149 15150if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15151 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15153$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15154if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15155 $as_echo_n "(cached) " >&6 15156else 15157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15158/* end confdefs.h. */ 15159int i; 15160_ACEOF 15161if ac_fn_c_try_compile "$LINENO"; then : 15162 xorg_cv_cc_flag_unknown_warning_option=yes 15163else 15164 xorg_cv_cc_flag_unknown_warning_option=no 15165fi 15166rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15167fi 15168{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15169$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15170 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15171 CFLAGS="$xorg_testset_save_CFLAGS" 15172fi 15173 15174if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15175 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15176 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15177 fi 15178 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15180$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15181if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15182 $as_echo_n "(cached) " >&6 15183else 15184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15185/* end confdefs.h. */ 15186int i; 15187_ACEOF 15188if ac_fn_c_try_compile "$LINENO"; then : 15189 xorg_cv_cc_flag_unused_command_line_argument=yes 15190else 15191 xorg_cv_cc_flag_unused_command_line_argument=no 15192fi 15193rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15194fi 15195{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15196$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15197 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15198 CFLAGS="$xorg_testset_save_CFLAGS" 15199fi 15200 15201found="no" 15202 15203 if test $found = "no" ; then 15204 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 15205 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15206 fi 15207 15208 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 15209 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15210 fi 15211 15212 CFLAGS="$CFLAGS -Werror=address" 15213 15214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5 15215$as_echo_n "checking if $CC supports -Werror=address... " >&6; } 15216 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=address" | $as_tr_sh` 15217 if eval \${$cacheid+:} false; then : 15218 $as_echo_n "(cached) " >&6 15219else 15220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15221/* end confdefs.h. */ 15222int i; 15223int 15224main () 15225{ 15226 15227 ; 15228 return 0; 15229} 15230_ACEOF 15231if ac_fn_c_try_link "$LINENO"; then : 15232 eval $cacheid=yes 15233else 15234 eval $cacheid=no 15235fi 15236rm -f core conftest.err conftest.$ac_objext \ 15237 conftest$ac_exeext conftest.$ac_ext 15238fi 15239 15240 15241 CFLAGS="$xorg_testset_save_CFLAGS" 15242 15243 eval supported=\$$cacheid 15244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15245$as_echo "$supported" >&6; } 15246 if test "$supported" = "yes" ; then 15247 BASE_CFLAGS="$BASE_CFLAGS -Werror=address" 15248 found="yes" 15249 fi 15250 fi 15251 15252 15253 15254 15255 15256 15257 15258 15259 15260 15261 15262 15263 15264 15265 15266xorg_testset_save_CFLAGS="$CFLAGS" 15267 15268if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15269 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15271$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15272if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15273 $as_echo_n "(cached) " >&6 15274else 15275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15276/* end confdefs.h. */ 15277int i; 15278_ACEOF 15279if ac_fn_c_try_compile "$LINENO"; then : 15280 xorg_cv_cc_flag_unknown_warning_option=yes 15281else 15282 xorg_cv_cc_flag_unknown_warning_option=no 15283fi 15284rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15285fi 15286{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15287$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15288 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15289 CFLAGS="$xorg_testset_save_CFLAGS" 15290fi 15291 15292if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15293 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15294 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15295 fi 15296 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15298$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15299if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15300 $as_echo_n "(cached) " >&6 15301else 15302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15303/* end confdefs.h. */ 15304int i; 15305_ACEOF 15306if ac_fn_c_try_compile "$LINENO"; then : 15307 xorg_cv_cc_flag_unused_command_line_argument=yes 15308else 15309 xorg_cv_cc_flag_unused_command_line_argument=no 15310fi 15311rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15312fi 15313{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15314$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15315 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15316 CFLAGS="$xorg_testset_save_CFLAGS" 15317fi 15318 15319found="no" 15320 15321 if test $found = "no" ; then 15322 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 15323 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15324 fi 15325 15326 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 15327 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15328 fi 15329 15330 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast" 15331 15332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5 15333$as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; } 15334 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=int-to-pointer-cast" | $as_tr_sh` 15335 if eval \${$cacheid+:} false; then : 15336 $as_echo_n "(cached) " >&6 15337else 15338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15339/* end confdefs.h. */ 15340int i; 15341int 15342main () 15343{ 15344 15345 ; 15346 return 0; 15347} 15348_ACEOF 15349if ac_fn_c_try_link "$LINENO"; then : 15350 eval $cacheid=yes 15351else 15352 eval $cacheid=no 15353fi 15354rm -f core conftest.err conftest.$ac_objext \ 15355 conftest$ac_exeext conftest.$ac_ext 15356fi 15357 15358 15359 CFLAGS="$xorg_testset_save_CFLAGS" 15360 15361 eval supported=\$$cacheid 15362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15363$as_echo "$supported" >&6; } 15364 if test "$supported" = "yes" ; then 15365 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast" 15366 found="yes" 15367 fi 15368 fi 15369 15370 if test $found = "no" ; then 15371 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 15372 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15373 fi 15374 15375 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 15376 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15377 fi 15378 15379 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 15380 15381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5 15382$as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; } 15383 cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_BAD_PTR_INT_COMBINATION" | $as_tr_sh` 15384 if eval \${$cacheid+:} false; then : 15385 $as_echo_n "(cached) " >&6 15386else 15387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15388/* end confdefs.h. */ 15389int i; 15390int 15391main () 15392{ 15393 15394 ; 15395 return 0; 15396} 15397_ACEOF 15398if ac_fn_c_try_link "$LINENO"; then : 15399 eval $cacheid=yes 15400else 15401 eval $cacheid=no 15402fi 15403rm -f core conftest.err conftest.$ac_objext \ 15404 conftest$ac_exeext conftest.$ac_ext 15405fi 15406 15407 15408 CFLAGS="$xorg_testset_save_CFLAGS" 15409 15410 eval supported=\$$cacheid 15411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15412$as_echo "$supported" >&6; } 15413 if test "$supported" = "yes" ; then 15414 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 15415 found="yes" 15416 fi 15417 fi 15418 15419 15420 15421 15422 15423 15424 15425 15426 15427 15428 15429 15430 15431 15432 15433xorg_testset_save_CFLAGS="$CFLAGS" 15434 15435if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15436 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15438$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15439if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15440 $as_echo_n "(cached) " >&6 15441else 15442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15443/* end confdefs.h. */ 15444int i; 15445_ACEOF 15446if ac_fn_c_try_compile "$LINENO"; then : 15447 xorg_cv_cc_flag_unknown_warning_option=yes 15448else 15449 xorg_cv_cc_flag_unknown_warning_option=no 15450fi 15451rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15452fi 15453{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15454$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15455 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15456 CFLAGS="$xorg_testset_save_CFLAGS" 15457fi 15458 15459if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15460 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15461 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15462 fi 15463 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15465$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15466if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15467 $as_echo_n "(cached) " >&6 15468else 15469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15470/* end confdefs.h. */ 15471int i; 15472_ACEOF 15473if ac_fn_c_try_compile "$LINENO"; then : 15474 xorg_cv_cc_flag_unused_command_line_argument=yes 15475else 15476 xorg_cv_cc_flag_unused_command_line_argument=no 15477fi 15478rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15479fi 15480{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15481$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15482 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15483 CFLAGS="$xorg_testset_save_CFLAGS" 15484fi 15485 15486found="no" 15487 15488 if test $found = "no" ; then 15489 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 15490 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15491 fi 15492 15493 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 15494 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15495 fi 15496 15497 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast" 15498 15499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5 15500$as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; } 15501 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=pointer-to-int-cast" | $as_tr_sh` 15502 if eval \${$cacheid+:} false; then : 15503 $as_echo_n "(cached) " >&6 15504else 15505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15506/* end confdefs.h. */ 15507int i; 15508int 15509main () 15510{ 15511 15512 ; 15513 return 0; 15514} 15515_ACEOF 15516if ac_fn_c_try_link "$LINENO"; then : 15517 eval $cacheid=yes 15518else 15519 eval $cacheid=no 15520fi 15521rm -f core conftest.err conftest.$ac_objext \ 15522 conftest$ac_exeext conftest.$ac_ext 15523fi 15524 15525 15526 CFLAGS="$xorg_testset_save_CFLAGS" 15527 15528 eval supported=\$$cacheid 15529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15530$as_echo "$supported" >&6; } 15531 if test "$supported" = "yes" ; then 15532 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast" 15533 found="yes" 15534 fi 15535 fi 15536 15537 # Also -errwarn=E_BAD_PTR_INT_COMBINATION 15538else 15539{ $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 15540$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;} 15541 15542 15543 15544 15545 15546 15547 15548 15549 15550 15551 15552 15553 15554xorg_testset_save_CFLAGS="$CFLAGS" 15555 15556if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15557 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15559$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15560if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15561 $as_echo_n "(cached) " >&6 15562else 15563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15564/* end confdefs.h. */ 15565int i; 15566_ACEOF 15567if ac_fn_c_try_compile "$LINENO"; then : 15568 xorg_cv_cc_flag_unknown_warning_option=yes 15569else 15570 xorg_cv_cc_flag_unknown_warning_option=no 15571fi 15572rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15573fi 15574{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15575$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15576 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15577 CFLAGS="$xorg_testset_save_CFLAGS" 15578fi 15579 15580if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15581 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15582 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15583 fi 15584 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15586$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15587if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15588 $as_echo_n "(cached) " >&6 15589else 15590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15591/* end confdefs.h. */ 15592int i; 15593_ACEOF 15594if ac_fn_c_try_compile "$LINENO"; then : 15595 xorg_cv_cc_flag_unused_command_line_argument=yes 15596else 15597 xorg_cv_cc_flag_unused_command_line_argument=no 15598fi 15599rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15600fi 15601{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15602$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15603 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15604 CFLAGS="$xorg_testset_save_CFLAGS" 15605fi 15606 15607found="no" 15608 15609 if test $found = "no" ; then 15610 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 15611 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15612 fi 15613 15614 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 15615 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15616 fi 15617 15618 CFLAGS="$CFLAGS -Wimplicit" 15619 15620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5 15621$as_echo_n "checking if $CC supports -Wimplicit... " >&6; } 15622 cacheid=xorg_cv_cc_flag__Wimplicit 15623 if eval \${$cacheid+:} false; then : 15624 $as_echo_n "(cached) " >&6 15625else 15626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15627/* end confdefs.h. */ 15628int i; 15629int 15630main () 15631{ 15632 15633 ; 15634 return 0; 15635} 15636_ACEOF 15637if ac_fn_c_try_link "$LINENO"; then : 15638 eval $cacheid=yes 15639else 15640 eval $cacheid=no 15641fi 15642rm -f core conftest.err conftest.$ac_objext \ 15643 conftest$ac_exeext conftest.$ac_ext 15644fi 15645 15646 15647 CFLAGS="$xorg_testset_save_CFLAGS" 15648 15649 eval supported=\$$cacheid 15650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15651$as_echo "$supported" >&6; } 15652 if test "$supported" = "yes" ; then 15653 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit" 15654 found="yes" 15655 fi 15656 fi 15657 15658 15659 15660 15661 15662 15663 15664 15665 15666 15667 15668 15669 15670 15671 15672xorg_testset_save_CFLAGS="$CFLAGS" 15673 15674if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15675 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15677$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15678if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15679 $as_echo_n "(cached) " >&6 15680else 15681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15682/* end confdefs.h. */ 15683int i; 15684_ACEOF 15685if ac_fn_c_try_compile "$LINENO"; then : 15686 xorg_cv_cc_flag_unknown_warning_option=yes 15687else 15688 xorg_cv_cc_flag_unknown_warning_option=no 15689fi 15690rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15691fi 15692{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15693$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15694 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15695 CFLAGS="$xorg_testset_save_CFLAGS" 15696fi 15697 15698if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15699 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15700 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15701 fi 15702 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15704$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15705if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15706 $as_echo_n "(cached) " >&6 15707else 15708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15709/* end confdefs.h. */ 15710int i; 15711_ACEOF 15712if ac_fn_c_try_compile "$LINENO"; then : 15713 xorg_cv_cc_flag_unused_command_line_argument=yes 15714else 15715 xorg_cv_cc_flag_unused_command_line_argument=no 15716fi 15717rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15718fi 15719{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15720$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15721 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15722 CFLAGS="$xorg_testset_save_CFLAGS" 15723fi 15724 15725found="no" 15726 15727 if test $found = "no" ; then 15728 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 15729 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15730 fi 15731 15732 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 15733 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15734 fi 15735 15736 CFLAGS="$CFLAGS -Wnonnull" 15737 15738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5 15739$as_echo_n "checking if $CC supports -Wnonnull... " >&6; } 15740 cacheid=xorg_cv_cc_flag__Wnonnull 15741 if eval \${$cacheid+:} false; then : 15742 $as_echo_n "(cached) " >&6 15743else 15744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15745/* end confdefs.h. */ 15746int i; 15747int 15748main () 15749{ 15750 15751 ; 15752 return 0; 15753} 15754_ACEOF 15755if ac_fn_c_try_link "$LINENO"; then : 15756 eval $cacheid=yes 15757else 15758 eval $cacheid=no 15759fi 15760rm -f core conftest.err conftest.$ac_objext \ 15761 conftest$ac_exeext conftest.$ac_ext 15762fi 15763 15764 15765 CFLAGS="$xorg_testset_save_CFLAGS" 15766 15767 eval supported=\$$cacheid 15768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15769$as_echo "$supported" >&6; } 15770 if test "$supported" = "yes" ; then 15771 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull" 15772 found="yes" 15773 fi 15774 fi 15775 15776 15777 15778 15779 15780 15781 15782 15783 15784 15785 15786 15787 15788 15789 15790xorg_testset_save_CFLAGS="$CFLAGS" 15791 15792if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15793 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15795$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15796if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15797 $as_echo_n "(cached) " >&6 15798else 15799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15800/* end confdefs.h. */ 15801int i; 15802_ACEOF 15803if ac_fn_c_try_compile "$LINENO"; then : 15804 xorg_cv_cc_flag_unknown_warning_option=yes 15805else 15806 xorg_cv_cc_flag_unknown_warning_option=no 15807fi 15808rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15809fi 15810{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15811$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15812 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15813 CFLAGS="$xorg_testset_save_CFLAGS" 15814fi 15815 15816if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15817 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15818 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15819 fi 15820 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15822$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15823if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15824 $as_echo_n "(cached) " >&6 15825else 15826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15827/* end confdefs.h. */ 15828int i; 15829_ACEOF 15830if ac_fn_c_try_compile "$LINENO"; then : 15831 xorg_cv_cc_flag_unused_command_line_argument=yes 15832else 15833 xorg_cv_cc_flag_unused_command_line_argument=no 15834fi 15835rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15836fi 15837{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15838$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15839 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15840 CFLAGS="$xorg_testset_save_CFLAGS" 15841fi 15842 15843found="no" 15844 15845 if test $found = "no" ; then 15846 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 15847 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15848 fi 15849 15850 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 15851 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15852 fi 15853 15854 CFLAGS="$CFLAGS -Winit-self" 15855 15856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5 15857$as_echo_n "checking if $CC supports -Winit-self... " >&6; } 15858 cacheid=xorg_cv_cc_flag__Winit_self 15859 if eval \${$cacheid+:} false; then : 15860 $as_echo_n "(cached) " >&6 15861else 15862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15863/* end confdefs.h. */ 15864int i; 15865int 15866main () 15867{ 15868 15869 ; 15870 return 0; 15871} 15872_ACEOF 15873if ac_fn_c_try_link "$LINENO"; then : 15874 eval $cacheid=yes 15875else 15876 eval $cacheid=no 15877fi 15878rm -f core conftest.err conftest.$ac_objext \ 15879 conftest$ac_exeext conftest.$ac_ext 15880fi 15881 15882 15883 CFLAGS="$xorg_testset_save_CFLAGS" 15884 15885 eval supported=\$$cacheid 15886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15887$as_echo "$supported" >&6; } 15888 if test "$supported" = "yes" ; then 15889 BASE_CFLAGS="$BASE_CFLAGS -Winit-self" 15890 found="yes" 15891 fi 15892 fi 15893 15894 15895 15896 15897 15898 15899 15900 15901 15902 15903 15904 15905 15906 15907 15908xorg_testset_save_CFLAGS="$CFLAGS" 15909 15910if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15911 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15913$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15914if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15915 $as_echo_n "(cached) " >&6 15916else 15917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15918/* end confdefs.h. */ 15919int i; 15920_ACEOF 15921if ac_fn_c_try_compile "$LINENO"; then : 15922 xorg_cv_cc_flag_unknown_warning_option=yes 15923else 15924 xorg_cv_cc_flag_unknown_warning_option=no 15925fi 15926rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15927fi 15928{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15929$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15930 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15931 CFLAGS="$xorg_testset_save_CFLAGS" 15932fi 15933 15934if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15935 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15936 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15937 fi 15938 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15940$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15941if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15942 $as_echo_n "(cached) " >&6 15943else 15944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15945/* end confdefs.h. */ 15946int i; 15947_ACEOF 15948if ac_fn_c_try_compile "$LINENO"; then : 15949 xorg_cv_cc_flag_unused_command_line_argument=yes 15950else 15951 xorg_cv_cc_flag_unused_command_line_argument=no 15952fi 15953rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15954fi 15955{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15956$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15957 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15958 CFLAGS="$xorg_testset_save_CFLAGS" 15959fi 15960 15961found="no" 15962 15963 if test $found = "no" ; then 15964 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 15965 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15966 fi 15967 15968 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 15969 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15970 fi 15971 15972 CFLAGS="$CFLAGS -Wmain" 15973 15974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5 15975$as_echo_n "checking if $CC supports -Wmain... " >&6; } 15976 cacheid=xorg_cv_cc_flag__Wmain 15977 if eval \${$cacheid+:} false; then : 15978 $as_echo_n "(cached) " >&6 15979else 15980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15981/* end confdefs.h. */ 15982int i; 15983int 15984main () 15985{ 15986 15987 ; 15988 return 0; 15989} 15990_ACEOF 15991if ac_fn_c_try_link "$LINENO"; then : 15992 eval $cacheid=yes 15993else 15994 eval $cacheid=no 15995fi 15996rm -f core conftest.err conftest.$ac_objext \ 15997 conftest$ac_exeext conftest.$ac_ext 15998fi 15999 16000 16001 CFLAGS="$xorg_testset_save_CFLAGS" 16002 16003 eval supported=\$$cacheid 16004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16005$as_echo "$supported" >&6; } 16006 if test "$supported" = "yes" ; then 16007 BASE_CFLAGS="$BASE_CFLAGS -Wmain" 16008 found="yes" 16009 fi 16010 fi 16011 16012 16013 16014 16015 16016 16017 16018 16019 16020 16021 16022 16023 16024 16025 16026xorg_testset_save_CFLAGS="$CFLAGS" 16027 16028if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16029 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16031$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16032if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16033 $as_echo_n "(cached) " >&6 16034else 16035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16036/* end confdefs.h. */ 16037int i; 16038_ACEOF 16039if ac_fn_c_try_compile "$LINENO"; then : 16040 xorg_cv_cc_flag_unknown_warning_option=yes 16041else 16042 xorg_cv_cc_flag_unknown_warning_option=no 16043fi 16044rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16045fi 16046{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16047$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16048 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16049 CFLAGS="$xorg_testset_save_CFLAGS" 16050fi 16051 16052if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16053 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16054 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16055 fi 16056 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16058$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16059if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16060 $as_echo_n "(cached) " >&6 16061else 16062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16063/* end confdefs.h. */ 16064int i; 16065_ACEOF 16066if ac_fn_c_try_compile "$LINENO"; then : 16067 xorg_cv_cc_flag_unused_command_line_argument=yes 16068else 16069 xorg_cv_cc_flag_unused_command_line_argument=no 16070fi 16071rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16072fi 16073{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16074$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16075 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16076 CFLAGS="$xorg_testset_save_CFLAGS" 16077fi 16078 16079found="no" 16080 16081 if test $found = "no" ; then 16082 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 16083 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16084 fi 16085 16086 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 16087 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16088 fi 16089 16090 CFLAGS="$CFLAGS -Wmissing-braces" 16091 16092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5 16093$as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; } 16094 cacheid=xorg_cv_cc_flag__Wmissing_braces 16095 if eval \${$cacheid+:} false; then : 16096 $as_echo_n "(cached) " >&6 16097else 16098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16099/* end confdefs.h. */ 16100int i; 16101int 16102main () 16103{ 16104 16105 ; 16106 return 0; 16107} 16108_ACEOF 16109if ac_fn_c_try_link "$LINENO"; then : 16110 eval $cacheid=yes 16111else 16112 eval $cacheid=no 16113fi 16114rm -f core conftest.err conftest.$ac_objext \ 16115 conftest$ac_exeext conftest.$ac_ext 16116fi 16117 16118 16119 CFLAGS="$xorg_testset_save_CFLAGS" 16120 16121 eval supported=\$$cacheid 16122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16123$as_echo "$supported" >&6; } 16124 if test "$supported" = "yes" ; then 16125 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces" 16126 found="yes" 16127 fi 16128 fi 16129 16130 16131 16132 16133 16134 16135 16136 16137 16138 16139 16140 16141 16142 16143 16144xorg_testset_save_CFLAGS="$CFLAGS" 16145 16146if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16147 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16149$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16150if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16151 $as_echo_n "(cached) " >&6 16152else 16153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16154/* end confdefs.h. */ 16155int i; 16156_ACEOF 16157if ac_fn_c_try_compile "$LINENO"; then : 16158 xorg_cv_cc_flag_unknown_warning_option=yes 16159else 16160 xorg_cv_cc_flag_unknown_warning_option=no 16161fi 16162rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16163fi 16164{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16165$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16166 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16167 CFLAGS="$xorg_testset_save_CFLAGS" 16168fi 16169 16170if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16171 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16172 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16173 fi 16174 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16176$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16177if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16178 $as_echo_n "(cached) " >&6 16179else 16180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16181/* end confdefs.h. */ 16182int i; 16183_ACEOF 16184if ac_fn_c_try_compile "$LINENO"; then : 16185 xorg_cv_cc_flag_unused_command_line_argument=yes 16186else 16187 xorg_cv_cc_flag_unused_command_line_argument=no 16188fi 16189rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16190fi 16191{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16192$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16193 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16194 CFLAGS="$xorg_testset_save_CFLAGS" 16195fi 16196 16197found="no" 16198 16199 if test $found = "no" ; then 16200 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 16201 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16202 fi 16203 16204 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 16205 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16206 fi 16207 16208 CFLAGS="$CFLAGS -Wsequence-point" 16209 16210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5 16211$as_echo_n "checking if $CC supports -Wsequence-point... " >&6; } 16212 cacheid=xorg_cv_cc_flag__Wsequence_point 16213 if eval \${$cacheid+:} false; then : 16214 $as_echo_n "(cached) " >&6 16215else 16216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16217/* end confdefs.h. */ 16218int i; 16219int 16220main () 16221{ 16222 16223 ; 16224 return 0; 16225} 16226_ACEOF 16227if ac_fn_c_try_link "$LINENO"; then : 16228 eval $cacheid=yes 16229else 16230 eval $cacheid=no 16231fi 16232rm -f core conftest.err conftest.$ac_objext \ 16233 conftest$ac_exeext conftest.$ac_ext 16234fi 16235 16236 16237 CFLAGS="$xorg_testset_save_CFLAGS" 16238 16239 eval supported=\$$cacheid 16240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16241$as_echo "$supported" >&6; } 16242 if test "$supported" = "yes" ; then 16243 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point" 16244 found="yes" 16245 fi 16246 fi 16247 16248 16249 16250 16251 16252 16253 16254 16255 16256 16257 16258 16259 16260 16261 16262xorg_testset_save_CFLAGS="$CFLAGS" 16263 16264if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16265 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16267$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16268if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16269 $as_echo_n "(cached) " >&6 16270else 16271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16272/* end confdefs.h. */ 16273int i; 16274_ACEOF 16275if ac_fn_c_try_compile "$LINENO"; then : 16276 xorg_cv_cc_flag_unknown_warning_option=yes 16277else 16278 xorg_cv_cc_flag_unknown_warning_option=no 16279fi 16280rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16281fi 16282{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16283$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16284 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16285 CFLAGS="$xorg_testset_save_CFLAGS" 16286fi 16287 16288if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16289 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16290 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16291 fi 16292 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16294$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16295if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16296 $as_echo_n "(cached) " >&6 16297else 16298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16299/* end confdefs.h. */ 16300int i; 16301_ACEOF 16302if ac_fn_c_try_compile "$LINENO"; then : 16303 xorg_cv_cc_flag_unused_command_line_argument=yes 16304else 16305 xorg_cv_cc_flag_unused_command_line_argument=no 16306fi 16307rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16308fi 16309{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16310$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16311 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16312 CFLAGS="$xorg_testset_save_CFLAGS" 16313fi 16314 16315found="no" 16316 16317 if test $found = "no" ; then 16318 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 16319 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16320 fi 16321 16322 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 16323 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16324 fi 16325 16326 CFLAGS="$CFLAGS -Wreturn-type" 16327 16328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5 16329$as_echo_n "checking if $CC supports -Wreturn-type... " >&6; } 16330 cacheid=xorg_cv_cc_flag__Wreturn_type 16331 if eval \${$cacheid+:} false; then : 16332 $as_echo_n "(cached) " >&6 16333else 16334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16335/* end confdefs.h. */ 16336int i; 16337int 16338main () 16339{ 16340 16341 ; 16342 return 0; 16343} 16344_ACEOF 16345if ac_fn_c_try_link "$LINENO"; then : 16346 eval $cacheid=yes 16347else 16348 eval $cacheid=no 16349fi 16350rm -f core conftest.err conftest.$ac_objext \ 16351 conftest$ac_exeext conftest.$ac_ext 16352fi 16353 16354 16355 CFLAGS="$xorg_testset_save_CFLAGS" 16356 16357 eval supported=\$$cacheid 16358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16359$as_echo "$supported" >&6; } 16360 if test "$supported" = "yes" ; then 16361 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type" 16362 found="yes" 16363 fi 16364 fi 16365 16366 16367 16368 16369 16370 16371 16372 16373 16374 16375 16376 16377 16378 16379 16380xorg_testset_save_CFLAGS="$CFLAGS" 16381 16382if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16383 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16385$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16386if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16387 $as_echo_n "(cached) " >&6 16388else 16389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16390/* end confdefs.h. */ 16391int i; 16392_ACEOF 16393if ac_fn_c_try_compile "$LINENO"; then : 16394 xorg_cv_cc_flag_unknown_warning_option=yes 16395else 16396 xorg_cv_cc_flag_unknown_warning_option=no 16397fi 16398rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16399fi 16400{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16401$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16402 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16403 CFLAGS="$xorg_testset_save_CFLAGS" 16404fi 16405 16406if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16407 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16408 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16409 fi 16410 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16412$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16413if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16414 $as_echo_n "(cached) " >&6 16415else 16416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16417/* end confdefs.h. */ 16418int i; 16419_ACEOF 16420if ac_fn_c_try_compile "$LINENO"; then : 16421 xorg_cv_cc_flag_unused_command_line_argument=yes 16422else 16423 xorg_cv_cc_flag_unused_command_line_argument=no 16424fi 16425rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16426fi 16427{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16428$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16429 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16430 CFLAGS="$xorg_testset_save_CFLAGS" 16431fi 16432 16433found="no" 16434 16435 if test $found = "no" ; then 16436 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 16437 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16438 fi 16439 16440 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 16441 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16442 fi 16443 16444 CFLAGS="$CFLAGS -Wtrigraphs" 16445 16446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5 16447$as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; } 16448 cacheid=xorg_cv_cc_flag__Wtrigraphs 16449 if eval \${$cacheid+:} false; then : 16450 $as_echo_n "(cached) " >&6 16451else 16452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16453/* end confdefs.h. */ 16454int i; 16455int 16456main () 16457{ 16458 16459 ; 16460 return 0; 16461} 16462_ACEOF 16463if ac_fn_c_try_link "$LINENO"; then : 16464 eval $cacheid=yes 16465else 16466 eval $cacheid=no 16467fi 16468rm -f core conftest.err conftest.$ac_objext \ 16469 conftest$ac_exeext conftest.$ac_ext 16470fi 16471 16472 16473 CFLAGS="$xorg_testset_save_CFLAGS" 16474 16475 eval supported=\$$cacheid 16476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16477$as_echo "$supported" >&6; } 16478 if test "$supported" = "yes" ; then 16479 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs" 16480 found="yes" 16481 fi 16482 fi 16483 16484 16485 16486 16487 16488 16489 16490 16491 16492 16493 16494 16495 16496 16497 16498xorg_testset_save_CFLAGS="$CFLAGS" 16499 16500if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16501 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16503$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16504if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16505 $as_echo_n "(cached) " >&6 16506else 16507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16508/* end confdefs.h. */ 16509int i; 16510_ACEOF 16511if ac_fn_c_try_compile "$LINENO"; then : 16512 xorg_cv_cc_flag_unknown_warning_option=yes 16513else 16514 xorg_cv_cc_flag_unknown_warning_option=no 16515fi 16516rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16517fi 16518{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16519$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16520 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16521 CFLAGS="$xorg_testset_save_CFLAGS" 16522fi 16523 16524if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16525 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16526 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16527 fi 16528 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16530$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16531if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16532 $as_echo_n "(cached) " >&6 16533else 16534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16535/* end confdefs.h. */ 16536int i; 16537_ACEOF 16538if ac_fn_c_try_compile "$LINENO"; then : 16539 xorg_cv_cc_flag_unused_command_line_argument=yes 16540else 16541 xorg_cv_cc_flag_unused_command_line_argument=no 16542fi 16543rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16544fi 16545{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16546$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16547 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16548 CFLAGS="$xorg_testset_save_CFLAGS" 16549fi 16550 16551found="no" 16552 16553 if test $found = "no" ; then 16554 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 16555 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16556 fi 16557 16558 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 16559 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16560 fi 16561 16562 CFLAGS="$CFLAGS -Warray-bounds" 16563 16564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5 16565$as_echo_n "checking if $CC supports -Warray-bounds... " >&6; } 16566 cacheid=xorg_cv_cc_flag__Warray_bounds 16567 if eval \${$cacheid+:} false; then : 16568 $as_echo_n "(cached) " >&6 16569else 16570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16571/* end confdefs.h. */ 16572int i; 16573int 16574main () 16575{ 16576 16577 ; 16578 return 0; 16579} 16580_ACEOF 16581if ac_fn_c_try_link "$LINENO"; then : 16582 eval $cacheid=yes 16583else 16584 eval $cacheid=no 16585fi 16586rm -f core conftest.err conftest.$ac_objext \ 16587 conftest$ac_exeext conftest.$ac_ext 16588fi 16589 16590 16591 CFLAGS="$xorg_testset_save_CFLAGS" 16592 16593 eval supported=\$$cacheid 16594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16595$as_echo "$supported" >&6; } 16596 if test "$supported" = "yes" ; then 16597 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds" 16598 found="yes" 16599 fi 16600 fi 16601 16602 16603 16604 16605 16606 16607 16608 16609 16610 16611 16612 16613 16614 16615 16616xorg_testset_save_CFLAGS="$CFLAGS" 16617 16618if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16619 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16621$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16622if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16623 $as_echo_n "(cached) " >&6 16624else 16625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16626/* end confdefs.h. */ 16627int i; 16628_ACEOF 16629if ac_fn_c_try_compile "$LINENO"; then : 16630 xorg_cv_cc_flag_unknown_warning_option=yes 16631else 16632 xorg_cv_cc_flag_unknown_warning_option=no 16633fi 16634rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16635fi 16636{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16637$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16638 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16639 CFLAGS="$xorg_testset_save_CFLAGS" 16640fi 16641 16642if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16643 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16644 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16645 fi 16646 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16648$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16649if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16650 $as_echo_n "(cached) " >&6 16651else 16652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16653/* end confdefs.h. */ 16654int i; 16655_ACEOF 16656if ac_fn_c_try_compile "$LINENO"; then : 16657 xorg_cv_cc_flag_unused_command_line_argument=yes 16658else 16659 xorg_cv_cc_flag_unused_command_line_argument=no 16660fi 16661rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16662fi 16663{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16664$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16665 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16666 CFLAGS="$xorg_testset_save_CFLAGS" 16667fi 16668 16669found="no" 16670 16671 if test $found = "no" ; then 16672 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 16673 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16674 fi 16675 16676 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 16677 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16678 fi 16679 16680 CFLAGS="$CFLAGS -Wwrite-strings" 16681 16682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5 16683$as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; } 16684 cacheid=xorg_cv_cc_flag__Wwrite_strings 16685 if eval \${$cacheid+:} false; then : 16686 $as_echo_n "(cached) " >&6 16687else 16688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16689/* end confdefs.h. */ 16690int i; 16691int 16692main () 16693{ 16694 16695 ; 16696 return 0; 16697} 16698_ACEOF 16699if ac_fn_c_try_link "$LINENO"; then : 16700 eval $cacheid=yes 16701else 16702 eval $cacheid=no 16703fi 16704rm -f core conftest.err conftest.$ac_objext \ 16705 conftest$ac_exeext conftest.$ac_ext 16706fi 16707 16708 16709 CFLAGS="$xorg_testset_save_CFLAGS" 16710 16711 eval supported=\$$cacheid 16712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16713$as_echo "$supported" >&6; } 16714 if test "$supported" = "yes" ; then 16715 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings" 16716 found="yes" 16717 fi 16718 fi 16719 16720 16721 16722 16723 16724 16725 16726 16727 16728 16729 16730 16731 16732 16733 16734xorg_testset_save_CFLAGS="$CFLAGS" 16735 16736if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16737 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16739$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16740if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16741 $as_echo_n "(cached) " >&6 16742else 16743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16744/* end confdefs.h. */ 16745int i; 16746_ACEOF 16747if ac_fn_c_try_compile "$LINENO"; then : 16748 xorg_cv_cc_flag_unknown_warning_option=yes 16749else 16750 xorg_cv_cc_flag_unknown_warning_option=no 16751fi 16752rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16753fi 16754{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16755$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16756 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16757 CFLAGS="$xorg_testset_save_CFLAGS" 16758fi 16759 16760if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16761 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16762 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16763 fi 16764 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16766$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16767if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16768 $as_echo_n "(cached) " >&6 16769else 16770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16771/* end confdefs.h. */ 16772int i; 16773_ACEOF 16774if ac_fn_c_try_compile "$LINENO"; then : 16775 xorg_cv_cc_flag_unused_command_line_argument=yes 16776else 16777 xorg_cv_cc_flag_unused_command_line_argument=no 16778fi 16779rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16780fi 16781{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16782$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16783 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16784 CFLAGS="$xorg_testset_save_CFLAGS" 16785fi 16786 16787found="no" 16788 16789 if test $found = "no" ; then 16790 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 16791 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16792 fi 16793 16794 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 16795 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16796 fi 16797 16798 CFLAGS="$CFLAGS -Waddress" 16799 16800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5 16801$as_echo_n "checking if $CC supports -Waddress... " >&6; } 16802 cacheid=xorg_cv_cc_flag__Waddress 16803 if eval \${$cacheid+:} false; then : 16804 $as_echo_n "(cached) " >&6 16805else 16806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16807/* end confdefs.h. */ 16808int i; 16809int 16810main () 16811{ 16812 16813 ; 16814 return 0; 16815} 16816_ACEOF 16817if ac_fn_c_try_link "$LINENO"; then : 16818 eval $cacheid=yes 16819else 16820 eval $cacheid=no 16821fi 16822rm -f core conftest.err conftest.$ac_objext \ 16823 conftest$ac_exeext conftest.$ac_ext 16824fi 16825 16826 16827 CFLAGS="$xorg_testset_save_CFLAGS" 16828 16829 eval supported=\$$cacheid 16830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16831$as_echo "$supported" >&6; } 16832 if test "$supported" = "yes" ; then 16833 BASE_CFLAGS="$BASE_CFLAGS -Waddress" 16834 found="yes" 16835 fi 16836 fi 16837 16838 16839 16840 16841 16842 16843 16844 16845 16846 16847 16848 16849 16850 16851 16852xorg_testset_save_CFLAGS="$CFLAGS" 16853 16854if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16855 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16857$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16858if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16859 $as_echo_n "(cached) " >&6 16860else 16861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16862/* end confdefs.h. */ 16863int i; 16864_ACEOF 16865if ac_fn_c_try_compile "$LINENO"; then : 16866 xorg_cv_cc_flag_unknown_warning_option=yes 16867else 16868 xorg_cv_cc_flag_unknown_warning_option=no 16869fi 16870rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16871fi 16872{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16873$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16874 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16875 CFLAGS="$xorg_testset_save_CFLAGS" 16876fi 16877 16878if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16879 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16880 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16881 fi 16882 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16884$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16885if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16886 $as_echo_n "(cached) " >&6 16887else 16888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16889/* end confdefs.h. */ 16890int i; 16891_ACEOF 16892if ac_fn_c_try_compile "$LINENO"; then : 16893 xorg_cv_cc_flag_unused_command_line_argument=yes 16894else 16895 xorg_cv_cc_flag_unused_command_line_argument=no 16896fi 16897rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16898fi 16899{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16900$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16901 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16902 CFLAGS="$xorg_testset_save_CFLAGS" 16903fi 16904 16905found="no" 16906 16907 if test $found = "no" ; then 16908 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 16909 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16910 fi 16911 16912 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 16913 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16914 fi 16915 16916 CFLAGS="$CFLAGS -Wint-to-pointer-cast" 16917 16918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5 16919$as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; } 16920 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast 16921 if eval \${$cacheid+:} false; then : 16922 $as_echo_n "(cached) " >&6 16923else 16924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16925/* end confdefs.h. */ 16926int i; 16927int 16928main () 16929{ 16930 16931 ; 16932 return 0; 16933} 16934_ACEOF 16935if ac_fn_c_try_link "$LINENO"; then : 16936 eval $cacheid=yes 16937else 16938 eval $cacheid=no 16939fi 16940rm -f core conftest.err conftest.$ac_objext \ 16941 conftest$ac_exeext conftest.$ac_ext 16942fi 16943 16944 16945 CFLAGS="$xorg_testset_save_CFLAGS" 16946 16947 eval supported=\$$cacheid 16948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16949$as_echo "$supported" >&6; } 16950 if test "$supported" = "yes" ; then 16951 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast" 16952 found="yes" 16953 fi 16954 fi 16955 16956 16957 16958 16959 16960 16961 16962 16963 16964 16965 16966 16967 16968 16969 16970xorg_testset_save_CFLAGS="$CFLAGS" 16971 16972if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16973 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16975$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16976if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16977 $as_echo_n "(cached) " >&6 16978else 16979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16980/* end confdefs.h. */ 16981int i; 16982_ACEOF 16983if ac_fn_c_try_compile "$LINENO"; then : 16984 xorg_cv_cc_flag_unknown_warning_option=yes 16985else 16986 xorg_cv_cc_flag_unknown_warning_option=no 16987fi 16988rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16989fi 16990{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16991$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16992 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16993 CFLAGS="$xorg_testset_save_CFLAGS" 16994fi 16995 16996if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16997 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16998 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16999 fi 17000 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17002$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17003if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 17004 $as_echo_n "(cached) " >&6 17005else 17006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17007/* end confdefs.h. */ 17008int i; 17009_ACEOF 17010if ac_fn_c_try_compile "$LINENO"; then : 17011 xorg_cv_cc_flag_unused_command_line_argument=yes 17012else 17013 xorg_cv_cc_flag_unused_command_line_argument=no 17014fi 17015rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17016fi 17017{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17018$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17019 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17020 CFLAGS="$xorg_testset_save_CFLAGS" 17021fi 17022 17023found="no" 17024 17025 if test $found = "no" ; then 17026 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 17027 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17028 fi 17029 17030 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 17031 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17032 fi 17033 17034 CFLAGS="$CFLAGS -Wpointer-to-int-cast" 17035 17036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5 17037$as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; } 17038 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast 17039 if eval \${$cacheid+:} false; then : 17040 $as_echo_n "(cached) " >&6 17041else 17042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17043/* end confdefs.h. */ 17044int i; 17045int 17046main () 17047{ 17048 17049 ; 17050 return 0; 17051} 17052_ACEOF 17053if ac_fn_c_try_link "$LINENO"; then : 17054 eval $cacheid=yes 17055else 17056 eval $cacheid=no 17057fi 17058rm -f core conftest.err conftest.$ac_objext \ 17059 conftest$ac_exeext conftest.$ac_ext 17060fi 17061 17062 17063 CFLAGS="$xorg_testset_save_CFLAGS" 17064 17065 eval supported=\$$cacheid 17066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17067$as_echo "$supported" >&6; } 17068 if test "$supported" = "yes" ; then 17069 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast" 17070 found="yes" 17071 fi 17072 fi 17073 17074 17075fi 17076 17077 17078 17079 17080 17081 17082 17083 CWARNFLAGS="$BASE_CFLAGS" 17084 if test "x$GCC" = xyes ; then 17085 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing" 17086 fi 17087 17088 17089 17090 17091 17092 17093 17094 17095# Check whether --enable-strict-compilation was given. 17096if test "${enable_strict_compilation+set}" = set; then : 17097 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 17098else 17099 STRICT_COMPILE=no 17100fi 17101 17102 17103 17104 17105 17106 17107STRICT_CFLAGS="" 17108 17109 17110 17111 17112 17113 17114 17115 17116 17117 17118 17119 17120 17121xorg_testset_save_CFLAGS="$CFLAGS" 17122 17123if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17124 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17126$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17127if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 17128 $as_echo_n "(cached) " >&6 17129else 17130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17131/* end confdefs.h. */ 17132int i; 17133_ACEOF 17134if ac_fn_c_try_compile "$LINENO"; then : 17135 xorg_cv_cc_flag_unknown_warning_option=yes 17136else 17137 xorg_cv_cc_flag_unknown_warning_option=no 17138fi 17139rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17140fi 17141{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17142$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17143 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17144 CFLAGS="$xorg_testset_save_CFLAGS" 17145fi 17146 17147if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17148 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17149 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17150 fi 17151 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17153$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17154if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 17155 $as_echo_n "(cached) " >&6 17156else 17157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17158/* end confdefs.h. */ 17159int i; 17160_ACEOF 17161if ac_fn_c_try_compile "$LINENO"; then : 17162 xorg_cv_cc_flag_unused_command_line_argument=yes 17163else 17164 xorg_cv_cc_flag_unused_command_line_argument=no 17165fi 17166rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17167fi 17168{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17169$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17170 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17171 CFLAGS="$xorg_testset_save_CFLAGS" 17172fi 17173 17174found="no" 17175 17176 if test $found = "no" ; then 17177 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 17178 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17179 fi 17180 17181 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 17182 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17183 fi 17184 17185 CFLAGS="$CFLAGS -pedantic" 17186 17187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5 17188$as_echo_n "checking if $CC supports -pedantic... " >&6; } 17189 cacheid=xorg_cv_cc_flag__pedantic 17190 if eval \${$cacheid+:} false; then : 17191 $as_echo_n "(cached) " >&6 17192else 17193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17194/* end confdefs.h. */ 17195int i; 17196int 17197main () 17198{ 17199 17200 ; 17201 return 0; 17202} 17203_ACEOF 17204if ac_fn_c_try_link "$LINENO"; then : 17205 eval $cacheid=yes 17206else 17207 eval $cacheid=no 17208fi 17209rm -f core conftest.err conftest.$ac_objext \ 17210 conftest$ac_exeext conftest.$ac_ext 17211fi 17212 17213 17214 CFLAGS="$xorg_testset_save_CFLAGS" 17215 17216 eval supported=\$$cacheid 17217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17218$as_echo "$supported" >&6; } 17219 if test "$supported" = "yes" ; then 17220 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic" 17221 found="yes" 17222 fi 17223 fi 17224 17225 17226 17227 17228 17229 17230 17231 17232 17233 17234 17235 17236 17237 17238 17239xorg_testset_save_CFLAGS="$CFLAGS" 17240 17241if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17242 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17244$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17245if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 17246 $as_echo_n "(cached) " >&6 17247else 17248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17249/* end confdefs.h. */ 17250int i; 17251_ACEOF 17252if ac_fn_c_try_compile "$LINENO"; then : 17253 xorg_cv_cc_flag_unknown_warning_option=yes 17254else 17255 xorg_cv_cc_flag_unknown_warning_option=no 17256fi 17257rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17258fi 17259{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17260$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17261 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17262 CFLAGS="$xorg_testset_save_CFLAGS" 17263fi 17264 17265if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17266 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17267 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17268 fi 17269 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17271$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17272if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 17273 $as_echo_n "(cached) " >&6 17274else 17275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17276/* end confdefs.h. */ 17277int i; 17278_ACEOF 17279if ac_fn_c_try_compile "$LINENO"; then : 17280 xorg_cv_cc_flag_unused_command_line_argument=yes 17281else 17282 xorg_cv_cc_flag_unused_command_line_argument=no 17283fi 17284rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17285fi 17286{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17287$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17288 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17289 CFLAGS="$xorg_testset_save_CFLAGS" 17290fi 17291 17292found="no" 17293 17294 if test $found = "no" ; then 17295 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 17296 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17297 fi 17298 17299 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 17300 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17301 fi 17302 17303 CFLAGS="$CFLAGS -Werror" 17304 17305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5 17306$as_echo_n "checking if $CC supports -Werror... " >&6; } 17307 cacheid=xorg_cv_cc_flag__Werror 17308 if eval \${$cacheid+:} false; then : 17309 $as_echo_n "(cached) " >&6 17310else 17311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17312/* end confdefs.h. */ 17313int i; 17314int 17315main () 17316{ 17317 17318 ; 17319 return 0; 17320} 17321_ACEOF 17322if ac_fn_c_try_link "$LINENO"; then : 17323 eval $cacheid=yes 17324else 17325 eval $cacheid=no 17326fi 17327rm -f core conftest.err conftest.$ac_objext \ 17328 conftest$ac_exeext conftest.$ac_ext 17329fi 17330 17331 17332 CFLAGS="$xorg_testset_save_CFLAGS" 17333 17334 eval supported=\$$cacheid 17335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17336$as_echo "$supported" >&6; } 17337 if test "$supported" = "yes" ; then 17338 STRICT_CFLAGS="$STRICT_CFLAGS -Werror" 17339 found="yes" 17340 fi 17341 fi 17342 17343 if test $found = "no" ; then 17344 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 17345 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17346 fi 17347 17348 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 17349 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17350 fi 17351 17352 CFLAGS="$CFLAGS -errwarn" 17353 17354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5 17355$as_echo_n "checking if $CC supports -errwarn... " >&6; } 17356 cacheid=xorg_cv_cc_flag__errwarn 17357 if eval \${$cacheid+:} false; then : 17358 $as_echo_n "(cached) " >&6 17359else 17360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17361/* end confdefs.h. */ 17362int i; 17363int 17364main () 17365{ 17366 17367 ; 17368 return 0; 17369} 17370_ACEOF 17371if ac_fn_c_try_link "$LINENO"; then : 17372 eval $cacheid=yes 17373else 17374 eval $cacheid=no 17375fi 17376rm -f core conftest.err conftest.$ac_objext \ 17377 conftest$ac_exeext conftest.$ac_ext 17378fi 17379 17380 17381 CFLAGS="$xorg_testset_save_CFLAGS" 17382 17383 eval supported=\$$cacheid 17384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17385$as_echo "$supported" >&6; } 17386 if test "$supported" = "yes" ; then 17387 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn" 17388 found="yes" 17389 fi 17390 fi 17391 17392 17393 17394# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not 17395# activate it with -Werror, so we add it here explicitly. 17396 17397 17398 17399 17400 17401 17402 17403 17404 17405 17406 17407 17408 17409xorg_testset_save_CFLAGS="$CFLAGS" 17410 17411if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17412 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17414$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17415if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 17416 $as_echo_n "(cached) " >&6 17417else 17418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17419/* end confdefs.h. */ 17420int i; 17421_ACEOF 17422if ac_fn_c_try_compile "$LINENO"; then : 17423 xorg_cv_cc_flag_unknown_warning_option=yes 17424else 17425 xorg_cv_cc_flag_unknown_warning_option=no 17426fi 17427rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17428fi 17429{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17430$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17431 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17432 CFLAGS="$xorg_testset_save_CFLAGS" 17433fi 17434 17435if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17436 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17437 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17438 fi 17439 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17441$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17442if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 17443 $as_echo_n "(cached) " >&6 17444else 17445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17446/* end confdefs.h. */ 17447int i; 17448_ACEOF 17449if ac_fn_c_try_compile "$LINENO"; then : 17450 xorg_cv_cc_flag_unused_command_line_argument=yes 17451else 17452 xorg_cv_cc_flag_unused_command_line_argument=no 17453fi 17454rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17455fi 17456{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17457$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17458 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17459 CFLAGS="$xorg_testset_save_CFLAGS" 17460fi 17461 17462found="no" 17463 17464 if test $found = "no" ; then 17465 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 17466 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17467 fi 17468 17469 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 17470 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17471 fi 17472 17473 CFLAGS="$CFLAGS -Werror=attributes" 17474 17475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5 17476$as_echo_n "checking if $CC supports -Werror=attributes... " >&6; } 17477 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=attributes" | $as_tr_sh` 17478 if eval \${$cacheid+:} false; then : 17479 $as_echo_n "(cached) " >&6 17480else 17481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17482/* end confdefs.h. */ 17483int i; 17484int 17485main () 17486{ 17487 17488 ; 17489 return 0; 17490} 17491_ACEOF 17492if ac_fn_c_try_link "$LINENO"; then : 17493 eval $cacheid=yes 17494else 17495 eval $cacheid=no 17496fi 17497rm -f core conftest.err conftest.$ac_objext \ 17498 conftest$ac_exeext conftest.$ac_ext 17499fi 17500 17501 17502 CFLAGS="$xorg_testset_save_CFLAGS" 17503 17504 eval supported=\$$cacheid 17505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17506$as_echo "$supported" >&6; } 17507 if test "$supported" = "yes" ; then 17508 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes" 17509 found="yes" 17510 fi 17511 fi 17512 17513 17514 17515if test "x$STRICT_COMPILE" = "xyes"; then 17516 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS" 17517 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 17518fi 17519 17520 17521 17522 17523 17524 17525cat >>confdefs.h <<_ACEOF 17526#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 17527_ACEOF 17528 17529 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 17530 if test "x$PVM" = "x"; then 17531 PVM="0" 17532 fi 17533 17534cat >>confdefs.h <<_ACEOF 17535#define PACKAGE_VERSION_MINOR $PVM 17536_ACEOF 17537 17538 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 17539 if test "x$PVP" = "x"; then 17540 PVP="0" 17541 fi 17542 17543cat >>confdefs.h <<_ACEOF 17544#define PACKAGE_VERSION_PATCHLEVEL $PVP 17545_ACEOF 17546 17547 17548 17549CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \ 17550mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 17551|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \ 17552echo 'git directory not found: installing possibly empty changelog.' >&2)" 17553 17554 17555 17556 17557macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros` 17558INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \ 17559mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \ 17560|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \ 17561echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)" 17562 17563 17564 17565 17566 17567 17568if test x$APP_MAN_SUFFIX = x ; then 17569 APP_MAN_SUFFIX=1 17570fi 17571if test x$APP_MAN_DIR = x ; then 17572 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 17573fi 17574 17575if test x$LIB_MAN_SUFFIX = x ; then 17576 LIB_MAN_SUFFIX=3 17577fi 17578if test x$LIB_MAN_DIR = x ; then 17579 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 17580fi 17581 17582if test x$FILE_MAN_SUFFIX = x ; then 17583 case $host_os in 17584 solaris*) FILE_MAN_SUFFIX=4 ;; 17585 *) FILE_MAN_SUFFIX=5 ;; 17586 esac 17587fi 17588if test x$FILE_MAN_DIR = x ; then 17589 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 17590fi 17591 17592if test x$MISC_MAN_SUFFIX = x ; then 17593 case $host_os in 17594 solaris*) MISC_MAN_SUFFIX=5 ;; 17595 *) MISC_MAN_SUFFIX=7 ;; 17596 esac 17597fi 17598if test x$MISC_MAN_DIR = x ; then 17599 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 17600fi 17601 17602if test x$DRIVER_MAN_SUFFIX = x ; then 17603 case $host_os in 17604 solaris*) DRIVER_MAN_SUFFIX=7 ;; 17605 *) DRIVER_MAN_SUFFIX=4 ;; 17606 esac 17607fi 17608if test x$DRIVER_MAN_DIR = x ; then 17609 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 17610fi 17611 17612if test x$ADMIN_MAN_SUFFIX = x ; then 17613 case $host_os in 17614 solaris*) ADMIN_MAN_SUFFIX=1m ;; 17615 *) ADMIN_MAN_SUFFIX=8 ;; 17616 esac 17617fi 17618if test x$ADMIN_MAN_DIR = x ; then 17619 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 17620fi 17621 17622 17623 17624 17625 17626 17627 17628 17629 17630 17631 17632 17633 17634 17635 17636XORG_MAN_PAGE="X Version 11" 17637 17638MAN_SUBSTS="\ 17639 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 17640 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 17641 -e 's|__xservername__|Xorg|g' \ 17642 -e 's|__xconfigfile__|xorg.conf|g' \ 17643 -e 's|__projectroot__|\$(prefix)|g' \ 17644 -e 's|__apploaddir__|\$(appdefaultdir)|g' \ 17645 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \ 17646 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \ 17647 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \ 17648 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \ 17649 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \ 17650 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'" 17651 17652 17653 17654# Check whether --enable-silent-rules was given. 17655if test "${enable_silent_rules+set}" = set; then : 17656 enableval=$enable_silent_rules; 17657fi 17658 17659case $enable_silent_rules in # ((( 17660 yes) AM_DEFAULT_VERBOSITY=0;; 17661 no) AM_DEFAULT_VERBOSITY=1;; 17662 *) AM_DEFAULT_VERBOSITY=0;; 17663esac 17664am_make=${MAKE-make} 17665{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 17666$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 17667if ${am_cv_make_support_nested_variables+:} false; then : 17668 $as_echo_n "(cached) " >&6 17669else 17670 if $as_echo 'TRUE=$(BAR$(V)) 17671BAR0=false 17672BAR1=true 17673V=1 17674am__doit: 17675 @$(TRUE) 17676.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 17677 am_cv_make_support_nested_variables=yes 17678else 17679 am_cv_make_support_nested_variables=no 17680fi 17681fi 17682{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 17683$as_echo "$am_cv_make_support_nested_variables" >&6; } 17684if test $am_cv_make_support_nested_variables = yes; then 17685 AM_V='$(V)' 17686 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 17687else 17688 AM_V=$AM_DEFAULT_VERBOSITY 17689 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 17690fi 17691AM_BACKSLASH='\' 17692 17693 17694 17695 17696# Check whether --enable-specs was given. 17697if test "${enable_specs+set}" = set; then : 17698 enableval=$enable_specs; build_specs=$enableval 17699else 17700 build_specs=yes 17701fi 17702 17703 17704 if test x$build_specs = xyes; then 17705 ENABLE_SPECS_TRUE= 17706 ENABLE_SPECS_FALSE='#' 17707else 17708 ENABLE_SPECS_TRUE='#' 17709 ENABLE_SPECS_FALSE= 17710fi 17711 17712{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build functional specifications" >&5 17713$as_echo_n "checking whether to build functional specifications... " >&6; } 17714{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $build_specs" >&5 17715$as_echo "$build_specs" >&6; } 17716 17717 17718 17719 17720 17721# Check whether --with-xmlto was given. 17722if test "${with_xmlto+set}" = set; then : 17723 withval=$with_xmlto; use_xmlto=$withval 17724else 17725 use_xmlto=auto 17726fi 17727 17728 17729 17730if test "x$use_xmlto" = x"auto"; then 17731 # Extract the first word of "xmlto", so it can be a program name with args. 17732set dummy xmlto; ac_word=$2 17733{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17734$as_echo_n "checking for $ac_word... " >&6; } 17735if ${ac_cv_path_XMLTO+:} false; then : 17736 $as_echo_n "(cached) " >&6 17737else 17738 case $XMLTO in 17739 [\\/]* | ?:[\\/]*) 17740 ac_cv_path_XMLTO="$XMLTO" # Let the user override the test with a path. 17741 ;; 17742 *) 17743 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17744for as_dir in $PATH 17745do 17746 IFS=$as_save_IFS 17747 test -z "$as_dir" && as_dir=. 17748 for ac_exec_ext in '' $ac_executable_extensions; do 17749 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 17750 ac_cv_path_XMLTO="$as_dir/$ac_word$ac_exec_ext" 17751 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17752 break 2 17753 fi 17754done 17755 done 17756IFS=$as_save_IFS 17757 17758 ;; 17759esac 17760fi 17761XMLTO=$ac_cv_path_XMLTO 17762if test -n "$XMLTO"; then 17763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMLTO" >&5 17764$as_echo "$XMLTO" >&6; } 17765else 17766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17767$as_echo "no" >&6; } 17768fi 17769 17770 17771 if test "x$XMLTO" = "x"; then 17772 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xmlto not found - documentation targets will be skipped" >&5 17773$as_echo "$as_me: WARNING: xmlto not found - documentation targets will be skipped" >&2;} 17774 have_xmlto=no 17775 else 17776 have_xmlto=yes 17777 fi 17778elif test "x$use_xmlto" = x"yes" ; then 17779 # Extract the first word of "xmlto", so it can be a program name with args. 17780set dummy xmlto; ac_word=$2 17781{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17782$as_echo_n "checking for $ac_word... " >&6; } 17783if ${ac_cv_path_XMLTO+:} false; then : 17784 $as_echo_n "(cached) " >&6 17785else 17786 case $XMLTO in 17787 [\\/]* | ?:[\\/]*) 17788 ac_cv_path_XMLTO="$XMLTO" # Let the user override the test with a path. 17789 ;; 17790 *) 17791 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17792for as_dir in $PATH 17793do 17794 IFS=$as_save_IFS 17795 test -z "$as_dir" && as_dir=. 17796 for ac_exec_ext in '' $ac_executable_extensions; do 17797 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 17798 ac_cv_path_XMLTO="$as_dir/$ac_word$ac_exec_ext" 17799 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17800 break 2 17801 fi 17802done 17803 done 17804IFS=$as_save_IFS 17805 17806 ;; 17807esac 17808fi 17809XMLTO=$ac_cv_path_XMLTO 17810if test -n "$XMLTO"; then 17811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMLTO" >&5 17812$as_echo "$XMLTO" >&6; } 17813else 17814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17815$as_echo "no" >&6; } 17816fi 17817 17818 17819 if test "x$XMLTO" = "x"; then 17820 as_fn_error $? "--with-xmlto=yes specified but xmlto not found in PATH" "$LINENO" 5 17821 fi 17822 have_xmlto=yes 17823elif test "x$use_xmlto" = x"no" ; then 17824 if test "x$XMLTO" != "x"; then 17825 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring XMLTO environment variable since --with-xmlto=no was specified" >&5 17826$as_echo "$as_me: WARNING: ignoring XMLTO environment variable since --with-xmlto=no was specified" >&2;} 17827 fi 17828 have_xmlto=no 17829else 17830 as_fn_error $? "--with-xmlto expects 'yes' or 'no'" "$LINENO" 5 17831fi 17832 17833# Test for a minimum version of xmlto, if provided. 17834if test "$have_xmlto" = yes; then 17835 # scrape the xmlto version 17836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the xmlto version" >&5 17837$as_echo_n "checking the xmlto version... " >&6; } 17838 xmlto_version=`$XMLTO --version 2>/dev/null | cut -d' ' -f3` 17839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xmlto_version" >&5 17840$as_echo "$xmlto_version" >&6; } 17841 as_arg_v1=$xmlto_version 17842as_arg_v2=0.0.22 17843awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null 17844case $? in #( 17845 1) : 17846 if test "x$use_xmlto" = xauto; then 17847 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xmlto version $xmlto_version found, but 0.0.22 needed" >&5 17848$as_echo "$as_me: WARNING: xmlto version $xmlto_version found, but 0.0.22 needed" >&2;} 17849 have_xmlto=no 17850 else 17851 as_fn_error $? "xmlto version $xmlto_version found, but 0.0.22 needed" "$LINENO" 5 17852 fi ;; #( 17853 0) : 17854 ;; #( 17855 2) : 17856 ;; #( 17857 *) : 17858 ;; 17859esac 17860fi 17861 17862# Test for the ability of xmlto to generate a text target 17863have_xmlto_text=no 17864cat > conftest.xml << "EOF" 17865EOF 17866if test "$have_xmlto" = yes; then : 17867 if $XMLTO --skip-validation txt conftest.xml >/dev/null 2>&1; then : 17868 have_xmlto_text=yes 17869else 17870 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xmlto cannot generate text format, this format skipped" >&5 17871$as_echo "$as_me: WARNING: xmlto cannot generate text format, this format skipped" >&2;} 17872fi 17873fi 17874rm -f conftest.xml 17875 if test $have_xmlto_text = yes; then 17876 HAVE_XMLTO_TEXT_TRUE= 17877 HAVE_XMLTO_TEXT_FALSE='#' 17878else 17879 HAVE_XMLTO_TEXT_TRUE='#' 17880 HAVE_XMLTO_TEXT_FALSE= 17881fi 17882 17883 if test "$have_xmlto" = yes; then 17884 HAVE_XMLTO_TRUE= 17885 HAVE_XMLTO_FALSE='#' 17886else 17887 HAVE_XMLTO_TRUE='#' 17888 HAVE_XMLTO_FALSE= 17889fi 17890 17891 17892 17893 17894 17895 17896# Check whether --with-fop was given. 17897if test "${with_fop+set}" = set; then : 17898 withval=$with_fop; use_fop=$withval 17899else 17900 use_fop=auto 17901fi 17902 17903 17904 17905if test "x$use_fop" = x"auto"; then 17906 # Extract the first word of "fop", so it can be a program name with args. 17907set dummy fop; ac_word=$2 17908{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17909$as_echo_n "checking for $ac_word... " >&6; } 17910if ${ac_cv_path_FOP+:} false; then : 17911 $as_echo_n "(cached) " >&6 17912else 17913 case $FOP in 17914 [\\/]* | ?:[\\/]*) 17915 ac_cv_path_FOP="$FOP" # Let the user override the test with a path. 17916 ;; 17917 *) 17918 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17919for as_dir in $PATH 17920do 17921 IFS=$as_save_IFS 17922 test -z "$as_dir" && as_dir=. 17923 for ac_exec_ext in '' $ac_executable_extensions; do 17924 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 17925 ac_cv_path_FOP="$as_dir/$ac_word$ac_exec_ext" 17926 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17927 break 2 17928 fi 17929done 17930 done 17931IFS=$as_save_IFS 17932 17933 ;; 17934esac 17935fi 17936FOP=$ac_cv_path_FOP 17937if test -n "$FOP"; then 17938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FOP" >&5 17939$as_echo "$FOP" >&6; } 17940else 17941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17942$as_echo "no" >&6; } 17943fi 17944 17945 17946 if test "x$FOP" = "x"; then 17947 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fop not found - documentation targets will be skipped" >&5 17948$as_echo "$as_me: WARNING: fop not found - documentation targets will be skipped" >&2;} 17949 have_fop=no 17950 else 17951 have_fop=yes 17952 fi 17953elif test "x$use_fop" = x"yes" ; then 17954 # Extract the first word of "fop", so it can be a program name with args. 17955set dummy fop; ac_word=$2 17956{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17957$as_echo_n "checking for $ac_word... " >&6; } 17958if ${ac_cv_path_FOP+:} false; then : 17959 $as_echo_n "(cached) " >&6 17960else 17961 case $FOP in 17962 [\\/]* | ?:[\\/]*) 17963 ac_cv_path_FOP="$FOP" # Let the user override the test with a path. 17964 ;; 17965 *) 17966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17967for as_dir in $PATH 17968do 17969 IFS=$as_save_IFS 17970 test -z "$as_dir" && as_dir=. 17971 for ac_exec_ext in '' $ac_executable_extensions; do 17972 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 17973 ac_cv_path_FOP="$as_dir/$ac_word$ac_exec_ext" 17974 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17975 break 2 17976 fi 17977done 17978 done 17979IFS=$as_save_IFS 17980 17981 ;; 17982esac 17983fi 17984FOP=$ac_cv_path_FOP 17985if test -n "$FOP"; then 17986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FOP" >&5 17987$as_echo "$FOP" >&6; } 17988else 17989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17990$as_echo "no" >&6; } 17991fi 17992 17993 17994 if test "x$FOP" = "x"; then 17995 as_fn_error $? "--with-fop=yes specified but fop not found in PATH" "$LINENO" 5 17996 fi 17997 have_fop=yes 17998elif test "x$use_fop" = x"no" ; then 17999 if test "x$FOP" != "x"; then 18000 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring FOP environment variable since --with-fop=no was specified" >&5 18001$as_echo "$as_me: WARNING: ignoring FOP environment variable since --with-fop=no was specified" >&2;} 18002 fi 18003 have_fop=no 18004else 18005 as_fn_error $? "--with-fop expects 'yes' or 'no'" "$LINENO" 5 18006fi 18007 18008# Test for a minimum version of fop, if provided. 18009 18010 if test "$have_fop" = yes; then 18011 HAVE_FOP_TRUE= 18012 HAVE_FOP_FALSE='#' 18013else 18014 HAVE_FOP_TRUE='#' 18015 HAVE_FOP_FALSE= 18016fi 18017 18018 18019 18020 18021# Preserves the interface, should it be implemented later 18022 18023 18024 18025# Check whether --with-xsltproc was given. 18026if test "${with_xsltproc+set}" = set; then : 18027 withval=$with_xsltproc; use_xsltproc=$withval 18028else 18029 use_xsltproc=auto 18030fi 18031 18032 18033 18034if test "x$use_xsltproc" = x"auto"; then 18035 # Extract the first word of "xsltproc", so it can be a program name with args. 18036set dummy xsltproc; ac_word=$2 18037{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18038$as_echo_n "checking for $ac_word... " >&6; } 18039if ${ac_cv_path_XSLTPROC+:} false; then : 18040 $as_echo_n "(cached) " >&6 18041else 18042 case $XSLTPROC in 18043 [\\/]* | ?:[\\/]*) 18044 ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path. 18045 ;; 18046 *) 18047 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18048for as_dir in $PATH 18049do 18050 IFS=$as_save_IFS 18051 test -z "$as_dir" && as_dir=. 18052 for ac_exec_ext in '' $ac_executable_extensions; do 18053 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 18054 ac_cv_path_XSLTPROC="$as_dir/$ac_word$ac_exec_ext" 18055 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18056 break 2 18057 fi 18058done 18059 done 18060IFS=$as_save_IFS 18061 18062 ;; 18063esac 18064fi 18065XSLTPROC=$ac_cv_path_XSLTPROC 18066if test -n "$XSLTPROC"; then 18067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5 18068$as_echo "$XSLTPROC" >&6; } 18069else 18070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18071$as_echo "no" >&6; } 18072fi 18073 18074 18075 if test "x$XSLTPROC" = "x"; then 18076 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xsltproc not found - cannot transform XML documents" >&5 18077$as_echo "$as_me: WARNING: xsltproc not found - cannot transform XML documents" >&2;} 18078 have_xsltproc=no 18079 else 18080 have_xsltproc=yes 18081 fi 18082elif test "x$use_xsltproc" = x"yes" ; then 18083 # Extract the first word of "xsltproc", so it can be a program name with args. 18084set dummy xsltproc; ac_word=$2 18085{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18086$as_echo_n "checking for $ac_word... " >&6; } 18087if ${ac_cv_path_XSLTPROC+:} false; then : 18088 $as_echo_n "(cached) " >&6 18089else 18090 case $XSLTPROC in 18091 [\\/]* | ?:[\\/]*) 18092 ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path. 18093 ;; 18094 *) 18095 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18096for as_dir in $PATH 18097do 18098 IFS=$as_save_IFS 18099 test -z "$as_dir" && as_dir=. 18100 for ac_exec_ext in '' $ac_executable_extensions; do 18101 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 18102 ac_cv_path_XSLTPROC="$as_dir/$ac_word$ac_exec_ext" 18103 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18104 break 2 18105 fi 18106done 18107 done 18108IFS=$as_save_IFS 18109 18110 ;; 18111esac 18112fi 18113XSLTPROC=$ac_cv_path_XSLTPROC 18114if test -n "$XSLTPROC"; then 18115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5 18116$as_echo "$XSLTPROC" >&6; } 18117else 18118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18119$as_echo "no" >&6; } 18120fi 18121 18122 18123 if test "x$XSLTPROC" = "x"; then 18124 as_fn_error $? "--with-xsltproc=yes specified but xsltproc not found in PATH" "$LINENO" 5 18125 fi 18126 have_xsltproc=yes 18127elif test "x$use_xsltproc" = x"no" ; then 18128 if test "x$XSLTPROC" != "x"; then 18129 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring XSLTPROC environment variable since --with-xsltproc=no was specified" >&5 18130$as_echo "$as_me: WARNING: ignoring XSLTPROC environment variable since --with-xsltproc=no was specified" >&2;} 18131 fi 18132 have_xsltproc=no 18133else 18134 as_fn_error $? "--with-xsltproc expects 'yes' or 'no'" "$LINENO" 5 18135fi 18136 18137 if test "$have_xsltproc" = yes; then 18138 HAVE_XSLTPROC_TRUE= 18139 HAVE_XSLTPROC_FALSE='#' 18140else 18141 HAVE_XSLTPROC_TRUE='#' 18142 HAVE_XSLTPROC_FALSE= 18143fi 18144 18145 18146 18147{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X.Org SGML entities >= 1.8" >&5 18148$as_echo_n "checking for X.Org SGML entities >= 1.8... " >&6; } 18149XORG_SGML_PATH= 18150if test -n "$PKG_CONFIG" && \ 18151 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-sgml-doctools >= 1.8\""; } >&5 18152 ($PKG_CONFIG --exists --print-errors "xorg-sgml-doctools >= 1.8") 2>&5 18153 ac_status=$? 18154 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18155 test $ac_status = 0; }; then 18156 XORG_SGML_PATH=`$PKG_CONFIG --variable=sgmlrootdir xorg-sgml-doctools` 18157else 18158 : 18159 18160fi 18161 18162# Define variables STYLESHEET_SRCDIR and XSL_STYLESHEET containing 18163# the path and the name of the doc stylesheet 18164if test "x$XORG_SGML_PATH" != "x" ; then 18165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XORG_SGML_PATH" >&5 18166$as_echo "$XORG_SGML_PATH" >&6; } 18167 STYLESHEET_SRCDIR=$XORG_SGML_PATH/X11 18168 XSL_STYLESHEET=$STYLESHEET_SRCDIR/xorg.xsl 18169else 18170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18171$as_echo "no" >&6; } 18172fi 18173 18174 18175 18176 18177 if test "x$XSL_STYLESHEET" != "x"; then 18178 HAVE_STYLESHEETS_TRUE= 18179 HAVE_STYLESHEETS_FALSE='#' 18180else 18181 HAVE_STYLESHEETS_TRUE='#' 18182 HAVE_STYLESHEETS_FALSE= 18183fi 18184 18185 18186 18187# Check whether --enable-malloc0returnsnull was given. 18188if test "${enable_malloc0returnsnull+set}" = set; then : 18189 enableval=$enable_malloc0returnsnull; MALLOC_ZERO_RETURNS_NULL=$enableval 18190else 18191 MALLOC_ZERO_RETURNS_NULL=auto 18192fi 18193 18194 18195{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether malloc(0) returns NULL" >&5 18196$as_echo_n "checking whether malloc(0) returns NULL... " >&6; } 18197if test "x$MALLOC_ZERO_RETURNS_NULL" = xauto; then 18198 if test "$cross_compiling" = yes; then : 18199 MALLOC_ZERO_RETURNS_NULL=yes 18200else 18201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18202/* end confdefs.h. */ 18203 18204#include <stdlib.h> 18205 18206int 18207main () 18208{ 18209 18210 char *m0, *r0, *c0, *p; 18211 m0 = malloc(0); 18212 p = malloc(10); 18213 r0 = realloc(p,0); 18214 c0 = calloc(0,10); 18215 exit((m0 == 0 || r0 == 0 || c0 == 0) ? 0 : 1); 18216 18217 ; 18218 return 0; 18219} 18220_ACEOF 18221if ac_fn_c_try_run "$LINENO"; then : 18222 MALLOC_ZERO_RETURNS_NULL=yes 18223else 18224 MALLOC_ZERO_RETURNS_NULL=no 18225fi 18226rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 18227 conftest.$ac_objext conftest.beam conftest.$ac_ext 18228fi 18229 18230fi 18231{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MALLOC_ZERO_RETURNS_NULL" >&5 18232$as_echo "$MALLOC_ZERO_RETURNS_NULL" >&6; } 18233 18234if test "x$MALLOC_ZERO_RETURNS_NULL" = xyes; then 18235 MALLOC_ZERO_CFLAGS="-DMALLOC_0_RETURNS_NULL" 18236 XMALLOC_ZERO_CFLAGS=$MALLOC_ZERO_CFLAGS 18237 XTMALLOC_ZERO_CFLAGS="$MALLOC_ZERO_CFLAGS -DXTMALLOC_BC" 18238else 18239 MALLOC_ZERO_CFLAGS="" 18240 XMALLOC_ZERO_CFLAGS="" 18241 XTMALLOC_ZERO_CFLAGS="" 18242fi 18243 18244 18245 18246 18247 18248 18249# Determine .so library version per platform 18250# based on SharedXextRev in monolith xc/config/cf/*Lib.tmpl 18251if test "x$XEXT_SOREV" = "x" ; then 18252 case $host_os in 18253 openbsd*) XEXT_SOREV=8:0 ;; 18254 solaris*) XEXT_SOREV=0 ;; 18255 *) XEXT_SOREV=6:4:0 ;; 18256 esac 18257fi 18258 18259 18260# Obtain compiler/linker options for depedencies 18261 18262pkg_failed=no 18263{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XEXT" >&5 18264$as_echo_n "checking for XEXT... " >&6; } 18265 18266if test -n "$XEXT_CFLAGS"; then 18267 pkg_cv_XEXT_CFLAGS="$XEXT_CFLAGS" 18268 elif test -n "$PKG_CONFIG"; then 18269 if test -n "$PKG_CONFIG" && \ 18270 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto >= 7.0.13 x11 >= 1.1.99.1 xextproto >= 7.1.99\""; } >&5 18271 ($PKG_CONFIG --exists --print-errors "xproto >= 7.0.13 x11 >= 1.1.99.1 xextproto >= 7.1.99") 2>&5 18272 ac_status=$? 18273 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18274 test $ac_status = 0; }; then 18275 pkg_cv_XEXT_CFLAGS=`$PKG_CONFIG --cflags "xproto >= 7.0.13 x11 >= 1.1.99.1 xextproto >= 7.1.99" 2>/dev/null` 18276else 18277 pkg_failed=yes 18278fi 18279 else 18280 pkg_failed=untried 18281fi 18282if test -n "$XEXT_LIBS"; then 18283 pkg_cv_XEXT_LIBS="$XEXT_LIBS" 18284 elif test -n "$PKG_CONFIG"; then 18285 if test -n "$PKG_CONFIG" && \ 18286 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto >= 7.0.13 x11 >= 1.1.99.1 xextproto >= 7.1.99\""; } >&5 18287 ($PKG_CONFIG --exists --print-errors "xproto >= 7.0.13 x11 >= 1.1.99.1 xextproto >= 7.1.99") 2>&5 18288 ac_status=$? 18289 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18290 test $ac_status = 0; }; then 18291 pkg_cv_XEXT_LIBS=`$PKG_CONFIG --libs "xproto >= 7.0.13 x11 >= 1.1.99.1 xextproto >= 7.1.99" 2>/dev/null` 18292else 18293 pkg_failed=yes 18294fi 18295 else 18296 pkg_failed=untried 18297fi 18298 18299 18300 18301if test $pkg_failed = yes; then 18302 18303if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 18304 _pkg_short_errors_supported=yes 18305else 18306 _pkg_short_errors_supported=no 18307fi 18308 if test $_pkg_short_errors_supported = yes; then 18309 XEXT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xproto >= 7.0.13 x11 >= 1.1.99.1 xextproto >= 7.1.99" 2>&1` 18310 else 18311 XEXT_PKG_ERRORS=`$PKG_CONFIG --print-errors "xproto >= 7.0.13 x11 >= 1.1.99.1 xextproto >= 7.1.99" 2>&1` 18312 fi 18313 # Put the nasty error message in config.log where it belongs 18314 echo "$XEXT_PKG_ERRORS" >&5 18315 18316 as_fn_error $? "Package requirements (xproto >= 7.0.13 x11 >= 1.1.99.1 xextproto >= 7.1.99) were not met: 18317 18318$XEXT_PKG_ERRORS 18319 18320Consider adjusting the PKG_CONFIG_PATH environment variable if you 18321installed software in a non-standard prefix. 18322 18323Alternatively, you may set the environment variables XEXT_CFLAGS 18324and XEXT_LIBS to avoid the need to call pkg-config. 18325See the pkg-config man page for more details. 18326" "$LINENO" 5 18327elif test $pkg_failed = untried; then 18328 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 18329$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 18330as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 18331is in your PATH or set the PKG_CONFIG environment variable to the full 18332path to pkg-config. 18333 18334Alternatively, you may set the environment variables XEXT_CFLAGS 18335and XEXT_LIBS to avoid the need to call pkg-config. 18336See the pkg-config man page for more details. 18337 18338To get pkg-config, see <http://pkg-config.freedesktop.org/>. 18339See \`config.log' for more details" "$LINENO" 5; } 18340else 18341 XEXT_CFLAGS=$pkg_cv_XEXT_CFLAGS 18342 XEXT_LIBS=$pkg_cv_XEXT_LIBS 18343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18344$as_echo "yes" >&6; } 18345 : 18346fi 18347 18348# Check for _XEatDataWords function that may be patched into older Xlib releases 18349SAVE_LIBS="$LIBS" 18350LIBS="$XEXT_LIBS" 18351for ac_func in _XEatDataWords 18352do : 18353 ac_fn_c_check_func "$LINENO" "_XEatDataWords" "ac_cv_func__XEatDataWords" 18354if test "x$ac_cv_func__XEatDataWords" = xyes; then : 18355 cat >>confdefs.h <<_ACEOF 18356#define HAVE__XEATDATAWORDS 1 18357_ACEOF 18358 18359fi 18360done 18361 18362LIBS="$SAVE_LIBS" 18363 18364# Allow checking code with lint, sparse, etc. 18365 18366 18367 18368 18369 18370# Check whether --with-lint was given. 18371if test "${with_lint+set}" = set; then : 18372 withval=$with_lint; use_lint=$withval 18373else 18374 use_lint=no 18375fi 18376 18377 18378# Obtain platform specific info like program name and options 18379# The lint program on FreeBSD and NetBSD is different from the one on Solaris 18380case $host_os in 18381 *linux* | *openbsd* | kfreebsd*-gnu | darwin* | cygwin*) 18382 lint_name=splint 18383 lint_options="-badflag" 18384 ;; 18385 *freebsd* | *netbsd*) 18386 lint_name=lint 18387 lint_options="-u -b" 18388 ;; 18389 *solaris*) 18390 lint_name=lint 18391 lint_options="-u -b -h -erroff=E_INDISTING_FROM_TRUNC2" 18392 ;; 18393esac 18394 18395# Test for the presence of the program (either guessed by the code or spelled out by the user) 18396if test "x$use_lint" = x"yes" ; then 18397 # Extract the first word of "$lint_name", so it can be a program name with args. 18398set dummy $lint_name; ac_word=$2 18399{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18400$as_echo_n "checking for $ac_word... " >&6; } 18401if ${ac_cv_path_LINT+:} false; then : 18402 $as_echo_n "(cached) " >&6 18403else 18404 case $LINT in 18405 [\\/]* | ?:[\\/]*) 18406 ac_cv_path_LINT="$LINT" # Let the user override the test with a path. 18407 ;; 18408 *) 18409 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18410for as_dir in $PATH 18411do 18412 IFS=$as_save_IFS 18413 test -z "$as_dir" && as_dir=. 18414 for ac_exec_ext in '' $ac_executable_extensions; do 18415 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 18416 ac_cv_path_LINT="$as_dir/$ac_word$ac_exec_ext" 18417 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18418 break 2 18419 fi 18420done 18421 done 18422IFS=$as_save_IFS 18423 18424 ;; 18425esac 18426fi 18427LINT=$ac_cv_path_LINT 18428if test -n "$LINT"; then 18429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINT" >&5 18430$as_echo "$LINT" >&6; } 18431else 18432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18433$as_echo "no" >&6; } 18434fi 18435 18436 18437 if test "x$LINT" = "x"; then 18438 as_fn_error $? "--with-lint=yes specified but lint-style tool not found in PATH" "$LINENO" 5 18439 fi 18440elif test "x$use_lint" = x"no" ; then 18441 if test "x$LINT" != "x"; then 18442 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&5 18443$as_echo "$as_me: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&2;} 18444 fi 18445else 18446 as_fn_error $? "--with-lint expects 'yes' or 'no'. Use LINT variable to specify path." "$LINENO" 5 18447fi 18448 18449# User supplied flags override default flags 18450if test "x$LINT_FLAGS" != "x"; then 18451 lint_options=$LINT_FLAGS 18452fi 18453 18454LINT_FLAGS=$lint_options 18455 18456 if test "x$LINT" != x; then 18457 LINT_TRUE= 18458 LINT_FALSE='#' 18459else 18460 LINT_TRUE='#' 18461 LINT_FALSE= 18462fi 18463 18464 18465 18466 18467 18468# Check whether --enable-lint-library was given. 18469if test "${enable_lint_library+set}" = set; then : 18470 enableval=$enable_lint_library; make_lint_lib=$enableval 18471else 18472 make_lint_lib=no 18473fi 18474 18475 18476if test "x$make_lint_lib" = x"yes" ; then 18477 LINTLIB=llib-lXext.ln 18478 if test "x$LINT" = "x"; then 18479 as_fn_error $? "Cannot make lint library without --with-lint" "$LINENO" 5 18480 fi 18481elif test "x$make_lint_lib" != x"no" ; then 18482 as_fn_error $? "--enable-lint-library expects 'yes' or 'no'." "$LINENO" 5 18483fi 18484 18485 18486 if test x$make_lint_lib != xno; then 18487 MAKE_LINT_LIB_TRUE= 18488 MAKE_LINT_LIB_FALSE='#' 18489else 18490 MAKE_LINT_LIB_TRUE='#' 18491 MAKE_LINT_LIB_FALSE= 18492fi 18493 18494 18495 18496 18497ac_config_files="$ac_config_files Makefile man/Makefile src/Makefile specs/Makefile xext.pc" 18498 18499cat >confcache <<\_ACEOF 18500# This file is a shell script that caches the results of configure 18501# tests run on this system so they can be shared between configure 18502# scripts and configure runs, see configure's option --config-cache. 18503# It is not useful on other systems. If it contains results you don't 18504# want to keep, you may remove or edit it. 18505# 18506# config.status only pays attention to the cache file if you give it 18507# the --recheck option to rerun configure. 18508# 18509# `ac_cv_env_foo' variables (set or unset) will be overridden when 18510# loading this file, other *unset* `ac_cv_foo' will be assigned the 18511# following values. 18512 18513_ACEOF 18514 18515# The following way of writing the cache mishandles newlines in values, 18516# but we know of no workaround that is simple, portable, and efficient. 18517# So, we kill variables containing newlines. 18518# Ultrix sh set writes to stderr and can't be redirected directly, 18519# and sets the high bit in the cache file unless we assign to the vars. 18520( 18521 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 18522 eval ac_val=\$$ac_var 18523 case $ac_val in #( 18524 *${as_nl}*) 18525 case $ac_var in #( 18526 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 18527$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 18528 esac 18529 case $ac_var in #( 18530 _ | IFS | as_nl) ;; #( 18531 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 18532 *) { eval $ac_var=; unset $ac_var;} ;; 18533 esac ;; 18534 esac 18535 done 18536 18537 (set) 2>&1 | 18538 case $as_nl`(ac_space=' '; set) 2>&1` in #( 18539 *${as_nl}ac_space=\ *) 18540 # `set' does not quote correctly, so add quotes: double-quote 18541 # substitution turns \\\\ into \\, and sed turns \\ into \. 18542 sed -n \ 18543 "s/'/'\\\\''/g; 18544 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 18545 ;; #( 18546 *) 18547 # `set' quotes correctly as required by POSIX, so do not add quotes. 18548 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 18549 ;; 18550 esac | 18551 sort 18552) | 18553 sed ' 18554 /^ac_cv_env_/b end 18555 t clear 18556 :clear 18557 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 18558 t end 18559 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 18560 :end' >>confcache 18561if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 18562 if test -w "$cache_file"; then 18563 if test "x$cache_file" != "x/dev/null"; then 18564 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 18565$as_echo "$as_me: updating cache $cache_file" >&6;} 18566 if test ! -f "$cache_file" || test -h "$cache_file"; then 18567 cat confcache >"$cache_file" 18568 else 18569 case $cache_file in #( 18570 */* | ?:*) 18571 mv -f confcache "$cache_file"$$ && 18572 mv -f "$cache_file"$$ "$cache_file" ;; #( 18573 *) 18574 mv -f confcache "$cache_file" ;; 18575 esac 18576 fi 18577 fi 18578 else 18579 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 18580$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 18581 fi 18582fi 18583rm -f confcache 18584 18585test "x$prefix" = xNONE && prefix=$ac_default_prefix 18586# Let make expand exec_prefix. 18587test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 18588 18589DEFS=-DHAVE_CONFIG_H 18590 18591ac_libobjs= 18592ac_ltlibobjs= 18593U= 18594for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 18595 # 1. Remove the extension, and $U if already installed. 18596 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 18597 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 18598 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 18599 # will be set to the directory where LIBOBJS objects are built. 18600 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 18601 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 18602done 18603LIBOBJS=$ac_libobjs 18604 18605LTLIBOBJS=$ac_ltlibobjs 18606 18607 18608{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 18609$as_echo_n "checking that generated files are newer than configure... " >&6; } 18610 if test -n "$am_sleep_pid"; then 18611 # Hide warnings about reused PIDs. 18612 wait $am_sleep_pid 2>/dev/null 18613 fi 18614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 18615$as_echo "done" >&6; } 18616 if test -n "$EXEEXT"; then 18617 am__EXEEXT_TRUE= 18618 am__EXEEXT_FALSE='#' 18619else 18620 am__EXEEXT_TRUE='#' 18621 am__EXEEXT_FALSE= 18622fi 18623 18624if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 18625 as_fn_error $? "conditional \"AMDEP\" was never defined. 18626Usually this means the macro was only invoked conditionally." "$LINENO" 5 18627fi 18628if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 18629 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 18630Usually this means the macro was only invoked conditionally." "$LINENO" 5 18631fi 18632if test -z "${ENABLE_SPECS_TRUE}" && test -z "${ENABLE_SPECS_FALSE}"; then 18633 as_fn_error $? "conditional \"ENABLE_SPECS\" was never defined. 18634Usually this means the macro was only invoked conditionally." "$LINENO" 5 18635fi 18636if test -z "${HAVE_XMLTO_TEXT_TRUE}" && test -z "${HAVE_XMLTO_TEXT_FALSE}"; then 18637 as_fn_error $? "conditional \"HAVE_XMLTO_TEXT\" was never defined. 18638Usually this means the macro was only invoked conditionally." "$LINENO" 5 18639fi 18640if test -z "${HAVE_XMLTO_TRUE}" && test -z "${HAVE_XMLTO_FALSE}"; then 18641 as_fn_error $? "conditional \"HAVE_XMLTO\" was never defined. 18642Usually this means the macro was only invoked conditionally." "$LINENO" 5 18643fi 18644if test -z "${HAVE_FOP_TRUE}" && test -z "${HAVE_FOP_FALSE}"; then 18645 as_fn_error $? "conditional \"HAVE_FOP\" was never defined. 18646Usually this means the macro was only invoked conditionally." "$LINENO" 5 18647fi 18648if test -z "${HAVE_XSLTPROC_TRUE}" && test -z "${HAVE_XSLTPROC_FALSE}"; then 18649 as_fn_error $? "conditional \"HAVE_XSLTPROC\" was never defined. 18650Usually this means the macro was only invoked conditionally." "$LINENO" 5 18651fi 18652if test -z "${HAVE_STYLESHEETS_TRUE}" && test -z "${HAVE_STYLESHEETS_FALSE}"; then 18653 as_fn_error $? "conditional \"HAVE_STYLESHEETS\" was never defined. 18654Usually this means the macro was only invoked conditionally." "$LINENO" 5 18655fi 18656if test -z "${LINT_TRUE}" && test -z "${LINT_FALSE}"; then 18657 as_fn_error $? "conditional \"LINT\" was never defined. 18658Usually this means the macro was only invoked conditionally." "$LINENO" 5 18659fi 18660if test -z "${MAKE_LINT_LIB_TRUE}" && test -z "${MAKE_LINT_LIB_FALSE}"; then 18661 as_fn_error $? "conditional \"MAKE_LINT_LIB\" was never defined. 18662Usually this means the macro was only invoked conditionally." "$LINENO" 5 18663fi 18664 18665: "${CONFIG_STATUS=./config.status}" 18666ac_write_fail=0 18667ac_clean_files_save=$ac_clean_files 18668ac_clean_files="$ac_clean_files $CONFIG_STATUS" 18669{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 18670$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 18671as_write_fail=0 18672cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 18673#! $SHELL 18674# Generated by $as_me. 18675# Run this file to recreate the current configuration. 18676# Compiler output produced by configure, useful for debugging 18677# configure, is in config.log if it exists. 18678 18679debug=false 18680ac_cs_recheck=false 18681ac_cs_silent=false 18682 18683SHELL=\${CONFIG_SHELL-$SHELL} 18684export SHELL 18685_ASEOF 18686cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 18687## -------------------- ## 18688## M4sh Initialization. ## 18689## -------------------- ## 18690 18691# Be more Bourne compatible 18692DUALCASE=1; export DUALCASE # for MKS sh 18693if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 18694 emulate sh 18695 NULLCMD=: 18696 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 18697 # is contrary to our usage. Disable this feature. 18698 alias -g '${1+"$@"}'='"$@"' 18699 setopt NO_GLOB_SUBST 18700else 18701 case `(set -o) 2>/dev/null` in #( 18702 *posix*) : 18703 set -o posix ;; #( 18704 *) : 18705 ;; 18706esac 18707fi 18708 18709 18710as_nl=' 18711' 18712export as_nl 18713# Printing a long string crashes Solaris 7 /usr/bin/printf. 18714as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 18715as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 18716as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 18717# Prefer a ksh shell builtin over an external printf program on Solaris, 18718# but without wasting forks for bash or zsh. 18719if test -z "$BASH_VERSION$ZSH_VERSION" \ 18720 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 18721 as_echo='print -r --' 18722 as_echo_n='print -rn --' 18723elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 18724 as_echo='printf %s\n' 18725 as_echo_n='printf %s' 18726else 18727 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 18728 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 18729 as_echo_n='/usr/ucb/echo -n' 18730 else 18731 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 18732 as_echo_n_body='eval 18733 arg=$1; 18734 case $arg in #( 18735 *"$as_nl"*) 18736 expr "X$arg" : "X\\(.*\\)$as_nl"; 18737 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 18738 esac; 18739 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 18740 ' 18741 export as_echo_n_body 18742 as_echo_n='sh -c $as_echo_n_body as_echo' 18743 fi 18744 export as_echo_body 18745 as_echo='sh -c $as_echo_body as_echo' 18746fi 18747 18748# The user is always right. 18749if test "${PATH_SEPARATOR+set}" != set; then 18750 PATH_SEPARATOR=: 18751 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 18752 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 18753 PATH_SEPARATOR=';' 18754 } 18755fi 18756 18757 18758# IFS 18759# We need space, tab and new line, in precisely that order. Quoting is 18760# there to prevent editors from complaining about space-tab. 18761# (If _AS_PATH_WALK were called with IFS unset, it would disable word 18762# splitting by setting IFS to empty value.) 18763IFS=" "" $as_nl" 18764 18765# Find who we are. Look in the path if we contain no directory separator. 18766as_myself= 18767case $0 in #(( 18768 *[\\/]* ) as_myself=$0 ;; 18769 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18770for as_dir in $PATH 18771do 18772 IFS=$as_save_IFS 18773 test -z "$as_dir" && as_dir=. 18774 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 18775 done 18776IFS=$as_save_IFS 18777 18778 ;; 18779esac 18780# We did not find ourselves, most probably we were run as `sh COMMAND' 18781# in which case we are not to be found in the path. 18782if test "x$as_myself" = x; then 18783 as_myself=$0 18784fi 18785if test ! -f "$as_myself"; then 18786 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 18787 exit 1 18788fi 18789 18790# Unset variables that we do not need and which cause bugs (e.g. in 18791# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 18792# suppresses any "Segmentation fault" message there. '((' could 18793# trigger a bug in pdksh 5.2.14. 18794for as_var in BASH_ENV ENV MAIL MAILPATH 18795do eval test x\${$as_var+set} = xset \ 18796 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 18797done 18798PS1='$ ' 18799PS2='> ' 18800PS4='+ ' 18801 18802# NLS nuisances. 18803LC_ALL=C 18804export LC_ALL 18805LANGUAGE=C 18806export LANGUAGE 18807 18808# CDPATH. 18809(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 18810 18811 18812# as_fn_error STATUS ERROR [LINENO LOG_FD] 18813# ---------------------------------------- 18814# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 18815# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 18816# script with STATUS, using 1 if that was 0. 18817as_fn_error () 18818{ 18819 as_status=$1; test $as_status -eq 0 && as_status=1 18820 if test "$4"; then 18821 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 18822 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 18823 fi 18824 $as_echo "$as_me: error: $2" >&2 18825 as_fn_exit $as_status 18826} # as_fn_error 18827 18828 18829# as_fn_set_status STATUS 18830# ----------------------- 18831# Set $? to STATUS, without forking. 18832as_fn_set_status () 18833{ 18834 return $1 18835} # as_fn_set_status 18836 18837# as_fn_exit STATUS 18838# ----------------- 18839# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 18840as_fn_exit () 18841{ 18842 set +e 18843 as_fn_set_status $1 18844 exit $1 18845} # as_fn_exit 18846 18847# as_fn_unset VAR 18848# --------------- 18849# Portably unset VAR. 18850as_fn_unset () 18851{ 18852 { eval $1=; unset $1;} 18853} 18854as_unset=as_fn_unset 18855# as_fn_append VAR VALUE 18856# ---------------------- 18857# Append the text in VALUE to the end of the definition contained in VAR. Take 18858# advantage of any shell optimizations that allow amortized linear growth over 18859# repeated appends, instead of the typical quadratic growth present in naive 18860# implementations. 18861if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 18862 eval 'as_fn_append () 18863 { 18864 eval $1+=\$2 18865 }' 18866else 18867 as_fn_append () 18868 { 18869 eval $1=\$$1\$2 18870 } 18871fi # as_fn_append 18872 18873# as_fn_arith ARG... 18874# ------------------ 18875# Perform arithmetic evaluation on the ARGs, and store the result in the 18876# global $as_val. Take advantage of shells that can avoid forks. The arguments 18877# must be portable across $(()) and expr. 18878if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 18879 eval 'as_fn_arith () 18880 { 18881 as_val=$(( $* )) 18882 }' 18883else 18884 as_fn_arith () 18885 { 18886 as_val=`expr "$@" || test $? -eq 1` 18887 } 18888fi # as_fn_arith 18889 18890 18891if expr a : '\(a\)' >/dev/null 2>&1 && 18892 test "X`expr 00001 : '.*\(...\)'`" = X001; then 18893 as_expr=expr 18894else 18895 as_expr=false 18896fi 18897 18898if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 18899 as_basename=basename 18900else 18901 as_basename=false 18902fi 18903 18904if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 18905 as_dirname=dirname 18906else 18907 as_dirname=false 18908fi 18909 18910as_me=`$as_basename -- "$0" || 18911$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 18912 X"$0" : 'X\(//\)$' \| \ 18913 X"$0" : 'X\(/\)' \| . 2>/dev/null || 18914$as_echo X/"$0" | 18915 sed '/^.*\/\([^/][^/]*\)\/*$/{ 18916 s//\1/ 18917 q 18918 } 18919 /^X\/\(\/\/\)$/{ 18920 s//\1/ 18921 q 18922 } 18923 /^X\/\(\/\).*/{ 18924 s//\1/ 18925 q 18926 } 18927 s/.*/./; q'` 18928 18929# Avoid depending upon Character Ranges. 18930as_cr_letters='abcdefghijklmnopqrstuvwxyz' 18931as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 18932as_cr_Letters=$as_cr_letters$as_cr_LETTERS 18933as_cr_digits='0123456789' 18934as_cr_alnum=$as_cr_Letters$as_cr_digits 18935 18936ECHO_C= ECHO_N= ECHO_T= 18937case `echo -n x` in #((((( 18938-n*) 18939 case `echo 'xy\c'` in 18940 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 18941 xy) ECHO_C='\c';; 18942 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 18943 ECHO_T=' ';; 18944 esac;; 18945*) 18946 ECHO_N='-n';; 18947esac 18948 18949rm -f conf$$ conf$$.exe conf$$.file 18950if test -d conf$$.dir; then 18951 rm -f conf$$.dir/conf$$.file 18952else 18953 rm -f conf$$.dir 18954 mkdir conf$$.dir 2>/dev/null 18955fi 18956if (echo >conf$$.file) 2>/dev/null; then 18957 if ln -s conf$$.file conf$$ 2>/dev/null; then 18958 as_ln_s='ln -s' 18959 # ... but there are two gotchas: 18960 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 18961 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 18962 # In both cases, we have to default to `cp -p'. 18963 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 18964 as_ln_s='cp -p' 18965 elif ln conf$$.file conf$$ 2>/dev/null; then 18966 as_ln_s=ln 18967 else 18968 as_ln_s='cp -p' 18969 fi 18970else 18971 as_ln_s='cp -p' 18972fi 18973rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 18974rmdir conf$$.dir 2>/dev/null 18975 18976 18977# as_fn_mkdir_p 18978# ------------- 18979# Create "$as_dir" as a directory, including parents if necessary. 18980as_fn_mkdir_p () 18981{ 18982 18983 case $as_dir in #( 18984 -*) as_dir=./$as_dir;; 18985 esac 18986 test -d "$as_dir" || eval $as_mkdir_p || { 18987 as_dirs= 18988 while :; do 18989 case $as_dir in #( 18990 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 18991 *) as_qdir=$as_dir;; 18992 esac 18993 as_dirs="'$as_qdir' $as_dirs" 18994 as_dir=`$as_dirname -- "$as_dir" || 18995$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 18996 X"$as_dir" : 'X\(//\)[^/]' \| \ 18997 X"$as_dir" : 'X\(//\)$' \| \ 18998 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 18999$as_echo X"$as_dir" | 19000 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 19001 s//\1/ 19002 q 19003 } 19004 /^X\(\/\/\)[^/].*/{ 19005 s//\1/ 19006 q 19007 } 19008 /^X\(\/\/\)$/{ 19009 s//\1/ 19010 q 19011 } 19012 /^X\(\/\).*/{ 19013 s//\1/ 19014 q 19015 } 19016 s/.*/./; q'` 19017 test -d "$as_dir" && break 19018 done 19019 test -z "$as_dirs" || eval "mkdir $as_dirs" 19020 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 19021 19022 19023} # as_fn_mkdir_p 19024if mkdir -p . 2>/dev/null; then 19025 as_mkdir_p='mkdir -p "$as_dir"' 19026else 19027 test -d ./-p && rmdir ./-p 19028 as_mkdir_p=false 19029fi 19030 19031if test -x / >/dev/null 2>&1; then 19032 as_test_x='test -x' 19033else 19034 if ls -dL / >/dev/null 2>&1; then 19035 as_ls_L_option=L 19036 else 19037 as_ls_L_option= 19038 fi 19039 as_test_x=' 19040 eval sh -c '\'' 19041 if test -d "$1"; then 19042 test -d "$1/."; 19043 else 19044 case $1 in #( 19045 -*)set "./$1";; 19046 esac; 19047 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 19048 ???[sx]*):;;*)false;;esac;fi 19049 '\'' sh 19050 ' 19051fi 19052as_executable_p=$as_test_x 19053 19054# Sed expression to map a string onto a valid CPP name. 19055as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 19056 19057# Sed expression to map a string onto a valid variable name. 19058as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 19059 19060 19061exec 6>&1 19062## ----------------------------------- ## 19063## Main body of $CONFIG_STATUS script. ## 19064## ----------------------------------- ## 19065_ASEOF 19066test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 19067 19068cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19069# Save the log message, to keep $0 and so on meaningful, and to 19070# report actual input values of CONFIG_FILES etc. instead of their 19071# values after options handling. 19072ac_log=" 19073This file was extended by libXext $as_me 1.3.2, which was 19074generated by GNU Autoconf 2.68. Invocation command line was 19075 19076 CONFIG_FILES = $CONFIG_FILES 19077 CONFIG_HEADERS = $CONFIG_HEADERS 19078 CONFIG_LINKS = $CONFIG_LINKS 19079 CONFIG_COMMANDS = $CONFIG_COMMANDS 19080 $ $0 $@ 19081 19082on `(hostname || uname -n) 2>/dev/null | sed 1q` 19083" 19084 19085_ACEOF 19086 19087case $ac_config_files in *" 19088"*) set x $ac_config_files; shift; ac_config_files=$*;; 19089esac 19090 19091case $ac_config_headers in *" 19092"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 19093esac 19094 19095 19096cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19097# Files that config.status was made for. 19098config_files="$ac_config_files" 19099config_headers="$ac_config_headers" 19100config_commands="$ac_config_commands" 19101 19102_ACEOF 19103 19104cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19105ac_cs_usage="\ 19106\`$as_me' instantiates files and other configuration actions 19107from templates according to the current configuration. Unless the files 19108and actions are specified as TAGs, all are instantiated by default. 19109 19110Usage: $0 [OPTION]... [TAG]... 19111 19112 -h, --help print this help, then exit 19113 -V, --version print version number and configuration settings, then exit 19114 --config print configuration, then exit 19115 -q, --quiet, --silent 19116 do not print progress messages 19117 -d, --debug don't remove temporary files 19118 --recheck update $as_me by reconfiguring in the same conditions 19119 --file=FILE[:TEMPLATE] 19120 instantiate the configuration file FILE 19121 --header=FILE[:TEMPLATE] 19122 instantiate the configuration header FILE 19123 19124Configuration files: 19125$config_files 19126 19127Configuration headers: 19128$config_headers 19129 19130Configuration commands: 19131$config_commands 19132 19133Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>." 19134 19135_ACEOF 19136cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19137ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 19138ac_cs_version="\\ 19139libXext config.status 1.3.2 19140configured by $0, generated by GNU Autoconf 2.68, 19141 with options \\"\$ac_cs_config\\" 19142 19143Copyright (C) 2010 Free Software Foundation, Inc. 19144This config.status script is free software; the Free Software Foundation 19145gives unlimited permission to copy, distribute and modify it." 19146 19147ac_pwd='$ac_pwd' 19148srcdir='$srcdir' 19149INSTALL='$INSTALL' 19150MKDIR_P='$MKDIR_P' 19151AWK='$AWK' 19152test -n "\$AWK" || AWK=awk 19153_ACEOF 19154 19155cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19156# The default lists apply if the user does not specify any file. 19157ac_need_defaults=: 19158while test $# != 0 19159do 19160 case $1 in 19161 --*=?*) 19162 ac_option=`expr "X$1" : 'X\([^=]*\)='` 19163 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 19164 ac_shift=: 19165 ;; 19166 --*=) 19167 ac_option=`expr "X$1" : 'X\([^=]*\)='` 19168 ac_optarg= 19169 ac_shift=: 19170 ;; 19171 *) 19172 ac_option=$1 19173 ac_optarg=$2 19174 ac_shift=shift 19175 ;; 19176 esac 19177 19178 case $ac_option in 19179 # Handling of the options. 19180 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 19181 ac_cs_recheck=: ;; 19182 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 19183 $as_echo "$ac_cs_version"; exit ;; 19184 --config | --confi | --conf | --con | --co | --c ) 19185 $as_echo "$ac_cs_config"; exit ;; 19186 --debug | --debu | --deb | --de | --d | -d ) 19187 debug=: ;; 19188 --file | --fil | --fi | --f ) 19189 $ac_shift 19190 case $ac_optarg in 19191 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 19192 '') as_fn_error $? "missing file argument" ;; 19193 esac 19194 as_fn_append CONFIG_FILES " '$ac_optarg'" 19195 ac_need_defaults=false;; 19196 --header | --heade | --head | --hea ) 19197 $ac_shift 19198 case $ac_optarg in 19199 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 19200 esac 19201 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 19202 ac_need_defaults=false;; 19203 --he | --h) 19204 # Conflict between --help and --header 19205 as_fn_error $? "ambiguous option: \`$1' 19206Try \`$0 --help' for more information.";; 19207 --help | --hel | -h ) 19208 $as_echo "$ac_cs_usage"; exit ;; 19209 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 19210 | -silent | --silent | --silen | --sile | --sil | --si | --s) 19211 ac_cs_silent=: ;; 19212 19213 # This is an error. 19214 -*) as_fn_error $? "unrecognized option: \`$1' 19215Try \`$0 --help' for more information." ;; 19216 19217 *) as_fn_append ac_config_targets " $1" 19218 ac_need_defaults=false ;; 19219 19220 esac 19221 shift 19222done 19223 19224ac_configure_extra_args= 19225 19226if $ac_cs_silent; then 19227 exec 6>/dev/null 19228 ac_configure_extra_args="$ac_configure_extra_args --silent" 19229fi 19230 19231_ACEOF 19232cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19233if \$ac_cs_recheck; then 19234 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 19235 shift 19236 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 19237 CONFIG_SHELL='$SHELL' 19238 export CONFIG_SHELL 19239 exec "\$@" 19240fi 19241 19242_ACEOF 19243cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19244exec 5>>config.log 19245{ 19246 echo 19247 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 19248## Running $as_me. ## 19249_ASBOX 19250 $as_echo "$ac_log" 19251} >&5 19252 19253_ACEOF 19254cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19255# 19256# INIT-COMMANDS 19257# 19258AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 19259 19260 19261# The HP-UX ksh and POSIX shell print the target directory to stdout 19262# if CDPATH is set. 19263(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 19264 19265sed_quote_subst='$sed_quote_subst' 19266double_quote_subst='$double_quote_subst' 19267delay_variable_subst='$delay_variable_subst' 19268macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 19269macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 19270enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 19271enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 19272pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 19273enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 19274SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 19275ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 19276PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 19277host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 19278host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 19279host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 19280build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 19281build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 19282build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 19283SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 19284Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 19285GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 19286EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 19287FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 19288LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 19289NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 19290LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 19291max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 19292ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 19293exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 19294lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 19295lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 19296lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 19297lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 19298lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 19299reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 19300reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 19301OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 19302deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 19303file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 19304file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 19305want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 19306DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 19307sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 19308AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 19309AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 19310archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 19311STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 19312RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 19313old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 19314old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 19315old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 19316lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 19317CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 19318CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 19319compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 19320GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 19321lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 19322lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 19323lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 19324lt_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"`' 19325nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 19326lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 19327objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 19328MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 19329lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 19330lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 19331lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 19332lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 19333lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 19334need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 19335MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 19336DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 19337NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 19338LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 19339OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 19340OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 19341libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 19342shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 19343extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 19344archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 19345enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 19346export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 19347whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 19348compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 19349old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 19350old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 19351archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 19352archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 19353module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 19354module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 19355with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 19356allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 19357no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 19358hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 19359hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 19360hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 19361hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 19362hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 19363hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 19364hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 19365inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 19366link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 19367always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 19368export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 19369exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 19370include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 19371prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 19372postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 19373file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 19374variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 19375need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 19376need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 19377version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 19378runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 19379shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 19380shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 19381libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 19382library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 19383soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 19384install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 19385postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 19386postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 19387finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 19388finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 19389hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 19390sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 19391sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`' 19392hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 19393enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 19394enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 19395enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 19396old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 19397striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 19398 19399LTCC='$LTCC' 19400LTCFLAGS='$LTCFLAGS' 19401compiler='$compiler_DEFAULT' 19402 19403# A function that is used when there is no print builtin or printf. 19404func_fallback_echo () 19405{ 19406 eval 'cat <<_LTECHO_EOF 19407\$1 19408_LTECHO_EOF' 19409} 19410 19411# Quote evaled strings. 19412for var in SHELL \ 19413ECHO \ 19414PATH_SEPARATOR \ 19415SED \ 19416GREP \ 19417EGREP \ 19418FGREP \ 19419LD \ 19420NM \ 19421LN_S \ 19422lt_SP2NL \ 19423lt_NL2SP \ 19424reload_flag \ 19425OBJDUMP \ 19426deplibs_check_method \ 19427file_magic_cmd \ 19428file_magic_glob \ 19429want_nocaseglob \ 19430DLLTOOL \ 19431sharedlib_from_linklib_cmd \ 19432AR \ 19433AR_FLAGS \ 19434archiver_list_spec \ 19435STRIP \ 19436RANLIB \ 19437CC \ 19438CFLAGS \ 19439compiler \ 19440lt_cv_sys_global_symbol_pipe \ 19441lt_cv_sys_global_symbol_to_cdecl \ 19442lt_cv_sys_global_symbol_to_c_name_address \ 19443lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 19444nm_file_list_spec \ 19445lt_prog_compiler_no_builtin_flag \ 19446lt_prog_compiler_pic \ 19447lt_prog_compiler_wl \ 19448lt_prog_compiler_static \ 19449lt_cv_prog_compiler_c_o \ 19450need_locks \ 19451MANIFEST_TOOL \ 19452DSYMUTIL \ 19453NMEDIT \ 19454LIPO \ 19455OTOOL \ 19456OTOOL64 \ 19457shrext_cmds \ 19458export_dynamic_flag_spec \ 19459whole_archive_flag_spec \ 19460compiler_needs_object \ 19461with_gnu_ld \ 19462allow_undefined_flag \ 19463no_undefined_flag \ 19464hardcode_libdir_flag_spec \ 19465hardcode_libdir_separator \ 19466exclude_expsyms \ 19467include_expsyms \ 19468file_list_spec \ 19469variables_saved_for_relink \ 19470libname_spec \ 19471library_names_spec \ 19472soname_spec \ 19473install_override_mode \ 19474finish_eval \ 19475old_striplib \ 19476striplib; do 19477 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 19478 *[\\\\\\\`\\"\\\$]*) 19479 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" 19480 ;; 19481 *) 19482 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 19483 ;; 19484 esac 19485done 19486 19487# Double-quote double-evaled strings. 19488for var in reload_cmds \ 19489old_postinstall_cmds \ 19490old_postuninstall_cmds \ 19491old_archive_cmds \ 19492extract_expsyms_cmds \ 19493old_archive_from_new_cmds \ 19494old_archive_from_expsyms_cmds \ 19495archive_cmds \ 19496archive_expsym_cmds \ 19497module_cmds \ 19498module_expsym_cmds \ 19499export_symbols_cmds \ 19500prelink_cmds \ 19501postlink_cmds \ 19502postinstall_cmds \ 19503postuninstall_cmds \ 19504finish_cmds \ 19505sys_lib_search_path_spec \ 19506sys_lib_dlsearch_path_spec; do 19507 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 19508 *[\\\\\\\`\\"\\\$]*) 19509 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" 19510 ;; 19511 *) 19512 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 19513 ;; 19514 esac 19515done 19516 19517ac_aux_dir='$ac_aux_dir' 19518xsi_shell='$xsi_shell' 19519lt_shell_append='$lt_shell_append' 19520 19521# See if we are running on zsh, and set the options which allow our 19522# commands through without removal of \ escapes INIT. 19523if test -n "\${ZSH_VERSION+set}" ; then 19524 setopt NO_GLOB_SUBST 19525fi 19526 19527 19528 PACKAGE='$PACKAGE' 19529 VERSION='$VERSION' 19530 TIMESTAMP='$TIMESTAMP' 19531 RM='$RM' 19532 ofile='$ofile' 19533 19534 19535 19536 19537_ACEOF 19538 19539cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19540 19541# Handling of arguments. 19542for ac_config_target in $ac_config_targets 19543do 19544 case $ac_config_target in 19545 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 19546 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 19547 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 19548 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 19549 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 19550 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 19551 "specs/Makefile") CONFIG_FILES="$CONFIG_FILES specs/Makefile" ;; 19552 "xext.pc") CONFIG_FILES="$CONFIG_FILES xext.pc" ;; 19553 19554 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 19555 esac 19556done 19557 19558 19559# If the user did not use the arguments to specify the items to instantiate, 19560# then the envvar interface is used. Set only those that are not. 19561# We use the long form for the default assignment because of an extremely 19562# bizarre bug on SunOS 4.1.3. 19563if $ac_need_defaults; then 19564 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 19565 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 19566 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 19567fi 19568 19569# Have a temporary directory for convenience. Make it in the build tree 19570# simply because there is no reason against having it here, and in addition, 19571# creating and moving files from /tmp can sometimes cause problems. 19572# Hook for its removal unless debugging. 19573# Note that there is a small window in which the directory will not be cleaned: 19574# after its creation but before its name has been assigned to `$tmp'. 19575$debug || 19576{ 19577 tmp= ac_tmp= 19578 trap 'exit_status=$? 19579 : "${ac_tmp:=$tmp}" 19580 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 19581' 0 19582 trap 'as_fn_exit 1' 1 2 13 15 19583} 19584# Create a (secure) tmp directory for tmp files. 19585 19586{ 19587 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 19588 test -d "$tmp" 19589} || 19590{ 19591 tmp=./conf$$-$RANDOM 19592 (umask 077 && mkdir "$tmp") 19593} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 19594ac_tmp=$tmp 19595 19596# Set up the scripts for CONFIG_FILES section. 19597# No need to generate them if there are no CONFIG_FILES. 19598# This happens for instance with `./config.status config.h'. 19599if test -n "$CONFIG_FILES"; then 19600 19601 19602ac_cr=`echo X | tr X '\015'` 19603# On cygwin, bash can eat \r inside `` if the user requested igncr. 19604# But we know of no other shell where ac_cr would be empty at this 19605# point, so we can use a bashism as a fallback. 19606if test "x$ac_cr" = x; then 19607 eval ac_cr=\$\'\\r\' 19608fi 19609ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 19610if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 19611 ac_cs_awk_cr='\\r' 19612else 19613 ac_cs_awk_cr=$ac_cr 19614fi 19615 19616echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 19617_ACEOF 19618 19619 19620{ 19621 echo "cat >conf$$subs.awk <<_ACEOF" && 19622 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 19623 echo "_ACEOF" 19624} >conf$$subs.sh || 19625 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 19626ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 19627ac_delim='%!_!# ' 19628for ac_last_try in false false false false false :; do 19629 . ./conf$$subs.sh || 19630 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 19631 19632 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 19633 if test $ac_delim_n = $ac_delim_num; then 19634 break 19635 elif $ac_last_try; then 19636 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 19637 else 19638 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 19639 fi 19640done 19641rm -f conf$$subs.sh 19642 19643cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19644cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 19645_ACEOF 19646sed -n ' 19647h 19648s/^/S["/; s/!.*/"]=/ 19649p 19650g 19651s/^[^!]*!// 19652:repl 19653t repl 19654s/'"$ac_delim"'$// 19655t delim 19656:nl 19657h 19658s/\(.\{148\}\)..*/\1/ 19659t more1 19660s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 19661p 19662n 19663b repl 19664:more1 19665s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 19666p 19667g 19668s/.\{148\}// 19669t nl 19670:delim 19671h 19672s/\(.\{148\}\)..*/\1/ 19673t more2 19674s/["\\]/\\&/g; s/^/"/; s/$/"/ 19675p 19676b 19677:more2 19678s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 19679p 19680g 19681s/.\{148\}// 19682t delim 19683' <conf$$subs.awk | sed ' 19684/^[^""]/{ 19685 N 19686 s/\n// 19687} 19688' >>$CONFIG_STATUS || ac_write_fail=1 19689rm -f conf$$subs.awk 19690cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19691_ACAWK 19692cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 19693 for (key in S) S_is_set[key] = 1 19694 FS = "" 19695 19696} 19697{ 19698 line = $ 0 19699 nfields = split(line, field, "@") 19700 substed = 0 19701 len = length(field[1]) 19702 for (i = 2; i < nfields; i++) { 19703 key = field[i] 19704 keylen = length(key) 19705 if (S_is_set[key]) { 19706 value = S[key] 19707 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 19708 len += length(value) + length(field[++i]) 19709 substed = 1 19710 } else 19711 len += 1 + keylen 19712 } 19713 19714 print line 19715} 19716 19717_ACAWK 19718_ACEOF 19719cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19720if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 19721 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 19722else 19723 cat 19724fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 19725 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 19726_ACEOF 19727 19728# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 19729# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 19730# trailing colons and then remove the whole line if VPATH becomes empty 19731# (actually we leave an empty line to preserve line numbers). 19732if test "x$srcdir" = x.; then 19733 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 19734h 19735s/// 19736s/^/:/ 19737s/[ ]*$/:/ 19738s/:\$(srcdir):/:/g 19739s/:\${srcdir}:/:/g 19740s/:@srcdir@:/:/g 19741s/^:*// 19742s/:*$// 19743x 19744s/\(=[ ]*\).*/\1/ 19745G 19746s/\n// 19747s/^[^=]*=[ ]*$// 19748}' 19749fi 19750 19751cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19752fi # test -n "$CONFIG_FILES" 19753 19754# Set up the scripts for CONFIG_HEADERS section. 19755# No need to generate them if there are no CONFIG_HEADERS. 19756# This happens for instance with `./config.status Makefile'. 19757if test -n "$CONFIG_HEADERS"; then 19758cat >"$ac_tmp/defines.awk" <<\_ACAWK || 19759BEGIN { 19760_ACEOF 19761 19762# Transform confdefs.h into an awk script `defines.awk', embedded as 19763# here-document in config.status, that substitutes the proper values into 19764# config.h.in to produce config.h. 19765 19766# Create a delimiter string that does not exist in confdefs.h, to ease 19767# handling of long lines. 19768ac_delim='%!_!# ' 19769for ac_last_try in false false :; do 19770 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 19771 if test -z "$ac_tt"; then 19772 break 19773 elif $ac_last_try; then 19774 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 19775 else 19776 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 19777 fi 19778done 19779 19780# For the awk script, D is an array of macro values keyed by name, 19781# likewise P contains macro parameters if any. Preserve backslash 19782# newline sequences. 19783 19784ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 19785sed -n ' 19786s/.\{148\}/&'"$ac_delim"'/g 19787t rset 19788:rset 19789s/^[ ]*#[ ]*define[ ][ ]*/ / 19790t def 19791d 19792:def 19793s/\\$// 19794t bsnl 19795s/["\\]/\\&/g 19796s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 19797D["\1"]=" \3"/p 19798s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 19799d 19800:bsnl 19801s/["\\]/\\&/g 19802s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 19803D["\1"]=" \3\\\\\\n"\\/p 19804t cont 19805s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 19806t cont 19807d 19808:cont 19809n 19810s/.\{148\}/&'"$ac_delim"'/g 19811t clear 19812:clear 19813s/\\$// 19814t bsnlc 19815s/["\\]/\\&/g; s/^/"/; s/$/"/p 19816d 19817:bsnlc 19818s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 19819b cont 19820' <confdefs.h | sed ' 19821s/'"$ac_delim"'/"\\\ 19822"/g' >>$CONFIG_STATUS || ac_write_fail=1 19823 19824cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19825 for (key in D) D_is_set[key] = 1 19826 FS = "" 19827} 19828/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 19829 line = \$ 0 19830 split(line, arg, " ") 19831 if (arg[1] == "#") { 19832 defundef = arg[2] 19833 mac1 = arg[3] 19834 } else { 19835 defundef = substr(arg[1], 2) 19836 mac1 = arg[2] 19837 } 19838 split(mac1, mac2, "(") #) 19839 macro = mac2[1] 19840 prefix = substr(line, 1, index(line, defundef) - 1) 19841 if (D_is_set[macro]) { 19842 # Preserve the white space surrounding the "#". 19843 print prefix "define", macro P[macro] D[macro] 19844 next 19845 } else { 19846 # Replace #undef with comments. This is necessary, for example, 19847 # in the case of _POSIX_SOURCE, which is predefined and required 19848 # on some systems where configure will not decide to define it. 19849 if (defundef == "undef") { 19850 print "/*", prefix defundef, macro, "*/" 19851 next 19852 } 19853 } 19854} 19855{ print } 19856_ACAWK 19857_ACEOF 19858cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19859 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 19860fi # test -n "$CONFIG_HEADERS" 19861 19862 19863eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 19864shift 19865for ac_tag 19866do 19867 case $ac_tag in 19868 :[FHLC]) ac_mode=$ac_tag; continue;; 19869 esac 19870 case $ac_mode$ac_tag in 19871 :[FHL]*:*);; 19872 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 19873 :[FH]-) ac_tag=-:-;; 19874 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 19875 esac 19876 ac_save_IFS=$IFS 19877 IFS=: 19878 set x $ac_tag 19879 IFS=$ac_save_IFS 19880 shift 19881 ac_file=$1 19882 shift 19883 19884 case $ac_mode in 19885 :L) ac_source=$1;; 19886 :[FH]) 19887 ac_file_inputs= 19888 for ac_f 19889 do 19890 case $ac_f in 19891 -) ac_f="$ac_tmp/stdin";; 19892 *) # Look for the file first in the build tree, then in the source tree 19893 # (if the path is not absolute). The absolute path cannot be DOS-style, 19894 # because $ac_f cannot contain `:'. 19895 test -f "$ac_f" || 19896 case $ac_f in 19897 [\\/$]*) false;; 19898 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 19899 esac || 19900 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 19901 esac 19902 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 19903 as_fn_append ac_file_inputs " '$ac_f'" 19904 done 19905 19906 # Let's still pretend it is `configure' which instantiates (i.e., don't 19907 # use $as_me), people would be surprised to read: 19908 # /* config.h. Generated by config.status. */ 19909 configure_input='Generated from '` 19910 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 19911 `' by configure.' 19912 if test x"$ac_file" != x-; then 19913 configure_input="$ac_file. $configure_input" 19914 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 19915$as_echo "$as_me: creating $ac_file" >&6;} 19916 fi 19917 # Neutralize special characters interpreted by sed in replacement strings. 19918 case $configure_input in #( 19919 *\&* | *\|* | *\\* ) 19920 ac_sed_conf_input=`$as_echo "$configure_input" | 19921 sed 's/[\\\\&|]/\\\\&/g'`;; #( 19922 *) ac_sed_conf_input=$configure_input;; 19923 esac 19924 19925 case $ac_tag in 19926 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 19927 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 19928 esac 19929 ;; 19930 esac 19931 19932 ac_dir=`$as_dirname -- "$ac_file" || 19933$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 19934 X"$ac_file" : 'X\(//\)[^/]' \| \ 19935 X"$ac_file" : 'X\(//\)$' \| \ 19936 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 19937$as_echo X"$ac_file" | 19938 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 19939 s//\1/ 19940 q 19941 } 19942 /^X\(\/\/\)[^/].*/{ 19943 s//\1/ 19944 q 19945 } 19946 /^X\(\/\/\)$/{ 19947 s//\1/ 19948 q 19949 } 19950 /^X\(\/\).*/{ 19951 s//\1/ 19952 q 19953 } 19954 s/.*/./; q'` 19955 as_dir="$ac_dir"; as_fn_mkdir_p 19956 ac_builddir=. 19957 19958case "$ac_dir" in 19959.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 19960*) 19961 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 19962 # A ".." for each directory in $ac_dir_suffix. 19963 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 19964 case $ac_top_builddir_sub in 19965 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 19966 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 19967 esac ;; 19968esac 19969ac_abs_top_builddir=$ac_pwd 19970ac_abs_builddir=$ac_pwd$ac_dir_suffix 19971# for backward compatibility: 19972ac_top_builddir=$ac_top_build_prefix 19973 19974case $srcdir in 19975 .) # We are building in place. 19976 ac_srcdir=. 19977 ac_top_srcdir=$ac_top_builddir_sub 19978 ac_abs_top_srcdir=$ac_pwd ;; 19979 [\\/]* | ?:[\\/]* ) # Absolute name. 19980 ac_srcdir=$srcdir$ac_dir_suffix; 19981 ac_top_srcdir=$srcdir 19982 ac_abs_top_srcdir=$srcdir ;; 19983 *) # Relative name. 19984 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 19985 ac_top_srcdir=$ac_top_build_prefix$srcdir 19986 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 19987esac 19988ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 19989 19990 19991 case $ac_mode in 19992 :F) 19993 # 19994 # CONFIG_FILE 19995 # 19996 19997 case $INSTALL in 19998 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 19999 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 20000 esac 20001 ac_MKDIR_P=$MKDIR_P 20002 case $MKDIR_P in 20003 [\\/$]* | ?:[\\/]* ) ;; 20004 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 20005 esac 20006_ACEOF 20007 20008cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20009# If the template does not know about datarootdir, expand it. 20010# FIXME: This hack should be removed a few years after 2.60. 20011ac_datarootdir_hack=; ac_datarootdir_seen= 20012ac_sed_dataroot=' 20013/datarootdir/ { 20014 p 20015 q 20016} 20017/@datadir@/p 20018/@docdir@/p 20019/@infodir@/p 20020/@localedir@/p 20021/@mandir@/p' 20022case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 20023*datarootdir*) ac_datarootdir_seen=yes;; 20024*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 20025 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 20026$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 20027_ACEOF 20028cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20029 ac_datarootdir_hack=' 20030 s&@datadir@&$datadir&g 20031 s&@docdir@&$docdir&g 20032 s&@infodir@&$infodir&g 20033 s&@localedir@&$localedir&g 20034 s&@mandir@&$mandir&g 20035 s&\\\${datarootdir}&$datarootdir&g' ;; 20036esac 20037_ACEOF 20038 20039# Neutralize VPATH when `$srcdir' = `.'. 20040# Shell code in configure.ac might set extrasub. 20041# FIXME: do we really want to maintain this feature? 20042cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20043ac_sed_extra="$ac_vpsub 20044$extrasub 20045_ACEOF 20046cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20047:t 20048/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 20049s|@configure_input@|$ac_sed_conf_input|;t t 20050s&@top_builddir@&$ac_top_builddir_sub&;t t 20051s&@top_build_prefix@&$ac_top_build_prefix&;t t 20052s&@srcdir@&$ac_srcdir&;t t 20053s&@abs_srcdir@&$ac_abs_srcdir&;t t 20054s&@top_srcdir@&$ac_top_srcdir&;t t 20055s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 20056s&@builddir@&$ac_builddir&;t t 20057s&@abs_builddir@&$ac_abs_builddir&;t t 20058s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 20059s&@INSTALL@&$ac_INSTALL&;t t 20060s&@MKDIR_P@&$ac_MKDIR_P&;t t 20061$ac_datarootdir_hack 20062" 20063eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 20064 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 20065 20066test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 20067 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 20068 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 20069 "$ac_tmp/out"`; test -z "$ac_out"; } && 20070 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 20071which seems to be undefined. Please make sure it is defined" >&5 20072$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 20073which seems to be undefined. Please make sure it is defined" >&2;} 20074 20075 rm -f "$ac_tmp/stdin" 20076 case $ac_file in 20077 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 20078 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 20079 esac \ 20080 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 20081 ;; 20082 :H) 20083 # 20084 # CONFIG_HEADER 20085 # 20086 if test x"$ac_file" != x-; then 20087 { 20088 $as_echo "/* $configure_input */" \ 20089 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 20090 } >"$ac_tmp/config.h" \ 20091 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 20092 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 20093 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 20094$as_echo "$as_me: $ac_file is unchanged" >&6;} 20095 else 20096 rm -f "$ac_file" 20097 mv "$ac_tmp/config.h" "$ac_file" \ 20098 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 20099 fi 20100 else 20101 $as_echo "/* $configure_input */" \ 20102 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 20103 || as_fn_error $? "could not create -" "$LINENO" 5 20104 fi 20105# Compute "$ac_file"'s index in $config_headers. 20106_am_arg="$ac_file" 20107_am_stamp_count=1 20108for _am_header in $config_headers :; do 20109 case $_am_header in 20110 $_am_arg | $_am_arg:* ) 20111 break ;; 20112 * ) 20113 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 20114 esac 20115done 20116echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 20117$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20118 X"$_am_arg" : 'X\(//\)[^/]' \| \ 20119 X"$_am_arg" : 'X\(//\)$' \| \ 20120 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 20121$as_echo X"$_am_arg" | 20122 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 20123 s//\1/ 20124 q 20125 } 20126 /^X\(\/\/\)[^/].*/{ 20127 s//\1/ 20128 q 20129 } 20130 /^X\(\/\/\)$/{ 20131 s//\1/ 20132 q 20133 } 20134 /^X\(\/\).*/{ 20135 s//\1/ 20136 q 20137 } 20138 s/.*/./; q'`/stamp-h$_am_stamp_count 20139 ;; 20140 20141 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 20142$as_echo "$as_me: executing $ac_file commands" >&6;} 20143 ;; 20144 esac 20145 20146 20147 case $ac_file$ac_mode in 20148 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 20149 # Older Autoconf quotes --file arguments for eval, but not when files 20150 # are listed without --file. Let's play safe and only enable the eval 20151 # if we detect the quoting. 20152 case $CONFIG_FILES in 20153 *\'*) eval set x "$CONFIG_FILES" ;; 20154 *) set x $CONFIG_FILES ;; 20155 esac 20156 shift 20157 for mf 20158 do 20159 # Strip MF so we end up with the name of the file. 20160 mf=`echo "$mf" | sed -e 's/:.*$//'` 20161 # Check whether this is an Automake generated Makefile or not. 20162 # We used to match only the files named 'Makefile.in', but 20163 # some people rename them; so instead we look at the file content. 20164 # Grep'ing the first line is not enough: some people post-process 20165 # each Makefile.in and add a new line on top of each file to say so. 20166 # Grep'ing the whole file is not good either: AIX grep has a line 20167 # limit of 2048, but all sed's we know have understand at least 4000. 20168 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 20169 dirpart=`$as_dirname -- "$mf" || 20170$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20171 X"$mf" : 'X\(//\)[^/]' \| \ 20172 X"$mf" : 'X\(//\)$' \| \ 20173 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 20174$as_echo X"$mf" | 20175 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 20176 s//\1/ 20177 q 20178 } 20179 /^X\(\/\/\)[^/].*/{ 20180 s//\1/ 20181 q 20182 } 20183 /^X\(\/\/\)$/{ 20184 s//\1/ 20185 q 20186 } 20187 /^X\(\/\).*/{ 20188 s//\1/ 20189 q 20190 } 20191 s/.*/./; q'` 20192 else 20193 continue 20194 fi 20195 # Extract the definition of DEPDIR, am__include, and am__quote 20196 # from the Makefile without running 'make'. 20197 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 20198 test -z "$DEPDIR" && continue 20199 am__include=`sed -n 's/^am__include = //p' < "$mf"` 20200 test -z "$am__include" && continue 20201 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 20202 # Find all dependency output files, they are included files with 20203 # $(DEPDIR) in their names. We invoke sed twice because it is the 20204 # simplest approach to changing $(DEPDIR) to its actual value in the 20205 # expansion. 20206 for file in `sed -n " 20207 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 20208 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do 20209 # Make sure the directory exists. 20210 test -f "$dirpart/$file" && continue 20211 fdir=`$as_dirname -- "$file" || 20212$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20213 X"$file" : 'X\(//\)[^/]' \| \ 20214 X"$file" : 'X\(//\)$' \| \ 20215 X"$file" : 'X\(/\)' \| . 2>/dev/null || 20216$as_echo X"$file" | 20217 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 20218 s//\1/ 20219 q 20220 } 20221 /^X\(\/\/\)[^/].*/{ 20222 s//\1/ 20223 q 20224 } 20225 /^X\(\/\/\)$/{ 20226 s//\1/ 20227 q 20228 } 20229 /^X\(\/\).*/{ 20230 s//\1/ 20231 q 20232 } 20233 s/.*/./; q'` 20234 as_dir=$dirpart/$fdir; as_fn_mkdir_p 20235 # echo "creating $dirpart/$file" 20236 echo '# dummy' > "$dirpart/$file" 20237 done 20238 done 20239} 20240 ;; 20241 "libtool":C) 20242 20243 # See if we are running on zsh, and set the options which allow our 20244 # commands through without removal of \ escapes. 20245 if test -n "${ZSH_VERSION+set}" ; then 20246 setopt NO_GLOB_SUBST 20247 fi 20248 20249 cfgfile="${ofile}T" 20250 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 20251 $RM "$cfgfile" 20252 20253 cat <<_LT_EOF >> "$cfgfile" 20254#! $SHELL 20255 20256# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 20257# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION 20258# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 20259# NOTE: Changes made to this file will be lost: look at ltmain.sh. 20260# 20261# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 20262# 2006, 2007, 2008, 2009, 2010, 2011 Free Software 20263# Foundation, Inc. 20264# Written by Gordon Matzigkeit, 1996 20265# 20266# This file is part of GNU Libtool. 20267# 20268# GNU Libtool is free software; you can redistribute it and/or 20269# modify it under the terms of the GNU General Public License as 20270# published by the Free Software Foundation; either version 2 of 20271# the License, or (at your option) any later version. 20272# 20273# As a special exception to the GNU General Public License, 20274# if you distribute this file as part of a program or library that 20275# is built using GNU Libtool, you may include this file under the 20276# same distribution terms that you use for the rest of that program. 20277# 20278# GNU Libtool is distributed in the hope that it will be useful, 20279# but WITHOUT ANY WARRANTY; without even the implied warranty of 20280# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 20281# GNU General Public License for more details. 20282# 20283# You should have received a copy of the GNU General Public License 20284# along with GNU Libtool; see the file COPYING. If not, a copy 20285# can be downloaded from http://www.gnu.org/licenses/gpl.html, or 20286# obtained by writing to the Free Software Foundation, Inc., 20287# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 20288 20289 20290# The names of the tagged configurations supported by this script. 20291available_tags="" 20292 20293# ### BEGIN LIBTOOL CONFIG 20294 20295# Which release of libtool.m4 was used? 20296macro_version=$macro_version 20297macro_revision=$macro_revision 20298 20299# Whether or not to build shared libraries. 20300build_libtool_libs=$enable_shared 20301 20302# Whether or not to build static libraries. 20303build_old_libs=$enable_static 20304 20305# What type of objects to build. 20306pic_mode=$pic_mode 20307 20308# Whether or not to optimize for fast installation. 20309fast_install=$enable_fast_install 20310 20311# Shell to use when invoking shell scripts. 20312SHELL=$lt_SHELL 20313 20314# An echo program that protects backslashes. 20315ECHO=$lt_ECHO 20316 20317# The PATH separator for the build system. 20318PATH_SEPARATOR=$lt_PATH_SEPARATOR 20319 20320# The host system. 20321host_alias=$host_alias 20322host=$host 20323host_os=$host_os 20324 20325# The build system. 20326build_alias=$build_alias 20327build=$build 20328build_os=$build_os 20329 20330# A sed program that does not truncate output. 20331SED=$lt_SED 20332 20333# Sed that helps us avoid accidentally triggering echo(1) options like -n. 20334Xsed="\$SED -e 1s/^X//" 20335 20336# A grep program that handles long lines. 20337GREP=$lt_GREP 20338 20339# An ERE matcher. 20340EGREP=$lt_EGREP 20341 20342# A literal string matcher. 20343FGREP=$lt_FGREP 20344 20345# A BSD- or MS-compatible name lister. 20346NM=$lt_NM 20347 20348# Whether we need soft or hard links. 20349LN_S=$lt_LN_S 20350 20351# What is the maximum length of a command? 20352max_cmd_len=$max_cmd_len 20353 20354# Object file suffix (normally "o"). 20355objext=$ac_objext 20356 20357# Executable file suffix (normally ""). 20358exeext=$exeext 20359 20360# whether the shell understands "unset". 20361lt_unset=$lt_unset 20362 20363# turn spaces into newlines. 20364SP2NL=$lt_lt_SP2NL 20365 20366# turn newlines into spaces. 20367NL2SP=$lt_lt_NL2SP 20368 20369# convert \$build file names to \$host format. 20370to_host_file_cmd=$lt_cv_to_host_file_cmd 20371 20372# convert \$build files to toolchain format. 20373to_tool_file_cmd=$lt_cv_to_tool_file_cmd 20374 20375# An object symbol dumper. 20376OBJDUMP=$lt_OBJDUMP 20377 20378# Method to check whether dependent libraries are shared objects. 20379deplibs_check_method=$lt_deplibs_check_method 20380 20381# Command to use when deplibs_check_method = "file_magic". 20382file_magic_cmd=$lt_file_magic_cmd 20383 20384# How to find potential files when deplibs_check_method = "file_magic". 20385file_magic_glob=$lt_file_magic_glob 20386 20387# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 20388want_nocaseglob=$lt_want_nocaseglob 20389 20390# DLL creation program. 20391DLLTOOL=$lt_DLLTOOL 20392 20393# Command to associate shared and link libraries. 20394sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 20395 20396# The archiver. 20397AR=$lt_AR 20398 20399# Flags to create an archive. 20400AR_FLAGS=$lt_AR_FLAGS 20401 20402# How to feed a file listing to the archiver. 20403archiver_list_spec=$lt_archiver_list_spec 20404 20405# A symbol stripping program. 20406STRIP=$lt_STRIP 20407 20408# Commands used to install an old-style archive. 20409RANLIB=$lt_RANLIB 20410old_postinstall_cmds=$lt_old_postinstall_cmds 20411old_postuninstall_cmds=$lt_old_postuninstall_cmds 20412 20413# Whether to use a lock for old archive extraction. 20414lock_old_archive_extraction=$lock_old_archive_extraction 20415 20416# A C compiler. 20417LTCC=$lt_CC 20418 20419# LTCC compiler flags. 20420LTCFLAGS=$lt_CFLAGS 20421 20422# Take the output of nm and produce a listing of raw symbols and C names. 20423global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 20424 20425# Transform the output of nm in a proper C declaration. 20426global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 20427 20428# Transform the output of nm in a C name address pair. 20429global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 20430 20431# Transform the output of nm in a C name address pair when lib prefix is needed. 20432global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 20433 20434# Specify filename containing input files for \$NM. 20435nm_file_list_spec=$lt_nm_file_list_spec 20436 20437# The root where to search for dependent libraries,and in which our libraries should be installed. 20438lt_sysroot=$lt_sysroot 20439 20440# The name of the directory that contains temporary libtool files. 20441objdir=$objdir 20442 20443# Used to examine libraries when file_magic_cmd begins with "file". 20444MAGIC_CMD=$MAGIC_CMD 20445 20446# Must we lock files when doing compilation? 20447need_locks=$lt_need_locks 20448 20449# Manifest tool. 20450MANIFEST_TOOL=$lt_MANIFEST_TOOL 20451 20452# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 20453DSYMUTIL=$lt_DSYMUTIL 20454 20455# Tool to change global to local symbols on Mac OS X. 20456NMEDIT=$lt_NMEDIT 20457 20458# Tool to manipulate fat objects and archives on Mac OS X. 20459LIPO=$lt_LIPO 20460 20461# ldd/readelf like tool for Mach-O binaries on Mac OS X. 20462OTOOL=$lt_OTOOL 20463 20464# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 20465OTOOL64=$lt_OTOOL64 20466 20467# Old archive suffix (normally "a"). 20468libext=$libext 20469 20470# Shared library suffix (normally ".so"). 20471shrext_cmds=$lt_shrext_cmds 20472 20473# The commands to extract the exported symbol list from a shared archive. 20474extract_expsyms_cmds=$lt_extract_expsyms_cmds 20475 20476# Variables whose values should be saved in libtool wrapper scripts and 20477# restored at link time. 20478variables_saved_for_relink=$lt_variables_saved_for_relink 20479 20480# Do we need the "lib" prefix for modules? 20481need_lib_prefix=$need_lib_prefix 20482 20483# Do we need a version for libraries? 20484need_version=$need_version 20485 20486# Library versioning type. 20487version_type=$version_type 20488 20489# Shared library runtime path variable. 20490runpath_var=$runpath_var 20491 20492# Shared library path variable. 20493shlibpath_var=$shlibpath_var 20494 20495# Is shlibpath searched before the hard-coded library search path? 20496shlibpath_overrides_runpath=$shlibpath_overrides_runpath 20497 20498# Format of library name prefix. 20499libname_spec=$lt_libname_spec 20500 20501# List of archive names. First name is the real one, the rest are links. 20502# The last name is the one that the linker finds with -lNAME 20503library_names_spec=$lt_library_names_spec 20504 20505# The coded name of the library, if different from the real name. 20506soname_spec=$lt_soname_spec 20507 20508# Permission mode override for installation of shared libraries. 20509install_override_mode=$lt_install_override_mode 20510 20511# Command to use after installation of a shared archive. 20512postinstall_cmds=$lt_postinstall_cmds 20513 20514# Command to use after uninstallation of a shared archive. 20515postuninstall_cmds=$lt_postuninstall_cmds 20516 20517# Commands used to finish a libtool library installation in a directory. 20518finish_cmds=$lt_finish_cmds 20519 20520# As "finish_cmds", except a single script fragment to be evaled but 20521# not shown. 20522finish_eval=$lt_finish_eval 20523 20524# Whether we should hardcode library paths into libraries. 20525hardcode_into_libs=$hardcode_into_libs 20526 20527# Compile-time system search path for libraries. 20528sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 20529 20530# Run-time system search path for libraries. 20531sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 20532 20533# Whether dlopen is supported. 20534dlopen_support=$enable_dlopen 20535 20536# Whether dlopen of programs is supported. 20537dlopen_self=$enable_dlopen_self 20538 20539# Whether dlopen of statically linked programs is supported. 20540dlopen_self_static=$enable_dlopen_self_static 20541 20542# Commands to strip libraries. 20543old_striplib=$lt_old_striplib 20544striplib=$lt_striplib 20545 20546 20547# The linker used to build libraries. 20548LD=$lt_LD 20549 20550# How to create reloadable object files. 20551reload_flag=$lt_reload_flag 20552reload_cmds=$lt_reload_cmds 20553 20554# Commands used to build an old-style archive. 20555old_archive_cmds=$lt_old_archive_cmds 20556 20557# A language specific compiler. 20558CC=$lt_compiler 20559 20560# Is the compiler the GNU compiler? 20561with_gcc=$GCC 20562 20563# Compiler flag to turn off builtin functions. 20564no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 20565 20566# Additional compiler flags for building library objects. 20567pic_flag=$lt_lt_prog_compiler_pic 20568 20569# How to pass a linker flag through the compiler. 20570wl=$lt_lt_prog_compiler_wl 20571 20572# Compiler flag to prevent dynamic linking. 20573link_static_flag=$lt_lt_prog_compiler_static 20574 20575# Does compiler simultaneously support -c and -o options? 20576compiler_c_o=$lt_lt_cv_prog_compiler_c_o 20577 20578# Whether or not to add -lc for building shared libraries. 20579build_libtool_need_lc=$archive_cmds_need_lc 20580 20581# Whether or not to disallow shared libs when runtime libs are static. 20582allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 20583 20584# Compiler flag to allow reflexive dlopens. 20585export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 20586 20587# Compiler flag to generate shared objects directly from archives. 20588whole_archive_flag_spec=$lt_whole_archive_flag_spec 20589 20590# Whether the compiler copes with passing no objects directly. 20591compiler_needs_object=$lt_compiler_needs_object 20592 20593# Create an old-style archive from a shared archive. 20594old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 20595 20596# Create a temporary old-style archive to link instead of a shared archive. 20597old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 20598 20599# Commands used to build a shared archive. 20600archive_cmds=$lt_archive_cmds 20601archive_expsym_cmds=$lt_archive_expsym_cmds 20602 20603# Commands used to build a loadable module if different from building 20604# a shared archive. 20605module_cmds=$lt_module_cmds 20606module_expsym_cmds=$lt_module_expsym_cmds 20607 20608# Whether we are building with GNU ld or not. 20609with_gnu_ld=$lt_with_gnu_ld 20610 20611# Flag that allows shared libraries with undefined symbols to be built. 20612allow_undefined_flag=$lt_allow_undefined_flag 20613 20614# Flag that enforces no undefined symbols. 20615no_undefined_flag=$lt_no_undefined_flag 20616 20617# Flag to hardcode \$libdir into a binary during linking. 20618# This must work even if \$libdir does not exist 20619hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 20620 20621# Whether we need a single "-rpath" flag with a separated argument. 20622hardcode_libdir_separator=$lt_hardcode_libdir_separator 20623 20624# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 20625# DIR into the resulting binary. 20626hardcode_direct=$hardcode_direct 20627 20628# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 20629# DIR into the resulting binary and the resulting library dependency is 20630# "absolute",i.e impossible to change by setting \${shlibpath_var} if the 20631# library is relocated. 20632hardcode_direct_absolute=$hardcode_direct_absolute 20633 20634# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 20635# into the resulting binary. 20636hardcode_minus_L=$hardcode_minus_L 20637 20638# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 20639# into the resulting binary. 20640hardcode_shlibpath_var=$hardcode_shlibpath_var 20641 20642# Set to "yes" if building a shared library automatically hardcodes DIR 20643# into the library and all subsequent libraries and executables linked 20644# against it. 20645hardcode_automatic=$hardcode_automatic 20646 20647# Set to yes if linker adds runtime paths of dependent libraries 20648# to runtime path list. 20649inherit_rpath=$inherit_rpath 20650 20651# Whether libtool must link a program against all its dependency libraries. 20652link_all_deplibs=$link_all_deplibs 20653 20654# Set to "yes" if exported symbols are required. 20655always_export_symbols=$always_export_symbols 20656 20657# The commands to list exported symbols. 20658export_symbols_cmds=$lt_export_symbols_cmds 20659 20660# Symbols that should not be listed in the preloaded symbols. 20661exclude_expsyms=$lt_exclude_expsyms 20662 20663# Symbols that must always be exported. 20664include_expsyms=$lt_include_expsyms 20665 20666# Commands necessary for linking programs (against libraries) with templates. 20667prelink_cmds=$lt_prelink_cmds 20668 20669# Commands necessary for finishing linking programs. 20670postlink_cmds=$lt_postlink_cmds 20671 20672# Specify filename containing input files. 20673file_list_spec=$lt_file_list_spec 20674 20675# How to hardcode a shared library path into an executable. 20676hardcode_action=$hardcode_action 20677 20678# ### END LIBTOOL CONFIG 20679 20680_LT_EOF 20681 20682 case $host_os in 20683 aix3*) 20684 cat <<\_LT_EOF >> "$cfgfile" 20685# AIX sometimes has problems with the GCC collect2 program. For some 20686# reason, if we set the COLLECT_NAMES environment variable, the problems 20687# vanish in a puff of smoke. 20688if test "X${COLLECT_NAMES+set}" != Xset; then 20689 COLLECT_NAMES= 20690 export COLLECT_NAMES 20691fi 20692_LT_EOF 20693 ;; 20694 esac 20695 20696 20697ltmain="$ac_aux_dir/ltmain.sh" 20698 20699 20700 # We use sed instead of cat because bash on DJGPP gets confused if 20701 # if finds mixed CR/LF and LF-only lines. Since sed operates in 20702 # text mode, it properly converts lines to CR/LF. This bash problem 20703 # is reportedly fixed, but why not run on old versions too? 20704 sed '$q' "$ltmain" >> "$cfgfile" \ 20705 || (rm -f "$cfgfile"; exit 1) 20706 20707 if test x"$xsi_shell" = xyes; then 20708 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\ 20709func_dirname ()\ 20710{\ 20711\ case ${1} in\ 20712\ */*) func_dirname_result="${1%/*}${2}" ;;\ 20713\ * ) func_dirname_result="${3}" ;;\ 20714\ esac\ 20715} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \ 20716 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20717 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20718test 0 -eq $? || _lt_function_replace_fail=: 20719 20720 20721 sed -e '/^func_basename ()$/,/^} # func_basename /c\ 20722func_basename ()\ 20723{\ 20724\ func_basename_result="${1##*/}"\ 20725} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \ 20726 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20727 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20728test 0 -eq $? || _lt_function_replace_fail=: 20729 20730 20731 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\ 20732func_dirname_and_basename ()\ 20733{\ 20734\ case ${1} in\ 20735\ */*) func_dirname_result="${1%/*}${2}" ;;\ 20736\ * ) func_dirname_result="${3}" ;;\ 20737\ esac\ 20738\ func_basename_result="${1##*/}"\ 20739} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \ 20740 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20741 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20742test 0 -eq $? || _lt_function_replace_fail=: 20743 20744 20745 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\ 20746func_stripname ()\ 20747{\ 20748\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\ 20749\ # positional parameters, so assign one to ordinary parameter first.\ 20750\ func_stripname_result=${3}\ 20751\ func_stripname_result=${func_stripname_result#"${1}"}\ 20752\ func_stripname_result=${func_stripname_result%"${2}"}\ 20753} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \ 20754 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20755 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20756test 0 -eq $? || _lt_function_replace_fail=: 20757 20758 20759 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\ 20760func_split_long_opt ()\ 20761{\ 20762\ func_split_long_opt_name=${1%%=*}\ 20763\ func_split_long_opt_arg=${1#*=}\ 20764} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \ 20765 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20766 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20767test 0 -eq $? || _lt_function_replace_fail=: 20768 20769 20770 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\ 20771func_split_short_opt ()\ 20772{\ 20773\ func_split_short_opt_arg=${1#??}\ 20774\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\ 20775} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \ 20776 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20777 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20778test 0 -eq $? || _lt_function_replace_fail=: 20779 20780 20781 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\ 20782func_lo2o ()\ 20783{\ 20784\ case ${1} in\ 20785\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\ 20786\ *) func_lo2o_result=${1} ;;\ 20787\ esac\ 20788} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \ 20789 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20790 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20791test 0 -eq $? || _lt_function_replace_fail=: 20792 20793 20794 sed -e '/^func_xform ()$/,/^} # func_xform /c\ 20795func_xform ()\ 20796{\ 20797 func_xform_result=${1%.*}.lo\ 20798} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \ 20799 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20800 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20801test 0 -eq $? || _lt_function_replace_fail=: 20802 20803 20804 sed -e '/^func_arith ()$/,/^} # func_arith /c\ 20805func_arith ()\ 20806{\ 20807 func_arith_result=$(( $* ))\ 20808} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \ 20809 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20810 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20811test 0 -eq $? || _lt_function_replace_fail=: 20812 20813 20814 sed -e '/^func_len ()$/,/^} # func_len /c\ 20815func_len ()\ 20816{\ 20817 func_len_result=${#1}\ 20818} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \ 20819 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20820 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20821test 0 -eq $? || _lt_function_replace_fail=: 20822 20823fi 20824 20825if test x"$lt_shell_append" = xyes; then 20826 sed -e '/^func_append ()$/,/^} # func_append /c\ 20827func_append ()\ 20828{\ 20829 eval "${1}+=\\${2}"\ 20830} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \ 20831 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20832 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20833test 0 -eq $? || _lt_function_replace_fail=: 20834 20835 20836 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\ 20837func_append_quoted ()\ 20838{\ 20839\ func_quote_for_eval "${2}"\ 20840\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\ 20841} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \ 20842 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20843 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20844test 0 -eq $? || _lt_function_replace_fail=: 20845 20846 20847 # Save a `func_append' function call where possible by direct use of '+=' 20848 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \ 20849 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20850 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20851 test 0 -eq $? || _lt_function_replace_fail=: 20852else 20853 # Save a `func_append' function call even when '+=' is not available 20854 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \ 20855 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20856 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20857 test 0 -eq $? || _lt_function_replace_fail=: 20858fi 20859 20860if test x"$_lt_function_replace_fail" = x":"; then 20861 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5 20862$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;} 20863fi 20864 20865 20866 mv -f "$cfgfile" "$ofile" || 20867 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 20868 chmod +x "$ofile" 20869 20870 ;; 20871 20872 esac 20873done # for ac_tag 20874 20875 20876as_fn_exit 0 20877_ACEOF 20878ac_clean_files=$ac_clean_files_save 20879 20880test $ac_write_fail = 0 || 20881 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 20882 20883 20884# configure is writing to config.log, and then calls config.status. 20885# config.status does its own redirection, appending to config.log. 20886# Unfortunately, on DOS this fails, as config.log is still kept open 20887# by configure, so config.status won't be able to write to it; its 20888# output is simply discarded. So we exec the FD to /dev/null, 20889# effectively closing config.log, so it can be properly (re)opened and 20890# appended to by config.status. When coming back to configure, we 20891# need to make the FD available again. 20892if test "$no_create" != yes; then 20893 ac_cs_success=: 20894 ac_config_status_args= 20895 test "$silent" = yes && 20896 ac_config_status_args="$ac_config_status_args --quiet" 20897 exec 5>/dev/null 20898 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 20899 exec 5>>config.log 20900 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 20901 # would make configure fail if this is the last instruction. 20902 $ac_cs_success || as_fn_exit 1 20903fi 20904if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 20905 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 20906$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 20907fi 20908 20909